@charset "UTF-8";
/* ============================================================
   NIVORA — Landing de preregistro
   Concepto: EL UMBRAL
   ============================================================
   ORDEN DEL ARCHIVO
   01. Tipografías
   02. Tokens
   03. Reset y base
   04. Utilidades y accesibilidad
   05. Capas atmosféricas (grano, luz, haz)
   06. Barra superior
   07. Hero
   08. La señal
   09. Vectores
   10. Acceso anticipado
   11. El umbral
   12. Preregistro (formulario)
   13. Confirmación
   14. Privacidad y footer
   15. Barra fija móvil
   16. Sistema de revelado
   17. prefers-reduced-motion
   ============================================================ */


/* ── 01. TIPOGRAFÍAS ──────────────────────────────────────── */
/* Auto-alojadas. Cero peticiones a terceros. 74 KB en total.  */

@font-face {
  font-family: 'Cabinet Grotesk';
  src: url('../fonts/cabinet-grotesk-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Switzer';
  src: url('../fonts/switzer-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Switzer';
  src: url('../fonts/switzer-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Switzer';
  src: url('../fonts/switzer-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}


/* ── 02. TOKENS ───────────────────────────────────────────── */

:root {
  /* --- MARCA (inmutables) --- */
  --blue:        #5752F2;
  --ivory:       #F8F6F4;
  --black-brand: #171717;
  --ink:         #0B0B0D;

  /* --- Derivados del azul ---
     --blue-soft es el ÚNICO azul admitido para texto pequeño
     sobre fondo oscuro. El azul de marca sobre #0B0B0D da
     3.65:1 y NO alcanza AA para texto normal.                */
  --blue-soft:  #7C78F6;   /* texto/enlaces sobre oscuro  — 5.4:1 */
  --blue-deep:  #4741D9;   /* estado :active               */
  --blue-glow:  rgba(87, 82, 242, 0.30);
  --blue-veil:  rgba(87, 82, 242, 0.08);
  --blue-line:  rgba(87, 82, 242, 0.40);

  /* --- Tinta --- */
  --ink-900: #121214;
  --ink-800: #1A1A1D;
  --hairline-dark: rgba(248, 246, 244, 0.10);

  /* --- Marfil --- */
  --ivory-sunk: #F1EBE7;
  --ivory-line: #E4DCD7;

  /* --- Texto --- */
  --on-dark:        #F8F6F4;
  --on-dark-muted:  #A6A2AD;   /* 7.6:1 sobre --ink */
  --on-light:       #171717;
  --on-light-muted: #67636F;   /* 5.9:1 sobre --ivory */

  /* --- Estado --- */
  --danger: #C4362F;           /* 5.6:1 sobre marfil */
  --danger-dark: #FF8079;      /* sobre tinta */

  /* --- Geometría de marca ---
     20.35° medidos sobre el corte diagonal del monograma.
     Toda diagonal de la página usa exactamente este valor.    */
  --angle: 20.35deg;
  --mono-ratio: 0.919;         /* proporción real del monograma */

  /* --- Tipografía --- */
  --font-display: 'Cabinet Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --font-ui: 'Switzer', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --t-h1:      clamp(2.5rem,  1.60rem + 4.50vw, 4.75rem);
  --t-h2:      clamp(1.875rem, 1.35rem + 2.60vw, 3.25rem);
  --t-stmt:    clamp(1.625rem, 1.24rem + 1.90vw, 2.5rem);
  --t-sub:     clamp(1.0625rem, 1.01rem + 0.27vw, 1.25rem);
  --t-body:    clamp(1rem, 0.98rem + 0.10vw, 1.0625rem);
  --t-label:   0.875rem;
  --t-help:    0.8125rem;
  --t-eyebrow: 0.6875rem;

  /* --- Espaciado --- */
  --pad-x:   clamp(1.5rem, 0.9rem + 3vw, 2.5rem);
  --gap-sec: clamp(6rem, 3.5rem + 12vw, 10rem);
  --wrap:    75rem;   /* 1200px */
  --measure: 42.5rem; /* 680px  */
  --form-w:  32.5rem; /* 520px  */

  /* --- Radios --- */
  --r-field: 8px;
  --r-block: 12px;
  --r-btn:   14px;

  /* --- Movimiento --- */
  --d-instant: 120ms;
  --d-quick:   200ms;
  --d-base:    320ms;
  --d-slow:    520ms;
  --d-cinema:  900ms;
  --e-out:    cubic-bezier(0.22, 1, 0.36, 1);
  --e-inout:  cubic-bezier(0.65, 0, 0.35, 1);
  --e-cinema: cubic-bezier(0.16, 1, 0.30, 1);
  --stagger:  70ms;
}


/* ── 03. RESET Y BASE ─────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--on-dark);
  font-family: var(--font-ui);
  font-size: var(--t-body);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
/* `overflow-x: hidden` en <body> convierte al body en contenedor de
   scroll y puede romper position:sticky en algunos móviles.
   `clip` recorta igual pero NO crea contenedor de scroll, así que la
   transición del umbral queda a salvo. */
@supports (overflow: clip) {
  body { overflow-x: clip; }
}

h1, h2, h3, p, ul, ol, figure, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
legend { padding: 0; }
img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }

h1, h2 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.03;
  text-wrap: balance;
}
h2 { font-size: var(--t-h2); letter-spacing: -0.022em; line-height: 1.08; }

a { color: var(--blue-soft); text-underline-offset: 3px; }

::selection { background: var(--blue); color: var(--ivory); }


/* ── 04. UTILIDADES Y ACCESIBILIDAD ───────────────────────── */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.section { position: relative; padding-block: var(--gap-sec); }

/* La barra superior es fija: sin esto, al navegar por ancla el
   encabezado de destino queda oculto debajo de ella. */
section[id], [id="preregistro"] { scroll-margin-top: 72px; }
@media (min-width: 900px) { section[id] { scroll-margin-top: 84px; } }

/* Al enfocar un campo, que quede por encima del teclado móvil. */
.field, .fieldset, .consent { scroll-margin-block: 120px; }

.eyebrow {
  font-size: var(--t-eyebrow);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1.2;
  color: var(--blue-soft);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip-path: inset(50%);
  overflow: hidden; white-space: nowrap;
}

/* Foco visible en TODA la página. Nunca se elimina sin reemplazo. */
:focus-visible {
  outline: 2px solid var(--blue-soft);
  outline-offset: 3px;
  border-radius: 4px;
}
.on-light :focus-visible,
.ivory :focus-visible { outline-color: var(--blue); }

.skip-link {
  position: absolute;
  top: 0; left: 50%;
  transform: translate(-50%, -120%);
  z-index: 200;
  background: var(--blue);
  color: var(--ivory);
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--r-block) var(--r-block);
  font-size: var(--t-label);
  font-weight: 600;
  text-decoration: none;
  transition: transform var(--d-quick) var(--e-out);
}
.skip-link:focus-visible { transform: translate(-50%, 0); }

/* Separador: hairline horizontal rematada por una diagonal
   en el ángulo exacto del monograma. */
.rule {
  display: flex;
  align-items: center;
  gap: 0;
  margin-block: clamp(3rem, 8vw, 5rem);
}
.rule::before {
  content: '';
  flex: 0 1 8rem;
  height: 1px;
  background: var(--hairline-dark);
}
.rule::after {
  content: '';
  width: 2.25rem;
  height: 1px;
  background: var(--blue-line);
  transform: rotate(var(--angle));
  transform-origin: left center;
  margin-left: 0.5rem;
}


/* ── 05. CAPAS ATMOSFÉRICAS ───────────────────────────────── */

/* Grano: elimina el banding de los degradados en pantallas de
   8 bits y da textura de película. ~1 KB, se pinta una vez.   */
.grain {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Luz volumétrica: la única fuente de luz de la página.
   Nace fuera de cuadro, por detrás del umbral.                */
.glow {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  width: 120vw;
  aspect-ratio: 1 / 0.78;
  right: -32vw;
  bottom: -30vh;
  background: radial-gradient(
    closest-side,
    var(--blue-glow) 0%,
    rgba(87, 82, 242, 0.14) 42%,
    rgba(87, 82, 242, 0.04) 68%,
    transparent 100%
  );
  will-change: transform, opacity;
}

/* Haz diagonal: el corte del monograma a escala de pantalla. */
.beam {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  left: -30%;
  top: 42%;
  width: 160%;
  height: clamp(90px, 14vw, 190px);
  transform: rotate(var(--angle));
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(87, 82, 242, 0.11) 45%,
    rgba(87, 82, 242, 0.11) 55%,
    transparent 100%
  );
  filter: blur(22px);
}


/* ── 06. BARRA SUPERIOR ───────────────────────────────────── */

.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: 56px;
  display: flex;
  align-items: center;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background var(--d-base) var(--e-out),
              border-color var(--d-base) var(--e-out);
}
.topbar__inner {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Monograma: archivo original, proporción real 0.919.
   Nunca se recolorea, deforma ni redibuja.                    */
.mono {
  width: auto;
  height: 28px;
  aspect-ratio: var(--mono-ratio);
}

.topbar__link {
  font-size: var(--t-label);
  font-weight: 500;
  color: var(--on-dark-muted);
  text-decoration: none;
  transition: color var(--d-instant) var(--e-out);
}
.topbar__link:hover { color: var(--on-dark); }

/* Estado tras hacer scroll */
.topbar.is-stuck {
  background: rgba(11, 11, 13, 0.72);
  border-bottom-color: var(--hairline-dark);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
/* Estado sobre el bloque marfil */
.topbar.is-light.is-stuck {
  background: rgba(248, 246, 244, 0.80);
  border-bottom-color: var(--ivory-line);
}
.topbar.is-light .topbar__link { color: var(--on-light-muted); }
.topbar.is-light .topbar__link:hover { color: var(--on-light); }

@media (min-width: 900px) {
  .topbar { height: 64px; }
  .mono { height: 32px; }
}


/* ── 07. HERO ─────────────────────────────────────────────── */

.hero {
  position: relative;
  min-height: 100svh;
  min-height: 640px;
  display: flex;
  align-items: center;
  padding-block: 7rem 6.5rem;   /* deja aire bajo el CTA para el indicador */
  overflow: hidden;
  isolation: isolate;
}
@supports (min-height: 100svh) {
  .hero { min-height: max(100svh, 640px); }
}

.hero__inner { position: relative; z-index: 2; }

.hero__eyebrow { margin-bottom: 1.5rem; }

.hero h1 {
  font-size: var(--t-h1);
  margin-bottom: 1.75rem;
  text-wrap: initial;   /* el quiebre lo controlan los .line, no el navegador */
}
/* Cada frase del titular aprobado ocupa su propia línea. */
.hero h1 .line { display: block; }

.hero__sub {
  font-size: var(--t-sub);
  color: var(--on-dark-muted);
  max-width: 34rem;
  line-height: 1.6;
  margin-bottom: 2.5rem;
  text-wrap: pretty;
}

.hero__micro {
  margin-top: 1.125rem;
  font-size: var(--t-help);
  color: var(--on-dark-muted);
}

/* Indicador de scroll */
.scroll-hint {
  position: absolute;
  z-index: 2;
  left: var(--pad-x);
  bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: var(--t-eyebrow);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
  opacity: 0.7;
}
.scroll-hint__track {
  width: 1px; height: 34px;
  background: linear-gradient(to bottom, var(--blue-soft), transparent);
  animation: hint 2.8s var(--e-inout) infinite;
  transform-origin: top;
}
@keyframes hint {
  0%, 100% { transform: scaleY(0.35); opacity: 0.4; }
  50%      { transform: scaleY(1);    opacity: 1; }
}

@media (min-width: 900px) {
  /* El titular usa todo el ancho para que cada frase quepa en una
     línea; el subtítulo se mantiene estrecho. El contraste de anchos
     es lo que genera la tensión de la composición.                  */
  .hero h1 { font-size: clamp(3.25rem, 1.9rem + 3.1vw, 4.25rem); }
  .hero__sub { max-width: 32rem; }
}


/* ── BOTONES ──────────────────────────────────────────────── */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  min-height: 56px;
  padding: 0 1.75rem;
  border: 0;
  border-radius: var(--r-btn);
  background: var(--blue);
  color: var(--ivory);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 2px 8px rgba(87, 82, 242, 0.20);
  transition: transform var(--d-instant) var(--e-out),
              box-shadow var(--d-instant) var(--e-out),
              background var(--d-instant) var(--e-out);
}
.btn--block { width: 100%; }
.btn--lg { min-height: 58px; }

/* Barrido diagonal en el ángulo del monograma. La firma del
   sistema aplicada al botón.                                  */
.btn::after {
  content: '';
  position: absolute;
  z-index: -1;
  top: -60%; bottom: -60%;
  left: -40%;
  width: 32%;
  transform: rotate(var(--angle)) translateX(-320%);
  background: linear-gradient(to right,
    transparent, rgba(255, 255, 255, 0.26), transparent);
  transition: transform var(--d-slow) var(--e-out);
}
@media (hover: hover) {
  .btn:hover {
    transform: translateY(-2px) scale(1.015);
    box-shadow: 0 8px 24px rgba(87, 82, 242, 0.30);
  }
  .btn:hover::after { transform: rotate(var(--angle)) translateX(560%); }
}
.btn:active { transform: translateY(0) scale(0.985); box-shadow: 0 1px 4px rgba(87, 82, 242, 0.22); }
.btn[aria-busy="true"] { pointer-events: none; }

.btn--ghost {
  background: transparent;
  color: var(--on-light);
  border: 1px solid var(--ivory-line);
  box-shadow: none;
  min-height: 48px;
  font-size: var(--t-label);
}
.btn--ghost::after { display: none; }
@media (hover: hover) {
  .btn--ghost:hover { background: var(--ivory-sunk); transform: none; box-shadow: none; }
}


/* ── 08. LA SEÑAL ─────────────────────────────────────────── */

.signal__list { max-width: var(--measure); margin-inline: auto; }

.signal__item p {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--t-stmt);
  line-height: 1.22;
  letter-spacing: -0.018em;
  text-wrap: balance;
}
.signal__item:last-child p { color: var(--on-dark); }
.signal__item:not(:last-child) p { color: #D9D5DD; }

@media (min-width: 900px) {
  .signal__item:nth-child(2) { transform: translateX(-2rem); }
  .signal__item:nth-child(3) { transform: translateX(2rem); }
}


/* ── 09. VECTORES ─────────────────────────────────────────── */

.vectors__lead {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--t-h2);
  letter-spacing: -0.022em;
  line-height: 1.1;
  max-width: 22ch;
  margin-bottom: clamp(3rem, 7vw, 4.5rem);
  text-wrap: balance;
}

.vectors__grid { display: grid; gap: clamp(2.5rem, 5vw, 3rem); }

/* Contenedor con arco superior. NO es el monograma: es una
   primitiva geométrica que comparte su lenguaje.              */
.vector { position: relative; padding-top: 2.75rem; }
.vector__arch {
  position: absolute;
  top: 0; left: 0;
  width: 3.5rem; height: 2rem;
  border: 1px solid var(--blue-line);
  border-bottom: 0;
  border-radius: 1.75rem 1.75rem 0 0;
  -webkit-mask-image: linear-gradient(to bottom, #000 35%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 35%, transparent 100%);
}
.vector h3 {
  font-family: var(--font-ui);
  font-size: var(--t-eyebrow);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue-soft);
  margin-bottom: 0.875rem;
}
.vector p { color: var(--on-dark-muted); max-width: 26ch; }

.vectors__reserve {
  margin-top: clamp(3rem, 7vw, 4.5rem);
  font-size: var(--t-sub);
  color: var(--on-dark-muted);
}

@media (min-width: 900px) {
  .vectors__grid { grid-template-columns: repeat(3, 1fr); gap: 3rem; }
}


/* ── 10. ACCESO ANTICIPADO ────────────────────────────────── */

.access__grid { display: grid; gap: clamp(2.5rem, 6vw, 3.5rem); }

.access h2 { max-width: 14ch; text-wrap: balance; }

.access__item { display: grid; grid-template-columns: auto 1fr; gap: 1rem; }
.access__item + .access__item { margin-top: 2.25rem; }

/* Viñeta: línea corta en el ángulo exacto de la marca. */
.access__mark {
  width: 1.5rem; height: 1px;
  margin-top: 0.95rem;
  background: var(--blue);
  transform: rotate(var(--angle));
  transform-origin: left center;
}
.access__item h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  font-family: var(--font-ui);
  letter-spacing: -0.005em;
  margin-bottom: 0.375rem;
}
.access__item p { color: var(--on-dark-muted); max-width: 42ch; }

