/* Generado por diseno-producto/tools/publicar.py. No editar: la fuente es diseno-producto/ds. */
/* Atenea Monitor · acceso · lo común de las pantallas («Escenario», elegida el 16/10/2026).
   Va sobre el sistema del panel (atenea.css): los componentes son los suyos (am-field, am-input, am-banner, am-check,
   am-limit…). Aquí solo lo que el acceso necesita aparte (prefijo ac-), a su tamaño, y la luz de la web.
   Sin estilos ni guiones en línea: lo que mueve el guion llega por variables (--resta, --lleva) y clases. */

:root {
  --noche: #030717;
  --n-texto: #c5cde6;
  --n-apagado: #8d98ba;
  --fucsia-n: #f0abfc;
  --luz-1: #2f9bff;
  --luz-2: #5a52fd;
  --luz-3: #8b2cfc;
  --luz-4: #c21efd;
  --luz-5: #e22bfc;
  --luz-6: #fc4dfd;
  --ac-ease: cubic-bezier(.2, .8, .2, 1);
  --ac-campo: 52px;
}

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body.ac { min-height: 100svh; }
.ac ::selection { background: #a21caf; color: #fff; }
.ac :focus-visible { outline: 2px solid var(--am-focus); outline-offset: 3px; border-radius: 8px; }
.ac-noche :focus-visible { outline-color: #9db8ff; }
/* El degradado de la luz, en la página sin ocupar sitio (con display:none no pintaría). */
.ac-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
video[data-video]::-webkit-media-controls { display: none !important; }

/* El paso entre pantallas: la escena se queda y la hoja cambia (si el navegador lo sabe hacer; si no, nada). */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .5s; animation-timing-function: var(--ac-ease); }
::view-transition-group(escena) { animation-duration: .9s; animation-timing-function: var(--ac-ease); }

/* ───────────── la tarjeta ───────────── */

.ac-tarjeta { display: grid; gap: 26px; width: min(424px, 100%); }
.ac-tarjeta--ancha { width: min(500px, 100%); }
.ac-cab { display: grid; gap: 14px; justify-items: start; }
.ac-cab h1 { font: 620 clamp(32px, 2.9vw, 42px)/1.04 var(--am-font-display); letter-spacing: -.036em; color: var(--am-ink); text-wrap: balance; }
.ac-cab p { max-width: 46ch; color: var(--am-body); font-size: 16px; line-height: 1.6; text-wrap: pretty; }
.ac-cab p .am-strong { color: var(--am-ink); font-weight: 620; }

/* El antetítulo de la web: mono, en mayúsculas, con el rombo del isotipo. */
.ac-ante { display: inline-flex; align-items: center; gap: 11px; font: 500 11.5px/1.2 var(--am-font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--am-muted); }
.ac-ante::before { content: ""; flex: none; width: 8px; height: 9px; background: var(--am-brand); clip-path: polygon(50% 0, 100% 42%, 50% 100%, 0 42%); }
.ac-noche .ac-ante::before { background: var(--fucsia-n); }

.ac-icono { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 17px; background: var(--st-bg); color: var(--st); box-shadow: inset 0 0 0 1px var(--st-line); }
.ac-icono .am-i { width: 24px; height: 24px; }

/* ───────────── el formulario ───────────── */

.ac-form { display: grid; gap: 20px; }
.ac .am-field { gap: 8px; }
.ac .am-label { font-size: 14px; letter-spacing: -.005em; }
.ac .am-label small { font-size: 13px; }
.ac .am-hint { font-size: 13px; line-height: 1.5; }
.ac .am-input { min-height: var(--ac-campo); padding: 0 16px; border-radius: 13px; border-color: var(--am-line-strong); box-shadow: 0 1px 2px rgba(19, 26, 46, .04); font-size: 16px; transition: border-color .18s, box-shadow .25s var(--ac-ease), background-color .2s; }
.ac .am-input:hover { border-color: var(--am-control-line); }
.ac .am-input:focus { border-color: var(--am-focus); box-shadow: 0 0 0 4px color-mix(in srgb, var(--am-focus) 22%, transparent); }
.ac .am-input[aria-invalid="true"] { border-color: var(--am-down); box-shadow: 0 0 0 3px color-mix(in srgb, var(--am-down) 16%, transparent); }
.ac .am-input[readonly] { background: var(--am-canvas-2); color: var(--am-body); }
.ac .am-input--mono { font-family: var(--am-font-mono); font-size: 15px; letter-spacing: .02em; }
.ac .am-check { font-size: 14px; }
.ac .am-check input { width: 20px; height: 20px; border-radius: 6px; }
.ac-fila { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.ac-trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Contraseña con su botón de verla. */
.ac-clave { position: relative; }
.ac-clave .am-input { padding-right: 54px; }
.ac-ver { position: absolute; right: 6px; top: 50%; display: grid; place-items: center; width: 42px; height: 42px; translate: 0 -50%; border: 0; border-radius: 10px; background: transparent; color: var(--am-muted); cursor: pointer; transition: color .15s, background-color .15s; }
.ac-ver:hover { color: var(--am-ink); background: color-mix(in srgb, var(--am-ink) 7%, transparent); }
.ac-ver .am-i { width: 18px; height: 18px; }

/* Cuánto le falta a la contraseña nueva para los 12 caracteres: una línea de luz que se llena. */
.ac-medida { display: none; }
.js .ac-medida { display: block; height: 3px; margin-top: 2px; overflow: hidden; border-radius: 3px; background: var(--am-line); }
.ac-medida i { display: block; width: calc(var(--lleva, 0) * 100%); height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--luz-1), var(--luz-3) 60%, var(--luz-5)); transition: width .3s var(--ac-ease), background-color .3s; }
.ac-medida[data-bien] i { background: var(--am-ok-solid); }
.ac-coincide { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--am-down); }

