/* RESET Y VARIABLES */
:root {
    --rojo: #e1010c;
    --negro-suave: #1a1d23; /* Un gris muy oscuro, mucho más elegante que el negro */
    --gris-texto: #4b5563; /* Gris para el cuerpo de texto */
    --gris-claro: #f3f4f6;
    --primary-red: #e1010c;
    --dark-blue: #010207;
    --light-gray: #f4f4f4;
    --white: #ffffff;
}

/* Aplicamos Inter a TODO para que no haya contrastes chocantes */
html, body, p, span, h1, h2, h3, h4, .modern-h2, a {
    font-family: 'Inter', sans-serif !important;
    color: var(--negro-suave);
    -webkit-font-smoothing: antialiased; /* Suaviza el renderizado de la fuente */
}

/* Títulos: Menos grosor y letras más juntas (Look Moderno) */
h1, h2, h3, h4 {
    font-weight: 600 !important; /* Bajamos de 800 a 600 */
    letter-spacing: -0.02em !important; /* Letras un pelín más juntas */
    line-height: 1.2;
}

/* BARRA SUPERIOR */
.top-bar { background: var(--negro-suave); padding: 8px 0; font-size: 13px; }
.contact-links { display: flex; justify-content: flex-end; gap: 20px; }
.contact-links a { color: #ccc; text-decoration: none; transition: 0.3s; }
.contact-links a:hover { color: var(--rojo); }

/* HEADER PRINCIPAL */
.header-main  
{
    position: relative; /* Fundamental para que el menú absoluto se posicione bien */
    z-index: 9999;      /* Elevamos todo el header por encima del contenido */
    
    background: white; border-bottom: 2px solid #eee; padding: 15px 0; 
}
.nav-flex { display: flex; justify-content: space-between; align-items: center; }
.logo-container img { height: 65px; width: auto; }



/* Ocultamos el checkbox físicamente siempre */
#menu-check {
    display: none;
}

/* Solo en móvil (max-width: 992px o similar) */
@media (max-width: 992px) {
    .menu-abrir {
        display: block; /* Mostramos el icono hamburguesa */
        font-size: 28px;
        cursor: pointer;
        color: var(--negro-suave);
    }

    .nav-links {
        display: none; /* Menú oculto por defecto en móvil */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        z-index: 10000;     /* Un número mayor que cualquier otro elemento */
        flex-direction: column;
        padding: 20px;
        border-top: 3px solid var(--rojo);
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }

    /* EL "TRUCO": Si el checkbox está marcado, mostramos el menú */
    #menu-check:checked ~ .nav-links {
        display: flex !important;
    }

    /* Ajuste para los enlaces en móvil */
    .nav-links li {
        width: 100%;
        border-bottom: 1px solid #eee;
    }
    
    .nav-links li a {
        padding: 15px 0;
        width: 100%;
    }
}




/* LISTA DE ENLACES */
.nav-links { display: flex; list-style: none; margin: 0; padding: 0; align-items: center; gap: 5px; }
.nav-links li a { 
    padding: 10px 15px; 
    text-decoration: none; 
    color: var(--negro-suave); 
    font-weight: 600;
    font-size: 15px;
    display: block;
}
.nav-links li a:hover { color: var(--rojo); }

/* SUBMENÚS (Hover funcional) */
.dropdown-item { position: relative; }
.submenu { 
    position: absolute; 
    top: 100%; 
    left: 0; 
    background: white; 
    min-width: 220px; 
    box-shadow: 0 10px 25px rgba(0,0,0,0.1); 
    border-radius: 8px; 
    border-top: 3px solid var(--rojo);
    display: none; /* Oculto por defecto */
    padding: 10px 0;
    z-index: 1000;
}
.submenu li a { font-weight: 400; font-size: 14px; }
.dropdown-item:hover .submenu { display: block; } /* Mostrar al pasar ratón */

/* Limpieza radical para los submenús en escritorio */
.nav-links .submenu {
    list-style: none !important; /* Adiós puntos */
    margin: 0 !important;
    padding: 10px 0 !important;
    display: none; /* Se muestra con el hover que ya tienes */
}

.nav-links .submenu li {
    list-style: none 

!important;
    padding: 0;
    margin: 0;
}

.nav-links .submenu li a {
    padding: 10px 20px !important;
    font-weight: 400 !important;
    font-size: 14px !important;
    color: var(--negro-suave) !important;
    display: block;
    transition: 0.3s;
    white-space: nowrap; /* Evita que el texto salte de línea */
}

/* Efecto hover en los elementos del submenú */
.nav-links .submenu li a:hover {
    background-color: var(--gris-claro);
    color: var(--rojo) !important;
    padding-left: 25px !important; /* Pequeño desplazamiento lateral */
}







