/* =========================================================
   HoloAtlas — web Fase 1 (página de espera)
   Una sola hoja. Solo modo oscuro. Sin recursos externos.
   ========================================================= */

/* ---------- Tipografía (Inter variable, servida en local) ---------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/inter-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Paleta ---------- */
:root {
  --fondo:        #0E0E14;  /* fondo de TODA la web */
  --superficie:   #1A1A24;  /* tarjetas */
  --superficie-2: #262632;  /* chips, campos del formulario */
  --borde:        #30303D;
  --texto:        #F2F2F7;
  --texto-2:      #9C9CAD;  /* párrafos y textos secundarios */
  --morado:       #8F75FF;  /* SOLO texto morado, iconos, bordes, brillos */
  --boton:        #6D4AFF;  /* SOLO relleno de botones con letras blancas */
  --boton-hover:  #5B36F2;
  --exito:        #3CCB7F;
  --error:        #FF6767;

  /* Efecto holo: solo brillos, nunca texto normal ni fondos sólidos */
  --holo-1: #8F75FF;
  --holo-2: #6FE7FF;
  --holo-3: #FF8AD8;
  --holo-4: #FFE08A;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-cjk: "Noto Sans CJK JP", "Yu Gothic", "Malgun Gothic", "Microsoft JhengHei", sans-serif;

  --header-h: 64px;
  --gutter: 16px;
  --section-space: 64px;
  --radius-sm: 12px;
  --radius: 16px;
  --radius-lg: 20px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  color-scheme: dark;
}

@media (min-width: 768px) {
  :root { --gutter: 32px; --section-space: 112px; --header-h: 72px; }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: var(--header-h);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--fondo);
  color: var(--texto);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
@supports (overflow: clip) {
  body { overflow-x: clip; }
}

img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }

a { color: var(--morado); text-underline-offset: 3px; }
a:hover { color: var(--texto); }

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

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px; top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--boton);
  color: #fff;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus { top: 12px; color: #fff; }

.container {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Iconos (SVG en línea, trazo fino) ---------- */
.icon {
  width: 20px; height: 20px;
  flex: none;
  fill: none;
  stroke: var(--morado);
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon--lg { width: 28px; height: 28px; }

/* ---------- Botones ----------
   Relleno SIEMPRE en --boton (#6D4AFF) con letras blancas. Nunca #8F75FF de fondo. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: var(--radius-sm);
  font: inherit;
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.btn--primary {
  background: var(--boton);
  color: #fff;
  box-shadow: 0 8px 24px rgba(109, 74, 255, .28);
}
.btn--primary:hover { background: var(--boton-hover); color: #fff; }
.btn--primary:active { transform: translateY(1px); }
.btn--primary:disabled { cursor: progress; opacity: .85; }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 14px; box-shadow: none; }

/* Fase 2: fila de botones de App Store y Google Play (aún sin uso) */
.store-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
}
.store-badges a { display: inline-flex; }
.store-badges img { height: 52px; width: auto; }
@media (max-width: 400px) {
  .store-badges { flex-direction: column; }
  .store-badges img { height: 48px; }
}

/* ---------- Chips ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--borde);
  border-radius: 999px;
  background: var(--superficie);
  color: var(--texto);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}
.chip--status {
  background: rgba(26, 26, 36, .6);
  color: var(--texto-2);
  font-size: 13px;
}
.chip__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--morado);
  box-shadow: 0 0 10px var(--morado);
}
.chip--cjk { font-family: var(--font), var(--font-cjk); }
.chip--cjk :lang(ja) { font-family: "Noto Sans CJK JP", "Yu Gothic", "Meiryo", var(--font-cjk); }
.chip--cjk :lang(ko) { font-family: "Noto Sans CJK KR", "Malgun Gothic", var(--font-cjk); }
.chip--cjk :lang(zh-Hant) { font-family: "Noto Sans CJK TC", "Microsoft JhengHei", var(--font-cjk); }

.chip-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 1040px;
  margin-inline: auto;
}

/* ---------- Banderas (SVG locales de flag-icons, nunca emoji) ---------- */
.flag {
  flex: none;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .12);
}
.flag--md { width: 24px; height: 18px; }
.flag--sm { width: 18px; height: 13px; }