/* Las opciones del alta, como tarjetas que se marcan. */
.ac-grupo { margin: 0; padding: 0; border: 0; }
.ac-grupo legend { margin-bottom: 8px; padding: 0; }
.ac-opciones { display: grid; gap: 8px; }
.ac-opcion { position: relative; display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start; padding: 14px 16px; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--am-line-strong); color: var(--am-body); font-size: 14px; line-height: 1.45; cursor: pointer; transition: box-shadow .2s, background-color .2s; }
.ac-opcion:hover { box-shadow: inset 0 0 0 1px var(--am-control-line); }
.ac-opcion:has(input:checked) { background: color-mix(in srgb, var(--am-focus) 5%, var(--am-paper)); box-shadow: inset 0 0 0 1.5px var(--am-action); }
.ac-opcion input { appearance: none; width: 20px; height: 20px; margin: 0; border-radius: 50%; border: 1.5px solid var(--am-control-line); background: var(--am-paper); display: grid; place-items: center; }
.ac-opcion input:checked { border-color: var(--am-action); background: var(--am-action); }
.ac-opcion input:checked::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--am-action-text); }
.ac-opcion input:focus-visible { outline: 2px solid var(--am-focus); outline-offset: 2px; }
.ac-opcion b { display: block; color: var(--am-ink); font-weight: 620; }
.ac-plegado summary { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 8px; list-style: none; color: var(--am-link); font-size: 14px; font-weight: 600; cursor: pointer; }
.ac-plegado summary::-webkit-details-marker { display: none; }
.ac-plegado summary small { color: var(--am-muted); font-size: 13px; font-weight: 400; }
.ac-plegado[open] summary { margin-bottom: 10px; }

/* ───────────── el código de seis cifras ─────────────
   Un solo campo de verdad (el gestor de contraseñas, pegar y el código del SMS siguen funcionando). Con guion, encima
   seis casillas que lo enseñan cifra a cifra, cada una con la luz de uno de los seis rayos. Si se escribe un código de
   recuperación (letras o guion), las casillas se van y queda el campo, entero. Sin guion, el campo, como siempre. */