.access__close {
  margin-top: clamp(3rem, 7vw, 4.5rem);
  padding-top: clamp(2rem, 5vw, 3rem);
  border-top: 1px solid var(--hairline-dark);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.375rem, 1.1rem + 1.35vw, 1.9rem);
  line-height: 1.28;
  letter-spacing: -0.018em;
  max-width: 26ch;
  text-wrap: balance;
}

@media (min-width: 900px) {
  .access__grid { grid-template-columns: 5fr 6fr; gap: 4rem; align-items: start; }
  .access__close { grid-column: 1 / -1; }
}


/* ── 11. EL UMBRAL ────────────────────────────────────────── */
/* Transición tinta → marfil. El único momento cinematográfico.
   Sin JS queda como un degradado estático que funciona igual.  */

.threshold {
  position: relative;
  --p: 0;          /* progreso 0→1          · lo escribe motion.js */
  --flood: 0;      /* avance de la luz      · lo escribe motion.js */
  --arch-o: 1;     /* opacidad del arco     · lo escribe motion.js */

  /* Cuánto crece el arco. En móvil parte más pequeño respecto a una
     pantalla alta y estrecha, así que necesita crecer más para que la
     apertura se lea igual de contundente que en escritorio. */
  --arch-grow: 3.2;
}
.threshold__track { height: 85vh; }
.threshold__stage {
  position: sticky;
  top: 0;
  height: 100vh;        /* fallback primero */
  height: 100svh;       /* navegadores modernos: gana esta */
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--ink);
}