.flag-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

/* ---------- Cabecera ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background-color .3s ease, border-color .3s ease;
}
.site-header.is-scrolled {
  background: rgba(14, 14, 20, .8);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--borde);
}
.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--texto);
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -.01em;
}
.brand:hover { color: var(--texto); }
.brand__icon { width: 32px; height: 32px; border-radius: 22%; }
.brand--footer { font-size: 15px; gap: 8px; }
.brand--footer .brand__icon { width: 24px; height: 24px; }

/* ---------- Tipos de texto reutilizables ---------- */
.eyebrow {
  color: var(--morado);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.overline {
  color: var(--texto-2);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 20px;
}
.h2 {
  font-size: clamp(30px, 7.4vw, 48px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -.03em;
  text-wrap: balance;
}
.fine-print {
  color: var(--texto-2);
  font-size: 12px;
  text-align: center;
}

/* ---------- Secciones ---------- */
.section { padding-block: var(--section-space); }
.section--tight { padding-top: 64px; padding-bottom: calc(var(--section-space) / 2); }
@media (min-width: 768px) {
  .section--tight { padding-top: 96px; }
}
.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 40px;
}
@media (min-width: 768px) {
  .section-head { margin-bottom: 56px; }
}

/* =========================================================
   PORTADA
   ========================================================= */
.hero {
  --stage-min: 250px;     /* alto mínimo del escenario de los móviles */
  --stage-max: 330px;     /* nunca se ve el móvil entero: solo su mitad de arriba */
  --stage-overlap: 36px;  /* la rejilla sube un poco por detrás de las banderas */
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-top: var(--header-h);
}
@media (min-width: 768px) {
  .hero { --stage-min: 230px; --stage-max: 420px; --stage-overlap: 64px; }
}

/* Resplandor morado detrás del titular */
.hero__glow {
  position: absolute;
  z-index: -1;
  left: 50%;
  top: calc(var(--header-h) + 40px);
  width: 900px;
  height: 640px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(143, 117, 255, .22), rgba(143, 117, 255, .08) 55%, transparent 100%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 20px;
  padding-bottom: 16px;
}

.hero__title {
  margin-top: 18px;
  font-size: clamp(40px, 11vw, 80px);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -.04em;
}

/* Palabra "language." con el degradado holo (regla 3b) */
.holo-text {
  background-image: linear-gradient(90deg, var(--holo-1), var(--holo-2), var(--holo-3), var(--holo-4), var(--holo-1));
  background-size: 300% 100%;
  background-position: 0% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  padding-bottom: .06em;
  animation: holo-text 9s ease-in-out infinite alternate;
}
@keyframes holo-text {
  to { background-position: 100% 50%; }
}

.hero__lead {
  max-width: 34ch;
  margin: 16px auto 24px;
  color: var(--texto-2);
  font-size: clamp(18px, 4.6vw, 21px);
  line-height: 1.5;
}

.hero__note {
  margin-top: 14px;
  color: var(--texto-2);
  font-size: 13px;
}

.hero__langs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 12px;
  margin-top: 18px;
}
.hero__langs-label {
  color: var(--texto-2);
  font-size: 12px;
  letter-spacing: .04em;
}

/* Escenario: luz de sobre + móviles cortados por abajo.
   Crece para llenar la primera pantalla; en pantallas bajitas
   se queda en su mínimo y empieza justo debajo. */
.hero__stage {
  position: relative;
  z-index: 1;
  flex: 3 0 var(--stage-min);
  min-height: var(--stage-min);
  max-height: var(--stage-max);
  margin-top: calc(var(--stage-overlap) * -1);
  overflow: hidden;
}

