/* =============================================================
   LectorApp — styles.css
   Dirección: luminosa y clara · blanco + azul de la app (#3478f6) ·
   los colores del logo (amarillo, rojo, verde, morado) como lomos de libro.
   La pieza memorable: el "carnet de tester" del hero.
   ============================================================= */

/* =============================================================
   1. Fuentes (auto-alojadas: sin peticiones a terceros)
   ============================================================= */
/* Versiones «-lt»: rangos de peso (400–700) y de tamaño óptico recortados con tools/optimize-assets.py.
   La cursiva solo la usan textos bajo el pliegue: en las páginas normales la carga main.js tras el primer pintado. */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/fraunces-lt.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/fraunces-italic-lt.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/inter-lt.woff2") format("woff2");
}

/* =============================================================
   2. Tokens
   ============================================================= */
:root {
  --blue: #3478f6;          /* azul de la app */
  --blue-deep: #1f5fd8;     /* azul para texto sobre blanco (contraste AA) */
  --blue-ink: #163d8f;
  --blue-dark: #2459c9;
  --sky: #eaf1ff;           /* azul muy claro: fichas, píldoras */
  --mist: #f5f8ff;          /* fondo de secciones alternas */

  --white: #ffffff;
  --ink: #1b2236;           /* azul marino del trazo del logo */
  --ink-soft: #414963;
  --mute: #686f86;
  --line: rgba(27, 34, 54, 0.1);
  --line-strong: rgba(27, 34, 54, 0.18);

  /* colores del logo (lomos de libro) */
  --yellow: #fbbf42;
  --red: #e7434b;
  --green: #209d76;
  --purple: #6f4892;
  --amber: #8f5f00;         /* amarillo oscuro, legible como texto/icono */

  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);       /* entradas y respuestas: arranca rápido */
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);   /* movimiento en pantalla */
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --gutter: clamp(1.25rem, 4vw, 3rem);
  --max: 1200px;
  --radius: 20px;
  --nav-h: 72px;
  --shadow-blue: 0 30px 60px -32px rgba(52, 120, 246, 0.45);
  --shadow-soft: 0 24px 50px -34px rgba(27, 34, 54, 0.35);
}

/* =============================================================
   3. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  overflow-x: clip;
  -webkit-tap-highlight-color: rgba(52, 120, 246, 0.14);
}
body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.08; letter-spacing: -0.02em; font-weight: 600; }
ul, ol { padding: 0; list-style: none; }
input, textarea { font: inherit; color: inherit; }
::selection { background: var(--blue); color: var(--white); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) {
  animation-duration: 0.35s;
  animation-timing-function: var(--ease-out);
}

/* =============================================================
   4. Utilidades
   ============================================================= */
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 820px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: 0.6rem 1rem; background: var(--blue); color: var(--white);
  border-radius: 10px; font-weight: 600;
}
.skip-link:focus { top: 1rem; }
.center { text-align: center; }
.soft { color: var(--mute); }
.text-link { color: var(--blue-deep); text-decoration: underline; text-underline-offset: 3px; }

/* =============================================================
   5. Tipografía
   ============================================================= */
.display {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.02;
}
.display em, .h2 em, .h3 em { font-style: italic; font-weight: 450; }
.h1 { font-size: clamp(2.2rem, 5.6vw + 0.4rem, 5rem); }
.h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(2rem, 4.4vw, 3.4rem); letter-spacing: -0.028em; line-height: 1.06; }
.h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.45rem, 2.4vw, 1.95rem); letter-spacing: -0.02em; line-height: 1.12; }
.lead { font-size: clamp(1.06rem, 1.5vw, 1.22rem); line-height: 1.6; color: var(--ink-soft); max-width: 58ch; }

.kicker {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.9rem; font-weight: 600; letter-spacing: 0; color: var(--blue-deep);
}
.kicker::before { content: ""; width: 20px; height: 2px; border-radius: 2px; background: currentColor; opacity: 0.55; }
.center .kicker::after { content: ""; width: 20px; height: 2px; border-radius: 2px; background: currentColor; opacity: 0.55; }

/* =============================================================
   6. Componentes
   ============================================================= */

/* Botones */
.btn {
  --b-bg: var(--blue); --b-fg: var(--white);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 52px; padding: 0.85rem 1.5rem;
  border-radius: 999px; font-weight: 600; font-size: 0.98rem; letter-spacing: -0.005em;
  background: var(--b-bg); color: var(--b-fg);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), background-color 0.2s, border-color 0.2s, color 0.2s;
  white-space: nowrap;
}
.btn svg { width: 19px; height: 19px; flex: none; }
.btn .arrow { transition: transform 0.3s var(--ease-out); }
.btn:hover .arrow { transform: translateX(3px); }
.btn-primary { box-shadow: 0 12px 28px -12px rgba(52, 120, 246, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.btn-ghost { --b-bg: transparent; --b-fg: var(--ink); border: 1px solid var(--line-strong); }
.btn-dark { --b-bg: var(--ink); --b-fg: var(--white); }
.btn:active { transform: scale(0.97); transition-duration: 0.1s; }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: #2a6ae6; transform: translateY(-2px); box-shadow: 0 18px 36px -14px rgba(52, 120, 246, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
  .btn-ghost:hover { border-color: var(--blue); color: var(--blue-deep); transform: translateY(-2px); }
  .btn-dark:hover { background: #10152a; transform: translateY(-2px); }
}
.btn-sm { min-height: 42px; padding: 0.55rem 1.1rem; font-size: 0.9rem; }
.btn[disabled] { opacity: 0.65; cursor: not-allowed; transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.8rem; }

/* Píldoras */
.pill {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.42rem 0.95rem 0.42rem 0.75rem; border-radius: 999px;
  font-size: 0.86rem; font-weight: 500;
  background: var(--sky); color: var(--blue-ink);
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(32, 157, 118, 0.6); animation: pulse 2.4s var(--ease-soft) infinite; }
.badge {
  display: inline-block; padding: 0.2rem 0.55rem; border-radius: 999px;
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.02em;
  background: rgba(111, 72, 146, 0.12); color: var(--purple); vertical-align: middle;
}

/* Marco de móvil */
.phone {
  position: relative;
  width: min(300px, 72vw);
  border-radius: 46px;
  padding: 10px;
  background: linear-gradient(145deg, #2d3347, #12162a 55%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 40px 70px -30px rgba(27, 34, 54, 0.5),
    0 20px 40px -30px rgba(27, 34, 54, 0.4);
}
.phone::before { /* cámara */
  content: ""; position: absolute; z-index: 3; top: 20px; left: 50%; translate: -50% 0;
  width: 11px; height: 11px; border-radius: 50%; background: #06070a;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.04);
}
.phone-screen {
  position: relative; width: 100%; aspect-ratio: 640 / 1386;
  border-radius: 37px; overflow: hidden; background: #f4f6fa;
}
.phone-screen img { width: 100%; height: 100%; object-fit: contain; }
.phone-screen video { width: 100%; height: 100%; object-fit: cover; background: #000; }
.phone-screen::after { /* reflejo */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0) 32%);
}

/* Chips flotantes sobre los móviles */
.chip {
  position: absolute; z-index: 4;
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.7rem 1rem 0.7rem 0.75rem; border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink); font-size: 0.86rem; line-height: 1.2;
  box-shadow: 0 20px 40px -18px rgba(27, 34, 54, 0.35), 0 0 0 1px rgba(27, 34, 54, 0.06);
  white-space: nowrap;
}
@supports (backdrop-filter: blur(12px)) {
  .chip { background: rgba(255, 255, 255, 0.82); backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%); }
}
.chip b { display: block; font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em; }
.chip small { color: var(--mute); font-size: 0.76rem; }
.chip-ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; flex: none; }
.chip-ico svg { width: 20px; height: 20px; }
.chip-ico.red { background: rgba(231, 67, 75, 0.12); color: var(--red); }
.chip-ico.green { background: rgba(32, 157, 118, 0.12); color: var(--green); }
.chip-ico.purple { background: rgba(111, 72, 146, 0.12); color: var(--purple); }

