/* neuropsicologos.co — «Noche de feria» (23-sep-2026).
 *
 * El sitio es un juego: el embudo es el Dr. Esteban (avatar) y 5 minijuegos.
 * Identidad propia, distinta de los otros sitios del grupo:
 *   · noche azul marino de fondo, como una consola,
 *   · coral y girasol para lo que se toca, menta para lo que salió bien,
 *   · Fredoka (redonda, de juego) en titulares y Rubik para leer.
 * El fondo del escenario cambia con la ciudad (--fondo-1/2, los pone el juego).
 */
:root {
  --noche: #101735;
  --noche-2: #1B2550;
  --noche-3: #26306A;
  --coral: #FF5E5B;
  --coral-2: #E8433F;
  --girasol: #FFC53D;
  --menta: #3DDC97;
  --cielo: #7CC8FF;
  --papel: #FBFAF7;
  --blanco: #FFFFFF;
  --tinta: #151A33;
  --texto: #2A3050;
  --suave: #5E6485;
  --linea: #E4E3EE;
  --display: 'Fredoka', 'Rubik', system-ui, sans-serif;
  --sans: 'Rubik', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --r: 22px;
  --ancho: 1120px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--papel); color: var(--texto); font: 400 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--coral-2); text-underline-offset: .18em; }