/* ---------- Fondo de la portada: un sobre que se acaba de abrir ----------
   Luz desde abajo (detrás de los móviles), siluetas de cartas con borde holo
   flotando a los lados y destellos con la estrella de 4 puntas del logo.
   En móvil hay menos y siempre en los bordes: nunca tapan texto ni formulario. */
.hero__deco {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* Silueta de carta: sin dibujo, borde holográfico y un reflejo diagonal */
.float-card {
  --cw: 44px;
  --rot: 0deg;
  position: absolute;
  z-index: 0;
  display: block;
  width: var(--cw);
  aspect-ratio: 63 / 88;
  border: 1.5px solid transparent;
  border-radius: calc(var(--cw) * .09);
  background:
    linear-gradient(150deg, rgba(40, 40, 54, .95), rgba(18, 18, 26, .95)) padding-box,
    linear-gradient(140deg, var(--holo-2), var(--holo-1) 38%, var(--holo-3) 70%, var(--holo-4)) border-box;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .45), 0 0 22px rgba(143, 117, 255, .14);
  opacity: .85;
  overflow: hidden;
  pointer-events: none;
  transform: rotate(var(--rot));
  animation: card-float var(--t, 9s) ease-in-out var(--d, 0s) infinite alternate;
}
.float-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .13) 44%, rgba(255, 255, 255, .03) 56%, transparent 66%);
}
.float-card--far { opacity: .3; filter: blur(1.2px); }
@keyframes card-float {
  to { transform: translateY(-12px) rotate(calc(var(--rot) + 3deg)); }
}

/* Destellos: aparecen y se van, cada uno a su ritmo */
.sparkle {
  --s: 14px;
  position: absolute;
  width: var(--s);
  height: var(--s);
  fill: var(--texto);
  opacity: .9;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, .55));
  animation: twinkle var(--t, 5s) ease-in-out var(--d, 0s) infinite;
}
@keyframes twinkle {
  0%, 100% { opacity: 0; transform: scale(.3) rotate(0deg); }
  35%, 65% { opacity: 1; transform: scale(1) rotate(20deg); }
}
.sparkle--1 { fill: var(--holo-4); filter: drop-shadow(0 0 6px rgba(255, 224, 138, .7)); }
.sparkle--3 { fill: var(--morado); filter: drop-shadow(0 0 6px rgba(143, 117, 255, .8)); }
.sparkle--5,
.sparkle--6 { --s: 9px; fill: var(--texto-2); filter: none; }

/* Móvil: dos cartas arriba en las esquinas, dos junto al móvil y dos destellos
   (las difuminadas de media altura no caben sin recargar los bordes) */
.float-card--1 { --cw: 40px; --rot: -14deg; --t: 9s; left: -18px; top: calc(var(--header-h) + 10px); }
.float-card--2 { --cw: 40px; --rot: 12deg; --t: 11s; --d: -4s; right: -16px; top: calc(var(--header-h) + 40px); }
.float-card--3,
.float-card--4 { display: none; }
.float-card--5 { --cw: 44px; --rot: -10deg; --t: 10s; --d: -2s; left: -12px; top: 46%; }
.float-card--6 { --cw: 44px; --rot: 9deg; --t: 12s; --d: -6s; right: -12px; top: 38%; }

.sparkle--1,
.sparkle--2,
.sparkle--5,
.sparkle--6 { display: none; }
.sparkle--3 { --s: 13px; --t: 5s; --d: -1s; left: 18px; bottom: 180px; }
.sparkle--4 { --s: 12px; --t: 6s; --d: -3.5s; right: 22px; bottom: 210px; }

