/* ============================================================================
   Anima — web de presentación (viveanima.es)
   Hoja de estilos única. Tokens alineados con lib/theme/app_theme.dart
   y DISEÑO.md: oscuro, sobrio, sereno. Sin degradados en UI (solo el logo).
   ========================================================================== */

/* ---------- Tipografía de marca (DM Sans variable, OFL 1.1) ---------- */
@font-face {
  font-family: "DM Sans";
  src: url("../fonts/DMSans.woff2") format("woff2-variations"),
       url("../fonts/DMSans.woff2") format("woff2"),
       url("../fonts/DMSans.ttf") format("truetype");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* Fondos (nunca negro puro) */
  --bg: #0B0A12;
  --bg-alt: #100E18;
  --surface: #17141F;
  --surface-2: #1D1927;
  --surface-3: #252032;

  /* Bordes */
  --border: #2C2738;
  --border-strong: #40364F;
  --separator: rgba(255, 255, 255, 0.06);

  /* Texto */
  --text: #F5F2F7;
  --text-2: #B7B0BF;
  --text-3: #81798B;
  --text-4: #5F5968;
  --on-accent: #14101B;

  /* Acentos sólidos */
  --pink: #D85AC7;
  --purple: #9365E8;
  --coral: #FF6B68;
  --self: #8E8CFF;   /* azul: lo mío (lenguaje del cielo compartido) */
  --other: #D85AC7;  /* rosa: la otra persona */
  --spotify: #1DB954;

  /* Escala de espaciado (4/8/12/16/20/24/32/40/48) */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 20px;
  --s-6: 24px; --s-8: 32px; --s-10: 40px; --s-12: 48px; --s-16: 64px;

  /* Radios */
  --r-sm: 10px; --r-md: 14px; --r-lg: 20px; --r-xl: 28px; --r-pill: 999px;

  /* Tipografía */
  --font: "DM Sans", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Movimiento */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --t-fast: 180ms;
  --t-base: 320ms;
  --t-slow: 700ms;

  --container: 1120px;
  --nav-h: 72px;

  color-scheme: dark;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg, picture { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(216, 90, 199, .35); color: var(--text); }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--surface-3); color: var(--text); padding: 10px 14px; border-radius: var(--r-sm);
  transition: top var(--t-fast);
}
.skip-link:focus { top: 16px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ---------- Tipografía ---------- */
.h1, h1 {
  font-size: clamp(2.5rem, 5.4vw, 4.4rem);
  line-height: 1.04;
  font-weight: 600;
  letter-spacing: -0.025em;
}
.h2, h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.85rem);
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.h3, h3 {
  font-size: 1.25rem;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.lead {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  line-height: 1.55;
  color: var(--text-2);
  font-weight: 400;
}
.muted { color: var(--text-2); }
.faint { color: var(--text-3); }
.accent { color: var(--pink); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8125rem; font-weight: 500; letter-spacing: .04em; text-transform: uppercase;
  color: var(--text-3);
}
.eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--pink);
}

