:root {
  --vacio: #0B0A1F;      /* fondo: el espacio */
  --noche: #14123A;
  --panel: #17154A;
  --violeta: #6C5CE7;
  --violeta-s: #4B3CC4;
  --lila: #A29BFE;
  --limon: #FFC83D;
  --papel: #F2F0FC;
  --gris: #A9A5CF;
  --linea: rgba(162, 155, 254, .18);
  --sans: "Space Grotesk", system-ui, sans-serif;
  --mono: "Space Mono", ui-monospace, monospace;
  --wrap: 1180px;
  --pad: max(18px, calc((100vw - var(--wrap)) / 2));
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; } /* sin el destello gris al tocar en el celular */
body { margin: 0; background: var(--vacio); color: var(--papel); font-family: var(--sans); font-size: 17px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
::selection { background: var(--limon); color: var(--noche); }
:focus-visible { outline: 3px solid var(--limon); outline-offset: 3px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--limon); color: var(--noche); padding: 10px 14px; border-radius: 10px; z-index: 80; font-weight: 700; }
.skip:focus { top: 12px; }
.mono { font-family: var(--mono); }
section { padding-left: var(--pad); padding-right: var(--pad); }
h1, h2, h3 { margin: 0; font-family: var(--sans); }
h2 { font-size: clamp(40px, 7vw, 96px); line-height: .92; letter-spacing: -0.05em; font-weight: 700; overflow-wrap: break-word; }
.eyebrow { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--limon); margin: 0 0 18px; display: flex; align-items: flex-start; gap: 10px; }
.eyebrow::before { content: ""; width: 10px; height: 10px; background: var(--limon); border-radius: 2px; flex: none; margin-top: .37em; margin-top: calc((1lh - 10px) / 2); } /* a la altura de la primera línea */
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--gris); max-width: 52ch; margin: 22px 0 0; }

/* ---------- botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; white-space: nowrap; font: 700 15px var(--sans); text-decoration: none; border-radius: 999px; padding: 11px 18px; border: 0; cursor: pointer; transition: background .2s, color .2s, box-shadow .2s, transform .25s cubic-bezier(.2,.8,.2,1); will-change: transform; }
.btn-lemon { background: var(--limon); color: var(--noche); box-shadow: 0 0 0 0 rgba(255, 200, 61, .5); }
.btn-lemon:hover { box-shadow: 0 0 0 6px rgba(255, 200, 61, .18), 0 12px 40px -8px rgba(255, 200, 61, .55); }
.btn-ghost { color: var(--papel); background: transparent; box-shadow: inset 0 0 0 1.5px var(--lila); }
.btn-ghost:hover { background: rgba(162, 155, 254, .12); }
.btn-big { font-size: 17px; padding: 16px 26px; }

/* ---------- logo ---------- */
.logo { display: inline-flex; align-items: center; }
.logo svg { overflow: visible; display: block; }
.logo svg rect { transform-box: fill-box; transform-origin: center; }
.logo .lw { display: flex; flex-direction: column; gap: 3px; }
.logo .ln { font-weight: 700; letter-spacing: -0.03em; line-height: 1; white-space: nowrap; color: var(--papel); }
.logo .ln span { display: inline-block; }
.logo .ln .l3 { font-weight: 300; }
.logo .ls { font-weight: 500; letter-spacing: .55em; color: var(--limon); padding-left: 1px; }

