/* ============================
   Sumando valores restando riscos - Estilos
   ============================ */

/* === Variables CSS (modo claro por defecto) === */
:root {
    --fondo: #FFFFFF;
    --fondo-claro: #F7F9FC;
    --texto: #1A202C;
    --texto-secundario: #4A5568;
    --azul-profundo: #0B1D3A;
    --dorado: #C9A84C;
    --dorado-hover: #B8943F;
    --borde: #E2E8F0;
    --sombra: 0 4px 12px rgba(0,0,0,0.06);
    --sombra-fuerte: 0 8px 24px rgba(0,0,0,0.12);
    --fondo-tarjeta: #FFFFFF;
    --fondo-footer: #0B1D3A;
    --texto-footer: #E2E8F0;
    --transicion: 0.3s ease;
    --fuente-cuerpo: 'Nunito Sans', sans-serif;
    --fuente-titulos: 'Open Sans', sans-serif;
    --radio: 12px;
    --ancho-max: 1200px;
}

/* === Variables para modo oscuro === */
body.dark-mode {
    --fondo: #121212;
    --fondo-claro: #1E1E1E;
    --texto: #E0E0E0;
    --texto-secundario: #B0B0B0;
    --azul-profundo: #90CAF9;
    --dorado: #FFD54F;
    --dorado-hover: #FFC107;
    --borde: #333333;
    --sombra: 0 4px 12px rgba(0,0,0,0.4);
    --sombra-fuerte: 0 8px 24px rgba(0,0,0,0.6);
    --fondo-tarjeta: #1E1E1E;
    --fondo-footer: #000000;
    --texto-footer: #CCCCCC;
}

/* === Reset === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--fuente-cuerpo);
    background-color: var(--fondo);
    color: var(--texto);
    line-height: 1.6;
    transition: background-color var(--transicion), color var(--transicion);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--fuente-titulos);
    font-weight: 800;
    color: var(--azul-profundo);
    transition: color var(--transicion);
    letter-spacing: -0.01em;
}

a {
    color: var(--azul-profundo);
    text-decoration: none;
    transition: color var(--transicion);
}
a:hover { color: var(--dorado); }

img, video { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

:focus-visible {
    outline: 3px solid var(--dorado);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Utilidades */
.contenedor {
    width: 100%;
    max-width: var(--ancho-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.seccion {
    padding: 4rem 0;
}
.seccion-clara {
    background-color: var(--fondo-claro);
    transition: background-color var(--transicion);
}

.seccion-titulo {
    text-align: center;
    margin-bottom: 0.5rem;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
}
.seccion-titulo::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--dorado);
    margin: 0.5rem auto 1.5rem;
}

.seccion-descripcion {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 2rem;
    color: var(--texto-secundario);
}

.sub-titulo {
    font-family: var(--fuente-titulos);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

/* Botones */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transicion);
    text-align: center;
}
.btn-dorado {
    background-color: var(--dorado);
    color: var(--texto);
    border-color: var(--dorado);
}
.btn-dorado:hover {
    background-color: var(--dorado-hover);
    transform: translateY(-1px);
    box-shadow: var(--sombra);
}
.btn-outline {
    background: transparent;
    color: var(--azul-profundo);
    border-color: var(--azul-profundo);
}
.btn-outline:hover {
    background-color: var(--azul-profundo);
    color: var(--fondo);
}