/* La luz inunda la pantalla: capa marfil cuya opacidad sigue al
   scroll. Se cruza por opacidad, nunca animando background-color. */
.threshold__stage::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--ivory);
  opacity: var(--flood);
  pointer-events: none;
}

/* Arco de luz. Primitiva geométrica propia, NO el logotipo:
   un solo trazo, sin corte diagonal y sin las patas del monograma.
   Crece lo justo para que su curva superior siga siendo legible;
   se desvanece antes de convertirse en un rectángulo plano.        */
.threshold__arch {
  position: relative;
  z-index: 2;
  width: clamp(132px, 34vw, 190px);
  aspect-ratio: var(--mono-ratio);
  border-radius: 999px 999px 8px 8px;
  transform-origin: bottom center;
  transform: scale(calc(1 + var(--p) * var(--arch-grow)));
  background: linear-gradient(to bottom, #8D89F8 0%, var(--blue) 100%);
  box-shadow: 0 0 100px 26px rgba(87, 82, 242, 0.30);
  opacity: var(--arch-o);
  will-change: transform, opacity;
}

.threshold__word {
  position: absolute;
  z-index: 3;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  letter-spacing: -0.02em;
  color: var(--ivory);
  opacity: 0;
  transition: opacity var(--d-base) var(--e-out);
}
.threshold.is-mid .threshold__word { opacity: 1; }

/* Gama baja / sin JS / movimiento reducido: degradado estático.
   Comunica lo mismo sin sticky, sin escalado y sin coste de render. */
.threshold.is-simple .threshold__track { height: 0; }
.threshold.is-simple .threshold__stage { position: relative; height: 55vh; height: 55svh; }
.threshold.is-simple .threshold__stage::after {
  opacity: 1;
  background: linear-gradient(to bottom, transparent 0%, var(--ivory) 66%);
}
.threshold.is-simple .threshold__arch { transform: scale(1.15); opacity: 1; }
.threshold.is-simple .threshold__word { opacity: 1; }

/* En una pantalla alta y estrecha, centrar el arco deja una franja
   oscura muerta debajo. Se baja el conjunto para que el arco se apoye
   y crezca hacia arriba como una puerta que se abre. */
@media (max-width: 899px) {
  .threshold__stage { padding-top: 16vh; }
}

@media (min-width: 900px) {
  /* En escritorio el arco ya arranca grande respecto al viewport. */
  .threshold { --arch-grow: 1.85; }
}


/* ── 12. PREREGISTRO ──────────────────────────────────────── */

.ivory {
  background: var(--ivory);
  color: var(--on-light);
}
.ivory .eyebrow { color: var(--blue); }
.ivory a { color: var(--blue); }

.signup { padding-block: clamp(4rem, 9vw, 7rem) var(--gap-sec); }
.signup__head { max-width: var(--form-w); margin-inline: auto; text-align: left; }
.signup__eyebrow { margin-bottom: 1rem; }
.signup h2 { margin-bottom: 1rem; }
.signup__sub {
  font-size: var(--t-sub);
  color: var(--on-light-muted);
  margin-bottom: clamp(2.5rem, 6vw, 3.5rem);
  text-wrap: pretty;
}

.form { max-width: var(--form-w); margin-inline: auto; }
.field + .field, .field + .fieldset, .fieldset + .field { margin-top: 1.75rem; }

.field__label,
.fieldset__legend {
  display: block;
  font-size: var(--t-label);
  font-weight: 500;
  color: var(--on-light);
  margin-bottom: 0.5rem;
}
.field__optional { color: var(--on-light-muted); font-weight: 400; }

/* Campos sin caja: solo línea inferior. */
.field__control {
  position: relative;
  display: block;
}
.input {
  width: 100%;
  min-height: 56px;
  padding: 0.5rem 0 0.625rem;
  border: 0;
  border-bottom: 1.5px solid var(--ivory-line);
  border-radius: 0;
  background: transparent;
  font-size: 1rem;          /* 16px mínimo: evita el zoom automático de iOS */
  color: var(--on-light);
  transition: border-color var(--d-quick) var(--e-out);
  -webkit-appearance: none;
  appearance: none;
}
.input::placeholder { color: #A9A3A0; }
textarea.input {
  min-height: 56px;
  padding-top: 0.75rem;
  line-height: 1.55;
  resize: none;
  overflow: hidden;
  font-family: inherit;
}
/* Con ratón/tacto basta la línea azul. Con teclado SIEMPRE hay
   anillo visible: nunca se elimina el foco sin reemplazo. */
.input:focus { outline: none; border-bottom-color: var(--blue); }
.input:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Subrayado que se dibuja de izquierda a derecha al enfocar. */
.field__control::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -1.5px;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 180ms var(--e-out);
}
.field__control:focus-within::after { transform: scaleX(1); }

.field__help, .field__error {
  display: block;
  font-size: var(--t-help);
  line-height: 1.45;
  margin-top: 0.5rem;
}
.field__help { color: var(--on-light-muted); }
.field__error { color: var(--danger); font-weight: 500; }

/* Estados de error */
.field.has-error .input { border-bottom-color: var(--danger); }
.field.has-error .field__control::after { background: var(--danger); }
.field.has-error .field__help { display: none; }
.field.has-error .input { animation: shake 260ms var(--e-inout); }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25%      { transform: translateX(-2px); }
  75%      { transform: translateX(2px); }
}