/* Tarjetas */
.card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 2.6vw, 2.1rem);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), border-color 0.3s;
}
@media (hover: hover) and (pointer: fine) {
  .card:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); border-color: var(--line-strong); }
}

.icon-tile {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px;
  margin-bottom: 1.2rem; flex: none;
}
.icon-tile svg { width: 24px; height: 24px; }
.icon-tile.blue { background: var(--sky); color: var(--blue-deep); }
.icon-tile.red { background: rgba(231, 67, 75, 0.1); color: var(--red); }
.icon-tile.green { background: rgba(32, 157, 118, 0.11); color: var(--green); }
.icon-tile.purple { background: rgba(111, 72, 146, 0.11); color: var(--purple); }
.icon-tile.gold { background: rgba(251, 191, 66, 0.22); color: var(--amber); }
.icon-tile.ink { background: rgba(27, 34, 54, 0.07); color: var(--ink); }

/* Logo */
.logo { display: inline-flex; align-items: center; gap: 0.55rem; font-weight: 700; font-size: 1.1rem; letter-spacing: -0.02em; }
.logo-img { width: 36px; height: 36px; object-fit: contain; }

/* ---------- Carnet de tester (formulario) ---------- */
.tcard {
  position: relative; width: 100%; max-width: 31rem;
  padding: 1.7rem 1.5rem 1.4rem; border-radius: 22px;
  background: var(--white); color: var(--ink); text-align: left;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-blue), 0 2px 0 rgba(27, 34, 54, 0.03);
  overflow: hidden;
}
.tcard::before { /* canto del carnet: azul de la app + lomos del logo */
  content: ""; position: absolute; inset: 0 0 auto 0; height: 7px;
  background: linear-gradient(90deg, var(--blue) 0 52%, var(--yellow) 52% 64%, var(--red) 64% 76%, var(--green) 76% 88%, var(--purple) 88% 100%);
}
.tcard-head { display: flex; align-items: center; gap: 0.85rem; margin-bottom: 1.3rem; }
.tcard-ico { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: var(--sky); color: var(--blue-deep); flex: none; }
.tcard-ico svg { width: 22px; height: 22px; }
.tcard-head b { display: block; font-size: 1.05rem; letter-spacing: -0.01em; line-height: 1.2; }
.tcard-head span { font-size: 0.86rem; color: var(--mute); }

.field label { display: block; font-size: 0.88rem; font-weight: 600; margin-bottom: 0.45rem; }
.field .input-wrap { position: relative; }
.field .input-wrap svg { position: absolute; left: 1rem; top: 50%; translate: 0 -50%; width: 19px; height: 19px; color: var(--mute); pointer-events: none; }
.field input[type="email"], .field input[type="password"] {
  width: 100%; min-height: 54px; padding: 0.8rem 1rem 0.8rem 2.85rem;
  border-radius: 14px; border: 1.5px solid var(--line-strong); background: var(--mist);
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}
.field input[type="password"] { padding-left: 1rem; }
.field input::placeholder { color: #98a0b6; }
.field input:focus { outline: none; border-color: var(--blue); background: var(--white); box-shadow: 0 0 0 4px rgba(52, 120, 246, 0.18); }
.field + .field { margin-top: 1.1rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; gap: 0.75rem; align-items: flex-start; margin-top: 0.9rem; padding: 0.35rem 0; font-size: 0.86rem; line-height: 1.5; color: var(--ink-soft); cursor: pointer; }
.consent input { flex: none; width: 24px; height: 24px; margin: 0; accent-color: var(--blue); }
.consent a { color: var(--blue-deep); text-decoration: underline; text-underline-offset: 3px; }
.tcard .btn, .form-card form .btn { width: 100%; margin-top: 1.2rem; }
.form-msg { margin-top: 0.8rem; font-size: 0.9rem; font-weight: 500; color: #c2323a; min-height: 1.2em; }
.form-msg.is-info { color: var(--blue-ink); }
.form-note { margin-top: 0.9rem; padding-top: 0.9rem; border-top: 1px solid var(--line); font-size: 0.82rem; line-height: 1.5; color: var(--mute); }
.spinner { width: 20px; height: 20px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.35); border-top-color: var(--white); animation: spin 0.8s linear infinite; }
.is-loading .btn-label { display: none; }
.btn .spinner { display: none; }
.is-loading .btn .spinner { display: block; }

/* =============================================================
   7. Navegación
   ============================================================= */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--nav-h);
  color: var(--ink);
  transition: background-color 0.3s var(--ease-soft), box-shadow 0.3s;
}
.nav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.nav-links { display: none; align-items: center; gap: 2rem; font-size: 0.95rem; font-weight: 500; }
.nav-links a { position: relative; color: var(--ink-soft); transition: color 0.2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -7px; height: 2px; border-radius: 2px; background: var(--blue);
}
.nav-right { display: flex; align-items: center; gap: 0.9rem; }
.lang-switch { display: none; align-items: center; gap: 0.35rem; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em; }
.lang-switch a, .lang-switch span { padding: 0.25rem 0.35rem; border-radius: 6px; }
.lang-switch span[aria-current] { color: var(--blue-deep); }
.lang-switch a { color: var(--mute); }
.lang-switch a:hover { color: var(--ink); }
.nav .btn { display: none; }

.nav.is-solid { background: rgba(255, 255, 255, 0.92); box-shadow: 0 1px 0 var(--line); }
@supports (backdrop-filter: blur(12px)) {
  .nav.is-solid { background: rgba(255, 255, 255, 0.78); backdrop-filter: blur(18px) saturate(170%); -webkit-backdrop-filter: blur(18px) saturate(170%); }
}

.menu-toggle { display: grid; place-items: center; width: 44px; height: 44px; margin-right: -10px; border-radius: 12px; }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform 0.35s var(--ease-out), opacity 0.2s;
}
.menu-toggle span { position: relative; }
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
.menu-open .menu-toggle span { background: transparent; }
.menu-open .menu-toggle span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: var(--nav-h) 0 0 0; z-index: 99;
  display: flex; flex-direction: column; gap: 0.3rem;
  padding: 1.5rem var(--gutter) 2.5rem;
  background: var(--white); color: var(--ink);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out), visibility 0s 0.3s;
}
.mobile-menu a.m-link {
  font-family: var(--serif); font-size: 2rem; font-weight: 500; letter-spacing: -0.02em;
  padding: 0.55rem 0; border-bottom: 1px solid var(--line);
}
.mobile-menu .btn { margin-top: 1.5rem; }
.mobile-menu .m-soon { margin-top: 0.9rem; display: flex; align-items: center; justify-content: center; gap: 0.5rem; color: var(--mute); font-size: 0.9rem; }
.mobile-menu .m-soon span { width: 15px; display: inline-flex; }
.mobile-menu .m-lang { margin-top: auto; display: flex; gap: 1rem; font-size: 0.9rem; color: var(--mute); }
.mobile-menu .m-lang [aria-current] { color: var(--blue-deep); font-weight: 600; }
.menu-open .mobile-menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.menu-open { overflow: hidden; }
.menu-open .nav { background: var(--white); }

/* =============================================================
   8. Secciones
   ============================================================= */