@media (max-width: 359px) {
  .float-card--5,
  .float-card--6 { display: none; } /* en pantallas muy estrechas no caben sin tocar nada */
}
@media (min-width: 768px) {
  .float-card--1 { --cw: 56px; left: max(14px, calc(50% - 470px)); top: 15%; }
  .float-card--2 { --cw: 52px; right: auto; left: min(calc(100% - 66px), calc(50% + 410px)); top: 17%; }
  .float-card--5 { --cw: 56px; left: max(14px, calc(50% - 470px)); top: 42%; }
  .float-card--6 { --cw: 56px; right: auto; left: min(calc(100% - 70px), calc(50% + 412px)); top: 34%; }
  .sparkle { --s: 16px; }
  .sparkle--1 { display: block; --s: 18px; --t: 5.5s; --d: -2s; left: calc(50% - 380px); top: 21%; }
  .sparkle--3 { left: auto; right: calc(50% + 420px); bottom: auto; top: 46%; }
  .sparkle--4 { right: auto; left: calc(50% + 300px); bottom: auto; top: 66%; }
  .sparkle--5 { display: block; --t: 4.5s; --d: -1s; left: calc(50% + 360px); top: 13%; }
  /* Cartas difuminadas y destellos de media altura, pegados a los bordes en pantallas medianas */
  .float-card--3 { display: block; --cw: 42px; --rot: 12deg; --t: 13s; --d: -3s; left: max(14px, calc(50% - 470px)); top: 47%; }
  .float-card--4 { display: block; --cw: 40px; --rot: -10deg; --t: 12s; --d: -8s; left: min(calc(100% - 56px), calc(50% + 410px)); top: 44%; }
  .sparkle--2 { display: block; --t: 6.5s; --d: -4s; left: max(24px, calc(50% - 430px)); top: 39%; }
  .sparkle--6 { display: block; --s: 9px; --t: 5s; --d: -2.5s; left: min(calc(100% - 28px), calc(50% + 640px)); top: 52%; }
}
@media (min-width: 768px) and (max-width: 1099px) {
  .float-card--5,
  .float-card--6 { display: none; } /* aquí no hay hueco: quedarían pegadas a los móviles laterales */
}
@media (min-width: 1100px) {
  .float-card--1 { --cw: 66px; left: max(24px, calc(50% - 640px)); }
  .float-card--2 { --cw: 62px; left: min(calc(100% - 86px), calc(50% + 570px)); }
  .float-card--3 { display: block; --cw: 46px; --rot: 12deg; --t: 13s; --d: -3s; left: calc(50% - 470px); top: 47%; }
  .float-card--4 { display: block; --cw: 44px; --rot: -10deg; --t: 12s; --d: -8s; left: calc(50% + 410px); top: 44%; }
  .float-card--5 { --cw: 62px; left: max(14px, calc(50% - 560px)); }
  .float-card--6 { --cw: 64px; left: min(calc(100% - 78px), calc(50% + 500px)); }
  .sparkle--2 { display: block; --s: 14px; --t: 6.5s; --d: -4s; left: calc(50% - 430px); top: 39%; }
  .sparkle--3 { right: min(calc(100% - 30px), calc(50% + 640px)); }
  .sparkle--6 { display: block; --t: 5s; --d: -2.5s; left: min(calc(100% - 28px), calc(50% + 640px)); top: 52%; }
}