/* Marca de campo válido: un arco, no una palomita verde. */
.field__ok {
  position: absolute;
  right: 2px; top: 50%;
  width: 14px; height: 8px;
  margin-top: -8px;
  border: 1.5px solid var(--blue);
  border-bottom: 0;
  border-radius: 7px 7px 0 0;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity var(--d-quick) var(--e-out), transform var(--d-quick) var(--e-out);
  pointer-events: none;
}
.field.is-valid .field__ok { opacity: 1; transform: scale(1); }

/* Sugerencia de corrección de dominio de correo */
.field__suggest {
  margin-top: 0.5rem;
  font-size: var(--t-help);
  color: var(--on-light-muted);
}
.field__suggest button {
  background: none; border: 0; padding: 0;
  color: var(--blue); font-weight: 600; font-size: inherit;
  text-decoration: underline; text-underline-offset: 3px;
  cursor: pointer;
}

/* --- WhatsApp: selector de país + número --- */
.phone { display: flex; align-items: stretch; gap: 0.75rem; }
.phone__dial {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  min-height: 56px;
  padding: 0 0.75rem;
  border: 0;
  border-bottom: 1.5px solid var(--ivory-line);
  background: transparent;
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color var(--d-quick) var(--e-out);
}
.phone__dial:hover { border-bottom-color: var(--blue); }
.phone__dial .caret { font-size: 0.7em; color: var(--on-light-muted); }
.phone__number { flex: 1 1 auto; min-width: 0; font-variant-numeric: tabular-nums; }