.section { position: relative; padding-block: clamp(3.5rem, 9vw, 7.5rem); }
.section-mist { background: var(--mist); }
.section-head { max-width: 740px; margin-bottom: clamp(2.6rem, 5vw, 4rem); }
.section-head.center { margin-inline: auto; }
.section-head .kicker { margin-bottom: 1.1rem; }
.section-head .lead { margin-top: 1.2rem; }
.section-head.center .lead { margin-inline: auto; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: clip; isolation: isolate;
  display: flex; align-items: center;
  padding-top: calc(var(--nav-h) + clamp(1rem, 2.5vw, 2rem)); padding-bottom: clamp(2rem, 4vw, 3.5rem);
}
.hero-bg {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(52% 55% at 88% 12%, rgba(52, 120, 246, 0.16), transparent 70%),
    radial-gradient(38% 42% at 0% 92%, rgba(251, 191, 66, 0.16), transparent 70%),
    radial-gradient(30% 34% at 52% 100%, rgba(111, 72, 146, 0.07), transparent 70%),
    linear-gradient(180deg, #fff 0%, var(--mist) 100%);
}
.hero-grid { display: grid; gap: 3rem; align-items: center; width: 100%; }
.hero-copy .pill { margin-bottom: 1.5rem; }
.hero-title { max-width: 15ch; font-size: clamp(2.2rem, 4.6vw + 0.4rem, 4.4rem); }
.hero-sub { margin-top: 1.4rem; font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--ink-soft); max-width: 52ch; }
/* En escritorio el texto no debe invadir el móvil de fondo ni los globos flotantes */
@media (min-width: 960px) { .hero-sub { max-width: min(31rem, 40vw); } }
.hero-sub strong { color: var(--ink); font-weight: 600; }
.hero-copy .btn-row { margin-top: 2rem; }
.hero-copy .tcard { margin-top: 2rem; }
.hero-micro { margin-top: 1.1rem; font-size: 0.86rem; color: var(--mute); display: flex; align-items: center; gap: 0.5rem; }
.hero-micro svg { width: 15px; height: 15px; color: var(--blue); flex: none; }

.hero-visual { position: relative; display: grid; place-items: center; min-height: 480px; perspective: 1400px; }
.hero-visual .halo {
  position: absolute; width: 88%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(52, 120, 246, 0.22), rgba(52, 120, 246, 0) 64%);
  filter: blur(14px);
}
/* el móvil del hero se ajusta a la altura de la pantalla: siempre entero */
.hero-stage { --pw: min(300px, calc((100svh - var(--nav-h) - 6rem - 20px) * 0.4618 + 20px)); position: relative; transition: transform 0.9s var(--ease-out); }
.hero-stage .phone { width: var(--pw); }
.hero-stage .phone-back { position: absolute; top: 40px; left: -46%; transform: rotate(-8deg) scale(0.86); }
.hero-stage .phone-back .phone-screen::after { background: rgba(255, 255, 255, 0.18); }
.hero-stage .phone-front { position: relative; }
.hero-stage .chip-1 { top: 14%; left: -40%; }
.hero-stage .chip-2 { top: 46%; right: -46%; }
.hero-stage .chip-3 { bottom: 16%; left: -44%; }

/* ---------- Marquee ---------- */
.marquee {
  position: relative; overflow: hidden; background: var(--sky); color: var(--blue-ink);
  padding-block: 1rem; border-block: 1px solid rgba(52, 120, 246, 0.14);
}
.marquee-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee-track ul { display: flex; align-items: center; }
.marquee-track li {
  display: flex; align-items: center; gap: 2rem; padding-right: 2rem;
  font-weight: 600; font-size: 0.98rem; white-space: nowrap;
}
.marquee-track li::after { content: ""; width: 9px; height: 22px; border-radius: 2px; background: var(--yellow); }
.marquee-track li:nth-child(4n+2)::after { background: var(--red); }
.marquee-track li:nth-child(4n+3)::after { background: var(--green); }
.marquee-track li:nth-child(4n+4)::after { background: var(--purple); }
.marquee:hover .marquee-track { animation-play-state: paused; }

/* Número de paso (página de tester) */
.step-n {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--blue); color: var(--white); font-weight: 700; font-size: 1.05rem;
}

/* ---------- Vídeos ---------- */
.vid-wide { display: grid; gap: 2rem; justify-items: center; margin-bottom: 2.5rem; }
.vid-row { display: flex; flex-wrap: wrap; gap: 2.5rem 2rem; justify-content: center; align-items: flex-start; }
.vid { display: flex; flex-direction: column; align-items: center; gap: 1.1rem; text-align: center; }
.vid .phone { width: min(260px, 70vw); }
.vid-h { width: 100%; max-width: 920px; }
.vid-frame { width: 100%; border-radius: 22px; overflow: hidden; background: #000; box-shadow: var(--shadow-soft), 0 0 0 1px var(--line); aspect-ratio: 16 / 9; }
.vid-frame video { width: 100%; height: 100%; object-fit: cover; }
.vid figcaption b { display: block; font-weight: 650; }
.vid figcaption span { display: block; margin-top: 0.2rem; color: var(--ink-soft); font-size: 0.95rem; max-width: 34ch; margin-inline: auto; }

/* ---------- Manifiesto ---------- */
.manifesto-grid { display: grid; gap: 2.5rem; }
.manifesto-quote {
  font-family: var(--serif); font-weight: 450; font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  line-height: 1.18; letter-spacing: -0.02em; color: var(--ink);
}
.manifesto-quote em { font-style: italic; }
.manifesto-body { display: grid; gap: 1.3rem; align-content: start; }
.manifesto-body p { color: var(--ink-soft); font-size: 1.07rem; }
.mission {
  margin-top: 0.8rem; padding: 1.5rem 1.6rem; border-radius: 18px;
  background: var(--sky); border: 0; border-left: 5px solid var(--blue);
}
.mission small { display: block; font-size: 0.82rem; font-weight: 600; color: var(--blue-deep); margin-bottom: 0.5rem; }
.mission p { font-family: var(--serif); font-size: 1.2rem; line-height: 1.4; color: var(--ink); }

.check-list { margin-top: 1.8rem; display: grid; gap: 0.85rem; }
.check-list li { display: flex; gap: 0.8rem; align-items: flex-start; font-size: 1.02rem; color: var(--ink-soft); }
.check-list svg { width: 22px; height: 22px; flex: none; color: var(--green); margin-top: 0.1rem; }

/* ---------- Promesa (sin anuncios): banda azul ---------- */
.promise { overflow: clip; color: var(--white); background: linear-gradient(160deg, var(--blue) 0%, var(--blue-dark) 100%); }
.promise-title { font-size: clamp(2.3rem, 5.4vw, 4.4rem); max-width: 19ch; margin-inline: auto; }
.promise .lead { margin: 1.6rem auto 0; text-align: center; color: rgba(255, 255, 255, 0.88); }
.zeros { margin-top: clamp(2.8rem, 6vw, 4.2rem); display: grid; gap: 1rem; }
.zero {
  position: relative; overflow: hidden; padding: clamp(1.6rem, 3vw, 2.4rem) clamp(1.5rem, 3vw, 2.4rem) clamp(1.7rem, 3vw, 2.5rem);
  border-radius: 28px; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.22);
}
.zero::before { /* canto de lomos del logo */
  content: ""; position: absolute; inset: 0 0 auto 0; height: 6px;
  background: linear-gradient(90deg, var(--yellow) 0 25%, var(--red) 25% 50%, var(--green) 50% 75%, var(--purple) 75% 100%);
}
.zero-n { display: flex; align-items: baseline; gap: 0.7rem; margin-top: 0.4rem; }
.zero-n b { font-family: var(--serif); font-weight: 500; font-size: clamp(6rem, 17vw, 9.5rem); line-height: 0.82; letter-spacing: -0.06em; color: var(--white); font-variant-numeric: lining-nums; }
.zero-n span { font-family: var(--serif); font-style: italic; font-weight: 450; font-size: clamp(1.6rem, 3.4vw, 2.2rem); letter-spacing: -0.02em; color: rgba(255, 255, 255, 0.92); }
.zero h3 { margin-top: 1.3rem; font-family: var(--sans); font-weight: 650; font-size: 1.2rem; letter-spacing: -0.01em; color: var(--white); }
.zero p { margin-top: 0.5rem; color: rgba(255, 255, 255, 0.84); font-size: 1rem; max-width: 34ch; }
@media (min-width: 720px) { .zeros { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; } }

