/*
 * Landing de getcofounder.app — dirección «Dos mitades» (ver docs/plan/DISENO-web.md).
 * Tokens = los de la app (src/constants/theme.ts). Solo la portada carga este archivo;
 * las páginas legales siguen con style.css.
 */

@font-face {
  font-family: 'Instrument Serif';
  src: url('/fonts/InstrumentSerif_400Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url('/fonts/InstrumentSerif_400Regular_Italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Sans';
  src: url('/fonts/InstrumentSans_400Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Sans';
  src: url('/fonts/InstrumentSans_600SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-display: swap;
}

:root {
  color-scheme: dark;
  /* Paleta de la app */
  --bg: #000;
  --glass: #ffffff14;
  --glass-up: #ffffff29;
  --surface: #18181b;
  --ink: #f5f5f7;
  --ink-2: #bebec4;
  --ink-3: #a8a8ae;
  --edge: #ffffff2e;
  --on-white: #1a0a02;
  /* Acento: el blanco de la app (`brass`), y su versión suave de cristal. */
  --accent: #f5f5f7;
  --accent-soft: #ffffff1f;
  --accent-edge: #ffffff80;
  /* Premium: la noche azul del paywall de la app (PremiumTones), única excepción a los grises. */
  --night: #040815;
  --halo: #2f7bff;
  --halo-cool: #6a5bff;
  --badge: #ffd66b;
  --on-badge: #2a1c00;
  --night-ink-2: #c3d0ea;
  /* Tipografía */
  --serif: 'Instrument Serif', ui-serif, Georgia, serif;
  --sans: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  /* Radios y espaciado (múltiplos de 4) */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-card: 22px;
  --r-sheet: 26px;
  --r-pill: 999px;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1200px;
  /* Movimiento */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  /* El móvil */
  --pw: clamp(250px, 21vw, 300px);
  --side: min(25vw, 330px);
}

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

html {
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  letter-spacing: -0.01em;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

p {
  margin: 0;
}

em {
  font-style: italic;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

svg.i {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: fixed;
  left: 12px;
  top: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: var(--on-white);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
}
.skip:focus {
  transform: none;
}

/* ─── Cabecera ─────────────────────────────────────────────────────────── */

.top {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
  padding: 0 var(--gutter);
  transition:
    background-color 0.3s,
    border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.top.scrolled {
  background: #000000b3;
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  backdrop-filter: saturate(1.4) blur(16px);
  border-bottom-color: #ffffff14;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}
.brand svg {
  width: 30px;
  height: 20px;
  fill: var(--ink);
}

.top-nav {
  display: none;
  gap: 28px;
  margin-left: auto;
}
.top-nav a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}
.top-nav a:hover {
  color: var(--ink);
}

.lang-pill {
  display: flex;
  margin-left: auto;
  padding: 3px;
  border-radius: var(--r-pill);
  background: var(--glass);
  border: 1px solid #ffffff1f;
}
.lang-pill a {
  min-width: 34px;
  padding: 4px 8px;
  border-radius: var(--r-pill);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-align: center;
  color: var(--ink-3);
  text-decoration: none;
  transition:
    color 0.2s,
    background-color 0.2s;
}
.lang-pill a:hover {
  color: var(--ink);
}
.lang-pill a[aria-current='page'] {
  background: var(--glass-up);
  color: var(--ink);
}

.top-cta {
  display: none;
  padding: 9px 18px;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: var(--on-white);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: transform 0.2s var(--ease-out);
}
.top-cta:hover {
  transform: scale(1.04);
}
.top-cta:active {
  transform: scale(0.97);
}

@media (min-width: 900px) {
  .top-nav,
  .top-cta {
    display: flex;
  }
  .lang-pill {
    margin-left: 0;
  }
}

/* ─── Halos de fondo: las «dos mitades» que se acercan ─────────────────── */

.halos {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  --conv: 0;
}
.halo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 90vmax;
  height: 90vmax;
  margin: -45vmax 0 0 -45vmax;
  border-radius: 50%;
  will-change: transform;
}
.halo-a {
  background: radial-gradient(closest-side, #ffffff12, #ffffff06 45%, transparent 70%);
  transform: translateX(calc((-34 + var(--conv) * 30) * 1vw));
}
.halo-b {
  background: radial-gradient(closest-side, #ffffff0d, #ffffff05 45%, transparent 70%);
  transform: translateX(calc((34 - var(--conv) * 30) * 1vw));
}

/* ─── Recorrido: el móvil fijo y los pasos ─────────────────────────────── */

main,
.foot {
  position: relative;
  z-index: 1;
}

.journey {
  position: relative;
}

.rig {
  position: sticky;
  top: 0;
  z-index: 2;
  height: 100vh;
  height: 100svh;
  /*
   * Ocupa su alto real (sin margen negativo): así el sticky lo suelta cuando
   * acaba el recorrido, a la vez que el texto, y sube con él al llegar Premium.
   * El solape con la portada lo pone el margen negativo de .hero.
   */
  display: grid;
  place-items: center;
  pointer-events: none;
}

.rig-pos {
  position: relative;
  display: grid;
  place-items: center;
  perspective: 1600px;
  transform: translate3d(var(--side), 0, 0);
  will-change: transform;
}

.phone-enter,
.phone {
  transform-style: preserve-3d;
}

.js .phone-enter {
  animation: phone-in 1.9s var(--ease-out) 0.15s both;
}
@keyframes phone-in {
  from {
    opacity: 0;
    transform: translateY(18vh) rotateY(-360deg) scale(0.86);
  }
  35% {
    opacity: 1;
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.phone {
  position: relative;
  width: var(--pw);
  height: calc(var(--pw) * 2.06);
  font-size: calc(var(--pw) / 28);
  will-change: transform;
}

.phone-slab,
.phone-front,
.phone-back {
  position: absolute;
  inset: 0;
  border-radius: 4.4em;
}
.phone-slab {
  background: #26262b;
  transform: translateZ(var(--z));
}
.phone-front {
  transform: translateZ(5px);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  background: #0b0b0d;
  box-shadow:
    inset 0 0 0 1.5px #4a4a52,
    inset 0 0 0 3px #111114,
    0 40px 80px -30px #000;
  padding: 0.7em;
}
.phone-back {
  transform: rotateY(180deg) translateZ(5px);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  background:
    radial-gradient(120% 70% at 30% 10%, #3a3a42 0%, transparent 60%),
    linear-gradient(160deg, #24242a, #121215 60%, #1b1b20);
  box-shadow: inset 0 0 0 1.5px #4a4a52;
  display: grid;
  place-items: center;
}
.back-mark {
  width: 34%;
  aspect-ratio: 3 / 2;
  fill: #f5f5f7d9;
}
.back-lens {
  position: absolute;
  top: 2em;
  left: 2em;
  width: 6.4em;
  height: 6.4em;
  border-radius: 1.8em;
  background: #0d0d10;
  box-shadow: inset 0 0 0 1px #ffffff1f;
}
.back-lens::before,
.back-lens::after {
  content: '';
  position: absolute;
  width: 2.2em;
  height: 2.2em;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #4a4a52, #050506 60%);
  box-shadow: 0 0 0 0.35em #1d1d22;
  left: 0.9em;
  top: 0.9em;
}
.back-lens::after {
  top: auto;
  bottom: 0.9em;
  left: auto;
  right: 0.9em;
}

.phone-shadow {
  position: absolute;
  left: 50%;
  bottom: calc(var(--pw) * -1.13);
  width: calc(var(--pw) * 1.1);
  height: 40px;
  margin-left: calc(var(--pw) * -0.55);
  border-radius: 50%;
  background: radial-gradient(closest-side, #00000099, transparent);
  transform: scaleX(var(--shadow, 1));
  opacity: 0.9;
}

/* Pantalla */
.screen {
  position: relative;
  height: 100%;
  border-radius: 3.7em;
  overflow: hidden;
  background: #000;
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.3;
  letter-spacing: -0.01em;
  isolation: isolate;
}
.screen::after {
  /* Brillo del cristal: se desplaza con el giro (--glare lo pone landing.js). */
  content: '';
  position: absolute;
  inset: -20%;
  z-index: 20;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 40%, #ffffff10 48%, transparent 56%);
  transform: translateX(calc(var(--glare, 0) * 60%));
}
.statusbar {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  height: 2.6em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6em 2.2em 0;
  font-size: 0.95em;
  font-weight: 600;
}
.statusbar::before {
  /* Cámara frontal: un punto, móvil genérico. */
  content: '';
  position: absolute;
  left: 50%;
  top: 0.9em;
  width: 1.1em;
  height: 1.1em;
  margin-left: -0.55em;
  border-radius: 50%;
  background: #0a0a0c;
  box-shadow: inset 0 0 0 0.2em #1b1b20;
}
.sb-icons {
  display: flex;
  gap: 0.3em;
  align-items: center;
}
.sb-icons i {
  width: 0.35em;
  height: 0.9em;
  border-radius: 0.1em;
  background: var(--ink);
}
.sb-icons i:first-child {
  height: 0.6em;
}
.sb-icons b {
  width: 1.8em;
  height: 0.9em;
  border-radius: 0.25em;
  border: 0.12em solid var(--ink);
  background: linear-gradient(90deg, var(--ink) 70%, transparent 70%) content-box;
  padding: 0.1em;
}

/*
 * Cambio de pantalla: fundido corto con un desplazamiento mínimo en la dirección
 * del scroll (las pasadas salen hacia arriba, las siguientes esperan abajo). La
 * que sale se va rápido; la que entra llega un pelo después.
 */
.scr {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0, 3%, 0) scale(0.985);
  transition:
    opacity 0.28s var(--ease-out),
    transform 0.5s var(--ease-out),
    visibility 0s linear 0.5s;
}
.scr.is-past {
  transform: translate3d(0, -3%, 0) scale(0.985);
}
.scr.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition:
    opacity 0.42s var(--ease-out) 0.1s,
    transform 0.62s var(--ease-out) 0.06s,
    visibility 0s;
}

/* Piezas comunes de la app */
.topbar {
  position: absolute;
  top: 2.7em;
  left: 1.2em;
  right: 1.2em;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo-mini {
  width: 2.6em;
  height: 1.75em;
  fill: var(--ink);
}
.chip-glass {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.45em 0.9em;
  border-radius: var(--r-pill);
  background: var(--glass);
  border: 1px solid var(--edge);
  font-size: 0.9em;
  font-weight: 600;
}
.chip-glass .i {
  font-size: 1.15em;
}

.card {
  position: absolute;
  top: 5.4em;
  left: 0.8em;
  right: 0.8em;
  bottom: 8.6em;
  border-radius: 2.2em;
  overflow: hidden;
  border: 1px solid #ffffff1f;
  background:
    radial-gradient(120% 65% at 50% 22%, hsl(var(--hue) 5% 30%), hsl(var(--hue) 4% 11%) 62%, #050505);
}
.card-under {
  transform: scale(0.94) translateY(1.4em);
  opacity: 0.55;
}
.mono {
  position: absolute;
  top: 12%;
  left: 0;
  right: 0;
  text-align: center;
  font-family: var(--serif);
  font-size: 12em;
  line-height: 1;
  letter-spacing: -0.03em;
  color: hsl(var(--hue) 4% 86% / 0.9);
}
.card-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 5em 1.5em 1.3em;
  background: linear-gradient(transparent, #000000c7 38%, #000);
}
.c-name {
  font-family: var(--serif);
  font-size: 2.7em;
  line-height: 1;
  margin-bottom: 0.15em;
}
.c-meta {
  font-size: 1.05em;
  color: var(--ink-2);
}
.c-label {
  margin-top: 0.95em;
  margin-bottom: 0.4em;
  font-size: 0.8em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--ink-3);
}
.c-quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.5em;
  line-height: 1.15;
}
.chips {
  display: flex;
  gap: 0.4em;
}
.chips.wrap {
  flex-wrap: wrap;
}
.chip-fill,
.chip-line,
.pick {
  padding: 0.3em 0.85em;
  border-radius: var(--r-pill);
  font-size: 0.95em;
  white-space: nowrap;
}
.chip-fill {
  background: var(--glass-up);
}
.chip-line {
  border: 1px solid #ffffff6b;
}
.dots {
  display: flex;
  justify-content: center;
  gap: 0.6em;
  margin-top: 1em;
}
.dots i,
.days i {
  width: 0.6em;
  height: 0.6em;
  border-radius: 50%;
  background: #ffffff40;
}
.dots i.on {
  background: var(--ink);
}
.days {
  display: flex;
  gap: 0.45em;
}
.days i {
  width: 1.6em;
  height: 1.6em;
  border-radius: 0.5em;
  background: var(--glass);
  border: 1px solid #ffffff1f;
}
.days i.on {
  background: var(--accent-soft);
  border-color: var(--accent-edge);
}

.actions {
  position: absolute;
  left: 0.8em;
  right: 0.8em;
  bottom: 4em;
  height: 3.6em;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  place-items: center;
}
.a-sm {
  font-size: 1.6em;
  color: var(--ink);
  display: grid;
}
.a-lg {
  font-size: 2.7em;
  color: var(--ink);
  display: grid;
}
.a-sm .i,
.a-lg .i {
  stroke-width: 2.3;
}

.tabbar {
  position: absolute;
  left: 1.6em;
  right: 1.6em;
  bottom: 0.9em;
  height: 2.8em;
  display: flex;
  align-items: center;
  justify-content: space-around;
  border-radius: var(--r-pill);
  background: var(--glass);
  border: 1px solid #ffffff1f;
  font-size: 1em;
}
.tabbar .i {
  font-size: 1.4em;
  color: var(--ink-3);
  stroke-width: 1.8;
}
.tabbar .i.on {
  color: var(--ink);
}

.btn-white,
.btn-glass {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  padding: 0.95em;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 1.05em;
}
.btn-white {
  background: var(--ink);
  color: var(--on-white);
}
.btn-glass {
  background: var(--glass);
  border: 1px solid var(--edge);
}

/*
 * 0 · Portada: la tarjeta de Lucía se inclina hacia el corazón y luego hacia la
 * cruz, sin llegar a soltarse, y el botón al que se acerca crece y se rellena.
 * Ciclo largo y suave (6 s, ease-in-out) para que sea un vaivén, no un tic.
 */
.scr-home .card-sway {
  transform-origin: 50% 110%;
}
.scr-home.is-active .card-sway {
  animation: sway 6s var(--ease-in-out) 2.2s infinite;
}
.scr-home.is-active .a-yes {
  animation: lean-yes 6s var(--ease-in-out) 2.2s infinite;
}
.scr-home.is-active .a-nope {
  animation: lean-nope 6s var(--ease-in-out) 2.2s infinite;
}
.scr-home .a-yes .i,
.scr-home .a-nope .i {
  fill: transparent;
  transition: fill 0.3s;
}
@keyframes sway {
  0%,
  8%,
  50%,
  58%,
  100% {
    transform: none;
  }
  24%,
  32% {
    transform: translate3d(14%, 0, 0) rotate(7deg);
  }
  74%,
  82% {
    transform: translate3d(-14%, 0, 0) rotate(-7deg);
  }
}
@keyframes lean-yes {
  0%,
  8%,
  50%,
  100% {
    transform: none;
  }
  24%,
  32% {
    transform: scale(1.28);
  }
}
@keyframes lean-nope {
  0%,
  50%,
  58%,
  100% {
    transform: none;
  }
  74%,
  82% {
    transform: scale(1.28);
  }
}

/* 1 · Perfil */
.scr-profile {
  padding: 3.6em 1.5em 0;
}
.progress {
  display: flex;
  gap: 0.4em;
  margin-bottom: 1.8em;
}
.progress i {
  flex: 1;
  height: 0.3em;
  border-radius: 1em;
  background: #ffffff26;
}
.progress i.on {
  background: var(--ink);
}
.s-title {
  font-family: var(--serif);
  font-size: 3em;
  line-height: 1;
}
.s-sub {
  margin: 0.4em 0 1.4em;
  color: var(--ink-2);
  font-size: 1.05em;
}
.field {
  display: grid;
  gap: 0.25em;
  padding: 0.85em 1em;
  border-radius: 1.2em;
  background: var(--glass);
  border: 1px solid var(--edge);
}
.f-label {
  font-size: 0.85em;
  color: var(--ink-3);
}
.f-value {
  font-size: 1.05em;
}
.pick {
  border: 1px solid #ffffff3d;
  color: var(--ink-2);
}
.pick.on {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--on-white);
  font-weight: 600;
}
.radio {
  display: flex;
  align-items: center;
  gap: 0.7em;
  padding: 0.7em 0.9em;
  margin-bottom: 0.45em;
  border-radius: 1.1em;
  background: var(--glass);
  border: 1px solid #ffffff1a;
  font-size: 1em;
  color: var(--ink-2);
}
.radio.on {
  border-color: #ffffff80;
  color: var(--ink);
}
.r-dot {
  width: 1.1em;
  height: 1.1em;
  border-radius: 50%;
  border: 0.15em solid #ffffff66;
}
.radio.on .r-dot {
  border-color: var(--ink);
  background: radial-gradient(circle, var(--ink) 40%, transparent 45%);
}
.scr-profile .btn-white {
  position: absolute;
  left: 1.5em;
  right: 1.5em;
  bottom: 1.6em;
}
.scr-profile.is-active .typing {
  animation: type-in 1.8s steps(28, end) 0.4s both;
}
@keyframes type-in {
  from {
    clip-path: inset(0 100% 0 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}
.scr-profile.is-active .pop {
  animation: pick-on 0.5s var(--ease-out) 2.3s both;
}
@keyframes pick-on {
  from {
    background: transparent;
    color: var(--ink-2);
    border-color: #ffffff3d;
    transform: scale(1);
  }
  50% {
    transform: scale(1.12);
  }
  to {
    transform: scale(1);
  }
}

/* 2 · Toca para ver más */
.pages {
  min-height: 15.5em;
}
.page {
  position: absolute;
  left: 1.5em;
  right: 1.5em;
  bottom: 3.2em;
}
.scr-tap .p2 {
  opacity: 0;
}
.scr-tap.is-active .p1 {
  animation: page-a 4.8s var(--ease-in-out) infinite;
}
.scr-tap.is-active .p2 {
  animation: page-b 4.8s var(--ease-in-out) infinite;
}
.scr-tap .dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1.2em;
}
.scr-tap .d1 {
  background: var(--ink);
}
.scr-tap.is-active .d1 {
  animation: dot-a 4.8s steps(1) infinite;
}
.scr-tap.is-active .d2 {
  animation: dot-b 4.8s steps(1) infinite;
}
@keyframes page-a {
  0%,
  40% {
    opacity: 1;
    transform: none;
  }
  46%,
  90% {
    opacity: 0;
    transform: translateY(-0.6em);
  }
  96%,
  100% {
    opacity: 1;
    transform: none;
  }
}
@keyframes page-b {
  0%,
  40% {
    opacity: 0;
    transform: translateY(0.6em);
  }
  46%,
  90% {
    opacity: 1;
    transform: none;
  }
  96%,
  100% {
    opacity: 0;
  }
}
@keyframes dot-a {
  0%,
  43% {
    background: var(--ink);
  }
  43.01%,
  93% {
    background: #ffffff40;
  }
  93.01% {
    background: var(--ink);
  }
}
@keyframes dot-b {
  0%,
  43% {
    background: #ffffff40;
  }
  43.01%,
  93% {
    background: var(--ink);
  }
  93.01% {
    background: #ffffff40;
  }
}
.hand-hint {
  position: absolute;
  left: 50%;
  top: 38%;
  display: grid;
  justify-items: center;
  transform: translateX(-50%);
}
.hand {
  width: 6.4em;
  height: 6.4em;
  fill: var(--ink);
  filter: drop-shadow(0 0.3em 0.8em #000000a0);
  transform-origin: 45% 20%;
}
.ripple {
  position: absolute;
  top: 0.9em;
  left: 50%;
  width: 3em;
  height: 3em;
  margin-left: -1.75em;
  border-radius: 50%;
  border: 0.18em solid var(--ink);
  opacity: 0;
}
.hint-label {
  margin-top: 0.4em;
  padding: 0.4em 0.9em;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px solid var(--edge);
  font-size: 0.95em;
  font-weight: 600;
  white-space: nowrap;
}
.scr-tap.is-active .hand {
  animation: press 2.4s var(--ease-in-out) infinite;
}
.scr-tap.is-active .ripple {
  animation: ripple 2.4s var(--ease-out) infinite;
}
@keyframes press {
  0%,
  60%,
  100% {
    transform: none;
  }
  75% {
    transform: scale(0.86) translateY(0.3em);
  }
  88% {
    transform: none;
  }
}
@keyframes ripple {
  0%,
  74% {
    opacity: 0;
    transform: scale(0.4);
  }
  78% {
    opacity: 0.9;
  }
  100% {
    opacity: 0;
    transform: scale(2.3);
  }
}

/*
 * Velo y marca del gesto, como `SwipeOverlay` de la app: al inclinar la tarjeta
 * se oscurece y en el centro se dibuja un corazón blanco relleno (like) o una
 * cruz negra con canto blanco (pasar), que crece de 0,6 a 1 mientras aparece.
 */
.sw-veil {
  position: absolute;
  inset: 0;
  background: #0a0a0bb3;
  opacity: 0;
}
.sw-mark {
  position: absolute;
  left: 50%;
  top: 42%;
  width: 11em;
  height: 11em;
  margin: -5.5em 0 0 -5.5em;
  overflow: visible;
  opacity: 0;
  transform: scale(0.6);
}
.sw-mark path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
.sw-like path {
  stroke: var(--ink);
  stroke-width: 2.4;
  fill: var(--ink);
  fill-opacity: 0;
}
.sw-pass .x-edge {
  stroke: var(--ink);
  stroke-width: 5.2;
}
.sw-pass .x-ink {
  stroke: #000;
  stroke-width: 3.4;
}

/* 0 · Portada: un vaivén de 6 s (derecha 8–32 %, izquierda 58–82 %). */
.scr-home.is-active .sw-veil {
  animation: home-veil 6s var(--ease-in-out) 2.2s infinite;
}
.scr-home.is-active .sw-like {
  animation: home-like 6s var(--ease-in-out) 2.2s infinite;
}
.scr-home.is-active .sw-like path {
  animation: home-like-draw 6s var(--ease-in-out) 2.2s infinite;
}
.scr-home.is-active .sw-pass {
  animation: home-pass 6s var(--ease-in-out) 2.2s infinite;
}
.scr-home.is-active .sw-pass path {
  animation: home-pass-draw 6s var(--ease-in-out) 2.2s infinite;
}
@keyframes home-veil {
  0%,
  8%,
  50%,
  58%,
  100% {
    opacity: 0;
  }
  24%,
  32%,
  74%,
  82% {
    opacity: 1;
  }
}
@keyframes home-like {
  0%,
  8% {
    opacity: 0;
    transform: scale(0.6);
  }
  14% {
    opacity: 1;
  }
  24%,
  32% {
    opacity: 1;
    transform: none;
  }
  44%,
  100% {
    opacity: 0;
    transform: scale(0.9);
  }
}
@keyframes home-like-draw {
  0%,
  8% {
    stroke-dashoffset: 1;
    fill-opacity: 0;
  }
  22% {
    stroke-dashoffset: 0;
    fill-opacity: 0;
  }
  28%,
  100% {
    stroke-dashoffset: 0;
    fill-opacity: 1;
  }
}
@keyframes home-pass {
  0%,
  58% {
    opacity: 0;
    transform: scale(0.6);
  }
  64% {
    opacity: 1;
  }
  74%,
  82% {
    opacity: 1;
    transform: none;
  }
  94%,
  100% {
    opacity: 0;
    transform: scale(0.9);
  }
}
@keyframes home-pass-draw {
  0%,
  58% {
    stroke-dashoffset: 1;
  }
  74%,
  100% {
    stroke-dashoffset: 0;
  }
}

/* 3 · Desliza */
.card-next {
  transform: scale(0.95);
}
.scr-swipe.is-active .card-fly {
  animation: fly 3.6s var(--ease-in-out) infinite;
}
.scr-swipe.is-active .sw-veil {
  animation: swipe-veil 3.6s var(--ease-in-out) infinite;
}
.scr-swipe.is-active .sw-like {
  animation: swipe-like 3.6s var(--ease-in-out) infinite;
}
.scr-swipe.is-active .sw-like path {
  animation: swipe-like-draw 3.6s var(--ease-in-out) infinite;
}
@keyframes swipe-veil {
  0%,
  12% {
    opacity: 0;
  }
  48%,
  64% {
    opacity: 1;
  }
  65%,
  100% {
    opacity: 0;
  }
}
@keyframes swipe-like {
  0%,
  12% {
    opacity: 0;
    transform: scale(0.6);
  }
  20% {
    opacity: 1;
  }
  48%,
  64% {
    opacity: 1;
    transform: none;
  }
  65%,
  100% {
    opacity: 0;
  }
}
@keyframes swipe-like-draw {
  0%,
  12% {
    stroke-dashoffset: 1;
    fill-opacity: 0;
  }
  38% {
    stroke-dashoffset: 0;
    fill-opacity: 0;
  }
  46%,
  100% {
    stroke-dashoffset: 0;
    fill-opacity: 1;
  }
}
.scr-swipe.is-active .card-next {
  animation: next-up 3.6s var(--ease-in-out) infinite;
}
.scr-swipe.is-active .grow {
  animation: grow 3.6s var(--ease-in-out) infinite;
}
@keyframes fly {
  0%,
  12% {
    transform: none;
    opacity: 1;
  }
  48% {
    transform: translateX(22%) rotate(6deg);
    opacity: 1;
  }
  64% {
    transform: translateX(150%) rotate(18deg);
    opacity: 1;
  }
  65%,
  80% {
    transform: scale(0.95);
    opacity: 0;
  }
  92%,
  100% {
    transform: none;
    opacity: 1;
  }
}
@keyframes next-up {
  0%,
  48% {
    transform: scale(0.95);
  }
  64%,
  80% {
    transform: none;
  }
  81%,
  100% {
    transform: scale(0.95);
  }
}
@keyframes grow {
  0%,
  12% {
    transform: none;
    fill: transparent;
  }
  48% {
    transform: scale(1.25);
  }
  56% {
    transform: scale(1.3);
    fill: var(--ink);
  }
  70%,
  100% {
    transform: none;
    fill: transparent;
  }
}
.grow .i {
  fill: inherit;
}

/* 4 · Tour de botones */
.tour-veil {
  position: absolute;
  inset: 0;
  background: #000000a6;
}
.scr-tour .actions,
.scr-tour .topbar {
  z-index: 2;
}
.tour-ring {
  position: absolute;
  z-index: 3;
  left: 0;
  top: 0;
  width: 4.2em;
  height: 4.2em;
  margin: -2.1em 0 0 -2.1em;
  border-radius: 50%;
  border: 0.2em solid var(--ink);
  box-shadow: 0 0 0 0.6em #ffffff1a;
  /* Deshacer: columna 1 de 5 en una fila de 25em que empieza en .8em. */
  transform: translate(3.3em, 50.5em);
}
.tour-bubble {
  position: absolute;
  z-index: 3;
  left: 1.6em;
  right: 1.6em;
  bottom: 9em;
  height: 3.6em;
}
.tb {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.1em;
  border-radius: 1.2em;
  background: var(--surface);
  border: 1px solid var(--edge);
  font-size: 1em;
  color: var(--ink-3);
  opacity: 0;
}
.tb b {
  color: var(--ink);
  font-weight: 600;
}
.tb1 {
  opacity: 1;
}
.scr-tour.is-active .tour-ring {
  animation: ring 8s var(--ease-in-out) infinite;
}
.scr-tour.is-active .tb1 {
  animation: tb 8s infinite;
}
.scr-tour.is-active .tb2 {
  animation: tb 8s -6s infinite;
}
.scr-tour.is-active .tb3 {
  animation: tb 8s -4s infinite;
}
.scr-tour.is-active .tb4 {
  animation: tb 8s -2s infinite;
}
@keyframes ring {
  0%,
  20% {
    transform: translate(3.3em, 50.5em);
  }
  25%,
  45% {
    transform: translate(13.3em, 50.5em);
  }
  50%,
  70% {
    transform: translate(23.3em, 50.5em);
  }
  75%,
  95% {
    transform: translate(21em, 3.85em) scale(1.25, 0.8);
  }
  100% {
    transform: translate(3.3em, 50.5em);
  }
}
@keyframes tb {
  0%,
  22% {
    opacity: 1;
  }
  25%,
  97% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* 5 · Match */
.scr-match {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-end;
  gap: 0.7em;
  padding: 0 1.5em 2.2em;
  text-align: center;
}
.m-glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(70% 45% at 50% 34%, #ffffff24, transparent 70%);
}
.m-pair {
  position: absolute;
  left: 50%;
  top: 17%;
  width: 0;
  height: 9em;
}
.m-av {
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-family: var(--serif);
  color: hsl(var(--hue) 4% 88%);
  background: radial-gradient(circle at 40% 30%, hsl(var(--hue) 5% 34%), hsl(var(--hue) 4% 12%));
  border: 0.15em solid #000;
}
.m-pair .m-av {
  position: absolute;
  top: 0;
  font-size: 2.6em;
  width: 3.5em;
  height: 3.5em;
}
.m-left {
  left: -3.2em;
}
.m-right {
  left: -0.3em;
}
.m-dot {
  position: absolute;
  left: -0.65em;
  top: 3.9em;
  width: 1.3em;
  height: 1.3em;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 1.4em var(--accent);
}
.m-title {
  font-family: var(--serif);
  font-style: italic;
  font-size: 4.2em;
  line-height: 1;
}
.m-text {
  color: var(--ink-2);
  font-size: 1.1em;
  margin-bottom: 1.4em;
}
.scr-match.is-active .m-left {
  animation: m-left 0.9s var(--ease-out) 0.1s both;
}
.scr-match.is-active .m-right {
  animation: m-right 0.9s var(--ease-out) 0.1s both;
}
.scr-match.is-active .m-dot {
  animation: m-dot 0.6s var(--ease-out) 0.8s both;
}
.scr-match.is-active .m-title,
.scr-match.is-active .m-text,
.scr-match.is-active .btn-white,
.scr-match.is-active .btn-glass {
  animation: rise 0.7s var(--ease-out) both;
}
.scr-match.is-active .m-title {
  animation-delay: 0.5s;
}
.scr-match.is-active .m-text {
  animation-delay: 0.6s;
}
.scr-match.is-active .btn-white {
  animation-delay: 0.7s;
}
.scr-match.is-active .btn-glass {
  animation-delay: 0.78s;
}
.scr-match.is-active .m-glow {
  animation: glow 3.2s ease-in-out 1s infinite alternate;
}
@keyframes m-left {
  from {
    transform: translateX(-2.2em);
    opacity: 0;
  }
}
@keyframes m-right {
  from {
    transform: translateX(2.2em);
    opacity: 0;
  }
}
@keyframes m-dot {
  from {
    transform: scale(0);
  }
  60% {
    transform: scale(1.4);
  }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(1em);
  }
}
@keyframes glow {
  to {
    opacity: 0.55;
  }
}

/* 6 · Chat */
.chat-head {
  position: absolute;
  top: 2.7em;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 0.7em;
  padding: 0.6em 1.2em 0.9em;
  border-bottom: 1px solid #ffffff1a;
}
.chat-head > .i {
  font-size: 1.4em;
}
.chat-head b {
  display: block;
  font-weight: 600;
  font-size: 1.1em;
}
.chat-head small {
  font-size: 0.85em;
  color: var(--accent);
}
.m-av.sm {
  width: 2.8em;
  height: 2.8em;
  font-size: 1.05em;
}
.chat-body {
  position: absolute;
  top: 7.6em;
  left: 1.1em;
  right: 1.1em;
  bottom: 5.4em;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.55em;
}
.ice-label {
  font-size: 0.8em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--ink-3);
}
.ice {
  align-self: flex-start;
  padding: 0.5em 0.9em;
  border-radius: 1.1em;
  border: 1px dashed #ffffff4d;
  color: var(--ink-2);
  font-size: 0.95em;
}
.bubble {
  max-width: 80%;
  padding: 0.6em 0.95em;
  border-radius: 1.3em;
  font-size: 1.02em;
}
.bubble.me {
  align-self: flex-end;
  background: var(--ink);
  color: var(--on-white);
  border-bottom-right-radius: 0.4em;
}
.bubble.them {
  align-self: flex-start;
  background: var(--glass-up);
  border-bottom-left-radius: 0.4em;
}
.typing-dots {
  display: flex;
  gap: 0.3em;
  padding: 0.85em 1em;
}
.typing-dots i {
  width: 0.5em;
  height: 0.5em;
  border-radius: 50%;
  background: var(--ink-2);
}
.scr-chat.is-active .bubble {
  animation: rise 0.5s var(--ease-out) both;
}
.scr-chat.is-active .b1 {
  animation-delay: 0.3s;
}
.scr-chat.is-active .b2 {
  animation-delay: 1.1s;
}
.scr-chat.is-active .b3 {
  animation-delay: 1.9s;
}
.scr-chat.is-active .typing-dots {
  animation-delay: 2.6s;
}
.scr-chat.is-active .typing-dots i {
  animation: bob 1s ease-in-out infinite;
}
.scr-chat.is-active .typing-dots i:nth-child(2) {
  animation-delay: 0.15s;
}
.scr-chat.is-active .typing-dots i:nth-child(3) {
  animation-delay: 0.3s;
}
@keyframes bob {
  0%,
  60%,
  100% {
    transform: none;
    opacity: 0.5;
  }
  30% {
    transform: translateY(-0.35em);
    opacity: 1;
  }
}
.composer {
  position: absolute;
  left: 1em;
  right: 1em;
  bottom: 1.4em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.35em 0.35em 0.35em 1.1em;
  border-radius: var(--r-pill);
  background: var(--glass);
  border: 1px solid var(--edge);
  color: var(--ink-3);
}
.send {
  display: grid;
  place-items: center;
  width: 2.4em;
  height: 2.4em;
  border-radius: 50%;
  background: var(--ink);
  color: var(--on-white);
  font-size: 1.05em;
}

/* 7 · Grupos */
.scr-groups {
  padding: 3.8em 1.3em 0;
}
.seg {
  display: flex;
  margin: 1.2em 0;
  padding: 0.25em;
  border-radius: var(--r-pill);
  background: var(--glass);
  border: 1px solid #ffffff1f;
}
.seg span {
  flex: 1;
  padding: 0.5em;
  border-radius: var(--r-pill);
  text-align: center;
  font-size: 0.95em;
  color: var(--ink-3);
}
.seg .on {
  background: var(--glass-up);
  color: var(--ink);
  font-weight: 600;
}
.group {
  padding: 1.2em;
  margin-bottom: 0.8em;
  border-radius: 1.6em;
  background: var(--glass);
  border: 1px solid var(--edge);
}
.group.dim {
  opacity: 0.55;
}
.g-name {
  font-family: var(--serif);
  font-size: 2em;
  line-height: 1.05;
}
.seats {
  display: flex;
  gap: 0.4em;
  margin-top: 1em;
}
.m-av.xs {
  width: 2.7em;
  height: 2.7em;
  font-size: 1em;
}
.seat-empty {
  width: 2.7em;
  height: 2.7em;
  border-radius: 50%;
  border: 0.12em dashed #ffffff4d;
}
.scr-groups .btn-white {
  position: absolute;
  left: 1.3em;
  right: 1.3em;
  bottom: 1.6em;
}
.scr-groups.is-active .seat-new {
  animation: seat 0.7s var(--ease-out) 0.9s both;
}
@keyframes seat {
  from {
    transform: scale(0);
    opacity: 0;
  }
  60% {
    transform: scale(1.18);
  }
}

/* ─── Portada ──────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  z-index: 3;
  min-height: 100vh;
  min-height: 100svh;
  max-width: var(--max);
  /* Sube 100vh para quedar encima del móvil (.rig, que ocupa su alto en el flujo). */
  margin: -100vh auto 0;
  margin: -100svh auto 0;
  padding: 120px var(--gutter) 96px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-copy {
  max-width: 36rem;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 10px;
  border-radius: var(--r-pill);
  background: var(--glass);
  border: 1px solid #ffffff1f;
  color: var(--ink-2);
  font-size: 0.85rem;
}
.eyebrow-mark {
  width: 22px;
  height: 15px;
  fill: var(--accent);
}
.hero-title {
  margin: 22px 0 18px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3.1rem, 7vw, 6.4rem);
  line-height: 0.95;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.hero-title em,
.premium h2 em,
.closing h2 em {
  font-style: italic;
  background: linear-gradient(100deg, var(--ink) 30%, var(--ink-3) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  /* Hueco para la cursiva (el recorte del degradado la cortaría) sin separar el punto. */
  padding-right: 0.08em;
  margin-right: -0.08em;
}
.hero-sub {
  max-width: 34ch;
  color: var(--ink-2);
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.55;
  text-wrap: pretty;
}
.download {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 34px;
}
.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.download .stores {
  flex-wrap: nowrap;
}
.store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 168px;
  min-height: 56px;
  padding: 8px 20px 8px 16px;
  border-radius: var(--r-lg);
  font-weight: 600;
  font-size: 1.1rem;
  line-height: 1.15;
  text-decoration: none;
  background: var(--ink);
  color: var(--on-white);
  transition: transform 0.2s var(--ease-out);
}
.store-logo {
  flex: none;
  width: 24px;
  height: 24px;
  fill: currentColor;
}
.store-text {
  display: flex;
  flex-direction: column;
}
.store small {
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  opacity: 0.75;
}
a.store:hover {
  transform: translateY(-2px);
}
a.store:active {
  transform: scale(0.97);
}
.store.is-soon {
  background: var(--glass);
  color: var(--ink);
  border: 1px solid var(--edge);
}
.store.is-soon small {
  color: var(--accent);
  opacity: 1;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.66rem;
}
.qr {
  display: none;
  align-items: center;
  gap: 14px;
  padding-left: 28px;
  border-left: 1px solid #ffffff1f;
}
.qr img {
  display: block;
  border-radius: 10px;
}
.qr p {
  max-width: 13ch;
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--ink-3);
}
@media (min-width: 1100px) and (pointer: fine) {
  .qr {
    display: flex;
  }
}
.hero-note {
  margin-top: 26px;
  font-size: 0.85rem;
  color: var(--ink-3);
}

.js .hero-copy > * {
  animation: rise-in 1s var(--ease-out) both;
}
.js .hero-copy > :nth-child(2) {
  animation-delay: 0.08s;
}
.js .hero-copy > :nth-child(3) {
  animation-delay: 0.18s;
}
.js .hero-copy > :nth-child(4) {
  animation-delay: 0.28s;
}
.js .hero-copy > :nth-child(5) {
  animation-delay: 0.38s;
}
@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
}

.scroll-cue {
  position: absolute;
  left: var(--gutter);
  bottom: 32px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-3);
  font-size: 0.85rem;
  text-decoration: none;
}
.scroll-cue i {
  position: relative;
  width: 1px;
  height: 36px;
  overflow: hidden;
  background: #ffffff26;
}
.scroll-cue i::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--ink);
  animation: cue 2.2s var(--ease-in-out) infinite;
}
@keyframes cue {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(100%);
  }
}

/* ─── Recorrido: escenario fijo con el móvil en el centro ──────────────── */

/*
 * El recorrido es un tramo de scroll largo (--n pasos) con un escenario fijo
 * (sticky) encima: texto a la izquierda, índice a la derecha y, en medio, el
 * hueco del móvil (que vive en .rig). Cada paso cambia pantalla y texto a la vez.
 */
.tour {
  --n: 7;
  position: relative;
  z-index: 3;
  height: calc(var(--n) * 40vh + 100vh);
  height: calc(var(--n) * 40svh + 100svh);
}
.tour-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr calc(var(--pw) * 1.3) 1fr;
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
}
.steps {
  grid-column: 1;
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
}
.step {
  /* Todos los pasos en la misma celda: se apilan y solo se ve el activo. */
  grid-area: 1 / 1;
  align-self: center;
}
.step-card {
  max-width: 28rem;
}
.step-count {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-3);
}
.step-count span {
  padding: 2px 9px;
  border-radius: var(--r-pill);
  background: var(--glass-up);
  color: var(--ink);
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}
.step-card h3 {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.2rem, 3.6vw, 3.2rem);
  line-height: 1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.step-card p {
  color: var(--ink-2);
  font-size: 1.05rem;
  text-wrap: pretty;
}
.tour-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.tour-list li {
  display: flex;
  gap: 14px;
  color: var(--ink-2);
  font-size: 0.97rem;
  line-height: 1.5;
}
.tour-list .i {
  margin-top: 2px;
  padding: 7px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--glass);
  border: 1px solid #ffffff1f;
  color: var(--ink);
  stroke-width: 2;
}
.tour-list b {
  display: block;
  color: var(--ink);
  font-weight: 600;
}

/* Índice de pasos (derecha): dónde estás y salto directo a cada paso. */
.tour-index {
  grid-column: 3;
  justify-self: end;
}
.tour-index ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}
.tour-index a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0 8px 22px;
  color: var(--ink-3);
  font-size: 0.92rem;
  text-decoration: none;
  transition: color 0.35s var(--ease-out);
}
.tour-index a::before {
  /* La raya del paso activo: se alarga desde la izquierda. */
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 14px;
  height: 1.5px;
  margin-top: -0.75px;
  background: currentColor;
  transform: scaleX(0.5);
  transform-origin: left;
  transition: transform 0.45s var(--ease-out);
}
.tour-index span {
  font-variant-numeric: tabular-nums;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  opacity: 0.7;
}
.tour-index a:hover,
.tour-index a[aria-current] {
  color: var(--ink);
}
.tour-index a[aria-current]::before {
  transform: none;
}