/* Panel de países */
.dialog-backdrop {
  position: fixed; inset: 0; z-index: 150;
  background: rgba(11, 11, 13, 0.45);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
.country-panel {
  position: fixed;
  z-index: 151;
  left: 0; right: 0; bottom: 0;
  max-height: 78vh; max-height: 78svh;
  display: flex; flex-direction: column;
  background: var(--ivory);
  border-radius: var(--r-block) var(--r-block) 0 0;
  box-shadow: 0 -12px 40px rgba(23, 23, 23, 0.22);
  padding-bottom: env(safe-area-inset-bottom);
  animation: sheet-up 280ms var(--e-out);
}
@keyframes sheet-up { from { transform: translateY(100%); } to { transform: translateY(0); } }
.country-panel__head {
  padding: 1rem var(--pad-x) 0.75rem;
  border-bottom: 1px solid var(--ivory-line);
}
.country-panel__title { font-weight: 600; font-size: var(--t-label); margin-bottom: 0.75rem; }
.country-panel__search {
  width: 100%; min-height: 48px;
  padding: 0 0.875rem;
  border: 1px solid var(--ivory-line);
  border-radius: var(--r-field);
  background: #FFF;
  font-size: 1rem;
}
.country-panel__search:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: transparent; }
.country-panel__list { overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 0.5rem 0 1rem; }
.country-opt {
  display: flex; align-items: center; gap: 0.75rem;
  width: 100%; min-height: 48px;
  padding: 0 var(--pad-x);
  border: 0; background: none;
  text-align: left; font-size: 1rem; cursor: pointer;
}
.country-opt:hover, .country-opt.is-active { background: var(--ivory-sunk); }
.country-opt__dial { margin-left: auto; color: var(--on-light-muted); font-variant-numeric: tabular-nums; }
.country-opt[aria-selected="true"] { color: var(--blue); font-weight: 600; }