:focus-visible { outline: 3px solid var(--girasol); outline-offset: 2px; border-radius: 6px; }
.envoltura { max-width: var(--ancho); margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { font-family: var(--display); color: var(--tinta); font-weight: 600; letter-spacing: -.01em; line-height: 1.14; margin: 0; text-wrap: pretty; }
h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

/* ── cabecera ── */
.cab { position: sticky; top: 0; z-index: 30; background: rgba(16, 23, 53, .94); backdrop-filter: blur(10px); }
.cab .envoltura { display: flex; align-items: center; gap: 16px; height: 62px; }
.logo { display: inline-flex; align-items: baseline; color: #fff; text-decoration: none; font: 600 1.3rem var(--display); letter-spacing: -.01em; white-space: nowrap; }
.logo span { color: var(--girasol); }
.cab nav { margin-left: auto; display: flex; gap: 4px; align-items: center; }
.cab nav a { color: #D6DBF5; text-decoration: none; font-weight: 500; font-size: .94rem; padding: 8px 12px; border-radius: 10px; }
.cab nav a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.cab .cab-wa { background: var(--menta); color: var(--noche); font-weight: 600; }
.cab .cab-wa:hover { background: #5BE6A9; color: var(--noche); }
@media (max-width: 720px) { .cab nav a:not(.cab-wa) { display: none; } }

/* ── escenario del juego (portada) ── */
.escenario { background: radial-gradient(900px 500px at 20% 0%, rgba(255, 94, 91, .22), transparent 70%), radial-gradient(800px 500px at 90% 30%, rgba(124, 200, 255, .16), transparent 70%), var(--noche); padding: 30px 0 40px; }
.escenario-titulo { color: #fff; text-align: center; margin: 0 auto 8px; max-width: 900px; font-size: clamp(1.7rem, 4.2vw, 2.9rem); }
.escenario-titulo span { color: var(--girasol); }
.escenario-sub { color: #B9C0E6; text-align: center; margin: 0 auto 22px; max-width: 64ch; font-size: 1.02rem; }
@media (max-width: 600px) { .escenario { padding: 20px 0 28px; } .escenario-sub { font-size: .94rem; margin-bottom: 16px; } }

.np-juego {
  --fondo-1: #1B2550; --fondo-2: #2A1F55; --tema: var(--girasol);
  --av: clamp(64px, 15dvh, 150px);
  position: relative; max-width: 860px; margin: 0 auto; border-radius: 28px; overflow: hidden;
  background: linear-gradient(160deg, var(--fondo-1), var(--fondo-2)); color: #F2F4FF;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 30px 70px -30px rgba(0, 0, 0, .7); transition: background .6s;
  display: flex; flex-direction: column;
}
.np-juego::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .07) 1.2px, transparent 1.2px); background-size: 22px 22px; pointer-events: none; }
.ico { width: 1.25em; height: 1.25em; flex: none; display: inline-block; vertical-align: middle; }

/* pantalla completa: el juego ocupa el alto exacto de la pantalla */
html.np-jugando, html.np-jugando body { overflow: hidden; }
html.np-jugando .cab, html.np-jugando .pie, html.np-jugando .wa-flota, html.np-jugando main > :not(.escenario),
html.np-jugando .escenario-titulo, html.np-jugando .escenario-sub { display: none; }
html.np-jugando .escenario { padding: 0; }
.np-juego.np-pantalla { position: fixed; inset: 0; z-index: 100; max-width: none; height: 100vh; height: 100dvh; border-radius: 0; box-shadow: none; }

.np-hud { position: relative; flex: none; display: flex; align-items: center; gap: 12px; height: 52px; padding: 0 12px 0 18px; border-bottom: 1px solid rgba(255, 255, 255, .08); font: 500 .9rem var(--sans); color: #C9D0F2; }
.np-lugar { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-puntos { display: flex; gap: 5px; margin: 0; padding: 0; list-style: none; flex: none; }
.np-puntos li { width: 22px; height: 7px; border-radius: 99px; background: rgba(255, 255, 255, .16); transition: background .3s; }
.np-puntos li.actual { background: var(--girasol); }
.np-puntos li.hecho { background: var(--menta); }
.np-salir { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .08); color: #fff; cursor: pointer; font-size: 18px; }
.np-salir:hover { background: rgba(255, 255, 255, .16); }

.np-escena { position: relative; flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; gap: clamp(8px, 1.8dvh, 18px); padding: clamp(12px, 2.4dvh, 30px) clamp(14px, 3.5vw, 34px); }
.np-escena > * { width: 100%; max-width: 820px; margin-inline: auto; flex: none; }
.np-centrada { justify-content: center; }
.np-arriba { justify-content: flex-start; }
.np-invitacion { padding-block: clamp(18px, 3dvh, 30px); }
.np-entra { animation: np-entra .38s cubic-bezier(.2, .8, .2, 1); }
@keyframes np-entra { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.np-centro-txt { text-align: center; }
.np-destello { box-shadow: inset 0 0 0 4px var(--menta); }

/* avatar + globo */
.np-dialogo { display: flex; gap: clamp(10px, 2vw, 18px); align-items: center; }
.np-avatar { flex: none; width: var(--av); aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: #1B2550; box-shadow: 0 0 0 4px var(--girasol), 0 14px 30px -12px rgba(0, 0, 0, .6); }
.np-avatar video { width: 100%; height: 100%; object-fit: cover; display: block; }
.np-dialogo-grande .np-avatar { width: clamp(84px, 18dvh, 170px); }
.np-dialogo-mini .np-avatar { width: clamp(48px, 8dvh, 72px); box-shadow: 0 0 0 3px var(--girasol); }
.np-globo { position: relative; flex: 1; min-width: 0; background: #fff; color: var(--tinta); border-radius: 22px 22px 22px 6px; padding: clamp(10px, 1.8dvh, 16px) clamp(14px, 2vw, 20px); box-shadow: 0 14px 30px -16px rgba(0, 0, 0, .55); font-size: clamp(.9rem, 2.2dvh, 1.04rem); line-height: 1.45; }
.np-globo p { margin: 0; }
.np-quien { display: block; font: 600 .76rem var(--display); color: var(--coral-2); letter-spacing: .05em; text-transform: uppercase; margin-bottom: 2px; }
.np-en-linea { width: 1.3em; height: 1.3em; vertical-align: -.3em; color: var(--coral-2); }
@media (max-width: 560px) {
  .np-dialogo:not(.np-dialogo-mini) { flex-direction: column; text-align: center; gap: 10px; }
  .np-dialogo:not(.np-dialogo-mini) .np-globo { border-radius: 20px; }
  .np-dialogo:not(.np-dialogo-mini) .np-globo::before { content: ''; position: absolute; top: -8px; left: 50%; margin-left: -8px; border: 8px solid transparent; border-top: 0; border-bottom-color: #fff; }
}

.np-cinco { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.np-cinco li { display: flex; align-items: center; gap: 7px; padding: 7px 12px 7px 9px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); font: 500 .86rem var(--sans); color: #E6E9FF; }
.np-cinco .ico { color: var(--girasol); width: 20px; height: 20px; }

/* formularios del juego */
.np-arranque, .np-lead { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(8px, 1.5dvh, 14px) 16px; align-items: end; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: 20px; padding: clamp(12px, 2dvh, 18px); }
.np-lead { grid-template-columns: 1fr 1fr; max-width: 620px; }
.np-campo { display: flex; flex-direction: column; gap: 6px; font: 500 .88rem var(--sans); color: #D6DBF5; }
.np-campo input, .np-campo select { width: 100%; min-height: clamp(44px, 6.5dvh, 52px); padding: 0 14px; border: 2px solid transparent; border-radius: 14px; font: 500 1.02rem var(--sans); color: var(--tinta); background: #fff; }
.np-campo input:focus, .np-campo select:focus { outline: none; border-color: var(--girasol); }
.np-arranque > .np-boton, .np-arranque .np-error, .np-arranque .np-letra, .np-lead > :not(.np-campo) { grid-column: 1 / -1; }
.np-lead .np-boton { justify-self: start; }
.np-acepto { display: flex; gap: 8px; align-items: flex-start; font-size: .84rem; color: #C9D0F2; }
.np-acepto a { color: var(--girasol); }
.np-trampa { position: absolute; left: -9999px; width: 1px; height: 1px; }
@media (max-width: 560px) { .np-arranque, .np-lead { grid-template-columns: 1fr; } }
.np-error { margin: 0; background: rgba(255, 94, 91, .16); color: #FFD0CF; border-radius: 12px; padding: 8px 12px; font-size: .9rem; }
.np-letra { margin: 0; font-size: .82rem; color: #AEB6DE; text-align: center; }

.np-boton { display: inline-flex; align-items: center; justify-content: center; gap: 10px; align-self: center; width: auto; min-height: clamp(46px, 6.5dvh, 54px); padding: 0 28px; border: 0; border-radius: 999px; background: var(--coral); color: #fff; font: 600 1.08rem var(--display); cursor: pointer; text-decoration: none; box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .18), 0 12px 26px -12px var(--coral); transition: transform .12s, background .15s; }
.np-escena > .np-boton { width: auto; }
.np-boton:hover { background: var(--coral-2); color: #fff; transform: translateY(-2px); }
.np-boton:active { transform: translateY(1px); }
.np-boton .ico { width: 20px; height: 20px; }
.np-boton-grande { min-height: clamp(50px, 7dvh, 60px); font-size: 1.2rem; }
.np-arranque .np-boton-grande { width: 100%; }
.np-enlace { background: none; border: 0; padding: 4px 2px; color: var(--girasol); font: 500 .9rem var(--sans); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.np-cuenta { font: 700 clamp(5rem, 22dvh, 9rem)/1 var(--display); color: var(--girasol); text-align: center; animation: np-cuenta .52s ease-out; }
@keyframes np-cuenta { from { transform: scale(1.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.np-juego-cab { display: flex; justify-content: space-between; align-items: center; gap: 6px 12px; flex-wrap: wrap; font: 500 clamp(.9rem, 2.2dvh, 1.02rem) var(--sans); color: #E6E9FF; }
.np-meta { display: inline-flex; align-items: center; gap: 6px; font-family: var(--display); font-weight: 600; color: var(--girasol); }
.np-meta .ico { width: 24px; height: 24px; }
.np-tiempo { height: 7px; border-radius: 99px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.np-tiempo b { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--menta), var(--girasol)); border-radius: 99px; }

/* 1. atención: la rejilla llena el alto que queda */
.np-escena > .np-rejilla { flex: 1; min-height: 0; }
.np-rejilla { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); grid-template-rows: repeat(4, minmax(0, 1fr)); gap: clamp(5px, 1dvh, 9px); }
.np-celda { display: grid; place-items: center; min-height: 0; background: rgba(255, 255, 255, .08); border: 2px solid rgba(255, 255, 255, .1); border-radius: 14px; color: #fff; cursor: pointer; touch-action: manipulation; transition: transform .1s, background .15s; user-select: none; }
.np-celda .ico { width: min(58%, 60px); height: min(58%, 60px); stroke-width: 1.6; }
.np-celda:hover { background: rgba(255, 255, 255, .14); }
.np-celda.bien { background: rgba(61, 220, 151, .3); border-color: var(--menta); transform: scale(.92); }
.np-celda.mal { animation: np-sacude .35s; border-color: var(--coral); }
@keyframes np-sacude { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
@media (max-width: 600px) { .np-rejilla { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(5, minmax(0, 1fr)); } }

/* áreas que se ajustan al espacio libre (memoria) */
.np-escena > .np-area { flex: 1; min-height: 0; }
.np-area { container-type: size; display: grid; place-items: center; }
.np-fichas { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(8px, 2.4cqmin, 16px); width: min(100cqw, 100cqh, 440px); aspect-ratio: 1; }
.np-ficha { display: grid; place-items: center; border: 0; border-radius: 24px; color: #fff; background: color-mix(in srgb, var(--c) 40%, #1B2550); box-shadow: inset 0 -6px 0 rgba(0, 0, 0, .22); cursor: pointer; touch-action: manipulation; transition: transform .12s, background .12s, box-shadow .12s; }
.np-ficha .ico { width: 48%; height: 48%; stroke-width: 1.6; }
.np-ficha:disabled { cursor: default; }
.np-ficha.luz { background: var(--c); transform: scale(1.05); box-shadow: 0 0 0 5px #fff, 0 0 40px var(--c); }

/* 3. reacción */
.np-escena > .np-zona { flex: 1; min-height: 0; }
.np-zona { display: grid; place-items: center; align-content: center; gap: 10px; border: 0; border-radius: 24px; cursor: pointer; touch-action: manipulation; font: 600 clamp(1.2rem, 3.4dvh, 1.8rem) var(--display); color: #fff; background: rgba(255, 255, 255, .06); transition: background .08s; user-select: none; padding: 12px; }
.np-zona-txt { display: grid; justify-items: center; gap: 8px; }
.np-senal { width: clamp(64px, 16dvh, 130px); height: clamp(64px, 16dvh, 130px); stroke-width: 1.5; animation: np-pop .2s ease-out; }
@keyframes np-pop { from { transform: scale(.4); } to { transform: scale(1); } }
.np-zona.espera { color: #C9D0F2; }
.np-zona.ya { background: color-mix(in srgb, var(--menta) 38%, #1B2550); }
.np-zona.pronto { background: color-mix(in srgb, var(--coral) 45%, #1B2550); }
.np-zona.hecho { background: rgba(255, 255, 255, .1); color: var(--girasol); font-size: clamp(2rem, 7dvh, 3rem); }

/* 4. Stroop */
.np-palabra { display: grid; place-items: center; height: clamp(84px, 22dvh, 170px); font: 700 clamp(2.4rem, min(11vw, 10dvh), 5rem)/1 var(--display); letter-spacing: .02em; background: rgba(255, 255, 255, .96); border-radius: 22px; }
.np-colores { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.np-color { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: clamp(8px, 1.6dvh, 14px) 6px; border: 2px solid rgba(255, 255, 255, .12); border-radius: 18px; background: rgba(255, 255, 255, .06); color: #D6DBF5; font: 500 .82rem var(--sans); cursor: pointer; touch-action: manipulation; }
.np-color i { width: clamp(34px, 6.5dvh, 48px); aspect-ratio: 1; border-radius: 50%; background: var(--c); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .2); }
.np-color.bien { border-color: var(--menta); background: rgba(61, 220, 151, .18); }
.np-color.mal { border-color: var(--coral); background: rgba(255, 94, 91, .2); }

/* 5. autocontrol: anillo y disco se miden sobre el MISMO lado (el menor de la zona) */
.np-escena > .np-impulso { flex: 1; min-height: 0; }
.np-impulso { position: relative; container-type: size; border: 0; border-radius: 24px; background: rgba(255, 255, 255, .06); cursor: pointer; touch-action: none; overflow: hidden; -webkit-tap-highlight-color: transparent; }
.np-anillo, .np-disco { position: absolute; left: 50%; top: 50%; width: 88cqmin; height: 88cqmin; margin: 0; border-radius: 50%; }
.np-anillo { transform: translate(-50%, -50%) scale(var(--m, .8)); border: calc(3px / var(--m, .8)) dashed var(--girasol); box-sizing: border-box; z-index: 2; pointer-events: none; }
.np-disco { transform: translate(-50%, -50%) scale(var(--s, .12)); display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--disco) 55%, #fff), var(--disco) 70%); color: #fff; }
.np-disco .ico { width: 46%; height: 46%; stroke-width: 1.5; }
.np-impulso[data-r="bien"] { background: rgba(61, 220, 151, .22); }
.np-impulso[data-r="pronto"], .np-impulso[data-r="tarde"] { background: rgba(255, 94, 91, .2); }
.np-im-msg { margin: 0; font: 600 clamp(.9rem, 2.2dvh, 1.05rem) var(--display); color: #E6E9FF; }

/* postal de la ciudad */
.np-postal { position: relative; margin: 0; border-radius: 20px; overflow: hidden; background: rgba(255, 255, 255, .06); }
.np-postal img { width: 100%; height: clamp(84px, 20dvh, 180px); object-fit: cover; }
.np-postal figcaption { position: absolute; inset: auto 0 0 0; padding: 26px 16px 8px; background: linear-gradient(transparent, rgba(10, 14, 36, .9)); display: flex; flex-direction: column; gap: 1px; }
.np-postal b { font: 600 clamp(1.05rem, 2.6dvh, 1.25rem) var(--display); color: #fff; }
.np-postal span { font-size: .86rem; color: #D6DBF5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-postal small { font-size: .64rem; color: rgba(255, 255, 255, .6); }
.np-postal-sin { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px dashed rgba(255, 255, 255, .2); }
.np-postal-sin .ico { width: 34px; height: 34px; color: var(--girasol); }
.np-postal-sin b { display: block; font: 600 1.15rem var(--display); color: #fff; }
.np-postal-sin span { display: block; font-size: .88rem; color: #D6DBF5; }

/* resultados */
.np-resultados { display: grid; gap: clamp(6px, 1.2dvh, 10px); margin: 0; padding: 0; list-style: none; }
.np-res { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; background: #fff; color: var(--texto); border-radius: 16px; padding: clamp(8px, 1.4dvh, 12px) 14px; }
.np-res > .ico { width: 30px; height: 30px; color: var(--coral-2); }
.np-res b { display: block; font: 600 .98rem var(--display); color: var(--tinta); }
.np-res span { display: block; font-size: clamp(.76rem, 1.8dvh, .86rem); line-height: 1.35; color: var(--suave); }
.np-res strong { font: 700 clamp(1.1rem, 3dvh, 1.5rem) var(--display); color: var(--coral-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (min-width: 900px) { .np-resultados { grid-template-columns: 1fr 1fr; } .np-res:last-child { grid-column: 1 / -1; } }

.np-cta { display: grid; gap: clamp(8px, 1.6dvh, 14px); background: #fff; color: var(--texto); border-radius: 24px; padding: clamp(14px, 2.4dvh, 24px); box-shadow: 0 0 0 4px var(--girasol); }
.np-cta header { display: flex; align-items: center; gap: 16px; }
.np-cta header img { width: clamp(64px, 13dvh, 120px); aspect-ratio: 1; object-fit: cover; object-position: center 18%; border-radius: 50%; flex: none; }
.np-cta-pre { margin: 0 0 2px; font: 600 .78rem var(--display); text-transform: uppercase; letter-spacing: .08em; color: var(--coral-2); }
.np-cta h2 { font-size: clamp(1.15rem, 3dvh, 1.6rem); text-wrap: pretty; }
.np-cta ul { display: grid; gap: clamp(6px, 1.2dvh, 10px); margin: 0; padding: 0; list-style: none; font-size: clamp(.84rem, 2dvh, .95rem); line-height: 1.4; }
.np-cta li { display: flex; gap: 10px; align-items: flex-start; }
.np-cta li .ico { width: 20px; height: 20px; color: var(--coral); margin-top: 1px; }
.np-boton-wa { background: #1FA855; box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .18), 0 12px 26px -12px #1FA855; justify-self: start; }
.np-boton-wa:hover { background: #17924A; }
.np-boton-wa svg { width: 22px; height: 22px; }
.np-enlaces { margin: 0; font-size: .88rem; color: var(--suave); }
.np-cta .np-enlace { color: var(--coral-2); }
@media (max-width: 560px) { .np-boton-wa { justify-self: stretch; } }

/* ── contenido (portada debajo del juego y páginas SEO) ── */
.seccion { padding: 64px 0; }
.seccion-blanca { background: #fff; }
.cabecera { max-width: 760px; margin-bottom: 30px; }
.cabecera p { color: var(--suave); margin-top: 10px; }
.pre { display: inline-block; font: 600 .8rem var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--coral-2); margin-bottom: 10px; }
.pasos { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; list-style: none; margin: 0; padding: 0; }
.pasos li { background: #fff; border: 1px solid var(--linea); border-radius: var(--r); padding: 20px; }
.pasos b { display: block; font: 600 1.1rem var(--display); color: var(--tinta); margin-bottom: 4px; }
.pasos li .ico { width: 44px; height: 44px; padding: 10px; border-radius: 14px; background: #FFE9E8; color: var(--coral-2); margin-bottom: 12px; }
.grupos { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 26px 30px; }
.grupo h3 { font-size: 1.05rem; margin-bottom: 10px; display: flex; gap: 10px; align-items: center; }
.grupo h3 .ico { width: 34px; height: 34px; padding: 7px; border-radius: 10px; background: #FFE9E8; color: var(--coral-2); }
.grupo ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.grupo a { color: var(--texto); text-decoration: none; font-size: .95rem; }
.grupo a:hover { color: var(--coral-2); text-decoration: underline; }
.faq details { border-bottom: 1px solid var(--linea); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 36px 16px 0; font-weight: 600; color: var(--tinta); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { position: absolute; right: 4px; top: 16px; width: 22px; height: 22px; color: var(--coral); transition: transform .2s; }
.faq details[open] summary .ico { transform: rotate(45deg); }
.faq details > div { padding: 0 0 16px; max-width: 68ch; }

/* página SEO */
.pag-heroe { background: linear-gradient(180deg, #FFF4E8, var(--papel)); color: var(--texto); padding: 34px 0 36px; border-bottom: 1px solid var(--linea); }
.pag-heroe .migas { font-size: .85rem; margin-bottom: 14px; color: var(--suave); }
.pag-heroe .migas a { color: var(--suave); text-decoration: none; }
.pag-heroe h1 { color: var(--tinta); max-width: 980px; font-size: clamp(1.9rem, 4vw, 3rem); }
.pag-heroe .lead { font-size: 1.12rem; color: var(--texto); max-width: 72ch; margin: 14px 0 0; }
.juega { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; background: linear-gradient(135deg, var(--noche-2), #2A1F55); color: #fff; border-radius: 24px; padding: 18px 22px; margin: 26px 0 0; text-decoration: none; box-shadow: 0 0 0 3px var(--girasol); }
.juega .np-avatar { width: 84px; box-shadow: 0 0 0 3px var(--girasol); }
.juega b { display: block; font: 600 1.2rem var(--display); color: #fff; }
.juega span { color: #C9D0F2; font-size: .94rem; }
.juega em { font-style: normal; background: var(--coral); color: #fff; padding: 12px 20px; border-radius: 999px; font: 600 1rem var(--display); white-space: nowrap; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .18); }
.juega:hover em { background: var(--coral-2); }
@media (max-width: 640px) { .juega { grid-template-columns: auto 1fr; } .juega em { grid-column: 1 / -1; text-align: center; } .juega .np-avatar { width: 64px; } }
.pag-cuerpo { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; padding-top: 48px; padding-bottom: 60px; align-items: start; }
.pag-cuerpo article { max-width: 72ch; }
.pag-cuerpo h2 { font-size: clamp(1.35rem, 2.6vw, 1.7rem); margin: 34px 0 12px; }
.pag-cuerpo h2:first-child { margin-top: 0; }
.pag-cuerpo h3 { margin: 22px 0 8px; }
.pag-cuerpo ul, .pag-cuerpo ol { padding-left: 1.2em; }
.pag-cuerpo li { margin-bottom: 6px; }
.pag-cuerpo li::marker { color: var(--coral); }
.pag-cuerpo .tabla { overflow-x: auto; margin: 0 0 1.2em; }
.pag-cuerpo table { width: 100%; border-collapse: collapse; font-size: .94rem; background: #fff; border-radius: 14px; overflow: hidden; }
.pag-cuerpo th, .pag-cuerpo td { padding: 10px 14px; border-bottom: 1px solid var(--linea); text-align: left; vertical-align: top; }
.pag-cuerpo th { background: #F1F0F8; color: var(--tinta); }
.lado { position: sticky; top: 80px; display: grid; gap: 14px; }
.tarjeta-dr { background: #fff; border: 1px solid var(--linea); border-radius: var(--r); padding: 18px; }
.tarjeta-dr img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; object-position: center 15%; margin-bottom: 10px; }
.tarjeta-dr b { display: block; color: var(--tinta); }
.tarjeta-dr p { font-size: .9rem; color: var(--suave); margin: 6px 0 12px; }
.tarjeta-dr .precio { font: 700 1.5rem var(--display); color: var(--tinta); margin: 0; }
.tarjeta-dr .precio small { font: 400 .8rem var(--sans); color: var(--suave); }
.btn-wa { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; border-radius: 999px; background: #1FA855; color: #fff; font-weight: 600; text-decoration: none; margin-top: 12px; }
.btn-wa:hover { background: #17924A; color: #fff; }
.relacionadas { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.relacionadas a { display: block; background: #fff; border: 1px solid var(--linea); border-radius: 18px; padding: 16px; text-decoration: none; color: var(--texto); }
.relacionadas a:hover { border-color: var(--coral); }
.relacionadas b { display: block; color: var(--tinta); font: 600 1.02rem var(--display); margin-bottom: 4px; }
.relacionadas span { font-size: .88rem; color: var(--suave); }
@media (max-width: 900px) { .pag-cuerpo { grid-template-columns: 1fr; gap: 26px; } .lado { position: static; } }

.pie { background: var(--noche); color: #AEB6DE; padding: 44px 0 90px; font-size: .9rem; }
.pie a { color: #D6DBF5; text-decoration: none; }
.pie a:hover { color: var(--girasol); }
.pie-rejilla { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 26px; }
.pie h3 { color: #fff; font-size: .95rem; margin-bottom: 10px; }
.pie ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pie-legal { margin-top: 30px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: .82rem; }
.pie-credito { font-size: .78rem; color: #8189B8; }
@media (max-width: 760px) { .pie-rejilla { grid-template-columns: 1fr; } }
.wa-flota { position: fixed; right: 16px; bottom: 16px; z-index: 40; display: flex; align-items: center; gap: 8px; background: #1FA855; color: #fff; border-radius: 999px; padding: 12px 18px 12px 14px; font: 600 .92rem var(--sans); text-decoration: none; box-shadow: 0 12px 28px -10px rgba(0, 0, 0, .5); }
.wa-flota svg { width: 22px; height: 22px; }

/* ── ajustes 23-sep (tarde) ── */
.juega .np-avatar { --av: 84px; }
.pie .logo { font-size: 1.2rem; }
.relacionadas b { text-wrap: pretty; }
@media (max-width: 600px) { .pag-heroe h1 { font-size: clamp(1.6rem, 7vw, 2rem); } .cab .envoltura { height: 58px; } .logo { font-size: 1.14rem; } }
/* invitación del juego en la portada: altura natural, no pantalla completa */
.np-juego:not(.np-pantalla) .np-escena { overflow: visible; }
/* franja para las páginas antiguas: acceso visible al juego y al WhatsApp */
.np-franja { background: #fff; border: 2px solid var(--girasol); border-radius: 20px; padding: 16px 18px; margin: 24px auto; max-width: 1060px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; font-family: var(--sans); color: var(--texto); }
.np-franja p { margin: 0; flex: 1 1 280px; font-size: 1rem; line-height: 1.45; }
.np-franja p b { color: var(--tinta); }
.np-franja a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; font-weight: 600; text-decoration: none; }
.np-franja .f-juego { background: var(--coral); color: #fff; }
.np-franja .f-wa { background: #1FA855; color: #fff; }
.np-franja .ico { width: 20px; height: 20px; }
.np-hud[hidden] { display: none; }