/* Luz que sale de abajo, detrás de los móviles (como al abrir un sobre) */
.hero__aura {
  position: absolute;
  z-index: 0;
  left: 50%;
  bottom: 0;
  width: min(1200px, 190%);
  height: min(70%, 640px);
  transform: translateX(-50%);
  background:
    radial-gradient(ellipse 24% 40% at 50% 62%, rgba(111, 231, 255, .30), transparent 72%),
    radial-gradient(ellipse 36% 70% at 50% 96%, rgba(143, 117, 255, .34), transparent 75%),
    radial-gradient(ellipse 55% 50% at 50% 100%, rgba(255, 138, 216, .12), transparent 80%);
  pointer-events: none;
  animation: aura-breathe 7s ease-in-out infinite alternate;
}
.hero__aura::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-conic-gradient(from -90deg at 50% 100%, rgba(255, 255, 255, .045) 0deg 2.5deg, transparent 2.5deg 11deg);
  -webkit-mask-image: radial-gradient(ellipse 45% 95% at 50% 100%, #000 15%, transparent 70%);
  mask-image: radial-gradient(ellipse 45% 95% at 50% 100%, #000 15%, transparent 70%);
}
@keyframes aura-breathe {
  from { opacity: .7; }
  to   { opacity: 1; }
}

.hero__phones {
  position: absolute;
  inset: 0;
  transform: translate3d(0, calc(var(--parallax, 0) * -1px), 0);
  will-change: transform;
}
.hero__phone {
  position: absolute;
  left: 50%;
  top: calc(var(--stage-overlap) + 16px);
}
.hero__phone--center {
  z-index: 3;
  transform: translateX(-50%);
}
.hero__phone--center .phone { --w: 240px; }
.hero__phone--left,
.hero__phone--right { display: none; }

@media (min-width: 768px) {
  .hero__phone { top: calc(var(--stage-overlap) + 20px); }
  .hero__phone--center .phone { --w: 290px; }
  .hero__phone--left,
  .hero__phone--right { display: block; top: calc(var(--stage-overlap) + 72px); z-index: 2; }
  .hero__phone--left  { transform: translateX(calc(-50% - 245px)) rotate(-9deg); }
  .hero__phone--right { transform: translateX(calc(-50% + 245px)) rotate(9deg); }
  .hero__phone--left .phone,
  .hero__phone--right .phone { --w: 240px; }
}

/* Fundido inferior: los móviles "salen del suelo" */
.hero__stage::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  z-index: 4;
  height: 90px;
  background: linear-gradient(to bottom, rgba(14, 14, 20, 0), var(--fondo) 90%);
  pointer-events: none;
}

.hero__more {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  padding: 6px 10px;
  color: var(--texto-2);
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
}
.hero__more:hover { color: var(--texto); }

/* =========================================================
   MARCO DE MÓVIL (genérico, hecho con CSS)
   ========================================================= */
.phone {
  --w: 260px;
  position: relative;
  flex: none;
  width: var(--w);
  padding: calc(var(--w) * .032);
  background: #000;
  border: 1px solid var(--borde);
  border-radius: calc(var(--w) * .16);
  box-shadow: 0 30px 80px rgba(109, 74, 255, .25), inset 0 0 0 1px rgba(255, 255, 255, .04);
}
.phone img {
  width: 100%;
  height: auto;
  border-radius: calc(var(--w) * .13);
  background: var(--superficie);
}

/* Reflejo holo que cruza despacio el móvil central (regla 3a) */
.phone--holo::after {
  content: "";
  position: absolute;
  inset: calc(var(--w) * .032);
  border-radius: calc(var(--w) * .13);
  background-image: linear-gradient(115deg,
    transparent 30%,
    rgba(143, 117, 255, .7) 40%,
    rgba(111, 231, 255, .7) 46%,
    rgba(255, 138, 216, .7) 52%,
    rgba(255, 224, 138, .7) 58%,
    transparent 68%);
  background-size: 260% 260%;
  background-position: 100% 100%;
  mix-blend-mode: overlay;
  opacity: .45;
  pointer-events: none;
  animation: holo-sweep 7s ease-in-out infinite alternate;
}
@keyframes holo-sweep {
  to { background-position: 0% 0%; }
}

/* Inclinación siguiendo el ratón (solo escritorio, la activa script.js) */
.phone[data-tilt] {
  transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .5s var(--ease);
}

/* Pareja de capturas: principal delante, secundaria detrás y desplazada */
.phone-pair {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-bottom: 6%;
}
.phone-pair .phone--main { --w: min(50vw, 280px); z-index: 2; }
.phone-pair .phone--back {
  --w: min(42vw, 236px);
  z-index: 1;
  margin-top: 14%;
  margin-left: calc(var(--w) * -.2);
  filter: brightness(.82);
}
.feature--reverse .phone-pair { flex-direction: row-reverse; }
.feature--reverse .phone-pair .phone--back {
  margin-left: 0;
  margin-right: calc(var(--w) * -.2);
}
.feature__media { container-type: inline-size; }
@supports (width: 1cqi) {
  .phone-pair .phone--main { --w: min(52cqi, 280px); }
  .phone-pair .phone--back { --w: min(44cqi, 236px); }
}