@media (min-width: 700px) {
  .country-panel {
    left: 50%; bottom: auto; top: 50%;
    transform: translate(-50%, -50%);
    width: min(26rem, 92vw);
    max-height: 70vh;
    border-radius: var(--r-block);
    animation: pop 160ms var(--e-out);
  }
  @keyframes pop { from { opacity: 0; transform: translate(-50%, -48%) scale(0.98); } }
}

/* --- Nivel: bloques con indicador en arco --- */
.levels { display: grid; gap: 0.75rem; margin-top: 0.75rem; }
.level {
  position: relative;
  display: flex; align-items: center; gap: 0.875rem;
  min-height: 60px;
  padding: 0.75rem 1rem;
  border: 1px solid var(--ivory-line);
  border-radius: var(--r-block);
  cursor: pointer;
  transition: border-color var(--d-instant) var(--e-out),
              background var(--d-instant) var(--e-out);
}
.level input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.level__arch {
  flex: 0 0 auto;
  width: 20px; height: 12px;
  border: 1.5px solid #C9C1BC;
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  transition: border-color var(--d-instant) var(--e-out),
              background var(--d-quick) var(--e-out);
}
.level__text { font-size: 0.9375rem; line-height: 1.35; }
.level:hover { border-color: #CFC7C2; }
/* Estado seleccionado. Se declara por :has() y también por la clase
   .is-checked que escribe form.js, para no depender de :has(). */
.level:has(input:checked),
.level.is-checked { border-color: var(--blue); background: var(--blue-veil); }
.level:has(input:checked) .level__arch,
.level.is-checked .level__arch {
  border-color: var(--blue);
  background: var(--blue);
  animation: arch-in var(--d-quick) var(--e-out);
}
@keyframes arch-in { from { transform: scale(0.6); } to { transform: scale(1); } }
.level:has(input:focus-visible),
.level.is-focus { outline: 2px solid var(--blue); outline-offset: 3px; }
.fieldset.has-error .levels { outline: 1px solid var(--danger); outline-offset: 6px; border-radius: var(--r-block); }

/* --- Consentimiento --- */
.consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.875rem;
  align-items: start;
  margin-top: 2rem;
  min-height: 44px;
  cursor: pointer;
}
.consent input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.consent__box {
  position: relative;
  flex: 0 0 auto;
  width: 22px; height: 22px;
  margin-top: 2px;
  border: 1.5px solid #C9C1BC;
  border-radius: 6px;
  background: #FFF;
  transition: background 140ms var(--e-out), border-color 140ms var(--e-out);
}
.consent__box::after {
  content: '';
  position: absolute;
  left: 6px; top: 3px;
  width: 6px; height: 11px;
  border: 2px solid var(--ivory);
  border-top: 0; border-left: 0;
  transform: rotate(45deg) scale(0);
  transition: transform 180ms var(--e-out) 40ms;
}
.consent input:checked ~ .consent__box { background: var(--blue); border-color: var(--blue); }
.consent input:checked ~ .consent__box::after { transform: rotate(45deg) scale(1); }
.consent input:focus-visible ~ .consent__box { outline: 2px solid var(--blue); outline-offset: 3px; }
.consent__text { font-size: 0.9375rem; line-height: 1.5; }
.consent.has-error .consent__box { border-color: var(--danger); }

.form__error-summary {
  margin-top: 1.5rem;
  padding: 0.875rem 1rem;
  border: 1px solid rgba(196, 54, 47, 0.35);
  border-radius: var(--r-block);
  background: rgba(196, 54, 47, 0.06);
  color: var(--danger);
  font-size: var(--t-help);
  line-height: 1.5;
}
.form__error-summary:empty { display: none; }

.form__submit { margin-top: 2rem; }
.form__note {
  margin-top: 0.875rem;
  text-align: center;
  font-size: var(--t-help);
  color: var(--on-light-muted);
}

