@font-face {
  font-family: "Geist";
  src: url("/fuentes/geist-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist";
  src: url("/fuentes/geist-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: dark;
  /* Grafito azulado del panel de Trade Stage (apps/web/src/styles/tokens.css, .panel-theme):
     el sitio y el panel comparten identidad. */
  --fondo: #0e1117;
  --superficie: #151922;
  --superficie-2: #1c212c;
  --linea: #222835;
  --linea-fuerte: #353d4e;
  --texto: #eceef3;
  --texto-2: #a7aebb;
  --tenue: #8a92a3;
  /* Azul Novaworks: solo acción. */
  --acento: #2f62e6;
  --acento-hover: #4a78f0;
  /* Ámbar: la luz del farol y de la cerveza del juego. Solo marca lo que el juego registra (insights). */
  --ambar: #e3a64a;
  --mono: "Cascadia Mono", "Cascadia Code", Consolas, ui-monospace, monospace;
  --curva: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--fondo); color: var(--texto);
  font-family: "Geist", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 1.0625rem; line-height: 1.6; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.025em; text-wrap: balance; }
p { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--texto); outline-offset: 3px; border-radius: 4px; }

.ancho { width: min(1280px, 100% - 3rem); margin-inline: auto; }
.visualmente-oculto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.saltar { position: absolute; left: 1rem; top: -4rem; z-index: 20; background: var(--texto); color: var(--fondo); padding: .5rem 1rem; border-radius: 6px; }
.saltar:focus { top: 1rem; }