/* ---------- Layout ---------- */
.container {
  width: min(100% - clamp(32px, 6vw, 64px), var(--container));
  margin-inline: auto;
}
.section { padding-block: clamp(88px, 11vw, 150px); position: relative; }
.section--tight { padding-block: clamp(56px, 7vw, 96px); }
.section-head { max-width: 640px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head .eyebrow { margin-bottom: 16px; }
.section-head .lead { margin-top: 16px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }

/* ---------- Botones (sólidos, estilo Apple: sin degradado, sin sombra) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 24px; border-radius: var(--r-md);
  font-weight: 600; font-size: 1rem; letter-spacing: -0.005em; white-space: nowrap;
  transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease),
              transform var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
  will-change: transform;
}
.btn:active { transform: translateY(1px) scale(.995); transition-duration: 90ms; }
.btn--primary { background: var(--pink); color: var(--on-accent); }
.btn--primary:hover { background: #E26FD2; transform: translateY(-1px); }
.btn--secondary { background: transparent; color: var(--text); border: 1px solid var(--border-strong); }
.btn--secondary:hover { border-color: #5A4E6E; background: rgba(255,255,255,.04); transform: translateY(-1px); }
.btn--ghost { color: var(--text-2); padding-inline: 12px; height: 44px; }
.btn--ghost:hover { color: var(--text); }
.btn--sm { height: 42px; padding: 0 18px; font-size: .9375rem; }
.btn svg { width: 18px; height: 18px; }

/* ---------- Navegación ---------- */
.nav {
  position: fixed; inset-inline: 0; top: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background var(--t-base) var(--ease), border-color var(--t-base) var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(13, 12, 20, .84);
  -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2);
  border-bottom-color: var(--separator);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav__logo img { height: 30px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links a {
  padding: 8px 14px; border-radius: var(--r-sm);
  color: var(--text-2); font-weight: 500; font-size: .95rem;
  transition: color var(--t-fast), background var(--t-fast);
}
.nav__links a:hover { color: var(--text); background: rgba(255,255,255,.04); }
.nav__links a.is-active { color: var(--text); }

/* "Legal" — mismo tratamiento visual que el resto de nav__links; abre un popover compacto */
.nav__legal { position: relative; }
.nav__legal-trigger {
  padding: 8px 14px; border-radius: var(--r-sm);
  color: var(--text-2); font-weight: 500; font-size: .95rem;
  transition: color var(--t-fast), background var(--t-fast);
}
.nav__legal-trigger:hover { color: var(--text); background: rgba(255,255,255,.04); }
.nav__legal-menu {
  position: absolute; top: calc(100% + 6px); left: 50%;
  min-width: 210px;
  background: rgba(23, 20, 31, .92); border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 6px; display: flex; flex-direction: column; gap: 2px;
  -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: 0 20px 50px rgba(0,0,0,.35);
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateX(-50%) translateY(-6px);
  transition: opacity var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), visibility var(--t-fast);
  z-index: 110;
}
.nav__legal-menu.is-open { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.nav__legal-menu a { padding: 10px 12px; border-radius: var(--r-sm); color: var(--text-2); font-size: .9rem; font-weight: 500; white-space: nowrap; }
.nav__legal-menu a:hover, .nav__legal-menu a:focus-visible { color: var(--text); background: rgba(255,255,255,.04); }

.nav__cta { display: flex; align-items: center; gap: 8px; }
.nav__cta .short { display: none; }
.nav__burger {
  display: none; width: 44px; height: 44px; align-items: center; justify-content: center;
  border-radius: var(--r-sm); color: var(--text);
}
.nav__burger svg { width: 22px; height: 22px; }

.nav-mobile {
  position: fixed; inset: 0; z-index: 99; background: rgba(11, 10, 18, .96);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  display: none; flex-direction: column; justify-content: center; align-items: center; gap: 8px;
  padding: var(--nav-h) 24px 24px;
}
.nav-mobile.is-open { display: flex; }
.nav-mobile a { font-size: 1.5rem; font-weight: 500; padding: 12px 20px; color: var(--text-2); border-radius: var(--r-md); }
.nav-mobile a:hover { color: var(--text); }
.nav-mobile .btn { margin-top: 24px; }

/* ---------- Fondo cósmico (canvas de estrellas discreto) ---------- */
.stars {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  opacity: .9;
}
main { position: relative; z-index: 1; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  display: grid; align-items: center;
  padding-top: calc(var(--nav-h) + 40px);
  padding-bottom: clamp(48px, 7vw, 96px);
  position: relative;
  overflow: hidden;
}
.hero__grid {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  align-items: center; gap: clamp(32px, 5vw, 72px);
}
.hero__copy { max-width: 600px; }
.hero__mark {
  display: inline-flex; align-items: center; gap: 12px; margin-bottom: 28px;
}
.hero__mark img { height: 44px; width: auto; }
.hero h1 { margin-bottom: 24px; font-size: clamp(2.2rem, 4vw, 3.5rem); }
.hero h1 .accent { color: var(--pink); }
.hero .lead { max-width: 520px; margin-bottom: 36px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero__note { margin-top: 20px; font-size: .9rem; color: var(--text-3); }
.hero__note strong { color: var(--text-2); font-weight: 500; }

.hero__visual {
  position: relative; display: flex; justify-content: center; align-items: center;
  min-height: 560px;
}
.hero__halo {
  position: absolute; inset: 0; margin: auto;
  width: 640px; height: 640px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(147, 101, 232, .22), rgba(216, 90, 199, .07) 55%, transparent 72%);
  filter: blur(14px);
  pointer-events: none;
}
.hero__phone { position: relative; z-index: 2; }
.hero__floats { position: absolute; inset: 0; z-index: 3; pointer-events: none; transition: transform 700ms var(--ease); will-change: transform; }
.hero__float {
  position: absolute;
  background: rgba(23, 20, 31, .92); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 14px 16px;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  max-width: 250px;
  box-shadow: 0 20px 50px rgba(0,0,0,.35);
  animation: floaty 7s ease-in-out infinite alternate;
}
.hero__float--b { animation-duration: 8.5s; animation-delay: -3s; }
.hero__float__inner { display: flex; align-items: center; gap: 12px; transition: opacity 260ms var(--ease), transform 260ms var(--ease); }
.hero__float__inner.is-swapping { opacity: 0; transform: translateY(4px); }
@keyframes floaty { from { transform: translateY(0); } to { transform: translateY(-4px); } }
.hero__float--a { right: -22px; top: 11%; }
.hero__float--b { left: -28px; bottom: -6px; }
.hero__float .ico {
  flex: none; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; background: var(--surface-3); color: var(--pink);
}
.hero__float .ico svg { width: 18px; height: 18px; }
.hero__float b { display: block; font-weight: 600; font-size: .9rem; }
.hero__float span { display: block; font-size: .8rem; color: var(--text-3); line-height: 1.4; }

/* ---------- Teléfono (marco CSS, fiel a la app) ---------- */
.phone-wrap {
  --ps: .8;
  width: calc(390px * var(--ps));
  height: calc(820px * var(--ps));
  position: relative;
}
.phone {
  width: 390px; height: 820px;
  transform: scale(var(--ps)); transform-origin: top left;
  border-radius: 54px;
  background: #050409;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow:
    0 0 0 1px rgba(0,0,0,.6),
    0 40px 90px rgba(0,0,0,.55),
    inset 0 0 0 1px rgba(255,255,255,.04);
  position: relative;
}
.phone::before { /* botón lateral */
  content: ""; position: absolute; right: -3px; top: 190px; width: 3px; height: 84px;
  background: rgba(255,255,255,.12); border-radius: 2px;
}
.phone__screen {
  width: 100%; height: 100%; border-radius: 43px; overflow: hidden;
  background: var(--bg); position: relative;
  display: flex; flex-direction: column;
  font-size: 15px; line-height: 1.4;
}
.phone__status {
  height: 52px; flex: none; display: flex; align-items: center; justify-content: space-between;
  padding: 10px 28px 0; font-size: 15px; font-weight: 600;
}
.phone__status .sig { display: flex; gap: 6px; align-items: center; }
.phone__status .sig i { display: block; width: 18px; height: 11px; border: 1px solid var(--text); border-radius: 3px; position: relative; }
.phone__status .sig i::after { content: ""; position: absolute; inset: 2px; right: 3px; background: var(--text); border-radius: 1px; }
.phone__body { flex: 1; overflow: hidden; position: relative; display: flex; flex-direction: column; }
.phone__home {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  width: 134px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.5); z-index: 5;
}

/* Componentes de app dentro del teléfono */
.app-top {
  display: flex; align-items: center; justify-content: space-between; padding: 6px 20px 10px;
}
.app-top img { height: 26px; }
.app-top .ico, .app-ico {
  width: 36px; height: 36px; display: grid; place-items: center; color: var(--text-2);
}
.app-ico svg, .app-top .ico svg { width: 22px; height: 22px; }
.app-scroll { padding: 0 16px 90px; flex: 1; overflow: hidden; }

.app-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 20px; overflow: hidden;
}
.app-photo {
  position: relative; height: 250px; overflow: hidden; background: #1a1420;
}
.app-photo__blur {
  position: absolute; inset: -30px;
  background:
    radial-gradient(58% 52% at 52% 38%, rgba(214, 168, 160, .5), transparent 70%),
    radial-gradient(44% 40% at 47% 64%, rgba(160, 110, 140, .45), transparent 70%),
    radial-gradient(70% 60% at 50% 100%, rgba(80, 55, 95, .8), transparent 70%),
    linear-gradient(180deg, #2b2138, #15111e);
  filter: blur(22px) saturate(.8);
}
.app-photo__pill {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px;
  background: rgba(11,10,18,.78); border: 1px solid rgba(255,255,255,.08);
  padding: 8px 14px 8px 10px; border-radius: 12px; white-space: nowrap;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.app-photo__pill svg { width: 18px; height: 18px; color: var(--text); }
.app-photo__pill b { display: block; font-size: 13px; font-weight: 600; }
.app-photo__pill span { display: block; font-size: 11px; color: var(--text-3); }
.app-card__body { padding: 16px 18px 18px; }
.app-name { display: flex; align-items: baseline; gap: 8px; font-size: 22px; font-weight: 600; letter-spacing: -.01em; }
.app-sub { font-size: 13px; color: var(--text-3); margin-top: 2px; }
.app-quote { margin-top: 14px; display: flex; gap: 10px; font-size: 14px; color: var(--text-2); line-height: 1.45; }
.app-quote::before { content: "\201C"; color: var(--pink); font-size: 30px; line-height: .8; font-weight: 600; }
.app-label { font-size: 12px; color: var(--text-3); font-weight: 500; margin: 16px 0 8px; }
.app-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.app-chip {
  font-size: 12px; font-weight: 500; padding: 6px 12px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text);
}
.app-chip--more { color: var(--text-3); }
.app-row {
  margin-top: 12px; display: flex; align-items: center; gap: 12px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 14px; padding: 10px 12px;
}
.app-play {
  flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--purple);
  display: grid; place-items: center; color: #fff;
}
.app-play svg { width: 16px; height: 16px; }
.app-wave { flex: 1; display: flex; align-items: center; gap: 2px; height: 22px; }
.app-wave i { display: block; width: 2px; border-radius: 1px; background: var(--text-2); height: var(--h, 8px); opacity: .85; }
.app-time { font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.app-spotify {
  flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--spotify); display: grid; place-items: center;
}
.app-spotify svg { width: 18px; height: 18px; color: #0b0a12; }
.app-track b { display: block; font-size: 14px; font-weight: 600; }
.app-track span { display: block; font-size: 12px; color: var(--text-3); }

.app-nav {
  position: absolute; inset-inline: 0; bottom: 0; height: 84px;
  background: rgba(16,14,24,.94); border-top: 1px solid var(--separator);
  display: grid; grid-template-columns: repeat(4, 1fr); align-items: start; padding-top: 12px;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.app-nav div { display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: 11px; color: var(--text-3); font-weight: 500; }
.app-nav svg { width: 22px; height: 22px; }
.app-nav .is-active { color: var(--pink); }

/* Chat */
.app-chat-head {
  display: flex; align-items: center; gap: 10px; padding: 6px 14px 12px; border-bottom: 1px solid var(--separator);
}
.app-avatar {
  width: 38px; height: 38px; border-radius: 50%; background: var(--surface-3); border: 1px solid var(--border);
  display: grid; place-items: center; color: var(--text-3); overflow: hidden; flex: none;
}
.app-avatar svg { width: 20px; height: 20px; }
.app-chat-head .who { flex: 1; min-width: 0; }
.app-chat-head .who b { display: block; font-size: 16px; font-weight: 600; }
.app-chat-head .who span { display: block; font-size: 12px; color: var(--text-3); }
.app-pill {
  display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 500;
  padding: 6px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2);
  white-space: nowrap;
}
.app-pill svg { width: 13px; height: 13px; }
.app-pill--revealed { border-color: rgba(216,90,199,.5); color: var(--text); }
.app-msgs { padding: 14px 14px 0; display: flex; flex-direction: column; gap: 8px; }
.app-bubble {
  max-width: 78%; padding: 10px 14px; border-radius: 18px; font-size: 14px; line-height: 1.4;
  position: relative;
}
.app-bubble time { display: block; font-size: 10px; margin-top: 4px; opacity: .6; text-align: right; }
.app-bubble--in { align-self: flex-start; background: var(--surface); border: 1px solid var(--border); border-bottom-left-radius: 6px; }
.app-bubble--out { align-self: flex-end; background: var(--purple); color: #fff; border-bottom-right-radius: 6px; }
.app-bubble--card { padding: 10px; width: 78%; }
.app-bubble--card .app-row { margin: 0; background: var(--surface-2); }
.app-bubble--out .app-row { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.14); }
.app-bubble--out .app-wave i { background: #fff; }
.app-bubble--out .app-time { color: rgba(255,255,255,.75); }
.app-event {
  align-self: center; text-align: center; margin: 8px 0 4px; padding: 12px 16px; max-width: 86%;
  border: 1px solid var(--border); border-radius: 16px; background: rgba(23,20,31,.7);
}
.app-event .orbit {
  width: 52px; height: 52px; margin: 0 auto 8px; border-radius: 50%; border: 1px dashed rgba(216,90,199,.55);
  position: relative;
}
.app-event .orbit i { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--self); }
.app-event .orbit i:first-child { left: 15px; top: 22px; box-shadow: 0 0 10px rgba(142,140,255,.8); }
.app-event .orbit i:last-child { right: 15px; top: 22px; background: var(--pink); box-shadow: 0 0 10px rgba(216,90,199,.8); }
.app-event b { display: block; font-size: 13px; font-weight: 600; }
.app-event span { display: block; font-size: 12px; color: var(--text-3); }
.app-composer {
  position: absolute; inset-inline: 0; bottom: 0; padding: 12px 14px 22px;
  display: flex; align-items: center; gap: 10px; background: rgba(11,10,18,.9);
}
.app-composer .field {
  flex: 1; height: 44px; border-radius: 22px; background: var(--surface-2); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; padding: 0 8px 0 16px; font-size: 14px; color: var(--text-3);
}
.app-composer .field svg { width: 20px; height: 20px; color: var(--text-2); }
.app-composer .send { width: 44px; height: 44px; border-radius: 50%; background: var(--pink); display: grid; place-items: center; color: var(--on-accent); }
.app-composer .send svg { width: 20px; height: 20px; }

/* Cielo compartido */
.app-sky-head { padding: 4px 18px 10px; }
.app-sky-head .eyebrow { font-size: 12px; color: var(--purple); text-transform: none; letter-spacing: 0; }
.app-sky-head .eyebrow::before { display: none; }
.app-sky-head h4 { font-size: 22px; font-weight: 600; letter-spacing: -.01em; margin-top: 2px; }
.app-sky-head p { font-size: 12px; color: var(--text-3); margin-top: 4px; }
.app-sky {
  margin: 4px 14px 0; border-radius: 22px; overflow: hidden; border: 1px solid var(--border);
  position: relative; height: 430px; background: #07060d;
}
.app-sky__bg { position: absolute; inset: -4%; background: url("../img/shared_sky_bg.jpg") center / cover no-repeat; will-change: transform; }
.app-sky svg { width: 100%; height: 100%; position: relative; }
.app-sky__pill {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  font-size: 11px; font-weight: 500; padding: 6px 12px; border-radius: 999px;
  background: rgba(11,10,18,.6); border: 1px solid rgba(255,255,255,.12); white-space: nowrap;
}
.app-sky__blocks {
  position: absolute; bottom: 12px; inset-inline: 12px; display: flex; justify-content: space-between; gap: 8px;
}
.app-sky__block {
  flex: 1; padding: 8px 10px; border-radius: 12px; background: rgba(11,10,18,.7); border: 1px solid var(--self);
  font-size: 11px; line-height: 1.3;
}
.app-sky__block b { display: block; font-size: 12px; color: var(--self); }
.app-sky__block--other { border-color: var(--other); text-align: right; }
.app-sky__block--other b { color: var(--other); }
.app-sky__block span { color: var(--text-3); }
.app-banner {
  margin: 12px 14px 0; padding: 12px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--text-2);
}
.app-banner .app-ico { width: 30px; height: 30px; color: var(--purple); }
.app-banner .app-ico svg { width: 18px; height: 18px; }
.app-banner .go { margin-left: auto; color: var(--text); font-weight: 600; white-space: nowrap; }