/* Con JS: el texto cambia en el sitio, en la misma dirección que las pantallas. */
.ready .step {
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0, 28px, 0);
  transition:
    opacity 0.28s var(--ease-out),
    transform 0.5s var(--ease-out),
    visibility 0s linear 0.5s;
}
.ready .step.is-past {
  transform: translate3d(0, -28px, 0);
}
.ready .step.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition:
    opacity 0.5s var(--ease-out) 0.1s,
    transform 0.7s var(--ease-out) 0.06s,
    visibility 0s;
}
/* Dentro del paso, contador, título y texto entran escalonados. */
.ready .step .step-card > * {
  opacity: 0;
  transform: translate3d(0, 12px, 0);
  transition:
    opacity 0.25s var(--ease-out),
    transform 0.25s var(--ease-out);
}
.ready .step.is-active .step-card > * {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.55s var(--ease-out),
    transform 0.75s var(--ease-out);
}
.ready .step.is-active .step-card > :nth-child(1) {
  transition-delay: 0.12s;
}
.ready .step.is-active .step-card > :nth-child(2) {
  transition-delay: 0.18s;
}
.ready .step.is-active .step-card > :nth-child(3) {
  transition-delay: 0.24s;
}

@media (max-width: 1199px) {
  /* Sin índice, pero con las columnas simétricas: el móvil sigue en el centro exacto. */
  .tour-index {
    display: none;
  }
  .step-card h3 {
    font-size: clamp(1.9rem, 3.2vw, 2.4rem);
  }
}

