@font-face { font-family: "Baloo"; font-weight: 600; font-display: swap; src: url("/vendor/baloo/baloo-2-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Baloo"; font-weight: 800; font-display: swap; src: url("/vendor/baloo/baloo-2-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 400; font-display: swap; src: url("/vendor/nunito/nunito-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 700; font-display: swap; src: url("/vendor/nunito/nunito-latin-700-normal.woff2") format("woff2"); }

:root {
  --fondo: #f7f3ec;
  --fondo-2: #efe8dc;
  --tinta: #1b2230;
  --suave: #5d6573;
  --menta: #3fd9b5;
  --menta-osc: #11906f;
  --coral: #ff6b4a;
  --sol: #ffc23a;
  --cielo: #3a8dde;
  --tarjeta: #ffffff;
  --borde: #e6dfd2;
  --sombra: 0 1px 2px rgba(27, 34, 48, 0.05), 0 12px 32px rgba(27, 34, 48, 0.08);
  --r: 28px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0; background: var(--fondo); color: var(--tinta);
  font: 17px/1.55 "Nunito", system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
h1, h2, h3, .marca { font-family: "Baloo", "Nunito", system-ui, sans-serif; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 0.98; margin: 0 0 18px; font-weight: 800; }
h1 em { font-style: normal; color: var(--menta-osc); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); line-height: 1.05; margin: 0 0 12px; font-weight: 800; }
p { margin: 0 0 14px; }
a { color: inherit; }
.antetitulo { font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.78rem; color: var(--menta-osc); margin-bottom: 8px; }
.entradilla { font-size: 1.15rem; color: var(--suave); max-width: 34em; }
.nota { color: var(--suave); font-size: 0.9rem; }

/* el lienzo 3D va encima de la página (sin eventos); los controles .ui van por encima de él */
.lienzo-3d { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 1; pointer-events: none; }
.ui, .nav { z-index: 3; }

/* ------------------------------------------------------------ navegación */
.nav {
  position: sticky; top: 0; display: flex; align-items: center; gap: 24px; padding: 12px clamp(16px, 4vw, 48px);
  background: rgba(247, 243, 236, 0.86); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(230, 223, 210, 0.7);
}
.marca { font-size: 1.9rem; font-weight: 800; text-decoration: none; line-height: 1; }
.marca span { color: var(--menta); }
.nav nav { display: flex; gap: 4px; flex: 1; flex-wrap: wrap; }
.nav nav a { text-decoration: none; font-weight: 700; padding: 8px 12px; border-radius: 999px; color: var(--suave); }
.nav nav a:hover { background: var(--fondo-2); color: var(--tinta); }
.sonido { font: inherit; font-weight: 700; border: 2px solid var(--tinta); background: transparent; border-radius: 999px; padding: 8px 16px; cursor: pointer; }
.sonido[aria-pressed="true"] { background: var(--tinta); color: #fff; }

/* ------------------------------------------------------------ botones */
.btn {
  display: inline-flex; align-items: center; gap: 8px; font: inherit; font-weight: 700; text-decoration: none;
  padding: 14px 24px; border-radius: 999px; border: 2px solid var(--tinta); background: transparent; color: var(--tinta); cursor: pointer;
  transition: transform 0.12s, background 0.15s, box-shadow 0.15s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(0.97); }
.btn.principal { background: var(--tinta); color: #fff; box-shadow: 0 8px 22px rgba(27, 34, 48, 0.22); }
.btn.mini { padding: 9px 16px; font-size: 0.92rem; background: rgba(255, 255, 255, 0.92); border-color: transparent; box-shadow: var(--sombra); }
.btn.mini[aria-pressed="true"] { background: var(--tinta); color: #fff; }
:focus-visible { outline: 3px solid var(--sol); outline-offset: 3px; }

/* ------------------------------------------------------------ vistas 3D */
.vista { position: relative; border-radius: var(--r); touch-action: pan-y; cursor: grab; user-select: none; }
.vista:active { cursor: grabbing; }
.vista-grande, .vista-ancha, .vista-conector {
  background: radial-gradient(120% 90% at 50% 30%, #ffffff 0%, #f6f1e8 55%, #ebe2d3 100%);
  box-shadow: inset 0 0 0 1px rgba(27, 34, 48, 0.04), var(--sombra);
}
.vista-grande { min-height: 520px; }
.vista-ancha { min-height: 480px; }
.chapa {
  position: absolute; left: 18px; top: 18px; max-width: min(420px, calc(100% - 36px)); background: rgba(255, 255, 255, 0.92);
  border-radius: 18px; padding: 12px 16px; box-shadow: var(--sombra); font-size: 0.95rem; pointer-events: none;
  transition: opacity 0.25s;
}
.chapa:empty { opacity: 0; }
.chapa b { display: block; font-family: "Baloo"; font-size: 1.15rem; line-height: 1.1; margin-bottom: 2px; }
.botonera { position: absolute; left: 18px; bottom: 18px; display: flex; gap: 10px; flex-wrap: wrap; }
.etiqueta { position: absolute; bottom: 18px; font-family: "Baloo"; font-weight: 800; font-size: 1.2rem; background: #fff; padding: 6px 16px; border-radius: 999px; box-shadow: var(--sombra); pointer-events: none; }
.etiqueta.izq { left: 30%; transform: translateX(-50%); }
.etiqueta.der { left: 70%; transform: translateX(-50%); }
.nocturna {
  position: absolute; inset: 0; border-radius: var(--r); z-index: 2; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.06) 0 2px, transparent 2px 4px), radial-gradient(ellipse at center, transparent 55%, rgba(8, 40, 14, 0.45));
  box-shadow: inset 0 0 0 3px rgba(93, 255, 154, 0.5);
}
.nocturna span { position: absolute; right: 18px; top: 18px; color: #5dff9a; font: 700 0.8rem/1 ui-monospace, monospace; letter-spacing: 0.12em; text-shadow: 0 0 6px #5dff9a; }

/* ------------------------------------------------------------ portada */
.portada {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 24px; align-items: center;
  min-height: calc(100vh - 66px); padding: 24px clamp(16px, 4vw, 48px) 48px; max-width: 1400px; margin: 0 auto;
}
.vista-portada { height: min(72vh, 680px); }
.acciones { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 30px; }
.cifras { list-style: none; display: flex; gap: 28px; padding: 0; margin: 0; color: var(--suave); flex-wrap: wrap; }
.cifras b { display: block; font-family: "Baloo"; font-size: 2rem; line-height: 1; color: var(--tinta); }

/* ------------------------------------------------------------ secciones */
.seccion { padding: clamp(56px, 9vw, 110px) clamp(16px, 4vw, 48px); max-width: 1400px; margin: 0 auto; }
.alterna { position: relative; }
.alterna::before { content: ""; position: absolute; inset: 0 calc(50% - 50vw); background: var(--fondo-2); z-index: -1; }
.cabecera { max-width: 720px; margin-bottom: 30px; }
.cabecera p:last-child { color: var(--suave); font-size: 1.08rem; }
.conector-sec { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.vista-conector { height: 460px; }
.rasgos { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.rasgos li { display: flex; gap: 14px; align-items: flex-start; background: var(--tarjeta); padding: 14px 18px; border-radius: 18px; box-shadow: var(--sombra); }
.rasgos b { display: block; }
.rasgos .ico { flex: none; width: 42px; height: 42px; border-radius: 12px; background: #dff8f1; color: var(--menta-osc); display: flex; align-items: center; justify-content: center; font-weight: 800; }

.banco { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 22px; align-items: start; }
.banco > .vista { position: sticky; top: 86px; height: min(640px, calc(100vh - 110px)); min-height: 0; }
.panel { background: var(--tarjeta); border-radius: var(--r); padding: 20px; box-shadow: var(--sombra); display: flex; flex-direction: column; gap: 14px; position: relative; z-index: 2; }
.grupo h3 { font-size: 1.05rem; margin: 0 0 8px; display: flex; justify-content: space-between; align-items: baseline; }
.grupo h3 small { font-family: "Nunito"; font-weight: 400; font-size: 0.82rem; color: var(--suave); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font: inherit; font-weight: 700; font-size: 0.92rem; padding: 9px 14px; border-radius: 14px; cursor: pointer;
  border: 2px solid var(--borde); background: var(--fondo); color: var(--tinta); transition: border-color 0.15s, background 0.15s, transform 0.1s;
}
.chip:hover { border-color: #cfc5b3; }
.chip:active { transform: scale(0.96); }
.chip[aria-pressed="true"] { border-color: var(--tinta); background: var(--tinta); color: #fff; }
.chip:disabled { opacity: 0.4; cursor: default; }
.muestra { width: 40px; height: 40px; padding: 0; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--borde); cursor: pointer; }
.muestra[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--tinta); }
.interruptor { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 700; cursor: pointer; }
.interruptor input { appearance: none; width: 50px; height: 30px; border-radius: 999px; background: var(--borde); position: relative; cursor: pointer; transition: background 0.2s; flex: none; }
.interruptor input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); transition: transform 0.2s; }
.interruptor input:checked { background: var(--menta-osc); }
.interruptor input:checked::after { transform: translateX(20px); }

.pasos-taller { margin: 0; padding-left: 22px; display: grid; gap: 10px; }
.pasos-taller li.hecho { color: var(--menta-osc); }
.pestanas { display: flex; gap: 8px; margin-bottom: 16px; }
.pestana { font: inherit; font-weight: 800; font-family: "Baloo"; font-size: 1.1rem; padding: 10px 22px; border-radius: 999px; border: 2px solid var(--borde); background: var(--tarjeta); cursor: pointer; }
.pestana[aria-selected="true"] { background: var(--tinta); color: #fff; border-color: var(--tinta); }
.energia { position: absolute; right: 18px; top: 18px; background: rgba(255, 255, 255, 0.92); border-radius: 18px; padding: 12px 16px; box-shadow: var(--sombra); display: grid; gap: 8px; width: 220px; }
.energia[hidden] { display: none; }
.energia div { display: grid; grid-template-columns: 48px 1fr; align-items: center; gap: 8px; font-weight: 700; font-size: 0.9rem; }
.energia i { height: 12px; border-radius: 6px; background: linear-gradient(90deg, var(--menta-osc) var(--v, 100%), var(--borde) var(--v, 100%)); }

/* mando */
.mando { background: var(--tinta); color: #fff; border-radius: var(--r); padding: 26px; display: flex; flex-direction: column; align-items: center; gap: 22px; position: relative; z-index: 2; }
.mando .nota { color: #aab3c2; text-align: center; }
.palanca { width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, #2c3546 0, #222a38 70%); box-shadow: inset 0 4px 14px rgba(0, 0, 0, 0.5), 0 0 0 6px #2c3546; position: relative; touch-action: none; cursor: grab; }
.pomo { position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #6ff0d0, var(--menta) 45%, var(--menta-osc)); box-shadow: 0 8px 18px rgba(0, 0, 0, 0.45); }
.mando-botones { display: flex; gap: 14px; }
.redondo { width: 72px; height: 72px; border-radius: 50%; border: 0; font: 800 0.95rem "Baloo", sans-serif; color: #fff; background: #2c3546; cursor: pointer; box-shadow: 0 4px 0 #11161f; }
.redondo:active { transform: translateY(3px); box-shadow: 0 1px 0 #11161f; }
.redondo[aria-pressed="true"] { background: var(--sol); }

.cierre { text-align: center; }
.cierre p { color: var(--suave); max-width: 36em; margin: 0 auto 24px; font-size: 1.1rem; }
.pie { text-align: center; padding: 30px; color: var(--suave); font-size: 0.9rem; }

@media (max-width: 980px) {
  .nav nav { display: none; }
  .portada, .conector-sec, .banco { grid-template-columns: 1fr; }
  .portada { min-height: auto; }
  .vista-portada { height: 60vh; order: -1; }
  .vista-grande { min-height: 420px; }
  .banco > .vista { position: relative; top: 0; height: 58vh; min-height: 360px; }
  .vista-ancha { min-height: 380px; }
  .vista-conector { height: 340px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .sonido { padding: 6px 12px; font-size: 0.9rem; }
  .palanca { width: 170px; height: 170px; }
  .etiqueta { font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ------------------------------------------------------------ vídeos */
.videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 22px; position: relative; z-index: 2; }
.video { margin: 0; background: var(--tarjeta); border-radius: 22px; overflow: hidden; box-shadow: var(--sombra); }
.video video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #efe8dc; object-fit: cover; }
.video figcaption { padding: 14px 18px 16px; color: var(--suave); font-size: 0.95rem; }
.video figcaption b { display: block; color: var(--tinta); font-family: "Baloo"; font-size: 1.15rem; }

/* ------------------------------------------------------------ modo cine (grabación de vídeos) */
body.cine { overflow: hidden; }
body.cine .nav, body.cine section, body.cine footer { visibility: hidden; }
body.cine .cine-vista { visibility: visible; position: fixed !important; inset: 0; width: 100vw; height: 100vh !important; border-radius: 0; z-index: 0; top: 0 !important; }
body.cine .cine-vista .botonera, body.cine .cine-vista .etiqueta { display: none; }
body.cine .cine-capa { position: fixed; inset: 0; z-index: 4; pointer-events: none; }
body.cine .cine-capa .chapa, body.cine .cine-vista .chapa { left: 56px; top: 48px; font-size: 1.35rem; max-width: 640px; padding: 20px 26px; border-radius: 24px; }
body.cine .cine-capa .chapa b, body.cine .cine-vista .chapa b { font-size: 1.9rem; }
body.cine .cine-capa .energia, body.cine .cine-vista .energia { right: 56px; top: 48px; transform: scale(1.4); transform-origin: top right; }
body.cine .cine-capa .nocturna span, body.cine .cine-vista .nocturna span { font-size: 1.2rem; right: 56px; top: 48px; }

/* ------------------------------------------------ grupos de vídeos */
.grupo-videos { display: flex; align-items: center; gap: 12px; font-size: 1.5rem; margin: 40px 0 4px; position: relative; z-index: 2; }
.grupo-videos span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--tinta); color: #fff; font-size: 1.1rem; }
.nota-grupo { color: var(--suave); max-width: 46em; margin: 0 0 18px; position: relative; z-index: 2; }
.videos:has(.destacado) { grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); }
@media (max-width: 560px) { .videos:has(.destacado) { grid-template-columns: 1fr; } }

/* ------------------------------------------------ coleccionables con código */
.cromos { display: grid; grid-template-columns: 1fr 1.15fr; gap: 28px; align-items: start; position: relative; z-index: 2; }
.cromos-fisico, .juego { background: var(--tarjeta); border-radius: var(--r); box-shadow: var(--sombra); padding: 24px; }
.formatos { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.formatos .pestana { font-size: 1rem; padding: 8px 18px; }
.objeto { display: grid; place-items: center; min-height: 380px; perspective: 1200px; }
.carta { position: relative; width: 230px; height: 320px; border: 0; padding: 0; background: none; cursor: pointer; transform-style: preserve-3d; transition: transform .7s cubic-bezier(.2,.8,.2,1), width .4s, height .4s, border-radius .4s; }
.carta.girada { transform: rotateY(180deg); }
.cara { position: absolute; inset: 0; border-radius: 18px; backface-visibility: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; overflow: hidden; }
.delante { background: radial-gradient(circle at 50% 38%, #ffe27a 0 22%, #ff9f3d 60%, #f0432f 100%); border: 8px solid #fff; box-shadow: 0 14px 30px rgba(27,34,48,.25); }
.delante canvas { width: 150px; height: 168px; image-rendering: pixelated; filter: drop-shadow(0 6px 0 rgba(0,0,0,.18)); }
.delante b { font-family: "Baloo"; font-size: 1.9rem; line-height: 1; color: #fff; text-shadow: 0 3px 0 rgba(120,30,10,.45); letter-spacing: .04em; }
.delante i { font-style: normal; font-size: .75rem; color: rgba(255,255,255,.9); font-weight: 700; }
.detras { transform: rotateY(180deg); background: repeating-linear-gradient(45deg, #1f2a44 0 14px, #26345a 14px 28px); border: 8px solid #fff; color: #fff; box-shadow: 0 14px 30px rgba(27,34,48,.25); }
.detras small { font-size: .8rem; opacity: .85; font-weight: 700; }
.rasca { position: relative; width: 180px; height: 56px; border-radius: 10px; background: #fff; display: grid; place-items: center; }
.rasca code { font: 800 1.2rem/1 ui-monospace, Consolas, monospace; color: var(--tinta); letter-spacing: .04em; }
.rasca canvas { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 10px; touch-action: none; cursor: crosshair; }
/* tazo: disco; figurita: peana con el personaje */
.objeto[data-formato="tazo"] .carta { width: 270px; height: 270px; }
.objeto[data-formato="tazo"] .cara { border-radius: 50%; }
.objeto[data-formato="tazo"] .delante canvas { width: 120px; height: 134px; }
.objeto[data-formato="figura"] .delante { background: radial-gradient(ellipse 46% 7% at 50% 69%, #2b2f36 0 96%, #fff0 100%); border: 0; box-shadow: none; justify-content: flex-start; padding-top: 18px; }
.objeto[data-formato="figura"] .delante b { color: var(--tinta); text-shadow: none; font-size: 1.3rem; }
.objeto[data-formato="figura"] .delante i { color: var(--suave); }
.objeto[data-formato="figura"] .delante canvas { margin-bottom: 30px; width: 180px; height: 202px; filter: drop-shadow(0 10px 6px rgba(0,0,0,.25)); }

.pantalla-juego { background: #141824; border-radius: 16px; padding: 18px; color: #e9ecf5; font-family: ui-monospace, Consolas, monospace; min-height: 380px; box-shadow: inset 0 0 0 4px #2a3146; }
.pj-cabecera { font-weight: 800; letter-spacing: .12em; color: #ffd23f; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; border-bottom: 2px dashed #2a3146; padding-bottom: 10px; margin-bottom: 14px; }
.pj-cabecera span { color: #8b93a8; letter-spacing: .04em; font-weight: 600; }
.pj-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pj-form label { color: #8b93a8; font-size: .85rem; }
.pj-form input { flex: 1; min-width: 150px; font: 800 1.1rem ui-monospace, Consolas, monospace; text-transform: uppercase; background: #0b0e16; color: #fff; border: 2px solid #2a3146; border-radius: 10px; padding: 10px 12px; }
.pj-form input:focus { outline: none; border-color: #ffd23f; }
.pj-form button { font: 800 1rem ui-monospace, Consolas, monospace; background: #ffd23f; color: #141824; border: 0; border-radius: 10px; padding: 12px 18px; cursor: pointer; box-shadow: 0 4px 0 #b8901a; }
.pj-form button:active { transform: translateY(3px); box-shadow: 0 1px 0 #b8901a; }
.pj-msg { min-height: 1.6em; margin: 12px 0; font-weight: 700; }
.pj-msg.ok { color: #5dff9a; } .pj-msg.mal { color: #ff6b6b; }
.pj-plantel { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.pj-plantel .ranura { aspect-ratio: 1; background: #0b0e16; border: 2px solid #2a3146; border-radius: 10px; display: grid; place-items: center; position: relative; overflow: hidden; }
.pj-plantel .ranura canvas { width: 78%; image-rendering: pixelated; }
.pj-plantel .ranura.bloqueada canvas { filter: brightness(0) opacity(.35); }
.pj-plantel .ranura span { position: absolute; bottom: 3px; font-size: .62rem; color: #8b93a8; letter-spacing: .06em; }
.pj-plantel .ranura.nueva { border-color: #ffd23f; animation: brillo 1.2s ease-out 2; }
@keyframes brillo { 0% { box-shadow: 0 0 0 0 #ffd23f; } 100% { box-shadow: 0 0 0 16px #ffd23f00; } }
.datos-cromos { list-style: none; padding: 0; margin: 26px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; position: relative; z-index: 2; }
.datos-cromos li { background: var(--tarjeta); border-radius: 18px; padding: 16px 18px; color: var(--suave); box-shadow: var(--sombra); }
.datos-cromos b { display: block; color: var(--tinta); font-family: "Baloo"; font-size: 1.1rem; }
@media (max-width: 980px) { .cromos, .datos-cromos { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ rótulos de los anuncios */
.rotulos { position: fixed; inset: 0; z-index: 5; pointer-events: none; }
.rotulo { position: absolute; left: 64px; bottom: 64px; opacity: 0; max-width: 70vw; color: #fff; font: 800 2.4rem/1.1 "Baloo", sans-serif; text-shadow: 0 3px 0 rgba(0,0,0,.35), 0 8px 30px rgba(0,0,0,.45); }
.rotulo span { display: block; font: 700 1.35rem/1.3 "Nunito", sans-serif; margin-top: 6px; }
.rotulo.grande { font-size: 4.2rem; left: 64px; bottom: 56px; }
.rotulo.final { left: 50%; top: 9%; bottom: auto; translate: -50% 0; text-align: center; background: rgba(20,14,10,.55); padding: 28px 44px; border-radius: 28px; backdrop-filter: blur(6px); max-width: 80vw; }
.rotulo.final b { display: block; font-size: 3.6rem; }
body.cine-codigos .rotulo { color: var(--tinta); text-shadow: none; left: 50%; bottom: 40px; translate: -50% 0; text-align: center; background: #fff; padding: 14px 28px; border-radius: 22px; box-shadow: var(--sombra); font-size: 2rem; }
body.cine-codigos .rotulo.final { top: 50%; bottom: auto; translate: -50% -50%; background: #fff; font-size: 2.6rem; padding: 40px 64px; box-shadow: 0 0 0 100vmax rgba(247,243,236,.88), var(--sombra); }
body.cine-codigos .rotulo.final b { font-size: 3.4rem; }
body.cine-codigos .rotulo span { color: var(--suave); font-size: 1.15rem; }
body.cine-codigos #cromos.cine-vista { max-width: none; margin: 0; background: var(--fondo); padding: 48px 80px 120px; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
body.cine-codigos #cromos .cabecera, body.cine-codigos #cromos .nota, body.cine-codigos #cromos .datos-cromos, body.cine-codigos #cromos .formatos { display: none; }
body.cine-codigos #cromos .cromos { width: 1240px; max-width: none; margin: 0 auto; transform: scale(1.32) translateY(-30px); transform-origin: center; }
.revelacion { position: fixed; left: 50%; top: 46%; z-index: 6; opacity: 0; display: flex; flex-direction: column; align-items: center; background: #141824; color: #ffd23f; padding: 34px 60px 30px; border-radius: 30px; box-shadow: 0 30px 80px rgba(0,0,0,.4), inset 0 0 0 6px #2a3146; font-family: ui-monospace, Consolas, monospace; pointer-events: none; }
.revelacion canvas { width: 256px; height: 288px; image-rendering: pixelated; }
.revelacion b { font-size: 3.4rem; letter-spacing: .12em; }
.revelacion span { color: #8b93a8; font-size: 1.2rem; letter-spacing: .1em; text-transform: uppercase; }

/* ------------------------------------------------ cartas: mesa + app (sustituye al cromo único) */
.sub { font-size: 1.25rem; margin: 0 0 14px; }
.mesa { display: flex; justify-content: center; align-items: center; gap: 14px; min-height: 360px; perspective: 1400px; flex-wrap: wrap; }
.mesa .carta { width: 190px; height: 276px; }
.mesa .carta:nth-child(1) { rotate: -5deg; } .mesa .carta:nth-child(3) { rotate: 5deg; translate: 0 6px; }
.mesa .delante { background: radial-gradient(circle at 50% 42%, var(--f1) 0 20%, var(--f2) 62%, var(--f3) 100%); justify-content: space-between; padding: 10px 10px 12px; border-width: 7px; }
.c-cab { width: 100%; display: flex; justify-content: space-between; align-items: baseline; gap: 6px; }
.c-cab b { font-family: "Baloo"; font-size: 1.15rem; color: #fff; text-shadow: 0 2px 0 rgba(0,0,0,.3); line-height: 1; white-space: nowrap; }
.c-cab i { font-style: normal; font-size: .62rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; background: rgba(0,0,0,.25); color: #fff; padding: 2px 7px; border-radius: 99px; }
.mesa .delante canvas { width: 128px; height: 144px; }
.stats { display: flex; gap: 6px; width: 100%; }
.stats span { flex: 1; background: rgba(255,255,255,.92); border-radius: 10px; padding: 4px 0 3px; font: 800 .62rem/1 "Nunito", sans-serif; color: var(--suave); display: flex; flex-direction: column; align-items: center; gap: 2px; transition: background .3s, transform .3s; }
.stats b { font: 800 1.25rem/1 "Baloo", sans-serif; color: var(--tinta); }
.stats span.destaca { background: #ffd23f; transform: scale(1.12); }
.mesa .detras small { font-size: .72rem; }
.mesa .rasca { width: 160px; height: 50px; }
.mesa .rasca code { font-size: 1.05rem; }
.carta.gana { box-shadow: 0 0 0 6px #ffd23f; border-radius: 18px; }
.movil { width: 340px; max-width: 100%; margin: 0 auto; background: #0b0e16; border-radius: 44px; padding: 14px; box-shadow: 0 24px 50px rgba(27,34,48,.3), inset 0 0 0 3px #2a3146; position: relative; }
.movil::before { content: ""; position: absolute; top: 20px; left: 50%; translate: -50% 0; width: 90px; height: 22px; border-radius: 99px; background: #0b0e16; z-index: 2; }
.movil .pantalla-juego { border-radius: 32px; min-height: 560px; padding: 46px 16px 18px; box-shadow: none; }
.movil .pj-cabecera { justify-content: center; }
.movil .pj-form input { min-width: 0; font-size: 1rem; }
.pj-titulo { color: #8b93a8; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; margin: 12px 0 8px; }
.pj-plantel.objetos .ranura canvas { width: 70%; }
@media (max-width: 980px) { .mesa .carta { width: 150px; height: 220px; } .mesa .delante canvas { width: 96px; height: 108px; } }
.cromos { grid-template-columns: 1.45fr 1fr; }
.mesa { flex-wrap: nowrap; gap: 10px; }
.mesa .carta { width: 172px; height: 252px; flex: none; }
.mesa .delante canvas { width: 112px; height: 126px; }
.c-cab { flex-direction: column; align-items: flex-start; gap: 3px; }
.c-cab b { font-size: 1.05rem; }
@media (max-width: 980px) { .mesa { flex-wrap: wrap; } .mesa .carta { width: 140px; height: 206px; } .mesa .delante canvas { width: 84px; height: 94px; } .c-cab b { font-size: .9rem; } .stats b { font-size: 1rem; } }
@media (max-width: 980px) { .cromos { grid-template-columns: 1fr; } }
.marca { white-space: nowrap; }
@media (max-width: 560px) { .marca { font-size: 1.4rem; } .sonido { font-size: .85rem; padding: 8px 12px; } }
body.cine .cine-capa .nocturna { border-radius: 0; }
.rotulo.final.abajo { top: auto; bottom: 5%; }
.rotulo.final.abajo { padding: 18px 34px; } .rotulo.final.abajo b { font-size: 2.6rem; }
.redondo[aria-pressed="true"] { color: var(--tinta); }

/* ------------------------------------------------ mando: emisora de radio y app del móvil */
.modos-mando { margin: 0; flex-wrap: wrap; justify-content: center; }
.modos-mando .pestana { font-size: .95rem; padding: 8px 16px; background: #2c3546; color: #cfd6e2; border-color: #3a455a; }
.modos-mando .pestana[aria-selected="true"] { background: var(--menta); color: var(--tinta); border-color: var(--menta); }
.emisora { position: relative; width: 100%; max-width: 380px; padding-top: 70px; }
.antena { position: absolute; top: 0; right: 22%; width: 8px; height: 90px; border-radius: 4px; background: linear-gradient(#cfd4dc, #8a929e); transform: rotate(12deg); transform-origin: bottom; }
.antena::before { content: ""; position: absolute; top: -8px; left: -3px; width: 14px; height: 14px; border-radius: 50%; background: #cfd4dc; }
.emisora-cuerpo { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; background: linear-gradient(#3a455a, #262e3d); border-radius: 40px 40px 70px 70px; padding: 26px 22px 34px; box-shadow: inset 0 2px 0 rgba(255,255,255,.08), 0 14px 30px rgba(0,0,0,.4); }
.gimbal { position: relative; width: 108px; height: 108px; border-radius: 50%; background: radial-gradient(circle, #1a202b 0 55%, #11161f 100%); box-shadow: inset 0 3px 10px rgba(0,0,0,.6), 0 0 0 5px #4a566c; touch-action: none; cursor: grab; flex: none; }
.gimbal::before { content: ""; position: absolute; background: #2c3546; border-radius: 6px; }
.gimbal.vertical::before { left: 50%; top: 14px; bottom: 14px; width: 12px; margin-left: -6px; }
.gimbal.horizontal::before { top: 50%; left: 14px; right: 14px; height: 12px; margin-top: -6px; }
.pomo-rc { position: absolute; left: 50%; top: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #e6e9ef, #9aa2ae 60%, #5d6573); box-shadow: 0 6px 12px rgba(0,0,0,.5); }
.gimbal small { position: absolute; bottom: -24px; left: 0; right: 0; text-align: center; color: #aab3c2; font-size: .75rem; font-weight: 700; }
.emisora-centro { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.led { width: 10px; height: 10px; border-radius: 50%; background: #5dff9a; box-shadow: 0 0 8px #5dff9a; }
.tecla { font: 800 .8rem "Baloo", sans-serif; color: #fff; background: #1a202b; border: 2px solid #4a566c; border-radius: 10px; padding: 6px 12px; cursor: pointer; min-width: 74px; }
.tecla[aria-pressed="true"] { background: var(--sol); color: var(--tinta); border-color: var(--sol); }
.telefono { width: 280px; background: #0b0e16; border-radius: 40px; padding: 12px; box-shadow: 0 18px 40px rgba(0,0,0,.45), inset 0 0 0 3px #2a3146; }
.telefono[hidden] { display: none; }
.telefono-pantalla { background: linear-gradient(#1b2232, #121826); border-radius: 30px; padding: 26px 16px 22px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.tel-titulo { margin: 0; color: #5dff9a; font: 700 .8rem ui-monospace, Consolas, monospace; letter-spacing: .08em; }
.telefono .palanca { width: 180px; height: 180px; }
.telefono .redondo { width: 64px; height: 64px; font-size: .85rem; }
@media (max-width: 560px) { .gimbal { width: 92px; height: 92px; } .tecla { min-width: 64px; } }
.marca { font: 700 1.05rem/1 system-ui, Arial, sans-serif !important; letter-spacing: .12em; color: var(--tinta); }

/* sprites de 24x26 */
.mesa .delante canvas { width: 120px; height: 130px; }
.revelacion canvas { width: 264px; height: 286px; }
@media (max-width: 980px) { .mesa .delante canvas { width: 90px; height: 98px; } }

/* ------------------------------------------------ construir y programar */
.kit-fila { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; align-items: center; margin-bottom: 28px; }
.vista-kit { height: 420px; background: radial-gradient(120% 90% at 50% 30%, #ffffff 0%, #f6f1e8 55%, #ebe2d3 100%); box-shadow: inset 0 0 0 1px rgba(27,34,48,.04), var(--sombra); }
.kit-pasos { list-style: none; counter-reset: paso; padding: 0; margin: 0; display: grid; gap: 10px; }
.kit-pasos li { counter-increment: paso; background: var(--tarjeta); border-radius: 16px; padding: 12px 16px 12px 56px; position: relative; color: var(--suave); box-shadow: var(--sombra); transition: transform .3s, box-shadow .3s; }
.kit-pasos li::before { content: counter(paso); position: absolute; left: 14px; top: 50%; translate: 0 -50%; width: 30px; height: 30px; border-radius: 50%; background: var(--fondo-2); color: var(--tinta); display: grid; place-items: center; font: 800 1rem "Baloo", sans-serif; }
.kit-pasos li b { display: block; color: var(--tinta); font-family: "Baloo"; font-size: 1.05rem; }
.kit-pasos li.activo { transform: translateX(6px); box-shadow: 0 0 0 3px var(--menta), var(--sombra); }
.kit-pasos li.activo::before { background: var(--menta); }
.editor h3 { font-size: 1.1rem; margin: 0 0 8px; }
.paleta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.bloque { font: 800 .92rem "Baloo", sans-serif; border: 0; border-radius: 10px; padding: 9px 14px; color: #fff; cursor: pointer; box-shadow: 0 3px 0 rgba(0,0,0,.18); }
.bloque[data-tipo="avanzar"], .bloque[data-tipo="avanzar2"] { background: #2f86f0; }
.bloque[data-tipo="izq"], .bloque[data-tipo="der"] { background: #8a5cf6; }
.bloque[data-tipo="luces"] { background: #e3a008; }
.bloque[data-tipo="pitar"] { background: #e8483b; }
.programa-lista { list-style: none; padding: 10px; margin: 0 0 14px; min-height: 120px; max-height: 300px; overflow: auto; background: var(--fondo-2); border-radius: 14px; display: flex; flex-direction: column; gap: 6px; counter-reset: linea; }
.programa-lista li { counter-increment: linea; display: flex; align-items: center; gap: 8px; }
.programa-lista li::before { content: counter(linea); width: 20px; color: var(--suave); font-size: .8rem; text-align: right; }
.programa-lista .bloque { flex: 1; text-align: left; }
.programa-lista li.ejecutando .bloque { outline: 3px solid var(--tinta); outline-offset: 2px; }
.programa-lista li.fallo .bloque { outline: 3px solid #e8483b; }
.acciones-prog { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 980px) { .kit-fila { grid-template-columns: 1fr; } .vista-kit { height: 340px; } }
body.cine-prog #programar.cine-vista { max-width: none; margin: 0; background: var(--fondo); padding: 70px 90px 130px; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
body.cine-prog #programar .cabecera, body.cine-prog #programar .datos-cromos, body.cine-prog #programar .nota { display: none; }
body.cine-prog #programar .kit-fila { grid-template-columns: 1.5fr 1fr; }
body.cine-prog #programar .vista-kit { height: 640px; }
body.cine-prog #programar .banco .vista { height: 760px !important; }
body.cine-codigos .rotulo, body.cine-prog .rotulo { color: var(--tinta); text-shadow: none; left: 50%; bottom: 36px; translate: -50% 0; text-align: center; background: #fff; padding: 14px 28px; border-radius: 22px; box-shadow: var(--sombra); font-size: 2rem; }
body.cine-prog .rotulo span { color: var(--suave); font-size: 1.15rem; }
body.cine-prog .rotulo.final { top: 50%; bottom: auto; translate: -50% -50%; font-size: 2.6rem; padding: 40px 64px; box-shadow: 0 0 0 100vmax rgba(247,243,236,.88), var(--sombra); }
body.cine-prog #v-kit .chapa { display: none; }