/* Revelado (tarjeta de propuesta) */
.app-reveal {
  margin: 12px 14px; padding: 22px 18px 18px; border-radius: 22px; border: 1px solid var(--border);
  background: var(--surface) url("../img/reveal_field.jpg") center / cover no-repeat; position: relative; overflow: hidden; text-align: center;
}
.app-reveal::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(23,20,31,.35), rgba(23,20,31,.85)); }
.app-reveal > * { position: relative; }
.app-reveal h5 { font-size: 20px; font-weight: 600; margin: 0 0 6px; letter-spacing: -.01em; }
.app-reveal p { font-size: 13px; color: var(--text-2); margin: 0 0 16px; }
.app-btn {
  display: flex; align-items: center; justify-content: center; height: 46px; border-radius: 14px;
  font-size: 14px; font-weight: 600; background: var(--pink); color: var(--on-accent);
}
.app-btn--ghost { background: transparent; border: 1px solid var(--border-strong); color: var(--text); margin-top: 8px; }
.app-reveal small { display: block; margin-top: 12px; font-size: 11px; color: var(--text-3); }

/* ---------- Franja de pilares ---------- */
.pillars {
  border-block: 1px solid var(--separator);
  padding-block: 28px;
}
.pillars ul {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.pillars li { display: flex; align-items: center; gap: 14px; color: var(--text-2); font-size: .95rem; }
.pillars li svg { flex: none; width: 22px; height: 22px; color: var(--purple); }
.pillars li strong { color: var(--text); font-weight: 600; display: block; font-size: 1rem; }

/* ---------- Bloque "qué es" ---------- */
.what {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 96px); align-items: start;
}
.what h2 { font-size: clamp(1.9rem, 3.8vw, 3.2rem); }
.what .cols { display: grid; gap: 28px; padding-top: 12px; }
.what .cols p { color: var(--text-2); }
.what .cols p strong { color: var(--text); font-weight: 600; }

/* ---------- Tarjetas ---------- */
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 28px 26px;
  transition: border-color var(--t-base) var(--ease), transform var(--t-base) var(--ease), background var(--t-base) var(--ease);
}
.card:hover { border-color: var(--border-strong); transform: translateY(-3px); background: #191622; }
.card__icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--pink); margin-bottom: 22px;
}
.card__icon svg { width: 22px; height: 22px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--text-2); font-size: .98rem; }
.card--accent { border-left: 2px solid var(--purple); }
.card--wide { grid-column: span 2; }
.card--feature { padding: 24px 22px; }
.card--feature .card__icon { width: 40px; height: 40px; margin-bottom: 18px; color: var(--purple); }
.card--feature h3 { font-size: 1.05rem; }
.card--feature p { font-size: .92rem; }
.card--soon { border-style: dashed; }
.tag {
  display: inline-block; font-size: .72rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
  color: var(--text-3); border: 1px solid var(--border); padding: 3px 8px; border-radius: 6px; margin-left: 8px; vertical-align: middle;
}

/* ---------- Diferente: listado numerado grande ---------- */
.diff {
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start;
}
.diff__sticky { position: sticky; top: calc(var(--nav-h) + 32px); }
.diff__list { display: grid; gap: 6px; }
.diff__item {
  display: grid; grid-template-columns: 56px 1fr; gap: 20px; padding: 28px 0; border-top: 1px solid var(--separator);
}
.diff__item:last-child { border-bottom: 1px solid var(--separator); }
.diff__num { font-size: .9rem; font-weight: 600; color: var(--pink); padding-top: 6px; font-variant-numeric: tabular-nums; }
.diff__item h3 { margin-bottom: 8px; font-size: 1.3rem; }
.diff__item p { color: var(--text-2); max-width: 520px; }