/* ---------- Barra fija (solo móvil) ---------- */
.sticky-cta {
  position: fixed; inset: auto 0 0 0; z-index: 90; display: none;
  padding: 0.7rem var(--gutter) calc(0.7rem + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.92) 38%);
  pointer-events: none;
  transform: translateY(110%); transition: transform 0.4s var(--ease-out);
}
.sticky-cta .btn { width: 100%; pointer-events: auto; box-shadow: 0 14px 30px -10px rgba(52, 120, 246, 0.8); }
.sticky-cta.is-on { transform: none; }

/* ---------- Fundador ---------- */
.founder { display: grid; gap: 2.5rem; align-items: center; }
.founder-photo { position: relative; width: min(340px, 100%); margin-inline: auto; isolation: isolate; }
.founder-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 26px; }
.founder-photo::after {
  content: ""; position: absolute; inset: 14px -14px -14px 14px; z-index: -1; border-radius: 26px;
  background: var(--sky);
}
.founder blockquote { font-family: var(--serif); font-weight: 450; font-size: clamp(1.5rem, 2.8vw, 2.25rem); line-height: 1.22; letter-spacing: -0.02em; }
.founder blockquote em { font-style: italic; }
.founder figcaption { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.1rem; }
.founder figcaption b { font-weight: 650; }
.founder figcaption span { color: var(--mute); font-size: 0.94rem; }
.founder .btn { margin-top: 1.8rem; }

/* ---------- Preguntas frecuentes: franja fina que se despliega ---------- */
.faq-strip { background: var(--white); border-top: 1px solid var(--line); }
.faq-all > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 64px; padding: 1.1rem 0; cursor: pointer; list-style: none;
}
.faq-all > summary::-webkit-details-marker { display: none; }
.faq-all > summary h2 { font-family: var(--sans); font-size: 1.05rem; font-weight: 650; letter-spacing: -0.01em; line-height: 1.3; }
.plus { position: relative; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--sky); transition: background-color 0.25s; }
.plus::before, .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: var(--blue-deep); translate: -50% -50%; border-radius: 2px; transition: background-color 0.25s; }
.plus::after { transform: rotate(90deg); transition: transform 0.35s var(--ease-out), background-color 0.25s; }
details[open] > summary .plus { background: var(--blue); }
details[open] > summary .plus::before, details[open] > summary .plus::after { background: var(--white); }
details[open] > summary .plus::after { transform: rotate(0deg); }
.faq { display: grid; gap: 0.6rem; padding-bottom: 2rem; }
.faq details { background: var(--mist); border: 1px solid var(--line); border-radius: 16px; transition: border-color 0.3s; }
.faq details[open] { border-color: rgba(52, 120, 246, 0.45); background: var(--white); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 56px; padding: 0.9rem 1.2rem; cursor: pointer; list-style: none; font-weight: 600; font-size: 1rem; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq .answer { padding: 0 1.2rem 1.2rem; color: var(--ink-soft); max-width: 66ch; }
.faq-all[open] > .faq, .faq details[open] .answer { animation: faqIn 0.28s var(--ease-out); }
@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- CTA final ---------- */
.cta-final { overflow: clip; isolation: isolate; text-align: center; background: linear-gradient(180deg, #fff 0%, var(--sky) 100%); padding-bottom: clamp(9rem, 14vw, 12rem); }
.cta-final .h2 { font-size: clamp(2.2rem, 5vw, 4.2rem); max-width: 16ch; margin-inline: auto; }
.cta-final .lead { margin: 1.4rem auto 0; }
.cta-final .btn-row { justify-content: center; margin-top: 2.2rem; }
.cta-form { margin-top: 2.2rem; display: flex; justify-content: center; }
.cta-final .books {
  position: absolute; z-index: -1; inset: auto 0 0 0;
  display: flex; align-items: flex-end; justify-content: center; gap: 5px; pointer-events: none;
}
.cta-final .books { gap: clamp(2px, 0.5vw, 5px); padding-inline: 0.5rem; }
.cta-final .books i { display: block; flex: 1 1 0; max-width: 30px; border-radius: 4px 4px 0 0; }

/* ---------- Footer ---------- */
.footer { background: var(--white); color: var(--ink-soft); padding-block: clamp(3.5rem, 7vw, 5rem) 2rem; border-top: 1px solid var(--line); }
.footer-grid { display: grid; gap: 2.8rem; }
.footer .logo { color: var(--ink); }
.footer-brand p { margin-top: 1rem; max-width: 34ch; color: var(--mute); font-size: 0.95rem; }
.footer-brand .mail { display: inline-flex; margin-top: 1.2rem; color: var(--blue-deep); font-weight: 500; border-bottom: 1px solid rgba(31, 95, 216, 0.35); padding-bottom: 2px; font-size: 0.95rem; }
.footer-brand .mail:hover { border-color: var(--blue-deep); }
.footer-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.footer-col h2 { font-family: var(--sans); font-size: 0.86rem; font-weight: 650; letter-spacing: 0; color: var(--ink); margin-bottom: 1rem; }
.footer-col ul { display: grid; gap: 0.6rem; font-size: 0.95rem; }
.footer-col a { color: var(--ink-soft); transition: color 0.2s; }
.footer-col a:hover { color: var(--blue-deep); }
.footer-bottom { margin-top: clamp(2.5rem, 5vw, 3.5rem); padding-top: 1.5rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; font-size: 0.86rem; color: var(--mute); }
.footer-bottom .lang-foot a { margin-left: 0.8rem; }
.footer-bottom .lang-foot a:hover { color: var(--blue-deep); }
.footer-bottom .lang-foot [aria-current] { color: var(--ink); font-weight: 600; margin-left: 0.8rem; }

/* ---------- Páginas interiores ---------- */
.page-hero {
  position: relative; overflow: clip; isolation: isolate;
  padding-top: calc(var(--nav-h) + clamp(3.5rem, 8vw, 6rem)); padding-bottom: clamp(3.5rem, 7vw, 5.5rem);
  background:
    radial-gradient(50% 70% at 90% 0%, rgba(52, 120, 246, 0.14), transparent 70%),
    linear-gradient(180deg, var(--sky) 0%, #fff 100%);
}
.page-hero .kicker { margin-bottom: 1.2rem; }
.page-hero .display { font-size: clamp(2.5rem, 6vw, 4.8rem); max-width: 16ch; }
.page-hero .lead { margin-top: 1.4rem; }
.crumbs { display: flex; flex-wrap: wrap; gap: 0.5rem; font-size: 0.84rem; color: var(--mute); margin-bottom: 1.8rem; }
.crumbs a:hover { color: var(--blue-deep); }
.crumbs li + li::before { content: "/"; margin-right: 0.5rem; opacity: 0.5; }

/* Producto: filas alternas */
.feature-rows { display: grid; gap: clamp(4.5rem, 9vw, 7rem); }
.feature-row { display: grid; gap: 2.5rem; align-items: center; }
.feature-row .copy .kicker { margin-bottom: 1rem; }
.feature-row .copy p { margin-top: 1.1rem; color: var(--ink-soft); font-size: 1.07rem; max-width: 46ch; }
.feature-row .media { position: relative; display: grid; place-items: center; padding: clamp(2rem, 5vw, 3.5rem) 1rem; border-radius: 30px; background: var(--mist); overflow: hidden; }
.feature-row .media::before { content: ""; position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(52, 120, 246, 0.26), transparent 65%); filter: blur(8px); }
.feature-row .media.purple::before { background: radial-gradient(circle, rgba(111, 72, 146, 0.24), transparent 65%); }
.feature-row .media.green::before { background: radial-gradient(circle, rgba(32, 157, 118, 0.24), transparent 65%); }
.feature-row .media.red::before { background: radial-gradient(circle, rgba(231, 67, 75, 0.2), transparent 65%); }
.feature-row .media .phone { width: min(280px, 66vw); }
.feature-row .media .phone + .phone { position: absolute; }

/* Acerca de */
.about-grid { display: grid; gap: 3rem; }
.about-quote { font-family: var(--serif); font-weight: 450; font-size: clamp(1.55rem, 3vw, 2.4rem); line-height: 1.22; letter-spacing: -0.02em; }
.about-quote em { font-style: italic; }
.about-body p { color: var(--ink-soft); font-size: 1.1rem; }
.about-body p + p { margin-top: 1.2rem; }
.values { margin-top: clamp(3rem, 6vw, 4.5rem); display: grid; gap: 1rem; }
.values .card h3 { font-family: var(--serif); font-weight: 500; font-size: 1.25rem; }
.values .card p { margin-top: 0.5rem; color: var(--ink-soft); font-size: 0.98rem; }
.founder-card { display: grid; gap: 1.6rem; align-items: center; margin-top: clamp(3.5rem, 7vw, 5rem); padding: clamp(1.6rem, 3vw, 2.4rem); border-radius: 28px; background: var(--mist); border: 1px solid var(--line); }
.founder-card img { width: 120px; height: 120px; border-radius: 22px; object-fit: cover; }
.founder-card b { display: block; font-family: var(--serif); font-weight: 500; font-size: 1.5rem; letter-spacing: -0.02em; }
.founder-card span { color: var(--mute); }
.founder-card p { margin-top: 0.8rem; color: var(--ink-soft); }

/* Novedades: línea temporal */
.timeline { position: relative; display: grid; gap: 1.3rem; padding-left: 2.2rem; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--blue), var(--line)); }
.timeline li { position: relative; }
.timeline li::before { content: ""; position: absolute; left: -2.2rem; top: 1.9rem; width: 16px; height: 16px; border-radius: 50%; background: var(--white); border: 2px solid var(--blue); }
.timeline li.is-next::before { background: var(--blue); box-shadow: 0 0 0 6px rgba(52, 120, 246, 0.18); }
.timeline li.is-next .card { border-color: rgba(52, 120, 246, 0.4); background: var(--mist); }
.timeline .card time { font-size: 0.86rem; font-weight: 600; color: var(--blue-deep); }
.timeline .card h2 { margin-top: 0.4rem; font-family: var(--serif); font-weight: 500; font-size: 1.65rem; letter-spacing: -0.02em; }
.timeline .card p { margin-top: 0.6rem; color: var(--ink-soft); }

/* Página de tester */
.beta-hero {
  position: relative; isolation: isolate;
  padding: calc(var(--nav-h) + clamp(2rem, 5vw, 3.5rem)) 0 clamp(4rem, 8vw, 6rem);
  background:
    radial-gradient(50% 50% at 92% 8%, rgba(52, 120, 246, 0.14), transparent 70%),
    radial-gradient(34% 40% at 0% 100%, rgba(251, 191, 66, 0.14), transparent 70%),
    linear-gradient(180deg, #fff, var(--mist));
  min-height: 100vh; min-height: 100svh;
}
.beta-grid { display: grid; gap: 3rem; align-items: start; }
.beta-copy .pill { margin-bottom: 1.4rem; }
.beta-copy .display { font-size: clamp(2.4rem, 5vw, 4rem); max-width: 14ch; }
.beta-copy .lead { margin-top: 1.3rem; }
.mini-h { margin-top: 2.2rem; font-family: var(--sans); font-size: 1rem; font-weight: 650; letter-spacing: -0.005em; }
.beta-steps { margin-top: 1rem; display: grid; gap: 1rem; }
.beta-steps li { display: flex; gap: 1rem; align-items: flex-start; }
.beta-steps .step-n { position: static; width: 34px; height: 34px; font-size: 0.95rem; box-shadow: none; flex: none; }
.beta-steps b { display: block; font-weight: 650; }
.beta-steps span:not(.step-n) { display: block; color: var(--ink-soft); font-size: 0.97rem; }
.beta-copy .check-list { margin-top: 1rem; }
.beta-form { position: relative; }
.beta-form .tcard { margin-inline: auto; }

/* Tarjeta de estado (cuenta / confirmación) */
.beta-page { min-height: 100vh; min-height: 100svh; background: var(--mist); position: relative; display: flex; align-items: center; padding: 4rem 0; }
.form-card {
  position: relative; width: 100%; max-width: 520px; margin-inline: auto;
  padding: clamp(1.8rem, 3.4vw, 2.6rem); border-radius: 28px;
  background: var(--white); color: var(--ink);
  border: 1px solid var(--line); box-shadow: var(--shadow-blue);
}
.status-card { text-align: center; }
.status-ico { display: grid; place-items: center; width: 76px; height: 76px; margin: 0 auto 1.5rem; border-radius: 50%; }
.status-ico svg { width: 36px; height: 36px; }
.status-ico.ok { background: rgba(32, 157, 118, 0.12); color: var(--green); }
.status-ico.err { background: rgba(231, 67, 75, 0.12); color: var(--red); }
.status-ico.wait { background: var(--sky); color: var(--blue-deep); }
.status-ico.wait svg { animation: spin 1.1s linear infinite; }
.status-card h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.9rem, 4vw, 2.5rem); letter-spacing: -0.02em; }
.status-card p { margin-top: 0.9rem; color: var(--ink-soft); }
.status-card .next { margin-top: 1.8rem; padding: 1.3rem 1.4rem; border-radius: 18px; background: var(--mist); text-align: left; }
.status-card .next b { display: block; margin-bottom: 0.6rem; }
.status-card .next ol { display: grid; gap: 0.5rem; list-style: decimal; padding-left: 1.2rem; color: var(--ink-soft); font-size: 0.95rem; }
.status-card .share-lead { margin-top: 1.6rem; font-size: 0.95rem; }
.status-card .btn-row { margin-top: 1.2rem; }
.status-card .btn { margin-top: 0; }
.status-card > .btn { margin-top: 1.8rem; }
.status-card small { display: block; margin-top: 1rem; color: var(--mute); font-size: 0.84rem; }
.form-card form .btn { margin-top: 1.2rem; }
[data-state] { display: none; }
[data-state].is-active { display: block; }
.no-js [data-state="loading"] { display: none; }

