/* ==========================================================================
   Estudia.tech — Landing "Hoja de respuestas" (2026-11-05)
   Sistema visual: la hoja óptica del examen (burbujas A·B·C·D, marcas de
   registro, reloj) sobre una interfaz oscura de instrumento.
   Tipografía: Archivo (variable, eje de anchura 62–125) + JetBrains Mono.
   ========================================================================== */

:root {
  /* superficies */
  --void: #03060c;
  --ink: #060c17;
  --panel: #08111f;
  --panel-2: #0b1729;
  --line: rgba(150, 178, 226, .13);
  --line-2: rgba(150, 178, 226, .26);
  /* texto */
  --paper: #edf1f7;
  --dim: #b4bfd2;
  --mute: #8592aa;
  /* acento eléctrico (oro UNAM llevado a señal) + estados */
  --signal: #ffc531;
  --signal-rgb: 255, 197, 49;
  --signal-hi: #ffd76a;
  --on-signal: #120d00;
  --ok: #3ee0a1;
  --ok-rgb: 62, 224, 161;
  --bad: #ff6e5e;
  --bad-rgb: 255, 110, 94;

  --f-sans: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --spring: cubic-bezier(.3, 1.45, .45, 1);
  --gut: clamp(18px, 4vw, 56px);
  --navh: 64px;

  /* Paleta UNAM — la usa el banner de instalación PWA */
  --brand-50: #eef3fa; --brand-100: #d7e2f2; --brand-200: #b1c5e5; --brand-300: #83a2d3;
  --brand-400: #567dbd; --brand-500: #355fa5; --brand-600: #244a89; --brand-700: #1b3a6b;
  --brand-800: #132a4f; --brand-900: #0c2340;
  --brand-400-rgb: 86, 125, 189; --brand-500-rgb: 53, 95, 165; --brand-600-rgb: 36, 74, 137;
  --brand-700-rgb: 27, 58, 107; --brand-800-rgb: 19, 42, 79; --brand-900-rgb: 12, 35, 64;
  --gold-200: #e9d5a6; --gold-300: #dcbf7f; --gold-400: #cfa95e; --gold-500: #b9975b;
  --gold-400-rgb: 207, 169, 94; --gold-500-rgb: 185, 151, 91;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--navh) + 12px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--void); color: var(--paper);
  font-family: var(--f-sans); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility; overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
b, strong { font-weight: 700; color: var(--paper); }
::selection { background: var(--signal); color: var(--on-signal); }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }
[hidden] { display: none !important; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 12px; top: -80px; z-index: 200; background: var(--signal); color: var(--on-signal); padding: 10px 16px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

.shell { width: 100%; max-width: 1480px; margin-inline: auto; padding-inline: var(--gut); }
.mono { font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; font-weight: 500; }
.ic { width: 18px; height: 18px; flex: none; }

/* ---------- burbuja (unidad gráfica del sistema) ---------- */
.bub {
  --c: var(--signal);
  display: inline-grid; place-items: center; flex: none;
  width: 28px; height: 28px; border-radius: 50%;
  border: 1.5px solid var(--line-2);
  font-family: var(--f-mono); font-size: 12px; font-weight: 700; color: var(--dim);
  box-shadow: inset 0 0 0 0 var(--c);
  transition: box-shadow .45s var(--spring), border-color .25s, color .25s, transform .45s var(--spring);
}
.bub--lg { width: 46px; height: 46px; font-size: 15px; }

/* ---------- botones ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 13px 20px; border: 1px solid transparent; border-radius: 4px;
  font-family: var(--f-sans); font-size: 15px; font-weight: 700; line-height: 1.15; letter-spacing: .005em;
  text-decoration: none; white-space: nowrap; background: none;
  transition: background-color .25s, border-color .25s, color .25s, transform .35s var(--ease), box-shadow .35s var(--ease);
}
.btn .ic { transition: transform .35s var(--ease); }
.btn:hover .ic { transform: translateX(4px); }
.btn:active { transform: scale(.98); }
.btn--signal { background: var(--signal); color: var(--on-signal); box-shadow: 0 0 0 0 rgba(var(--signal-rgb), .0); }
.btn--signal:hover { background: var(--signal-hi); box-shadow: 0 12px 40px -12px rgba(var(--signal-rgb), .55); }
.btn--line { border-color: var(--line-2); color: var(--paper); }
.btn--line:hover { border-color: var(--paper); }
.btn--ink { background: var(--void); color: var(--signal); }
.btn--ink:hover { background: #000; color: var(--signal-hi); }
.btn--sm { min-height: 44px; padding: 10px 14px; font-size: 14px; }
.btn--xl { min-height: 56px; padding: 16px 26px; font-size: 17px; }
.btn--xxl { min-height: 64px; padding: 20px 34px; font-size: clamp(17px, 1.6vw, 21px); }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-busy="true"] { opacity: .65; pointer-events: none; }
.btn[aria-busy="true"]::after {
  content: ''; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border: 1px solid var(--line-2); color: var(--dim); font-size: 11px; white-space: nowrap; }
.tag--demo::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--signal); }

/* ---------- consola (panel de instrumento con marcas de registro) ---------- */
.console {
  position: relative; container-type: inline-size;
  border: 1px solid var(--line);
  background:
    linear-gradient(var(--signal), var(--signal)) top left / 16px 2px no-repeat,
    linear-gradient(var(--signal), var(--signal)) top left / 2px 16px no-repeat,
    linear-gradient(var(--signal), var(--signal)) bottom right / 16px 2px no-repeat,
    linear-gradient(var(--signal), var(--signal)) bottom right / 2px 16px no-repeat,
    rgba(7, 14, 27, .94);
}
.console__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--mute); }

/* ==========================================================================
   Reactivo (componente compartido: hero + simulador)
   ========================================================================== */