/* ---------- header ---------- */
.top { position: fixed; inset: 0 0 auto; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px var(--pad); transition: background .3s, border-color .3s, padding .3s; border-bottom: 1px solid transparent; }
.top.scrolled { background: rgba(11, 10, 31, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom-color: var(--linea); padding-top: 11px; padding-bottom: 11px; }
.brand { text-decoration: none; }
.nav { display: flex; align-items: center; gap: 24px; font-size: 15px; font-weight: 500; }
.nav > a:not(.btn) { text-decoration: none; color: var(--gris); position: relative; }
.nav > a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 100%; height: 3px; background: var(--limon); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav > a:not(.btn):hover { color: var(--papel); }
.nav > a:not(.btn):hover::after { transform: scaleX(1); }
.lang { font: 700 13px var(--mono); color: var(--papel); background: transparent; border: 1px solid var(--linea); border-radius: 8px; padding: 6px 9px; cursor: pointer; }
.lang:hover { border-color: var(--lila); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding-top: 110px; padding-bottom: 110px; overflow: hidden; }
#space { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: crosshair; }
.hero-copy { position: relative; z-index: 2; max-width: 680px; pointer-events: none; }
.hero-copy a, .hero-copy button { pointer-events: auto; }
.hero h1 { font-size: clamp(46px, 7.4vw, 108px); line-height: .93; letter-spacing: -0.055em; font-weight: 700; }
.h1-lead { display: block; }
.h1-word { display: block; color: var(--limon); overflow: clip; overflow-clip-margin: .15em; }
.h1-word .glyph { color: var(--lila); display: inline-block; width: .55em; text-align: center; overflow: hidden; vertical-align: top; }
.h1-word .nw { white-space: nowrap; }
.h1-word .cur { display: inline-block; width: .38em; height: .74em; margin-left: .08em; background: var(--violeta); vertical-align: -.02em; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero-sub { font-size: clamp(18px, 1.7vw, 22px); color: var(--gris); max-width: 44ch; margin: 22px 0 34px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.hint { position: absolute; z-index: 2; right: var(--pad); bottom: 44px; margin: 0; font-size: 13px; color: var(--lila); display: flex; align-items: center; gap: 10px; }
.hint::before { content: ""; width: 9px; height: 9px; background: var(--limon); border-radius: 2px; animation: blink 1.2s steps(1) infinite; }
.scroll-cue { position: absolute; z-index: 2; left: var(--pad); bottom: 40px; display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--gris); text-decoration: none; text-transform: uppercase; letter-spacing: .14em; }
.cue-px { width: 10px; height: 10px; background: var(--lila); border-radius: 2px; animation: drop 1.4s var(--ease) infinite; }
@keyframes drop { 0%, 100% { transform: translateY(-6px); } 50% { transform: translateY(6px); } }

/* ---------- cinta ---------- */
.marquee { border-block: 1px solid var(--linea); padding: 22px 0; overflow: hidden; background: var(--vacio); }
.marquee-track { display: flex; width: max-content; animation: slide 46s linear infinite; }
.marquee-item { display: flex; align-items: center; gap: 34px; padding-right: 34px; font-size: clamp(34px, 5vw, 64px); font-weight: 700; letter-spacing: -0.04em; white-space: nowrap; }
.marquee-item:nth-child(even) { color: transparent; -webkit-text-stroke: 1.5px var(--lila); }
.marquee-item::after { content: ""; width: 16px; height: 16px; background: var(--limon); border-radius: 3px; flex: none; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- promo ---------- */
.hero-pass { position: absolute; z-index: 3; right: var(--pad); bottom: 84px; display: flex; align-items: stretch; border-radius: 16px; overflow: hidden; text-decoration: none; color: var(--papel); background: var(--panel); box-shadow: 0 0 0 1px rgba(255, 200, 61, .5), 0 18px 40px -16px rgba(255, 200, 61, .45); transition: transform .3s var(--ease), box-shadow .3s; }
.hero-pass:hover { transform: translateY(-4px) rotate(-1.5deg); box-shadow: 0 0 0 2px var(--limon), 0 24px 50px -16px rgba(255, 200, 61, .6); }
.hp-stub { display: grid; place-items: center; padding: 0 12px; background: var(--limon); color: var(--noche); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; writing-mode: vertical-rl; transform: rotate(180deg); border-left: 2px dashed rgba(20, 18, 58, .45); }
.hp-body { display: flex; flex-direction: column; gap: 3px; padding: 14px 20px 14px 18px; }
.hp-title { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; }
.hp-title strong { color: var(--limon); font-weight: 700; }
.hp-sub { font-size: 14px; color: var(--gris); }
.hp-more { margin-top: 4px; font-size: 12px; color: var(--limon); }
.nav > a.nav-promo { color: var(--limon); }
.promo { position: relative; padding-top: 130px; padding-bottom: 30px; overflow: clip; } /* clip (no hidden) para que el ticket pueda quedar fijo al bajar */
.promo::before { content: ""; position: absolute; right: -10%; top: 40px; width: 60%; height: 80%; background: radial-gradient(closest-side, rgba(255, 200, 61, .16), transparent); pointer-events: none; }
.promo-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: start; }
.promo h2 .hl { color: var(--limon); }
.promo h2 .hl-ch { display: inline-block; }
.promo h2 .nw { white-space: nowrap; }
.promo-steps-title { margin: 48px 0 18px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--gris); font-weight: 400; }
.promo-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; counter-reset: ps; }
.promo-steps li { counter-increment: ps; display: grid; grid-template-columns: 44px 1fr; gap: 4px 14px; padding: 14px 10px; margin: 0 -10px; border-top: 1px solid var(--linea); border-radius: 12px; transition: background .25s; }
@media (hover: hover) { .promo-steps li:hover { background: rgba(255, 255, 255, .08); } }
.promo-steps li::before { content: counter(ps); grid-row: span 2; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 7px; background: var(--violeta); font: 700 15px var(--mono); opacity: .25; transform: scale(.6); transition: transform .3s var(--ease); }
.promo-copy.in .promo-steps li::before { animation: pop .45s cubic-bezier(.2, 1.6, .4, 1) both; animation-delay: calc(.3s + var(--i) * .22s); }
@media (hover: hover) { .promo-steps li:hover::before { transform: scale(1.15) rotate(-6deg); } }
@keyframes pop { to { opacity: 1; transform: scale(1); } }
.promo-steps li:last-child::before { background: var(--limon); color: var(--noche); }
.promo-steps b { font-size: 19px; }
.promo-steps span { color: var(--gris); font-size: 16px; }