/* Legales */
.legal { display: grid; gap: 3rem; }
.legal-toc { display: none; }
.legal-body { max-width: 72ch; }
.legal-body > p.intro { font-size: 1.12rem; color: var(--ink-soft); }
.legal-body section { margin-top: 2.5rem; scroll-margin-top: calc(var(--nav-h) + 24px); }
.legal-body h2 { font-family: var(--serif); font-weight: 500; font-size: 1.5rem; letter-spacing: -0.015em; }
.legal-body section p { margin-top: 0.8rem; color: var(--ink-soft); }
.legal-body a { color: var(--blue-deep); text-decoration: underline; text-underline-offset: 3px; }
.legal-body .updated { margin-top: 3rem; padding-top: 1.4rem; border-top: 1px solid var(--line); font-size: 0.88rem; color: var(--mute); }
.legal-toc ol { display: grid; gap: 0.55rem; font-size: 0.9rem; }
.legal-toc a { color: var(--mute); transition: color 0.2s; display: block; }
.legal-toc a:hover, .legal-toc a.is-active { color: var(--blue-deep); }
.legal-toc small { display: block; font-size: 0.86rem; font-weight: 650; color: var(--ink); margin-bottom: 1rem; }

/* 404 */
.notfound { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; text-align: center; background: linear-gradient(180deg, #fff, var(--sky)); position: relative; overflow: clip; padding: 6rem var(--gutter); }
.notfound .big { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(7rem, 24vw, 15rem); line-height: 0.85; color: var(--blue); }
.notfound h1 { margin-top: 1rem; font-family: var(--serif); font-weight: 500; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.notfound p { margin-top: 0.8rem; color: var(--ink-soft); }
.notfound .btn-row { justify-content: center; margin-top: 2rem; }

/* Eliminar cuenta */
.del-grid { display: grid; gap: 1.2rem; }
.del-card { padding-top: 2.4rem; }
.del-card h2 { font-family: var(--serif); font-weight: 500; font-size: 1.65rem; letter-spacing: -0.02em; }
.del-badge { position: absolute; top: 1.2rem; right: 1.2rem; background: var(--sky); color: var(--blue-ink); }
.del-badge-ink { background: rgba(27, 34, 54, 0.07); color: var(--ink-soft); }
.del-steps { margin-top: 1.2rem; display: grid; gap: 0.8rem; counter-reset: d; }
.del-steps li { position: relative; padding-left: 2.6rem; min-height: 28px; color: var(--ink-soft); overflow-wrap: anywhere; }
.del-steps li::before { counter-increment: d; content: counter(d); position: absolute; left: 0; top: -0.1rem; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--sky); color: var(--blue-ink); font-size: 0.85rem; font-weight: 600; }
.del-steps a, .del-faq a { color: var(--blue-deep); text-decoration: underline; text-underline-offset: 3px; }
.del-note { margin-top: 1.3rem; padding: 1rem 1.1rem; border-radius: 14px; background: rgba(32, 157, 118, 0.08); color: var(--ink-soft); font-size: 0.94rem; }
.del-card .btn { margin-top: 1.5rem; }
.del-info { margin-top: clamp(3rem, 6vw, 4.5rem); }
.del-info .kicker { margin-bottom: 0.2rem; }
.del-info .check-list { margin-top: 1.2rem; }
.del-kept svg { color: var(--purple); }
.del-faq { margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid var(--line); color: var(--mute); text-align: center; }
@media (min-width: 960px) { .del-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; } .del-info { gap: 4rem; } }

/* Funciones en camino (página de producto) */
.soon-wrap { padding-block: clamp(2rem, 4vw, 3rem) 0; }
.soon-card { max-width: 760px; margin-inline: auto; padding: clamp(1.4rem, 3vw, 2rem); border-radius: 24px; background: var(--mist); border: 1px solid var(--line); text-align: center; }
.soon-tag { display: inline-block; padding: 0.25rem 0.7rem; border-radius: 999px; background: var(--white); border: 1px solid var(--line); color: var(--blue-deep); font-size: 0.8rem; font-weight: 650; letter-spacing: 0.02em; }
.soon-card h2 { margin-top: 0.8rem; font-family: var(--serif); font-weight: 500; font-size: clamp(1.6rem, 3vw, 2.1rem); letter-spacing: -0.02em; }
.soon-card p { margin: 0.5rem auto 0; max-width: 52ch; color: var(--ink-soft); }

/* Funciones: índice y páginas de cada función */
.feat-grid { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .feat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .feat-grid { grid-template-columns: repeat(3, 1fr); gap: 1.3rem; } }
.feat-card { display: flex; flex-direction: column; gap: 0.5rem; }
.feat-card h2 { font-family: var(--serif); font-weight: 500; font-size: 1.3rem; letter-spacing: -0.02em; margin-top: 0.4rem; }
.feat-card h2 a { color: inherit; }
.feat-card h2 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.feat-card p { color: var(--ink-soft); font-size: 0.97rem; }
.feat-more { margin-top: auto; padding-top: 0.6rem; display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 600; font-size: 0.93rem; color: var(--blue-deep); }
.feat-more .arrow { width: 16px; height: 16px; transition: transform 0.25s var(--ease-out); }
.feat-card:hover .feat-more .arrow { transform: translateX(3px); }
.feat-card .soon-tag { align-self: flex-start; margin-top: 0.5rem; }
.feat-card .soon-tag + h2 { margin-top: 0.2rem; }
.feat-video { margin: 1.4rem 0 1.6rem; display: flex; flex-direction: column; align-items: center; gap: 0.8rem; }
.feat-video figcaption { max-width: 34rem; text-align: center; color: var(--ink-soft); font-size: 0.95rem; line-height: 1.5; }
.feat-video figcaption b { display: block; color: var(--ink); font-weight: 650; }
.feat-phone { display: flex; justify-content: center; margin: 1.4rem 0; }
.feat-phone .phone { width: min(260px, 70vw); }

/* Aviso de cookies (solo si hay analítica/publicidad configurada; main.js lo muestra). Aceptar y Rechazar pesan igual. */
.cookie-bar { position: fixed; z-index: 95; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 0.75rem); transform: translateX(-50%); width: min(560px, calc(100vw - 1.5rem)); padding: 1rem 1.1rem 1.1rem; border-radius: 20px; background: var(--white); border: 1px solid var(--line); box-shadow: 0 18px 50px -12px rgba(22, 40, 90, 0.35); font-size: 0.92rem; line-height: 1.5; color: var(--ink-soft); }
.cookie-bar[hidden] { display: none; }
.cookie-bar a { color: var(--blue-deep); text-decoration: underline; text-underline-offset: 3px; }
.cookie-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; margin-top: 0.85rem; }
.cookie-btns .btn { width: 100%; justify-content: center; border: 1.5px solid var(--line); background: var(--white); color: var(--ink); min-height: 46px; padding-block: 0.6rem; }
.cookie-btns .btn:hover { border-color: var(--blue); color: var(--blue-deep); }

