/* ==========================================================================
   Alexis26Dev — la página de los juegos. Pensada para PC (y que se adapte al
   teléfono): portada a pantalla completa con la fogata de La Última Señal,
   una sección a todo el ancho por juego con su arte de fondo y bordes
   rasgados, y encima el papel, la tinta y el neón del juego.
   ========================================================================== */

@font-face { font-family: "Barlow Condensed"; src: url("../assets/fuentes/BarlowCondensed-ExtraBold.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("../assets/fuentes/BarlowCondensed-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../assets/fuentes/Barlow-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../assets/fuentes/Barlow-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Caveat"; src: url("../assets/fuentes/Caveat.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Kalam"; src: url("../assets/fuentes/Kalam-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --noche: #0b1020;
  --hueso: #efe6d4;
  --hueso-suave: #c4bcad;
  --fuego-claro: #ffb15c;
  --fuego-oscuro: #8c3f12;
  --neon: #57e389;
  --papel: #f1e4c8;
  --papel-2: #e7d6b2;
  --tinta: #2a1e14;
  --tinta-suave: #5b4a38;
  --rojo: #b8352f;
  --azul-lapiz: #3f5578;
  --linea-papel: rgba(70, 110, 160, .16);
  --mano: "Caveat", "Kalam", cursive;
  --titulo: "Barlow Condensed", "Arial Narrow", sans-serif;
  --texto: "Barlow", system-ui, sans-serif;
  --ancho: 1320px;
  --rasgado: polygon(0.0% 25px, 2.94% 8px, 5.88% 23px, 8.82% 8px, 11.76% 15px, 14.71% 21px, 17.65% 19px, 20.59% 3px, 23.53% 6px, 26.47% 26px, 29.41% 26px, 32.35% 17px, 35.29% 3px, 38.24% 25px, 41.18% 23px, 44.12% 21px, 47.06% 18px, 50.0% 7px, 52.94% 22px, 55.88% 15px, 58.82% 9px, 61.76% 25px, 64.71% 15px, 67.65% 24px, 70.59% 8px, 73.53% 24px, 76.47% 2px, 79.41% 23px, 82.35% 9px, 85.29% 6px, 88.24% 6px, 91.18% 8px, 94.12% 21px, 97.06% 17px, 100.0% 26px, 100.0% calc(100% - 6px), 97.06% calc(100% - 18px), 94.12% calc(100% - 21px), 91.18% calc(100% - 15px), 88.24% calc(100% - 14px), 85.29% calc(100% - 21px), 82.35% calc(100% - 8px), 79.41% calc(100% - 10px), 76.47% calc(100% - 3px), 73.53% calc(100% - 8px), 70.59% calc(100% - 24px), 67.65% calc(100% - 15px), 64.71% calc(100% - 15px), 61.76% calc(100% - 23px), 58.82% calc(100% - 12px), 55.88% calc(100% - 12px), 52.94% calc(100% - 19px), 50.0% calc(100% - 23px), 47.06% calc(100% - 21px), 44.12% calc(100% - 16px), 41.18% calc(100% - 2px), 38.24% calc(100% - 22px), 35.29% calc(100% - 3px), 32.35% calc(100% - 18px), 29.41% calc(100% - 5px), 26.47% calc(100% - 19px), 23.53% calc(100% - 19px), 20.59% calc(100% - 11px), 17.65% calc(100% - 25px), 14.71% calc(100% - 2px), 11.76% calc(100% - 2px), 8.82% calc(100% - 20px), 5.88% calc(100% - 9px), 2.94% calc(100% - 13px), 0.0% calc(100% - 14px));
  --ruido: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .35 0 0 0 0 .26 0 0 0 0 .16 0 0 0 .11 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: hidden; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }
body {
  margin: 0; min-height: 100vh; overflow-x: hidden;
  background: linear-gradient(180deg, #0a0f1d 0%, #0e1527 50%, #0d1424 100%); background-color: var(--noche);
  color: var(--hueso); font: 500 17px/1.6 var(--texto);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; }
.manuscrito { font-family: var(--mano); font-weight: 600; letter-spacing: .01em; }

#cielo { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; }
main, .pie { position: relative; z-index: 1; }

.saltar { position: absolute; left: -999px; top: 8px; z-index: 60; background: var(--fuego-claro); color: var(--tinta); padding: 8px 14px; border-radius: 10px; font-weight: 700; }
.saltar:focus { left: 12px; }

/* ---------- la barra de arriba (transparente sobre la portada) ---------- */
.barra {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  display: flex; align-items: center; gap: 18px; height: 64px;
  padding: 0 max(20px, env(safe-area-inset-right)) 0 max(20px, env(safe-area-inset-left));
  transition: background .35s, box-shadow .35s, height .35s;
}
.barra__vigia { position: absolute; top: 0; left: 0; width: 1px; height: 40px; pointer-events: none; }
.barra--solida { background: rgba(9, 13, 25, .9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 1px 0 rgba(239, 230, 212, .08), 0 10px 30px rgba(0, 0, 0, .35); height: 58px; }
.barra__logo { display: inline-flex; align-items: baseline; text-decoration: none; font-family: var(--titulo); font-weight: 800; font-size: 26px; line-height: 1; letter-spacing: .03em; text-shadow: 0 2px 8px rgba(0, 0, 0, .6); }
.barra__a { color: var(--hueso); }
.barra__26 { color: var(--neon); text-shadow: 0 0 10px rgba(87, 227, 137, .7); }
.barra__nav { display: none; gap: 30px; margin-left: auto; font-family: var(--titulo); font-weight: 700; font-size: 18px; letter-spacing: .08em; text-transform: uppercase; }
.barra__nav a { position: relative; text-decoration: none; color: var(--hueso); text-shadow: 0 2px 8px rgba(0, 0, 0, .7); padding: 6px 0; }
.barra__nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 2px; background: var(--fuego-claro); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.barra__nav a:hover::after, .barra__nav a:focus-visible::after { transform: scaleX(1); }
.idioma { margin-left: 0; display: inline-flex; border: 2px solid rgba(239, 230, 212, .35); border-radius: 999px; overflow: hidden; background: rgba(9, 13, 25, .45); }
.idioma button { background: transparent; color: var(--hueso); border: 0; padding: 5px 13px; font-family: var(--titulo); font-weight: 800; font-size: 15px; letter-spacing: .08em; cursor: pointer; }
.idioma button[aria-pressed="true"] { background: var(--hueso); color: var(--noche); }
/* navegador en otro idioma: el botón EN brilla unas veces para que lo vean (sin cambiar solo) */
.sugerir-en .idioma button[data-lang="en"], .sugerir-fr .idioma button[data-lang="fr"] { animation: sugerir 1.6s ease-in-out 1.5s 4; }
@keyframes sugerir { 50% { background: var(--neon); color: var(--noche); box-shadow: 0 0 14px rgba(87, 227, 137, .8); } }
@media (min-width: 1140px) { .barra__nav { display: flex; align-items: center; } .barra__menu { display: none; } .barra__terminal { margin-left: 8px; } .idioma { margin-left: 4px; } }
@media (max-width: 380px) { .barra { gap: 8px; padding: 0 12px; } .barra__logo { font-size: 20px; } .idioma button { padding: 5px 9px; } .barra__menu, .barra__terminal { width: 36px; min-width: 36px; padding: 0; } }

/* ---------- la portada ---------- */
.portada { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; overflow: hidden; isolation: isolate; }
.portada__arte { position: absolute; inset: -2%; z-index: -2; background: url("../assets/img/portada_fogata.webp") 64% 60% / cover no-repeat; animation: acercar 40s ease-in-out infinite alternate; }
@keyframes acercar { from { transform: scale(1); } to { transform: scale(1.08) translateY(-1%); } }
.portada__velo { position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(180deg, rgba(8, 12, 24, .72) 0%, rgba(8, 12, 24, .25) 22%, rgba(8, 12, 24, .05) 45%, rgba(8, 12, 24, .45) 74%, #0b1020 100%),
  radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(4, 6, 14, .55) 100%); }
.portada__contenido { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 96px 20px 24px; }
.portada__hola { font-size: clamp(26px, 3vw, 40px); color: var(--fuego-claro); margin: 0 0 -4px; transform: rotate(-3deg); text-shadow: 0 2px 10px rgba(0, 0, 0, .8); }
.marca { margin: 0; font-family: var(--titulo); font-weight: 800; line-height: .86; letter-spacing: .01em; text-transform: uppercase; }
.marca__linea { display: block; font-size: clamp(64px, 11vw, 172px); color: var(--hueso); text-shadow: 0 6px 0 rgba(0, 0, 0, .45), 0 0 40px rgba(0, 0, 0, .5); }
.marca__neon {
  position: relative; display: inline-block; font-size: clamp(76px, 13vw, 206px); color: var(--neon); padding-right: .55em;
  -webkit-text-stroke: 2px rgba(10, 40, 22, .55);
  text-shadow: 0 0 6px rgba(87, 227, 137, .9), 0 0 22px rgba(87, 227, 137, .55), 0 0 60px rgba(87, 227, 137, .35);
  opacity: .08;
}
.marca__dev { color: var(--neon); }
.marca__neon.encendido { animation: encender 1.5s steps(1, end) forwards, respirar 4s ease-in-out 1.6s infinite; }
@keyframes encender { 0% { opacity: .08; } 12% { opacity: 1; } 18% { opacity: .12; } 26% { opacity: 1; } 34% { opacity: .4; } 44% { opacity: 1; } 52% { opacity: .7; } 60%, 100% { opacity: 1; } }
@keyframes respirar { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.14) saturate(1.08); } }
.ondas { position: absolute; right: 0; top: 50%; width: .42em; height: .42em; transform: translateY(-58%); overflow: visible; }
.ondas circle { fill: var(--neon); filter: drop-shadow(0 0 6px rgba(87, 227, 137, .9)); }
.ondas path { fill: none; stroke: var(--neon); stroke-width: 6; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(87, 227, 137, .8)); }
.encendido .onda--1 { animation: onda 2.2s ease-out 1.8s infinite; }
.encendido .onda--2 { animation: onda 2.2s ease-out 2.1s infinite; }
@keyframes onda { 0% { opacity: .2; } 30% { opacity: 1; } 100% { opacity: .2; } }
.portada__lema { max-width: 640px; margin: 18px auto 0; font-size: clamp(17px, 1.6vw, 21px); color: var(--hueso); text-shadow: 0 2px 12px rgba(0, 0, 0, .9); }