/* BOTÓN ÁREA FAMILIAS */
.cta-familias a { 
    background: var(--rojo) !important; 
    color: white !important; 
    border-radius: 50px; 
    padding: 10px 25px !important;
    margin-left: 10px;
}

/* RESPONSIVE (Móvil) */
#menu-check, .menu-abrir { display: none; }

@media (max-width: 992px) {
    .menu-abrir { display: block; font-size: 25px; cursor: pointer; color: var(--negro-suave); }
    .nav-links { 
        position: absolute; top: 100%; left: 0; width: 100%; background: white; 
        flex-direction: column; display: none; padding: 20px; border-bottom: 2px solid var(--rojo);
    }
    #menu-check:checked ~ .nav-links { display: flex; }
    .submenu { position: static; box-shadow: none; border: none; padding-left: 20px; display: block; }
}


/* Footer Modernizado */
#fh5co-footer {
    background: var(--dark-blue) !important;
    padding: 70px 0 30px !important;
}

#fh5co-footer h3 {
    color: var(--white) !important;
    border-bottom: 2px solid var(--primary-red);
    display: inline-block;
    padding-bottom: 5px;
    margin-bottom: 25px;
}

#fh5co-footer .fh5co-footer-links li a {
    color: rgba(255,255,255,0.7) !important;
}

#fh5co-footer .fh5co-footer-links li a:hover {
    color: var(--primary-red) !important;
}

/* Iconos del footer */
#fh5co-footer i.fa {
    color: var(--primary-red) !important; /* Cambiamos el naranja por tu rojo */
}


/* --- ESTILO PARA DESTACADOS (litDes) --- */
.fh5co-event {
    background: white;
    border-radius: 

12px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: var(--card-shadow);
    border: 1px solid #eee;
    transition: transform 0.3s ease;
    display: flex; /* Alineamos fecha y texto */
    gap: 15px;
}

.fh5co-event:hover { transform: translateY(-5px); }

.fh5co-event .date {
    background: var(--primary-red) !important;
    border-radius: 8px;
    min-width: 65px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    line-height: 1.2;
    padding: 5px;
}

.fh5co-event h4 a {
    color: var(--dark-text) !important;
    font-weight: 700 !important;
    font-size: 1.1rem;
    text-decoration: none;
}







/* FOOTER RADICAL */
.footer-radical {
    background: #0b0c10; /* Casi negro para contraste radical */
    color: #e0e0e0;
    padding: 

80px 0 30px;
    margin-top: 50px;
    font-family: 'Inter', sans-serif;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 50px;
}

.footer-logo {
    height: 60px;
    /*filter: brightness(0) invert(1); /* Logo en blanco para el fondo oscuro */
    margin-bottom: 20px;
}

.footer-tagline {
    font-size: 14px;
    color: #888;
    margin-bottom: 25px;
}

.contact-card-modern a {
    display: block;
    color: #fff;
    text-decoration: none;
    margin-bottom: 12px;
    font-size: 14px;
    transition: 0.3s;
}

.contact-card-modern i {
    color: var(--rojo);
    margin-right: 10px;
    width: 20px;
}