.ac-codigo { position: relative; }
.ac .ac-codigo__campo { font-family: var(--am-font-mono); font-size: 22px; font-weight: 600; letter-spacing: .3em; text-align: center; }
.ac-codigo__celdas { display: none; }
.js .ac-codigo[data-modo="cifras"] .ac-codigo__celdas { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(6px, 1.6vw, 10px); pointer-events: none; }
.js .ac-codigo[data-modo="cifras"] .ac-codigo__campo { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; min-height: 0; padding: 0; border: 0; box-shadow: none; background: transparent; color: transparent; caret-color: transparent; letter-spacing: 0; opacity: .01; cursor: text; }
.ac-codigo__celdas i { --c: var(--luz-1); position: relative; display: grid; place-items: center; height: 64px; border-radius: 14px; background: var(--am-paper); box-shadow: inset 0 0 0 1px var(--am-line-strong), 0 1px 2px rgba(19, 26, 46, .04); color: var(--am-ink); font: 600 27px/1 var(--am-font-mono); font-style: normal; transition: box-shadow .25s var(--ac-ease), transform .25s var(--ac-ease), background-color .25s; }
.ac-codigo__celdas i:nth-child(2) { --c: var(--luz-2); }
.ac-codigo__celdas i:nth-child(3) { --c: var(--luz-3); }
.ac-codigo__celdas i:nth-child(4) { --c: var(--luz-4); }
.ac-codigo__celdas i:nth-child(5) { --c: var(--luz-5); }
.ac-codigo__celdas i:nth-child(6) { --c: var(--luz-6); }
/* La cifra escrita: su luz, debajo. */
.ac-codigo__celdas i.lleno { box-shadow: inset 0 0 0 1px var(--am-line-strong), inset 0 -3px 0 var(--c); animation: ac-cifra .32s var(--ac-ease); }
/* La casilla que toca, con su cursor. */
.ac-codigo:focus-within .ac-codigo__celdas i.toca { box-shadow: inset 0 0 0 2px var(--am-focus), 0 0 0 4px color-mix(in srgb, var(--am-focus) 18%, transparent); }
.ac-codigo:focus-within .ac-codigo__celdas i.toca::after { content: ""; width: 2px; height: 28px; border-radius: 2px; background: var(--am-ink); animation: ac-parpadeo 1.05s steps(1) infinite; }
.ac-codigo[data-completo] .ac-codigo__celdas i { box-shadow: inset 0 0 0 1px var(--c), inset 0 -3px 0 var(--c), 0 10px 26px -14px var(--c); }
.ac-codigo:has([aria-invalid="true"]) .ac-codigo__celdas i { box-shadow: inset 0 0 0 1px var(--am-down-line), inset 0 -3px 0 var(--am-down); }
.js .ac-codigo:has([aria-invalid="true"]) .ac-codigo__celdas { animation: ac-no .5s var(--ac-ease) .25s both; }
@keyframes ac-cifra { from { transform: translateY(5px) scale(.96); } }
@keyframes ac-parpadeo { 50% { opacity: 0; } }
@keyframes ac-no { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

/* ───────────── la espera tras demasiados intentos ───────────── */

.ac-reloj { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 22px; padding: 18px 22px 18px 18px; border-radius: 20px; background: var(--am-paper); box-shadow: inset 0 0 0 1px var(--am-line); }
.ac-reloj__aro { grid-row: 1 / 3; width: 108px; height: 108px; rotate: -90deg; overflow: visible; }
.ac-reloj__pista { fill: none; stroke: var(--am-line); stroke-width: 5; }
.ac-reloj__resta { fill: none; stroke: url(#ac-luz); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 100 100; stroke-dashoffset: calc(100 - var(--resta, 100)); transition: stroke-dashoffset 1s linear; }
.ac-reloj__cifra { grid-column: 1; grid-row: 1 / 3; place-self: center; font: 600 25px/1 var(--am-font-mono); letter-spacing: -.02em; color: var(--am-ink); font-variant-numeric: tabular-nums; }
.ac-reloj__pie { grid-column: 2; grid-row: 1 / 3; color: var(--am-body); font-size: 15px; line-height: 1.5; }
.ac-reloj__pie .am-strong { font-size: inherit; }
.ac-reloj[data-listo] .ac-reloj__resta { stroke: var(--am-ok-solid); stroke-dashoffset: 0; }

/* ───────────── avisos, listas, botones y enlaces ───────────── */

.ac .am-banner { padding: 15px 18px; border-radius: 16px; font-size: 14.5px; }
.ac .am-banner__title { display: block; margin-bottom: 2px; color: var(--am-ink); font-weight: 640; font-size: 15px; }
.ac .am-banner__body { display: grid; gap: 2px; }
.ac .am-limit { padding: 14px 16px; border-radius: 14px; font-size: 13.5px; line-height: 1.55; }
.ac .am-limit .am-i { width: 18px; height: 18px; }

.ac-lista { display: grid; gap: 14px; }
.ac-lista li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 14px; align-items: start; color: var(--am-body); font-size: 15px; line-height: 1.5; }
.ac-lista .am-i { width: 18px; height: 18px; margin-top: 2px; color: var(--am-muted); }

.ac-nota-invita { position: relative; display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 12px; margin: 0; padding: 16px 18px 16px 20px; border-radius: 16px; background: var(--am-canvas-2); color: var(--am-ink); font-size: 15px; line-height: 1.55; }
.ac-nota-invita::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 2px; border-radius: 2px; background: linear-gradient(180deg, var(--luz-1), var(--luz-4)); }
.ac-nota-invita .am-i { width: 18px; height: 18px; margin-top: 2px; color: var(--am-muted); }

/* El botón de la web: alto, redondo, con la flecha que avanza. */
.ac-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 54px; padding: 0 24px; border: 0; border-radius: 14px; background: var(--am-action); color: var(--am-action-text); font: 620 16.5px/1 var(--am-font); letter-spacing: -.01em; text-decoration: none; cursor: pointer; transition: transform .18s var(--ac-ease), box-shadow .3s var(--ac-ease), background-color .2s, color .2s; }
.ac-btn:hover { transform: translateY(-1px); box-shadow: 0 14px 30px -12px rgba(12, 18, 48, .55); color: var(--am-action-text); text-decoration: none; }
.ac-btn:active { transform: none; }
.ac-btn .am-i { width: 18px; height: 18px; transition: transform .25s var(--ac-ease); }
.ac-btn:hover .am-i { transform: translateX(4px); }
.ac-btn[aria-disabled="true"], .ac-btn:disabled { background: var(--am-canvas-2); color: var(--am-muted); box-shadow: inset 0 0 0 1px var(--am-line); pointer-events: none; }
.ac-btn[aria-busy="true"] { pointer-events: none; }