.ticket { position: sticky; top: 100px; background: linear-gradient(160deg, #1D1A5A, var(--panel) 60%); border: 1px solid rgba(255, 200, 61, .35); border-radius: 28px; padding: 26px; box-shadow: 0 30px 80px -40px rgba(255, 200, 61, .5); }
.glare { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 0%), rgba(255, 255, 255, .16), transparent 46%); opacity: 0; transition: opacity .3s; }
.ticket:hover .glare { opacity: 1; }
.ticket-top { display: flex; justify-content: space-between; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--gris); }
.ticket-row { display: flex; flex-direction: column; gap: 4px; padding: 22px 0; }
.t-label { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--lila); }
.t-price { font-size: clamp(56px, 7vw, 92px); font-weight: 700; letter-spacing: -0.05em; line-height: 1; }
.now .t-price { color: var(--limon); }
.after .t-price { font-size: clamp(40px, 4.6vw, 60px); }
.t-price small { font-size: .4em; font-weight: 500; color: var(--gris); letter-spacing: -0.01em; margin-left: 4px; }
.t-text { color: var(--gris); font-size: 16px; }
.ticket-cut { position: relative; height: 0; border-top: 2px dashed rgba(162, 155, 254, .35); margin: 0 -26px; }
.ticket-cut::before, .ticket-cut::after { content: ""; position: absolute; top: -15px; width: 28px; height: 28px; border-radius: 50%; background: var(--vacio); border: 1px solid rgba(255, 200, 61, .35); }
.ticket-cut::before { left: -15px; clip-path: inset(0 0 0 50%); }
.ticket-cut::after { right: -15px; clip-path: inset(0 50% 0 0); }
.promo-cta { width: 100%; margin-top: 6px; }