/* =========================================================
   BLOQUES DE LA APP
   ========================================================= */
.features {
  display: grid;
  gap: var(--section-space);
}
.feature {
  display: grid;
  gap: 40px;
  align-items: center;
}
@media (min-width: 900px) {
  .feature {
    grid-template-columns: 1fr 1fr;
    gap: 72px;
  }
  .feature--reverse .feature__text { order: 2; }
}
.feature__text { max-width: 520px; }
@media (min-width: 900px) {
  .feature--reverse .feature__text { justify-self: end; }
}
.feature__body {
  margin-top: 18px;
  color: var(--texto-2);
  font-size: 17px;
}
.checklist {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-weight: 500;
}
.checklist .icon { margin-top: 2px; }

/* Monedas (bloque "What it's worth"): 9 principales + desplegable con el resto */
.currency-box {
  margin-top: 28px;
  padding: 18px 20px;
  background: var(--superficie);
  border: 1px solid var(--borde);
  border-radius: var(--radius);
}
.currency-box__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
  margin-bottom: 14px;
}
.currency-box__lead { font-size: 15px; font-weight: 600; }
.currency-box__count {
  color: var(--morado);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}
.currency-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip--currency {
  gap: 6px;
  padding: 4px 11px;
  background: var(--superficie-2);
  font-size: 13px;
}
.chip--currency abbr { text-decoration: none; }

.currency-more { margin-top: 12px; }
.currency-more summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--borde);
  border-radius: 999px;
  color: var(--morado);
  font-size: 14px;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease;
}
.currency-more summary::-webkit-details-marker { display: none; }
.currency-more summary:hover { border-color: rgba(143, 117, 255, .6); color: var(--texto); }
.currency-more summary .icon { width: 16px; height: 16px; stroke: currentColor; transition: transform .2s ease; }
.currency-more[open] summary .icon { transform: rotate(180deg); }
.currency-more[open] .when-closed,
.currency-more:not([open]) .when-open { display: none; }
.currency-more .currency-list { margin-top: 12px; }
.currency-box__note {
  margin-top: 14px;
  color: var(--texto-2);
  font-size: 13px;
  line-height: 1.5;
}

/* =========================================================
   TARJETAS ("And there's more" = cristal)
   ========================================================= */
.card-grid {
  display: grid;
  gap: 16px;
}
@media (min-width: 900px) {
  .card-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}
.card {
  padding: 28px;
  background: var(--superficie);
  border: 1px solid var(--borde);
  border-radius: var(--radius-lg);
}
.card--glass {
  background: rgba(26, 26, 36, .6);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(143, 117, 255, .25);
  transition: border-color .3s ease, box-shadow .3s ease;
}
.card--glass:hover {
  border-color: rgba(143, 117, 255, .6);
  box-shadow: 0 0 0 1px rgba(143, 117, 255, .12), 0 16px 48px rgba(109, 74, 255, .16);
}
.card__title {
  margin: 18px 0 8px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.01em;
}
.card__text { color: var(--texto-2); }

/* =========================================================
   LLAMADA FINAL
   ========================================================= */
.final-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  text-align: center;
}
.final-cta__glow {
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 50%;
  width: 900px;
  height: 720px;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(143, 117, 255, .2), rgba(143, 117, 255, .06) 60%, transparent 100%);
  pointer-events: none;
}
.final-cta__icon {
  width: 88px;
  height: 88px;
  margin: 0 auto 28px;
  border-radius: 22%;
  box-shadow: 0 16px 48px rgba(109, 74, 255, .45);
}
.final-cta__text {
  max-width: 36ch;
  margin: 16px auto 32px;
  color: var(--texto-2);
  font-size: 18px;
}

/* =========================================================
   FORMULARIO DE LA LISTA DE ESPERA
   ========================================================= */