/* ==================== HEADER ==================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    background-color: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--borde);
    padding: 0.5rem 0;
    box-shadow: var(--sombra);
    transition: background-color var(--transicion);
}
body.dark-mode .header {
    background-color: rgba(18,18,18,0.95);
}
.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    flex-wrap: nowrap;
    overflow: hidden;
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 800;
    font-size: clamp(0.7rem, 2vw, 1.3rem);
    letter-spacing: 1px;
    white-space: nowrap;
    flex-shrink: 0;
}
.logo-texto {
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
    max-width: none;
    display: inline;
}

.nav-lista {
    display: flex;
    gap: 0.1rem;
    flex-shrink: 1;
    overflow: hidden;
    flex-wrap: nowrap;
}
.nav-enlace {
    padding: 0.5rem 0.6rem;
    border-radius: 6px;
    font-weight: 500;
    font-size: clamp(0.7rem, 1.5vw, 0.9rem);
    color: var(--texto-secundario);
    white-space: nowrap;
}
.nav-enlace:hover,
.nav-enlace.activo {
    background-color: var(--fondo-claro);
    color: var(--azul-profundo);
}

.btn-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    flex-shrink: 0;
}
.hamburguesa { display: flex; flex-direction: column; gap: 5px; width: 28px; }
.hamburguesa .linea {
    height: 2.5px;
    background-color: var(--texto);
    border-radius: 2px;
    transition: var(--transicion);
}

.btn-tema {
    background: none;
    border: 1px solid var(--borde);
    border-radius: 50%;
    width: 38px;
    height: 38px;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transicion);
    color: var(--texto);
    flex-shrink: 0;
}
.btn-tema:hover { background-color: var(--fondo-claro); }

/* ==================== HERO ==================== */
.seccion-hero {
    padding-top: 7rem;
    padding-bottom: 3rem;
    background: linear-gradient(135deg, #f0f4f8 0%, #e8eff5 100%);
    transition: background var(--transicion);
}
body.dark-mode .seccion-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}
.hero-contenido {
    display: flex;
    align-items: center;
    gap: 2rem;
    min-height: 50vh;
}
.hero-texto { flex: 1; }
.hero-titulo { margin-bottom: 1rem; }
.hero-descripcion {
    font-size: 1.1rem;
    color: var(--texto-secundario);
    margin-bottom: 2rem;
    max-width: 500px;
}
.hero-imagen {
    flex: 0 0 250px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-decoracion {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--dorado), transparent);
    opacity: 0.2;
    position: absolute;
}
.hero-emoji { font-size: 5rem; position: relative; z-index: 1; }

.texto-dorado { color: var(--dorado); }

/* Tarjetas preview (inicio) */
.grid-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}
.tarjeta-preview {
    display: block;
    background-color: var(--fondo-tarjeta);
    border-radius: var(--radio);
    padding: 1.5rem;
    box-shadow: var(--sombra);
    transition: transform var(--transicion), box-shadow var(--transicion);
    text-align: center;
    border: 1px solid var(--borde);
}
.tarjeta-preview:hover {
    transform: translateY(-4px);
    box-shadow: var(--sombra-fuerte);
}
.tarjeta-preview-icono { font-size: 2.5rem; display: block; margin-bottom: 0.5rem; }
.tarjeta-preview h3 {
    font-family: var(--fuente-titulos);
    font-weight: 700;
    margin-bottom: 0.3rem;
}

/* ==================== SERVIÇOS - BOTÓNS DESPREGABLES ==================== */
.bloque-tema {
    margin-bottom: 3rem;
}
.bloque-cabecera {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--borde);
}
.bloque-icono {
    font-size: 2rem;
    flex-shrink: 0;
}
.bloque-titulo {
    font-family: var(--fuente-titulos);
    font-size: 1.5rem;
    color: var(--azul-profundo);
    margin: 0;
}
.bloque-descripcion {
    color: var(--texto-secundario);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    max-width: 800px;
}