.promo-includes { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 56px; }
.promo-includes > div { background: rgba(23, 21, 74, .6); border: 1px solid var(--linea); border-radius: 22px; padding: 24px; }
.promo-includes h3 { font-size: 20px; letter-spacing: -0.02em; margin-bottom: 14px; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 12px; align-items: baseline; color: var(--papel); }
.checks li::before { content: ""; width: 10px; height: 10px; border-radius: 2px; box-shadow: inset 0 0 0 2px var(--limon); background: transparent; flex: none; transform: translateY(-1px); }
.promo-includes.in .checks li::before { animation: tick .3s steps(1) both; animation-delay: calc(.4s + var(--i) * .16s); }
@keyframes tick { to { background: var(--limon); } }
.promo-up { position: relative; display: grid; grid-template-columns: minmax(180px, auto) 1fr auto; align-items: center; gap: 18px 36px; margin-top: 22px; padding: 24px 28px; border: 1px dashed rgba(162, 155, 254, .45); border-radius: 22px; background: rgba(108, 92, 231, .08); }
.up-tag { margin: 0 0 6px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--lila); }
.promo-up h3 { font-size: 20px; letter-spacing: -0.02em; margin: 0; }
.up-price { margin: 6px 0 0; font-size: 32px; font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.up-price small { font-size: 13px; font-weight: 500; color: var(--gris); letter-spacing: 0; margin-left: 4px; }
.promo-up .checks { grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.promo-up .checks li::before { box-shadow: inset 0 0 0 2px var(--lila); }
.promo-up.in .checks li::before { animation: tick-lila .3s steps(1) both; animation-delay: calc(.4s + var(--i) * .16s); }
@keyframes tick-lila { to { background: var(--lila); } }
.fine-box { position: relative; }
.fine-box > summary { display: none; }
.fine { position: relative; margin: 26px 0 0; font-size: 13px; color: var(--gris); max-width: 90ch; line-height: 1.6; }

/* ---------- misiones: consola ---------- */
.missions { padding-top: 130px; padding-bottom: 130px; background-image: radial-gradient(rgba(162, 155, 254, .14) 1px, transparent 1.2px); background-size: 26px 26px; }
.missions-head { display: grid; grid-template-columns: auto minmax(0, 28ch); justify-content: start; align-items: end; gap: 6px 48px; }
.missions-head .eyebrow { grid-column: 1 / -1; }
.missions-sub { margin: 0 0 12px; padding-left: 22px; border-left: 2px solid var(--limon); font-size: 20px; color: var(--gris); }
@media (min-width: 1081px) { .missions-head h2 { white-space: nowrap; } } /* título en una línea, subtítulo al lado */
.console { margin-top: 56px; display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 28px; align-items: start; }
.m-list { display: flex; flex-direction: column; border-top: 1px solid var(--linea); }
.m-dots { display: none; }
.m-item { position: relative; display: flex; align-items: baseline; gap: 18px; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--linea); color: var(--gris); padding: 16px 8px 16px 30px; cursor: pointer; font: 700 clamp(26px, 3.2vw, 40px)/1.05 var(--sans); letter-spacing: -0.035em; transition: color .25s, padding-left .35s var(--ease); }
.m-item .code { font: 400 12px var(--mono); letter-spacing: .1em; color: var(--lila); min-width: 52px; transform: translateY(-4px); }
.m-item::before { content: ""; position: absolute; left: 6px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 3px; background: var(--limon); transform: scale(0) rotate(45deg); transition: transform .35s var(--ease); }
.m-item:hover { color: var(--papel); }
.m-item[aria-selected="true"] { color: var(--limon); padding-left: 40px; }
.m-item[aria-selected="true"]::before { transform: scale(1) rotate(0); }
.m-item[aria-selected="true"] .code { color: var(--limon); }
.m-panel { position: sticky; top: 100px; background: var(--panel); border: 1px solid var(--linea); border-radius: 28px; padding: 30px; min-height: 470px; display: flex; flex-direction: column; overflow: hidden; }
.m-panel::after { content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; background: radial-gradient(circle, rgba(108, 92, 231, .35), transparent 70%); pointer-events: none; }
.mp-top { display: flex; justify-content: space-between; align-items: center; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; color: var(--limon); }
.mp-top span:last-child { color: var(--gris); }
.mission-icon { margin: 30px 0 24px; width: 96px; height: 96px; overflow: visible; }
.mission-icon rect { transform-box: fill-box; transform-origin: center; }
.m-panel h3 { font-size: clamp(30px, 3vw, 40px); letter-spacing: -0.035em; }
.m-panel .hook { font-size: clamp(21px, 2vw, 26px); line-height: 1.2; font-weight: 500; color: var(--lila); margin: 10px 0 14px; }
.m-panel .text { margin: 0; color: var(--gris); font-size: 17px; max-width: 46ch; }
.tags { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font: 400 12px var(--mono); border: 1px solid var(--linea); border-radius: 6px; padding: 4px 8px; color: var(--gris); }
.m-panel .btn { margin-top: auto; align-self: flex-start; }
.mp-body { display: flex; flex-direction: column; flex: 1; }
.mp-body > .btn { margin-top: 28px; }

/* ---------- IA ---------- */
.ai { padding-top: 60px; padding-bottom: 30px; position: relative; }
.ai::before { content: ""; position: absolute; inset: -40px 0 auto; height: 760px; background: radial-gradient(45% 40% at 70% 45%, rgba(108, 92, 231, .28), transparent 70%); pointer-events: none; }
.ai-head { position: relative; }
.glitch { position: relative; display: inline-block; }
.glitch::before, .glitch::after { content: attr(data-text); position: absolute; inset: 0; pointer-events: none; opacity: 0; }
.glitch::before { color: var(--limon); transform: translate(-3px, 0); clip-path: inset(0 0 55% 0); }
.glitch::after { color: var(--violeta); transform: translate(3px, 0); clip-path: inset(50% 0 0 0); }
.glitch.on::before, .glitch.on::after { animation: glitch .9s steps(2) 1 both; }
@keyframes glitch { 0% { opacity: 1; transform: translate(-6px, 2px); } 30% { transform: translate(5px, -2px); } 60% { transform: translate(-3px, 1px); } 90% { opacity: 1; } 100% { opacity: 0; transform: none; } }
.ai-lab { position: relative; margin-top: 56px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; align-items: stretch; }
.ai-tasks { background: var(--panel); border: 1px solid var(--linea); border-radius: 26px; padding: 24px; }
.label { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--gris); margin: 0 0 16px; }
.ai-tasks ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.task { width: 100%; text-align: left; display: flex; align-items: center; gap: 14px; font: 500 17px var(--sans); color: var(--papel); background: rgba(11, 10, 31, .55); border: 1px dashed rgba(162, 155, 254, .4); border-radius: 14px; padding: 15px 16px; cursor: pointer; transition: border-color .2s, background .2s, transform .15s; }
.task:hover { border-color: var(--limon); background: rgba(255, 200, 61, .06); }
.task:active { transform: scale(.98); }
.task .box { width: 18px; height: 18px; border-radius: 4px; border: 2px solid var(--lila); flex: none; display: grid; place-items: center; }
.task[aria-pressed="true"] { border-style: solid; border-color: transparent; background: transparent; color: var(--gris); text-decoration: line-through; text-decoration-color: var(--limon); text-decoration-thickness: 2px; cursor: default; }
.task[aria-pressed="true"] .box { background: var(--limon); border-color: var(--limon); }
.task[aria-pressed="true"] .box::after { content: ""; width: 6px; height: 6px; background: var(--noche); border-radius: 1px; }
.ai-meter { display: flex; align-items: center; gap: 14px; margin-top: 20px; }
.meter { display: flex; gap: 5px; }
.meter i { width: 18px; height: 18px; border-radius: 4px; background: rgba(162, 155, 254, .18); transition: background .3s, transform .3s var(--ease); }
.meter i.on { background: var(--limon); transform: scale(1.12); }
.ai-meter p { margin: 0; font-size: 13px; color: var(--gris); }
.ai-screen { background: #07061A; border: 1px solid var(--linea); border-radius: 26px; overflow: hidden; display: flex; flex-direction: column; min-height: 380px; }
.screen-bar { display: flex; align-items: center; gap: 7px; padding: 14px 18px; border-bottom: 1px solid var(--linea); }
.screen-bar i { width: 10px; height: 10px; border-radius: 2px; background: var(--violeta-s); }
.screen-bar i:nth-child(3) { background: var(--limon); }
.screen-bar span { margin-left: auto; font-size: 12px; color: var(--gris); }
.screen-body { padding: 22px; font-family: var(--mono); font-size: 15px; line-height: 1.6; display: flex; flex-direction: column; gap: 14px; overflow: auto; max-height: 460px; }
.screen-body .muted { color: var(--gris); }
.line-in { color: var(--lila); }
.line-out { color: var(--papel); padding-left: 14px; border-left: 3px solid var(--limon); }
.line-all { color: var(--limon); font-weight: 700; }
.screen-body .btn { align-self: flex-start; font-family: var(--sans); }
.reset { font: 400 13px var(--mono); color: var(--gris); background: none; border: 0; text-decoration: underline; cursor: pointer; align-self: flex-start; padding: 0; }
.principles { list-style: none; margin: 40px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 34px; font-size: 14px; color: var(--papel); }
.principles li { display: flex; align-items: center; gap: 10px; }
.principles li::before { content: ""; width: 9px; height: 9px; background: var(--limon); border-radius: 2px; }

/* ---------- franjas espaciales entre secciones ---------- */
.space-gap { position: relative; z-index: 2; height: 220px; } /* sin recorte y por encima de la sección siguiente, para que el rayo no se corte */
.sg-path { position: absolute; left: var(--pad); right: var(--pad); top: 68%; border-top: 2px dashed rgba(162, 155, 254, .16); }
.sg-star { position: absolute; width: 3px; height: 3px; background: var(--papel); animation: twinkle 2.6s steps(2) infinite; }
@keyframes twinkle { 50% { opacity: .15; } }
.sg-ship { position: absolute; left: 70%; top: 68%; /* más cerca de la sección siguiente */ width: 120px; margin-top: -34px; cursor: pointer; }
.space-gap[data-kind="sat"] .sg-ship { left: 76%; }
.space-gap[data-kind="sat"] .sg-ship { width: 110px; margin-top: -40px; }
.space-gap[data-kind="ufo"] .sg-ship { top: 82%; transform: rotate(10deg); } /* más abajo y levemente inclinado hacia el centro de la página */
.space-gap[data-kind="ufo"] .sg-path { top: 82%; }
@media (min-width: 861px) { .space-gap[data-kind="ufo"] .sg-ship, .space-gap[data-kind="ufo"] .sg-path { top: 100%; } } /* en escritorio, todavía más cerca de la IA */
.space-gap[data-kind="ufo"] .sg-art { animation: ufo-drift 7s ease-in-out infinite; }
@keyframes ufo-drift {
  0%, 100% { transform: translate(0, 0) rotate(0); }
  25% { transform: translate(-20px, -14px) rotate(-5deg); }
  50% { transform: translate(14px, -22px) rotate(4deg); }
  75% { transform: translate(24px, 10px) rotate(6deg); }
}
.space-gap[data-kind="sat"] .sg-ship { transform: rotate(24deg); } /* flota de costado */
.space-gap[data-kind="sat"] .sg-art { animation: sat-drift 12s linear infinite; }
@keyframes sat-drift { /* recorrido continuo en forma de 8, balanceándose ±14° */
  0.0% { transform: translate(0.0px, 0.0px) rotate(9.9deg); }
  4.17% { transform: translate(6.2px, 8.0px) rotate(12.1deg); }
  8.33% { transform: translate(12.0px, 13.9px) rotate(13.5deg); }
  12.5% { transform: translate(17.0px, 16.0px) rotate(14.0deg); }
  16.67% { transform: translate(20.8px, 13.9px) rotate(13.5deg); }
  20.83% { transform: translate(23.2px, 8.0px) rotate(12.1deg); }
  25.0% { transform: translate(24.0px, 0.0px) rotate(9.9deg); }
  29.17% { transform: translate(23.2px, -8.0px) rotate(7.0deg); }
  33.33% { transform: translate(20.8px, -13.9px) rotate(3.6deg); }
  37.5% { transform: translate(17.0px, -16.0px) rotate(0.0deg); }
  41.67% { transform: translate(12.0px, -13.9px) rotate(-3.6deg); }
  45.83% { transform: translate(6.2px, -8.0px) rotate(-7.0deg); }
  50.0% { transform: translate(0.0px, -0.0px) rotate(-9.9deg); }
  54.17% { transform: translate(-6.2px, 8.0px) rotate(-12.1deg); }
  58.33% { transform: translate(-12.0px, 13.9px) rotate(-13.5deg); }
  62.5% { transform: translate(-17.0px, 16.0px) rotate(-14.0deg); }
  66.67% { transform: translate(-20.8px, 13.9px) rotate(-13.5deg); }
  70.83% { transform: translate(-23.2px, 8.0px) rotate(-12.1deg); }
  75.0% { transform: translate(-24.0px, 0.0px) rotate(-9.9deg); }
  79.17% { transform: translate(-23.2px, -8.0px) rotate(-7.0deg); }
  83.33% { transform: translate(-20.8px, -13.9px) rotate(-3.6deg); }
  87.5% { transform: translate(-17.0px, -16.0px) rotate(-0.0deg); }
  91.67% { transform: translate(-12.0px, -13.9px) rotate(3.6deg); }
  95.83% { transform: translate(-6.2px, -8.0px) rotate(7.0deg); }
  100.0% { transform: translate(-0.0px, -0.0px) rotate(9.9deg); }
}
.sg-art { position: relative; display: block; animation: bob 3.2s ease-in-out infinite; }
.sg-art svg { display: block; width: 100%; height: auto; overflow: visible; }
.sg-art svg rect { transform-box: fill-box; transform-origin: center; }
.lights rect { animation: lamp .9s steps(1) infinite; }
.lights rect:nth-child(2n) { animation-delay: .3s; }
.lights rect:nth-child(3n) { animation-delay: .6s; }
@keyframes lamp { 50% { fill: #FF8A3D; } }
/* rayo del plato volador */
.space-gap[data-kind="ufo"] .sg-fx { position: absolute; left: 50%; top: 80%; width: 90px; height: 120px; transform: translateX(-50%) scaleY(0); transform-origin: top; background: linear-gradient(rgba(255, 200, 61, .5), transparent); clip-path: polygon(36% 0, 64% 0, 100% 100%, 0 100%); transition: transform .3s var(--ease); pointer-events: none; }
.space-gap[data-kind="ufo"] .sg-ship.beam .sg-fx { transform: translateX(-50%) scaleY(1); }
/* ondas de señal del satélite */
.space-gap[data-kind="sat"] .sg-fx { position: absolute; left: 50%; top: -8px; width: 22px; height: 22px; margin-left: -11px; border: 2px solid var(--limon); border-radius: 50%; opacity: 0; pointer-events: none; }
.space-gap[data-kind="sat"] .sg-ship:hover .sg-fx, .space-gap[data-kind="sat"] .sg-ship.signal .sg-fx, .space-gap[data-kind="sat"] .sg-ship.seeking .sg-fx { animation: ring 1s ease-out infinite; }
@keyframes ring { 0% { transform: scale(.3); opacity: .9; } 100% { transform: scale(3.4); opacity: 0; } }

/* ---------- cuenta regresiva ---------- */
.process { padding-top: 60px; padding-bottom: 120px; }
.countdown { list-style: none; margin: 64px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.countdown li { position: relative; padding-top: 26px; }
.countdown li::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--linea); }
.countdown li::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--limon); transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease); transition-delay: calc(var(--i) * 220ms); }
.countdown.in li::after { transform: scaleX(1); }
.tminus { display: block; font: 700 clamp(48px, 6vw, 84px)/1 var(--mono); letter-spacing: -0.04em; color: transparent; -webkit-text-stroke: 1.5px var(--lila); margin-bottom: 18px; }
.countdown li:last-child .tminus { color: var(--limon); -webkit-text-stroke: 0; }
.countdown h3 { font-size: 24px; letter-spacing: -0.02em; margin-bottom: 8px; }
.countdown p { margin: 0; color: var(--gris); font-size: 16px; }