/* ---------- Showcase cósmico ---------- */
.showcase {
  position: relative; overflow: hidden;
  background: var(--bg-alt);
  border-block: 1px solid var(--separator);
}
.showcase::before {
  content: ""; position: absolute; inset: -8% 0;
  background: url("../img/starfield_bg.jpg") center / cover no-repeat;
  opacity: .5; mix-blend-mode: screen; pointer-events: none;
  transform: translateY(var(--sc-shift, 0px)); will-change: transform;
}
.showcase::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 20% 60%, rgba(142,140,255,.10), transparent 70%),
    radial-gradient(60% 50% at 80% 45%, rgba(216,90,199,.10), transparent 70%),
    linear-gradient(180deg, var(--bg-alt), transparent 20%, transparent 80%, var(--bg-alt));
  pointer-events: none;
}
.showcase > .container { position: relative; z-index: 1; }
.showcase__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 48px);
  align-items: end; justify-items: center;
}
.showcase__item { display: flex; flex-direction: column; align-items: center; gap: 28px; text-align: center; max-width: 340px; --ex: 0px; --ey: 36px; }
.showcase__item[data-from="left"] { --ex: -28px; }
.showcase__item[data-from="right"] { --ex: 28px; }
.js .showcase__item.reveal { transform: translate(var(--ex), var(--ey)); }
.showcase__item.reveal.in { transform: none; }
.showcase__item > .phone-wrap { transform: translateY(var(--py, 0px)); will-change: transform; }
.showcase .app-sky__bg { transform: translateY(var(--sky-shift, 0%)) scale(1.04); }

.showcase__item .phone-wrap { --ps: .74; }
.showcase__item h3 { margin-bottom: 6px; }
.showcase__item p { color: var(--text-2); font-size: .95rem; }

/* ---------- Revelado: escalera de desenfoque ---------- */
.reveal-steps {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 40px;
}
.reveal-step {
  border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; background: var(--surface);
}
.reveal-step figure { position: relative; height: 180px; overflow: hidden; background: #1a1420; }
.reveal-step figure .app-photo__blur { filter: blur(var(--b, 24px)) saturate(.85); }
.reveal-step figure .veil { position: absolute; inset: 0; background: rgba(11,10,18,var(--v, .5)); }
.reveal-step figcaption { padding: 14px 16px 16px; }
.reveal-step b { display: block; font-size: .95rem; font-weight: 600; }
.reveal-step span { display: block; font-size: .85rem; color: var(--text-3); margin-top: 2px; }
.reveal-step figure .sil {
  position: absolute; inset: 0; display: grid; place-items: center; color: rgba(245,242,247,.35);
}
.reveal-step figure .sil svg { width: 64px; height: 64px; }
.reveal-split {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(32px, 6vw, 80px); align-items: center;
}
.reveal-split .phone-wrap { --ps: .78; }
.reveal-split ul { display: grid; gap: 14px; margin-top: 28px; }
.reveal-split li { display: flex; gap: 12px; color: var(--text-2); }
.reveal-split li svg { flex: none; width: 20px; height: 20px; color: var(--purple); margin-top: 3px; }
.reveal-split li strong { color: var(--text); font-weight: 600; }

/* ---------- Cómo funciona ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; position: relative; }
.steps::before {
  content: ""; position: absolute; left: 24px; right: 24px; top: 23px; height: 1px; background: var(--border);
}
.step { position: relative; padding-top: 68px; }
.step__dot {
  position: absolute; top: 0; left: 0; width: 48px; height: 48px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--border-strong); display: grid; place-items: center;
  font-weight: 600; font-size: .95rem; color: var(--text-2);
}
.step:first-child .step__dot { border-color: var(--pink); color: var(--pink); }
.step h3 { font-size: 1.1rem; margin-bottom: 8px; }
.step p { color: var(--text-2); font-size: .93rem; }

/* ---------- Filosofía / manifiesto ---------- */
.manifesto-section { padding-top: clamp(48px, 6vw, 80px); }
.manifesto-hero {
  min-height: 72vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  position: relative; padding: 40px 0;
}
.manifesto-hero::before {
  content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(900px, 90vw); height: 520px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(147,101,232,.10), transparent 72%); filter: blur(24px);
}
.manifesto-hero > * { position: relative; }
.manifesto-hero__mark { width: 44px; height: auto; margin-bottom: 28px; opacity: .9; }
.manifesto-hero .eyebrow { margin-bottom: 28px; }
.manifesto-hero blockquote {
  margin: 0; max-width: 940px; font-size: clamp(1.9rem, 4.4vw, 3.9rem); line-height: 1.14; font-weight: 500; letter-spacing: -.025em;
}
.manifesto-hero blockquote em { font-style: normal; color: var(--pink); }
.manifesto__list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 clamp(32px, 6vw, 80px); margin-top: clamp(24px, 4vw, 48px); }
.manifesto__list li {
  display: grid; grid-template-columns: 24px 1fr; gap: 14px; padding: 22px 0; border-top: 1px solid var(--separator);
}
.manifesto__list li svg { width: 22px; height: 22px; color: var(--purple); margin-top: 2px; }
.manifesto__list li strong { display: block; font-weight: 600; margin-bottom: 4px; }
.manifesto__list li p { color: var(--text-2); font-size: .95rem; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 10px; max-width: 800px; margin-inline: auto; }
.faq {
  border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface);
  transition: border-color var(--t-fast);
}
.faq[open] { border-color: var(--border-strong); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 22px; font-weight: 600; font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex: none; width: 20px; height: 20px; color: var(--text-3); transition: transform var(--t-base) var(--ease); }
.faq[open] summary svg { transform: rotate(45deg); color: var(--pink); }
.faq__body { padding: 0 22px; color: var(--text-2); }
.faq__body > :last-child { padding-bottom: 22px; }
.faq__body p + p { margin-top: 10px; }
.faq-more { text-align: center; margin-top: 32px; }

/* ---------- CTA final / lista de espera ---------- */
.cta {
  position: relative; overflow: hidden; text-align: center;
  border-top: 1px solid var(--separator);
}
.cta__halo {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 900px; height: 600px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(147,101,232,.16), transparent 70%);
  filter: blur(20px);
}
.cta .container { position: relative; z-index: 1; }
.cta__heart { width: 92px; height: auto; margin: 0 auto 28px; }
.cta h2 { max-width: 720px; margin-inline: auto; }
.cta .lead { max-width: 560px; margin: 16px auto 36px; }
.waitlist { max-width: 560px; margin-inline: auto; }
.waitlist__row { display: flex; gap: 10px; }
.waitlist input[type="email"] {
  flex: 1; height: 52px; padding: 0 18px; border-radius: var(--r-md);
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text); font: inherit; font-size: 1rem;
  transition: border-color var(--t-fast);
}
.waitlist input::placeholder { color: var(--text-3); }
.waitlist input:focus { outline: none; border-color: rgba(147,101,232,.75); }
.waitlist__consent {
  display: flex; align-items: flex-start; gap: 10px; margin-top: 14px; text-align: left;
  font-size: .85rem; color: var(--text-3);
}
.waitlist__consent input { margin-top: 4px; accent-color: var(--pink); }
.waitlist__consent a { color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; }
.waitlist__note { margin-top: 14px; font-size: .85rem; color: var(--text-3); }
.waitlist__success {
  display: none; padding: 28px; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface);
}
.waitlist.is-done form { display: none; }
.waitlist.is-done .waitlist__success { display: block; animation: fadeUp .55s var(--ease) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.waitlist__success b { display: block; font-size: 1.15rem; font-weight: 600; margin-bottom: 6px; }
.waitlist__success p { color: var(--text-2); }
.form-error { display: none; margin-top: 10px; color: var(--coral); font-size: .9rem; text-align: left; }
.waitlist__turnstile { margin-top: 14px; min-height: 65px; display: flex; justify-content: center; }
.waitlist__turnstile:empty { min-height: 0; }
.waitlist[data-state="sending"] .btn { opacity: .75; pointer-events: none; }
.waitlist input[type="email"]:disabled { opacity: .7; }
/* 404 */
.notfound { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 40px 0; }
.notfound__inner { max-width: 560px; }
.notfound__mark { width: 72px; height: auto; margin: 0 auto 28px; }
.notfound h1 { font-size: clamp(2rem, 4vw, 3rem); margin: 12px 0 14px; }
.notfound .lead { margin-bottom: 28px; }
.form-error.is-visible { display: block; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--separator); padding: 56px 0 36px; color: var(--text-3); font-size: .9rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer__brand img { height: 28px; width: auto; margin-bottom: 14px; }
.footer__brand p { max-width: 300px; }
.footer h4 { color: var(--text); font-weight: 600; font-size: .95rem; margin-bottom: 14px; }
.footer ul { display: grid; gap: 10px; }
.footer a { transition: color var(--t-fast); }
.footer a:hover { color: var(--text); }
.footer__bottom {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--separator);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem;
}

