/* Tema v2 (rediseño oscuro estilo /estado y /verificaid).
   Solo lo carga linkrels.php cuando la página activa $tema_v2 (de momento, solo en vista previa).
   Orden: tema-v2-contenido.css (generado: versión oscura automática de los colores fijos de todas las hojas)
   y después esta hoja, con las variables de color, el armazón y los ajustes finos.
   Los selectores van con "html body" delante para ganar siempre a los generados ("html ..."). */

/* ===== Colores del sitio en versión oscura =====
   devstilos/basico y las CSS de sección pintan casi todo con estas variables (más de 1.000 usos),
   así que redefinirlas oscurece la mayoría del contenido sin tocar cada regla.
   --dvgo-color-muy-oscuro, -footer-fondo y -footer-texto no cambian: son la base del propio tema v2 */
:root {
    --dvgo-color-principal: #2b9fd6;          /* texto, enlaces y bordes; también fondo con texto claro encima */
    --dvgo-color-principal-trans: #2b9fd61f;
    --dvgo-color-principal-claro: var(--v2-acento, #39c0ff);
    --dvgo-color-claro: #0d3b55;              /* antes fondo celeste claro; como texto va sobre --principal */
    --dvgo-color-oscuro: #9bc6dc;             /* títulos y textos que eran azul oscuro */
    --dvgo-gris-fondo-claro: #0a2a3d;
    --dvgo-gris-fondo-tds: #082436;
    --dvgo-tds-fondo-claro-contraste: #0b6f8a;
}

/* ===== Fondo y caja principal ===== */
html body {
    color: #cdeaf7;
    background: radial-gradient(ellipse 120% 60% at 50% 0%, #0a4466 0%, var(--dvgo-color-muy-oscuro) 40%, var(--dvgo-color-footer-fondo) 100%) fixed;
    background-color: var(--dvgo-color-footer-fondo);
}
html body #cajaprincipal {
    background: transparent;
    box-shadow: none;
}

/* ===== Logo blanco (mismos tamaños que el azul en cada punto de corte de devstilos.css) ===== */
html body #cabeceralogo h1 { background-image: url(../imagen/logo-devuego-blanco-700.png); }
@media screen and (min-width: 970px) and (max-width: 1199px) {
    html body #cabeceralogo h1 { background-image: url(../imagen/logo-devuego-blanco-600.png); }
}
@media screen and (min-width: 481px) and (max-width: 969px) {
    html body #cabeceralogo h1 { background-image: url(../imagen/logo-devuego-blanco-800.png); }
}
@media screen and (max-width: 480px) {
    html body #cabeceralogo h1 { background-image: url(../imagen/logo-devuego-blanco-600.png); }
}

/* ===== Barra superior de secciones (bloquestop) ===== */
html body #bloquestop {
    background: rgba(2, 24, 37, 0.65);
    box-shadow: 0 0 0 1px rgba(var(--v2-acento-rgb, 57, 192, 255), 0.14);
}
html body #bloquestop .bloquebig { color: #cdeaf7; transition: background 0.2s ease, color 0.2s ease; }
html body #bloquestop a, html body #bloquestop .network { color: #9bc6dc; }
html body #bloquestop .bloquebig:hover {
    background-color: rgba(var(--v2-acento-rgb, 57, 192, 255), 0.12);
    color: #fff;
}
/* Sección activa: ya no hay caja blanca a la que "conectar"; va "encendida" (relleno cian y texto oscuro), igual que el dock de la ficha */
html body #bloquestop .bloquebigselect {
    background-color: var(--dvgo-color-footer-texto);
    color: var(--dvgo-color-footer-fondo);
    border-radius: 0.5rem;
    box-shadow: 0 0 16px -4px rgba(var(--v2-acento-rgb, 57, 192, 255), 0.7);
}
html body #bloquestop .bloquebigselect i { color: var(--dvgo-color-footer-fondo); }

/* ===== Buscador ===== */
html body #buscador #busqueda {
    color: #eafcff;
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(var(--v2-acento-rgb, 57, 192, 255), 0.35);
}
html body #buscador #busqueda::placeholder { color: #9bc6dc; opacity: 0.7; }
html body #buscador #busqueda:focus {
    border-color: rgba(var(--v2-acento-rgb, 57, 192, 255), 0.8);
    box-shadow: 0 0 16px -2px rgba(var(--v2-acento-rgb, 57, 192, 255), 0.6);
}
html body #buscador .boton { color: var(--dvgo-color-footer-texto); }