/* Aviso de idioma (solo en la raíz, solo para navegadores en inglés; main.js lo muestra) */
.lang-hint { position: fixed; z-index: 90; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 5.6rem); transform: translateX(-50%); width: max-content; max-width: calc(100vw - 2rem); display: flex; align-items: center; gap: 0.5rem; padding: 0.35rem 0.4rem 0.35rem 1.05rem; border-radius: 999px; background: var(--blue-ink); color: var(--white); font-size: 0.9rem; font-weight: 500; box-shadow: 0 10px 30px -8px rgba(22, 61, 143, 0.5); }
@media (min-width: 960px) { .lang-hint { bottom: 1.25rem; } }
.lang-hint[hidden] { display: none; }
.lang-hint a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.lang-hint-x { width: 36px; height: 36px; flex: none; border-radius: 50%; color: inherit; font-size: 1.3rem; line-height: 1; opacity: 0.8; }
.lang-hint-x:hover { opacity: 1; background: rgba(255, 255, 255, 0.14); }

/* =============================================================
   9. Efectos (sobrios: una entrada del hero + aparición suave)
   ============================================================= */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal-img { opacity: 0; transform: translateY(14px) scale(0.99); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
.js .reveal-img.is-in { opacity: 1; transform: none; }

/* Entrada corta: el texto del hero es lo primero que se mide (LCP / Speed Index), no puede tardar en aparecer. */
.js .hero-copy > * { opacity: 0; transform: translateY(12px); animation: rise 0.5s var(--ease-out) forwards; }
.js .hero-copy > *:nth-child(2) { animation-delay: 0.04s; }
.js .hero-copy > *:nth-child(3) { animation-delay: 0.08s; }
.js .hero-copy > *:nth-child(4) { animation-delay: 0.12s; }
.js .hero-copy > *:nth-child(5) { animation-delay: 0.16s; }
.js .hero-visual { opacity: 0; animation: fadeScale 0.7s 0.1s var(--ease-out) forwards; }
.hero-stage .chip { animation: float 7s var(--ease-soft) infinite; }
.hero-stage .chip-2 { animation-delay: -2.4s; }
.hero-stage .chip-3 { animation-delay: -4.6s; }

@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes fadeScale { from { opacity: 0; transform: scale(0.97) translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(32, 157, 118, 0.55); } 70% { box-shadow: 0 0 0 9px rgba(32, 157, 118, 0); } 100% { box-shadow: 0 0 0 0 rgba(32, 157, 118, 0); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* =============================================================
   Reproductor de vídeo vertical / explorador de funciones
   ============================================================= */
.vplayer { display: grid; gap: 1.2rem; justify-items: center; }
.vp-stage { display: grid; justify-items: center; gap: 1.1rem; width: 100%; }
.vp-card {
  position: relative; isolation: isolate; overflow: hidden;
  width: min(84vw, 340px, calc((100svh - 15rem) * 0.5625)); aspect-ratio: 9 / 16;
  border-radius: 30px; background: #f5f8fd;
  box-shadow: var(--shadow-blue), 0 0 0 1px var(--line);
}
.vp-video { width: 100%; height: 100%; object-fit: cover; background: #f5f8fd;
  transition: opacity 0.16s ease-out, filter 0.16s ease-out; }
.vp-card.is-switching .vp-video { opacity: 0.35; filter: blur(3px); }
.vp-hit { position: absolute; inset: 0; z-index: 2; width: 100%; border-radius: inherit; -webkit-tap-highlight-color: transparent; }
.vp-hit:focus-visible { outline: 3px solid var(--blue); outline-offset: -3px; }
.vp-flash {
  position: absolute; z-index: 3; left: 50%; top: 50%; translate: -50% -50%;
  display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%;
  background: rgba(27, 34, 54, 0.62); color: #fff; pointer-events: none;
  opacity: 0; transform: scale(0.9); transition: opacity 0.22s ease-out, transform 0.22s var(--ease-out);
}
.vp-flash svg { width: 28px; height: 28px; }
.vp-card.is-paused .vp-flash, .vp-card.is-flash .vp-flash { opacity: 1; transform: none; }
.vp-card.is-flash:not(.is-paused) .vp-flash { transition-duration: 0.12s; }
.vp-sound {
  position: absolute; z-index: 4; right: 12px; bottom: 14px;
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.9); color: var(--ink);
  box-shadow: 0 6px 18px -6px rgba(27, 34, 54, 0.5), 0 0 0 1px rgba(27, 34, 54, 0.06);
  transition: transform 0.16s ease-out, background-color 0.2s;
}
@supports (backdrop-filter: blur(10px)) { .vp-sound { background: rgba(255, 255, 255, 0.72); backdrop-filter: blur(14px) saturate(170%); -webkit-backdrop-filter: blur(14px) saturate(170%); } }
.vp-sound svg { width: 20px; height: 20px; }
.vp-sound:active { transform: scale(0.92); }
.vp-sound[aria-pressed="true"] { background: var(--blue); color: #fff; }
.vp-prog { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(27, 34, 54, 0.1); pointer-events: none; }
.vp-prog i { display: block; height: 100%; background: var(--blue); transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform 0.26s linear; }
.vplayer.has-tabs .vp-prog { display: none; }

/* Pestañas: en móvil, una fila de botones deslizable */
.vp-tabs {
  display: flex; gap: 0.5rem; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  width: calc(100% + 2 * var(--gutter)); margin-inline: calc(-1 * var(--gutter)); padding: 0.3rem var(--gutter);
  scroll-snap-type: x proximity; scroll-padding-inline: var(--gutter);
}
.vp-tabs::-webkit-scrollbar { display: none; }
.vp-tab {
  position: relative; overflow: hidden; flex: none; scroll-snap-align: center; min-height: 44px;
  padding: 0.55rem 1.05rem; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--white);
  font-weight: 600; font-size: 0.93rem; letter-spacing: -0.005em; color: var(--ink-soft); white-space: nowrap;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.16s ease-out;
}
.vp-tab:active { transform: scale(0.97); }
.vp-tab.is-active { background: var(--blue); border-color: var(--blue); color: #fff; }
.vt-desc { display: none; }
.vt-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; display: none; }
.vp-tab.is-active .vt-bar { display: block; }
.vt-bar i { display: block; height: 100%; background: rgba(255, 255, 255, 0.9); transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform 0.26s linear; }
.vp-info { text-align: center; min-height: 9rem; max-width: 36ch; }
.vp-info h3 { font-family: var(--serif); font-weight: 500; font-size: 1.4rem; letter-spacing: -0.015em; line-height: 1.15; }
.vp-info p { margin-top: 0.5rem; color: var(--ink-soft); font-size: 1rem; }

/* ---------- Guías (SEO / respuestas de IA) ---------- */
.page-hero.is-guide .display { font-size: clamp(1.9rem, 3.8vw + 0.4rem, 3.4rem); max-width: 26ch; }
.page-hero.is-guide .lead { max-width: 56ch; }
.guide-wrap { padding: clamp(1.5rem, 3vw, 2.5rem) 0 clamp(3rem, 6vw, 5rem); }
.guide { max-width: 780px; }
.byline { color: var(--mute); font-size: 0.92rem; }
.byline a { color: var(--blue-deep); text-decoration: underline; text-underline-offset: 3px; }
.answer-box { margin: 1.3rem 0 2.2rem; padding: 1.3rem 1.5rem; border-radius: 18px; background: var(--sky); border-left: 5px solid var(--blue); }
.answer-box b { display: block; font-size: 0.9rem; font-weight: 650; color: var(--blue-ink); }
.answer-box p { margin-top: 0.4rem; font-size: 1.1rem; line-height: 1.55; color: var(--ink); }
.guide section { margin-top: 2.6rem; }
.guide h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.5rem, 2.4vw + 0.4rem, 2rem); letter-spacing: -0.02em; line-height: 1.15; }
.guide h3 { margin-top: 1.5rem; font-family: var(--sans); font-weight: 650; font-size: 1.1rem; letter-spacing: -0.01em; line-height: 1.3; }
.guide p { margin-top: 0.8rem; color: var(--ink-soft); }
.guide a { color: var(--blue-deep); text-decoration: underline; text-underline-offset: 3px; }
.g-list, .g-steps { margin-top: 0.9rem; display: grid; gap: 0.7rem; color: var(--ink-soft); }
.g-list li { position: relative; padding-left: 1.6rem; }
.g-list li::before { content: ""; position: absolute; left: 0.2rem; top: 0.72em; width: 8px; height: 8px; border-radius: 2px; background: var(--blue); }
.g-list li:nth-child(4n+2)::before { background: var(--yellow); }
.g-list li:nth-child(4n+3)::before { background: var(--green); }
.g-list li:nth-child(4n+4)::before { background: var(--purple); }
.g-steps { counter-reset: gs; }
.g-steps li { position: relative; padding-left: 2.6rem; }
.g-steps li::before { counter-increment: gs; content: counter(gs); position: absolute; left: 0; top: 0.05rem; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--sky); color: var(--blue-ink); font-size: 0.85rem; font-weight: 700; }
.g-table { margin-top: 1rem; overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--white); -webkit-overflow-scrolling: touch; }
.g-table:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.g-table table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.g-table.is-wide table { min-width: 560px; }
.g-table th, .g-table td { padding: 0.8rem 1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); color: var(--ink-soft); }
.g-table thead th { background: var(--mist); color: var(--ink); font-weight: 650; white-space: nowrap; }
.g-table tbody th { color: var(--ink); font-weight: 650; background: var(--white); }
.g-table tr:last-child th, .g-table tr:last-child td { border-bottom: 0; }
.g-note { font-size: 0.86rem; color: var(--mute); }
.g-faq h3 + p { margin-top: 0.4rem; }
.g-related ul { margin-top: 0.9rem; display: grid; gap: 0.6rem; }
.g-related li::before { content: "→ "; color: var(--blue); }