/* ---------- Páginas de texto (FAQ, legal) ---------- */
.page-hero { padding-top: calc(var(--nav-h) + clamp(56px, 8vw, 110px)); padding-bottom: clamp(32px, 5vw, 56px); }
.page-hero .eyebrow { margin-bottom: 16px; }
.page-hero h1 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); margin-bottom: 16px; }
.page-hero .lead { max-width: 640px; }
.page-meta { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 24px; font-size: .9rem; color: var(--text-3); }
.notice {
  display: flex; gap: 14px; padding: 18px 20px; border-radius: var(--r-md);
  background: var(--surface); border: 1px solid var(--border); color: var(--text-2); font-size: .95rem; margin-top: 28px;
}
.notice svg { flex: none; width: 20px; height: 20px; color: var(--purple); margin-top: 2px; }

.doc { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: start; padding-bottom: clamp(80px, 10vw, 140px); }
.doc__toc { position: sticky; top: calc(var(--nav-h) + 24px); font-size: .9rem; }
.doc__toc h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); font-weight: 600; margin-bottom: 14px; }
.doc__toc ol { display: grid; gap: 2px; counter-reset: toc; }
.doc__toc a {
  display: block; padding: 7px 10px 7px 12px; border-left: 1px solid var(--border); color: var(--text-3);
  transition: color var(--t-fast), border-color var(--t-fast);
}
.doc__toc a:hover { color: var(--text); }
.doc__toc a.is-active { color: var(--text); border-left-color: var(--pink); }
.doc__body { max-width: 720px; }
.doc__body section { padding: 36px 0; border-top: 1px solid var(--separator); scroll-margin-top: calc(var(--nav-h) + 24px); }
.doc__body section:first-child { border-top: 0; padding-top: 0; }
.doc__body h2 { font-size: 1.5rem; margin-bottom: 18px; }
.doc__body h3 { font-size: 1.1rem; margin: 26px 0 10px; }
.doc__body p, .doc__body li { color: var(--text-2); }
.doc__body p + p { margin-top: 14px; }
.doc__body ul, .doc__body ol { margin: 14px 0 0 0; padding-left: 22px; display: grid; gap: 8px; }
.doc__body ul { list-style: disc; }
.doc__body ul + p, .doc__body ol + p, .doc__body .table-wrap + p { margin-top: 16px; }
.doc__body ol { list-style: decimal; }
.doc__body li::marker { color: var(--text-3); }
.doc__body strong { color: var(--text); font-weight: 600; }
.doc__body a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--border-strong); }
.doc__body a:hover { text-decoration-color: var(--pink); }
.doc__body .callout {
  margin-top: 18px; padding: 16px 18px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--border);
  font-size: .95rem;
}
.doc__body table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: .93rem; }
.doc__body th, .doc__body td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--separator); vertical-align: top; color: var(--text-2); }
.doc__body th { color: var(--text); font-weight: 600; background: var(--surface); }
.table-wrap { overflow-x: auto; }

.faq-page .faq-list { max-width: none; }
.faq-page .faq-group { margin-bottom: 48px; }
.faq-page .faq-group h2 { font-size: 1.2rem; color: var(--text-2); margin-bottom: 16px; font-weight: 600; }

/* ---------- Animaciones de aparición ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease); }
.no-js .phone-wrap { display: none; }
.tt-none { text-transform: none; }
main section[id], .doc__body section[id], .faq-group[id] { scroll-margin-top: calc(var(--nav-h) + 16px); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 90ms; }
.reveal[data-delay="2"] { transition-delay: 180ms; }
.reveal[data-delay="3"] { transition-delay: 270ms; }
.reveal[data-delay="4"] { transition-delay: 360ms; }

/* Titileo discreto de estrellas dentro del cielo del teléfono */
@keyframes twinkle { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
.app-sky .tw { animation: twinkle 3.6s ease-in-out infinite; }
.app-sky .tw:nth-child(2n) { animation-duration: 4.4s; animation-delay: .8s; }
.app-sky .tw:nth-child(3n) { animation-duration: 5.1s; animation-delay: 1.6s; }

/* Ondas de voz en reposo (pequeña vida en el chat) */
@keyframes breathe { 0%, 100% { transform: scaleY(.85); } 50% { transform: scaleY(1.15); } }
.app-wave--live i { transform-origin: center; animation: breathe 1.8s ease-in-out infinite; }
.app-wave--live i:nth-child(2n) { animation-delay: .25s; }
.app-wave--live i:nth-child(3n) { animation-delay: .5s; }

/* Paralaje ligero del teléfono del hero (controlado por JS, solo con puntero) */
.hero__phone { transition: transform 600ms var(--ease); will-change: transform; }

/* ---------- Pilas de pantallas (hero, historia, showcase) ---------- */
.screen-stack { position: absolute; inset: 0; }
.screen {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  opacity: 0; transform: scale(1.025); pointer-events: none;
  transition: opacity 800ms var(--ease), transform 950ms var(--ease);
}
.screen.is-active { opacity: 1; transform: none; }

/* ---------- Historia conducida por scroll ---------- */
.story { position: relative; --steps: 5; height: calc(var(--steps) * 80vh + 100vh); }
.story__sticky {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  display: flex; align-items: center; overflow: hidden; padding-top: var(--nav-h);
}
.story__grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(32px, 6vw, 96px); align-items: center; }
.story__copy .eyebrow { margin-bottom: 22px; }
.story__steps { position: relative; min-height: 250px; }
.story__step {
  position: absolute; inset: 0; opacity: 0; transform: translateY(20px);
  transition: opacity 520ms var(--ease), transform 520ms var(--ease);
}
.story__step.is-active { opacity: 1; transform: none; transition-delay: 90ms; }
.story__step.is-past { transform: translateY(-16px); }
.story__num { display: block; color: var(--pink); font-weight: 600; font-size: .9rem; margin-bottom: 14px; font-variant-numeric: tabular-nums; }
.story__step h3 { font-size: clamp(1.6rem, 2.8vw, 2.4rem); line-height: 1.15; letter-spacing: -.02em; margin-bottom: 14px; }
.story__step p { color: var(--text-2); font-size: 1.1rem; max-width: 440px; }
.story__rail { display: flex; gap: 8px; margin-top: 28px; }
.story__rail li { width: 44px; height: 2px; background: var(--border); border-radius: 1px; overflow: hidden; }
.story__rail li i { display: block; height: 100%; width: 0; background: var(--pink); }
.story__device { position: relative; display: flex; justify-content: center; }
.story__device .phone-wrap { --ps: .84; }
.story__device-inner { position: relative; z-index: 2; transform-origin: center; will-change: transform; }
.story__halo {
  position: absolute; inset: -14%; border-radius: 50%; filter: blur(18px); pointer-events: none;
  transition: background 1.2s var(--ease), opacity 1.2s var(--ease);
  background: radial-gradient(closest-side, rgba(147,101,232,.20), transparent 72%);
}
.story__halo[data-state="1"] { background: radial-gradient(closest-side, rgba(142,140,255,.18), transparent 72%); }
.story__halo[data-state="2"] { background: radial-gradient(closest-side, rgba(147,101,232,.16), rgba(29,185,84,.04) 50%, transparent 72%); }
.story__halo[data-state="3"] { background: radial-gradient(closest-side, rgba(216,90,199,.20), transparent 72%); }
.story__halo[data-state="5"], .story__halo[data-state="6"] { background: radial-gradient(closest-side, rgba(147,101,232,.14), transparent 72%); }
.story__halo[data-state="4"] { background: radial-gradient(closest-side, rgba(216,90,199,.14), rgba(142,140,255,.12) 45%, transparent 74%); }
@media (max-width: 900px) and (max-height: 720px) { .story__device .phone-wrap { --ps: .42; } .story__steps { min-height: 170px; } }