/* ===== Menú: barra y desplegables con el acabado de los paneles ===== */
/* La sombra de basico.css va en .wrapper-menu, que es cuadrado: se pasa a la barra para que siga sus esquinas redondeadas */
html body .wrapper-menu { box-shadow: none; }
html body #bloquesindex {
    background: rgba(2, 24, 37, 0.65);
    border: 1px solid rgba(var(--v2-acento-rgb, 57, 192, 255), 0.18);
    border-radius: 0.8rem;
    box-shadow: rgba(0, 0, 0, 0.35) 0 0.5rem 1rem 0.3rem;
    -webkit-backdrop-filter: blur(8px);
            backdrop-filter: blur(8px);
}
html body #bloquesindex .bloque { transition: background 0.2s ease, color 0.2s ease; }
html body #bloquesindex .bloque:hover { background: rgba(var(--v2-acento-rgb, 57, 192, 255), 0.15); color: #fff; }
html body #bloquesindex .bloque em { color: var(--dvgo-color-footer-texto); }
html body .megamenu {
    background: linear-gradient(145deg, var(--dvgo-color-muy-oscuro) 0%, var(--dvgo-color-footer-fondo) 100%);
    border: 1px solid rgba(var(--v2-acento-rgb, 57, 192, 255), 0.18);
    border-top: none;
    box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.6);
}

/* ===== Pie ===== */
html body #footer {
    background: linear-gradient(145deg, var(--dvgo-color-muy-oscuro) 0%, var(--dvgo-color-footer-fondo) 100%);
    border-radius: 1rem;
    box-shadow: 0 0 0 1px rgba(var(--v2-acento-rgb, 57, 192, 255), 0.1), 0 12px 30px -10px rgba(0, 0, 0, 0.5);
}
html body #footer a { color: #cdeaf7; }
html body #footer a:hover { color: #fff; }
html body #ygn { background-color: transparent; }