.botones-desplegables {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.boton-desplegable {
    background-color: var(--fondo-tarjeta);
    border: 1px solid var(--borde);
    border-radius: var(--radio);
    overflow: hidden;
    transition: all var(--transicion);
    box-shadow: var(--sombra);
    border-top: 4px solid var(--dorado);
}
.boton-desplegable:hover {
    box-shadow: var(--sombra-fuerte);
    border-color: var(--dorado);
}
.boton-desplegable[open] {
    box-shadow: var(--sombra-fuerte);
}
.boton-cabecera {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    list-style: none;
    font-weight: 600;
    transition: all var(--transicion);
    background: linear-gradient(135deg, var(--fondo-tarjeta) 0%, var(--fondo-claro) 100%);
}
.boton-cabecera::-webkit-details-marker { display: none; }
.boton-cabecera:hover {
    background: linear-gradient(135deg, var(--fondo-claro) 0%, var(--fondo-tarjeta) 100%);
}
.boton-peligro { border-top-color: #c62828; }
body.dark-mode .boton-peligro { border-top-color: #ef5350; }
.boton-consejo { border-top-color: #4caf50; }
body.dark-mode .boton-consejo { border-top-color: #66bb6a; }
.boton-icono {
    font-size: 1.5rem;
    flex-shrink: 0;
    transition: transform var(--transicion);
}
.boton-desplegable[open] .boton-icono { transform: scale(1.2); }
.boton-texto {
    flex: 1;
    font-family: var(--fuente-titulos);
    font-size: 1.05rem;
    color: var(--azul-profundo);
    font-weight: 700;
}
.boton-flecha {
    font-size: 0.8rem;
    color: var(--dorado);
    transition: transform var(--transicion);
    flex-shrink: 0;
}
.boton-desplegable[open] .boton-flecha { transform: rotate(180deg); }
.boton-contenido {
    padding: 0 1.5rem 1.5rem 1.5rem;
    color: var(--texto-secundario);
    border-top: 1px solid var(--borde);
    padding-top: 1rem;
    animation: desplegar 0.3s ease;
}
@keyframes desplegar {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
.boton-contenido p { line-height: 1.7; margin-bottom: 0.75rem; font-size: 1rem; }
.alerta-mini {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 0.75rem 1rem;
    border-radius: 0 8px 8px 0;
    font-size: 0.9rem;
    color: #5d4037;
    margin-top: 0.5rem;
}
body.dark-mode .alerta-mini { background-color: #332b00; color: #ffe082; }

.tarjetas-destacadas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.tarjeta-destacada {
    background-color: var(--fondo-tarjeta);
    padding: 1.5rem;
    border-radius: var(--radio);
    text-align: center;
    border: 1px solid var(--borde);
    box-shadow: var(--sombra);
    transition: all var(--transicion);
}
.tarjeta-destacada:hover { transform: translateY(-4px); box-shadow: var(--sombra-fuerte); }
.tarjeta-rapida { border-top: 4px solid var(--dorado); }
.tarjeta-alerta { border-top-color: #c62828; }
body.dark-mode .tarjeta-alerta { border-top-color: #ef5350; }
.tarjeta-legal { border-top: 4px solid #4caf50; }
body.dark-mode .tarjeta-legal { border-top-color: #66bb6a; }
.tarjeta-icono { font-size: 2.5rem; display: block; margin-bottom: 0.75rem; }
.tarjeta-destacada h3 {
    font-family: var(--fuente-titulos);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--azul-profundo);
    margin-bottom: 0.5rem;
}
.tarjeta-destacada p { color: var(--texto-secundario); font-size: 0.9rem; line-height: 1.5; }

.aviso-destacado {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background-color: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: var(--radio);
    margin: 1.5rem 0;
    border-left: 4px solid #ffc107;
}
body.dark-mode .aviso-destacado { background-color: #332b00; border-color: #ffc107; }
.aviso-destacado p { margin: 0; color: #5d4037; }
body.dark-mode .aviso-destacado p { color: #ffe082; }
.aviso-icono { font-size: 1.5rem; flex-shrink: 0; }
.aviso-importante { background-color: #fce4ec; border-color: #c62828; border-left-color: #c62828; }
.aviso-importante p { color: #5d4037; }
body.dark-mode .aviso-importante { background-color: #2a1a1a; }
.aviso-conselho { background-color: #e8f5e9; border-color: #4caf50; border-left-color: #4caf50; }
.aviso-conselho p { color: #2e7d32; }
body.dark-mode .aviso-conselho { background-color: #1a2e1a; }
body.dark-mode .aviso-conselho p { color: #81c784; }
.aviso-final { background-color: #e3f2fd; border-color: #1976d2; border-left-color: #1976d2; }
.aviso-final p { color: #0d47a1; }
body.dark-mode .aviso-final { background-color: #0d2137; }
body.dark-mode .aviso-final p { color: #90caf9; }

.pasos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}
.paso-item {
    text-align: center;
    background-color: var(--fondo-tarjeta);
    padding: 1.5rem 1rem;
    border-radius: var(--radio);
    border: 1px solid var(--borde);
    border-top: 4px solid var(--dorado);
    box-shadow: var(--sombra);
    transition: all var(--transicion);
}
.paso-item:hover { transform: translateY(-4px); box-shadow: var(--sombra-fuerte); }
.paso-numero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--dorado);
    color: var(--azul-profundo);
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}
.paso-item h4 {
    font-family: var(--fuente-titulos);
    font-weight: 700;
    margin-bottom: 0.3rem;
    color: var(--azul-profundo);
    font-size: 1rem;
}
.paso-item p { color: var(--texto-secundario); font-size: 0.85rem; }
.pasos-lema {
    text-align: center;
    font-weight: 600;
    color: var(--azul-profundo);
    margin-bottom: 0.5rem;
    font-size: 1rem;
    font-style: italic;
}
.bloque-peche { padding-top: 2rem; border-top: 2px solid var(--borde); }
.bloque-nota {
    text-align: center;
    font-weight: 600;
    color: var(--azul-profundo);
    margin-top: 1rem;
    font-size: 0.95rem;
    transition: color var(--transicion);
}
.paso-plazo {
    font-size: 0.8rem;
    color: var(--texto-secundario);
    margin-top: 0.5rem;
    font-weight: normal;
}
.paso-detalle {
    font-size: 0.85rem;
    color: var(--azul-profundo);
    font-weight: 500;
    margin-top: 0.5rem;
}
.paso-lista {
    text-align: left;
    margin-top: 0.5rem;
    padding-left: 1.2rem;
    list-style: disc;
}
.paso-lista li {
    margin-bottom: 0.3rem;
    font-size: 0.85rem;
    color: var(--texto-secundario);
}

/* ==================== PROBLEMÁTICAS ==================== */
.problematicas-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}
.problematicas-lista { display: flex; flex-direction: column; gap: 1rem; }
.problema-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-radius: var(--radio);
    background-color: var(--fondo-tarjeta);
    border-left: 4px solid var(--dorado);
    box-shadow: var(--sombra);
}
.problema-icono { font-size: 1.8rem; flex-shrink: 0; }
.problema-item h2 {
    font-family: var(--fuente-titulos);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}
.graficos-titulo { text-align: center; margin-bottom: 0.5rem; }
.graficos-subtitulo { text-align: center; font-size: 0.9rem; color: var(--texto-secundario); margin-bottom: 1rem; }
.canvas-contenedor {
    background-color: var(--fondo-tarjeta);
    border-radius: var(--radio);
    padding: 1rem;
    box-shadow: var(--sombra);
    margin-bottom: 1rem;
    text-align: center;
}
.fuente-datos { font-size: 0.8rem; text-align: center; color: var(--texto-secundario); }

/* ==================== ACCESIBILIDAD ==================== */
.accesibilidad-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}
.accesibilidad-info { display: flex; flex-direction: column; gap: 1rem; }
.accesibilidad-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem;
    background-color: var(--fondo-tarjeta);
    border-radius: var(--radio);
    box-shadow: var(--sombra);
}
.accesibilidad-check { font-size: 1.5rem; flex-shrink: 0; }
.video-contenedor {
    background: #000;
    border-radius: var(--radio);
    overflow: hidden;
}
.video-info {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: var(--texto-secundario);
    text-align: center;
}

/* ==================== ROL PLAY ==================== */
.rolplay-contenedor { max-width: 650px; margin: 0 auto; }
.rolplay-seleccion { text-align: center; }
.rolplay-roles { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn-rol {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem 2rem;
    background: var(--fondo-tarjeta);
    border: 2px solid var(--borde);
    border-radius: var(--radio);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transicion);
}
.btn-rol:hover, .btn-rol.seleccionado {
    border-color: var(--dorado);
    background-color: var(--fondo-claro);
}
.rolplay-escenario {
    background: var(--fondo-tarjeta);
    border-radius: var(--radio);
    padding: 2rem;
    box-shadow: var(--sombra);
    margin-top: 1.5rem;
}
.rolplay-cabecera { display: flex; justify-content: space-between; margin-bottom: 1rem; }
.rolplay-etiqueta {
    background: var(--azul-profundo);
    color: var(--fondo);
    padding: 0.25rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
}
.rolplay-puntos { font-weight: 700; color: var(--dorado); }
.rolplay-opciones { display: flex; flex-direction: column; gap: 0.7rem; margin: 1rem 0; }
.btn-opcion {
    width: 100%;
    text-align: left;
    padding: 0.8rem 1rem;
    background: var(--fondo-claro);
    border: 2px solid var(--borde);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: var(--transicion);
}
.btn-opcion:hover:not(:disabled) { border-color: var(--dorado); }
.btn-opcion:disabled { opacity: 0.6; cursor: not-allowed; }
.rolplay-feedback { padding: 1rem; border-radius: 8px; margin: 1rem 0; display: none; }
.rolplay-feedback.visible { display: block; }
.rolplay-feedback.exito { background: #e6ffed; border: 1px solid #2e7d32; color: #1b5e20; }
.rolplay-feedback.error-fb { background: #ffebee; border: 1px solid #c62828; color: #b71c1c; }
.rolplay-feedback.info-fb { background: #fff8e1; border: 1px solid #f9a825; color: #5d4037; }
.rolplay-acciones { display: flex; gap: 1rem; justify-content: center; margin-top: 1rem; }

/* Vídeos en Rol Play */
.rolplay-videos {
    margin-top: 3rem;
    padding: 1.5rem;
    background: var(--fondo-tarjeta);
    border-radius: var(--radio);
    box-shadow: var(--sombra);
    text-align: center;
}
.video-desc { margin-bottom: 1rem; font-size: 0.9rem; color: var(--texto-secundario); }
.video-selector { display: flex; align-items: center; justify-content: center; gap: 0.75rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.campo-select {
    padding: 0.6rem 1rem;
    border: 2px solid var(--borde);
    border-radius: 8px;
    background: var(--fondo);
    color: var(--texto);
    font-family: var(--fuente-cuerpo);
    font-size: 0.95rem;
    min-width: 220px;
    transition: border var(--transicion);
}
.campo-select:focus { border-color: var(--dorado); outline: none; }
.video-player-contenedor {
    max-width: 720px;
    margin: 0 auto;
    border-radius: var(--radio);
    overflow: hidden;
    background: #000;
    box-shadow: var(--sombra-fuerte);
}
.video-player-contenedor video { width: 100%; display: block; }

/* ==================== RECLAMACIONES / RECURSOS ==================== */
.aviso-sesion {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    background: #fff8e1;
    border: 1px solid #f9a825;
    padding: 1rem;
    border-radius: var(--radio);
    margin-bottom: 2rem;
    font-size: 0.9rem;
}
body.dark-mode .aviso-sesion { background: #332b00; border-color: #f9a825; color: #ffe082; }
.recursos-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.recurso-formulario { background: var(--fondo-tarjeta); padding: 1.5rem; border-radius: var(--radio); box-shadow: var(--sombra); }
.campo { margin-bottom: 1rem; }
.campo label { display: block; font-weight: 600; margin-bottom: 0.3rem; }
.campo input[type="url"], .campo input[type="file"] {
    width: 100%;
    padding: 0.6rem;
    border: 2px solid var(--borde);
    border-radius: 6px;
    background: var(--fondo);
    color: var(--texto);
}
.error-msg { color: #e53935; font-size: 0.8rem; }
.recursos-galeria { background: var(--fondo-tarjeta); padding: 1.5rem; border-radius: var(--radio); box-shadow: var(--sombra); }
.galeria-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.galeria-item { background: var(--fondo-claro); border-radius: var(--radio); padding: 0.8rem; position: relative; border: 1px solid var(--borde); }
.galeria-item img { border-radius: 6px; margin-bottom: 0.5rem; max-height: 150px; object-fit: cover; }
.galeria-item video, .galeria-item audio { width: 100%; border-radius: 6px; }
.galeria-enlace a { word-break: break-all; font-size: 0.9rem; }
.btn-eliminar-recurso {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #e53935;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sin-datos { text-align: center; padding: 2rem; color: var(--texto-secundario); }
.sin-datos span { font-size: 2.5rem; display: block; margin-bottom: 0.5rem; }

/* ==================== FOOTER ==================== */
.footer {
    background: var(--fondo-footer);
    color: var(--texto-footer);
    padding: 1.5rem 0;
    text-align: center;
    transition: background var(--transicion);
}
.footer-enlace { color: var(--dorado); font-weight: 600; }
.footer-enlace:hover { text-decoration: underline; }
.footer-copy { margin-top: 0.3rem; font-size: 0.9rem; }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .btn-menu { display: flex; }
    .nav-lista {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        background: var(--fondo);
        box-shadow: var(--sombra-fuerte);
        padding: 1rem;
    }
    .nav-lista.abierto { display: flex; }
    .hero-contenido { flex-direction: column; text-align: center; }
    .hero-descripcion { max-width: 100%; }
    .problematicas-grid, .accesibilidad-grid, .recursos-grid { grid-template-columns: 1fr; }
    .nav-logo {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .contenedor { padding: 0 1rem; }
    .nav-logo {
        font-size: 0.75rem;
        letter-spacing: 0.5px;
    }
}

/* Botón "Next scenario" en modo oscuro */
body.dark-mode #rolplay-siguiente.btn-dorado {
    background-color: #b8960c;
    border-color: #b8960c;
    color: #ffffff;
}

/* Preguntas del Rol Play en modo oscuro */
body.dark-mode .rolplay-descripcion {
    color: #FFD54F;
}

/* Opciones del Rol Play en modo oscuro */
body.dark-mode .btn-opcion {
    color: #90CAF9;
}

/* Botón de Google Drive en modo oscuro */
body.dark-mode a.btn-dorado[href*="drive.google.com"] {
    background-color: #b8960c;
    border-color: #b8960c;
    color: #ffffff;
}

/* Textos de los botones de rol en modo oscuro */
body.dark-mode .btn-rol {
    color: #FFD54F;
}

/* Input del rosco en modo oscuro */
body.dark-mode .rosco-input-estilo {
    color: #ffffff !important;
    background-color: #1E1E1E !important;
    border-color: #555555 !important;
}

/* Placeholder del rosco en modo oscuro */
body.dark-mode .rosco-input-estilo::placeholder {
    color: #aaaaaa !important;
}

/* Input del rosco en modo claro */
body:not(.dark-mode) .rosco-input-estilo {
    color: #000000 !important;
    background-color: #ffffff !important;
    border-color: #cccccc !important;
}

/* Placeholder del rosco en modo claro */
body:not(.dark-mode) .rosco-input-estilo::placeholder {
    color: #888888 !important;
}

/* Botón "Reply" del rosco en modo oscuro */
body.dark-mode #rosco-btn-responder.btn-dorado {
    background-color: #b8960c;
    border-color: #b8960c;
    color: #ffffff;
}
/* Eliminar padding superior en Rol Play - SOLUCIÓN DEFINITIVA */
#seccion-rolplay {
    padding-top: 1rem !important;
    padding-bottom: 4rem !important;
}
section[aria-labelledby="titulo-rolplay"] {
    padding-top: 1rem !important;
    padding-bottom: 4rem !important;
}
/* ==================== ROSCO FINANCIERO (CALCADO A LA IMAGEN) ==================== */
#rosco-financiero {
    background-color: #1a1a2e;
    border-radius: 16px;
    padding: 2rem;
    max-width: 500px;
    margin: 0 auto;
    color: #ffffff;
}

.rosco-marcador-superior {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #cccccc;
}

.rosco-marcador-superior strong {
    color: #ffffff;
}

.rosco-container {
    margin-bottom: 1rem;
}

.rosco-info-letra {
    text-align: center;
    font-size: 0.9rem;
    color: #aaaaaa;
    margin-bottom: 0.75rem;
    letter-spacing: 1px;
}

.rosco-info-letra strong {
    color: #FFD54F;
}

.rosco-definicion-container {
    text-align: center;
    margin-bottom: 1.25rem;
    min-height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rosco-definicion-container p {
    font-size: 1rem;
    color: #ffffff;
    font-weight: 500;
    max-width: 450px;
    line-height: 1.4;
}

.rosco-input-container {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

#rosco-input {
    padding: 0.6rem 1rem;
    border: 2px solid #444;
    border-radius: 8px;
    background: #0d1b2a;
    color: #ffffff;
    font-family: var(--fuente-cuerpo);
    font-size: 1rem;
    width: 220px;
}

#rosco-input::placeholder {
    color: #666;
}

#rosco-input:focus {
    border-color: #FFD54F;
    outline: none;
}

.rosco-btn-accept {
    padding: 0.6rem 1.2rem;
    background-color: #b8960c;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    letter-spacing: 1px;
    transition: background 0.2s;
}

.rosco-btn-accept:hover {
    background-color: #9a7d0a;
}

.rosco-btn-skip {
    padding: 0.6rem 1.2rem;
    background-color: transparent;
    color: #cccccc;
    border: 2px solid #555;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    letter-spacing: 1px;
    transition: all 0.2s;
}

.rosco-btn-skip:hover {
    border-color: #FFD54F;
    color: #FFD54F;
}

.rosco-reiniciar-container {
    text-align: center;
    margin-top: 0.75rem;
}

.rosco-btn-restart {
    background: none;
    border: none;
    color: #888;
    font-size: 0.9rem;
    cursor: pointer;
    transition: color 0.2s;
}

.rosco-btn-restart:hover {
    color: #FFD54F;
}

#rosco-feedback {
    text-align: center;
    margin-top: 0.75rem;
    font-weight: 600;
    min-height: 1.5rem;
    font-size: 0.95rem;
}
/* ==================== ROSCO FINANCIERO ==================== */
#rosco-app {
    background: #06091a;
    padding: 24px 16px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    font-family: var(--fuente-cuerpo);
    border-radius: 16px;
    border: 1px solid #1a2a5a;
    max-width: 500px;
    margin: 0 auto;
}

#rosco-header { display: flex; flex-direction: column; align-items: center; gap: 4px; }
#rosco-header-title { font-size: 28px; font-weight: 500; letter-spacing: 6px; color: #ffe566; text-shadow: 0 0 20px rgba(255,229,102,0.5); }
#rosco-header-sub { font-size: 11px; letter-spacing: 3px; color: #4a6aaa; text-transform: uppercase; }

#rosco-canvas-container { position: relative; width: 400px; height: 400px; flex-shrink: 0; }

.rosco-lc { position: absolute; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 500; cursor: pointer; transition: transform .14s; border: 2px solid transparent; }
.rosco-lc:hover { transform: scale(1.18); }
.rosco-st-p { background: #0e1e52; color: #6888cc; border-color: #1e3080; }
.rosco-st-a { background: #ffe566; color: #1a1200; border-color: #ffd000; transform: scale(1.22); animation: rosco-glow-a 1s ease-in-out infinite; }
.rosco-st-ok { background: #0d4a28; color: #4de89a; border-color: #1a8a50; animation: rosco-pop .3s ease; }
.rosco-st-ko { background: #4a0d0d; color: #ff6b6b; border-color: #8a2020; animation: rosco-shake .3s ease; }
.rosco-st-ps { background: #3d2a00; color: #ffb84d; border-color: #7a5200; }

@keyframes rosco-glow-a { 0%,100% { box-shadow: 0 0 10px #ffe56688,0 0 20px #ffe56633; } 50% { box-shadow: 0 0 18px #ffe566cc,0 0 36px #ffe56666; } }
@keyframes rosco-pop { 0% { transform: scale(1.4); } 100% { transform: scale(1); } }
@keyframes rosco-shake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

#rosco-center { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 160px; height: 160px; border-radius: 50%; background: #08102a; border: 3px solid #ffe566; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; box-shadow: 0 0 30px rgba(255,229,102,0.15),inset 0 0 20px rgba(255,229,102,0.05); }
#rosco-ct { font-size: 26px; font-weight: 500; color: #ffe566; letter-spacing: 4px; }
#rosco-cs { font-size: 10px; letter-spacing: 2px; color: #4a6aaa; text-transform: uppercase; }
#rosco-ct2 { font-size: 13px; color: #6888cc; margin-top: 4px; }

#rosco-scores { display: flex; gap: 10px; }
.rosco-sc { background: #08102a; border: 1px solid #1a2a5a; border-radius: 12px; padding: 10px 20px; text-align: center; min-width: 90px; }
.rosco-sc-label { font-size: 11px; color: #4a6aaa; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 4px; }
.rosco-sc-num { font-size: 24px; font-weight: 500; }
.rosco-sc-ok .rosco-sc-num { color: #4de89a; }
.rosco-sc-ko .rosco-sc-num { color: #ff6b6b; }
.rosco-sc-ps .rosco-sc-num { color: #ffb84d; }

#rosco-qpanel { width: 100%; max-width: 440px; background: #08102a; border: 1px solid #1a2a5a; border-radius: 14px; padding: 14px 18px; min-height: 80px; }
#rosco-ql { font-size: 11px; color: #4a6aaa; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 6px; }
#rosco-qt { font-size: 15px; color: #c8d8ff; line-height: 1.6; }
#rosco-qt .rosco-qletter { display: inline-block; width: 32px; height: 32px; border-radius: 50%; background: #ffe566; color: #1a1200; font-weight: 500; font-size: 16px; text-align: center; line-height: 32px; margin-right: 8px; vertical-align: middle; box-shadow: 0 0 10px rgba(255,229,102,0.4); }

#rosco-answer-row { display: flex; gap: 8px; width: 100%; max-width: 440px; }
#rosco-ainput { flex: 1; padding: 11px 16px; font-size: 15px; background: #08102a; color: #c8d8ff; border: 1.5px solid #1a2a5a; border-radius: 11px; outline: none; font-family: var(--fuente-cuerpo); transition: border-color .2s; }
#rosco-ainput:focus { border-color: #ffe566; box-shadow: 0 0 12px rgba(255,229,102,0.15); }

.rosco-btn { padding: 11px 20px; font-size: 14px; font-weight: 500; border-radius: 11px; cursor: pointer; border: none; transition: opacity .15s,transform .1s; font-family: var(--fuente-cuerpo); }
.rosco-btn:hover { opacity: .88; }
.rosco-btn:active { transform: scale(.97); }
.rosco-btn-ok { background: #ffe566; color: #1a1200; }
.rosco-btn-ps { background: #1a2a5a; color: #8aadee; border: 1px solid #2a3a7a; }

#rosco-feedback-box { width: 100%; max-width: 440px; min-height: 52px; border-radius: 12px; padding: 12px 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; text-align: center; background: #08102a; border: 2px solid transparent; transition: border-color .2s,background .2s; }
#rosco-feedback-box.rosco-ok { background: #0d3a20; border-color: #1a8a50; }
#rosco-feedback-box.rosco-ko { background: #3a0d0d; border-color: #8a2020; }
#rosco-feedback-box.rosco-ps { background: #2a1e00; border-color: #7a5200; }
#rosco-fb-verdict { font-size: 18px; font-weight: 500; letter-spacing: 1px; }
#rosco-fb-verdict.rosco-ok { color: #4de89a; }
#rosco-fb-verdict.rosco-ko { color: #ff6b6b; }
#rosco-fb-verdict.rosco-ps { color: #ffb84d; }
#rosco-fb-answer { font-size: 13px; color: #8aadee; letter-spacing: .5px; margin-top: 2px; }

#rosco-legend { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.rosco-li { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #4a6aaa; }
.rosco-ld { width: 12px; height: 12px; border-radius: 50%; }

#rosco-timer-bar-wrap { width: 100%; max-width: 440px; height: 5px; background: #0e1e52; border-radius: 3px; overflow: hidden; }
#rosco-timer-bar { height: 100%; width: 100%; background: #ffe566; border-radius: 3px; transition: width .5s linear,background .5s; }
/* SOLUCIÓN DEFINITIVA: Eliminar padding superior en Rol Play */
#seccion-rolplay {
    padding-top: 1rem !important;
    padding-bottom: 4rem !important;
}
/* ESTILOS COMPLETOS PARA LA SECCIÓN ROL PLAY */
#seccion-rolplay {
    padding-top: 1rem !important;
    padding-bottom: 4rem !important;
    display: block;
    width: 100%;
}