/* =========================================================================
   Ronda 3 — coreografía de producto dentro del móvil (solo con movimiento)
   Cada pieza .demo entra escalonada cuando su pantalla recibe .is-active.
   ========================================================================= */
@keyframes demoIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes barPlay { 0% { transform: scaleY(1); filter: brightness(1); } 45% { transform: scaleY(1.35); filter: brightness(1.8); } 100% { transform: scaleY(1); filter: brightness(1); } }
@keyframes softFocus { 0% { box-shadow: 0 0 0 0 rgba(216,90,199,0); } 45% { box-shadow: 0 0 0 4px rgba(216,90,199,.35); } 100% { box-shadow: 0 0 0 0 rgba(216,90,199,0); } }
@keyframes drawLine { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes starIn { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }
@keyframes essenceIn { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
@keyframes bgIn { from { opacity: 0; transform: scale(1.06); } to { opacity: 1; transform: none; } }

.motion .screen .demo { opacity: 0; }
.motion .screen.is-active .demo {
  animation: demoIn 560ms var(--ease) both;
  animation-delay: calc(var(--base, 120ms) + var(--i, 0) * var(--step, 110ms));
}
.motion .screen.is-active .app-msgs { --step: 230ms; --base: 260ms; }
.motion .screen.is-active .app-msgs .demo { animation-duration: 480ms; }
/* Barrido de reproducción de una nota de voz (una vez, tras su entrada) */
.motion .screen .app-wave--demo i { transform-origin: center; }
.motion .screen.is-active .app-wave--demo i {
  animation: barPlay 520ms var(--ease) both;
  animation-delay: calc(var(--sweep, 1.9s) + var(--k, 0) * 45ms);
}
.motion .screen.is-active [data-sweep="1.9s"] .app-wave--demo { --sweep: 1.9s; }
.motion .screen.is-active .app-bubble--card .app-wave--demo { --sweep: 1.4s; }
.motion .screen.is-active .app-bubble--card:nth-child(3) .app-wave--demo { --sweep: 1.8s; }
.motion .screen.is-active .app-bubble--card:nth-child(4) .app-wave--demo { --sweep: 2.1s; }
/* Propuesta de revelado: la opción positiva gana foco visual un instante; no simulamos un toque */
.motion .screen.is-active .app-reveal .app-btn:first-of-type {
  animation: softFocus 1.5s var(--ease) 1;
  animation-delay: calc(var(--base, 120ms) + var(--i, 0) * var(--step, 110ms) + 1000ms);
}
/* Cielo compartido: el fondo aparece, se dibujan las mitades, el centro toma presencia, luego las etiquetas */
.motion .screen .app-sky__bg { opacity: 0; }
.motion .screen.is-active .app-sky__bg { animation: bgIn 1.4s var(--ease) both; animation-delay: 100ms; }
.motion .screen .sky-stars circle, .motion .screen .sky-c, .motion .screen .sky-t, .motion .screen .sky-rings { opacity: 0; }
.motion .screen .sky-stars circle, .motion .screen .sky-c { transform-box: fill-box; transform-origin: center; }
.motion .screen .sky-lines path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.motion .screen.is-active .sky-b circle { animation: starIn 520ms var(--ease) both; animation-delay: calc(500ms + var(--k, 0) * 70ms); }
.motion .screen.is-active .sky-p circle { animation: starIn 520ms var(--ease) both; animation-delay: calc(900ms + (var(--k, 0) - 9) * 70ms); }
.motion .screen.is-active .sky-w circle { animation: starIn 520ms var(--ease) both; animation-delay: 1900ms; }
.motion .screen.is-active .sky-lines path { animation: drawLine 900ms var(--ease) both; animation-delay: calc(1100ms + var(--k, 0) * 140ms); }
.motion .screen.is-active .sky-rings { animation: demoIn 900ms var(--ease) both; animation-delay: 1500ms; }
.motion .screen.is-active .sky-c { animation: essenceIn 900ms var(--ease) both; animation-delay: 2100ms; }
.motion .screen.is-active .sky-t { animation: demoIn 700ms var(--ease) both; animation-delay: 2500ms; }
.motion .screen.is-active .app-sky__blocks .demo, .motion .screen.is-active .app-banner.demo { --base: 2300ms; --step: 140ms; }

/* ---------- Historia: constelación que evoluciona con el relato ---------- */
.story__sky { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .55; }
.story__sky .sl { opacity: 0; transition: opacity 1.1s var(--ease); }
.story__sky path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.4s var(--ease) .2s; }
.story__sky circle { transition: opacity .8s var(--ease); }
.story[data-step="0"] .sl0,
.story[data-step="1"] .sl0, .story[data-step="1"] .sl1,
.story[data-step="2"] .sl0, .story[data-step="2"] .sl1, .story[data-step="2"] .sl2,
.story[data-step="3"] .sl0, .story[data-step="3"] .sl1, .story[data-step="3"] .sl2, .story[data-step="3"] .sl3,
.story[data-step="4"] .sl, .story[data-step="5"] .sl, .story[data-step="6"] .sl { opacity: 1; }
.story[data-step="1"] .sl1 path,
.story[data-step="2"] .sl1 path, .story[data-step="2"] .sl2 path,
.story[data-step="3"] .sl1 path, .story[data-step="3"] .sl2 path, .story[data-step="3"] .sl3 path,
.story[data-step="4"] .sl path, .story[data-step="5"] .sl path, .story[data-step="6"] .sl path { stroke-dashoffset: 0; }
.story .container { position: relative; z-index: 1; }

/* ---------- Demo interactiva del revelado ---------- */
.rdemo { margin-top: 8px; border: 1px solid var(--border); border-radius: var(--r-xl); background: var(--surface); padding: clamp(20px, 3vw, 36px); }
.rdemo__note { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--text-3); margin-bottom: 28px; max-width: 720px; }
.rdemo__note svg { flex: none; width: 18px; height: 18px; color: var(--purple); margin-top: 2px; }
.rdemo__stage { display: grid; grid-template-columns: 1fr minmax(0, 1.4fr) 1fr; gap: clamp(20px, 4vw, 56px); align-items: center; }
.rdemo__side { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; }
.rdemo__side b { font-weight: 600; margin-top: 12px; }
.rdemo__status { font-size: .88rem; color: var(--text-3); min-height: 2.6em; transition: color var(--t-base); }
.rdemo__photo {
  position: relative; width: min(100%, 200px); aspect-ratio: 4 / 5; border-radius: 20px; overflow: hidden; background: #1a1420;
  border: 1.5px solid var(--self); transition: border-color var(--t-base);
}
.rdemo__side--other .rdemo__photo { border-color: var(--other); }
.rdemo__photo .app-photo__blur { transition: filter 1.1s var(--ease), opacity 1.1s var(--ease); }
.rdemo__veil { position: absolute; inset: 0; background: rgba(11,10,18,.5); transition: opacity 1.1s var(--ease); }
.rdemo__sil { position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; transform: translate(-50%, -50%); color: rgba(245,242,247,.32); filter: blur(6px); transition: filter 1.1s var(--ease), color 1.1s var(--ease); }
.rdemo__tag { position: absolute; right: 10px; top: 10px; width: 32px; height: 32px; border-radius: 50%; background: rgba(11,10,18,.7); border: 1px solid rgba(255,255,255,.1); display: grid; place-items: center; }
.rdemo__tag svg { width: 16px; height: 16px; color: var(--text); position: absolute; transition: opacity var(--t-base); }
.rdemo__tag-shown { opacity: 0; }
.rdemo__center { text-align: center; }
.rdemo__orbit { width: 60px; height: 60px; margin: 0 auto 16px; border-radius: 50%; border: 1px dashed rgba(216,90,199,.5); position: relative; transition: transform 1.2s var(--ease), border-color 1.2s var(--ease); }
.rdemo__orbit i { position: absolute; top: 25px; width: 8px; height: 8px; border-radius: 50%; background: var(--self); box-shadow: 0 0 12px rgba(142,140,255,.8); transition: left 1.2s var(--ease), right 1.2s var(--ease); }
.rdemo__orbit i:first-child { left: 14px; }
.rdemo__orbit i:last-child { right: 14px; background: var(--other); box-shadow: 0 0 12px rgba(216,90,199,.8); }
.rdemo__title { font-size: clamp(1.3rem, 2.2vw, 1.7rem); margin-bottom: 10px; transition: opacity var(--t-base); }
.rdemo__text { color: var(--text-2); max-width: 400px; margin: 0 auto 22px; min-height: 3.2em; }
.rdemo__actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.rdemo__reset { display: none; margin-top: 8px; }
.rdemo__steps { display: flex; justify-content: center; gap: 10px; margin-top: 28px; flex-wrap: wrap; }
.rdemo__steps li { font-size: .82rem; color: var(--text-4); padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; transition: color var(--t-base), border-color var(--t-base); }
.rdemo__steps li.is-done { color: var(--text-3); }
.rdemo__steps li.is-active { color: var(--text); border-color: var(--pink); }
/* Estados */
.rdemo[data-state="private"] .rdemo__actions, .rdemo[data-state="both"] .rdemo__actions, .rdemo[data-state="wait"] .rdemo__actions { display: none; }
.rdemo[data-state="both"] .rdemo__reset, .rdemo[data-state="wait"] .rdemo__reset { display: inline-flex; }
.rdemo[data-state="private"] .rdemo__side--self .rdemo__status { color: var(--self); }
.rdemo[data-state="private"] .rdemo__side--other .rdemo__status { color: var(--text-2); }
.motion .rdemo[data-state="private"] .rdemo__side--other .rdemo__photo { animation: waitPulse 1.6s ease-in-out infinite; }
@keyframes waitPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(216,90,199,0); } 50% { box-shadow: 0 0 0 6px rgba(216,90,199,.14); } }
.rdemo[data-state="both"] .rdemo__veil { opacity: 0; }
.rdemo[data-state="both"] .rdemo__photo .app-photo__blur { filter: blur(6px) saturate(.9); opacity: .55; }
.rdemo[data-state="both"] .rdemo__sil { filter: blur(0); color: rgba(245,242,247,.92); }
.rdemo[data-state="both"] .rdemo__tag-hidden { opacity: 0; }
.rdemo[data-state="both"] .rdemo__tag-shown { opacity: 1; }
.rdemo[data-state="both"] .rdemo__status { color: var(--text); }
.rdemo[data-state="both"] .rdemo__orbit { border-color: rgba(216,90,199,.9); transform: scale(1.06); }
.rdemo[data-state="both"] .rdemo__orbit i:first-child { left: 20px; }
.rdemo[data-state="both"] .rdemo__orbit i:last-child { right: 20px; }