/* Cargador en arco: el motivo del monograma girando. */
.loader {
  width: 16px; height: 16px;
  border: 2px solid rgba(248, 246, 244, 0.35);
  border-top-color: var(--ivory);
  border-radius: 999px;
  animation: spin 1.1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Campos deshabilitados durante el envío */
.form.is-sending .input,
.form.is-sending .phone__dial,
.form.is-sending .levels,
.form.is-sending .consent { opacity: 0.6; pointer-events: none; }

/* Honeypot: invisible para humanos, presente para bots. */
.hp {
  position: absolute !important;
  left: -9999px;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}


/* ── 13. CONFIRMACIÓN ─────────────────────────────────────── */

.success { max-width: var(--form-w); margin-inline: auto; scroll-margin-top: 96px; }
.success[hidden] { display: none; }

.success__arch {
  width: 76px; height: 44px;
  margin-bottom: 2rem;
  border: 1.5px solid var(--blue);
  border-bottom: 0;
  border-radius: 38px 38px 0 0;
}
.success__eyebrow { margin-bottom: 1rem; }
.success h2 { margin-bottom: 1.25rem; }
.success__body { font-size: var(--t-sub); color: var(--on-light-muted); text-wrap: pretty; }
.success__body strong { color: var(--on-light); font-weight: 600; }

.success__sep {
  height: 1px;
  background: var(--ivory-line);
  margin-block: clamp(2rem, 5vw, 2.75rem);
}
.success__label {
  font-size: var(--t-label);
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.success__note { color: var(--on-light-muted); font-size: 0.9375rem; }
.success__share { margin-top: 1rem; }

/* Animación de coronación: el arco se dibuja. Cierra el gesto
   que abrió la sección del umbral.                            */
.success.is-in .success__arch {
  animation: arch-draw var(--d-cinema) var(--e-cinema) both;
}
@keyframes arch-draw {
  from { clip-path: inset(100% 0 0 0); opacity: 0; }
  to   { clip-path: inset(0 0 0 0);    opacity: 1; }
}


/* ── 14. PRIVACIDAD Y FOOTER ──────────────────────────────── */

.privacy {
  max-width: var(--form-w);
  margin: clamp(3rem, 7vw, 4rem) auto 0;
  padding: 1.5rem 1.5rem 1.75rem;
  border: 1px solid var(--ivory-line);
  border-radius: var(--r-block);
  background: var(--ivory-sunk);
}
.privacy h2 {
  font-family: var(--font-ui);
  font-size: var(--t-label);
  font-weight: 600;
  letter-spacing: 0;
  margin-bottom: 0.75rem;
}
.privacy p { font-size: 0.875rem; line-height: 1.6; color: var(--on-light-muted); }
.privacy p + p { margin-top: 0.75rem; }

.footer {
  background: var(--ivory);
  padding: clamp(3.5rem, 8vw, 5rem) 0 clamp(2.5rem, 5vw, 3rem);
  text-align: center;
}
.footer__logo {
  height: 24px;
  width: auto;
  margin: 0 auto 1.5rem;
}
.footer__meta {
  font-size: 0.75rem;
  color: var(--on-light-muted);
  line-height: 1.9;
}
.footer__meta a { color: var(--on-light-muted); }
.footer__sep { opacity: 0.45; margin-inline: 0.5rem; }


/* ── 14b. PÁGINAS LEGALES ─────────────────────────────────── */

.legal-page { background: var(--ivory); color: var(--on-light); }
.legal {
  max-width: 44rem;
  margin-inline: auto;
  padding-block: clamp(6rem, 12vw, 8rem) clamp(4rem, 8vw, 6rem);
}
.legal__back {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: var(--t-label); font-weight: 500;
  color: var(--on-light-muted); text-decoration: none;
  margin-bottom: 2.5rem;
}
.legal__back:hover { color: var(--on-light); }
.legal h1 {
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem);
  margin-bottom: 0.75rem;
}
.legal__meta {
  font-size: var(--t-help);
  color: var(--on-light-muted);
  padding-bottom: 2rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--ivory-line);
}
.legal h2 {
  font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.5rem);
  margin-top: 3rem;
  margin-bottom: 0.875rem;
  scroll-margin-top: 84px;
}
.legal h3 {
  font-family: var(--font-ui);
  font-size: 1rem; font-weight: 600;
  margin-top: 1.75rem; margin-bottom: 0.5rem;
}
.legal p, .legal li { line-height: 1.7; color: #38343C; }
.legal p + p { margin-top: 1rem; }
.legal ul, .legal ol { margin: 1rem 0 0; padding-left: 1.25rem; }
.legal ul li { list-style: none; position: relative; padding-left: 1rem; }
.legal ul li + li, .legal ol li + li { margin-top: 0.625rem; }
/* Viñeta en el ángulo de la marca */
.legal ul li::before {
  content: ''; position: absolute; left: 0; top: 0.8em;
  width: 0.6rem; height: 1px; background: var(--blue);
  transform: rotate(var(--angle)); transform-origin: left center;
}
.legal ol { padding-left: 1.5rem; }
.legal ol li { list-style: decimal; }
.legal ol li::marker { color: var(--blue); font-weight: 600; }
.legal strong { font-weight: 600; color: var(--on-light); }

/* Tabla de datos tratados */
.legal-table { width: 100%; margin-top: 1.25rem; border-collapse: collapse; font-size: 0.9375rem; }
.legal-table th, .legal-table td {
  text-align: left; padding: 0.75rem 0.75rem 0.75rem 0;
  border-bottom: 1px solid var(--ivory-line); vertical-align: top;
}
.legal-table th { font-weight: 600; font-size: var(--t-help); text-transform: uppercase; letter-spacing: 0.06em; color: var(--on-light-muted); }
.legal-table-wrap { overflow-x: auto; }

/* Bloque de contacto destacado */
.legal-box {
  margin-top: 1.5rem; padding: 1.25rem 1.5rem;
  background: var(--ivory-sunk);
  border: 1px solid var(--ivory-line);
  border-radius: var(--r-block);
}
.legal-box p { margin: 0; }
.legal-box p + p { margin-top: 0.5rem; }

/* Índice */
.legal-toc { margin: 2rem 0 0; padding: 1.25rem 1.5rem; border: 1px solid var(--ivory-line); border-radius: var(--r-block); }
.legal-toc p { font-size: var(--t-help); font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--on-light-muted); margin-bottom: 0.75rem; }
.legal-toc ol { margin: 0; padding-left: 1.25rem; }
.legal-toc li { margin-top: 0.375rem; }
.legal-toc a { color: var(--on-light); text-decoration: none; }
.legal-toc a:hover { color: var(--blue); text-decoration: underline; }