/* Producto: explorador pegado arriba */
.explore-page {
  padding: calc(var(--nav-h) + 1.4rem) 0 clamp(2.5rem, 5vw, 4rem);
  background: radial-gradient(50% 60% at 90% 0%, rgba(52, 120, 246, 0.12), transparent 70%), linear-gradient(180deg, var(--sky) 0%, var(--mist) 100%);
}
.explore-head { text-align: center; margin-bottom: 1.2rem; }
.explore-head h1 { font-size: clamp(1.8rem, 3.2vw + 0.4rem, 2.8rem); }
.explore-head p { margin-top: 0.4rem; color: var(--ink-soft); font-size: 1rem; }
.explore-page .vp-card { width: min(84vw, 340px, calc((100svh - 17rem) * 0.5625)); }
@media (min-width: 960px) {
  .explore-head { margin-bottom: 1.6rem; }
  .explore-page .vplayer.has-tabs .vp-card { width: min(360px, calc((100svh - var(--nav-h) - 9rem) * 0.5625)); }
  .explore-page .vplayer.has-tabs .vp-stage { top: calc(var(--nav-h) + 1rem); }
}

/* Home: vídeo de presentación */
.vhome-sec { padding-block: clamp(2.5rem, 6vw, 5rem); }
.vhome { display: grid; gap: 1.6rem; align-items: center; justify-items: center; text-align: center; }
.vhome-copy .btn { margin-top: 1.4rem; }
.vhome-media { display: flex; justify-content: center; }
.vhome-media .vp-card { width: min(78vw, 320px, calc((100svh - 8rem) * 0.5625)); }