.ac-enlace { display: inline-flex; align-items: center; gap: 8px; padding: 0; border: 0; background: none; color: var(--am-link); font: 600 14px/1.45 var(--am-font); text-align: left; text-decoration: none; cursor: pointer; }
.ac-enlace:hover { color: var(--am-link-hover); text-decoration: underline; text-underline-offset: 4px; }
.ac-enlace--apagado { color: var(--am-muted); font-weight: 520; }
.ac-enlace--volver .am-i { width: 16px; height: 16px; transition: transform .25s var(--ac-ease); }
.ac-enlace--volver:hover .am-i { transform: translateX(-3px); }
.ac-otra { color: var(--am-muted); font-size: 14px; }
.ac-mas { display: grid; gap: 12px; justify-items: start; }
.ac-mas--fila { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.ac-mas form { display: contents; }
.ac-salir { padding-top: 20px; border-top: 1px solid var(--am-line); }
.ac-nota { color: var(--am-muted); font-size: 14px; line-height: 1.55; }

/* Los pasos que quedan (correo confirmado). */
.ac-pasos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ac-pasos li { position: relative; display: grid; gap: 10px; align-content: start; padding-top: 18px; color: var(--am-muted); font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.ac-pasos li::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; border-radius: 3px; background: var(--am-line); }
.ac-pasos li[data-hecho]::before { background: var(--am-ok-solid); }
.ac-pasos li[aria-current="step"] { color: var(--am-ink); }
.ac-pasos li[aria-current="step"]::before { background: linear-gradient(90deg, var(--luz-1), var(--luz-4)); }

/* El recorrido de cada flujo: el rombo hecho, el que toca y los que faltan. */
.ac-recorrido { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.ac-recorrido li { display: inline-flex; align-items: center; gap: 10px; color: var(--am-muted); font: 500 12px/1.2 var(--am-font-mono); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.ac-recorrido li::before { content: ""; flex: none; width: 9px; height: 10px; background: currentColor; opacity: .45; clip-path: polygon(50% 0, 100% 42%, 50% 100%, 0 42%); }
.ac-recorrido li[data-hecho] { color: var(--am-body); }
.ac-recorrido li[data-hecho]::before { opacity: 1; background: var(--am-ink); }
.ac-recorrido li[aria-current="step"] { color: var(--am-ink); }
.ac-recorrido li[aria-current="step"]::before { opacity: 1; background: var(--am-brand); }
.ac-noche .ac-recorrido li[aria-current="step"]::before { background: var(--fucsia-n); filter: drop-shadow(0 0 6px rgba(240, 171, 252, .8)); }

/* ───────────── el movimiento ───────────── */

@keyframes ac-sube { from { opacity: 0; transform: translateY(18px); } }
@keyframes ac-aclara { from { opacity: 0; } }
.ac-tarjeta > * { animation: ac-sube .85s var(--ac-ease) both; }
.ac-tarjeta > :nth-child(2) { animation-delay: .06s; }
.ac-tarjeta > :nth-child(3) { animation-delay: .12s; }
.ac-tarjeta > :nth-child(4) { animation-delay: .18s; }
.ac-tarjeta > :nth-child(5) { animation-delay: .24s; }
.ac-tarjeta > :nth-child(n + 6) { animation-delay: .3s; }

/* ───────────── el estrecho ───────────── */

@media (max-width: 560px) {
  .ac-tarjeta { gap: 22px; }
  .ac-cab h1 { font-size: 31px; }
  .ac-cab p { font-size: 15.5px; }
  .ac-codigo__celdas i { height: 58px; font-size: 24px; border-radius: 12px; }
}

/* ───────────── con menos movimiento ───────────── */

@media (prefers-reduced-motion: reduce) {
  .ac *, .ac *::before, .ac *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* A · Escenario. Pantalla partida, pero cada mitad con su trabajo: a la izquierda la escena de cristal cuenta el
   momento (su toma, su frase, el recorrido de este flujo y, en la espera, la cuenta atrás); a la derecha, la hoja
   clara del panel solo con la tarea, que monta sobre la escena con su borde curvo, como las hojas de la web.
   En el móvil la escena es la cabecera y la hoja sube sobre ella. */

body.ac--a { background: var(--noche); }
.a { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(540px, .9fr); min-height: 100svh; }

/* ── la escena: se queda quieta aunque el formulario sea largo ── */
.a-escena { position: sticky; top: 0; align-self: start; isolation: isolate; display: grid; grid-template-rows: auto 1fr auto auto; gap: 28px; height: 100svh; min-height: 560px; padding: 38px calc(clamp(36px, 4.4vw, 72px) + 32px) 34px clamp(36px, 4.4vw, 72px); overflow: hidden; background: var(--noche); color: #fff; view-transition-name: escena; }
.a-escena__toma { position: absolute; inset: 0; z-index: -2; animation: ac-aclara 1.6s ease-out both; }
.a-escena__toma video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--mira, 72% 50%); }
.a-escena__alto { display: none; }
/* El velo: el texto, abajo a la izquierda, siempre se lee; la luz de la toma queda arriba y a la derecha. */
.a-escena::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(0deg, rgba(3, 7, 23, .94) 0%, rgba(3, 7, 23, .62) 30%, rgba(3, 7, 23, 0) 58%),
  linear-gradient(90deg, rgba(3, 7, 23, .55) 0%, rgba(3, 7, 23, 0) 46%),
  linear-gradient(180deg, rgba(3, 7, 23, .5) 0%, rgba(3, 7, 23, 0) 18%); }
.a-escena__logo { justify-self: start; }
.a-escena__logo img { width: 150px; height: auto; }
.a-escena__texto { grid-row: 3; display: grid; gap: 20px; justify-items: start; max-width: 600px; }
.a-escena__texto .ac-ante { color: var(--n-apagado); }
.a-escena__texto .ac-ante::before { background: var(--fucsia-n); }
.a-escena__frase { font: 600 clamp(36px, 3.6vw, 58px)/1 var(--am-font-display); letter-spacing: -.04em; color: #fff; text-wrap: balance; max-width: 15ch; }
.a-escena__frase--larga { font-size: clamp(30px, 2.6vw, 40px); line-height: 1.06; max-width: 20ch; }
.a-escena__texto > * { animation: ac-sube 1s var(--ac-ease) both; }
.a-escena__texto > :nth-child(2) { animation-delay: .08s; }
.a-escena__texto > :nth-child(3) { animation-delay: .16s; }
.a-escena__recorrido { margin-top: 8px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .12); }
.a-escena__recorrido li { color: var(--n-apagado); }
.a-escena__recorrido li[data-hecho] { color: var(--n-texto); }
.a-escena__recorrido li[data-hecho]::before { background: #fff; }
.a-escena__recorrido li[aria-current="step"] { color: #fff; }
.a-escena__pie { grid-row: 4; color: var(--n-apagado); font: 400 12px/1.4 var(--am-font-mono); letter-spacing: .02em; }
.a-escena__pie a { color: var(--n-texto); text-decoration: none; }
.a-escena__pie a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* En la espera, la cuenta atrás es de la escena: el anillo, grande, sobre el cristal que se apaga. */
.a-escena .ac-reloj { grid-row: 2 / 4; align-self: center; justify-self: center; grid-template-columns: auto; justify-items: center; gap: 22px; padding: 0; background: none; box-shadow: none; text-align: center; }
.a-escena .ac-reloj__aro { grid-row: 1; grid-column: 1; width: clamp(200px, 19vw, 280px); height: clamp(200px, 19vw, 280px); }
.a-escena .ac-reloj__pista { stroke: rgba(255, 255, 255, .12); stroke-width: 2.5; }
.a-escena .ac-reloj__resta { stroke-width: 2.5; filter: drop-shadow(0 0 6px rgba(140, 120, 255, .8)); }
.a-escena .ac-reloj__cifra { grid-row: 1; grid-column: 1; place-self: center; color: #fff; font: 300 clamp(50px, 4.6vw, 70px)/1 var(--am-font-display); letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.a-escena .ac-reloj__pie { grid-row: 2; grid-column: 1; color: var(--n-texto); font-size: 16px; }
.a-escena .ac-reloj__pie .am-strong { color: #fff; }
.a-escena .ac-reloj[data-listo] .ac-reloj__resta { stroke: #7fd3ae; filter: drop-shadow(0 0 6px rgba(127, 211, 174, .7)); }
body[data-tono="espera"] .a-escena__toma video { filter: brightness(.4) saturate(.55); transition: filter 1.8s var(--ac-ease); }
body.luz-vuelve .a-escena__toma video { filter: none; }

/* Cada flujo, su toma (y su encuadre: el cristal, a la derecha del texto y sin tocar la hoja). */
.a-escena[data-toma="recorrido"] { --mira: 74% 60%; }
.a-escena[data-toma="red"] { --mira: 70% 46%; }
.a-escena[data-toma="seis"] { --mira: 12% 44%; }
.a-escena[data-toma="seis"] video { transform: scaleX(-1); }
.a-escena[data-toma="cierre"] { --mira: 50% 42%; }

/* ── la hoja: monta sobre la escena con su borde curvo ── */
.a-hoja { position: relative; z-index: 1; display: grid; grid-template-rows: 1fr auto; min-width: 0; margin-left: -32px; padding: 40px clamp(32px, 5vw, 88px) 30px; border-radius: 32px 0 0 32px; background: var(--am-paper); box-shadow: -40px 0 80px -40px rgba(3, 7, 23, .75); }
.a-hoja__centro { display: grid; align-content: center; justify-items: start; padding-block: 36px; }
.a-hoja__pie { color: var(--am-muted); font-size: 12.5px; line-height: 1.5; }

@media (min-width: 1024px) and (max-height: 760px) {
  .a-escena { gap: 18px; padding-block: 28px 24px; }
  .a-escena__frase { font-size: clamp(32px, 3vw, 46px); }
  .a-escena__frase--larga { font-size: clamp(26px, 2.2vw, 34px); }
}

/* ── el estrecho: la escena es la cabecera y la hoja sube sobre ella ── */
@media (max-width: 1023px) {
  .a { display: block; }
  .a-escena { position: relative; height: auto; min-height: 0; gap: 0; grid-template-rows: auto 1fr auto; padding: 22px 20px 62px; }
  /* La toma vertical, si la hay; si no (el alta, la espera), la ancha, encuadrada en el cristal. */
  .a-escena__toma:has(.a-escena__alto) .a-escena__ancho { display: none; }
  .a-escena__alto { display: block; }
  .a-escena[data-toma="hero"], .a-escena[data-toma="recorrido"], .a-escena[data-toma="red"] { --mira: 50% 62%; }
  .a-escena::before { background:
    linear-gradient(0deg, rgba(3, 7, 23, .96) 0%, rgba(3, 7, 23, .5) 45%, rgba(3, 7, 23, .15) 70%),
    linear-gradient(180deg, rgba(3, 7, 23, .55) 0%, rgba(3, 7, 23, 0) 30%); }
  .a-escena__logo img { width: 124px; }
  .a-escena__texto { grid-row: 3; gap: 14px; margin-top: 120px; }
  .a-escena__frase { font-size: clamp(26px, 7.4vw, 34px); line-height: 1.05; }
  /* Las frases largas, en el móvil, no: la tarea sube antes. */
  .a-escena__frase--larga { display: none; }
  .a-escena__recorrido { margin-top: 2px; padding-top: 14px; gap: 6px 16px; }
  .a-escena__recorrido li { font-size: 10.5px; }
  .a-escena__pie { display: none; }
  .a-escena .ac-reloj { grid-row: 2; margin-block: 44px 6px; gap: 16px; }
  .a-escena .ac-reloj__aro { width: 176px; height: 176px; }
  .a-escena .ac-reloj__cifra { font-size: 48px; }
  .a-escena .ac-reloj__pie { font-size: 15px; }
  .a-hoja { margin: -32px 0 0; padding: 34px 20px 26px; border-radius: 28px 28px 0 0; box-shadow: 0 -24px 48px -32px rgba(3, 7, 23, .7); }
  .a-hoja__centro { justify-items: stretch; padding-block: 0 36px; }
  .a-hoja .ac-tarjeta { width: min(520px, 100%); margin-inline: auto; }
}