/* ===== Ajustes finos del contenido ===== */
/* Barra de título de fichas (juego, estudio...): era fondo azul con texto celeste; ahora panel oscuro con título blanco */
html body #titulojuego, html body #nombredesarrollador {
    color: #fff;
    background: linear-gradient(110deg, rgba(43, 159, 214, 0.28) 0%, rgba(43, 159, 214, 0.06) 70%);
    border: 1px solid rgba(var(--v2-acento-rgb, 57, 192, 255), 0.25);
    border-left: 4px solid var(--dvgo-color-footer-texto);
}
/* Campos de texto y desplegables: oscuros con borde cian */
html body input[type="text"], html body input[type="search"], html body input[type="email"], html body input[type="number"],
html body input:not([type]), html body select, html body textarea {
    color: #eafcff;
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(var(--v2-acento-rgb, 57, 192, 255), 0.35);
    border-radius: 0.4rem;
}
html body input::placeholder, html body textarea::placeholder { color: #7fa3b8; }
html body select option { background-color: var(--dvgo-color-muy-oscuro); color: #eafcff; }
/* Índice por letras del listado de juegos: los contadores bajo cada letra */
html body #letras .bloqueletra { opacity: 0.85; }
html body #letras .bloqueletra, html body #letras .bloqueletra * { color: #9bc6dc; }
html body #letras .aletra { color: var(--dvgo-color-footer-texto); }
/* Aviso de cookies */
html body #cajacookies {
    color: #cdeaf7;
    background: linear-gradient(145deg, var(--dvgo-color-muy-oscuro) 0%, var(--dvgo-color-footer-fondo) 100%);
    border-top: 1px solid rgba(var(--v2-acento-rgb, 57, 192, 255), 0.3);
    box-shadow: 0 -12px 30px -10px rgba(0, 0, 0, 0.7);
}
html body #cajacookies b, html body #cajacookies strong, html body #cajacookies label { color: #fff; }
/* Listados: columnas resaltadas con el color principal de fondo (en oscuro, un cian que deslumbra) -> panel cian tenue */
html body :is(#listadoestudios, #listadoeditoras, #listadoplataformas, #listadomedios, #listadotiendas) .tdlocalidad,
html body :is(#desarrolladores, #listadodesarrolladores, #autores, #desarrollos, #desarrollosext) :is(.tddesarrollos, .tddesarrollosfix),
html body #listadopersonas .tdmedios,
html body #publicaciones .tdpublicaciones,
html body #deventos :is(.tdgeneros, .tdlugar),
html body #asociacionesmiembro .tdasociaciones,
html body #charlas .tdpersona,
html body #revistasmedio .tdnum,
html body #programas :is(.tdtemp, .tdmiembrosfix) {
    background-color: rgba(var(--v2-acento-rgb, 57, 192, 255), 0.08);
    color: #cdeaf7;
}
html body :is(#listadoestudios, #listadoeditoras, #listadoplataformas, #listadomedios, #listadotiendas) .tdlocalidad :is(a, i),
html body #deventos .tdlugar :is(a, i) { color: #9bc6dc; }
html body #deventos .tdlugar:hover { background-color: var(--dvgo-color-claro); }
/* Anuario: lista de juegos (estilos dentro de anuario/index.php, el generador no los ve) */
html body .lista-juegos-anuario .fila-juego { background: rgba(0, 0, 0, 0.22); border-color: rgba(var(--v2-acento-rgb, 57, 192, 255), 0.15); }
html body .lista-juegos-anuario .fila-juego:hover { background: rgba(var(--v2-acento-rgb, 57, 192, 255), 0.1); border-color: rgba(var(--v2-acento-rgb, 57, 192, 255), 0.45); }
html body .lista-juegos-anuario .fila-juego .titulo-juego { color: #eafcff; }
html body .lista-juegos-anuario .fila-juego .sin-portada { background: var(--dvgo-color-muy-oscuro); color: #7fa3b8; }

/* Botones y campos heredan la fuente de la página (el navegador les pone la del sistema). Con :where la especificidad es 0:
   cualquier clase que fije su propia fuente (monoespaciada, etc.) sigue mandando */
:where(#cajaprincipal) :where(button, input, select, textarea) { font-family: inherit; }

/* ===== Migas de pan (bloques/migas-v2.php): "DeVuego ›" en la barra del menú de sección y el resto encima del h1 ===== */
html body #bloquesindex .v2-raiz { color: #9bc6dc; }
html body #bloquesindex .v2-raiz i { color: var(--v2-acento, #39c0ff); font-size: 0.85em; }
html body #bloquesindex .v2-raiz-sep { display: inline-flex; align-items: center; color: #3d6178; font-size: 1.3rem; margin: 0 -0.15rem; }
.v2-raiz-movil { float: left; margin-top: 0.3rem; font-size: 0.9rem; font-weight: 600; color: #3d6178; }
.v2-raiz-movil a { color: #9bc6dc !important; text-decoration: none !important; }
.v2-raiz-movil a + b + a { color: #fff !important; }
.v2-raiz-movil b { margin: 0 0.2rem; }
html body #bloquesindex .v2-raiz-sep + .bloque .fa-home { display: none; }
.v2-raiz-movil i { color: var(--v2-acento, #39c0ff); font-size: 0.8rem; margin-right: 0.2rem; }
.v2-migas { display: none; margin: 0 0 0.35rem; overflow-x: auto; scrollbar-width: none; }
.v2-migas.v2-migas-ok { display: block; }
.v2-migas::-webkit-scrollbar { display: none; }
.v2-migas ol { display: flex; align-items: center; margin: 0; padding: 0; list-style: none; white-space: nowrap; font-size: 0.78rem; text-transform: none; letter-spacing: 0; }
.v2-migas li { display: inline-flex; align-items: center; color: #7fa3b8; min-width: 0; }
.v2-migas li + li::before { content: "\203A"; margin: 0 0.4rem; color: #3d6178; font-size: 0.95rem; }
.v2-migas a, .v2-migas span { color: #9bc6dc !important; text-decoration: none !important; max-width: 32ch; overflow: hidden; text-overflow: ellipsis; display: inline-block; vertical-align: bottom; }
.v2-migas a:hover { color: #fff !important; text-decoration: underline !important; }
.sp-datos .v2-migas-ok ~ .sp-volver { display: none; } /* en las subpáginas de juego las migas ya llevan a la ficha */