/* las frases de cada juego: escritas a mano… y tecleadas como en una terminal */
.frases { margin: 16px 0 0; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.frase-juego { display: block; max-width: 640px; text-decoration: none; color: var(--fuego-claro); transform: rotate(-1.5deg); text-shadow: 0 2px 12px rgba(0, 0, 0, .9); }
.frase-juego__linea { display: block; min-height: 2.3em; font-size: clamp(26px, 2.7vw, 36px); line-height: 1.15; }
.frase-juego__cursor { display: inline-block; width: 3px; height: .9em; margin-left: 3px; vertical-align: -.1em; border-radius: 2px; background: var(--fuego-claro); animation: parpadeo 1s steps(1) infinite; }
@keyframes parpadeo { 50% { opacity: 0; } }
.frase-juego:focus-visible { outline: 3px solid var(--neon); outline-offset: 6px; border-radius: 8px; }
.frases__juegos { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; }
.frases__juego { position: relative; display: inline-block; padding: 5px 7px 7px; border: 0; background: transparent; cursor: pointer; text-decoration: none; font-family: var(--titulo); font-weight: 700; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: rgba(239, 230, 212, .55); text-shadow: 0 2px 8px rgba(0, 0, 0, .9); transition: color .25s; }
.frases__juego::after { content: ""; position: absolute; left: 7px; right: 7px; bottom: 2px; height: 3px; border-radius: 2px; background: var(--fuego-claro); transform: scaleX(0); transition: transform .3s; }
.frases__juego.activa { color: var(--hueso); }
.frases__juego.activa::after { transform: scaleX(1); }
.frases__juego:hover { color: var(--hueso); }
.frases__juego:focus-visible { outline: 2px solid var(--neon); border-radius: 6px; }
@media (max-width: 560px) { .frases__juego { padding: 5px 5px 7px; font-size: 12px; letter-spacing: .06em; } .frases__juego::after { left: 5px; right: 5px; } }
@media (max-width: 360px) { .frases__la { display: none; } }

/* el aviso de la demo: el mejor gancho, arriba del todo */
.aviso-demo {
  position: relative; display: flex; align-items: center; gap: 18px; width: min(100%, 520px); margin: 24px auto 0; padding: 12px 22px 12px 12px;
  border: 3px solid var(--tinta); border-radius: 22px; cursor: pointer; text-align: left; color: var(--tinta); font: inherit;
  background: linear-gradient(180deg, #ffb562 0%, #f2913d 55%, #e7752a 100%);
  box-shadow: 0 6px 0 var(--fuego-oscuro), 0 14px 34px rgba(242, 145, 61, .45), inset 0 2px 0 rgba(255, 255, 255, .45);
  transition: transform .12s, box-shadow .12s, filter .2s;
}
.aviso-demo::after { content: ""; position: absolute; inset: -3px; border-radius: 22px; pointer-events: none; border: 3px solid rgba(255, 177, 92, .8); opacity: 0; will-change: transform, opacity; animation: latido 2.8s ease-out 2.4s infinite; }
@keyframes latido { 0% { opacity: .9; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(1.06, 1.18); } }
.aviso-demo:hover { filter: brightness(1.07); transform: translateY(-2px); }
.aviso-demo:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--fuego-oscuro); }
.aviso-demo:focus-visible { outline: 3px solid var(--neon); outline-offset: 5px; }
.aviso-demo__icono { position: relative; flex: none; width: 72px; height: 72px; }
.aviso-demo__icono img { display: block; width: 100%; height: 100%; border-radius: 16px; object-fit: cover; border: 3px solid var(--tinta); }
.aviso-demo__play { position: absolute; right: -9px; bottom: -9px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--neon); border: 3px solid var(--tinta); box-shadow: 0 0 14px rgba(87, 227, 137, .7); }
.aviso-demo__play svg { width: 15px; height: 15px; margin-left: 2px; fill: var(--tinta); }
.aviso-demo:hover .aviso-demo__play { transform: scale(1.12); }
.aviso-demo__texto { display: flex; flex-direction: column; min-width: 0; }
.aviso-demo__sello { align-self: flex-start; padding: 2px 8px 1px; border-radius: 6px; background: var(--tinta); color: var(--neon); font-family: var(--titulo); font-weight: 800; font-size: 13px; letter-spacing: .14em; line-height: 1.25; }
.aviso-demo__titulo { margin-top: 5px; font-family: var(--titulo); font-weight: 800; font-size: clamp(25px, 2.4vw, 31px); line-height: 1; letter-spacing: .03em; text-transform: uppercase; }
.aviso-demo__sub { margin-top: 4px; font-size: 15px; line-height: 1.3; color: #3b2313; }
@media (max-width: 380px) { .aviso-demo { gap: 14px; padding: 10px 14px 10px 10px; } .aviso-demo__icono { width: 60px; height: 60px; } .aviso-demo__sub { font-size: 14px; } }

/* prueba social: cifras reales de las tiendas */
.prueba { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 20px 0 0; font-size: 15px; line-height: 1.3; color: var(--hueso); text-align: left; text-shadow: 0 2px 8px rgba(0, 0, 0, .9); }
.prueba__caras { display: flex; flex: none; }
.prueba__caras img { width: 32px; height: 32px; border-radius: 9px; object-fit: cover; border: 2px solid var(--noche); }
.prueba__caras img + img { margin-left: -10px; }
.prueba__num { font-family: var(--titulo); font-weight: 800; font-size: 21px; letter-spacing: .02em; color: var(--neon); text-shadow: 0 0 12px rgba(87, 227, 137, .45); }

.portada__enlaces { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 28px; margin: 14px 0 0; font-family: var(--titulo); font-weight: 700; font-size: 17px; letter-spacing: .1em; }
.portada__enlaces a { padding: 8px 0; color: var(--hueso); text-decoration: underline; text-decoration-color: rgba(255, 177, 92, .6); text-decoration-thickness: 2px; text-underline-offset: 6px; text-shadow: 0 2px 8px rgba(0, 0, 0, .9); transition: color .2s; }
.portada__enlaces a:hover, .portada__enlaces a:focus-visible { color: var(--fuego-claro); }
@keyframes trazar { to { stroke-dashoffset: 0; } }

/* ---------- novedades: tres notas, justo después de la portada ---------- */
.novedades { width: min(var(--ancho), calc(100% - 32px)); margin: 10px auto 0; padding: 26px 0 10px; }
.novedades__titulo { margin: 0 0 14px; font-size: clamp(30px, 3vw, 40px); color: var(--fuego-claro); transform: rotate(-1.5deg); }
.novedades__lista { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 760px) { .novedades__lista { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
.novedad__enlace {
  display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 14px 16px 14px; border-radius: 14px; text-decoration: none; color: var(--hueso);
  background: linear-gradient(180deg, rgba(20, 27, 46, .9), rgba(12, 17, 31, .94)); border: 1px solid rgba(239, 230, 212, .14);
  transition: transform .2s, border-color .2s;
}
.novedad__enlace:hover, .novedad__enlace:focus-visible { transform: translateY(-3px); border-color: rgba(255, 177, 92, .6); outline: none; }
.novedad__fecha { align-self: flex-start; padding: 1px 9px; border-radius: 999px; background: rgba(87, 227, 137, .15); color: var(--neon); font-family: var(--titulo); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.novedad__nombre { font-family: var(--titulo); font-weight: 800; font-size: 22px; line-height: 1.1; letter-spacing: .02em; }
.novedad__texto { font-size: 15.5px; line-height: 1.4; opacity: .85; }
.novedad__ir { margin-top: auto; padding-top: 6px; font-family: var(--titulo); font-weight: 700; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: var(--fuego-claro); }

/* las cuatro cartas al pie de la portada */
.cartas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; width: min(var(--ancho), calc(100% - 32px)); margin: 0 auto 40px; }
.carta {
  display: grid; grid-template-columns: 56px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center;
  padding: 10px 12px; border-radius: 16px; text-decoration: none;
  background: linear-gradient(180deg, rgba(20, 27, 46, .82), rgba(12, 17, 31, .9)); border: 1px solid rgba(239, 230, 212, .14);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .4); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.carta img { grid-row: 1 / 3; width: 56px; height: 56px; border-radius: 14px; object-fit: cover; border: 2px solid rgba(0, 0, 0, .5); }
.carta__nombre { font-family: var(--titulo); font-weight: 800; font-size: 19px; line-height: 1.05; letter-spacing: .02em; align-self: end; }
.carta__estado { justify-self: start; align-self: start; margin-top: 4px; padding: 1px 9px; border-radius: 999px; font-family: var(--titulo); font-weight: 700; font-size: 13px; letter-spacing: .07em; text-transform: uppercase; color: #a9bddd; background: rgba(63, 85, 120, .35); }
.carta__estado--ya { color: #12261a; background: var(--neon); }
.carta__estado--prueba { color: #2a1a05; background: #e8a33d; }
@media (max-width: 400px) { .cartas { grid-template-columns: minmax(0, 1fr); } }
.carta:hover, .carta:focus-visible { transform: translateY(-4px); border-color: rgba(255, 177, 92, .6); box-shadow: 0 16px 36px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 177, 92, .25); outline: none; }

/* ---------- botones (como «EMPEZAR» del juego) ---------- */
.boton {
  position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 10px 30px;
  border: 3px solid var(--tinta); border-radius: 18px; text-decoration: none;
  font-family: var(--titulo); font-weight: 800; font-size: 22px; letter-spacing: .06em; line-height: 1; text-transform: uppercase;
  transition: transform .12s, box-shadow .12s, filter .2s; cursor: pointer;
}
.boton--fuego { color: var(--tinta); background: linear-gradient(180deg, #ffb562 0%, #f2913d 55%, #e7752a 100%); box-shadow: 0 6px 0 var(--fuego-oscuro), 0 12px 28px rgba(242, 145, 61, .4), inset 0 2px 0 rgba(255, 255, 255, .45); }
.boton--noche { color: var(--hueso); background: linear-gradient(180deg, #3a4d6c 0%, #2b3a55 100%); box-shadow: 0 6px 0 #141c2c, 0 12px 28px rgba(0, 0, 0, .35), inset 0 2px 0 rgba(255, 255, 255, .18); }
.boton:hover { filter: brightness(1.07); transform: translateY(-1px); }
.boton:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--fuego-oscuro); }
.boton--noche:active { box-shadow: 0 2px 0 #141c2c; }
.boton:focus-visible, .foto__boton:focus-visible, .tienda:focus-visible, .idioma button:focus-visible { outline: 3px solid var(--neon); outline-offset: 3px; }

/* ---------- las franjas de título ---------- */
.franja { position: relative; text-align: center; padding: 70px 20px 54px; }
.franja__titulo { margin: 0; font-family: var(--titulo); font-weight: 800; font-size: clamp(48px, 7vw, 96px); line-height: .95; letter-spacing: .02em; color: var(--hueso); text-shadow: 0 5px 0 rgba(0, 0, 0, .4); }
.subrayado-mano { display: block; width: min(340px, 70%); height: 16px; margin: 8px auto 0; overflow: visible; }
.subrayado-mano path { fill: none; stroke: #d2443c; stroke-width: 4; stroke-linecap: round; stroke-dasharray: 300; stroke-dashoffset: 300; }
.franja.visible .subrayado-mano path { animation: trazar .9s ease-out .15s forwards; }
.franja__sub { margin: 6px 0 0; font-size: clamp(26px, 2.6vw, 34px); color: var(--fuego-claro); transform: rotate(-1.5deg); }
.franja--proximos .franja__sub { color: #a9c1e6; }

/* ---------- una sección por juego ---------- */
.juego { position: relative; isolation: isolate; padding: 80px 16px 90px; clip-path: var(--rasgado); margin: -14px 0; }
.juego__arte { position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(8, 11, 22, .92) 0%, rgba(8, 11, 22, .66) 42%, rgba(8, 11, 22, .38) 70%, rgba(8, 11, 22, .6) 100%), var(--fondo) center / cover no-repeat;
  background-color: #10172a; }
.juego--invertido .juego__arte { background: linear-gradient(270deg, rgba(8, 11, 22, .92) 0%, rgba(8, 11, 22, .66) 42%, rgba(8, 11, 22, .38) 70%, rgba(8, 11, 22, .6) 100%), var(--fondo) center / cover no-repeat; background-color: #10172a; }
.juego--mazmorra .juego__arte { background-color: #120c22; }
/* Entretenidos: sin arte ancho; el morado y el verde de su tienda, con confeti de letras */
.juego--cliente .juego__arte { background:
  radial-gradient(60% 70% at 78% 40%, rgba(255, 200, 80, .28), transparent 60%),
  radial-gradient(50% 60% at 20% 80%, rgba(60, 200, 160, .25), transparent 60%),
  url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><g font-family='Arial Black,Arial' font-weight='900' fill='white' fill-opacity='.06'><text x='20' y='60' font-size='54' transform='rotate(-12 40 50)'>A</text><text x='140' y='90' font-size='40' transform='rotate(14 150 80)'>T</text><text x='60' y='170' font-size='48' transform='rotate(8 70 160)'>?</text><text x='170' y='210' font-size='44' transform='rotate(-10 180 200)'>Ñ</text></g></svg>"),
  linear-gradient(160deg, #3b1f6b 0%, #2a1650 45%, #13324a 100%); }
.franja--clientes .franja__sub { color: #ffd27a; }
.juego__contenido { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; width: min(var(--ancho), 100%); margin: 0 auto; align-items: center; }

/* el panel: una hoja de cuaderno pegada sobre el arte */
.panel {
  position: relative; padding: 32px 22px 30px 46px; color: var(--tinta);
  background:
    var(--ruido),
    linear-gradient(90deg, transparent 32px, rgba(184, 53, 47, .38) 32px 34px, transparent 34px),
    repeating-linear-gradient(180deg, transparent 0 33px, var(--linea-papel) 33px 34px),
    linear-gradient(170deg, var(--papel) 0%, var(--papel-2) 100%);
  border-radius: 6px 10px 8px 12px; box-shadow: 0 24px 50px rgba(0, 0, 0, .55), 0 2px 0 rgba(0, 0, 0, .25);
  transform: rotate(-1deg);
}
.panel::before { content: ""; position: absolute; left: 10px; top: 24px; bottom: 24px; width: 14px; background: radial-gradient(circle at 7px 7px, rgba(11, 16, 32, .85) 0 5px, rgba(0, 0, 0, .18) 5.5px 6.5px, transparent 7px) 0 0 / 14px 64px repeat-y; }
.panel::after { content: ""; position: absolute; top: -14px; left: 50%; width: 130px; height: 30px; transform: translateX(-50%) rotate(-3deg); background: linear-gradient(90deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, .14)), rgba(232, 218, 176, .82); box-shadow: 0 1px 2px rgba(0, 0, 0, .18); }
.juego--invertido .panel { transform: rotate(.8deg); }
.panel__cabeza { display: flex; align-items: center; gap: 16px; padding-right: 8px; }
.panel__icono { width: 84px; height: 84px; border-radius: 22px; border: 3px solid var(--tinta); box-shadow: 0 4px 0 rgba(42, 30, 20, .35); background: #fff; object-fit: cover; flex: none; }
.panel__nombre { margin: 0; overflow-wrap: break-word; font-family: var(--titulo); font-weight: 800; font-size: clamp(30px, 10vw, 40px); line-height: .92; letter-spacing: .01em; }
.panel__nombre--largo { font-size: clamp(28px, 8.5vw, 34px); }
.panel__cabeza > div { min-width: 0; }
.panel__genero { margin: 6px 0 0; font-family: var(--titulo); font-weight: 700; font-size: 16px; letter-spacing: .07em; text-transform: uppercase; color: var(--tinta-suave); }
.panel__descargas { display: inline-flex; align-items: center; gap: 6px; margin: 8px 0 0; padding: 3px 11px 2px 8px; border-radius: 999px; background: rgba(42, 30, 20, .1); font-family: var(--titulo); font-weight: 700; font-size: 15px; letter-spacing: .05em; color: var(--tinta); }
.panel__descargas svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.panel__frase { margin: 18px 0 4px; font-size: clamp(30px, 2.6vw, 38px); line-height: 1.1; color: var(--rojo); transform: rotate(-1deg); }
.panel__parrafo { margin: 10px 0 0; font-size: 17px; line-height: 1.65; color: #3a2c1e; }
.rasgos { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 7px; }
.rasgos li { position: relative; padding-left: 32px; font-family: "Kalam", var(--mano); font-weight: 700; font-size: 18.5px; line-height: 1.35; color: var(--tinta); }
.rasgos li::before { content: ""; position: absolute; left: 2px; top: 3px; width: 21px; height: 21px; background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M3 13 C6 15 8 18 9 20 C12 13 16 8 21 4' fill='none' stroke='%23b8352f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/></svg>") no-repeat center / contain; }

/* el sello de estado */
.sello { display: inline-block; margin: 0 0 14px; padding: 6px 14px 4px; border: 4px double currentColor; border-radius: 8px; font-family: var(--titulo); font-weight: 800; font-size: 20px; letter-spacing: .08em; line-height: 1; text-transform: uppercase; transform: rotate(-4deg); opacity: .88; mix-blend-mode: multiply; }
.sello--rojo { color: #b0261f; }
.sello--ambar { color: #b06a10; }
.sello--lapiz { color: #4b5d78; border-style: dashed; border-width: 3px; }

/* las tiendas */
.tiendas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.tienda { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 18px 8px 14px; border-radius: 14px; background: var(--tinta); color: var(--papel); text-decoration: none; border: 2px solid var(--tinta); box-shadow: 0 4px 0 rgba(42, 30, 20, .4); transition: transform .12s, box-shadow .12s; }
.tienda svg { width: 24px; height: 24px; fill: var(--papel); flex: none; }
.tienda span { display: flex; flex-direction: column; font-family: var(--titulo); font-weight: 800; font-size: 20px; line-height: 1; letter-spacing: .03em; }
.tienda small { font-family: var(--texto); font-weight: 500; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; opacity: .75; margin-bottom: 3px; }
.tienda:hover { transform: translateY(-2px); box-shadow: 0 6px 0 rgba(42, 30, 20, .4); }
.tienda:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(42, 30, 20, .4); }
/* mis redes, en el pie */
.redes { display: flex; justify-content: center; gap: 10px; margin: 0 0 14px; }
.redes[hidden], .redes .sin-enlace { display: none; }
.redes__red { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(239, 230, 212, .08); color: var(--hueso); transition: background .2s, transform .12s; }
.redes__red svg { width: 22px; height: 22px; fill: currentColor; }
.redes__red svg.trazo { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.redes__red:hover { background: rgba(255, 177, 92, .25); transform: translateY(-2px); }
.redes__red:focus-visible { outline: 3px solid var(--neon); outline-offset: 2px; }

/* el botón del tráiler, en el panel de cada juego publicado */
.boton-trailer { display: inline-flex; align-items: center; gap: 10px; margin: 2px 0 12px; padding: 6px 16px 6px 6px; border: 2px solid var(--tinta); border-radius: 999px; background: transparent; color: var(--tinta); cursor: pointer; font-family: var(--titulo); font-weight: 800; font-size: 17px; letter-spacing: .08em; transition: transform .12s, background .2s; }
.boton-trailer small { font-family: var(--texto); font-weight: 600; font-size: 13px; letter-spacing: 0; opacity: .7; }
.boton-trailer__play { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--rojo); }
.boton-trailer__play svg { width: 15px; height: 15px; margin-left: 2px; fill: #fff; }
.boton-trailer:hover { transform: translateY(-2px); background: rgba(42, 30, 20, .08); }
.boton-trailer:focus-visible { outline: 3px solid var(--neon); outline-offset: 3px; }

/* compartir: en los paneles (papel) y en el pie (noche) */
.compartir { margin-top: 16px; }
.compartir__titulo { margin: 0 0 6px; font-size: 22px; line-height: 1.1; color: var(--tinta-suave); }
.compartir__botones { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.compartir__red, .compartir__copiar, .compartir__nativo {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-width: 42px; height: 42px; padding: 0 10px;
  border: 2px solid var(--tinta); border-radius: 12px; background: transparent; color: var(--tinta); cursor: pointer;
  font-family: var(--titulo); font-weight: 800; font-size: 15px; letter-spacing: .05em; text-transform: uppercase; text-decoration: none;
  transition: transform .12s, background .2s, color .2s;
}
.compartir__red span:empty, .compartir__copiar span:empty { display: none; }
.compartir svg { width: 20px; height: 20px; fill: currentColor; }
.compartir svg.trazo { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.compartir__red:hover, .compartir__copiar:hover, .compartir__nativo:hover { transform: translateY(-2px); }
.compartir__red--whatsapp:hover { background: #25d366; color: #0b1020; border-color: #0b1020; }
.compartir__red--facebook:hover { background: #1877f2; color: #fff; border-color: #0b1020; }
.compartir__red--x:hover { background: #0b1020; color: #fff; }
.compartir__red--telegram:hover { background: #29a9eb; color: #fff; border-color: #0b1020; }
.compartir__nativo { padding: 0 16px; color: var(--papel); background: var(--tinta); }
.compartir__copiar.copiado { background: var(--neon); color: var(--tinta); }
.compartir__red:focus-visible, .compartir__copiar:focus-visible, .compartir__nativo:focus-visible { outline: 3px solid var(--neon); outline-offset: 2px; }
.compartir--pie { display: flex; flex-direction: column; align-items: center; margin: 4px 0 14px; }
.compartir--pie .compartir__titulo { color: var(--fuego-claro); }
.compartir--pie .compartir__red, .compartir--pie .compartir__copiar, .compartir--pie .compartir__nativo { border-color: rgba(239, 230, 212, .4); color: var(--hueso); }
.compartir--pie .compartir__nativo { background: rgba(239, 230, 212, .1); }

/* en el teléfono, solo el botón de su tienda */
.es-android .tienda[data-enlace$="_appstore"], .es-ios .tienda[data-enlace$="_play"] { display: none; }
/* el QR de descarga: solo en computador (con ratón); en el teléfono no tiene sentido escanear su propia pantalla */
.qr { display: none; }
@media (hover: hover) and (pointer: fine) and (min-width: 700px) {
  html:not(.es-android):not(.es-ios) .qr { display: flex; align-items: center; gap: 14px; margin-top: 16px; padding: 10px 14px 10px 10px; border: 2px dashed rgba(42, 30, 20, .3); border-radius: 12px; max-width: 420px; }
  .qr img { flex: none; width: 96px; height: 96px; border-radius: 6px; image-rendering: pixelated; }
  .qr p { margin: 0; font-family: var(--mano); font-weight: 700; font-size: 21px; line-height: 1.15; color: var(--tinta-suave); }
}
[data-enlace].sin-enlace { display: none; }

.anotacion { position: relative; display: inline-block; margin: 16px 0 0; padding-left: 52px; font-size: 28px; line-height: 1.1; color: var(--rojo); transform: rotate(-3deg); }
.anotacion::before { content: ""; position: absolute; left: 0; top: -6px; width: 46px; height: 34px; background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 46 34'><path d='M4 30 C 10 12, 24 6, 40 8' fill='none' stroke='%23b8352f' stroke-width='2.6' stroke-linecap='round'/><path d='M33 2 L41 8 L33 14' fill='none' stroke='%23b8352f' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/></svg>") no-repeat center / contain; }

/* los próximos: papel más gris y tinta de lápiz azul */
.panel--boceto { background: var(--ruido), linear-gradient(90deg, transparent 32px, rgba(75, 93, 120, .35) 32px 34px, transparent 34px), repeating-linear-gradient(180deg, transparent 0 33px, rgba(110, 106, 98, .14) 33px 34px), linear-gradient(170deg, #ece2cc 0%, #ddd0b0 100%); }
.panel--boceto .panel__frase, .panel--boceto .anotacion { color: var(--azul-lapiz); }
.panel--boceto .anotacion::before { filter: hue-rotate(190deg) saturate(.5); }
.panel--boceto .rasgos li::before { filter: hue-rotate(195deg) saturate(.45) brightness(1.05); }

/* ---------- las capturas pegadas con cinta ---------- */
.galeria { display: grid; gap: 26px 18px; align-content: center; }
.foto { position: relative; margin: 0; padding: 9px 9px 0; background: #fbf7ee; border-radius: 3px; box-shadow: 0 16px 34px rgba(0, 0, 0, .5), 0 1px 0 rgba(0, 0, 0, .1); transition: transform .25s ease, box-shadow .25s ease; }
.foto::before { content: ""; position: absolute; top: -13px; left: 50%; width: 92px; height: 28px; transform: translateX(-50%) rotate(-4deg); background: linear-gradient(90deg, rgba(255, 255, 255, .15), rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, .12)), rgba(232, 218, 176, .8); box-shadow: 0 1px 2px rgba(0, 0, 0, .14); z-index: 2; }
.foto:nth-child(odd) { transform: rotate(-1.6deg); }
.foto:nth-child(even) { transform: rotate(1.4deg); }
.foto:nth-child(3n)::before { transform: translateX(-50%) rotate(5deg); }
.foto:hover { transform: rotate(0) translateY(-6px) scale(1.02); box-shadow: 0 24px 44px rgba(0, 0, 0, .55); z-index: 3; }
.foto__boton { display: block; width: 100%; padding: 0; border: 0; background: #111; cursor: zoom-in; overflow: hidden; border-radius: 2px; }
.foto__boton img { width: 100%; height: auto; transition: transform .4s ease; }
.foto:hover .foto__boton img { transform: scale(1.03); }
.foto figcaption { padding: 6px 4px 9px; font-family: var(--mano); font-weight: 600; font-size: 22px; line-height: 1.1; color: var(--tinta-suave); text-align: center; }
.galeria--apaisada { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.galeria--apaisada .foto--grande { grid-column: 1 / -1; }
.galeria--apaisada .foto:not(.foto--grande) figcaption { font-size: 18px; }
.galeria--vertical { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.galeria--boceto { grid-template-columns: 1fr; }
.galeria--despertar { display: flex; flex-wrap: wrap; justify-content: center; gap: 26px 16px; }
.galeria--despertar .foto { flex: 0 1 calc(50% - 8px); }
.galeria--despertar .foto--grande { flex-basis: 100%; }
.galeria--despertar .foto:not(.foto--grande) figcaption { font-size: 18px; }
@media (min-width: 640px) { .galeria--despertar .foto { flex-basis: calc(33.333% - 11px); } .galeria--despertar .foto--grande { flex-basis: 100%; } }
.galeria--alexcity { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.galeria--alexcity .foto--grande { grid-column: 1 / -1; }
.foto--panel { align-self: center; }   /* la victoria recortada al panel: no se estira a la altura de las capturas verticales */
.foto--dianoche .foto__boton { position: relative; }
.foto--dianoche .foto__noche { position: absolute; inset: 0; height: 100%; object-fit: cover; opacity: 0; animation: dianoche 12s ease-in-out 1.5s infinite; }
@keyframes dianoche { 0%, 36% { opacity: 0; } 50%, 86% { opacity: 1; } 100% { opacity: 0; } }
.juego--boceto .foto { background: rgba(236, 226, 204, .96); }
.juego--boceto .foto::before { background: rgba(200, 208, 220, .75); }
.juego--boceto .foto figcaption { color: var(--azul-lapiz); }
.galeria--abanico { grid-auto-flow: column; grid-auto-columns: 60%; overflow-x: auto; scroll-snap-type: x mandatory; padding: 18px 6px 12px; margin: 0 -6px; scrollbar-width: thin; }
.galeria--abanico .foto { scroll-snap-align: center; }

/* ---------- contacto: una nota pegada ---------- */
.contacto { padding: 90px 16px 40px; }
.nota-pegada { position: relative; max-width: 640px; margin: 0 auto; padding: 44px 30px 32px; text-align: center; color: var(--tinta); background: var(--ruido), linear-gradient(165deg, #fff1a8 0%, #f5df7c 100%); box-shadow: 0 24px 40px rgba(0, 0, 0, .5); transform: rotate(-1.2deg); border-radius: 2px 2px 14px 2px; }
.nota-pegada::before { content: ""; position: absolute; top: -14px; left: 50%; width: 130px; height: 30px; transform: translateX(-50%) rotate(3deg); background: rgba(232, 218, 176, .85); box-shadow: 0 1px 2px rgba(0, 0, 0, .15); }
.nota-pegada__titulo { margin: 0; font-family: var(--titulo); font-weight: 800; font-size: clamp(44px, 6vw, 68px); line-height: .95; }
.nota-pegada p { font-size: 18px; margin: 14px auto 22px; max-width: 470px; }
.nota-pegada__correo { display: inline-flex; align-items: center; gap: 9px; margin: 16px 0 0; padding: 4px 2px; font: 700 20px/1.2 var(--texto); color: var(--tinta); text-decoration: none; border-bottom: 2px solid currentColor; overflow-wrap: anywhere; transition: color .2s; }
.nota-pegada__correo svg { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.nota-pegada__correo:hover { color: var(--rojo); }
.nota-pegada__pd { margin-bottom: 0 !important; font-size: 26px !important; color: var(--rojo); transform: rotate(-2deg); }

/* ---------- pie ---------- */
.pie { text-align: center; padding: 34px 16px 50px; color: var(--hueso-suave); font-size: 15px; }
.pie p { margin: 4px 0; }
.pie__enlaces { margin: 8px 0; }
.pie__enlaces a { color: var(--hueso); font-weight: 600; text-underline-offset: 3px; }
.pie__enlaces a:hover { color: var(--fuego-claro); }
.pie__letras { font-size: 13px; opacity: .7; }

/* ---------- visor ---------- */
.visor { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 56px 12px 24px; background: rgba(6, 9, 18, .94); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.visor[hidden] { display: none; }
.visor__marco { margin: 0; max-width: min(1300px, 100%); max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.visor__img { max-width: 100%; max-height: calc(100vh - 140px); max-height: calc(100svh - 140px); object-fit: contain; border-radius: 6px; box-shadow: 0 20px 60px rgba(0, 0, 0, .6); border: 8px solid #fbf7ee; }
.visor__video { max-width: 100%; max-height: calc(100vh - 140px); max-height: calc(100svh - 140px); border-radius: 6px; box-shadow: 0 20px 60px rgba(0, 0, 0, .6); border: 8px solid #fbf7ee; background: #000; }
.visor__img[hidden], .visor__video[hidden] { display: none; }
.visor__texto { margin-top: 10px; font-size: 28px; color: var(--hueso); }
.visor__cerrar, .visor__flecha { position: absolute; border: 0; cursor: pointer; color: var(--hueso); background: rgba(255, 255, 255, .08); border-radius: 999px; transition: background .2s; }
.visor__cerrar { top: 12px; right: 12px; width: 48px; height: 48px; font-size: 22px; }
.visor__flecha { top: 50%; width: 52px; height: 70px; margin-top: -35px; font-size: 46px; line-height: 1; }
.visor__flecha--izq { left: 10px; }
.visor__flecha--der { right: 10px; }
.visor__cerrar:hover, .visor__flecha:hover { background: rgba(255, 255, 255, .18); }

/* ---------- aparecer al hacer scroll ---------- */
[data-revela] { opacity: 0; translate: 0 40px; transition: opacity .8s ease, translate .9s cubic-bezier(.2, .8, .2, 1); }
[data-revela].visible { opacity: 1; translate: 0 0; }
.juego .galeria[data-revela] { transition-delay: .12s; }

/* ---------- PC ---------- */
@media (min-width: 640px) {
  .cartas { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .galeria--vertical { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .galeria--alexcity { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .galeria--abanico { grid-auto-columns: 36%; }
}
@media (min-width: 980px) {
  .juego { min-height: 100vh; padding: 120px 40px 130px; display: flex; align-items: center; }
  .juego__contenido { grid-template-columns: minmax(380px, 470px) minmax(0, 1fr); gap: 64px; }
  .juego--invertido .juego__contenido { grid-template-columns: minmax(0, 1fr) minmax(380px, 470px); }
  .juego--invertido .panel { order: 2; }
  .juego--invertido .galeria { order: 1; }
  .panel { padding: 40px 30px 36px 58px; }
  .panel::before { left: 16px; }
  .panel { background-position: 0 0, 10px 0, 0 0, 0 0; }
  .panel__icono { width: 96px; height: 96px; }
  .panel__nombre { font-size: clamp(40px, 4vw, 58px); }
  .panel__nombre--largo { font-size: clamp(34px, 3.2vw, 46px); }
  .galeria--vertical { gap: 30px 22px; }
  .galeria--vertical .foto:nth-child(1) { transform: rotate(-4deg) translateY(18px); }
  .galeria--vertical .foto:nth-child(2) { transform: rotate(-1deg); }
  .galeria--vertical .foto:nth-child(3) { transform: rotate(2deg) translateY(10px); }
  .galeria--vertical .foto:nth-child(4) { transform: rotate(4.5deg) translateY(26px); }
  .galeria--vertical .foto:hover { transform: rotate(0) translateY(-10px) scale(1.05); }
  .galeria--telefonos { gap: 34px 20px; }
  .galeria--telefonos .foto:nth-child(4n+1) { transform: rotate(-3deg) translateY(14px); }
  .galeria--telefonos .foto:nth-child(4n+2) { transform: rotate(-.8deg); }
  .galeria--telefonos .foto:nth-child(4n+3) { transform: rotate(1.8deg) translateY(8px); }
  .galeria--telefonos .foto:nth-child(4n) { transform: rotate(3.5deg) translateY(20px); }
  .galeria--telefonos .foto:hover { transform: rotate(0) translateY(-10px) scale(1.05); }
  .galeria--telefonos .foto figcaption { font-size: 18px; }
  .galeria--alexcity { gap: 34px 20px; }
  .galeria--alexcity .foto:nth-child(2) { transform: rotate(-3deg) translateY(10px); }
  .galeria--alexcity .foto:nth-child(3) { transform: rotate(-.8deg); }
  .galeria--alexcity .foto:nth-child(4) { transform: rotate(1.8deg) translateY(6px); }
  .galeria--alexcity .foto:nth-child(5) { transform: rotate(3.5deg) translateY(14px); }
  .galeria--alexcity .foto:hover { transform: rotate(0) translateY(-10px) scale(1.04); }
  .galeria--alexcity .foto:not(.foto--grande) figcaption { font-size: 18px; }
  .galeria--abanico { grid-auto-flow: row; grid-template-columns: repeat(5, minmax(0, 1fr)); overflow: visible; padding: 30px 0 0; margin: 0; gap: 0; }
  .galeria--abanico .foto { margin-left: -9%; }
  .galeria--abanico .foto:first-child { margin-left: 0; }
  .galeria--abanico .foto:nth-child(1) { transform: rotate(-8deg) translateY(22px); }
  .galeria--abanico .foto:nth-child(2) { transform: rotate(-3.5deg) translateY(6px); }
  .galeria--abanico .foto:nth-child(3) { transform: rotate(0deg); z-index: 2; }
  .galeria--abanico .foto:nth-child(4) { transform: rotate(3.5deg) translateY(6px); }
  .galeria--abanico .foto:nth-child(5) { transform: rotate(8deg) translateY(22px); }
  .galeria--abanico .foto:hover { transform: rotate(0) translateY(-16px) scale(1.07); z-index: 5; }
  .galeria--abanico .foto figcaption { font-size: 19px; }
  .cartas { margin-bottom: 56px; }
  .carta { padding: 14px 16px; grid-template-columns: 64px 1fr; }
  .carta img { width: 64px; height: 64px; }
  .carta__nombre { font-size: 21px; }
}
@media (min-width: 980px) {
  /* la portada en PC: el texto a la izquierda, sobre el cielo y el agua; la fogata a la derecha */
  .portada__arte { background-position: center 60%; }
  .portada__velo { background:
    linear-gradient(90deg, rgba(8, 12, 24, .82) 0%, rgba(8, 12, 24, .55) 30%, rgba(8, 12, 24, .08) 55%, transparent 70%),
    linear-gradient(180deg, rgba(8, 12, 24, .7) 0%, transparent 20%, transparent 70%, #0b1020 100%); }
  .portada__contenido { align-items: flex-start; text-align: left; width: min(var(--ancho), calc(100% - 80px)); margin: 0 auto; padding: 96px 0 26px; }
  .portada__contenido > * { max-width: 680px; }
  .portada__hola { margin-left: 6px; }
  .portada__lema { margin-left: 0; }
  .frases { align-items: flex-start; }
  .frases__juegos { justify-content: flex-start; margin-left: -7px; }
  .marca__linea { font-size: min(9.4vw, 152px); }
  .marca__neon { font-size: min(11vw, 178px); }
  .aviso-demo { margin-left: 0; }
  .prueba, .portada__enlaces { justify-content: flex-start; }
}
@media (min-width: 980px) and (hover: hover) {
  .juego__arte { background-attachment: fixed, fixed; }
}

/* ---------- sin movimiento ---------- */

/* ---------- fondos de cada juego (aquí y no en el HTML: la CSP no deja estilos en línea) ---------- */
/* el arte de cada juego se pide al acercarse a su sección (prepararFondos añade .cerca) */
.juego { --fondo: none; }
#alexcity.cerca { --fondo: url("../assets/img/alexcity/fondo.webp"); }
#duskroll.cerca { --fondo: url("../assets/img/duskroll/fondo.webp"); }
#despertar.cerca { --fondo: url("../assets/img/despertar/fondo.webp"); }
#senal.cerca { --fondo: url("../assets/img/senal/fondo.webp"); }

/* ---------- el botón >_ de la barra ---------- */
.barra__terminal { display: inline-flex; align-items: center; justify-content: center; height: 34px; min-width: 44px; padding: 0 10px; margin-left: auto; border: 2px solid rgba(87, 227, 137, .55); border-radius: 10px; background: rgba(9, 13, 25, .55); color: var(--neon); font: 800 15px/1 var(--mono); text-shadow: 0 0 8px rgba(87, 227, 137, .6); cursor: pointer; transition: background .2s, box-shadow .2s; }
.barra__terminal { margin-left: 0; }
.barra__terminal:hover, .barra__terminal[aria-expanded="true"] { background: rgba(87, 227, 137, .14); box-shadow: 0 0 14px rgba(87, 227, 137, .35); }
.barra__terminal:focus-visible, .dianoche:focus-visible, .dados__boton:focus-visible, .pie__terminal:focus-visible, .terminal__cerrar:focus-visible, .nota-pegada__correo:focus-visible { outline: 3px solid var(--neon); outline-offset: 3px; }

/* ---------- AlexCity: el interruptor de día y noche ---------- */
.foto--dianoche figcaption { padding-left: 86px; padding-right: 86px; }
.dianoche { position: absolute; right: 14px; bottom: 8px; z-index: 3; display: flex; align-items: center; justify-content: space-between; width: 70px; height: 32px; padding: 0 7px; border: 2px solid var(--tinta); border-radius: 999px; background: linear-gradient(90deg, #ffe08a, #ffb347); cursor: pointer; transition: background .5s; }
.dianoche svg { position: relative; width: 16px; height: 16px; fill: none; stroke: var(--tinta); stroke-width: 2.2; stroke-linecap: round; }
.dianoche__luna { fill: var(--tinta) !important; stroke: none !important; }
.dianoche__perilla { position: absolute; top: 2px; left: 2px; z-index: 1; width: 24px; height: 24px; border-radius: 50%; background: #fffaf0; box-shadow: 0 1px 3px rgba(0, 0, 0, .45); transition: transform .45s cubic-bezier(.5, 1.6, .4, 1), background .45s; }
.dianoche[aria-pressed="true"] { background: linear-gradient(90deg, #22305e, #0e1630); }
.dianoche[aria-pressed="true"] .dianoche__perilla { transform: translateX(38px); background: #dfe6ff; }
.dianoche[aria-pressed="true"] .dianoche__sol { stroke: #ffd877; }
.foto--dianoche.manual .foto__noche { animation: none; opacity: 0; transition: opacity .9s ease; }
.foto--dianoche.manual.de-noche .foto__noche { opacity: 1; }

/* ---------- clips de juego (fichas de video) ---------- */
.foto__video { position: relative; display: block; overflow: hidden; border-radius: 2px; background: #111; }
.foto__video video { display: block; width: 100%; height: auto; }
.foto__vivo { position: absolute; top: 8px; left: 8px; display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 6px; background: rgba(184, 53, 47, .94); color: #fff; font: 800 12px/1 var(--titulo); letter-spacing: .12em; box-shadow: 0 2px 6px rgba(0, 0, 0, .45); pointer-events: none; }
.foto__vivo i { width: 7px; height: 7px; border-radius: 50%; background: #fff; }
.foto--video.reproduciendo .foto__vivo i { animation: grabando 1.2s steps(1) infinite; }
@keyframes grabando { 50% { opacity: .15; } }
.foto__abrir { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.foto__abrir:focus-visible { outline: 3px solid var(--neon); outline-offset: -3px; }
.foto__vivo { z-index: 2; }
.video__control { z-index: 2; position: absolute; right: 8px; bottom: 8px; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; padding: 0; border: 2px solid rgba(255, 255, 255, .85); border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff; cursor: pointer; transition: background .2s, transform .15s; }
.video__control:hover { background: rgba(0, 0, 0, .75); transform: scale(1.06); }
.video__control:focus-visible { outline: 3px solid var(--neon); outline-offset: 2px; }
.video__control svg { width: 18px; height: 18px; fill: currentColor; }
.video__control .i-pausa { display: none; }
.foto--video.reproduciendo .video__control .i-play { display: none; }
.foto--video.reproduciendo .video__control .i-pausa { display: block; }

/* ---------- Primera Oleada: los cinco climas ---------- */
.foto--clima .foto__boton { position: relative; }
.foto--clima .clima__capa { position: absolute; inset: 0; height: 100%; object-fit: cover; opacity: 0; transition: opacity .9s ease; }
.foto--clima .clima__capa.visible { opacity: 1; }
.clima { display: flex; justify-content: center; gap: 8px; padding: 0 0 12px; }
.clima__boton { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 2px solid var(--tinta); border-radius: 50%; background: #fbf7ee; color: var(--tinta); cursor: pointer; transition: background .2s, color .2s, transform .15s; }
.clima__boton svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.clima__boton[data-clima="noche"] svg { fill: currentColor; stroke: none; }
.clima__boton:hover { transform: translateY(-2px); }
.clima__boton[aria-pressed="true"] { background: var(--tinta); color: #ffd877; }
.clima__boton:focus-visible { outline: 3px solid var(--neon); outline-offset: 2px; }

/* ---------- Duskroll: tira los dados ---------- */
.dados { margin: 22px 0 8px; padding: 14px 16px 12px; border: 2px dashed rgba(42, 30, 20, .35); border-radius: 12px; background: rgba(42, 30, 20, .05); }
.dados__titulo { margin: 0 0 10px; font-size: 22px; line-height: 1.1; color: var(--tinta); }
.dados__fila { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dado { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; width: 58px; height: 64px; border-radius: 12px; background: radial-gradient(circle at 35% 25%, #4a5866, #1b232b 70%); border: 2px solid #0b1014; box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .12), 0 4px 8px rgba(0, 0, 0, .3); transition: box-shadow .3s; }
.dado { cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; }
.dado:active { transform: scale(.94); }
.dado__cara { font: 800 30px/1 var(--titulo); color: #7ff3ff; text-shadow: 0 0 10px rgba(87, 227, 255, .9), 0 0 2px #e9ffff; }
.dado small { margin-top: 4px; font: 700 11px/1 var(--titulo); letter-spacing: .1em; }
.dado--mov small { color: #8ce8ad; }
.dado--atq small { color: #ffc27e; }
.dado--def small { color: #9cc0ff; }
.dados__boton { margin-left: auto; padding: 12px 18px; border: 0; border-radius: 12px; background: var(--tinta); color: var(--papel); font: 800 18px/1 var(--titulo); letter-spacing: .08em; cursor: pointer; box-shadow: 0 4px 0 #000; transition: transform .1s, box-shadow .1s; }
.dados__boton:active { transform: translateY(3px); box-shadow: 0 1px 0 #000; }
.dados__resultado { min-height: 1.3em; margin: 10px 0 0; font-size: 21px; line-height: 1.2; color: var(--rojo); }
.dados.rodando .dado { animation: rodar .6s cubic-bezier(.3, .7, .4, 1.3); }
.dados.rodando .dado:nth-child(2) { animation-delay: .06s; }
.dados.rodando .dado:nth-child(3) { animation-delay: .12s; }
@keyframes rodar { 0% { transform: rotate(0) scale(1); } 35% { transform: rotate(-210deg) scale(.8); } 75% { transform: rotate(-340deg) scale(1.1); } 100% { transform: rotate(-360deg) scale(1); } }
.dados.duskroll .dado { box-shadow: 0 0 0 3px #57e3ff, 0 0 24px rgba(87, 227, 255, .85); }
.dados.duskroll .dados__resultado { color: #0d7f8c; font-weight: 700; }
.dados.escalera .dado { box-shadow: 0 0 0 3px var(--neon), 0 0 18px rgba(87, 227, 137, .7); }
.dados.escalera .dados__resultado { color: #2f7d4f; font-weight: 700; }

/* ---------- las fotos se inclinan con el ratón (solo con ratón) ---------- */
@media (hover: hover) and (pointer: fine) {
  .foto__boton { position: relative; transform: perspective(800px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .25s ease-out; }
  .foto__boton::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .25s; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .34), rgba(255, 255, 255, 0) 52%); mix-blend-mode: overlay; }
  .foto__boton:hover::after { opacity: 1; }
}

/* ---------- la pista del pie ---------- */
.pie__pista { margin: 12px 0 6px; }
.pie__terminal { padding: 4px 8px; border: 0; background: none; color: var(--neon); font: 600 14px/1.4 var(--mono); cursor: pointer; opacity: .75; transition: opacity .2s, text-shadow .2s; }
.pie__terminal:hover { opacity: 1; text-shadow: 0 0 8px rgba(87, 227, 137, .6); }

/* ---------- la terminal (baja desde arriba, como la consola de un juego) ---------- */
.terminal { position: fixed; top: 0; left: 50%; z-index: 90; display: flex; flex-direction: column; width: min(920px, 100%); height: min(62vh, 560px); transform: translate(-50%, -110%); background: rgba(6, 10, 18, .95); border: 1px solid rgba(87, 227, 137, .35); border-top: 0; border-radius: 0 0 14px 14px; box-shadow: 0 30px 80px rgba(0, 0, 0, .7), 0 0 30px rgba(87, 227, 137, .12); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: #cfe9d6; font: 15px/1.5 var(--mono); transition: transform .38s cubic-bezier(.2, .9, .25, 1.08); }
.terminal[hidden] { display: none; }
.terminal.abierta { transform: translate(-50%, 0); }
.terminal::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 3px); }
.terminal__barra { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid rgba(87, 227, 137, .18); }
.terminal__luces { display: inline-flex; gap: 7px; }
.terminal__luces i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.terminal__luces i:nth-child(2) { background: #febc2e; }
.terminal__luces i:nth-child(3) { background: #28c840; }
.terminal__titulo { flex: 1; margin: 0; text-align: center; font-size: 13px; font-weight: 600; letter-spacing: .04em; color: #8fb59b; }
.terminal__cerrar { padding: 2px 8px; border: 0; border-radius: 6px; background: none; color: #8fb59b; font-size: 18px; cursor: pointer; }
.terminal__cerrar:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.terminal__salida { flex: 1; overflow-y: auto; padding: 14px 18px 6px; white-space: pre-wrap; overflow-wrap: anywhere; scrollbar-width: thin; scrollbar-color: rgba(87, 227, 137, .4) transparent; }
.terminal__salida p { margin: 0 0 3px; }
.t-cmd { color: #fff; }
.t-cmd::before { content: "alexis26@dev:~$ "; color: var(--neon); }
.t-ok { color: var(--neon); }
.t-err { color: #ff7a6b; }
.t-dim { color: #7f9a88; }
.t-fuego { color: #ffb15c; }
.t-cian { color: #6fe7f5; }
.t-oro { color: #f1c75b; }
.terminal__linea { display: flex; align-items: center; gap: 10px; margin: 0; padding: 8px 18px 14px; }
.terminal__prompt { color: var(--neon); white-space: nowrap; }
.terminal__entrada { flex: 1; min-width: 0; padding: 4px 0; border: 0; outline: 0; background: transparent; color: #fff; font: inherit; caret-color: var(--neon); }
@media (max-width: 640px) {
  .terminal { height: 72vh; height: 72svh; font-size: 13.5px; border-radius: 0 0 12px 12px; }
  .terminal__entrada { font-size: 16px; }
  .dado { width: 52px; height: 58px; }
  .dados__boton { margin-left: 0; }
}

/* ---------- «¿Te aviso cuando salga?» ---------- */
.aviso { position: relative; margin: 22px 0 6px; padding: 14px 16px 12px; border: 2px dashed rgba(42, 30, 20, .35); border-radius: 12px; background: rgba(255, 255, 255, .28); }
.panel--boceto .aviso { border-color: rgba(47, 74, 122, .45); }
.aviso__titulo { margin: 0 0 8px; font-size: 24px; line-height: 1.1; color: var(--tinta); }
.panel--boceto .aviso__titulo { color: var(--azul-lapiz); }
.aviso__fila { display: flex; flex-wrap: wrap; gap: 8px; }
.aviso__correo { flex: 1 1 180px; min-width: 0; padding: 11px 12px; border: 2px solid var(--tinta); border-radius: 10px; background: #fffdf7; color: var(--tinta); font: 600 16px/1.2 var(--texto); }
.aviso__correo::placeholder { color: rgba(42, 30, 20, .45); }
.aviso__correo:focus { outline: 3px solid var(--neon); outline-offset: 1px; }
.aviso__boton { padding: 11px 18px; border: 0; border-radius: 10px; background: var(--tinta); color: var(--papel); font: 800 17px/1 var(--titulo); letter-spacing: .08em; cursor: pointer; box-shadow: 0 4px 0 #000; transition: transform .1s, box-shadow .1s; }
.aviso__boton:active { transform: translateY(3px); box-shadow: 0 1px 0 #000; }
.aviso__boton:disabled { opacity: .6; cursor: wait; }
.aviso__boton:focus-visible { outline: 3px solid var(--neon); outline-offset: 3px; }
.aviso__nota { margin: 8px 0 0; font-size: 13.5px; line-height: 1.35; color: var(--tinta-suave); }
.aviso__privacidad { color: var(--tinta); font-weight: 600; text-underline-offset: 2px; white-space: nowrap; }
.aviso__estado { min-height: 1.2em; margin: 6px 0 0; font: 700 15px/1.3 var(--texto); color: var(--tinta-suave); }
.aviso__estado--bien { color: #2f7d4f; }
.aviso__estado--mal { color: var(--rojo); }
.aviso__trampa { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.solo-lectores { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }


/* ---------- el menú del teléfono ---------- */
.barra__menu { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 34px; margin-left: auto; padding: 0; border: 2px solid rgba(239, 230, 212, .35); border-radius: 10px; background: rgba(9, 13, 25, .55); color: var(--hueso); cursor: pointer; }
.barra__menu svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.barra__menu[aria-expanded="true"] { background: rgba(239, 230, 212, .12); }
.barra__menu:focus-visible { outline: 3px solid var(--neon); outline-offset: 3px; }
@media (min-width: 1140px) { .barra__menu { display: none; } .barra__terminal { margin-left: 8px; } }
@media (max-width: 1139px) {
  .barra__nav.abierta { display: flex; position: fixed; top: 64px; left: 12px; right: 12px; z-index: 45; flex-direction: column; gap: 0; padding: 8px; background: rgba(9, 13, 25, .97); border: 1px solid rgba(239, 230, 212, .15); border-radius: 14px; box-shadow: 0 20px 50px rgba(0, 0, 0, .6); }
  .barra__nav.abierta a { padding: 12px 14px; font-size: 20px; border-radius: 8px; }
  .barra__nav.abierta a::after { display: none; }
  .barra__nav.abierta a:hover, .barra__nav.abierta a:focus-visible { background: rgba(255, 255, 255, .07); }
  .barra__nav.abierta .barra__demo { margin: 0 0 6px; padding: 12px 14px; font-size: 20px; text-align: left; }
}

/* ---------- el altavoz (sonidos apagados al entrar) ---------- */
.barra__sonido { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 34px; padding: 0; border: 2px solid rgba(239, 230, 212, .35); border-radius: 10px; background: rgba(9, 13, 25, .55); color: var(--hueso); cursor: pointer; transition: background .2s, box-shadow .2s, color .2s, border-color .2s; }
.barra__sonido svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.barra__sonido .i-sonido { display: none; }
.barra__sonido[aria-pressed="true"] { color: var(--fuego-claro); border-color: rgba(255, 177, 92, .7); box-shadow: 0 0 14px rgba(255, 177, 92, .35); }
.barra__sonido[aria-pressed="true"] .i-sonido { display: block; }
.barra__sonido[aria-pressed="true"] .i-mudo { display: none; }
.barra__sonido:hover { background: rgba(239, 230, 212, .1); }
.barra__sonido:focus-visible { outline: 3px solid var(--neon); outline-offset: 3px; }
@media (min-width: 1140px) { .barra__sonido { margin-left: 8px; } }

/* «▶ Demo gratis» en la barra: la demo a un toque desde cualquier parte */
.barra__demo { display: inline-flex; align-items: center; padding: 6px 14px 5px; border: 2px solid var(--tinta); border-radius: 999px; cursor: pointer; font: inherit; letter-spacing: .06em; text-transform: uppercase; color: var(--tinta); background: linear-gradient(180deg, #ffb562, #ee8a36); box-shadow: 0 3px 0 var(--fuego-oscuro); transition: filter .2s, transform .12s; }
.barra__demo svg { width: .8em; height: .8em; margin: 0 6px -1px 0; fill: currentColor; }
.barra__demo:hover { filter: brightness(1.08); transform: translateY(-1px); }
.barra__demo:focus-visible { outline: 3px solid var(--neon); outline-offset: 3px; }
@media (max-width: 560px) {
  .barra { gap: 8px; padding: 0 12px; }
  .barra__logo { font-size: 22px; }
  .barra__menu, .barra__sonido, .barra__terminal { width: 36px; min-width: 36px; padding: 0; }
  .idioma button { padding: 5px 9px; }
}
@media (max-width: 380px) { .barra__terminal { display: none; } .barra__logo { font-size: 20px; } }

/* ---------- Acerca de ---------- */
.franja--acerca .franja__sub { color: #9fe6b8; }
.franja--cotizar .franja__sub { color: var(--fuego-claro); }
.franja--soporte .franja__sub { color: #a9c1e6; }
.acerca, .formulario-seccion, .soporte { padding: 10px 16px 70px; }
.acerca__contenido { display: grid; grid-template-columns: minmax(0, 1fr); gap: 34px; width: min(var(--ancho), 100%); margin: 0 auto; align-items: center; }
.cifras { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 0 0 22px; padding: 0; list-style: none; }
.cifra { padding: 16px 14px 14px; border: 1px solid rgba(87, 227, 137, .25); border-radius: 14px; background: rgba(9, 13, 25, .55); text-align: center; transition: transform .2s, border-color .2s; }
.cifra:hover { transform: translateY(-3px); border-color: rgba(87, 227, 137, .6); }
.cifra__num { display: block; font: 800 clamp(48px, 6vw, 64px)/1 var(--titulo); color: var(--neon); text-shadow: 0 0 14px rgba(87, 227, 137, .55); }
.cifra span { display: block; margin-top: 6px; font: 700 15px/1.2 var(--titulo); letter-spacing: .06em; text-transform: uppercase; color: var(--hueso-suave); }
.acerca__titulo { margin: 6px 0 10px; font-size: 30px; color: var(--fuego-claro); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chips li { padding: 7px 14px; border: 1px solid rgba(239, 230, 212, .25); border-radius: 999px; background: rgba(239, 230, 212, .06); font-weight: 600; font-size: 15.5px; transition: background .2s, border-color .2s; }
.chips li:hover { background: rgba(255, 177, 92, .14); border-color: rgba(255, 177, 92, .5); }
.acerca__motores { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; }
.acerca__motores span { padding: 4px 10px; border-radius: 6px; background: rgba(87, 227, 137, .1); color: var(--neon); font: 700 14px/1.3 var(--mono); }

/* ---------- formularios (Cotiza y Soporte) ---------- */
.ficha-form { position: relative; width: min(780px, 100%); margin: 0 auto; padding: 30px clamp(18px, 4vw, 40px) 26px; color: var(--tinta); background: var(--ruido), linear-gradient(170deg, var(--papel) 0%, var(--papel-2) 100%); border-radius: 8px 12px 10px 14px; box-shadow: 0 24px 50px rgba(0, 0, 0, .55); }
.ficha-form::after { content: ""; position: absolute; top: -14px; left: 50%; width: 130px; height: 30px; transform: translateX(-50%) rotate(2deg); background: rgba(232, 218, 176, .85); box-shadow: 0 1px 2px rgba(0, 0, 0, .18); }
.ficha-form__titulo { margin: 0 0 6px; font: 800 34px/1 var(--titulo); }
.opciones { margin: 0 0 18px; padding: 0; border: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.opciones legend, .campo label { display: block; width: 100%; margin: 0 0 8px; padding: 0; font: 700 18px/1.2 var(--titulo); letter-spacing: .04em; text-transform: uppercase; color: var(--tinta-suave); }
.opcion { position: relative; cursor: pointer; }
.opcion input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opcion span { display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border: 2px solid rgba(42, 30, 20, .35); border-radius: 999px; background: rgba(255, 255, 255, .5); font-weight: 700; transition: background .15s, color .15s, border-color .15s, transform .15s; }
.opcion span b { font-weight: 700; }
.opcion:hover span { transform: translateY(-2px); border-color: var(--tinta); }
.opcion input:checked + span { background: var(--tinta); color: var(--papel); border-color: var(--tinta); }
.opcion input:focus-visible + span { outline: 3px solid var(--neon); outline-offset: 2px; }
.opciones--grandes .opcion { flex: 1 1 140px; }
.opciones--grandes .opcion span { flex-direction: column; justify-content: center; width: 100%; padding: 16px 10px 14px; border-radius: 14px; font-size: 18px; }
.opcion svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.campo { margin: 0 0 16px; }
.campo input:not([type=range]), .campo textarea, .campo select { width: 100%; padding: 12px 13px; border: 2px solid rgba(42, 30, 20, .55); border-radius: 10px; background: #fffdf7; color: var(--tinta); font: 600 16px/1.4 var(--texto); }
.campo textarea { resize: vertical; min-height: 120px; }
.campo input:focus, .campo textarea:focus, .campo select:focus { outline: 3px solid var(--neon); outline-offset: 1px; border-color: var(--tinta); }
.campo ::placeholder { color: rgba(42, 30, 20, .42); }
.campo-doble { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 14px; }
.contador { display: block; margin-top: 4px; text-align: right; font: 600 13px/1 var(--mono); color: var(--tinta-suave); }
.contador.lleno { color: var(--rojo); }
.campo--rango input[type=range] { width: 100%; height: 10px; margin: 6px 0 10px; border-radius: 999px; appearance: none; -webkit-appearance: none; background: linear-gradient(90deg, #f2913d 0 var(--avance, 0%), rgba(42, 30, 20, .18) var(--avance, 0%) 100%); cursor: pointer; }
.campo--rango input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: var(--tinta); border: 3px solid var(--papel); box-shadow: 0 2px 6px rgba(0, 0, 0, .35); }
.campo--rango input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--tinta); border: 3px solid var(--papel); }
.campo--rango input[type=range]:focus-visible { outline: 3px solid var(--neon); outline-offset: 4px; }
.rango__valor { display: inline-block; padding: 4px 12px; border-radius: 8px; background: var(--tinta); color: var(--papel); font: 800 18px/1.2 var(--titulo); letter-spacing: .04em; }
.ficha-form__enviar { width: 100%; margin-top: 6px; }
.ficha-form__enviar:disabled { opacity: .65; cursor: wait; }
.ficha-form__nota { margin: 12px 0 0; font-size: 14px; color: var(--tinta-suave); }
.ficha-form__nota a { color: var(--tinta); font-weight: 600; }
.ficha-form__estado { min-height: 1.3em; margin: 8px 0 0; font: 700 16px/1.35 var(--texto); }
.ficha-form__estado--bien { color: #2f7d4f; }
.ficha-form__estado--mal { color: var(--rojo); }

/* ---------- Soporte: preguntas frecuentes ---------- */
.soporte__contenido { display: grid; grid-template-columns: minmax(0, 1fr); gap: 34px; width: min(var(--ancho), 100%); margin: 0 auto; align-items: start; }
.faq__titulo { margin: 0 0 12px; font-size: 34px; color: var(--hueso); }
.faq__buscar input { width: 100%; margin-bottom: 14px; padding: 12px 16px; border: 2px solid rgba(239, 230, 212, .3); border-radius: 999px; background: rgba(9, 13, 25, .6); color: var(--hueso); font: 600 16px/1.3 var(--texto); }
.faq__buscar input:focus { outline: 3px solid var(--neon); outline-offset: 2px; }
.faq__item { margin-bottom: 10px; border: 1px solid rgba(239, 230, 212, .16); border-radius: 12px; background: rgba(9, 13, 25, .55); transition: border-color .2s; }
.faq__item[open] { border-color: rgba(255, 177, 92, .55); }
.faq__item summary { position: relative; padding: 14px 44px 14px 16px; font-weight: 600; cursor: pointer; list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font: 800 24px/1 var(--titulo); color: var(--fuego-claro); transition: transform .2s; }
.faq__item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq__item summary:focus-visible { outline: 3px solid var(--neon); outline-offset: 2px; border-radius: 12px; }
.faq__item p { margin: 0; padding: 0 16px 16px; color: var(--hueso-suave); }
.faq__nada { color: var(--fuego-claro); font-weight: 600; }
@media (min-width: 640px) { .campo-doble { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 980px) {
  .acerca__contenido { grid-template-columns: minmax(380px, 520px) minmax(0, 1fr); gap: 64px; }
  .soporte__contenido { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px; }
}

/* ---------- la demo jugable: un teléfono en la pantalla ---------- */
.boton--demo { width: 100%; margin: 4px 0 0; }
.demo-nota { margin: 8px 0 14px; text-align: center; font-size: 20px; color: var(--tinta-suave); }
.demo { position: fixed; inset: 0; z-index: 95; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(4, 6, 12, .9); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.demo[hidden] { display: none; }
.demo__marco { position: relative; display: flex; flex-direction: column; width: min(430px, 100%); height: min(880px, 100%); padding: 10px; border-radius: 42px; background: linear-gradient(160deg, #262b34, #0b0d12); box-shadow: 0 0 0 2px #3a3f4a, 0 30px 80px rgba(0, 0, 0, .7), 0 0 44px rgba(87, 227, 255, .2); }
.demo__barra { display: flex; align-items: center; gap: 8px; padding: 6px 12px 10px; }
.demo__titulo { flex: 1; margin: 0; font: 800 18px/1 var(--titulo); letter-spacing: .08em; text-transform: uppercase; color: var(--hueso); }
.demo__accion { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .08); color: var(--hueso); font-size: 18px; cursor: pointer; }
.demo__accion svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.demo__accion:hover { background: rgba(255, 255, 255, .16); }
.demo__accion:focus-visible { outline: 3px solid var(--neon); outline-offset: 2px; }
.demo__pantalla { position: relative; flex: 1; overflow: hidden; border-radius: 32px; background: #000; }
.demo__juego { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border: 0; }
.demo__cargando[hidden] { display: none; }
.demo__cargando { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; margin: 0; padding: 20px; text-align: center; color: #7ff3ff; font: 600 17px/1.4 var(--mono); }
@media (max-width: 640px) {
  .demo { padding: 0; }
  .demo__marco { width: 100%; height: 100%; padding: 0; border-radius: 0; box-shadow: none; }
  .demo__pantalla { border-radius: 0; }
}

/* ==========================================================================
   VANGUARDIA (17-nov-2026): tres técnicas nuevas de la web, todas en CSS o con
   muy poco JS. Quien no las soporta, o pide menos movimiento, ve la página de siempre.
   ========================================================================== */

/* ---------- 1. La linterna de La Última Señal: el arte está a oscuras y se alumbra donde pasas ---------- */
@property --lx { syntax: "<length-percentage>"; inherits: true; initial-value: 30%; }
@property --ly { syntax: "<length-percentage>"; inherits: true; initial-value: 40%; }
#senal .juego__arte::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle clamp(210px, 30vw, 440px) at var(--lx) var(--ly), rgba(255, 232, 180, .16) 0%, rgba(255, 232, 180, .05) 30%, rgba(4, 6, 14, .25) 55%, rgba(4, 6, 14, .88) 100%);
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  #senal.a-la-vista .juego__arte::after { animation: rondar 16s ease-in-out infinite alternate; }
}
/* el arte de esta sección va casi sin velo: la oscuridad la pone la linterna */
#senal .juego__arte { background: linear-gradient(270deg, rgba(8, 11, 22, .5) 0%, rgba(8, 11, 22, .15) 45%, rgba(8, 11, 22, .05) 100%), var(--fondo) center / cover no-repeat; background-color: #10172a; }
#senal.con-linterna .juego__arte::after { animation: none; }
@keyframes rondar { 0% { --lx: 18%; --ly: 30%; } 50% { --lx: 46%; --ly: 62%; } 100% { --lx: 30%; --ly: 22%; } }

/* ---------- 2. Transiciones que transforman una cosa en otra (View Transitions) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .vt-foto { view-transition-name: foto-visor; }           /* la foto viaja de su ficha al visor, y vuelve */
  .vt-demo { view-transition-name: demo-marco; }           /* el teléfono de la demo sube y aparece */
  .vt-dianoche { view-transition-name: dianoche; }         /* la noche se abre en círculo */
  .vt-dn .barra { view-transition-name: barra; }           /* …sin tapar la barra mientras tanto */
}
.vt-dianoche .foto__noche { transition: none !important; }
::view-transition-group(foto-visor) { animation-duration: .45s; animation-timing-function: cubic-bezier(.2, .8, .2, 1); }
::view-transition-old(foto-visor), ::view-transition-new(foto-visor) { width: 100%; height: 100%; object-fit: cover; }
::view-transition-new(demo-marco):only-child { animation: demo-sube .5s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes demo-sube { from { opacity: 0; transform: translateY(70px) scale(.88); } }
::view-transition-old(dianoche), ::view-transition-new(dianoche) { mix-blend-mode: normal; }
::view-transition-old(dianoche) { animation: none; }
::view-transition-new(dianoche) { animation: abrir-circulo .95s cubic-bezier(.3, .7, .2, 1) both; }
@keyframes abrir-circulo {
  from { clip-path: circle(0 at calc(100% - 50px) calc(100% - 44px)); }
  to { clip-path: circle(150% at calc(100% - 50px) calc(100% - 44px)); }
}

/* ---------- 3. Animaciones atadas al scroll, sin JavaScript ---------- */
@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
  @supports (animation-timeline: view()) {
    /* la barra de arriba marca cuánto llevas leído (solo en computador) */
    .barra::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; pointer-events: none; transform-origin: 0 50%; transform: scaleX(0);
      background: linear-gradient(90deg, var(--fuego-claro), var(--neon)); box-shadow: 0 0 10px rgba(255, 177, 92, .6);
      animation: avance linear both; animation-timeline: scroll(root block); }
  }
}
/* lo demás, solo en computador con ratón: en el teléfono obliga a redibujar capas enormes en cada cuadro (medido: tirones) */
@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) and (min-width: 980px) {
  @supports (animation-timeline: view()) {
    /* profundidad: el arte de cada juego va más lento que su texto */
    .juego__arte { inset: -9% 0; animation: fondo-lento linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
    /* el nombre se achica y se apaga al dejar atrás la portada */
    .marca { animation: marca-sale linear both; animation-timeline: view(); animation-range: exit -10% exit 100%; }
    /* los títulos de cada franja entran creciendo */
    .franja__titulo { animation: titulo-entra linear both; animation-timeline: view(); animation-range: entry 0% cover 32%; }
    /* cada foto se asienta al entrar, unas antes que otras */
    .galeria:not(.galeria--abanico) .foto { animation: foto-entra linear both; animation-timeline: view(); animation-range: entry 0% entry 85%; }
    .galeria:not(.galeria--abanico) .foto:nth-child(2n) { animation-range: entry 12% entry 100%; }
    .galeria:not(.galeria--abanico) .foto:nth-child(3n) { animation-range: entry 24% cover 28%; }
  }
}
@keyframes avance { to { transform: scaleX(1); } }
@keyframes fondo-lento { from { transform: translateY(-7%); } to { transform: translateY(7%); } }
@keyframes marca-sale { to { translate: 0 46px; scale: .93; opacity: .15; } }
@keyframes titulo-entra { from { scale: .84; opacity: .15; } to { scale: 1; opacity: 1; } }
@keyframes foto-entra { from { translate: 0 56px; scale: .9; opacity: .35; } to { translate: 0 0; scale: 1; opacity: 1; } }

/* ---------- las páginas de cada juego (/duskroll/, /alexcity/…, generadas de index.html) ---------- */
.principal-juego { padding-top: 64px; }
.volver { position: relative; z-index: 2; width: min(var(--ancho), calc(100% - 32px)); margin: 18px auto 4px; }
.volver a { display: inline-flex; align-items: center; padding: 7px 14px; border: 1px solid rgba(239, 230, 212, .22); border-radius: 999px; background: rgba(9, 13, 25, .6); color: var(--hueso); text-decoration: none; font-family: var(--titulo); font-weight: 700; font-size: 16px; letter-spacing: .08em; text-transform: uppercase; transition: border-color .2s, color .2s; }
.volver a:hover, .volver a:focus-visible { border-color: var(--fuego-claro); color: var(--fuego-claro); outline: none; }
.mas-juegos { padding: 60px 0 30px; }
.mas-juegos__titulo { margin: 0 auto 18px; width: min(var(--ancho), calc(100% - 32px)); font-size: clamp(30px, 3vw, 40px); color: var(--fuego-claro); transform: rotate(-1.5deg); }
.mas-juegos .cartas { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-bottom: 20px; }

/* el kit de prensa (/prensa/) */
.prensa { width: min(920px, calc(100% - 32px)); margin: 10px auto 40px; }
.prensa__titulo { margin: 10px 0 6px; font-family: var(--titulo); font-weight: 800; font-size: clamp(44px, 6vw, 76px); line-height: .95; color: var(--hueso); }
.prensa__intro { margin: 0 0 22px; max-width: 640px; font-size: 18px; color: var(--hueso-suave); }
.prensa__bloque { position: relative; margin: 0 0 18px; padding: 22px 22px 20px; border-radius: 6px; color: var(--tinta); background: var(--papel); box-shadow: 0 16px 34px rgba(0, 0, 0, .45); }
.prensa__bloque h2 { margin: 0 0 6px; font-family: var(--titulo); font-weight: 800; font-size: 32px; line-height: 1; }
.prensa__bloque p { margin: 0 0 10px; line-height: 1.5; }
.prensa__juego { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 680px) { .prensa__juego { grid-template-columns: 120px minmax(0, 1fr); gap: 22px; } }
.prensa__icono { width: 120px; height: 120px; border-radius: 26px; border: 3px solid rgba(0, 0, 0, .5); object-fit: cover; }
.prensa__frase { font-size: 26px; color: var(--rojo); }
.prensa__datos { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 14px; margin: 12px 0 14px; padding: 12px 14px; border-radius: 10px; background: rgba(42, 30, 20, .06); }
.prensa__datos dt { font-family: var(--titulo); font-weight: 700; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--tinta-suave); padding-top: 2px; }
.prensa__datos dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.prensa__datos a, .prensa__enlaces a { color: var(--tinta); text-underline-offset: 3px; }
.prensa__bajar { display: inline-flex; align-items: baseline; gap: 10px; padding: 11px 18px; border-radius: 12px; background: var(--tinta); color: var(--papel); text-decoration: none; font-family: var(--titulo); font-weight: 800; font-size: 18px; letter-spacing: .05em; text-transform: uppercase; transition: transform .12s; }
.prensa__bajar small { font-family: var(--texto); font-weight: 600; font-size: 12px; letter-spacing: .04em; opacity: .7; }
.prensa__bajar:hover { transform: translateY(-2px); }
.prensa__bajar:focus-visible { outline: 3px solid var(--neon); outline-offset: 3px; }
.prensa__nota { margin: 24px 0 0; font-size: 24px; color: var(--fuego-claro); text-align: center; }

/* de la portada a cada juego: el icono de la carta viaja hasta el panel del juego (View Transitions entre páginas) */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  .carta[href$="/alexcity/"] img, .pagina-juego #alexcity .panel__icono { view-transition-name: icono-alexcity; }
  .carta[href$="/duskroll/"] img, .pagina-juego #duskroll .panel__icono { view-transition-name: icono-duskroll; }
  .carta[href$="/despertar/"] img, .pagina-juego #despertar .panel__icono { view-transition-name: icono-despertar; }
  .carta[href$="/senal/"] img, .pagina-juego #senal .panel__icono { view-transition-name: icono-senal; }
  ::view-transition-group(icono-alexcity), ::view-transition-group(icono-duskroll), ::view-transition-group(icono-despertar), ::view-transition-group(icono-senal) { animation-duration: .55s; animation-timing-function: cubic-bezier(.2, .8, .2, 1); }
}

/* ---------- rendimiento en el teléfono (medido: estos efectos causaban los tirones) ---------- */
/* fuera de la portada se pausan sus animaciones (el neón que respira, el fondo que se acerca, el latido de la demo) */
.portada.fuera .marca__neon.encendido, .portada.fuera .portada__arte, .portada.fuera .aviso-demo::after { animation-play-state: paused; }
#cielo[hidden] { display: none; }
@media (hover: none), (pointer: coarse) {
  /* la barra sin desenfoque: el desenfoque obliga a recalcular lo que hay detrás en cada movimiento */
  .barra--solida { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(9, 13, 25, .97); }
  .carta { backdrop-filter: none; -webkit-backdrop-filter: none; }
  /* AlexCity de día y noche: sin el fundido automático (dos videos a la vez); el interruptor sigue funcionando */
  .foto--dianoche:not(.manual) .foto__noche { animation: none; opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .foto__boton { transform: none !important; }
  .terminal { transition: none; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .portada__arte { animation: none; }
  .foto--dianoche .foto__noche { animation: none; }
  .foto--clima .clima__capa { transition: none; }
  .marca__neon { opacity: 1; }
  .subrayado-mano path { stroke-dashoffset: 0; }
  .frase-juego__cursor { display: none; }
  [data-revela] { opacity: 1; translate: 0 0; }
}