.cta-slot {
  width: 100%;
  max-width: 480px;
  margin-inline: auto;
}
.waitlist-form {
  position: relative;
  text-align: left;
}
.waitlist-form__title {
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}
.waitlist-form__row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.input {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  background: var(--superficie-2);
  border: 1px solid var(--borde);
  border-radius: var(--radius-sm);
  color: var(--texto);
  font: inherit;
  font-size: 16px; /* 16px o más: el iPhone no hace zoom */
  transition: border-color .2s ease, box-shadow .2s ease;
}
.input::placeholder { color: var(--texto-2); opacity: 1; }
.input:focus {
  outline: none;
  border-color: var(--morado);
  box-shadow: 0 0 0 3px rgba(143, 117, 255, .28);
}
.input[aria-invalid="true"] { border-color: var(--error); }
.waitlist-form .btn { width: 100%; min-height: 52px; }
@media (min-width: 560px) {
  .waitlist-form__row { flex-direction: row; }
  .waitlist-form__row .input { flex: 1; min-width: 0; }
  .waitlist-form .btn { width: auto; }
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 14px;
  color: var(--texto-2);
  font-size: 14px;
  line-height: 1.5;
  cursor: pointer;
}
.consent__box {
  flex: none;
  width: 24px;
  height: 24px;
  margin: 0;
  accent-color: #8F75FF;
  cursor: pointer;
}
.consent a { color: var(--morado); white-space: nowrap; }
.consent a:hover { color: var(--texto); }

/* Campo trampa: fuera de la pantalla (no display:none) */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form-message {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 500;
}
.form-message:empty { margin: 0; }
.form-message.is-error { color: var(--error); }
.form-message.is-ok { color: var(--exito); }

.form-success {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 20px;
  background: rgba(60, 203, 127, .08);
  border: 1px solid rgba(60, 203, 127, .35);
  border-radius: var(--radius);
  color: var(--texto);
  font-weight: 600;
  text-align: left;
}
.form-success:focus { outline: none; }
.form-success .icon { width: 24px; height: 24px; stroke: var(--exito); stroke-width: 2; }

/* =========================================================
   PIE
   ========================================================= */
.site-footer {
  padding: 40px 0 48px;
  border-top: 1px solid var(--borde);
  background: var(--fondo);
  color: var(--texto-2);
  font-size: 13px;
}
.site-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}
.footer-links a { color: var(--texto-2); }
.footer-links a:hover,
.footer-links a[aria-current="page"] { color: var(--texto); }
.site-footer__legal { max-width: 70ch; }

/* =========================================================
   PÁGINAS DE TEXTO (privacy) Y 404
   ========================================================= */
.page {
  padding-top: calc(var(--header-h) + 48px);
  padding-bottom: var(--section-space);
}
.prose {
  max-width: 70ch;
  margin-inline: auto;
}
.prose h1 {
  font-size: clamp(34px, 8vw, 52px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -.03em;
}
.prose .updated {
  margin-top: 12px;
  color: var(--texto-2);
  font-size: 14px;
}
.prose h2 {
  margin: 40px 0 10px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.01em;
}
.prose p,
.prose li { color: var(--texto-2); }
.prose p + p { margin-top: 12px; }
.prose ul {
  list-style: disc;
  margin-top: 10px;
  padding-left: 1.3em;
}
.prose li + li { margin-top: 6px; }
.prose li::marker { color: var(--morado); }

.pending {
  color: var(--error);
  font-weight: 600;
}

.not-found {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: calc(var(--header-h) + 32px) var(--gutter) 64px;
  text-align: center;
}
.not-found__icon {
  width: 88px;
  height: 88px;
  margin: 0 auto 28px;
  border-radius: 22%;
  box-shadow: 0 16px 48px rgba(109, 74, 255, .45);
}
.not-found .h2 { max-width: 16ch; margin: 0 auto 32px; }

/* =========================================================
   MOVIMIENTO
   ========================================================= */
/* Aparición al hacer scroll (la clase .js la pone script.js) */
.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Con "reducir movimiento" no se mueve NADA */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .hero__phones { transform: none; }
  .phone[data-tilt] { transform: none; }
}