.q { padding: 18px 18px 0; }
.q__meta { display: flex; justify-content: space-between; gap: 12px; color: var(--mute); }
.q__materia { color: var(--signal); }
.q__stem { margin: 12px 0 18px; font-size: clamp(1.08rem, 1.5vw, 1.32rem); font-weight: 600; line-height: 1.38; font-stretch: 96%; text-wrap: pretty; }
.q__opts { display: grid; gap: 8px; }
@container (min-width: 560px) { .q__opts { grid-template-columns: 1fr 1fr; } }
.q__opt {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 10px 14px;
  border: 1px solid var(--line-2); border-radius: 4px; background: rgba(255, 255, 255, .015);
  text-align: left; font-size: 15.5px; line-height: 1.3; color: var(--paper);
  transition: border-color .25s, background-color .25s, opacity .35s, transform .35s var(--ease);
}
.q__opt:hover:not([disabled]) { border-color: rgba(var(--signal-rgb), .7); background: rgba(var(--signal-rgb), .05); }
.q__opt:hover:not([disabled]) .bub { border-color: var(--signal); color: var(--signal); }
.q__opt:active:not([disabled]) { transform: scale(.985); }
.q__opt[disabled] { cursor: default; }
.q__opt.is-dim { opacity: .38; }
.q__opt.is-right { border-color: var(--ok); background: rgba(var(--ok-rgb), .08); }
.q__opt.is-right .bub { --c: var(--ok); border-color: var(--ok); color: var(--void); box-shadow: inset 0 0 0 14px var(--c); transform: scale(1.08); }
.q__opt.is-wrong { border-color: var(--bad); background: rgba(var(--bad-rgb), .08); }
.q__opt.is-wrong .bub { --c: var(--bad); border-color: var(--bad); color: var(--void); box-shadow: inset 0 0 0 14px var(--c); }
.q__fb { padding: 0 18px; }
.q__fb:not(:empty) { padding-top: 16px; }
.fb { animation: rise .55s var(--ease) both; }
.fb__head { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; }
.fb__head .ic { width: 22px; height: 22px; padding: 3px; border-radius: 50%; color: var(--void); }
.fb--ok .fb__head .ic { background: var(--ok); }
.fb--bad .fb__head .ic { background: var(--bad); }
.fb__expl { margin-top: 8px; color: var(--dim); font-size: 15px; line-height: 1.55; max-width: 62ch; }
.q__next { display: flex; flex-wrap: wrap; gap: 10px; padding: 16px 18px 0; animation: rise .55s var(--ease) .1s both; }
.console > .q__next:last-child, .deck__console { padding-bottom: 18px; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ==========================================================================
   Barra superior + navegación
   ========================================================================== */
.topbar { border-bottom: 1px solid var(--line); background: var(--ink); font-size: 13px; color: var(--dim); }
.topbar__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; }
.topbar__events { position: relative; flex: 1; min-height: 20px; }
.topbar__ev { position: absolute; inset: 0 auto auto 0; white-space: nowrap; opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .4s var(--ease); }
.topbar__ev.is-on { opacity: 1; transform: none; }
.topbar__t { color: var(--signal); margin-right: 8px; }
.topbar__free { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.topbar__free .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--signal); }
@media (max-width: 760px) { .topbar__free { display: none; } .topbar__ev { overflow: hidden; text-overflow: ellipsis; max-width: 100%; } }

.nav { position: sticky; top: 0; z-index: 60; height: var(--navh); transition: background-color .3s, border-color .3s; border-bottom: 1px solid transparent; }
.nav.is-scrolled, .nav.is-open { background: rgba(3, 6, 12, .9); border-bottom-color: var(--line); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.nav__in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__mark { width: 26px; height: 26px; color: var(--signal); }
.brand__name { font-size: 19px; font-weight: 800; font-stretch: 112%; letter-spacing: -.01em; }
.brand__name span { color: var(--mute); font-weight: 600; }
.nav__links { display: flex; gap: clamp(16px, 2.2vw, 32px); }
.nav__links a, .nav__login { position: relative; font-size: 14px; font-weight: 600; color: var(--dim); text-decoration: none; padding: 8px 0; transition: color .2s; }
.nav__links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: var(--signal); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.nav__links a:hover, .nav__login:hover { color: var(--paper); }
.nav__links a:hover::after, .nav__links a.is-on::after { transform: scaleX(1); transform-origin: left; }
.nav__links a.is-on { color: var(--paper); }
.nav__cta { display: flex; align-items: center; gap: 16px; }
.nav__burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 4px; background: none; position: relative; }
.nav__burger-l, .nav__burger-l::before { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--paper); transition: transform .35s var(--ease), top .35s var(--ease); }
.nav__burger-l { top: 17px; }
.nav__burger-l::before { content: ''; left: 0; right: 0; top: 7px; }
.nav__burger[aria-expanded="true"] .nav__burger-l { top: 21px; transform: rotate(45deg); }
.nav__burger[aria-expanded="true"] .nav__burger-l::before { top: 0; transform: rotate(-90deg); }
.mnav { position: fixed; inset: var(--navh) 0 0 0; z-index: 59; background: var(--void); overflow-y: auto; animation: rise .4s var(--ease); }
.mnav__in { display: flex; flex-direction: column; padding-block: 24px 40px; }
.mnav__in > a { display: flex; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 30px; font-weight: 800; font-stretch: 80%; text-transform: uppercase; text-decoration: none; }
.mnav__in > a .mono { color: var(--signal); }
.mnav__cta { display: grid; gap: 10px; margin-top: 28px; }
@media (max-width: 1023px) { .nav__links { display: none; } .nav__burger { display: inline-block; } }
@media (max-width: 640px) { .nav__login { display: none; } .nav__cta { gap: 10px; } .nav__cta .btn--sm { padding-inline: 12px; } }

/* índice lateral de actos */
.rail { position: fixed; right: 18px; top: 50%; transform: translateY(-50%); z-index: 40; display: none; flex-direction: column; gap: 12px; }
.rail a { position: relative; display: flex; align-items: center; justify-content: flex-end; text-decoration: none; padding: 3px; }
.rail .bub { width: 12px; height: 12px; border-width: 1.5px; }
.rail a.is-past .bub { --c: var(--mute); border-color: var(--mute); box-shadow: inset 0 0 0 6px var(--c); }
.rail a.is-on .bub { --c: var(--signal); border-color: var(--signal); box-shadow: inset 0 0 0 6px var(--c); transform: scale(1.25); }
.rail__t { position: absolute; right: 26px; white-space: nowrap; font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--paper); background: var(--void); padding: 4px 8px; border: 1px solid var(--line); opacity: 0; transform: translateX(6px); pointer-events: none; transition: opacity .25s, transform .25s var(--ease); }
.rail a:hover .rail__t, .rail a:focus-visible .rail__t { opacity: 1; transform: none; }
@media (min-width: 1200px) { .rail { display: flex; } }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { position: relative; isolation: isolate; overflow: hidden; min-height: calc(100svh - var(--navh)); display: flex; flex-direction: column; padding-block: clamp(16px, 3vh, 40px) clamp(56px, 8vh, 88px); }
.field { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__field { z-index: -2; }
.hero__veil { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, var(--void) 0%, rgba(3, 6, 12, .82) 34%, rgba(3, 6, 12, .25) 70%, rgba(3, 6, 12, .55) 100%),
    linear-gradient(180deg, rgba(3, 6, 12, 0) 45%, var(--void) 100%); }