/* ---------- preguntas ---------- */
.faq { padding-top: 110px; padding-bottom: 110px; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 40px; border-top: 1px solid var(--linea); }
.faq-head { position: sticky; top: 110px; align-self: start; }
.faq-list details { border-bottom: 1px solid var(--linea); }
.faq-list details:first-child { border-top: 1px solid var(--linea); }
.faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 24px 0; font-size: clamp(19px, 1.8vw, 23px); font-weight: 500; letter-spacing: -0.01em; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; width: 14px; height: 14px; background: var(--lila); border-radius: 3px; flex: none; transition: transform .35s var(--ease), background .35s; }
.faq-list details[open] summary::after { transform: rotate(45deg); background: var(--limon); }
@media (hover: hover) { .faq-list summary:hover { color: var(--limon); } }
.faq-list details[open] p { animation: faq-in .4s var(--ease); }
@keyframes faq-in { from { opacity: 0; transform: translateY(-6px); } }
.faq-list p { margin: 0 0 26px; color: var(--gris); font-size: 18px; max-width: 58ch; }

/* ---------- contacto ---------- */
.contact { padding-top: 120px; padding-bottom: 130px; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; align-items: start; border-top: 1px solid var(--linea); }
/* título grande, escalado al ancho de su columna; en español se parte a propósito en «¿Despeg / amos?» */
.contact-head { container-type: inline-size; }
.contact h2 { font-size: clamp(52px, 24cqi, 128px); line-height: .9; overflow-wrap: normal; }
.contact-head .lead { margin-top: 32px; }
.contact-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; gap: 18px; background: var(--panel); border: 1px solid var(--linea); border-radius: 28px; padding: 28px; }
.field { display: flex; flex-direction: column; gap: 8px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field.full, .form-foot.full { grid-column: 1 / -1; }
.field label, .field legend { font-weight: 500; font-size: 15px; padding: 0; }
.field .opt { font-weight: 400; color: var(--gris); }
.field legend { margin-bottom: 12px; } /* el legend no toma el gap del campo */
.field input, .field textarea { font: 400 17px/1.4 var(--sans); color: var(--papel); background: var(--vacio); border: 1px solid var(--linea); border-radius: 14px; padding: 13px 15px; }
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--limon); box-shadow: 0 0 0 4px rgba(255, 200, 61, .15); }
.field [aria-invalid="true"] { border-color: #FF7A7A; }
.err { margin: 0; font-size: 14px; color: #FF9B9B; }
.toggles { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.toggles label { cursor: pointer; }
.toggles input { position: absolute; opacity: 0; }
.toggles span { display: inline-block; border: 1px solid var(--linea); border-radius: 999px; padding: 8px 14px; font-weight: 500; font-size: 15px; transition: background .2s, color .2s, border-color .2s; }
.toggles label:hover span { border-color: var(--lila); }
.toggles input:checked + span { background: var(--limon); color: var(--noche); border-color: var(--limon); }
.toggles input:focus-visible + span { outline: 3px solid var(--limon); outline-offset: 2px; }
.form-foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 6px; }
.form-note { margin: 0; color: var(--limon); font-weight: 500; }
.form-note.is-error { color: #FF9A9A; }
.form-note a { color: inherit; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; } /* campo trampa para robots */

/* ---------- cohete ---------- */
.launchpad { display: flex; align-items: flex-end; gap: 18px; margin-top: 44px; }
.rocket-wrap { position: relative; width: 120px; display: flex; flex-direction: column; align-items: center; }
.rocket { background: none; border: 0; padding: 0 0 2px; cursor: pointer; border-radius: 10px; }
.rocket svg { display: block; width: 72px; height: auto; overflow: visible; }
.rocket svg rect { transform-box: fill-box; transform-origin: center; }
.rocket-body { display: block; animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-6px); } }
.rocket .flames { transform-box: fill-box; transform-origin: 50% 0; transition: transform .25s var(--ease); }
.rocket .flames rect { animation: flicker .16s steps(2) infinite; }
.rocket .flames rect:nth-child(even) { animation-delay: .08s; }
@keyframes flicker { 50% { opacity: .45; } }
.rocket:hover .rocket-body, .rocket:focus-visible .rocket-body { animation: shake .1s linear infinite; }
.rocket:hover .flames, .rocket:focus-visible .flames { transform: scale(1.25, 2); }
@keyframes shake { 0% { transform: translate(-1.5px, 0); } 50% { transform: translate(1.5px, -1px); } 100% { transform: translate(-1px, 1px); } }
.rocket.flying .rocket-body { animation: none; }
.pad { width: 120px; height: 10px; border-radius: 3px; background: repeating-linear-gradient(90deg, var(--limon) 0 12px, var(--noche) 12px 20px); opacity: .9; }
.rocket-hint { margin: 0 0 4px; font-size: 13px; color: var(--lila); }

/* ---------- astronauta ---------- */
.missions { position: relative; }
.astro { position: absolute; right: var(--pad); top: 76px; width: 84px; z-index: 1; cursor: pointer; animation: drift 10s ease-in-out infinite; }
.astro svg { display: block; width: 100%; height: auto; overflow: visible; }
.astro .arm-up { opacity: 0; }
.astro:hover .arm-up { animation: wave-a .5s steps(1) infinite; }
.astro:hover .arm-r { animation: wave-b .5s steps(1) infinite; }
@keyframes wave-a { 0% { opacity: 1; } 50% { opacity: 0; } }
@keyframes wave-b { 0% { opacity: 0; } 50% { opacity: 1; } }
.astro.waving .arm-up { animation: wave-a .5s steps(1) infinite; }
.astro.waving .arm-r { animation: wave-b .5s steps(1) infinite; }
/* en pantallas anchas flota en el margen derecho, pegado al texto del encabezado de la sección */
.astro.side { right: calc(var(--pad) - 120px); top: 190px; }
.astro.side .astro-say { right: auto; left: 50%; top: auto; bottom: 100%; margin: 0 0 10px; transform: translate(-50%, 6px) scale(.9); }
.astro.side .astro-say::after { right: auto; left: calc(50% - 4px); top: auto; bottom: -4px; }
.astro.side .astro-say.show { transform: translate(-50%, 0); }
.astro-say { position: absolute; right: 100%; top: 18px; margin-right: 6px; white-space: nowrap; background: var(--papel); color: var(--noche); font: 700 12px var(--mono); padding: 6px 9px; border-radius: 8px; opacity: 0; transform: translateY(6px) scale(.9); transition: opacity .25s, transform .25s var(--ease); pointer-events: none; }
.astro-say::after { content: ""; position: absolute; right: -4px; top: 12px; width: 9px; height: 9px; background: var(--papel); transform: rotate(45deg); border-radius: 1px; }
.astro-say.show { opacity: 1; transform: none; }
.astro .glint { animation: glint 3s steps(1) infinite; }
@keyframes glint { 85% { opacity: 1; } 90% { opacity: .2; } }
@keyframes drift {
  0%, 100% { transform: translate(0, 0) rotate(-8deg); }
  25% { transform: translate(-16px, 12px) rotate(4deg); }
  50% { transform: translate(-6px, 24px) rotate(10deg); }
  75% { transform: translate(10px, 9px) rotate(-3deg); }
}

/* ---------- footer ---------- */
.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding: 30px var(--pad); border-top: 1px solid var(--linea); color: var(--gris); font-size: 15px; }
.foot p { margin: 0; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--limon); }