/* Barra */
.barra { position: sticky; top: 0; z-index: 10; background: oklch(0.17 0.012 265 / .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .3s var(--curva); }
.barra.es-solida { border-color: var(--linea); }
.barra__fila { display: flex; align-items: center; gap: 2.5rem; min-height: 68px; }
.barra__logo { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; }
.barra__logo img { width: 66px; }
.barra__by { font-family: var(--mono); font-size: .75rem; color: var(--tenue); padding-left: .7rem; border-left: 1px solid var(--linea-fuerte); line-height: 1.2; }
.barra__nav { display: flex; gap: 1.75rem; font-size: .9375rem; color: var(--texto-2); }
.barra__nav a { text-decoration: none; transition: color .2s; }
.barra__nav a:hover { color: var(--texto); }
.enlace-ingresar {
  margin-left: auto; display: inline-flex; align-items: center; gap: .4rem; min-height: 44px;
  font-size: .9375rem; font-weight: 550; text-decoration: none;
}
.enlace-ingresar span { transition: transform .3s var(--curva); }
.enlace-ingresar:hover span { transform: translateX(3px); }

/* Botones */
.boton {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .75rem 1.25rem;
  border-radius: 8px; font-weight: 550; font-size: 1rem; text-decoration: none; line-height: 1.2;
  transition: background-color .25s var(--curva), border-color .25s var(--curva), transform .15s var(--curva);
}
.boton:active { transform: translateY(1px) scale(.985); }
.boton--primario { background: var(--acento); color: #fff; }
.boton--primario:hover { background: var(--acento-hover); }
.boton--secundario { border: 1px solid var(--linea-fuerte); color: var(--texto); }
.boton--secundario:hover { border-color: var(--tenue); background: var(--superficie); }
.acciones { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

/* Portada */
.portada {
  display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: clamp(2.5rem, 5vw, 5rem); align-items: center;
  padding-block: clamp(2.5rem, 6vw, 5rem) clamp(2rem, 4vw, 3rem);
}
.sobretitulo { margin: 0 0 1.25rem; font-family: var(--mono); font-size: .8125rem; color: var(--tenue); }
.portada h1 { font-size: clamp(2.25rem, 4.2vw, 3.5rem); line-height: 1.05; letter-spacing: -0.035em; max-width: 14ch; }
.portada__bajada { color: var(--texto-2); font-size: 1.1875rem; max-width: 44ch; margin: 1.5rem 0 0; }
.portada__dato { margin: 2.5rem 0 0; padding-top: 1.25rem; border-top: 1px solid var(--linea); color: var(--tenue); font-size: .9375rem; max-width: 44ch; }

/* La pantalla del kiosco: foto real del juego con un marco fino */
.pantalla { margin: 0; }
.pantalla__marco { position: relative; padding: 8px; border-radius: 18px; background: var(--superficie); border: 1px solid var(--linea-fuerte); box-shadow: 0 30px 60px -30px oklch(0.05 0.02 265 / .8); }
.pantalla__img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 11px; }
.pantalla__capa { position: absolute; inset: 8px; border-radius: 11px; overflow: hidden; pointer-events: none; container-type: inline-size; }
.pie-foto { margin-top: .75rem; font-size: .8125rem; color: var(--tenue); }

/* Consigna del juego, como se ve en el kiosco */
.consigna {
  position: absolute; left: 3.2%; top: 6%; display: grid; gap: .15rem;
  padding: .55rem .8rem; border-radius: 8px; background: oklch(0.18 0.02 150 / .72);
  color: #fff; font-size: clamp(.75rem, 1.9cqi, 1rem); font-weight: 550; line-height: 1.25;
}
.consigna small { font-size: .72em; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ambar); }

/* Toque sobre la guitarra */
.toque { position: absolute; left: 26.5%; top: 62%; width: 5.5%; aspect-ratio: 1; border-radius: 50%; border: 2px solid #fff; transform: translate(-50%, -50%); }
.toque::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid #fff; animation: onda 2.4s var(--curva) infinite; }
@keyframes onda { from { transform: scale(1); opacity: .9; } to { transform: scale(2.4); opacity: 0; } }

/* Insights registrados (ilustrativos) */
.insight {
  position: absolute; display: inline-flex; align-items: center; gap: .5rem; flex-wrap: wrap;
  background: oklch(0.16 0.012 265 / .9); color: var(--texto);
  font-size: clamp(.6875rem, 1.6cqi, .8125rem); padding: .4rem .65rem; border-radius: 6px;
  border: 1px solid oklch(1 0 0 / .08); max-width: 62%;
}
.insight i { width: 7px; height: 7px; border-radius: 50%; background: var(--ambar); flex: none; }
.insight b { font-weight: 600; color: var(--ambar); }
.insight--a { right: 3.2%; top: 30%; }
.insight--b { right: 3.2%; top: 44%; }

/* Secciones */
.seccion { padding-block: clamp(4.5rem, 9vw, 8rem); }
.seccion--banda { background: var(--superficie); border-block: 1px solid var(--linea); }
.seccion--linea { border-top: 1px solid var(--linea); }
.seccion h2 { font-size: clamp(1.875rem, 3.4vw, 2.75rem); line-height: 1.08; letter-spacing: -0.03em; }
.seccion__cabeza { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem 4rem; align-items: end; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.seccion__cabeza h2 { max-width: 18ch; }
.seccion__cabeza p { margin: 0; color: var(--texto-2); max-width: 46ch; }

/* Pasos: tira de escenas, escalonada */
.pasos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; counter-reset: paso; }
.pasos li { counter-increment: paso; }
.pasos li:nth-child(even) { margin-top: 3rem; }
.pasos img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 10px; border: 1px solid var(--linea); }
.pasos li:nth-child(1) img { object-position: 30% 50%; }
.pasos li:nth-child(3) img { object-position: 80% 50%; }
.pasos li:nth-child(4) img { object-position: 52% 50%; }
.pasos h3 { font-size: 1.1875rem; margin-top: 1.25rem; }
.pasos h3::before { content: "0" counter(paso); display: block; font-family: var(--mono); font-size: .75rem; font-weight: 400; color: var(--tenue); letter-spacing: 0; margin-bottom: .35rem; }
.pasos p { margin: .4rem 0 0; color: var(--texto-2); font-size: 1rem; }

/* Qué se mide */
.mide { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.mide__texto > p { color: var(--texto-2); margin: 1.25rem 0 0; max-width: 46ch; }
.decisiones { width: 100%; margin-top: 2.25rem; border-collapse: collapse; font-size: .9688rem; }
.decisiones th { text-align: left; font-family: var(--mono); font-size: .75rem; font-weight: 400; color: var(--tenue); padding: 0 1rem .6rem 0; border-bottom: 1px solid var(--linea-fuerte); }
.decisiones td { vertical-align: top; padding: 1rem 1.25rem 1rem 0; border-bottom: 1px solid var(--linea); color: var(--texto-2); }
.decisiones td:first-child { width: 58%; }
.decisiones td:last-child { color: var(--texto); padding-right: 0; }
.decisiones b { color: var(--texto); font-weight: 600; }

.farol { margin: 0; position: relative; }
.farol img { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; object-position: 50% 50%; border-radius: 14px; }
.farol__panel {
  position: absolute; left: 1rem; right: 1rem; bottom: 1rem; padding: 1rem 1.1rem 1.1rem;
  background: oklch(0.15 0.012 265 / .9); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid oklch(1 0 0 / .08); border-radius: 10px;
}
.farol__titulo { display: flex; justify-content: space-between; gap: 1rem; font-size: .875rem; font-weight: 600; }
.farol__titulo em { font-style: normal; font-family: var(--mono); font-size: .75rem; font-weight: 400; color: var(--tenue); }
.farol__barras { list-style: none; margin: .75rem 0 0; padding: 0; display: grid; gap: .5rem; }
.farol__barras li { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr) 2.75rem; gap: .75rem; align-items: center; font-size: .8125rem; color: var(--texto-2); }
.farol__barras b { text-align: right; font-weight: 600; color: var(--texto); font-variant-numeric: tabular-nums; }
.farol__pista { height: 6px; border-radius: 3px; background: oklch(1 0 0 / .08); overflow: hidden; }
.farol__pista span { display: block; height: 100%; width: calc(var(--v) / .36 * 100%); background: var(--c); border-radius: 3px; transform-origin: left; }

/* Plataforma */
.capturas { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.captura { margin: 0; }
.captura img { width: 100%; border-radius: 10px; border: 1px solid var(--linea-fuerte); }
.captura--chica { margin-top: 4.5rem; }
.captura figcaption { margin-top: .75rem; font-size: .8125rem; color: var(--tenue); }
.funciones { margin: clamp(3rem, 6vw, 4.5rem) 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 4rem; }
.funciones > div { padding-block: 1.5rem; border-top: 1px solid var(--linea-fuerte); }
.funciones > div:first-child { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 4rem; }
.funciones dt { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.02em; }
.funciones dd { margin: .4rem 0 0; color: var(--texto-2); max-width: 48ch; }
.funciones > div:first-child dd { margin: 0; }

/* Premio */
.premio { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.premio__visual { position: relative; padding-bottom: 3.5rem; }
.premio__resultado { width: 80%; border-radius: 12px; border: 1px solid var(--linea-fuerte); }
.premio__cupon { position: absolute; right: 0; bottom: 0; width: 25%; aspect-ratio: 520 / 820; object-fit: cover; object-position: top; border-radius: 16px; border: 6px solid var(--superficie-2); box-shadow: 0 24px 48px -16px oklch(0.05 0.02 265 / .85); }
.premio__texto > p { color: var(--texto-2); margin: 1.25rem 0 0; max-width: 40ch; }
.canje { list-style: none; margin: 2rem 0 0; padding: 0; counter-reset: canje; border-top: 1px solid var(--linea); }
.canje li { counter-increment: canje; position: relative; padding: 1rem 0 1rem 2.25rem; border-bottom: 1px solid var(--linea); color: var(--texto-2); }
.canje li::before { content: counter(canje); position: absolute; left: 0; top: 1.2rem; font-family: var(--mono); font-size: .8125rem; color: var(--tenue); }
.canje b { color: var(--texto); font-weight: 600; }

/* Cierre */
.cierre { background: var(--superficie); border-top: 1px solid var(--linea); padding-block: clamp(4.5rem, 9vw, 7.5rem); }
.cierre__fila { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem 4rem; align-items: end; }
.cierre h2 { font-size: clamp(2.25rem, 4.5vw, 3.5rem); line-height: 1.04; letter-spacing: -0.035em; max-width: 14ch; }
.cierre p { margin: 0; color: var(--texto-2); max-width: 42ch; }

/* Pie */
.pie { font-size: .875rem; color: var(--tenue); border-top: 1px solid var(--linea); }
.pie__fila { display: flex; justify-content: space-between; gap: .75rem 2rem; flex-wrap: wrap; padding-block: 1.75rem; }
.pie a { color: var(--texto-2); }

/* Páginas simples (404, privacidad) */
.simple { padding-block: clamp(4rem, 10vw, 8rem); max-width: 720px; }
.simple h1 { font-size: clamp(2rem, 4vw, 2.75rem); margin: 0 0 1rem; }
.simple h2 { font-size: 1.25rem; margin: 2.25rem 0 .5rem; }
.simple p { color: var(--texto-2); margin: 0 0 1rem; }

/* ---------- Movimiento (solo con JS) ---------- */
.js .entra { opacity: 0; transform: translateY(14px); animation: entrar .9s var(--curva) forwards; animation-delay: calc(var(--i, 0) * 90ms + 60ms); }
@keyframes entrar { to { opacity: 1; transform: none; } }

.js .pantalla__marco { opacity: 0; transform: translateY(18px) scale(.985); animation: entrar 1.1s var(--curva) .2s forwards; }
.js .consigna, .js .insight, .js .toque { opacity: 0; transform: translateY(6px); transition: opacity .6s var(--curva), transform .6s var(--curva); }
.js .toque { transform: translate(-50%, -50%) scale(.6); }
.js .pantalla.lista .consigna, .js .pantalla.lista .insight, .js .pantalla.lista .toque { opacity: 1; transform: none; }
.js .pantalla.lista .toque { transform: translate(-50%, -50%); transition-delay: .7s; }
.js .pantalla.lista .insight--a { transition-delay: 1.4s; }
.js .pantalla.lista .insight--b { transition-delay: 2.1s; }

.js .revela { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--curva), transform .9s var(--curva); }
.js .revela.visible { opacity: 1; transform: none; }
.js .funciones .revela:nth-child(2), .js .captura--chica { transition-delay: 100ms; }
.js .funciones .revela:nth-child(3) { transition-delay: 180ms; }
.js .funciones .revela:nth-child(4) { transition-delay: 100ms; }
.js .funciones .revela:nth-child(5) { transition-delay: 180ms; }

.js .pasos li { opacity: 0; transform: translateY(14px); transition: opacity .8s var(--curva), transform .8s var(--curva); }
.js .pasos.visible li { opacity: 1; transform: none; }
.js .pasos.visible li:nth-child(2) { transition-delay: .12s; }
.js .pasos.visible li:nth-child(3) { transition-delay: .24s; }
.js .pasos.visible li:nth-child(4) { transition-delay: .36s; }

.js .farol__pista span { transform: scaleX(0); transition: transform 1.2s var(--curva); transition-delay: calc(var(--i) * 110ms + 300ms); }
.js .farol.visible .farol__pista span { transform: scaleX(1); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .barra__nav { display: none; }
}
@media (max-width: 1000px) {
  .portada, .seccion__cabeza, .mide, .premio, .cierre__fila { grid-template-columns: minmax(0, 1fr); }
  .pasos { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.5rem; }
  .pasos li:nth-child(even) { margin-top: 0; }
  .pasos img { aspect-ratio: 16 / 10; }
  .capturas { grid-template-columns: minmax(0, 1fr); }
  .captura--chica { margin-top: 0; width: 78%; margin-left: auto; }
  .premio__visual { order: 2; }
}
@media (max-width: 640px) {
  .ancho { width: min(1280px, 100% - 2.5rem); }
  .barra__by { display: none; }
  .portada h1 { font-size: 2.125rem; }
  .acciones .boton { width: 100%; }
  .pantalla__marco { padding: 5px; border-radius: 12px; }
  .pantalla__capa { inset: 5px; border-radius: 8px; }
  .pantalla__img { border-radius: 8px; }
  .insight { max-width: 70%; padding: .3rem .5rem; gap: .35rem; }
  .insight { flex-wrap: nowrap; white-space: nowrap; max-width: none; }
  .insight--a { top: auto; bottom: 6%; }
  .insight--b { display: none; }
  .consigna { padding: .4rem .55rem; }
  .pasos { grid-template-columns: minmax(0, 1fr); }
  .decisiones, .decisiones tbody, .decisiones tr, .decisiones td { display: block; width: auto; }
  .decisiones thead { display: none; }
  .decisiones tr { padding-block: 1rem; border-bottom: 1px solid var(--linea); }
  .decisiones td { border: 0; padding: 0; }
  .decisiones td:first-child { width: auto; }
  .decisiones td:last-child { margin-top: .35rem; padding-left: .9rem; border-left: 2px solid var(--ambar); }
  .farol img { aspect-ratio: 4 / 5; }
  .farol__panel { left: .6rem; right: .6rem; bottom: .6rem; padding: .85rem; }
  .farol__barras li { grid-template-columns: 5.5rem minmax(0, 1fr) 2.5rem; gap: .5rem; }
  .funciones { grid-template-columns: minmax(0, 1fr); }
  .funciones > div:first-child { display: block; }
  .funciones > div:first-child dd { margin-top: .4rem; }
  .captura--chica { width: 100%; }
  .premio__resultado { width: 76%; }
  .premio__cupon { width: 30%; }
  .pie__fila { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .entra, .js .revela, .js .pasos li, .js .pantalla__marco, .js .consigna, .js .insight { opacity: 1; transform: none; }
  .js .toque { opacity: 1; transform: translate(-50%, -50%); }
  .js .farol__pista span { transform: none; }
}