/* ---------- CTA final: los dos universos se aproximan, la marca en el centro ---------- */
.cta__orbs { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.cta__orbs .orb {
  position: absolute; top: 50%; left: 50%; width: 440px; height: 440px; border-radius: 50%; filter: blur(70px); opacity: 0;
  transition: transform 2.2s var(--ease), opacity 1.6s var(--ease);
}
.orb--self { background: rgba(142,140,255,.30); transform: translate(calc(-50% - 360px), -50%); }
.orb--other { background: rgba(216,90,199,.28); transform: translate(calc(-50% + 360px), -50%); }
.cta__orbs.in .orb { opacity: 1; }
.cta__orbs.in .orb--self { transform: translate(calc(-50% - 150px), -50%); }
.cta__orbs.in .orb--other { transform: translate(calc(-50% + 150px), -50%); }
.cta .cta__halo { opacity: .6; }


/* =========================================================================
   Ronda 4 — Quedada Segura (en desarrollo). Pantallas serias y claras:
   sin estética cósmica, sin alarma permanente; el texto manda sobre el icono.
   ========================================================================= */
.app-safe { padding: 0 16px; }
.app-safe-head { padding: 8px 4px 14px; }
.app-safe-head__t { font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.app-safe-head__s { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.app-safe-list { display: flex; flex-direction: column; gap: 8px; }
.app-safe-row {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--border);
}
.app-safe-row__ico { flex: none; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); color: var(--text-2); }
.app-safe-row__ico svg { width: 17px; height: 17px; }
.app-safe-row b { display: block; font-size: 13px; font-weight: 600; }
.app-safe-row span { display: block; font-size: 12px; color: var(--text-3); }
.app-safe-foot { margin-top: 14px; text-align: center; }
.app-safe-foot small { display: block; margin-top: 10px; font-size: 11px; color: var(--text-3); }
.app-safe .app-btn { display: flex; gap: 8px; }
.app-safe .app-btn svg { width: 17px; height: 17px; }
.app-btn--danger { background: transparent; border: 1px solid rgba(255,107,104,.55); color: var(--coral); }
.app-safe-state {
  text-align: center; padding: 22px 16px 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border);
}
.app-safe-state__ico { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--surface-2); color: var(--text); margin-bottom: 10px; }
.app-safe-state__ico svg { width: 22px; height: 22px; }
.app-safe-state b { display: block; font-size: 18px; font-weight: 600; }
.app-safe-state__next { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--separator); }
.app-safe-state__next span { display: block; font-size: 12px; color: var(--text-3); }
.app-safe-state__next strong { display: block; font-size: 26px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.app-safe-state__next em { display: block; font-style: normal; font-size: 12px; color: var(--text-2); margin-top: 2px; }
.app-safe-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.app-safe-actions__row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.app-safe-actions__row .app-btn { margin-top: 0; font-size: 13px; padding: 0 6px; }
.app-safe-finish { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 4px; font-size: 13px; color: var(--text-3); }
.app-safe-finish svg { width: 16px; height: 16px; }
.app-safe-ask { padding: 16px 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); }
.app-safe-ask h5 { margin: 0 0 12px; font-size: 18px; font-weight: 600; text-align: center; }
.app-safe-timeline { margin-top: 14px; display: flex; flex-direction: column; gap: 0; }
.app-safe-step { display: flex; gap: 12px; padding: 10px 4px; position: relative; }
.app-safe-step i { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--text-4); margin-top: 6px; position: relative; }
.app-safe-step::before { content: ""; position: absolute; left: 8.5px; top: 22px; bottom: -6px; width: 1px; background: var(--border); }
.app-safe-step:last-child::before { display: none; }
.app-safe-step b { display: block; font-size: 13px; font-weight: 600; }
.app-safe-step span { display: block; font-size: 12px; color: var(--text-3); line-height: 1.4; }
.app-safe-step--note i { background: var(--purple); }
.app-safe-opts { display: flex; flex-direction: column; gap: 8px; }
.app-safe-opt { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
.app-safe-opt > svg { flex: none; width: 20px; height: 20px; color: var(--text-2); }
.app-safe-opt:first-child > svg { color: var(--coral); }
.app-safe-opt b { display: block; font-size: 13px; font-weight: 600; }
.app-safe-opt span { display: block; font-size: 11px; color: var(--text-3); }
.app-safe-done { text-align: center; padding: 26px 14px 18px; }
.app-safe-done h5 { margin: 0 0 8px; font-size: 22px; font-weight: 600; letter-spacing: -.01em; }
.app-safe-done p { margin: 0 auto; font-size: 13px; color: var(--text-2); max-width: 280px; }
.app-safe-links { display: flex; justify-content: center; gap: 18px; margin-top: 14px; font-size: 13px; color: var(--text-2); }
.app-safe-note { margin-top: 12px; text-align: center; font-size: 11px; color: var(--text-3); }
/* Propuesta de encuentro (tarjeta compartida, solo logística) */
.app-meet { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 14px; width: 92%; }
.app-meet__k { font-size: 11px; color: var(--text-3); font-weight: 500; }
.app-meet h5 { margin: 2px 0 10px; font-size: 17px; font-weight: 600; }
.app-meet__row { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-2); padding: 4px 0; }
.app-meet__row svg { width: 16px; height: 16px; color: var(--text-3); flex: none; }
.app-meet .app-btn { margin-top: 10px; }
.app-meet .app-btn--ghost { margin-top: 8px; }
.app-meet small { display: block; text-align: center; margin-top: 10px; font-size: 12px; color: var(--text-3); }