.footer-links-section h4, 
.footer-news-section h4 {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links-section ul { list-style: none; padding: 0; }
.footer-links-section ul li { margin-bottom: 12px; }
.footer-links-section ul li a {
    color: #888;
    text-decoration: none;
    transition: 0.3s;
    font-size: 14px;
}

.footer-links-section ul li a:hover { color: var(--rojo); padding-left: 5px; }

/* Estilo para los Badges de categorías (litCatnoti) */
.footer-badges { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.footer-badges li a {
    background: rgba(255,255,255,0.05);
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.footer-badges li a:hover { background: var(--rojo); }

/* BOTTOM BAR */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    font-size: 12px;
    color: #666;
}

.legal-links a { color: #666; margin-right: 15px; text-decoration: none; }
.legal-links a:hover { color: #fff; }

/* RESPONSIVE */
@media (max-width: 992px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; gap: 20px; }
}



/* CONTENEDOR DE NOTICIAS */
.noticias-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.card-noticia-moderna {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.card-noticia-moderna:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 45px rgba(225, 1, 12, 0.1);
    border-color: rgba(225, 1, 12, 0.2);
}

/* Títulos de noticias */
.noticia-header h3 a {
    font-size: 21px !important;
    color: var(--negro-suave) !important;
    transition: color 0.2s ease;
}

.noticia-header h3 a:hover {
    color: var(--rojo) !important;
}

/* Subtítulos y fechas */
.noticia-subt, .meta-info {
    font-size: 13px !important;
    color: #9ca3af !important; /* Gris suave */
    font-weight: 500;
}

/* Imagen */
.noticia-img { margin: 20px 0; overflow: hidden; border-radius: 12px; }
.noticia-img img { 
    width: 100%; 
    height: auto; 
    transition: transform 0.5s ease;
}
.card-noticia-moderna:hover .noticia-img img { transform: scale(1.03); }

/* Texto de la noticia (Cuerpo) */
.noticia-extracto {
    font-size: 15px !important;
    color: var(--gris-texto) !important; /* Gris oscuro en lugar de negro */
    font-weight: 400;
    line-height: 1.6;
}

/* Meta y Botón */
.noticia-meta-footer {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.meta-info { display: flex; gap: 20px; color: #999; font-size: 13px; }
.meta-info i { color: var(--rojo); }

/* AJUSTE PARA ENLACES DE DESCARGA EN HOVER */

.btn-leer-mas {
    background: #f8f9fa;
    color: var(--negro-suave);
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    font-size: 14px;
    transition: 0.3s;
}

.btn-leer-mas:hover {
    background: var(--rojo) !important;
    color: white !important;
    text-decoration: none !important; /* Refuerzo para evitar subrayado */
}

/* Cuando el botón está en hover, el icono dentro de él pasa a blanco */
.btn-leer-mas:hover i {
    color: white !important;
}

/* Opcional: si quieres que el icono de descarga (el pequeño) también sea blanco */
.btn-leer-mas:hover .fa-download {
    opacity: 1 !important;
    color: white !important;
}




/* WIDGETS LATERALES (Destacados) */
.card-destacado-lateral {
    display: flex;
    gap: 15px;
    background: #fff;
    padding: 15px;
    border-radius: 

12px;
    margin-bottom: 20px;
    border: 1px solid #f0f0f0;
    transition: 0.3s;
}

.card-destacado-lateral:hover {
    border-color: var(--rojo);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* El cuadro del calendario */
.fecha-badge {
    background: #f8f9fa;
    border-radius: 10px;
    min-width: 60px;
    height: 65px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid #eee;
}

.fecha-badge .dia {
    font-size: 20px;
    font-weight: 800;
    color: var(--negro-suave);
    line-height: 1;
}

.fecha-badge .mes {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--rojo);
    font-weight: 700;
}

/* Info del texto */
.destacado-info h4 { margin: 0 0 5px 0; line-height: 1.3; }
.destacado-info h4 a {
    color: var(--negro-suave);
    font-size: 15px;
    text-decoration: none;
    font-weight: 700;
}

.destacado-info p {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
    line-height: 1.4;
}

.link-simple {
    font-size: 12px;
    color: var(--rojo);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
}

.link-simple i { font-size: 10px; margin-left: 5px; }

/* Video en el lateral */
.video-destacado {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}



/* Espaciado en la columna lateral */
.side-content {
    padding-right: 30px; /* Separación con la columna principal */
}

.section-header-sm, .section-header {
    margin-bottom: 35px; /* Espacio debajo del título "Últimas Noticias" */
}






/* CONTACTO MODERNO */
.contacto-section {
    padding: 60px 0;
    background: #fdfdfd;
}

.contacto-wrapper {
    display: grid;
    grid-template-columns: 

400px 1fr; /* Columna fija para info y mapa flexible */
    gap: 40px;
    align-items: start;
}

.contacto-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
}

.subtitle {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 30px;
}

.info-grid {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.info-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.info-icon {
    width: 40px;
    height: 40px;
    background: #fef2f2; /* Rojo muy pálido */
    color: var(--rojo);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.info-text strong {
    display: block;
    font-size: 13px;
    text-transform: uppercase;
    color: #9ca3af;
    letter-spacing: 0.5px;
}

.info-text span, .info-text a {
    color: var(--negro-suave);
    font-size: 15px;
    text-decoration: none;
}

/* El mapa ahora es elegante */
.map-container {
    height: 500px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 5px solid white;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Responsive */
@media (max-width: 992px) {
    .contacto-wrapper { grid-template-columns: 1fr; }
    .map-container { height: 300px; }
}






/* PRESENTACIÓN Y BIENVENIDA */
.presentacion-container { padding: 40px 0; background: #fafafa; }

.bienvenida-card {
    background: white;
    padding: 50px;
    border-radius: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    max-width: 900px;
    margin: 0 auto 60px;
}

.texto-presentacion p {
    font-size: 

17px;
    line-height: 1.8;
    color: var(--gris-texto);
    margin-bottom: 20px;
    text-align: justify;
}

.firma-junta { margin-top: 40px; padding-top: 20px; border-top: 1px dashed #eee; }
.nombre-firma { color: var(--rojo); font-weight: 700; font-size: 18px; }

/* REJILLA DE LA JUNTA */
.section-title-modern { margin-bottom: 40px; font-weight: 700; color: var(--negro-suave); }

.junta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.perfil-card {
    background: white;
    padding: 30px 20px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.perfil-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    border-color: var(--rojo);
}

.perfil-card.principal {
    background: #fff;
    border-bottom: 4px solid var(--rojo); /* Destacamos cargos principales */
}

.cargo {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
    margin-bottom: 10px;
}

.perfil-card h4 {
    font-size: 16px;
    margin: 0 0 5px 0;
    color: var(--negro-suave);
}

.socio { font-size: 13px; color: #bbb; font-style: italic; }

@media (max-width: 600px) {
    .bienvenida-card { padding: 30px 20px; }
}








/* CONTENEDOR PRINCIPAL */
.extraescolares-main-container { padding: 60px 0; background: #fcfcfc; }

.card-hero-text {
    background: white;
    padding: 

40px;
    border-radius: 24px;
    box-shadow: 0 4px 25px rgba(0,0,0,0.02);
}

.p-destacado {
    font-size: 18px;
    color: var(--rojo);
    font-weight: 500;
    margin-bottom: 25px;
}

.cuerpo-texto p {
    color: var(--gris-texto);
    line-height: 1.8;
    margin-bottom: 15px;
}

.rounded-img {
    border-radius: 16px;
    margin-top: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* GRID DE SERVICIOS (DASHBOARD) */
.title-sidebar {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 25px;
    padding-left: 10px;
    border-left: 4px solid var(--rojo);
}

.grid-servicios {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Dos columnas de botones */
    gap: 15px;
}

.card-servicio {
    background: white;
    padding: 25px 15px;
    border-radius: 15px;
    text-align: center;
    text-decoration: none !important;
    border: 1px solid #eee;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.card-servicio i {
    font-size: 24px;
    color: var(--rojo);
    margin-bottom: 12px;
}

.card-servicio span {
    font-size: 13px;
    font-weight: 600;
    color: var(--negro-suave);
}

.card-servicio:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    border-color: var(--rojo);
}

/* Botón destacado */
.card-servicio.destacada {
    background: var(--rojo);
    border: none;
}
.card-servicio.destacada i, .card-servicio.destacada span {
    color: white !important;
}

@media (max-width: 768px) {
    .grid-servicios { grid-template-columns: 1fr; }
}






/* CONTENEDOR CUADRO */
.cuadro-container { padding: 40px 0 80px; background: #f9fafb; }

.header-action { margin-bottom: 

30px; display: flex; justify-content: flex-end; }

.btn-volver {
    text-decoration: none !important;
    color: #6b7280;
    font-size: 14px;
    font-weight: 600;
    transition: 0.3s;
}
.btn-volver:hover { color: var(--rojo); }

/* TARJETA DEL DOCUMENTO */
.document-card {
    background: white;
    border-radius: 24px;
    padding: 50px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.04);
}

.document-info { text-align: center; margin-bottom: 40px; }
.document-info p { color: #6b7280; margin-top: 10px; }

/* BOTÓN DESCARGA MODERNO */
.btn-download-modern {
    display: inline-flex;
    align-items: center;
    background: #1a1d23; /* Negro suave */
    color: white !important;
    padding: 12px 25px;
    border-radius: 12px;
    text-decoration: none !important;
    margin-top: 25px;
    transition: all 0.3s ease;
    text-align: left;
}

.btn-download-modern:hover {
    background: var(--rojo);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(225, 1, 12, 0.2);
}

.download-icon { font-size: 28px; margin-right: 15px; }
.download-text span { display: block; font-size: 11px; text-transform: uppercase; opacity: 0.8; }
.download-text strong { font-size: 15px; }

/* VISUALIZADOR TIPO NAVEGADOR */
.image-viewer-modern {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.viewer-header {
    background: #f3f4f6;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dot { width: 8px; height: 8px; background: #ddd; border-radius: 50%; }
.viewer-title {
    margin-left: 10px;
    font-size: 11px;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
}

.image-viewer-modern img { width: 100%; border-top: 1px solid #eee; }






/* Estilo específico para la página activa del buscador/pager */
.active-page {
    background: var(--rojo) !important;
    color: white !important;
    border-color: var(--rojo) !important;
    cursor: default;
}

.pagination-wrapper .btn-leer-mas {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 

40px;
    height: 40px;
    padding: 0 15px;
    margin: 0 2px;
}






/* Quitamos los puntos de la lista que genera ASP.NET */
.custom-chk-list, 
.custom-chk-list ul {
    list-style-type: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.custom-chk-list li {
    list-style: none !important;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

/* Espaciado para el texto al lado del check */
.custom-chk-list label {
    margin-left: 10px;
    cursor: pointer;
    font-weight: 400;
    color: var(--gris-texto);
    font-size: 14px;
    display: inline-block;
}

/* Color del checkbox moderno */
.custom-chk-list input[type="checkbox"] {
    accent-color: var(--rojo);
    width: 17px;
    height: 17px;
    cursor: pointer;
}