/* ─── Premium ──────────────────────────────────────────────────────────── */

.premium {
  position: relative;
  z-index: 3;
  padding: 120px var(--gutter) 60px;
}
.premium-inner {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 80px) clamp(22px, 5vw, 72px);
  border-radius: 36px;
  overflow: hidden;
  background:
    radial-gradient(60% 50% at 50% 0%, #2f7bff40, transparent 70%),
    radial-gradient(40% 40% at 90% 20%, #6a5bff30, transparent 70%),
    var(--night);
  border: 1px solid #ffffff1f;
  text-align: center;
}
.gem {
  position: relative;
  width: 84px;
  height: 84px;
  margin: 0 auto 24px;
}
.gem-svg {
  position: relative;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 10px 30px #2f7bff99);
  animation: float 5s ease-in-out infinite;
}
.gem-halo {
  position: absolute;
  inset: -60%;
  border-radius: 50%;
  background: radial-gradient(closest-side, #2f7bff55, transparent);
  animation: breathe 5s ease-in-out infinite;
}
@keyframes float {
  50% {
    transform: translateY(-8px) rotate(-4deg);
  }
}
@keyframes breathe {
  50% {
    transform: scale(1.15);
    opacity: 0.7;
  }
}
.eyebrow.on-night {
  background: #4da3ff1f;
  border-color: #4da3ff40;
  color: #9cd3ff;
  padding: 6px 14px;
}
.premium h2 {
  margin: 18px 0 14px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.6rem, 5.4vw, 4.4rem);
  line-height: 1;
  letter-spacing: -0.02em;
}
.premium h2 em {
  background-image: linear-gradient(100deg, #e4f3ff, #4da3ff 70%, #6a5bff);
}
.premium-sub {
  max-width: 46ch;
  margin: 0 auto;
  color: var(--night-ink-2);
}
.benefits {
  list-style: none;
  display: grid;
  gap: 12px;
  margin: 40px auto 0;
  padding: 0;
  max-width: 760px;
  text-align: left;
}
.benefits li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--r-lg);
  background: #ffffff0d;
  border: 1px solid #ffffff14;
  line-height: 1.35;
}
.b-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: #4da3ff24;
  color: #9cd3ff;
  font-size: 18px;
}
@media (min-width: 720px) {
  .benefits {
    grid-template-columns: 1fr 1fr;
  }
}
.plans {
  display: grid;
  gap: 14px;
  max-width: 560px;
  margin: 36px auto 0;
}
@media (min-width: 560px) {
  .plans {
    grid-template-columns: 1fr 1fr;
  }
}
.plan {
  position: relative;
  padding: 22px 20px;
  border-radius: var(--r-card);
  background: #ffffff0a;
  border: 1px solid #ffffff21;
}
.plan-best {
  background: linear-gradient(#0b1226, #0b1226) padding-box,
    linear-gradient(135deg, #8ad0ff, #3d7bff 60%, #6a5bff) border-box;
  border: 1.5px solid transparent;
  box-shadow: 0 20px 50px -20px #2f7bff80;
}
.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 3px 12px;
  border-radius: var(--r-pill);
  background: var(--badge);
  color: var(--on-badge);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}
.plan-name {
  color: var(--night-ink-2);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.plan-price {
  margin: 6px 0 4px;
  font-family: var(--serif);
  font-size: 2.6rem;
  line-height: 1.05;
}
.plan-price small {
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--night-ink-2);
}
.plan-trial {
  font-size: 0.88rem;
  color: #9cd3ff;
}
.premium-note {
  max-width: 52ch;
  margin: 26px auto 0;
  font-size: 0.85rem;
  color: #9aa8c6;
}

/* ─── Preguntas ────────────────────────────────────────────────────────── */

.faq {
  position: relative;
  z-index: 3;
  padding: 100px var(--gutter);
}
.faq-inner {
  max-width: 780px;
  margin: 0 auto;
}
.faq h2 {
  margin: 0 0 36px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  line-height: 1;
  letter-spacing: -0.02em;
}
.faq details {
  border-top: 1px solid #ffffff1f;
}
.faq details:last-child {
  border-bottom: 1px solid #ffffff1f;
}
.faq summary {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 64px;
  padding: 18px 48px 18px 0;
  cursor: pointer;
  list-style: none;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::before,
.faq summary::after {
  content: '';
  position: absolute;
  right: 8px;
  top: 50%;
  width: 16px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.35s var(--ease-out);
}
.faq summary::after {
  transform: rotate(90deg);
}
.faq details[open] summary::after {
  transform: rotate(0deg);
}
.faq summary:hover {
  color: var(--ink);
}
.faq .a {
  padding: 0 48px 24px 0;
  color: var(--ink-2);
}
.faq .a a {
  color: var(--ink);
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
}
@supports (interpolate-size: allow-keywords) {
  .faq {
    interpolate-size: allow-keywords;
  }
  .faq details::details-content {
    height: 0;
    overflow: clip;
    opacity: 0;
    transition:
      height 0.4s var(--ease-out),
      opacity 0.3s,
      content-visibility 0.4s allow-discrete;
  }
  .faq details[open]::details-content {
    height: auto;
    opacity: 1;
  }
}

/* ─── Cierre ───────────────────────────────────────────────────────────── */

.closing {
  position: relative;
  z-index: 3;
  padding: 60px var(--gutter) 140px;
  text-align: center;
}
.closing-mark {
  display: block;
  width: 120px;
  height: 80px;
  margin: 0 auto 30px;
  fill: var(--ink);
  overflow: visible;
}
.closing-mark .cm-dot {
  fill: var(--accent);
  transform-origin: 32px 32px;
}
.ready .closing-mark .cm-l {
  transform: translateX(-14px);
  transition: transform 1.2s var(--ease-out) 0.15s;
}
.ready .closing-mark .cm-r {
  transform: translateX(14px);
  transition: transform 1.2s var(--ease-out) 0.15s;
}
.ready .closing-mark .cm-dot {
  transform: scale(0);
  transition: transform 0.6s var(--ease-out) 1s;
}
.ready .closing-mark.in .cm-l,
.ready .closing-mark.in .cm-r,
.ready .closing-mark.in .cm-dot {
  transform: none;
}
.closing h2 {
  max-width: 14ch;
  margin: 0 auto 18px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.8rem, 7vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.closing > p {
  max-width: 38ch;
  margin: 0 auto 32px;
  color: var(--ink-2);
}
.closing .stores {
  justify-content: center;
}

.ready .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.8s var(--ease-out),
    transform 1s var(--ease-out);
}
.ready .reveal.in {
  opacity: 1;
  transform: none;
}
.ready .closing-mark.reveal {
  transform: none;
}

/* ─── Pie ──────────────────────────────────────────────────────────────── */

.foot {
  display: grid;
  gap: 32px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px var(--gutter) 40px;
  border-top: 1px solid #ffffff1a;
  color: var(--ink-3);
  font-size: 0.92rem;
}
.foot-brand p {
  margin-top: 12px;
}
.age {
  display: flex;
  align-items: center;
  gap: 10px;
}
.age-badge {
  padding: 1px 8px;
  border-radius: var(--r-sm);
  border: 1px solid #ffffff4d;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.8rem;
}
.foot-col {
  display: grid;
  align-content: start;
  gap: 8px;
}
.foot-col a {
  color: var(--ink-2);
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: color 0.2s;
}
.foot-col a:hover {
  color: var(--ink);
  text-decoration: underline;
}
.foot-h {
  margin-bottom: 4px;
  color: var(--ink);
  font-weight: 600;
}
.foot .lang {
  display: grid;
  gap: 8px;
}
.foot .lang a[aria-current='page'] {
  color: var(--ink);
  font-weight: 600;
}
.foot-legal {
  grid-column: 1 / -1;
  padding-top: 24px;
  border-top: 1px solid #ffffff14;
  font-size: 0.8rem;
}
@media (min-width: 720px) {
  .foot {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

/* ─── Pantalla estrecha (móvil y tableta): el móvil arriba, el texto debajo ── */

@media (max-width: 1023px) {
  :root {
    /* El móvil ocupa como mucho la mitad del alto: debajo tiene que caber la explicación. */
    --pw: min(46vw, 24vh, 24svh);
  }
  .rig {
    place-items: start center;
    padding-top: 72px;
  }
  .rig::after {
    /* Fundido bajo el móvil: el texto pasa por debajo sin chocar. */
    content: '';
    position: absolute;
    inset: auto 0 0;
    height: 0;
  }
  .rig-pos {
    transform: none;
  }
  .phone-shadow {
    display: none;
  }
  .hero {
    justify-content: flex-start;
    padding-top: calc(72px + var(--pw) * 2.06 + 28px);
    padding-bottom: 72px;
    text-align: center;
  }
  .hero-copy {
    margin: 0 auto;
  }
  .hero-title {
    font-size: clamp(2.6rem, 11vw, 3.4rem);
    margin: 16px 0 12px;
  }
  .hero-sub {
    margin: 0 auto;
    font-size: 1rem;
  }
  .download {
    justify-content: center;
    margin-top: 24px;
  }
  .stores {
    justify-content: center;
  }
  .store {
    min-width: 0;
    flex: 1 1 140px;
    max-width: 180px;
    gap: 8px;
    padding: 8px 12px;
    font-size: 1rem;
  }
  .store-logo {
    width: 20px;
    height: 20px;
  }
  /* En pantallas muy estrechas los dos botones no caben en fila: bajan de línea. */
  .download .stores {
    flex-wrap: wrap;
  }
  .scroll-cue {
    display: none;
  }
  /* El móvil arriba (en .rig) y el texto en el hueco de debajo. */
  .tour-stage {
    display: block;
    padding: calc(72px + var(--pw) * 2.06 + 22px) var(--gutter) 24px;
  }
  .step-card {
    max-width: 30rem;
    margin: 0 auto;
    text-align: center;
  }
  .step {
    align-self: start;
  }
  .step-count {
    justify-content: center;
    margin-bottom: 10px;
  }
  .step-card h3 {
    font-size: clamp(1.7rem, 7vw, 2.2rem);
    margin-bottom: 10px;
  }
  .step-card p {
    font-size: 0.97rem;
  }
  /* Los cuatro botones en rejilla 2×2 para que quepan bajo el móvil. */
  .tour-list {
    grid-template-columns: 1fr 1fr;
    gap: 12px 14px;
    text-align: left;
  }
  .tour-list li {
    flex-direction: column;
    gap: 6px;
    font-size: 0.8rem;
    line-height: 1.35;
  }
  .tour-list .i {
    width: 28px;
    height: 28px;
    padding: 5px;
  }
}

/* ─── Movimiento reducido ──────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .js .phone-enter {
    animation: fade-in 0.4s ease both;
  }
  @keyframes fade-in {
    from {
      opacity: 0;
    }
  }
  .js .hero-copy > *,
  .scroll-cue i::after,
  .gem-svg,
  .gem-halo {
    animation: none;
  }
  .scr *,
  .scr.is-active * {
    animation: none !important;
  }
  .scr-tap .p2 {
    opacity: 0;
  }
  /* Sin desplazamientos: pantallas y textos solo funden. */
  .scr,
  .scr.is-past,
  .ready .step,
  .ready .step.is-past,
  .ready .step .step-card > *,
  .ready .reveal {
    transform: none !important;
  }
  .scr,
  .ready .step {
    transition:
      opacity 0.25s ease,
      visibility 0s linear 0.25s;
  }
  .scr.is-active,
  .ready .step.is-active {
    transition: opacity 0.25s ease;
  }
  /* El móvil se queda a la derecha: el texto ocupa la columna izquierda. */
  .tour-stage {
    grid-template-columns: 1fr calc(var(--pw) * 1.3) 0;
  }
  .tour-index {
    display: none;
  }
  .ready .closing-mark .cm-l,
  .ready .closing-mark .cm-r,
  .ready .closing-mark .cm-dot {
    transform: none;
    transition: none;
  }
}

/* ─── Sin JS: el móvil se queda en la portada, sin seguir el scroll ─────── */

.no-js .rig {
  position: absolute;
  inset: 0 0 auto;
  margin: 0;
}
.no-js .hero {
  margin-top: 0;
}
/* Sin JS: los pasos, uno debajo de otro y sin escenario fijo. */
.no-js .tour {
  height: auto;
}
.no-js .tour-stage {
  position: static;
  height: auto;
  display: block;
  padding: 80px var(--gutter);
}
.no-js .steps {
  gap: 48px;
}
.no-js .step {
  grid-area: auto;
}
.no-js .tour-index {
  display: none;
}

/* Pantallas bajas: los cuatro botones, solo con icono y nombre; la descripción sigue para lectores de pantalla. */
@media (max-width: 1023px) and (max-height: 760px) {
  .tour-list .t-desc {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .tour-list li {
    flex-direction: row;
    align-items: center;
  }
}