/* ---------- Sección Quedada Segura ---------- */
.safe { border-top: 1px solid var(--separator); }
.safe__head .eyebrow::before { background: var(--purple); }
.safe__demo {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center;
  padding: clamp(20px, 3vw, 36px); border: 1px solid var(--border); border-radius: var(--r-xl); background: var(--surface);
}
.safe__demo .phone-wrap { --ps: .74; }
.safe__phone { display: flex; justify-content: center; }
.safe__tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 24px; }
.safe__tab {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--border); color: var(--text-2); font-size: .92rem; font-weight: 500;
  transition: border-color var(--t-fast), color var(--t-fast), background var(--t-fast);
}
.safe__tab svg { width: 16px; height: 16px; }
.safe__tab:hover { color: var(--text); border-color: var(--border-strong); }
.safe__tab[aria-selected="true"] { color: var(--text); border-color: var(--purple); background: rgba(147,101,232,.08); }
.safe__tab:nth-child(4)[aria-selected="true"] { border-color: rgba(255,107,104,.6); background: rgba(255,107,104,.06); }
.safe__panels { position: relative; min-height: 220px; }
.safe__panel { opacity: 0; transform: translateY(8px); transition: opacity .45s var(--ease), transform .45s var(--ease); }
.safe__panel.is-active { opacity: 1; transform: none; }
.safe__panel h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); margin-bottom: 12px; }
.safe__panel p { color: var(--text-2); }
.safe__panel ul { margin-top: 14px; display: grid; gap: 8px; }
.safe__panel li { color: var(--text-2); font-size: .95rem; padding-left: 16px; position: relative; }
.safe__panel li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--purple); }
.safe__panel strong { color: var(--text); font-weight: 600; }
.safe__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 24px; }
.safe__grid .card p { font-size: .95rem; }
.safe__preview { margin: 16px 0 0; padding: 14px 16px; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--border); font-size: .95rem; color: var(--text); }
.safe__preview span { display: block; margin-top: 6px; font-size: .82rem; color: var(--text-3); }
.safe__list { display: grid; gap: 8px; }
.safe__list li { color: var(--text-2); font-size: .92rem; padding-left: 16px; position: relative; }
.safe__list li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--purple); }
.safe__status { display: flex; gap: 12px; align-items: flex-start; margin-top: 24px; font-size: .92rem; color: var(--text-3); max-width: 820px; }
.safe__status svg { flex: none; width: 18px; height: 18px; color: var(--purple); margin-top: 3px; }
.diff__item a, .step a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--border-strong); }
.diff__item h3 .tag { margin-left: 10px; vertical-align: middle; }
@media (max-width: 1080px) { .safe__grid { grid-template-columns: 1fr; } }

/* ---------- Reducción de movimiento ---------- */
@media (prefers-reduced-motion: reduce) {
  html:not(.motion-force) { scroll-behavior: auto; }
  html:not(.motion-force) *, html:not(.motion-force) *::before, html:not(.motion-force) *::after { animation: none !important; transition-duration: 1ms !important; }
  html:not(.motion-force) .reveal, html:not(.motion-force) .showcase__item.reveal { opacity: 1; transform: none; }
  html:not(.motion-force) .stars { display: none; }
  html:not(.motion-force) .hero__float { animation: none; }
  html:not(.motion-force) .showcase__item > .phone-wrap, html:not(.motion-force) .showcase::before,
  html:not(.motion-force) .showcase .app-sky__bg, html:not(.motion-force) .story__device-inner { transform: none !important; }
  html:not(.motion-force) .story__step { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .showcase__grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .showcase__item .phone-wrap { --ps: .6; }
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
  .steps::before { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .hero { min-height: auto; padding-top: calc(var(--nav-h) + 24px); }
  .hero__grid { grid-template-columns: 1fr; gap: 48px; }
  .hero__copy { max-width: 640px; }
  .hero__visual { min-height: auto; margin-top: 8px; }
  .hero__float { display: none; }
  .hero__halo { width: 460px; height: 460px; }
  .nav__links { display: none; }
  .nav__cta .btn--secondary { display: none; }
  .nav__cta .btn--primary .long { display: none; }
  .nav__cta .btn--primary .short { display: inline; }
  .nav__burger { display: inline-flex; }
  .what, .diff, .manifesto, .reveal-split { grid-template-columns: 1fr; }
  .diff__sticky { position: static; }
  .story { height: calc(var(--steps) * 70vh + 100vh); }
  .story__sticky { align-items: flex-start; padding-top: calc(var(--nav-h) + 12px); }
  .story__grid { grid-template-columns: 1fr; gap: 12px; }
  .story__steps { min-height: 200px; }
  .story__step h3 { font-size: 1.5rem; }
  .story__step p { font-size: 1rem; }
  .story__rail { margin-top: 12px; }
  .story__device .phone-wrap { --ps: .5; }
  .story__halo { inset: 0; }
  .pillars ul { grid-template-columns: 1fr; gap: 16px; }
  .grid--3 { grid-template-columns: 1fr 1fr; }
  .showcase__grid { grid-template-columns: 1fr; gap: 56px; }
  .showcase__item:nth-child(2) { margin-top: 0; }
  .showcase__item .phone-wrap { --ps: .72; }
  .reveal-steps { grid-template-columns: repeat(2, 1fr); }
  .reveal-split { justify-items: center; }
  .doc { grid-template-columns: 1fr; }
  .doc__toc { position: static; }
  .doc__toc ol { display: flex; flex-wrap: wrap; gap: 6px; }
  .doc__toc a { border: 1px solid var(--border); border-radius: 999px; padding: 6px 12px; }
  .doc__toc a.is-active { border-color: var(--pink); }
}
@media (max-width: 600px) {
  body { font-size: 1rem; }
  .btn { height: 50px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .card--wide { grid-column: auto; }
  .phone-wrap { --ps: .68; }
  .showcase__item .phone-wrap { --ps: .66; }
  .steps { grid-template-columns: 1fr; }
  .reveal-steps { grid-template-columns: 1fr 1fr; gap: 10px; }
  .reveal-step figure { height: 130px; }
  .waitlist__row { flex-direction: column; }
  .waitlist input[type="email"] { flex: none; width: 100%; }
  .footer__grid { grid-template-columns: 1fr; }
  .diff__item { grid-template-columns: 1fr; gap: 8px; }
  .manifesto-hero { min-height: 56vh; }
  .manifesto__list { grid-template-columns: 1fr; }
  .rdemo__stage { grid-template-columns: 1fr 1fr; }
  .rdemo__center { grid-column: 1 / -1; order: 2; }
  .rdemo__side--other { order: 1; }
  .rdemo__actions { flex-direction: column; }
  .rdemo__steps { gap: 6px; }
  .story__sky { opacity: .35; }
  .safe__demo { grid-template-columns: 1fr; gap: 28px; }
  .safe__phone { order: 2; }
  .safe__side { order: 1; }
  .safe__tabs { overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .safe__grid { grid-template-columns: 1fr; }
  .safe__demo .phone-wrap { --ps: .62; }
  .cta__orbs .orb { width: 260px; height: 260px; }
  /* Tablas legales apiladas como fichas */
  .doc__body table, .doc__body tbody, .doc__body tr, .doc__body td { display: block; width: 100%; }
  .doc__body thead { display: none; }
  .doc__body tr { padding: 14px 0; border-bottom: 1px solid var(--separator); }
  .doc__body td { padding: 3px 0; border: 0; }
  .doc__body td:first-child { color: var(--text); font-weight: 600; padding-bottom: 6px; }
  .doc__body td[data-label]::before { content: attr(data-label) ": "; color: var(--text-3); }
}