/* DATO PENDIENTE — visible a propósito. No debe publicarse así. */
.fill {
  background: #FFE9A8;
  border-bottom: 2px solid #C99A00;
  padding: 0 0.25rem;
  font-weight: 600;
  color: #4A3800;
  border-radius: 3px;
}

/* ── 15. BARRA FIJA MÓVIL ─────────────────────────────────── */

.dock {
  position: fixed;
  z-index: 95;
  left: 0; right: 0; bottom: 0;
  padding: 0.75rem var(--pad-x) calc(0.75rem + env(safe-area-inset-bottom));
  background: rgba(11, 11, 13, 0.86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--hairline-dark);
  transform: translateY(120%);
  transition: transform var(--d-base) var(--e-out);
}
.dock.is-open { transform: translateY(0); }
@media (min-width: 900px) { .dock { display: none; } }


/* ── 16. SISTEMA DE REVELADO ──────────────────────────────── */
/* Solo se oculta si JS está activo. Sin JS todo es visible.   */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--d-slow) var(--e-out),
              transform var(--d-slow) var(--e-out);
  transition-delay: calc(var(--i, 0) * var(--stagger));
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* Coreografía de entrada del hero. El contenido YA está pintado;
   lo que se anima es la revelación. Cero impacto en el LCP.    */
.js .hero [data-in] {
  opacity: 0;
  transform: translateY(14px);
  animation: enter var(--d-slow) var(--e-out) forwards;
  animation-delay: calc(260ms + var(--i, 0) * 90ms);
}
.js .hero h1 [data-in] {
  filter: blur(6px);
  animation-name: enter-focus;
}
@keyframes enter { to { opacity: 1; transform: none; } }
@keyframes enter-focus { to { opacity: 1; transform: none; filter: blur(0); } }

.js .hero .glow {
  opacity: 0;
  transform: scale(0.92);
  animation: glow-in var(--d-cinema) var(--e-cinema) 120ms forwards,
             breathe 11s var(--e-inout) 1.1s infinite;
}
@keyframes glow-in { to { opacity: 1; transform: scale(1); } }
@keyframes breathe {
  0%, 100% { opacity: 0.88; transform: scale(1); }
  50%      { opacity: 1;    transform: scale(1.04); }
}
/* Se detiene cuando el hero sale de pantalla. */
.hero.is-off .glow { animation-play-state: paused; }

.js .hero .beam {
  opacity: 0;
  animation: beam-in 1200ms var(--e-cinema) 1100ms forwards;
}
@keyframes beam-in {
  from { opacity: 0; transform: rotate(var(--angle)) translateX(-14%); }
  to   { opacity: 1; transform: rotate(var(--angle)) translateX(0); }
}


/* ── 17. MOVIMIENTO REDUCIDO ──────────────────────────────── */
/* No es "apagar animaciones". Es una experiencia paralela
   completa: se conserva la composición y el color, se elimina
   todo desplazamiento, escala y desenfoque.                    */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 150ms !important;
    scroll-behavior: auto !important;
  }

  .js [data-reveal],
  .js .hero [data-in] {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    animation: none !important;
    transition: opacity 150ms linear !important;
  }

  .js .hero .glow,
  .js .hero .beam { opacity: 1 !important; transform: none !important; animation: none !important; }
  .hero .beam { transform: rotate(var(--angle)) !important; }

  /* El umbral pasa a degradado estático: sin sticky, sin escala. */
  .threshold__track { height: 0 !important; }
  .threshold__stage { position: relative !important; height: 40svh !important; height: 40vh !important; }
  .threshold__arch { transform: scale(1.1) !important; }
  .threshold__word { opacity: 1 !important; }

  .scroll-hint__track { animation: none !important; opacity: 0.7; }
  .btn::after { display: none !important; }
  .field.has-error .input { animation: none !important; }
  .success.is-in .success__arch { animation: none !important; clip-path: none !important; opacity: 1 !important; }
  .dock { transition: none !important; }
}

/* Alto contraste del sistema */
@media (forced-colors: active) {
  .glow, .beam, .grain, .threshold__arch { display: none; }
  .btn { border: 1px solid ButtonText; }
  .input { border-bottom: 1px solid ButtonText; }
  .level:has(input:checked) { outline: 2px solid Highlight; }
}