.hero__in { flex: 1; display: flex; flex-direction: column; }
.hero__top { display: flex; justify-content: space-between; gap: 16px; color: var(--mute); }
.hero__coords { display: flex; gap: 18px; }
.hero__coords span + span::before { content: '/'; margin-right: 18px; color: var(--line-2); }
.hero__title { margin-top: clamp(18px, 4vh, 48px); font-weight: 850; }
.ht { display: block; overflow: hidden; }
.ht__w { display: inline-block; }
.ht--lead { font-size: clamp(1.25rem, 2.4vw, 2.2rem); font-weight: 500; font-stretch: 100%; color: var(--dim); letter-spacing: -.005em; padding-bottom: .12em; }
.ht--mega { font-size: clamp(3.3rem, min(11.2vw, 18.5vh), 12.5rem); line-height: .86; text-transform: uppercase; font-stretch: 68%; letter-spacing: -.012em; padding-block: .04em; }
.ht--pos { color: var(--signal); padding-left: clamp(0px, 16vw, 300px); }
.strike { position: relative; display: inline-block; color: var(--dim); }
.strike::after { content: ''; position: absolute; left: -.04em; right: -.04em; top: 50%; height: .075em; background: var(--signal); transform-origin: left; }
.deck { margin-top: auto; padding-top: clamp(28px, 5vh, 56px); display: grid; gap: 28px; align-items: end; }
.deck__lede { font-size: clamp(16px, 1.25vw, 18px); color: var(--dim); max-width: 44ch; }
.deck__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px; color: var(--mute); font-size: 11.5px; }
.facts li { display: inline-flex; align-items: center; gap: 8px; }
.facts li::before { content: ''; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--signal); box-shadow: inset 0 0 0 2px var(--void), inset 0 0 0 5px var(--signal); }
.deck__console { align-self: end; }
.hero__scroll { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); display: none; align-items: center; gap: 10px; color: var(--mute); text-decoration: none; }
.hero__scroll-l { width: 1px; height: 28px; background: linear-gradient(var(--signal), transparent); animation: drip 2.2s var(--ease) infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
@media (min-width: 1024px) {
  .deck { grid-template-columns: repeat(12, 1fr); gap: 32px; }
  .deck__pitch { grid-column: 1 / span 5; padding-bottom: 6px; }
  .deck__console { grid-column: 7 / span 6; }
  .hero__scroll { display: inline-flex; }
}
@media (max-width: 1023px) {
  .hero__veil { background: linear-gradient(180deg, rgba(3, 6, 12, .55) 0%, rgba(3, 6, 12, .78) 55%, var(--void) 100%); }
  .ht--pos { padding-left: 0; }
}
@media (max-width: 640px) {
  .hero__coords { display: none; }
  .ht--mega { font-size: 17.4vw; line-height: .88; }
  .deck__actions .btn--xl { width: 100%; }
  .deck__actions .btn--line { width: 100%; }
}
/* intro coreografiada */
.js .ht__w { transform: translateY(108%); }
.js .strike::after { transform: scaleX(0); }
.js .hero__top, .js .deck__console { opacity: 0; transform: translateY(18px); }
.js .deck__pitch { transform: translateY(14px); }
.is-ready .ht__w { transform: none; transition: transform 1s var(--ease) var(--d, 0s); }
.is-ready .ht--lead .ht__w { --d: 0s; }
.is-ready .ht--neg .ht__w { --d: .08s; }
.is-ready .ht--pos .ht__w { --d: .18s; }
.is-ready .strike::after { transform: scaleX(1); transition: transform .8s var(--ease) .8s; }
.is-ready .hero__top, .is-ready .deck__pitch, .is-ready .deck__console { opacity: 1; transform: none; transition: opacity .8s var(--ease), transform .9s var(--ease); }
.is-ready .deck__pitch { transition-delay: .2s; }
.is-ready .deck__console { transition-delay: .4s; }

/* ==========================================================================
   Actos — cabeceras comunes
   ========================================================================== */
.act { position: relative; padding-block: clamp(72px, 11vh, 132px); border-top: 1px solid var(--line); }
.act__head { margin-bottom: clamp(32px, 5vh, 56px); }
.act__num { display: flex; align-items: center; gap: 10px; color: var(--mute); margin-bottom: 18px; }
.act__num::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--signal); }
.act__num span { color: var(--signal); }
.act__title { font-size: clamp(2.2rem, 5vw, 4.9rem); line-height: .94; font-weight: 820; font-stretch: 74%; text-transform: uppercase; letter-spacing: -.008em; max-width: 17ch; text-wrap: balance; }
.act__q { display: block; font-size: 13px; color: var(--signal); margin-bottom: 14px; font-stretch: 100%; }
.act__lede { color: var(--dim); font-size: clamp(16px, 1.25vw, 18px); max-width: 46ch; margin-top: 20px; }
@media (min-width: 1024px) {
  .act__head--split { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 32px; align-items: end; }
  .act__head--split .act__num { grid-column: 1 / -1; }
  .act__head--split .act__title { grid-column: 1 / span 7; }
  .act__head--split .act__lede { grid-column: 9 / span 4; margin-top: 0; }
}
.js [data-reveal] { opacity: 0; transform: translateY(32px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ==========================================================================
   ACTO 01 — El desafío (escena con scroll)
   ========================================================================== */
.act--challenge { padding: 0; }
.challenge { position: relative; height: 320vh; }
.challenge__stage { position: sticky; top: 0; height: 100svh; overflow: hidden; isolation: isolate; display: flex; }
.challenge__field { z-index: -1; opacity: .9; }
.challenge__stage::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(120% 90% at 20% 50%, rgba(3, 6, 12, .9) 0%, rgba(3, 6, 12, .45) 55%, rgba(3, 6, 12, .2) 100%); }
.challenge__in { display: grid; grid-template-rows: auto 1fr auto; gap: 24px; padding-block: calc(var(--navh) + 24px) 40px; }
.challenge .act__head { margin: 0; }
.challenge .act__title { font-size: clamp(2.2rem, 5vw, 4.8rem); }
.clock { align-self: center; }
@media (max-width: 1023px) { .challenge__in { padding-bottom: calc(176px + env(safe-area-inset-bottom)); } }
.clock__t { display: block; font-size: clamp(3.4rem, 13.5vw, 14rem); font-weight: 500; letter-spacing: -.05em; line-height: .95; color: var(--paper); font-variant-numeric: tabular-nums; text-transform: none; }
.clock__r { display: block; margin-top: 10px; color: var(--mute); font-size: 13px; }
.clock__r b { color: var(--signal); font-weight: 700; }
.beats { position: relative; display: grid; }
.beat { grid-area: 1 / 1; font-size: clamp(1.15rem, 2vw, 1.7rem); line-height: 1.32; max-width: 30ch; color: var(--dim); opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .7s var(--ease); }
.beat.is-on { opacity: 1; transform: none; }
.beat b { color: var(--signal); }
@media (min-width: 1024px) {
  .challenge__in { grid-template-columns: 7fr 5fr; grid-template-rows: auto 1fr; column-gap: 48px; }
  .challenge .act__head { grid-column: 1; }
  .clock { grid-column: 1; grid-row: 2; }
  .beats { grid-column: 2; grid-row: 1 / span 2; align-self: center; gap: 28px; }
  .beat { grid-area: auto; opacity: .2; transform: none; }
  .beat.is-on { opacity: 1; }
}
.no-scrub .challenge, .no-js .challenge { height: auto; }
.no-scrub .challenge__stage { position: relative; height: auto; min-height: 100svh; }
.no-scrub .beats { gap: 20px; }
.no-scrub .beat, html:not(.js) .beat { grid-area: auto; opacity: 1; transform: none; }

/* ==========================================================================
   ACTO 02 — Simulador
   ========================================================================== */
.sim__top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 14px 18px; border-bottom: 1px solid var(--line); color: var(--mute); }
.sim__exam { color: var(--paper); margin-right: auto; }
.sim__clock { display: inline-flex; align-items: center; gap: 8px; color: var(--signal); font-size: 15px; font-variant-numeric: tabular-nums; }
.rec { width: 8px; height: 8px; border-radius: 50%; background: var(--bad); animation: blink 1.2s steps(2, jump-none) infinite; }
@keyframes blink { 50% { opacity: .25; } }
.sim__progress { display: flex; align-items: center; gap: 16px; padding: 12px 18px; border-bottom: 1px solid var(--line); color: var(--dim); }
.sim__bar { flex: 1; height: 3px; background: var(--line); overflow: hidden; }
.sim__bar span { display: block; height: 100%; width: 1%; background: var(--signal); transition: width .8s var(--ease); }
.sim__body { display: grid; grid-template-columns: minmax(0, 1fr); }
.sim__body > *, .report__grid > *, .path > *, .price > *, .faq > *, .deck > * { min-width: 0; }
@container (max-width: 440px) { .console__hint { display: none; } }
.sim__label { color: var(--mute); margin-bottom: 10px; }
.sim__subjects { padding: 16px 18px; border-bottom: 1px solid var(--line); }
.sim__subjlist { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; margin-inline: -18px; padding-inline: 18px; scrollbar-width: none; }
.sim__subjlist::-webkit-scrollbar { display: none; }
.subj { flex: none; scroll-snap-align: start; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 14px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 4px; background: none; text-align: left; color: var(--dim); font-size: 14.5px; font-weight: 600; transition: border-color .2s, background-color .2s, color .2s; }
.subj__n { color: var(--mute); font-size: 11px; }
.subj__range { display: none; grid-column: 1 / -1; color: var(--mute); font-size: 10.5px; }
.subj:hover { color: var(--paper); border-color: var(--line-2); }
.subj[aria-pressed="true"] { color: var(--paper); border-color: var(--signal); background: rgba(var(--signal-rgb), .07); }
.subj[aria-pressed="true"] .subj__n { color: var(--signal); }
.subj.is-done::before { content: ''; position: absolute; }
.subj { position: relative; }
.subj[data-state="ok"]::after, .subj[data-state="bad"]::after { content: ''; position: absolute; top: 6px; right: 6px; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.subj[data-state="bad"]::after { background: var(--bad); }
.sim__stage { min-height: 440px; padding-bottom: 22px; }
.sim__stage .q { padding: clamp(18px, 2.4vw, 32px) clamp(18px, 2.4vw, 32px) 0; }
.sim__stage .q__fb, .sim__stage .q__next { padding-inline: clamp(18px, 2.4vw, 32px); }
.sim__stage .q__stem { font-size: clamp(1.2rem, 1.9vw, 1.6rem); }
.sim__sheet { display: none; padding: 16px 18px; border-left: 1px solid var(--line); }
.sheet { display: grid; grid-template-columns: repeat(10, 12px); gap: 6px 7px; }
.sheet i { width: 12px; height: 12px; border-radius: 50%; border: 1px solid var(--line-2); transition: background-color .3s, border-color .3s, transform .4s var(--spring); }
.sheet i.in { border-color: rgba(var(--signal-rgb), .45); }
.sheet i.cur { border-color: var(--signal); transform: scale(1.35); box-shadow: 0 0 0 3px rgba(var(--signal-rgb), .18); }
.sheet i.ok { background: var(--ok); border-color: var(--ok); }
.sheet i.bad { background: var(--bad); border-color: var(--bad); }
.sim__note { padding: 14px 18px; border-top: 1px solid var(--line); color: var(--mute); font-size: 13.5px; }
@media (min-width: 900px) {
  .sim__body { grid-template-columns: 250px 1fr; }
  .sim__subjects { border-bottom: 0; border-right: 1px solid var(--line); }
  .sim__subjlist { flex-direction: column; overflow: visible; margin: 0; padding: 0; gap: 4px; }
  .subj { width: 100%; grid-template-columns: 1fr auto auto; min-height: 40px; padding: 6px 12px; border-color: transparent; border-left: 2px solid transparent; border-radius: 0; }
  .subj[aria-pressed="true"] { border-color: transparent; border-left-color: var(--signal); }
  .subj__range { display: block; grid-column: auto; grid-row: 1; grid-column-start: 2; }
  .subj__n { grid-column-start: 3; min-width: 2ch; text-align: right; }
}
@media (min-width: 1200px) { .sim__body { grid-template-columns: 250px 1fr 210px; } .sim__sheet { display: block; } }

/* ==========================================================================
   ACTO 03 — Reporte
   ========================================================================== */
.report__bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); color: var(--paper); }
.report__grid { display: grid; }
.report__grid > * { padding: clamp(20px, 2.6vw, 36px); }
.report__k { color: var(--mute); }
.score { margin-top: 8px; font-size: clamp(4.2rem, 9vw, 8.5rem); line-height: .86; font-weight: 820; font-stretch: 68%; font-variant-numeric: tabular-nums; }
.score__d { font-size: .38em; color: var(--mute); font-stretch: 90%; margin-left: 4px; }
.report__pct { margin-top: 12px; color: var(--dim); }
.trend { margin-top: 36px; }
.trend__plot { position: relative; margin-top: 12px; }
.trend__svg { width: 100%; height: 170px; overflow: visible; }
.trend__svg .grid { stroke: var(--line); stroke-width: 1; }
.trend__svg .axis { fill: var(--mute); font-family: var(--f-mono); font-size: 10.5px; }
.trend__svg .line { fill: none; stroke: var(--signal); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.trend__svg .area { fill: url(#trendFill); }
.trend__svg .pt { fill: var(--void); stroke: var(--signal); stroke-width: 2; transition: r .25s var(--spring); }
.trend__svg .pt.is-on { r: 7; fill: var(--signal); }
.trend__svg .hit { fill: transparent; cursor: crosshair; }
.trend__svg .cross { stroke: var(--line-2); stroke-dasharray: 3 3; }
.tip { position: absolute; top: 0; pointer-events: none; transform: translate(-50%, -110%); background: var(--paper); color: var(--void); padding: 6px 9px; font-size: 13px; font-weight: 600; white-space: nowrap; border-radius: 3px; }
.tip span { display: block; font-family: var(--f-mono); font-size: 10.5px; color: #3c475c; text-transform: uppercase; letter-spacing: .05em; }
.report__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.seg { display: inline-grid; grid-auto-flow: column; border: 1px solid var(--line-2); border-radius: 4px; padding: 3px; gap: 3px; }
.seg button { min-height: 36px; padding: 6px 12px; border: 0; border-radius: 2px; background: none; color: var(--dim); font-size: 13px; font-weight: 600; transition: background-color .2s, color .2s; }
.seg button:hover { color: var(--paper); }
.seg button[aria-pressed="true"] { background: var(--signal); color: var(--on-signal); }
.units { position: relative; }
.unit { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name val" "dots dots" "flag flag"; gap: 8px 14px; align-items: center; padding: 12px 8px; border-top: 1px solid var(--line); transition: background-color .2s; }
.unit:hover { background: rgba(255, 255, 255, .025); }
.unit__name { grid-area: name; font-weight: 600; font-size: 15px; }
.unit__dots { grid-area: dots; display: flex; flex-wrap: wrap; gap: 3px; }
.unit__dots i, .report__legend i { display: block; width: 9px; height: 9px; border-radius: 50%; border: 1px solid var(--line-2); transition: background-color .35s var(--ease) var(--d, 0s), border-color .35s var(--ease) var(--d, 0s), transform .45s var(--spring) var(--d, 0s); }
.unit__dots i.on, .report__legend i.on { background: var(--signal); border-color: var(--signal); }
.js .report:not(.is-in) .unit__dots i.on { background: transparent; border-color: var(--line-2); transform: scale(.6); }
.unit__val { grid-area: val; color: var(--dim); white-space: nowrap; }
.unit__val b { color: var(--paper); margin-left: 6px; }
.unit__flag { grid-area: flag; font-size: 11px; }
.unit--up .unit__flag { color: var(--ok); }
.unit--down .unit__flag { color: var(--bad); }
.unit__flag:empty { display: none; }
.report__legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px; color: var(--mute); font-size: 11px; }
.report__legend span { display: inline-flex; align-items: center; gap: 6px; }
.report__mine { border-top: 1px solid var(--line); padding: 18px clamp(20px, 2.6vw, 36px) 22px; }
.mine__empty { margin-top: 8px; color: var(--dim); font-size: 15px; }
.mine__list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.mine__list li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border: 1px solid var(--line-2); font-size: 14px; animation: rise .5s var(--ease) both; }
.mine__list .ic { width: 16px; height: 16px; padding: 2px; border-radius: 50%; color: var(--void); }
.mine__list .is-ok .ic { background: var(--ok); }
.mine__list .is-bad .ic { background: var(--bad); }
.mine__sum { width: 100%; color: var(--dim); font-size: 15px; }
@media (min-width: 720px) {
  .unit { grid-template-columns: 170px minmax(0, 1fr) 96px 120px; grid-template-areas: "name dots val flag"; padding: 10px 8px; }
  .unit__flag:empty { display: block; }
}
@media (min-width: 1024px) {
  .report__grid { grid-template-columns: 4fr 8fr; }
  .report__units { border-left: 1px solid var(--line); }
}

/* ==========================================================================
   ACTO 04 — Elige tu camino
   ========================================================================== */
.path { display: grid; gap: 28px; }
.path__opts { display: grid; border-bottom: 1px solid var(--line); }
.popt { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "bub body" "bub nums"; align-items: center; gap: 4px 20px; width: 100%; padding: 22px 6px; border: 0; border-top: 1px solid var(--line); background: none; text-align: left; color: var(--mute); transition: color .3s, background-color .3s; }
.popt .bub { grid-area: bub; align-self: start; margin-top: 4px; }
.popt__body { grid-area: body; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.popt__name { font-size: clamp(1.9rem, 3.6vw, 3.4rem); line-height: .95; font-weight: 820; text-transform: uppercase; transition: font-stretch .7s var(--ease), color .3s; }
.popt[data-exam="unam_bachillerato"] .popt__name { font-stretch: 64%; }
.popt[data-exam="unam"] .popt__name { font-stretch: 86%; }
.popt[data-exam="unam_suayed"] .popt__name { font-stretch: 122%; }
.popt__tag { color: inherit; }
.popt__nums { grid-area: nums; color: var(--mute); }
.popt:hover { color: var(--dim); }
.popt:hover .bub { border-color: var(--signal); color: var(--signal); }
.popt[aria-checked="true"] { color: var(--paper); background: linear-gradient(90deg, rgba(var(--signal-rgb), .07), transparent 70%); }
.popt[aria-checked="true"] .bub { border-color: var(--signal); color: var(--on-signal); box-shadow: inset 0 0 0 23px var(--signal); transform: scale(1.06); }
.popt[aria-checked="true"] .popt__tag { color: var(--signal); }
.path__stage { position: relative; border: 1px solid var(--line); background: rgba(7, 14, 27, .6); }
.path__viz { position: relative; height: clamp(250px, 32vw, 340px); border-bottom: 1px solid var(--line); }
.path__viz canvas { height: calc(100% - 38px); }
.path__cap { position: absolute; left: 16px; right: 16px; bottom: 10px; color: var(--mute); font-size: 11px; text-transform: none; letter-spacing: .02em; line-height: 1.4; }
.ppanel { padding: clamp(20px, 2.6vw, 36px); display: grid; gap: 26px; }
.ppanel.is-entering { animation: rise .6s var(--ease) both; }
.ppanel__firma { font-size: clamp(1.3rem, 2.2vw, 1.9rem); font-weight: 700; line-height: 1.2; font-stretch: 88%; max-width: 26ch; }
.ppanel__title { font-size: 15px; font-weight: 600; color: var(--dim); margin-top: -14px; }
.ppanel__para { color: var(--dim); max-width: 60ch; }
.ppanel__k { color: var(--mute); margin-bottom: 12px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.stats > div { padding: 14px 16px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats dt { color: var(--mute); }
.stats dd { font-size: clamp(2rem, 3.4vw, 2.8rem); font-weight: 820; font-stretch: 72%; line-height: 1.05; margin-top: 4px; font-variant-numeric: tabular-nums; }
.areas__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: grid; gap: 2px; padding: 9px 13px; min-height: 44px; border: 1px solid var(--line-2); border-radius: 4px; background: none; text-align: left; font-size: 14.5px; font-weight: 600; color: var(--dim); transition: border-color .2s, background-color .2s, color .2s; }
.chip__n { color: var(--mute); font-size: 10.5px; }
.chip:hover { color: var(--paper); border-color: var(--paper); }
.chip[aria-checked="true"] { color: var(--paper); border-color: var(--signal); background: rgba(var(--signal-rgb), .08); }
.chip[aria-checked="true"] .chip__n { color: var(--signal); }
.areas__carreras { margin-top: 12px; color: var(--dim); font-size: 15px; }
.areas__carreras .mono { color: var(--mute); margin-right: 6px; }
.mlist { display: grid; gap: 0 28px; }
.mlist li { display: flex; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 15px; font-weight: 600; }
.mlist__n { flex: none; min-width: 2.4ch; color: var(--signal); font-size: 13px; padding-top: 2px; }
.mlist small { display: block; font-weight: 400; color: var(--mute); font-size: 13px; margin-top: 2px; }
.ticks { display: grid; gap: 10px; }
.ticks li { display: flex; align-items: flex-start; gap: 10px; color: var(--dim); }
.ticks .ic { width: 17px; height: 17px; color: var(--signal); margin-top: 3px; }
.ticks--sm li { font-size: 15px; }
.ppanel > .btn { justify-self: start; }
@media (min-width: 640px) { .mlist { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) {
  .path { grid-template-columns: 5fr 7fr; gap: 40px; align-items: start; }
  .path__opts { position: sticky; top: calc(var(--navh) + 32px); }
}
@media (max-width: 640px) { .ppanel > .btn { justify-self: stretch; white-space: normal; } }

/* ==========================================================================
   ACTO 05 — Precios
   ========================================================================== */
.price { display: grid; gap: 28px; }
.price__k { color: var(--mute); margin-bottom: 14px; }
.price__free { position: relative; background: var(--signal); color: var(--on-signal); padding: clamp(24px, 3vw, 44px); display: flex; flex-direction: column; gap: 18px; overflow: hidden; }
.price__free::before { content: ''; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%; border: 2px solid rgba(18, 13, 0, .18); box-shadow: inset 0 0 0 40px rgba(18, 13, 0, .06); pointer-events: none; }
.price__free .price__k { color: rgba(18, 13, 0, .7); margin: 0; }
.price__zero { font-size: clamp(7rem, 18vw, 15rem); line-height: .78; font-weight: 880; font-stretch: 62%; letter-spacing: -.03em; margin-top: 4px; }
.price__name { font-size: clamp(1.5rem, 2.6vw, 2.2rem); line-height: 1.05; font-weight: 800; font-stretch: 80%; text-transform: uppercase; max-width: 16ch; }
.price__name em { font-style: normal; text-decoration: underline; text-decoration-thickness: .08em; text-underline-offset: .12em; }
.price__sub { color: rgba(18, 13, 0, .75); }
.price__free .ticks li { color: var(--on-signal); font-weight: 600; }
.price__free .ticks .ic { color: var(--on-signal); }
.price__free b, .price__free strong { color: inherit; }
.price__free .btn { align-self: start; background: var(--void); color: var(--signal); margin-top: 6px; }
.price__free .btn:hover { background: #000; box-shadow: 0 14px 40px -14px rgba(0, 0, 0, .6); }
.price__after { display: flex; flex-direction: column; }
.plan { display: grid; gap: 16px; padding: 26px 0; border-top: 1px solid var(--line); }
.plan__name { font-size: clamp(1.4rem, 2.2vw, 1.9rem); font-weight: 800; font-stretch: 82%; text-transform: uppercase; line-height: 1.05; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.plan__badge { font-size: 10.5px; padding: 4px 8px; background: var(--signal); color: var(--on-signal); font-stretch: 100%; }
.plan__desc { color: var(--mute); font-size: 15px; margin-top: 4px; }
.plan__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.plan__price s { color: var(--mute); font-size: 16px; }
.plan__amt { font-size: clamp(2.8rem, 5vw, 4.4rem); line-height: .9; font-weight: 820; font-stretch: 70%; font-variant-numeric: tabular-nums; }
.plan__per { color: var(--mute); }
.plan__promo { color: var(--signal); }
.plan > .btn { justify-self: start; }
.plan__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.plan__note { color: var(--mute); font-size: 13px; }
.plan--max { position: relative; padding-left: 22px; border-left: 2px solid var(--signal); background: linear-gradient(90deg, rgba(var(--signal-rgb), .05), transparent 60%); }
.calc { margin-top: 10px; padding: 20px; border: 1px dashed var(--line-2); }
.calc__q { display: block; font-weight: 600; font-size: 15.5px; }
.calc__row { display: flex; align-items: center; gap: 16px; margin-top: 14px; }
.calc__n { min-width: 3ch; font-size: 22px; color: var(--signal); text-align: right; font-variant-numeric: tabular-nums; }
.calc__out { display: block; margin-top: 12px; color: var(--dim); font-size: 15px; }
.calc__out b { color: var(--paper); }
.calc__out .win { color: var(--signal); }
input[type="range"] { flex: 1; -webkit-appearance: none; appearance: none; height: 30px; background: transparent; }
input[type="range"]::-webkit-slider-runnable-track { height: 2px; background: linear-gradient(90deg, var(--signal) var(--p, 20%), var(--line-2) var(--p, 20%)); }
input[type="range"]::-moz-range-track { height: 2px; background: var(--line-2); }
input[type="range"]::-moz-range-progress { height: 2px; background: var(--signal); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -11px; border-radius: 50%; background: var(--signal); border: 4px solid var(--void); box-shadow: 0 0 0 1.5px var(--signal); }
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--signal); border: 4px solid var(--void); box-shadow: 0 0 0 1.5px var(--signal); }
.pay { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 22px; color: var(--mute); }
.pay span::before { content: '◉'; margin-right: 8px; color: var(--signal); }
@media (min-width: 1024px) {
  .price { grid-template-columns: 5fr 7fr; gap: 48px; align-items: start; }
  .price__free { position: sticky; top: calc(var(--navh) + 28px); }
  .plan { grid-template-columns: 1fr auto; column-gap: 32px; }
  .plan__head { grid-column: 1; }
  .plan__price { grid-column: 2; grid-row: 1; justify-self: end; text-align: right; justify-content: flex-end; }
  .plan__promo { grid-column: 2; text-align: right; }
  .plan .ticks, .plan__actions, .plan__note, .plan > .btn { grid-column: 1 / -1; }
}

/* ==========================================================================
   Testimonios + FAQ
   ========================================================================== */
.voices { display: grid; gap: 0 32px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.voice { padding: 26px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.voice__stars { color: var(--signal); letter-spacing: .2em; font-size: 13px; }
.voice__stars span { color: var(--line-2); }
.voice__q { font-size: 18.5px; line-height: 1.45; color: var(--paper); }
.voice__who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.voice__who > span:last-child { display: grid; }
.voice__who .mono { color: var(--mute); font-size: 11px; }
.voice__av { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 50%; font-size: 18px; }

.faq { display: grid; gap: 16px; }
.qa { border-top: 1px solid var(--line); }
.qa:last-child { border-bottom: 1px solid var(--line); }
.qa summary { display: flex; align-items: flex-start; gap: 18px; padding: 22px 0; cursor: pointer; list-style: none; }
.qa summary::-webkit-details-marker { display: none; }
.qa__n { color: var(--signal); padding-top: 5px; }
.qa__q { flex: 1; font-size: clamp(17px, 1.5vw, 20px); font-weight: 650; line-height: 1.35; }
.qa__ic { width: 22px; height: 22px; color: var(--mute); margin-top: 2px; transition: transform .45s var(--spring), color .2s; }
.qa summary:hover .qa__ic { color: var(--signal); }
.qa[open] .qa__ic { transform: rotate(45deg); color: var(--signal); }
.qa__a { padding: 0 40px 24px 42px; color: var(--dim); max-width: 70ch; }
.qa[open] .qa__a { animation: rise .45s var(--ease); }
.qa__a a { color: var(--signal); text-underline-offset: 3px; }
@media (min-width: 1024px) {
  .faq { grid-template-columns: 5fr 7fr; gap: 48px; align-items: start; }
  .faq__head { position: sticky; top: calc(var(--navh) + 32px); }
}

/* ==========================================================================
   ACTO 06 — Cierre
   ========================================================================== */
.act--next { min-height: 100svh; display: flex; align-items: center; overflow: hidden; isolation: isolate; }
.next__field { z-index: -1; }
.act--next::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(90% 80% at 30% 55%, rgba(3, 6, 12, .92) 0%, rgba(3, 6, 12, .55) 60%, rgba(3, 6, 12, .3) 100%); }
.next__in { position: relative; }
.next__title { font-size: clamp(3.3rem, 10.5vw, 11.5rem); line-height: .86; font-weight: 860; font-stretch: 66%; text-transform: uppercase; letter-spacing: -.012em; }
.next__title > span { display: block; }
.next__signal { color: var(--signal); }
.next__lede { margin-top: 26px; font-size: clamp(16px, 1.4vw, 19px); color: var(--dim); max-width: 52ch; }
.next__lede span { color: var(--paper); font-weight: 600; }
.next__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
@media (max-width: 640px) { .next__actions .btn { width: 100%; white-space: normal; } }

/* ---------- pie ---------- */
.foot { border-top: 1px solid var(--line); padding-block: 56px 28px; color: var(--mute); font-size: 15px; }
.foot__grid { display: grid; gap: 36px; }
.foot__brand p { margin-top: 16px; max-width: 52ch; }
.foot__legal { font-size: 13.5px; }
.foot__legal a { text-decoration: underline; text-underline-offset: 3px; }
.foot__h { color: var(--paper); margin-bottom: 14px; }
.foot ul { display: grid; gap: 10px; }
.foot a { color: var(--dim); text-decoration: none; }
.foot a:hover { color: var(--paper); text-decoration: underline; text-underline-offset: 3px; }
.foot__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 11px; }
@media (min-width: 900px) { .foot__grid { grid-template-columns: 2fr 1fr 1fr; } }

/* ---------- CTA fijo móvil ---------- */
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; display: none; align-items: center; justify-content: space-between; gap: 12px; padding: 10px var(--gut) calc(10px + env(safe-area-inset-bottom)); background: rgba(3, 6, 12, .95); border-top: 1px solid var(--line-2); transform: translateY(110%); transition: transform .45s var(--ease); }
.dock.is-on { transform: none; }
.dock__t { display: grid; font-size: 15px; line-height: 1.2; }
.dock__t .mono { color: var(--mute); font-size: 10.5px; }
@media (max-width: 1023px) { .dock { display: flex; } }

/* ==========================================================================
   Diálogo de autenticación
   ========================================================================== */
.auth {
  padding: 0; border: 0; border-left: 1px solid var(--line-2); color: var(--paper);
  background: var(--panel); width: min(500px, 100vw); max-width: 100vw;
  height: 100%; max-height: 100%; margin: 0 0 0 auto; inset: 0 0 0 auto; overflow-y: auto; overscroll-behavior: contain;
}
.auth[open] { animation: drawer .5s var(--ease); }
.auth.is-closing { animation: drawerOut .28s ease-in forwards; }
.auth::backdrop { background: rgba(2, 4, 8, .72); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
@keyframes drawer { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes drawerOut { to { transform: translateX(40px); opacity: 0; } }
@media (max-width: 640px) {
  .auth { inset: auto 0 0 0; margin: auto 0 0; width: 100%; height: auto; max-height: 94svh; border-left: 0; border-top: 1px solid var(--line-2); border-radius: 14px 14px 0 0; }
  .auth[open] { animation-name: sheet; }
  .auth.is-closing { animation-name: sheetOut; }
  @keyframes sheet { from { transform: translateY(60px); opacity: 0; } to { transform: none; opacity: 1; } }
  @keyframes sheetOut { to { transform: translateY(60px); opacity: 0; } }
}
.auth__in { position: relative; padding: 30px clamp(20px, 4vw, 34px) calc(30px + env(safe-area-inset-bottom)); }
.auth__close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 4px; background: none; color: var(--dim); }
.auth__close:hover { color: var(--paper); border-color: var(--line-2); }
.auth__head { padding-right: 48px; margin-bottom: 24px; }
.auth__k { color: var(--signal); }
.auth__title { margin-top: 10px; font-size: clamp(1.6rem, 3vw, 2rem); line-height: 1.02; font-weight: 820; font-stretch: 78%; text-transform: uppercase; }
.auth__sub { margin-top: 10px; color: var(--mute); font-size: 15px; }
.auth__pref { margin-top: 14px; display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border: 1px solid rgba(var(--signal-rgb), .45); color: var(--paper); }
.auth__pref::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--signal); }
.auth__h3 { margin-top: 14px; font-size: 22px; font-weight: 800; font-stretch: 85%; }
.seg--method { display: grid; grid-template-columns: 1fr 1fr; width: 100%; margin-bottom: 20px; }
.seg--method button { min-height: 44px; font-size: 14.5px; }
.tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.tabs button { position: relative; min-height: 44px; padding: 0; border: 0; background: none; color: var(--mute); font-weight: 650; font-size: 15px; }
.tabs button::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--signal); transform: scaleX(0); transition: transform .35s var(--ease); }
.tabs button[aria-pressed="true"] { color: var(--paper); }
.tabs button[aria-pressed="true"]::after { transform: scaleX(1); }
.form { display: grid; gap: 16px; }
.form__note { color: var(--dim); font-size: 15px; }
.form__note b { word-break: break-all; }
.form__row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.fld label { display: block; margin-bottom: 7px; font-size: 14px; font-weight: 600; color: var(--dim); }
.fld input { width: 100%; height: 52px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 4px; background: var(--void); color: var(--paper); font-size: 16px; transition: border-color .2s, box-shadow .2s; }
.fld input::placeholder { color: #66728a; }
.fld input:focus { outline: none; border-color: var(--signal); box-shadow: 0 0 0 3px rgba(var(--signal-rgb), .2); }
.fld input[aria-invalid="true"] { border-color: var(--bad); }
.fld__hint { margin-top: 6px; color: var(--mute); font-size: 13px; }
.otp { text-align: center; font-family: var(--f-mono) !important; font-size: 24px !important; letter-spacing: .45em; height: 60px !important; }
.tel { display: flex; }
.tel__cc { display: grid; place-items: center; padding: 0 14px; border: 1px solid var(--line-2); border-right: 0; border-radius: 4px 0 0 4px; color: var(--dim); font-size: 14px; }
.tel input { border-radius: 0 4px 4px 0; }
.linkbtn { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0; border: 0; background: none; color: var(--signal); font-size: 14.5px; font-weight: 600; justify-self: center; }
.linkbtn:hover { text-decoration: underline; text-underline-offset: 3px; }
.linkbtn[disabled] { color: var(--mute); cursor: default; text-decoration: none; }
.linkbtn .ic { width: 16px; height: 16px; }
.switch { margin-top: 18px; color: var(--mute); font-size: 14px; text-align: center; }
.or { display: flex; align-items: center; gap: 12px; margin: 16px 0 18px; color: var(--mute); }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.gbtn { min-height: 44px; display: flex; justify-content: center; }
.gbtn__wait { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: 999px; color: var(--mute); font-size: 14px; }
.msg { margin-top: 16px; padding: 12px 14px; border-left: 3px solid var(--bad); background: rgba(var(--bad-rgb), .1); color: #ffc3ba; font-size: 14.5px; }
.msg--ok { border-left-color: var(--ok); background: rgba(var(--ok-rgb), .1); color: #b9f6dc; }
#otpNameField { display: grid; gap: 16px; }
#otpNameField .msg { margin-top: 0; }
.auth__legal { margin-top: 26px; color: var(--mute); font-size: 12.5px; }
.auth__legal a { color: var(--dim); }

/* ---------- movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
}

/* ---------- alto contraste forzado ---------- */
@media (forced-colors: active) {
  .bub, .q__opt, .console, .chip, .popt, .subj { border: 1px solid CanvasText; }
  .q__opt.is-right .bub, .popt[aria-checked="true"] .bub, .chip[aria-checked="true"] { forced-color-adjust: none; background: Highlight; color: HighlightText; }
}

/* SEO: H1 semántico con el estilo de la etiqueta superior del hero */
.hero__h1 { font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; margin: 0; }
.ppanel__guide a { color: var(--signal); font-weight: 600; text-underline-offset: 3px; }
.foot .foot__legal a { text-decoration: underline; text-underline-offset: 3px; }