/* ---------- efectos ---------- */
#fx { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 60; }
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav > a:not(.btn) { display: none; }
  .missions-head { grid-template-columns: minmax(0, 1fr); }
  .missions-sub { margin: 16px 0 0; max-width: 44ch; }
  .countdown { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
}
@media (max-width: 860px) {
  .ai-lab, .faq, .contact, .promo-grid, .promo-includes { grid-template-columns: minmax(0, 1fr); }
  .promo-up { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .promo-up .checks { grid-template-columns: minmax(0, 1fr); }
  .up-cta { justify-self: start; }
  .ticket { position: static; }
  .promo-copy .ticket { margin-top: 32px; }
  /* IA: la pantalla va arriba y queda fija mientras se tocan las tareas, así la respuesta siempre se ve */
  .ai-screen { order: -1; position: sticky; top: 76px; z-index: 3; align-self: start; min-height: 0; box-shadow: 0 18px 36px -14px rgba(0, 0, 0, .75); }
  .ai-screen .screen-body { min-height: 120px; max-height: 168px; }
  .fine-box { margin-top: 16px; padding-top: 4px; border-top: 1px solid var(--linea); }
  .fine-box > summary { display: inline-flex; align-items: center; gap: 8px; padding: 10px 0 0; font-size: 12px; color: var(--lila); cursor: pointer; list-style: none; }
  .fine-box > summary::-webkit-details-marker { display: none; }
  .fine-box > summary::after { content: "+"; display: grid; place-items: center; width: 16px; height: 16px; border: 1px solid var(--linea); border-radius: 4px; color: var(--limon); font-size: 12px; transition: transform .25s; }
  .fine-box[open] > summary::after { transform: rotate(45deg); }
  .fine-box .fine { margin-top: 10px; font-size: 12px; }
  .faq-head { position: static; }
  .hero { flex-direction: column; justify-content: flex-start; align-items: stretch; padding-top: calc(var(--planet-end, 38vh) + 18px); padding-bottom: 116px; }
  .hero-copy .eyebrow { font-size: 12px; margin-bottom: 14px; }
  .hint { right: auto; left: var(--pad); bottom: 78px; }
  .hero-pass { position: relative; order: -1; align-self: flex-start; inset: auto; margin-bottom: 20px; }
  .hp-body { padding: 10px 14px 10px 12px; }
  .hp-title { font-size: 17px; }
  .hp-sub { display: none; }
}
@media (max-width: 860px) {
  /* en celular la lista se vuelve una fila de opciones que se desliza */
  .console { grid-template-columns: minmax(0, 1fr); gap: 18px; margin-top: 36px; }
  .m-list { flex-direction: row; overflow-x: auto; gap: 8px; border: 0; padding-bottom: 6px; scrollbar-width: none; margin: 0 calc(var(--pad) * -1); padding-left: var(--pad); padding-right: var(--pad); }
  .m-list::-webkit-scrollbar { display: none; }
  .m-item { flex: none; width: auto; border: 1px solid var(--linea); border-radius: 999px; padding: 10px 16px; font-size: 16px; letter-spacing: -0.01em; gap: 8px; align-items: center; }
  .m-item .code, .m-item::before { display: none; }
  .m-item[aria-selected="true"] { padding-left: 16px; background: var(--limon); color: var(--noche); border-color: var(--limon); }
  .m-panel { position: relative; top: 0; min-height: 0; padding: 24px; touch-action: pan-y; }
  .m-list { -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--pad), #000 calc(100% - 56px), transparent); mask-image: linear-gradient(90deg, transparent, #000 var(--pad), #000 calc(100% - 56px), transparent); }
  .m-list.at-end { -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--pad)); mask-image: linear-gradient(90deg, transparent, #000 var(--pad)); }
  .mp-body > .btn { margin-top: auto; } /* con el alto fijo, el botón queda siempre en el mismo lugar */
  .mp-body .tags { margin-bottom: 28px; }
  .m-dots { display: flex; justify-content: center; gap: 8px; margin-top: -2px; }
  .m-dots i { width: 8px; height: 8px; border-radius: 2px; background: rgba(162, 155, 254, .28); transition: background .25s, transform .25s; }
  .m-dots i.on { background: var(--limon); transform: scale(1.3); }
}
@media (max-width: 1080px) and (min-width: 861px) { .contact-form { grid-template-columns: minmax(0, 1fr); } } /* el formulario comparte fila con el título: un campo por línea */
@media (max-width: 420px) {
  /* encabezado angosto: logo un poco más chico para que entre el botón en un renglón */
  .brand .logo svg { width: 32px; height: auto; }
  .brand .logo .lw { margin-left: 8px !important; }
  .brand .logo .ln { font-size: 21px !important; }
  .brand .logo .ls { font-size: 6px !important; }
}
@media (max-width: 560px) {
  .contact-form { grid-template-columns: 1fr; padding: 20px; }
  .space-gap { height: 160px; }
  .space-gap[data-kind="ufo"] { height: 110px; } /* la nave queda más cerca de la promo */
  #promo-title { font-size: clamp(40px, 14.2vw, 60px); } /* más grande: «GRATIS.» queda solo en su línea */
  /* Contacto: «¿Despegamos?» en una sola línea, del ancho de la columna (en inglés pasa a dos) */
  .contact h2 { font-size: 14.5cqi; }
  .contact h2 br { display: none; }
  .contact-head .lead { margin-top: 20px; }
  .sg-ship, .space-gap[data-kind="sat"] .sg-ship { left: calc(50% - 42px); width: 84px; margin-top: -24px; }
  .astro { width: 56px; top: 26px; }
  /* cuenta regresiva como línea de tiempo: T-x a la izquierda, título y texto a la derecha */
  .countdown { grid-template-columns: minmax(0, 1fr); row-gap: 26px; margin-top: 40px; }
  .countdown li { display: grid; grid-template-columns: 70px minmax(0, 1fr); column-gap: 14px; padding-top: 18px; }
  .tminus { grid-row: span 2; font-size: 30px; margin: 2px 0 0; }
  .countdown h3 { font-size: 21px; margin-bottom: 4px; }
  .countdown p { grid-column: 2; font-size: 15px; }
  .nav { gap: 10px; }
  .nav-cta { padding: 11px 14px; font-size: 14px; }
  .lang { min-width: 40px; min-height: 40px; }
  .btn-big { width: 100%; }
  .missions { padding-top: 76px; padding-bottom: 72px; }
  .promo { padding-top: 72px; }
  .process { padding-bottom: 72px; }
  .faq { padding-top: 72px; padding-bottom: 72px; gap: 28px; }
  .faq-list summary { padding: 20px 0; font-size: 18px; }
  .faq-list p { font-size: 16px; margin-bottom: 22px; }
  .contact { padding-top: 72px; padding-bottom: 80px; }
  .ai-screen { min-height: 0; }
  .foot a { display: inline-block; padding: 10px 0; }
  .scroll-cue { padding: 10px 0; }
  .hero h1 { font-size: clamp(38px, 11vw, 46px); }
  .hero-sub { margin: 16px 0 24px; }
  .hero-pass { margin-bottom: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .marquee-track { animation: none; }
  .reveal { opacity: 1; transform: none; }
}