@media (min-width: 960px) {
  .vhome { grid-template-columns: 1.1fr 0.9fr; gap: 5rem; justify-items: stretch; text-align: left; }
  .vhome-media .vp-card { width: min(340px, calc((100svh - var(--nav-h) - 5rem) * 0.5625)); }

  .vplayer.has-tabs { grid-template-columns: minmax(0, 1fr) auto; align-items: center; justify-items: stretch; gap: clamp(2.5rem, 7vw, 7rem); max-width: 980px; margin-inline: auto; }
  .vplayer.has-tabs .vp-tabs {
    order: -1; flex-direction: column; gap: 0.2rem; overflow: visible; width: auto; margin: 0; padding: 0;
    scroll-snap-type: none; max-width: 470px; justify-self: end;
  }
  .vplayer.has-tabs .vp-tab {
    display: grid; white-space: normal; text-align: left; min-height: 0; border-radius: 18px; border-color: transparent; background: transparent;
    padding: 0.95rem 1.2rem 0.95rem 1.5rem; font-size: 1.05rem; color: var(--ink-soft); overflow: hidden;
  }
  .vplayer.has-tabs .vp-tab.is-active { background: var(--white); border-color: var(--line); color: var(--ink); box-shadow: var(--shadow-soft); }
  @media (hover: hover) and (pointer: fine) { .vplayer.has-tabs .vp-tab:not(.is-active):hover { background: rgba(52, 120, 246, 0.07); color: var(--ink); } }
  .vplayer.has-tabs .vt-desc { display: block; max-height: 0; opacity: 0; margin-top: 0; font-weight: 400; font-size: 0.97rem; line-height: 1.5; color: var(--ink-soft); transition: max-height 0.38s var(--ease-out), opacity 0.22s ease-out, margin-top 0.38s var(--ease-out); }
  .vplayer.has-tabs .vp-tab.is-active .vt-desc { max-height: 9rem; opacity: 1; margin-top: 0.4rem; }
  .vplayer.has-tabs .vt-bar { left: 0; right: auto; top: 14px; bottom: 14px; width: 3px; height: auto; border-radius: 3px; background: rgba(52, 120, 246, 0.16); }
  .vplayer.has-tabs .vt-bar i { background: var(--blue); transform-origin: top; transform: scaleY(var(--p, 0)); }
  .vplayer.has-tabs .vp-stage { position: sticky; top: calc(var(--nav-h) + 2rem); }
  .vplayer.has-tabs .vp-card { width: min(360px, calc((100svh - var(--nav-h) - 5rem) * 0.5625)); }
  .vplayer.has-tabs .vp-info { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .vp-video, .vp-flash, .vp-tab, .vt-desc { transition-duration: 0.01s; }
  .vp-prog i, .vt-bar i { transition: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .vp-sound, .nav.is-solid, .chip { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* =============================================================
   10. Responsive (mobile-first)
   ============================================================= */
@media (max-width: 539px) {
  body { font-size: 16.5px; }
  .btn { white-space: normal; text-align: center; line-height: 1.25; }
  .btn-sm { white-space: nowrap; }
  .del-grid > * { min-width: 0; }
  .hero { padding-top: calc(var(--nav-h) + 1.2rem); padding-bottom: 2.5rem; }
  .hero-grid { gap: 2rem; }
  .hero-copy .pill { margin-bottom: 1.1rem; font-size: 0.82rem; }
  .hero-sub { margin-top: 1rem; }
  .hero-copy .tcard { margin-top: 1.5rem; }
  .lead { font-size: 1.04rem; }
  .cta-final { padding-bottom: 8.5rem; }
  .hero-visual { min-height: 440px; }
  .hero-stage .phone-front { width: 220px; }
  .hero-stage .phone-back { width: 230px; left: -38%; }
  .hero-stage .chip { font-size: 0.78rem; padding: 0.55rem 0.8rem 0.55rem 0.6rem; }
  .hero-stage .chip b { font-size: 0.95rem; }
  .hero-stage .chip-ico { width: 30px; height: 30px; }
  .hero-stage .chip-1 { left: -18%; }
  .hero-stage .chip-2 { right: -16%; }
  .hero-stage .chip-3 { left: -16%; bottom: 6%; }
  .hero-copy .btn-row .btn { width: 100%; }
  .tcard { padding: 1.5rem 1.2rem 1.2rem; }
}

@media (max-width: 959px) {
  .sticky-cta { display: block; }
  body { padding-bottom: 0; }

  /* Recorrido: carrusel deslizable (gesto natural en móvil) */

  .card { padding: 1.3rem; }
  .section-head { margin-bottom: 2rem; }
}

@media (min-width: 760px) { .footer-cols { grid-template-columns: repeat(4, 1fr); } }

@media (min-width: 540px) {
}

@media (min-width: 720px) {
  .values { grid-template-columns: repeat(2, 1fr); }
  .founder-card { grid-template-columns: auto 1fr; }
}

@media (min-width: 960px) {
  .nav-links, .lang-switch { display: flex; }
  .nav .btn { display: inline-flex; }
  .menu-toggle, .mobile-menu { display: none; }

  .hero-grid { grid-template-columns: 1.1fr 0.9fr; gap: 2rem; }
  .hero-visual { min-height: 0; }
  .hero { min-height: 100vh; min-height: 100svh; }

  .manifesto-grid { grid-template-columns: 1.25fr 1fr; gap: 4rem; }




  .founder { grid-template-columns: 0.8fr 1.2fr; gap: 5rem; }
  .footer-grid { grid-template-columns: 1.1fr 1.9fr; gap: 4rem; }

  .feature-row { grid-template-columns: 1fr 1fr; gap: 5rem; }
  .feature-row:nth-child(even) .media { order: -1; }

  .about-grid { grid-template-columns: 1.1fr 0.9fr; gap: 5rem; }
  .values { grid-template-columns: repeat(4, 1fr); }

  .beta-grid { grid-template-columns: 1.05fr 0.95fr; gap: 5rem; }
  .beta-form { position: sticky; top: calc(var(--nav-h) + 2rem); }

  .legal { grid-template-columns: 240px 1fr; gap: 5rem; }
  .legal-toc { display: block; position: sticky; top: calc(var(--nav-h) + 32px); align-self: start; }
}

/* Portátiles y pantallas bajas: el hero entero (titular, formulario y móvil) cabe sin scroll */
@media (min-width: 960px) and (max-height: 820px) {
  .hero-title { font-size: clamp(2.6rem, 3.6vw + 0.4rem, 3.7rem); }
  .hero-sub { margin-top: 0.9rem; font-size: 1.04rem; }
  .hero-copy .tcard { margin-top: 1.3rem; padding: 1.3rem 1.3rem 1.1rem; }
  .hero .tcard-head { margin-bottom: 0.9rem; }
  .hero .field input[type="email"] { min-height: 50px; }
  .hero .consent { margin-top: 0.6rem; }
  .hero .tcard .btn { margin-top: 0.9rem; min-height: 50px; }
  .hero .form-msg { margin-top: 0.4rem; }
  .hero .form-note { display: none; }
}

@media (min-width: 1280px) {
  .hero-stage .chip-1 { left: -48%; }
  .hero-stage .chip-2 { right: -52%; }
  .hero-stage .chip-3 { left: -50%; }
}

/* =============================================================
   11. Movimiento reducido (solo efectos intrusivos)
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation-duration: 90s; }
  .hero-stage .chip { animation: none; }
  .pill .dot { animation: none; }
  .sticky-cta { transition: none; }
}

/* Impresión (páginas legales) */
@media print {
  .nav, .footer, .mobile-menu, .legal-toc, .skip-link { display: none !important; }
  .page-hero { background: none; padding: 1rem 0; }
  body { background: #fff; }
}
