/* Landing: una noche en el living. La luz sale de las pantallas; cada juego tiñe la escena con su color.
   Las escenas con data-scene son altas y tienen un .stage pegajoso; landing.js les pasa el progreso del scroll.
   Los celus y la tele muestran capturas reales de la app (public/landing/shots). */

:root {
  --noche: #16112f;
  --noche-2: #1f1748;
  --luz: #fff6ec;
  --luz-2: rgba(255, 246, 236, 0.72);
  --luz-3: rgba(255, 246, 236, 0.42);
  --frutilla: #ec2443;
  --frutilla-d: #b5102f;
  --limon: #ffd23a;
  --bosque: #0c3129;
  --menta: #a9f0cf;

  --sans: 'Mona Sans', 'Helvetica Neue', system-ui, sans-serif;
  --gutter: clamp(20px, 6vw, 104px);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.55;
  font-weight: 420;
  color: var(--luz);
  background: var(--noche);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-kerning: normal;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; }
body { background: var(--noche); overflow-x: clip; }
h1, h2, h3, p, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2.5px solid var(--limon); outline-offset: 4px; border-radius: 8px; }

/* grano de película */
body::after {
  content: ''; position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.skip {
  position: fixed; left: 16px; top: -60px; z-index: 60;
  background: var(--limon); color: var(--noche); padding: 10px 16px; border-radius: 999px; font-weight: 650; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- tipografía ---------- */
.display {
  font-weight: 760; font-stretch: 115%; letter-spacing: -0.045em; line-height: 0.92;
}

/* ---------- botones ---------- */
.pill {
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 999px; padding: 0.9em 1.6em;
  font-weight: 600; font-size: 1rem; font-stretch: 105%; letter-spacing: -0.005em;
  text-decoration: none; white-space: nowrap;
  transition: transform 0.25s var(--ease-out), background-color 0.25s, box-shadow 0.25s, opacity 0.2s;
}
.pill:active { transform: scale(0.97); }
.pill-light { background: var(--luz); color: var(--noche); box-shadow: 0 10px 30px -12px rgba(255, 246, 236, 0.5); }
.pill-light:hover { background: #fff; }
.pill-ghost { color: var(--luz); background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.pill-ghost:hover { background: rgba(255, 255, 255, 0.12); }
.pill-hot { background: var(--frutilla); color: #fff; box-shadow: 0 16px 34px -16px var(--frutilla); }
.pill-hot:hover { background: var(--frutilla-d); }
.pill-dark { background: var(--noche); color: var(--luz); }
.pill:disabled { opacity: 0.55; cursor: progress; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  height: 60px; padding: 0 var(--gutter);
  transition: background-color 0.4s, color 0.4s, box-shadow 0.4s;
}
.nav.scrolled { background: var(--nav-bg); backdrop-filter: blur(20px) saturate(1.6); -webkit-backdrop-filter: blur(20px) saturate(1.6); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06); }
.nav.light { color: var(--noche); }
.nav.light.scrolled { box-shadow: 0 1px 0 rgba(22, 17, 47, 0.08); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 680; font-stretch: 112%; letter-spacing: -0.02em; font-size: 1.02rem; }
.brand-mark { font-size: 1.15rem; }
.nav-links { display: flex; gap: 30px; margin-left: auto; font-size: 0.86rem; }
.nav-links a { text-decoration: none; opacity: 0.72; transition: opacity 0.2s; }
.nav-links a:hover { opacity: 1; }
.nav-cta { padding: 0.55em 1.15em; font-size: 0.86rem; box-shadow: none; }
.nav.light .nav-cta { background: var(--noche); color: var(--luz); }
.nav.light :focus-visible { outline-color: var(--noche); }

/* ---------- escenas ---------- */
.scene { position: relative; height: var(--len, 300vh); }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }

/* =================================================================== */
/* CELU: marco de metal, bisel, isla, barra de estado y captura real   */
/* =================================================================== */
.device {
  --dw: 260px;
  --metal: linear-gradient(140deg, #6c6b70 0%, #2a292d 15%, #141316 40%, #3d3c41 55%, #1a191c 75%, #5b5a5f 100%);
  --edge: #2b2a2e;
  position: relative; width: var(--dw); container-type: inline-size;
}
.device[data-metal='natural'] { --metal: linear-gradient(140deg, #efebe5 0%, #aaa69f 13%, #77736d 32%, #cdc9c2 50%, #7d7973 70%, #dad6cf 88%, #96928b 100%); --edge: #8d8983; }
.device[data-metal='blue'] { --metal: linear-gradient(140deg, #a4adbd 0%, #4b5464 15%, #2a313c 40%, #636d7e 55%, #2e3540 76%, #8a94a5 100%); --edge: #4b5464; }
.device[data-metal='white'] { --metal: linear-gradient(140deg, #ffffff 0%, #d7d4cf 15%, #b0ada7 35%, #f1efeb 52%, #bab7b1 72%, #f6f4f0 100%); --edge: #c8c5bf; }
.d-body {
  position: relative; aspect-ratio: 0.4885; border-radius: 17cqw; padding: 1.15cqw;
  background: var(--metal);
  box-shadow:
    inset 0 0 0 0.3cqw rgba(255, 255, 255, 0.4),
    inset 0 0 0.8cqw 0.25cqw rgba(0, 0, 0, 0.35),
    0 1.2cqw 2.4cqw rgba(0, 0, 0, 0.22),
    0 10cqw 22cqw -6cqw rgba(0, 0, 0, 0.55),
    0 32cqw 64cqw -20cqw rgba(0, 0, 0, 0.55);
}
/* botones laterales */
.d-body::before, .d-body::after {
  content: ''; position: absolute; width: 1.2cqw; border-radius: 0.8cqw; background: linear-gradient(90deg, var(--edge), rgba(255, 255, 255, 0.35) 50%, var(--edge));
}
.d-body::before { left: -0.9cqw; top: 19%; height: 7cqw; box-shadow: 0 13cqw 0 0 var(--edge), 0 30cqw 0 0 var(--edge); }
.d-body::after { right: -0.9cqw; top: 30%; height: 21cqw; }
.d-bezel {
  position: relative; height: 100%; border-radius: 15.9cqw; padding: 3cqw;
  background: #030304; box-shadow: inset 0 0 0 0.3cqw rgba(255, 255, 255, 0.07);
}
.d-bezel::after { /* isla */
  content: ''; position: absolute; z-index: 5; left: 50%; top: 5.5cqw; translate: -50% 0;
  width: 31cqw; height: 9.2cqw; border-radius: 99px; background: #000;
  box-shadow: inset 0 0 0 0.25cqw rgba(255, 255, 255, 0.04);
}
.d-display {
  position: relative; height: 100%; border-radius: 13cqw; overflow: hidden; isolation: isolate;
  background: var(--screen-bg, #f6eee3); display: flex; flex-direction: column;
}
.d-display::after { /* reflejo del vidrio */
  content: ''; position: absolute; inset: 0; z-index: 4; pointer-events: none;
  background: linear-gradient(118deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.05) 26%, transparent 38%);
}
.d-display::before { /* barra de inicio */
  content: ''; position: absolute; z-index: 4; left: 50%; bottom: 2.2cqw; translate: -50% 0;
  width: 34cqw; height: 1.25cqw; border-radius: 99px; background: rgba(20, 14, 12, 0.82);
}
.d-status {
  flex: none; height: 13cqw; display: flex; align-items: center; justify-content: space-between;
  padding: 1.6cqw 7.5cqw 0 10cqw; color: var(--status-ink, #2a1f1c);
  font-weight: 640; font-stretch: 100%; font-size: 4.3cqw; letter-spacing: -0.01em; line-height: 1;
}
.d-status svg { width: 17.5cqw; height: auto; fill: currentColor; }
.d-shots { position: relative; flex: 1; }
.d-shots img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0;
  opacity: 0; transition: opacity 0.45s var(--ease);
}
.d-shots img.on { opacity: 1; }
.device-lg { --dw: min(330px, 72vw); }
.device-xl { --dw: min(35svh, 350px); }

/* =================================================================== */
/* TELE                                                                */
/* =================================================================== */
.tv { position: relative; }
.tv-panel {
  position: relative; aspect-ratio: 16 / 9; padding: 0.42%;
  border-radius: 0.8% / 1.42%;
  background: linear-gradient(180deg, #35353c, #0c0c0f 6%, #060608);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.14),
    0 0 0 1px #000,
    0 50px 100px -40px rgba(0, 0, 0, 0.9);
}
.tv-panel img { width: 100%; height: 100%; object-fit: cover; border-radius: 0.3% / 0.53%; }
.tv-panel::after {
  content: ''; position: absolute; inset: 0.42%; pointer-events: none; border-radius: inherit;
  background: linear-gradient(104deg, rgba(255, 255, 255, 0.1), transparent 34%);
}
.tv-stand { position: relative; margin: 0 auto; width: 30%; height: clamp(6px, 1.4vw, 20px); }
.tv-stand::before { /* cuello */
  content: ''; position: absolute; left: 50%; top: 0; translate: -50% 0; width: 12%; height: 70%;
  background: linear-gradient(90deg, #1b1b20, #44444c, #1b1b20);
}
.tv-stand::after { /* base */
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 34%; border-radius: 99px;
  background: linear-gradient(180deg, #55555e, #1a1a1f);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
}

/* =================================================================== */
/* HERO                                                                */
/* =================================================================== */
.hero { --len: 290vh; background: var(--noche); }
.hero .stage { isolation: isolate; }
.hero-light {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(46% 38% at 50% 74%, rgba(255, 228, 196, 0.2), transparent 70%),
    radial-gradient(38% 34% at 22% 82%, rgba(236, 36, 67, 0.32), transparent 72%),
    radial-gradient(40% 36% at 80% 80%, rgba(110, 82, 255, 0.4), transparent 72%),
    radial-gradient(80% 60% at 50% 0%, #241b55, transparent 70%);
  opacity: calc((0.75 + var(--glow, 0) * 0.25) * (1 - var(--end, 0)));
}
.hero .stage::after { /* viñeta y piso */
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 3;
  background:
    radial-gradient(120% 90% at 50% 38%, transparent 58%, rgba(5, 3, 18, 0.6)),
    linear-gradient(180deg, transparent 82%, rgba(5, 3, 18, 0.45));
  opacity: calc(1 - var(--end, 0));
}

.hero-head {
  position: absolute; z-index: 2; left: 0; right: 0;
  top: clamp(84px, 11vh, 124px);
  padding: 0 var(--gutter); text-align: center;
  transform: translateY(calc(var(--h, 0) * -14vh)) scale(calc(1 - var(--h, 0) * 0.06));
  opacity: calc(1 - var(--h, 0) * 1.5);
  will-change: transform, opacity;
}
.hero-title {
  font-size: clamp(60px, min(10vw, 15.5vh), 186px);
  font-weight: 780; font-stretch: var(--w-end, 125%);
  line-height: 0.86; letter-spacing: -0.038em;
  background: linear-gradient(180deg, #fffaf3 25%, #cfc3f3 105%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-bottom: 0.06em;
  animation: estirar 1.8s var(--ease-out) 0.1s both;
}
.hero-title span { display: block; }
@keyframes estirar {
  from { font-stretch: 75%; letter-spacing: 0; opacity: 0; filter: blur(14px); }
  40% { opacity: 1; filter: blur(0); }
  to { font-stretch: var(--w-end, 125%); letter-spacing: -0.038em; }
}
.hero-lead {
  max-width: 33em; margin: clamp(18px, 2.8vh, 28px) auto 0;
  font-size: clamp(1rem, 1.2vw, 1.16rem); color: var(--luz-2); text-wrap: balance;
  animation: aparecer 1.2s var(--ease-out) 0.85s both;
}
.hero-actions { display: flex; justify-content: center; gap: 12px; margin-top: 26px; flex-wrap: wrap; animation: aparecer 1.2s var(--ease-out) 1s both; }
@keyframes aparecer { from { opacity: 0; transform: translateY(16px); } }

.tv-rig {
  position: absolute; z-index: 1; left: 50%; top: 50%;
  width: min(68vw, 960px, 112vh);
  transform: translate(-50%, -50%) translateY(var(--ty, 60vh)) scale(var(--ts, 1));
  transform-origin: 50% 47%;
  will-change: transform;
  animation: subir 1.8s var(--ease-out) 0.35s both;
}
.tv-rig .tv-panel {
  -webkit-box-reflect: below 3px linear-gradient(transparent 80%, rgba(255, 255, 255, 0.16));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.14),
    0 0 0 1px #000,
    0 0 140px -10px rgba(255, 232, 205, 0.32),
    0 60px 120px -40px rgba(0, 0, 0, 0.9);
}
.tv-rig .tv-stand { opacity: calc(1 - var(--dim, 0)); }
.tv-dim { position: absolute; inset: 0; z-index: 2; border-radius: inherit; background: var(--noche); opacity: var(--dim, 0); pointer-events: none; }
@keyframes subir { from { opacity: 0; translate: 0 10vh; } }

.hero-statement {
  position: absolute; inset: 0; z-index: 4; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 0 var(--gutter); pointer-events: none; text-align: center;
  font-size: clamp(44px, 8vw, 148px); font-weight: 760; font-stretch: 112%; line-height: 0.95; letter-spacing: -0.05em;
}
.hero-statement span { display: block; opacity: var(--s1, 0); transform: translateY(calc((1 - var(--s1, 0)) * 34px)); filter: blur(calc((1 - var(--s1, 0)) * 8px)); }
.hero-statement span:nth-child(2) { opacity: var(--s2, 0); transform: translateY(calc((1 - var(--s2, 0)) * 34px)); filter: blur(calc((1 - var(--s2, 0)) * 8px)); }
.hero-statement span:nth-child(3) {
  opacity: var(--s3, 0); transform: translateY(calc((1 - var(--s3, 0)) * 34px)); filter: blur(calc((1 - var(--s3, 0)) * 8px));
  background: linear-gradient(90deg, #ffd23a, #ff8a5c 50%, #ff4f7a); -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-bottom: 0.08em;
}

.crowd { position: absolute; inset: 0; z-index: 2; pointer-events: none; perspective: 1500px; }
.cp {
  position: absolute; bottom: 0;
  --x: 0px; --y: 40%; --ry: 0deg; --rz: 0deg; --rx: 6deg; --fall: 70vh;
  transform: translate3d(calc(var(--x) * var(--c, 0)), calc(var(--y) + var(--c, 0) * var(--fall)), 0) rotateY(var(--ry)) rotateZ(var(--rz)) rotateX(var(--rx));
  transform-style: preserve-3d;
  animation: levantar 1.6s var(--ease-out) both;
}
.cp .device { --dw: clamp(140px, 13.5vw, 236px); }
.cp1 { left: 1.5vw; --y: 40%; --ry: 26deg; --rz: -9deg; --x: -14vw; animation-delay: 0.85s; }
.cp2 { left: 14.5vw; --y: 60%; --ry: 14deg; --rz: -3deg; --x: -8vw; animation-delay: 1s; }
.cp3 { right: 14.5vw; --y: 60%; --ry: -14deg; --rz: 3deg; --x: 8vw; animation-delay: 1.1s; }
.cp4 { right: 1.5vw; --y: 40%; --ry: -26deg; --rz: 9deg; --x: 14vw; animation-delay: 1.2s; }
.cp2 .device, .cp3 .device { --dw: clamp(130px, 12.5vw, 220px); }
@keyframes levantar { from { opacity: 0; translate: 0 40vh; } }

/* =================================================================== */
/* CÓMO FUNCIONA                                                       */
/* =================================================================== */
.como { --len: 440vh; background: var(--noche); }
.como .stage {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: center; gap: 4vw;
  padding: 80px var(--gutter) 40px;
  background: radial-gradient(50% 60% at 75% 50%, rgba(110, 82, 255, 0.22), transparent 70%);
}
.como h2, .formas h2, .detalles h2 {
  font-size: clamp(42px, 5.4vw, 94px); font-weight: 740; font-stretch: 112%; line-height: 0.96; letter-spacing: -0.042em;
  max-width: 10em; text-wrap: balance;
}
.steps { margin-top: clamp(28px, 5vh, 56px); display: grid; gap: clamp(14px, 2.4vh, 24px); max-width: 30em; }
.steps li {
  position: relative; display: grid; grid-template-columns: 48px 1fr; gap: 18px; align-items: start;
  opacity: 0.32; transition: opacity 0.5s var(--ease);
}
.steps li.on { opacity: 1; }
.steps .n {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  font-weight: 650; font-size: 0.95rem; box-shadow: inset 0 0 0 1px var(--luz-3);
  transition: background-color 0.5s, color 0.5s, box-shadow 0.5s;
}
.steps li.on .n { background: var(--luz); color: var(--noche); box-shadow: 0 0 0 6px rgba(255, 246, 236, 0.08); }
.steps h3 { font-size: 1.3rem; font-weight: 650; font-stretch: 108%; letter-spacing: -0.02em; line-height: 1.2; padding-top: 7px; }
.steps p { color: var(--luz-2); margin-top: 4px; font-size: 1rem; }

.como-device { display: grid; place-items: center; perspective: 1400px; }
.como-device .device { transform: rotateY(-14deg) rotateX(4deg) rotateZ(1.5deg); }

/* =================================================================== */
/* CAPÍTULOS                                                           */
/* =================================================================== */
.chapter h2 {
  font-size: clamp(58px, 9vw, 160px); font-weight: 780; font-stretch: 118%; line-height: 0.88; letter-spacing: -0.045em;
}
.scene.chapter h2 { transform-origin: 0 100%; transform: scale(calc(1 - var(--head, 0) * 0.5)); will-change: transform; }
.meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.meta span {
  font-size: 0.82rem; font-weight: 600; padding: 0.42em 0.95em; border-radius: 99px;
  background: rgba(255, 255, 255, 0.14); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.chapter-copy {
  position: absolute; z-index: 5; left: var(--gutter); bottom: clamp(28px, 8vh, 80px);
  width: min(560px, calc(100% - 2 * var(--gutter)));
}
.captions { display: grid; margin-top: 20px; }
.captions p {
  grid-area: 1 / 1; font-size: clamp(1.02rem, 1.25vw, 1.2rem); line-height: 1.5; max-width: 30em; text-wrap: pretty;
  opacity: 0; transform: translateY(10px); transition: opacity 0.5s var(--ease), transform 0.6s var(--ease-out);
}
.captions p.on { opacity: 1; transform: none; }

/* ---------- Tutti Frutti ---------- */
.tutti { --len: 520vh; background: var(--frutilla); color: #fff; }
.tutti .stage { background: radial-gradient(120% 95% at 18% 8%, #ff5a6e 0%, #ec2443 42%, #a50c2b 100%); }
.tutti .stage::before { /* foco */
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(40% 50% at 72% 46%, rgba(255, 220, 225, 0.22), transparent 70%);
}
.reel-wrap {
  position: absolute; inset: 0; display: grid; place-items: center end; padding-right: 9vw;
  perspective: 120svh; perspective-origin: 70% 50%;
  opacity: calc(1 - var(--b-in, 0)); transform: scale(calc(1 - var(--b-in, 0) * 0.3)); transform-origin: 78% 50%;
}
.reel { position: relative; width: 0.9em; height: 0.8em; font-size: min(64svh, 50vw); transform-style: preserve-3d; }
.reel span {
  position: absolute; left: 0; right: 0; top: 0; text-align: center;
  font-weight: 820; font-stretch: 112%; line-height: 0.8; letter-spacing: -0.04em;
  background: linear-gradient(180deg, #ffffff 40%, #ffc9d1 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  backface-visibility: hidden; will-change: transform, opacity;
}

.tutti-phone {
  position: absolute; z-index: 2; right: 11vw; top: 50%; perspective: 1400px;
  opacity: calc(var(--b-in, 0) * (1 - var(--d-in, 0)));
  transform: translateY(calc(-50% + (1 - var(--b-in, 0)) * 50vh)) scale(calc(1 - var(--c-in, 0) * 0.06));
  filter: brightness(calc(1 - var(--c-in, 0) * 0.4));
}
.tutti-phone .device { --dw: min(31svh, 300px); transform: rotateY(-16deg) rotateX(5deg) rotateZ(2deg); }
.callouts {
  position: absolute; z-index: 3; right: calc(11vw + min(31svh, 300px) + 3vw); top: 40%; transform: translateY(-50%);
  display: grid; gap: clamp(10px, 2vh, 22px); text-align: right;
  opacity: calc(1 - var(--c-in, 0) * 0.7 - var(--d-in, 0));
}
.callouts li { opacity: var(--r, 0); transform: translateX(calc((1 - var(--r, 0)) * 40px)); }
.callouts span { display: block; font-size: 0.9rem; font-weight: 560; opacity: 0.75; }
.callouts b { display: block; font-size: clamp(30px, 3.6vw, 60px); font-weight: 720; font-stretch: 110%; letter-spacing: -0.045em; line-height: 1; }
.basta {
  position: absolute; z-index: 4; inset: 0 0 16vh; display: grid; place-items: center; pointer-events: none;
  font-size: 16vw; font-weight: 860; font-stretch: var(--bw, 75%); line-height: 1; letter-spacing: -0.05em;
  color: var(--limon);
  text-shadow: 0 0.025em 0 #e4a400, 0 0.05em 0 #b5102f, 0 40px 90px rgba(90, 0, 15, 0.55);
  opacity: var(--c-op, 0); transform: scale(var(--c-scale, 0.8)) rotate(-4deg);
}
.ladder {
  position: absolute; z-index: 3; left: var(--gutter); right: var(--gutter); top: clamp(96px, 16vh, 170px);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 3vw;
}
.ladder li { opacity: var(--l, 0); transform: translateY(calc((1 - var(--l, 0)) * 40px)); border-top: 1px solid rgba(255, 255, 255, 0.45); padding-top: 16px; }
.ladder b { display: block; font-size: clamp(64px, 9vw, 150px); font-weight: 760; font-stretch: 118%; line-height: 0.9; letter-spacing: -0.06em; }
.ladder span { display: block; margin-top: 12px; font-size: 1rem; max-width: 18em; color: rgba(255, 255, 255, 0.85); }

/* ---------- Frases incompletas ---------- */
.frases { --len: 460vh; background: var(--limon); color: var(--noche); }
.frases .stage { background: radial-gradient(120% 95% at 85% 0%, #ffe680 0%, #ffd23a 45%, #f4a816 100%); }
.frases .meta span { background: rgba(22, 17, 47, 0.08); }
.prompt {
  position: absolute; left: var(--gutter); top: clamp(96px, 14vh, 150px); width: min(58vw, 15em);
  font-size: clamp(36px, 5vw, 90px); font-weight: 720; font-stretch: 106%; line-height: 1; letter-spacing: -0.045em;
  text-wrap: balance; transform-origin: 0 0; transform: scale(calc(1 - var(--duel, 0) * 0.42));
}
.blank { white-space: nowrap; opacity: var(--blank, 0); }
.blank i { display: inline-block; width: 2.4em; height: 0.07em; background: currentColor; margin: 0 0.06em; animation: titilar 1.1s steps(1) infinite; }
@keyframes titilar { 50% { opacity: 0.25; } }
.frases-phone {
  position: absolute; z-index: 2; right: 10vw; top: 50%; perspective: 1400px;
  opacity: var(--fp, 0);
  transform: translateY(calc(-50% + (1 - var(--fp-in, 0)) * 50vh)) translateX(calc(var(--fp-out, 0) * 40vw));
}
.frases-phone .device { --dw: min(30svh, 290px); transform: rotateY(-16deg) rotateX(5deg) rotateZ(2deg); }
.duel {
  position: absolute; left: var(--gutter); right: var(--gutter); top: 40%;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; gap: 2.4vw;
  perspective: 1600px;
}
.answer {
  position: relative; text-align: left; border: 0; border-radius: 30px;
  background: linear-gradient(180deg, #fffdf6, #fff6dc); color: var(--noche); padding: 28px 30px 76px;
  font-size: clamp(1.25rem, 2.1vw, 2rem); font-weight: 650; font-stretch: 104%; line-height: 1.15; letter-spacing: -0.03em;
  box-shadow:
    inset 0 1px 0 #fff,
    0 1px 2px rgba(120, 80, 0, 0.12),
    0 18px 30px -18px rgba(120, 80, 0, 0.45),
    0 50px 80px -40px rgba(120, 70, 0, 0.55);
  opacity: var(--duel, 0);
  transition: box-shadow 0.3s, background-color 0.3s;
}
.answer[data-side='a'] { transform: translateX(calc((1 - var(--duel, 0)) * -40vw)) rotateY(6deg) rotate(-1.2deg); }
.answer[data-side='b'] { transform: translateX(calc((1 - var(--duel, 0)) * 40vw)) rotateY(-6deg) rotate(1deg); }
.answer:hover, .answer.mine { box-shadow: inset 0 0 0 2.5px var(--noche), 0 18px 30px -18px rgba(120, 80, 0, 0.45), 0 50px 80px -40px rgba(120, 70, 0, 0.55); }
.answer.win { background: linear-gradient(180deg, #2a2160, var(--noche)); color: var(--luz); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 50px 80px -40px rgba(40, 20, 80, 0.7); }
.versus { align-self: center; font-size: clamp(1.2rem, 2vw, 2rem); font-weight: 700; font-stretch: 125%; opacity: calc(var(--duel, 0) * 0.6); }
.votes { position: absolute; left: 24px; bottom: 20px; display: flex; gap: 6px; }
.votes span {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; font-size: 1.15rem;
  background: radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.5), transparent 46%), var(--c);
  box-shadow: inset 0 -3px 5px rgba(0, 0, 0, 0.2), 0 4px 10px -2px rgba(0, 0, 0, 0.3);
  animation: pop 0.5s var(--ease-out) both;
}
@keyframes pop { from { opacity: 0; transform: scale(0.4); } 60% { transform: scale(1.1); } }
.votes .you { width: auto; padding: 0 13px 0 7px; gap: 5px; border-radius: 99px; font-size: 0.9rem; font-weight: 650; color: #fff; }
.paliza {
  position: absolute; z-index: 4; right: 0.6em; top: -0.95em; pointer-events: none;
  font-size: clamp(34px, 4vw, 72px); font-weight: 820; font-stretch: 118%; letter-spacing: -0.04em; color: var(--frutilla);
  border: 0.055em solid currentColor; border-radius: 0.2em; padding: 0.02em 0.22em; line-height: 1.05;
  background: #ffe36b; box-shadow: 0 10px 30px -10px rgba(120, 0, 20, 0.5);
  opacity: var(--pal, 0); transform: rotate(-7deg) scale(calc(1.6 - var(--pal, 0) * 0.6));
}
.paliza.off { opacity: 0; }
.try-hint { margin-top: 14px; font-weight: 600; font-size: 0.92rem; opacity: var(--hint, 0); }

/* ---------- El impostor ---------- */
.impostor {
  position: relative; overflow: hidden; color: var(--luz);
  background: radial-gradient(70% 80% at 72% 50%, #145244 0%, var(--bosque) 55%, #061a15 100%);
  padding: clamp(110px, 15vh, 170px) var(--gutter) clamp(90px, 13vh, 150px);
}
.impostor-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 6vw; align-items: center; max-width: 1400px; margin: 0 auto; }
.impostor .meta span { background: rgba(169, 240, 207, 0.12); color: var(--menta); }
.impostor h2 { font-size: clamp(56px, 7.2vw, 128px); }
.impostor .lead { font-size: clamp(1.2rem, 1.7vw, 1.55rem); line-height: 1.38; letter-spacing: -0.015em; margin-top: 28px; max-width: 24em; text-wrap: pretty; }
.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 44px; max-width: 40em; }
.modes h3 { font-size: 1.2rem; font-weight: 650; font-stretch: 110%; letter-spacing: -0.02em; color: var(--menta); }
.modes p { color: var(--luz-2); margin-top: 6px; font-size: 1rem; }
.fine { margin-top: 36px; color: var(--luz-3); font-size: 0.95rem; max-width: 34em; }

.secret-wrap { display: grid; justify-items: center; gap: 18px; }
.secret {
  position: relative; border: 0; padding: 0; background: none; border-radius: 60px; perspective: 1400px;
  touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent;
}
.secret .device { transform: rotateY(-10deg) rotateX(4deg); transition: transform 0.5s var(--ease-out); }
.secret:hover .device { transform: rotateY(-4deg) rotateX(2deg); }
.secret.show .device { transform: rotateY(0) rotateX(0) scale(0.975); transition-duration: 0.2s; }
.secret-ring {
  position: absolute; inset: 8% -6%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(169, 240, 207, 0.28), transparent);
  transition: background 0.3s;
}
.secret.impostor .secret-ring { background: radial-gradient(closest-side, rgba(255, 70, 100, 0.45), transparent); }
.secret-status { min-height: 1.5em; font-weight: 650; color: var(--menta); }
.secret-help { max-width: 26em; text-align: center; color: var(--luz-2); font-size: 0.95rem; }

/* =================================================================== */
/* CON TELE O SIN TELE                                                 */
/* =================================================================== */
.formas { background: radial-gradient(70% 70% at 30% 60%, #2b2066, var(--noche-2) 70%); padding: clamp(100px, 15vh, 170px) var(--gutter); }
.formas-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; max-width: 1400px; margin: 0 auto; }
.seg { display: inline-flex; padding: 4px; border-radius: 99px; background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.seg button {
  border: 0; background: transparent; border-radius: 99px; padding: 0.72em 1.35em; font-weight: 600; font-size: 0.95rem; color: var(--luz-2);
  transition: background-color 0.35s var(--ease), color 0.35s;
}
.seg button[aria-selected='true'] { background: var(--luz); color: var(--noche); }
.formas-body { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.55fr); gap: 5vw; align-items: center; max-width: 1400px; margin: clamp(40px, 7vh, 80px) auto 0; }
.formas-visual { position: relative; aspect-ratio: 16 / 10.5; perspective: 1800px; }
.mini-tv { position: absolute; left: 6%; right: 6%; top: 0; transition: opacity 0.7s var(--ease), transform 0.9s var(--ease-out); }
.mini-tv .tv-panel { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), 0 0 0 1px #000, 0 0 120px -20px rgba(255, 232, 205, 0.25), 0 50px 100px -40px rgba(0, 0, 0, 0.9); }
.mini-phones {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; align-items: end; gap: 5%;
  transform-origin: 50% 100%; transition: transform 0.9s var(--ease-out);
}
.mini-phones .device { --dw: 22%; width: 22%; transition: transform 0.9s var(--ease-out); }
.mini-phones .device:nth-child(1) { transform: rotateY(18deg) rotateZ(-5deg) translateY(4%); }
.mini-phones .device:nth-child(2) { transform: translateY(-2%); }
.mini-phones .device:nth-child(3) { transform: rotateY(-18deg) rotateZ(5deg) translateY(4%); }
[data-mode='phones'] .mini-tv { opacity: 0; transform: translateY(-6%) scale(0.94); }
[data-mode='phones'] .mini-phones { transform: translateY(-4%) scale(1.12); }
[data-mode='screen'] .mini-phones { transform: translateY(14%) scale(0.78); }
.formas-copy { display: grid; }
.fc { grid-area: 1 / 1; transition: opacity 0.4s var(--ease), transform 0.5s var(--ease-out); }
.fc h3 { font-size: clamp(1.6rem, 2.3vw, 2.2rem); font-weight: 700; font-stretch: 110%; letter-spacing: -0.04em; }
.fc p { color: var(--luz-2); margin-top: 12px; font-size: 1.08rem; max-width: 24em; }
[data-mode='phones'] .fc[data-for='screen'], [data-mode='screen'] .fc[data-for='phones'] { opacity: 0; transform: translateY(12px); visibility: hidden; }

/* =================================================================== */
/* DETALLES                                                            */
/* =================================================================== */
.detalles { background: var(--noche); padding: clamp(100px, 15vh, 170px) var(--gutter); }
.detalles-grid { max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.5fr); gap: 6vw; align-items: center; }
.facts { margin-top: clamp(40px, 6vh, 72px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 4vw; row-gap: clamp(30px, 5vh, 52px); }
.facts li { border-top: 1px solid rgba(255, 246, 236, 0.16); padding-top: 18px; }
.facts b { display: block; font-size: clamp(1.3rem, 1.8vw, 1.7rem); font-weight: 680; font-stretch: 110%; letter-spacing: -0.035em; line-height: 1.15; }
.facts span { display: block; margin-top: 8px; color: var(--luz-2); max-width: 24em; font-size: 1rem; }
.detalles-device { display: grid; place-items: center; perspective: 1400px; }
.detalles-device .device { --dw: min(300px, 60vw); transform: rotateY(-14deg) rotateX(4deg) rotateZ(2deg); }

/* =================================================================== */
/* JUGAR: se prenden las luces                                         */
/* =================================================================== */
.jugar {
  position: relative; color: var(--noche); text-align: center; overflow: hidden;
  background: radial-gradient(80% 60% at 50% 0%, #fff, var(--luz) 60%);
  padding: clamp(110px, 16vh, 180px) var(--gutter) clamp(80px, 12vh, 140px);
}
.jugar-critters { display: flex; justify-content: center; gap: clamp(8px, 1.6vw, 18px); font-size: clamp(28px, 3.2vw, 44px); }
.jugar-critters span { display: inline-block; }
.jugar.seen .jugar-critters span { animation: saltito 0.8s var(--ease-out) both; }
.jugar.seen .jugar-critters span:nth-child(2) { animation-delay: 0.06s; }
.jugar.seen .jugar-critters span:nth-child(3) { animation-delay: 0.12s; }
.jugar.seen .jugar-critters span:nth-child(4) { animation-delay: 0.18s; }
.jugar.seen .jugar-critters span:nth-child(5) { animation-delay: 0.24s; }
.jugar.seen .jugar-critters span:nth-child(6) { animation-delay: 0.3s; }
.jugar.seen .jugar-critters span:nth-child(7) { animation-delay: 0.36s; }
.jugar.seen .jugar-critters span:nth-child(8) { animation-delay: 0.42s; }
@keyframes saltito { from { transform: translateY(40px); opacity: 0; } 60% { transform: translateY(-10px); opacity: 1; } }
.jugar h2 {
  margin-top: 22px;
  font-size: clamp(56px, 9vw, 168px); font-weight: 780; font-stretch: 118%; line-height: 0.9; letter-spacing: -0.06em;
}
.jugar-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); align-items: start; gap: 20px; max-width: 1040px; margin: clamp(40px, 7vh, 72px) auto 0; text-align: left; }
.panel {
  background: #fff; border-radius: 32px; padding: clamp(24px, 3vw, 38px);
  box-shadow: 0 1px 0 rgba(22, 17, 47, 0.04), 0 1px 3px rgba(22, 17, 47, 0.06), 0 40px 80px -50px rgba(22, 17, 47, 0.4);
}
.panel h3 { font-size: 1.6rem; font-weight: 700; font-stretch: 110%; letter-spacing: -0.04em; }
.panel-sub { color: rgba(22, 17, 47, 0.6); margin-top: 6px; font-size: 1rem; }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 22px 0; }
.choice label { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span {
  display: block; height: 100%; border-radius: 20px; padding: 16px 18px; background: #f6f1ea;
  box-shadow: inset 0 0 0 1.5px transparent; transition: box-shadow 0.25s, background-color 0.25s;
}
.choice b { display: block; font-weight: 640; letter-spacing: -0.01em; }
.choice small { display: block; color: rgba(22, 17, 47, 0.6); font-size: 0.88rem; margin-top: 4px; }
.choice input:checked + span { box-shadow: inset 0 0 0 2px var(--frutilla); background: #fff3f4; }
.choice input:focus-visible + span { outline: 2.5px solid var(--noche); outline-offset: 2px; }
.wide { width: 100%; font-size: 1.05rem; padding: 1.05em; }
.code-form { display: flex; gap: 10px; margin-top: 22px; }
.code-input {
  flex: 1; width: 100%; min-width: 0; border: 0; border-radius: 20px; background: #f6f1ea; color: var(--noche);
  text-align: center; text-transform: uppercase; padding: 10px;
  font-size: 2.2rem; font-weight: 760; font-stretch: 125%; letter-spacing: 0.2em;
  box-shadow: inset 0 0 0 1.5px transparent; transition: box-shadow 0.2s;
}
.code-input::placeholder { color: rgba(22, 17, 47, 0.18); }
.code-input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--noche); }
.error { color: var(--frutilla-d); font-weight: 600; min-height: 1.5em; margin-top: 10px; font-size: 0.95rem; }
.recent-title { color: rgba(22, 17, 47, 0.6); font-size: 0.88rem; margin-top: 4px; }
.recent { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.recent a { background: #f6f1ea; border-radius: 99px; padding: 6px 14px; font-weight: 650; text-decoration: none; font-size: 0.92rem; }
.recent a:hover { background: var(--limon); }
.foot { background: var(--luz); color: rgba(22, 17, 47, 0.6); text-align: center; padding: 0 var(--gutter) 48px; font-size: 0.88rem; display: grid; gap: 6px; }
.foot-brand { color: var(--noche); font-weight: 680; font-stretch: 112%; letter-spacing: -0.02em; }

/* =================================================================== */
/* RESPONSIVE                                                          */
/* =================================================================== */
@media (max-width: 1100px) {
  .ladder { grid-template-columns: 1fr 1fr; row-gap: 22px; }
  .ladder b { font-size: clamp(52px, 8vw, 96px); }
  .callouts { display: none; }
  .tutti-phone { right: 50%; transform: translate(50%, calc(-58% + (1 - var(--b-in, 0)) * 50vh)) scale(calc(1 - var(--c-in, 0) * 0.06)); }
}

@media (max-width: 860px) {
  :root { font-size: 17px; }
  .nav-links { display: none; }
  .nav-cta { margin-left: auto; }

  .hero-title { --w-end: 100%; font-size: clamp(54px, 16vw, 120px); line-height: 0.9; }
  .tv-rig { width: 92vw; }
  .cp .device { --dw: clamp(110px, 31vw, 170px); }
  .cp1, .cp4 { display: none; }
  .cp2 { left: -3vw; --y: 40%; }
  .cp3 { right: -3vw; --y: 40%; }

  .como .stage { grid-template-columns: 1fr; grid-template-rows: auto 1fr auto; align-items: start; gap: 0; padding: 80px var(--gutter) 24px; }
  .como-text { display: contents; }
  .como h2 { font-size: clamp(32px, 8.6vw, 52px); grid-row: 1; }
  .como-device { grid-row: 2; align-self: center; padding: 14px 0; height: 100%; min-height: 0; }
  .device-xl { --dw: min(25svh, 230px); }
  .steps { grid-row: 3; margin: 0; display: grid; min-height: 7.5em; }
  .steps li { grid-area: 1 / 1; opacity: 0; transform: translateY(10px); transition: opacity 0.4s, transform 0.5s var(--ease-out); }
  .steps li.on { opacity: 1; transform: none; }
  .steps h3 { font-size: 1.18rem; }

  .chapter-copy { bottom: 22px; }
  .chapter h2 { font-size: clamp(50px, 14vw, 96px); }
  .captions { margin-top: 14px; min-height: 5.4em; }
  .reel-wrap { place-items: start center; padding: 15vh 0 0; perspective-origin: 50% 30%; transform-origin: 50% 30%; }
  .reel { font-size: min(44svh, 80vw); }
  .tutti-phone .device, .frases-phone .device { --dw: min(25svh, 200px); }
  .basta { font-size: 20vw; place-items: start center; padding-top: 30vh; }
  .ladder { top: 80px; gap: 14px 16px; }
  .ladder li { padding-top: 8px; }
  .ladder b { font-size: 52px; }
  .ladder span { font-size: 0.86rem; margin-top: 4px; }

  .prompt { top: 80px; width: auto; right: var(--gutter); font-size: clamp(30px, 8.6vw, 50px); transform: scale(calc(1 - var(--duel, 0) * 0.38)); }
  .frases-phone { display: none; }
  .duel { top: 26%; grid-template-columns: 1fr; gap: 12px; }
  .answer { padding: 16px 18px 60px; font-size: 1.15rem; border-radius: 22px; }
  .versus { display: none; }
  .votes { left: 16px; bottom: 14px; }
  .votes span { width: 34px; height: 34px; font-size: 1rem; }
  .paliza { right: -6px; top: -1.3em; font-size: 38px; }

  .impostor-grid { grid-template-columns: 1fr; gap: 56px; }
  .modes { grid-template-columns: 1fr; gap: 20px; }
  .formas-body { grid-template-columns: 1fr; }
  .seg { width: 100%; }
  .seg button { flex: 1; white-space: nowrap; padding: 0.72em 0.6em; font-size: 0.9rem; }
  .detalles-grid { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .detalles-device { display: none; }
  .jugar-grid { grid-template-columns: 1fr; }
  .jugar h2 { font-size: 12.4vw; font-stretch: 100%; }
  .code-input { font-size: 1.8rem; letter-spacing: 0.14em; }
}

@media (max-width: 520px) {
  .choice { grid-template-columns: 1fr; }
  .hero-actions .pill { flex: 1; }
  .hero-lead { font-size: 1rem; }
}


@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
