:root {
    /* Identidad Visual Institucional - COMEZU */
    --primary: #002855;      /* Azul Naval Profesional */
    --accent: #ffd500;       /* Tu Amarillo Preferido  */
    --accent-hover: #e6e300;
    
    /* Colores de Interfaz */
    --bg: #ffffff;
    --bg-soft: #f4f7f9;      /* Azul grisáceo muy suave para fondos */
    --text: #1a1a1a;
    --text-light: #555555;
    --border: #e1e8ed;
    --success: #28a745;
    
    /* Dimensiones y Efectos */
    --nav-h: 80px;
    --radius: 12px;
    --shadow: 0 4px 20px rgba(0, 40, 85, 0.1);
}

[data-theme="dark"] {
    --bg: #0a192f;           /* Azul naval profundo para modo oscuro */
    --bg-soft: #112240;
    --text: #e6f1ff;
    --text-light: #8892b0;
    --border: #233554;
    --primary: #001d3d;      /* Azul aún más oscuro para elementos primarios */
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Montserrat', sans-serif; background-color: var(--bg); color: var(--text); line-height: 1.6; transition: 0.3s; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
 .titulo-seccion {
            text-align: center;
            font-weight: 900;
            text-transform: uppercase;
            color: var(--texto-principal);
            font-size: 2.2rem;
            margin-bottom: 40px;
        }

/* --- NAVBAR --- */
.navbar { background: #000; color: white; padding: 15px 0; position: sticky; top: 0; z-index: 1000; }
.nav-wrapper { display: flex; justify-content: space-between; align-items: center; }
.nav-menu { display: flex; list-style: none; gap: 12px; }
.nav-menu a { color: white; text-decoration: none; font-weight: 600; font-size: 0.9rem; }
.nav-menu a.active { color: var(--accent); }

/* --- GRID DE SERVICIOS Y ÁREAS --- */
.services-home-grid, .grid-moderno-areas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 40px 0;
}

.tarjeta-area, .service-home-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    padding-bottom: 20px;
    box-shadow: var(--shadow);
}

.imagen-box { height: 200px; width: 100%; }
.imagen-box img { width: 100%; height: 100%; object-fit: cover; }

.icon-circle-large {
    width: 80px; height: 80px; background: var(--accent); color: var(--primary) !important;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 30px; margin: 20px auto;
}

.btn-action-yellow {
    background: var(--accent); color: var(--primary) !important; padding: 10px 20px;
    text-decoration: none; border-radius: 5px; font-weight: 800; display: inline-block;
}

.bg-soft { background: #f9f9f9; }
[data-theme="dark"] .bg-soft { background: #001d3d; }
/* Variables de Diseño */
:root {
    /* Identidad Visual Institucional - COMEZU */
    --primary: #002855;      /* Azul Naval Profesional */
    --accent: #ffd500;       /* Tu Amarillo Preferido  */
    --accent-hover: #e6e300;
    
    /* Colores de Interfaz */
    --bg: #ffffff;
    --bg-soft: #f4f7f9;      /* Azul grisáceo muy suave para fondos */
    --text: #1a1a1a;
    --text-light: #555555;
    --border: #e1e8ed;
    --success: #28a745;
    
    /* Dimensiones y Efectos */
    --nav-h: 80px;
    --radius: 12px;
    --shadow: 0 4px 20px rgba(0, 40, 85, 0.1);
}

[data-theme="dark"] {
    --bg: #0a192f;           /* Azul naval profundo para modo oscuro */
    --bg-soft: #112240;
    --text: #e6f1ff;
    --text-light: #8892b0;
    --border: #233554;
    --primary: #001d3d;      /* Azul aún más oscuro para elementos primarios */
}


* { margin: 0; padding: 0; box-sizing: border-box; transition: 0.3s ease; }
html { scroll-behavior: smooth; }
body { font-family: 'Montserrat', sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
 .titulo-seccion {
            text-align: center;
            font-weight: 900;
            text-transform: uppercase;
            color: var(--texto-principal);
            font-size: 2.2rem;
            margin-bottom: 40px;
        }

/* Navbar */
.navbar { background: var(--primary); height: var(--nav-h); position: sticky; top: 0; z-index: 1000; display: flex; align-items: center; box-shadow: 0 4px 12px rgba(0,0,0,0.2); }
.nav-wrapper { width: 100%; display: flex; justify-content: space-between; align-items: center; }
.logo { height: 60px; width: auto; }
.nav-menu { display: flex; list-style: none; gap: 12px; }
.nav-menu a { color: white; text-decoration: none; font-size: 13px; font-weight: 600; text-transform: uppercase; }
.nav-menu a:hover { color: var(--accent); }

/* Switch de Tema */
.theme-switch-wrapper { display: flex; align-items: center; }
.theme-switch { position: relative; width: 50px; height: 26px; }
.theme-switch input { display: none; }
.slider { background: #444; position: absolute; top:0; left:0; right:0; bottom:0; cursor: pointer; border-radius: 34px; }
.slider:before { content: ""; position: absolute; height: 20px; width: 20px; left: 3px; bottom: 3px; background: white; border-radius: 50%; z-index: 2; }
input:checked + .slider { background: var(--accent); }
input:checked + .slider:before { transform: translateX(24px); }
.sun-icon, .moon-icon { position: absolute; top: 5px; font-size: 14px; }
.sun-icon { left: 7px; color: var(--accent); }
.moon-icon { right: 7px; color: #ddd; }

/* Hero Section */
.hero-section { background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('https://images.unsplash.com/photo-1551076805-e1869033e561?w=1400'); height: calc(100vh - var(--nav-h)); background-size: cover; display: flex; align-items: center; color: white; }
.hero-tag { color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: 2px; }
.hero-section h1 { font-size: 3.5rem; font-weight: 800; margin: 10px 0; }
.highlight { color: var(--accent); }
.btn { padding: 12px 30px; border-radius: 5px; text-decoration: none; font-weight: 700; display: inline-block; margin-top: 20px; }
.btn-primary { background: var(--accent); color: var(--primary) !important; }
.btn-outline { border: 2px solid white; color: white; margin-left: 15px; }

/* Secciones Generales */
.section { padding: 80px 0; }
.bg-soft { background: var(--bg-soft); }
.section-title { text-align: center; color: var(--accent); font-weight: 800; font-size: 2.2rem; margin-bottom: 50px; }

/* Biblioteca Card */
.magazine-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 30px; }
.mag-card { background: var(--bg); border: 1px solid #ddd; padding: 15px; border-radius: 8px; position: relative; }
.mag-badge { position: absolute; top: 25px; right: 25px; background: var(--accent); padding: 5px 10px; font-weight: bold; border-radius: var(--radius); font-size: 11px; }
.mag-card img { width: 100%; border-radius: var(--radius) }
.dl-badge-group { display: flex; margin-top: 15px; }
.dl-btn { background: var(--success); color: white; padding: 8px 15px; text-decoration: none; font-weight: bold; border-radius: 4px 0 0 4px; font-size: 12px; }
.dl-count { background: var(--primary); color: white; padding: 8px 12px; border-radius: 0 4px 4px 0; font-size: 12px; }

/* Footer */
.main-footer { padding: 60px 0; border-top: 1px solid #eee; text-align: center; }
.stat-pill { display: flex; border-radius: var(--radius); overflow: hidden; font-size: 12px; justify-content: center; margin-bottom: 10px; }
.s-label { background: var(--accent); color: black; padding: 5px 12px; font-weight: 700; }
.s-val { background: var(--primary); color: white; padding: 5px 12px; }

/* --- Ajustes del Logo y Texto --- */
.brand-container {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 12px;
}

.logo-small {
    height: 49px; /* Más pequeño según lo pedido */
    width: auto;
}

.brand-text {
    display: flex;
    flex-direction: column;
    color: white;
    line-height: 1.1;
}

.acronym {
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: 1px;
}

.full-name {
    font-size: 0.75rem;
    font-weight: 400;
    opacity: 0.9;
    text-transform: uppercase;
}

/* --- Estilo de Página Activa --- */
.nav-menu a.active {
    color: var(--accent);
    border-bottom: 2px solid var(--accent);
}

/* --- Layout para Páginas Individuales --- */
.page-header {
    background: var(--primary);
    padding: 60px 0;
    text-align: center;
    color: white;
    margin-bottom: 40px;
}

/* Reutiliza el resto del CSS anterior para el modo oscuro y tarjetas */

/* --- Estilos de la Página de Servicios --- */
/* --- Estilos de la Página de Servicios --- */
.services-main-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
    margin-top: 20px;
}

.service-detail-card {
    background: var(--bg);
    padding: 30px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.icon-circle {
    width: 80px;
    height: 80px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin-bottom: 20px;
}

.service-detail-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.service-detail-card p {
    font-size: 0.95rem;
    color: var(--text);
    margin-bottom: 25px;
    line-height: 1.6;
}

.greeting {
    font-weight: 700;
    margin-bottom: 5px !important;
}

.btn-action-yellow {
    background: var(--accent);
    color: var(--primary) !important;
    text-decoration: none;
    padding: 10px 20px;
    font-weight: 700;
    border-radius: 5px;
    font-size: 14px;
    transition: transform 0.2s;
}

.btn-action-yellow:hover {
    transform: scale(1.05);
}

.btn-group {
    display: flex;
    gap: 10px;
}
/* --- Footer Profesional --- */
.footer-main {
    background: var(--bg);
    padding: 50px 0 30px 0;
    border-top: 1px solid var(--border);
    margin-top: 50px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    text-align: center;
}

.footer-info p {
    font-size: 0.85rem;
    opacity: 0.8;
}

.location-text {
    font-size: 0.75rem !important;
    margin-top: 5px;
}

/* Redes Sociales - Puntos negros de la imagen */
.footer-social {
    display: flex;
    gap: 15px;
}

.social-dot {
    width: 35px;
    height: 35px;
    background: #333; /* Cambia a blanco en modo oscuro mediante variables */
    border-radius: 50%;
    transition: 0.3s;
}

[data-theme="dark"] .social-dot {
    background: #eee;
}

/* Contadores de Visitas (Diseño exacto) */
.footer-stats {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.stat-group {
    display: flex;
    border-radius: var(--radius);
    overflow: hidden;
    font-size: 12px;
    font-weight: 700;
}

.stat-label {
    background: var(--accent); /* Amarillo */
    color: var(--primary) !important;
    padding: 6px 15px;
}

.stat-number {
    background: var(--primary); /* Negro/Oscuro */
    color: #fff;
    padding: 6px 15px;
}


}
/* --- Estilos de la Página de Noticias --- */
.news-main-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.news-full-card {
    display: grid;
    grid-template-columns: 350px 1fr;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.news-image-container {
    position: relative;
    height: 100%;
}

.news-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--accent);
    color: #000;
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: var(--radius);
}

.news-text-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-date {
    font-size: 0.85rem;
    opacity: 0.7;
    margin-bottom: 10px;
}

.news-text-content h2 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: var(--text);
}

.news-text-content p {
    font-size: 0.95rem;
    margin-bottom: 20px;
    color: var(--text);
    opacity: 0.9;
}

.btn-read-more {
    align-self: flex-start;
    color: var(--accent);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    border-bottom: 2px solid transparent;
    transition: 0.3s;
}

.btn-read-more:hover {
    border-bottom: 2px solid var(--accent);
}



/* --- Estilo de Noticias Tipo Cuadrícula --- */
.news-grid-institution {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.news-card-alt {
    background: var(--bg); /* Se adapta al modo oscuro */
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid var(--border);
}

.news-img-wrap {
    width: 100%;
    height: 220px;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.news-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-img-wrap img.img-contain {
    object-fit: contain;
    padding: 20px;
}

.news-content-alt {
    padding: 25px;
    text-align: center;
}

.news-content-alt h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text);
    text-transform: uppercase;
}

.news-excerpt {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text);
    opacity: 0.8;
}

.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }

/* --- Estilo de Anuncios en Lista --- */
.news-list-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.news-announcement {
    display: flex;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: 0.3s;
}

.news-announcement:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.announcement-img {
    flex: 0 0 400px;
    background: transparent; /* Quitamos el fondo verde totalmente */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.announcement-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.announcement-img img.contain {
    object-fit: contain;
    padding: 0;
    border: 4px solid var(--accent-color, #d4af37); /* Borde dorado alrededor de la imagen */
    border-radius: 6px;

}

.announcement-body {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.announcement-tag {
    background: var(--accent);
    color: var(--primary) !important;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 700;
    border-radius: var(--radius);
    align-self: flex-start;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.announcement-body h2 {
    font-size: 1.5rem;
    color: var(--text);
    margin-bottom: 15px;
    line-height: 1.3;
}

.announcement-body p {
    font-size: 1rem;
    color: var(--text);
    opacity: 0.8;
    margin-bottom: 20px;
    line-height: 1.6;
}

.announcement-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: 0.3s;
}

.announcement-link:hover {
    text-decoration: underline;
    opacity: 0.8;
}


/* --- Grid de Biblioteca --- */
.magazine-grid-official {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.mag-card-official {
    background: var(--bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border: 1px solid var(--border);
}

/* Portada Estilo COMEZU */
.mag-cover-wrap {
    height: 350px;
    position: relative;
    overflow: hidden;
    border-bottom: 5px solid var(--accent);
}

.mag-yellow {
    background: #ffff00; /* Amarillo brillante de la captura */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.mag-lines {
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 20px;
    border-left: 3px solid #006400; /* Líneas verdes laterales */
    border-right: 3px solid #006400;
}

.mag-logo-center {
    width: 120px;
    z-index: 2;
}

.mag-footer-info {
    position: absolute;
    bottom: 20px;
    font-size: 10px;
    font-weight: 700;
}

/* Cuerpo de la Tarjeta */
.mag-body-official {
    padding: 20px;
}

.mag-body-official h3 {
    color: #004a99;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.mag-body-official p {
    font-size: 0.9rem;
    margin-bottom: 5px;
}

/* Botón Descarga Exacto */
.mag-dl-box {
    display: flex;
    margin-top: 15px;
}

.btn-dl-green {
    background: #28a745;
    color: white;
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
    padding: 8px 12px;
    border-radius: 3px 0 0 3px;
}

.dl-count-box {
    background: #343a40;
    color: white;
    font-size: 11px;
    padding: 8px 10px;
    border-radius: 0 3px 3px 0;
}

/* --- Categorías de Biblioteca --- */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.category-card {
    text-align: center;
    padding: 30px;
    background: var(--bg);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.cat-icon {
    font-size: 50px;
    margin-bottom: 20px;
}

.btn-category {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #ffc107; /* Amarillo de la imagen */
    color: #000;
    text-decoration: none;
    padding: 8px 15px;
    font-weight: 700;
    border-radius: var(--radius);
    font-size: 13px;
    margin-top: 15px;
}

.badge {
    background: #007bff; /* Azul de la imagen */
    color: white;
    padding: 2px 8px;
    border-radius: var(--radius);
    font-size: 11px;
}

.section-divider {
    border: 0;
    height: 1px;
    background: var(--border);
    margin: 50px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.8rem;
}
/* --- Ajuste de Tamaño de Revistas --- */
.magazine-grid-official {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); /* Columnas más estrechas */
    gap: 25px;
    justify-items: center; /* Centra las tarjetas si hay pocas */
}

.mag-card-official {
    width: 220px; /* Ancho fijo para control total */
    background: var(--bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
    border: 1px solid var(--border);
    transition: transform 0.3s ease;
}

.mag-card-official:hover {
    transform: translateY(-5px);
}

.mag-cover-wrap {
    height: 300px; /* Altura ajustada para que no sea infinita */
    width: 100%;
    position: relative;
    overflow: hidden;
    background: #f0f0f0;
}

.mag-cover-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Mantiene la proporción de la foto del médico */
}

.mag-cover-wrap img.mag-logo-center {
    width: 100px; /* Logo más pequeño en la portada amarilla */
    height: auto;
    object-fit: contain;
}

/* El resto de mag-yellow, mag-lines y mag-body-official se mantienen igual */

/* --- Variables para Modo Oscuro --- */
:root {
    /* Identidad Visual Institucional - COMEZU */
    --primary: #002855;      /* Azul Naval Profesional */
    --accent: #ffd500;       /* Tu Amarillo Preferido  */
    --accent-hover: #e6e300;
    
    /* Colores de Interfaz */
    --bg: #ffffff;
    --bg-soft: #f4f7f9;      /* Azul grisáceo muy suave para fondos */
    --text: #1a1a1a;
    --text-light: #555555;
    --border: #e1e8ed;
    --success: #28a745;
    
    /* Dimensiones y Efectos */
    --nav-h: 80px;
    --radius: 12px;
    --shadow: 0 4px 20px rgba(0, 40, 85, 0.1);
}

[data-theme="dark"] {
    --bg: #0a192f;           /* Azul naval profundo para modo oscuro */
    --bg-soft: #112240;
    --text: #e6f1ff;
    --text-light: #8892b0;
    --border: #233554;
    --primary: #001d3d;      /* Azul aún más oscuro para elementos primarios */
}
body { background-color: var(--bg); color: var(--text); transition: 0.3s; }

/* --- Ajuste de Tamaño de Fotos de Revistas --- */
.magazine-grid-official {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 30px;
    justify-items: center;
}

.mag-card-official {
    width: 220px; /* Tamaño controlado según lo pedido */
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.mag-cover-wrap {
    height: 280px; /* Altura fija para que todas sean iguales */
    width: 100%;
    position: relative;
    background: #f0f0f0;
}

.mag-cover-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Evita que la foto se estire */
}

/* Categorías superiores */
.category-card {
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 25px;
    text-align: center;
    border-radius: 8px;
}
/* --- Sección Directiva --- */
.leader-section {
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
}

.board-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.profile-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: 0.3s;
}

.profile-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.main-leader {
    max-width: 700px;
    display: flex;
    align-items: center;
    text-align: left;
    gap: 30px;
}

.profile-img img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--accent);
}

.position-tag {
    background: var(--accent);
    color: #000;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 15px;
}

.profile-info h2 { font-size: 1.8rem; margin-bottom: 10px; }
.profile-info h3 { font-size: 1.2rem; }


/* --- Diseño de la Página de Contacto --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.info-item i {
    font-size: 24px;
    color: var(--accent);
    margin-top: 5px;
}

.info-item h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.map-container {
    margin-top: 20px;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
}

/* Formulario */
.institutional-form {
    background: var(--bg);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg);
    color: var(--text);
    font-family: inherit;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent);
}


/* --- Home Showcase Moderno --- */
.hero {
    height: 70vh;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('https://via.placeholder.com/1200x800?text=Sede+COMEZU');
    background-size: cover; background-position: center;
    display: flex; align-items: center; text-align: center; color: white;
}

.areas-showcase { padding: 80px 0; background: var(--bg); }

.section-header-center { text-align: center; margin-bottom: 50px; }

.divider-yellow { 
    width: 60px; height: 4px; background: var(--accent); margin: 15px auto; 
}

.modern-grid-areas {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px;
}

.area-item-modern {
    position: relative; height: 380px; border-radius: 15px;
    overflow: hidden; box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.area-item-modern img {
    width: 100%; height: 100%; object-fit: cover; transition: 0.5s ease;
}

.area-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.4) 5%, transparent 30%);
}

.area-text-content {
    position: absolute; bottom: 25px; left: 25px; right: 25px;
    color: white; z-index: 2; transition: 0.4s;
}

.area-tag {
    background: var(--accent); color: black; padding: 3px 10px;
    font-size: 10px; font-weight: 800; border-radius: 3px; display: inline-block; margin-bottom: 8px;
}

.area-item-modern:hover img { transform: scale(1.08); }

.icon-circle-large {
    width: 100px; height: 100px; background: var(--accent);
    color: #000000; border-radius: 50%; display: flex;
    align-items: center; justify-content: center; font-size: 40px; margin: 0 auto 20px;
}

.btn-action-yellow {
    display: inline-block; background: var(--accent); color: #000;
    padding: 10px 20px; border-radius: 5px; font-weight: 700; text-decoration: none; margin-top: 10px;
}

/* --- Estilos para corregir el diseño de Áreas --- */
.areas-seccion {
    padding: 60px 0;
    background: var(--bg);
}

.header-areas {
    text-align: center;
    margin-bottom: 40px;
}

.linea-amarilla {
    width: 80px;
    height: 4px;
    background: var(--accent);
    margin: 15px auto;
}

.grid-moderno-areas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Esto arregla el amontonamiento */
    gap: 30px;
}

.tarjeta-area {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tarjeta-area:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
}

.imagen-box {
    position: relative;
    height: 200px;
}

.imagen-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tag-area {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent);
    color: #000;
    padding: 5px 12px;
    font-size: 10px;
    font-weight: bold;
    border-radius: 5px;
    text-transform: uppercase;
}

.contenido-area {
    padding: 20px;
}

.contenido-area h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--text);
}

.contenido-area p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text);
    opacity: 0.8;
}

/* Ajuste para el modo oscuro */
[data-theme="dark"] .tarjeta-area {
    background: #001d3d;
    border-color: #333;
}
/* --- Estilos Base --- */
:root {
    /* Identidad Visual Institucional - COMEZU */
    --primary: #002855;      /* Azul Naval Profesional */
    --accent: #ffd500;       /* Tu Amarillo Preferido  */
    --accent-hover: #e6e300;
    
    /* Colores de Interfaz */
    --bg: #ffffff;
    --bg-soft: #f4f7f9;      /* Azul grisáceo muy suave para fondos */
    --text: #1a1a1a;
    --text-light: #555555;
    --border: #e1e8ed;
    --success: #28a745;
    
    /* Dimensiones y Efectos */
    --nav-h: 80px;
    --radius: 12px;
    --shadow: 0 4px 20px rgba(0, 40, 85, 0.1);
}

[data-theme="dark"] {
    --bg: #0a192f;           /* Azul naval profundo para modo oscuro */
    --bg-soft: #112240;
    --text: #e6f1ff;
    --text-light: #8892b0;
    --border: #233554;
    --primary: #001d3d;      /* Azul aún más oscuro para elementos primarios */
}

body { font-family: 'Montserrat', sans-serif; background: var(--bg); color: var(--text); transition: 0.3s; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }


/* --- Navbar --- */
.navbar { background: #000; color: white; padding: 15px 0; position: sticky; top: 0; z-index: 1000; }
.nav-wrapper { display: flex; justify-content: space-between; align-items: center; }
.nav-menu { display: flex; list-style: none; gap: 20px; }
.nav-menu a { color: white; text-decoration: none; font-weight: 600; }
.nav-menu a.active { color: var(--accent); }

/* --- Hero --- */
.hero { 
    height: 60vh; background: #1a1a1a; color: white; 
    display: flex; align-items: center; text-align: center; 
}

/* --- Cards de Servicios --- */
.services-home-grid { 
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 30px; padding: 60px 0; 
}

.service-home-card { 
    background: var(--bg); border: 1px solid var(--border); 
    padding: 40px 20px; border-radius: 15px; text-align: center; 
}

.icon-circle-large { 
    width: 100px; height: 100px; background: var(--accent); color: black; 
    border-radius: 50%; display: flex; align-items: center; 
    justify-content: center; font-size: 40px; margin: 0 auto 20px; 
}

.btn-action-yellow { 
    background: var(--accent); color: black; padding: 10px 20px; 
    text-decoration: none; border-radius: 5px; font-weight: 800; display: inline-block; 
}
/* --- Estilos para Áreas del Gremio --- */
.section-subtitle {
    text-align: center;
    margin-top: -20px;
    margin-bottom: 40px;
    opacity: 0.8;
}

.areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.area-card {
    background: var(--bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border);
}

.area-card:hover {
    transform: translateY(-10px);
}

.area-img-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.area-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.area-overlay {
    position: absolute;
    top: 15px;
    right: 15px;
}

.area-tag {
    background: var(--accent);
    color: #000;
    padding: 5px 12px;
    font-size: 0.7rem;
    font-weight: 800;
    border-radius: var(--radius);
    text-transform: uppercase;
}

.area-content {
    padding: 20px;
}

.area-content h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--text);
}

.area-content p {
    font-size: 0.95rem;
    line-height: 1.5;
    opacity: 0.8;
}

/* --- Diseño de Áreas Recreativas con Fotos Circulares --- */
.areas-visual-grid {
    display: flex;
    flex-direction: column;
    gap: 60px;
    padding-top: 40px;
}

.area-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.area-item.inverse {
    flex-direction: row-reverse;
}

.area-col-text {
    flex: 1;
    text-align: right;
}

.area-item.inverse .area-col-text {
    text-align: left;
}

.area-col-text h3 {
    font-size: 1.5rem;
    color: var(--text);
    margin-bottom: 15px;
}

.area-col-text p {
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.9;
}

.circle-img-container {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    border: 8px solid var(--accent); /* El amarillo de COMEZU */
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

.circle-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* --- Nueva Rejilla de Áreas --- */
.areas-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.area-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.area-card:hover {
    transform: translateY(-8px);
}

.area-card-img {
    position: relative;
    height: 220px;
}

.area-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.area-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent);
    color: #000;
    padding: 5px 12px;
    font-size: 0.7rem;
    font-weight: 800;
    border-radius: 5px;
    text-transform: uppercase;
}

.area-card-content {
    padding: 25px;
}

.area-card-content h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--text);
}

.area-card-content p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text);
    opacity: 0.8;
}

/* Ajuste del título */
.section-subtitle {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.7;
}

/* --- Grid Estilo Directiva aplicado a Áreas --- */
.directiva-style-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.member-card {
    background: var(--bg);
    padding: 30px 20px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid var(--border);
    transition: 0.3s;
}

.member-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.member-img-circle {
    width: 150px;
    height: 150px;
    margin: 0 auto 20px;
    border-radius: 50%;
    border: 5px solid var(--accent); /* El anillo amarillo */
    overflow: hidden;
}

.member-img-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-info h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--text);
}

.member-role {
    display: block;
    color: var(--accent);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.member-info p {
    font-size: 0.9rem;
    line-height: 1.4;
    opacity: 0.8;
}

/* --- VARIABLES Y RESET CRÍTICO --- */
:root {
    /* Identidad Visual Institucional - COMEZU */
    --primary: #002855;      /* Azul Naval Profesional */
    --accent: #ffd500;       /* Tu Amarillo Preferido  */
    --accent-hover: #e6e300;
    
    /* Colores de Interfaz */
    --bg: #ffffff;
    --bg-soft: #f4f7f9;      /* Azul grisáceo muy suave para fondos */
    --text: #1a1a1a;
    --text-light: #555555;
    --border: #e1e8ed;
    --success: #28a745;
    
    /* Dimensiones y Efectos */
    --nav-h: 80px;
    --radius: 12px;
    --shadow: 0 4px 20px rgba(0, 40, 85, 0.1);
}

[data-theme="dark"] {
    --bg: #0a192f;           /* Azul naval profundo para modo oscuro */
    --bg-soft: #112240;
    --text: #e6f1ff;
    --text-light: #8892b0;
    --border: #233554;
    --primary: #001d3d;      /* Azul aún más oscuro para elementos primarios */
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body { 
    font-family: 'Montserrat', sans-serif; 
    background-color: var(--bg); 
    color: var(--text); 
    line-height: 1.6; 
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.section { padding: 80px 0; }
.bg-soft { background-color: var(--bg-soft); }

/* --- TÍTULOS --- */
  .titulo-seccion {
            text-align: center;
            font-weight: 900;
            text-transform: uppercase;
            color: var(--texto-principal);
            font-size: 2.2rem;
            margin-bottom: 40px;
        }

.section-subtitle {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
    opacity: 0.8;
}

/* --- GRID DE ÁREAS (ESTILO DIRECTIVA CORREGIDO) --- */
.directiva-style-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.member-card {
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 40px 25px;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.member-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.member-img-circle {
    width: 160px;
    height: 160px;
    margin: 0 auto 25px;
    border-radius: 50%;
    border: 6px solid var(--accent); /* Aro Amarillo */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.member-img-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Esto evita que la imagen se estire */
}

.member-info h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    font-weight: 700;
}

.member-role {
    display: inline-block;
    background: var(--accent);
    color: #000;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 15px;
    border-radius: 50px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.member-info p {
    font-size: 0.95rem;
    opacity: 0.8;
}


/* --- FOOTER SIEMPRE OSCURO (Independiente del tema) --- */
.main-footer {
    background-color: #000000 !important; /* Fondo negro obligatorio */
    color: #ffffff !important;
    padding: 40px 0;
    text-align: center;
    border-top: 2px solid #333;
}

.copy {
    font-size: 0.9rem;
    margin-bottom: 10px;
    opacity: 0.9;
}

.location-footer {
    font-size: 0.85rem;
    margin-bottom: 30px;
    opacity: 0.8;
}

/* Contenedor de estadísticas */
.visit-stats {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap; /* Responsive */
}

/* Las pastillas de estadísticas (Negro y Amarillo) */
.stat-pill {
    display: flex;
    overflow: hidden;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* Parte izquierda (Amarilla) */
.s-label {
    background-color: var(--accent); /* Amarillo COMEZU */
    color: #000;
    padding: 10px 18px;
}

/* Parte derecha (Negra) */
.s-val {
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 10px 18px;
    min-width: 80px;
}



/* Centrado de Títulos y Decoración */
.section-header {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.title-underline {
    width: 60px;
    height: 4px;
    background-color: var(--accent);
    margin: 15px 0 20px;
    border-radius: 2px;
}

/* Tarjeta Principal Centrada */
.featured-area {
    max-width: 800px;
    margin: 0 auto 50px auto !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Rejilla de áreas (2 columnas en escritorio, 1 en móvil) */
.board-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
}

/* Refuerzo de Footer para que no se mueva */
.main-footer {
    background-color: #000 !important;
    padding: 60px 0 40px !important;
}

.stat-pill {
    border: 1px solid #333;
    display: flex;
    border-radius: 8px;
    overflow: hidden;
}
.hero-section {
    position: relative;
    height: 75vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Mantiene la proporción cubriendo el espacio */
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3); /* Oscurece el video para resaltar el texto */
}

.hero-content {
    position: relative;
    z-index: 2; /* Coloca el texto por encima del video y el overlay */
    text-align: center;
    width: 100%;
}
.hero-section {
    position: relative;
    height: 70vh; /* Ajusta la altura a tu gusto */
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%; /* Enfoca las caras centrándolas verticalmente */
}

/* Capa oscura para que el texto se lea bien sobre el GIF */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3); /* Ajusta el 0.5 si quieres más o menos oscuridad */
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}
.hero-section {
    position: relative;
    height: 75vh; /* Ajusta la altura a tu gusto */
    width: 100%;
    /* La imagen se coloca aquí */
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('TU_IMAGEN_AQUI.jpg');
    background-size: cover; /* Hace que la foto cubra todo el espacio sin estirarse */
    background-position: center; /* Centra la foto */
    background-attachment: fixed; /* Opcional: crea un efecto de movimiento lento al hacer scroll */
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    overflow: hidden;
}
/* --- ESTILOS COMUNES PARA TODOS LOS BANNERS --- */
.section-banner {
    position: relative;
    padding: 100px 0;
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    text-align: center;
    color: white;
    margin-bottom: 50px;
}

.section-title-alt {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin: 0;
    color: #ffffff !important;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.title-underline-center {
    width: 80px;
    height: 4px;
    background-color: var(--accent);
    margin: 20px auto 0;
    border-radius: 2px;
}

/* --- CONFIGURACIÓN ESPECÍFICA DE IMÁGENES --- */

/* Banner de Servicios */
.banner-servicios {
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), 
                      url('https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?fm=jpg&q=60&w=3000');
}

/* Banner de Noticias */
.banner-noticias {
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), 
                      url('https://img.magnific.com/vector-gratis/gradiente-ultimas-noticias-fondo_23-2151172826.jpg?semt=ais_hybrid&w=740&q=80');
}                 
.banner-eventos {
    /* Mantenemos el degradado y la ruta de tu imagen local */
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), 
                      url('Fotos/5102905843757289983.jpg');
                     
   
    
   
                      
}
/* Banner de Deportes */
.banner-deportes {
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), 
                      url('https://et12.edu.ar/deportes/img/Banner%20Deportes.png');
}
/* Banner de Biblioteca */
.banner-biblioteca {
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), 
                      url('https://plus.unsplash.com/premium_photo-1695942301094-472c4dbf9130?fm=jpg&q=60&w=3000&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxzZWFyY2h8MXx8YmlibGlvdGVjYSUyMGp1ciVDMyVBRGRpY2F8ZW58MHx8MHx8fDA%3D');
}
/* Banner de Directiva */
.banner-directiva {
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), 
                      url('https://www.expoknews.com/wp-content/uploads/2019/08/Cual-es-el-rol-de-la-junta-directiva-ante-la-RSE.jpg');
}
/* Banner de Contacto */
/* Banner de Contacto - Sombreado Suave */


.banner-contacto {
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), 
                      url('Fotos/Captura de pantalla 2026-04-12 195837.png');
}

/* Espaciado de secciones para que no se peguen */
#servicios, #noticias, #biblioteca, #directiva, #contacto {
    padding-top: 20px;
}
/* Estilos para Cifras de Gestión */
.stats-banner {
    background-color: var(--accent);
    color: #000;
    padding: 60px 0;
}
.stats-wrapper {
    display: flex;
    justify-content: space-around;
    text-align: center;
    flex-wrap: wrap;
    gap: 30px;
}
.stat-num {
    display: block;
    font-size: 3rem;
    font-weight: 800;
}
.stat-desc {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
}

/* Estilo para Misión/Visión */
.institutional-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    text-align: center;
}

/* --- SECCIÓN INSTITUCIONAL PREMIUM --- */
.institutional-section {
    padding: 100px 0;
    background: linear-gradient(to bottom, #ffffff, #f0f2f5);
    position: relative;
}

/* Encabezado */
.section-header-alt {
    text-align: center;
    margin-bottom: 60px;
}

.pre-title {
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    display: block;
    margin-bottom: 10px;
}

.title-main {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0;
}

.header-line {
    width: 60px;
    height: 4px;
    background: var(--accent);
    margin: 20px auto 0;
    border-radius: 10px;
}

/* Grid de Tarjetas */

.inst-grid-premium {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- TARJETAS GLASSMORPHISM --- */

/* --- TARJETAS GLASSMORPHISM PROFESIONALES --- */
.glass-card {
    /* Fondo translúcido mínimo para que se vea el Azul Naval del fondo */
    background: rgba(255, 255, 255, 0.03) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    
    /* Bordes sutiles */
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-top: 4px solid #ffd500 !important; /* Tu amarillo preferido */
    
    border-radius: 20px;
    padding: 50px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* EFECTO HOVER: Sin negro, solo brillo y elevación */
.glass-card:hover {
    transform: translateY(-15px);
    /* En lugar de negro, usamos un blanco casi invisible para dar brillo */
    background: rgba(255, 255, 255, 0.08) !important; 
    
    /* Sombra azulada sutil para que combine con el fondo naval */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(250, 252, 0, 0.5) !important; /* El borde brilla un poco en amarillo */
}

/* Títulos y Párrafos */
.glass-card h3 {
    color: #ffd500 !important;
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.glass-card p {
    color: var(--text) !important; /* Se adapta: negro en claro, blanco en dark */
    font-size: 1.1rem;
    line-height: 1.8;
    font-weight: 500;
}

/* Iconos circulares */
.card-icon-wrapper {
    background: #ffd500 !important;
    color: #002855 !important; /* Azul naval por dentro */
    width: 85px;
    height: 85px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    margin-bottom: 25px;
    box-shadow: 0 0 20px rgba(250, 252, 0, 0.3);
    transition: 0.4s ease;
}

.glass-card:hover .card-icon-wrapper {
    transform: scale(1.1) rotate(10deg);
    background: #ffffff !important; /* El icono aclara al pasar el mouse */
}

/* Detalle de línea inferior */
.card-accent {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 5px;
    background: #ffd500;
    transition: width 0.4s ease;
}

.glass-card:hover .card-accent {
    width: 100%;
}
/* --- SECCIÓN INSTITUCIONAL ADAPTABLE --- */
.institutional-section {
    padding: 100px 0;
    /* Usa el fondo principal de tu tema */
    background: var(--bg-color, #ffffff); 
    transition: background 0.3s ease;
}

.section-header-alt .title-main {
    font-size: 2.5rem;
    font-weight: 800;
    /* Usa el color de texto de tu tema */
    color: var(--text-color, #1a1a1a); 
    margin: 0;
}

/* Tarjetas con efecto adaptable */
.glass-card {
    /* Fondo que cambia: blanco en claro, gris oscuro en dark */
    background: var(--card-bg, #ffffff); 
    padding: 50px 35px;
    border-radius: 20px;
    position: relative;
    transition: all 0.4s ease;
    /* Borde sutil que cambia según el tema */
    border: 1px solid var(--border-color, #e1e8ed); 
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* Colores específicos para Modo Oscuro (se activa con tu atributo data-theme) */
[data-theme="dark"] .glass-card {
    background: #001d3d; /* Gris muy oscuro para el modo noche */
    border-color: #333333;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

[data-theme="dark"] .glass-card p {
    color: #bbbbbb; /* Texto más suave en modo oscuro */
}

[data-theme="dark"] .glass-card h3 {
    color: #ffffff;
}

[data-theme="dark"] .card-icon-wrapper {
    background: #2d2d2d; /* Fondo del icono en modo oscuro */
}

/* Animaciones y Hover (Igual para ambos modos) */
.glass-card:hover {
    transform: translateY(-12px);
    border-color: var(--accent);
}

.card-icon-wrapper {
    width: 80px;
    height: 80px;
    background: #fff9e6;
    color: var(--accent);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    margin: 0 auto 25px;
}

.glass-card p {
    color: var(--text-color-light, #555);
    line-height: 1.8;
}

.header-line {
    width: 60px;
    height: 4px;
    background: var(--accent);
    margin: 20px auto 0;
}
/* --- SECCIÓN INSTITUCIONAL REFINADA Y ADAPTABLE --- */
.institutional-section {
    padding: 80px 0;
    /* Eliminamos el fondo blanco fijo para que use el de tu página */
    background: transparent; 
}

/* Encabezado adaptable */
.section-header-alt .title-main {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-color, #ffffff); /* Blanco por defecto si no hay variable */
    margin: 0;
}

/* TARJETAS: Ahora con fondo dinámico */
.glass-card {
    /* Fondo oscuro suave para que resalte sobre el negro absoluto */
    background: rgba(255, 255, 255, 0.05); 
    padding: 40px 30px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1); /* Borde casi invisible */
    text-align: center;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px); /* Efecto cristal */
}

/* Títulos y párrafos dentro de la tarjeta */
.glass-card h3 {
    color: #ffffff;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.glass-card p {
    color: #cccccc; /* Gris claro para lectura cómoda */
    line-height: 1.7;
    font-size: 0.95rem;
}

/* Contenedor del Icono */
.card-icon-wrapper {
    width: 60px;
    height: 60px;
    background: rgba(251, 192, 45, 0.15); /* Amarillo muy suave de fondo */
    color: var(--accent); /* Tu amarillo institucional */
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 20px;
}

/* Efecto al pasar el mouse (Hover) */
.glass-card:hover {
    transform: translateY(-10px);
    background: rgba(251, 192, 45, 0.1); /* Tinte amarillo al tocar */
    border-color: var(--accent);
}

/* --- AJUSTE AUTOMÁTICO MODO CLARO (Si tu body cambia de clase o data-theme) --- */
body.light-mode .institutional-section,
[data-theme="light"] .institutional-section {
    background: #f9f9f9;
}

body.light-mode .glass-card,
[data-theme="light"] .glass-card {
    background: #ffffff;
    border-color: #e0e0e0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

body.light-mode .glass-card h3,
[data-theme="light"] .glass-card h3 {
    color: #1a1a1a;
}

body.light-mode .glass-card p,
[data-theme="light"] .glass-card p {
    color: #555555;
}
/* Encabezado adaptable que cambia de color según el tema */
.section-header-alt .title-main {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0;
    /* Prioriza el color de texto de tu tema, si no, usa negro por defecto */
    color: var(--text-color, #1a1a1a); 
    transition: color 0.3s ease;
}

/* Forzar color blanco solo cuando el modo oscuro está activo */
[data-theme="dark"] .section-header-alt .title-main {
    color: #ffffff !important;
}

/* Forzar color oscuro cuando el modo claro está activo */
[data-theme="light"] .section-header-alt .title-main,
body.light-mode .section-header-alt .title-main {
    color: #1a1a1a !important;
}
.pre-title {
    color: var(--accent); /* Se mantiene amarillo en ambos */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    display: block;
    margin-bottom: 10px;
}

/* --- ESTILOS OPCIÓN 1: CONTADORES --- */
.stats-section {
    padding: 60px 0;
    background: var(--accent); /* El amarillo resalta mucho aquí */
    color: #000;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-item i { font-size: 2.5rem; margin-bottom: 15px; }
.stat-number { font-size: 3.5rem; font-weight: 900; margin: 0; line-height: 1; }
.stat-item p { font-weight: 700; text-transform: uppercase; margin-top: 10px; font-size: 0.9rem; }

/* --- ESTILOS OPCIÓN 2: TRÁMITES RÁPIDOS --- */
.quick-access-section { padding: 100px 0; background: transparent; }

.quick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.quick-card {
    display: flex;
    align-items: center;
    padding: 25px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.quick-card:hover {
    background: rgba(251, 192, 45, 0.1);
    border-color: var(--accent);
    transform: translateX(10px); /* Efecto de empuje lateral */
}

.quick-icon {
    width: 60px;
    height: 60px;
    background: var(--accent);
    color: #000;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-right: 20px;
}

.quick-info h4 { color: #fff; margin: 0 0 5px 0; font-size: 1.2rem; }
.quick-info p { color: #aaa; margin: 0; font-size: 0.9rem; }
.arrow { color: var(--accent); margin-left: auto; opacity: 0; transition: 0.3s; }
.quick-card:hover .arrow { opacity: 1; }

/* --- AJUSTES MODO CLARO --- */
[data-theme="light"] .quick-card {
    background: #ffffff;
    border-color: #eee;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
[data-theme="light"] .quick-info h4 { color: #1a1a1a; }
[data-theme="light"] .quick-info p { color: #666; }

.main-footer {
    background: #111; /* Negro profundo para el footer */
    color: #eee;
    padding: 80px 0 20px;
    border-top: 2px solid var(--accent);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col h4 {
    color: var(--accent);
    margin-bottom: 25px;
    font-weight: 800;
}

.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: 15px; color: #ccc; }
.footer-col i { color: var(--accent); margin-right: 10px; }

.social-links a {
    font-size: 1.5rem;
    color: #fff;
    margin-right: 20px;
    transition: 0.3s;
}

.social-links a:hover { color: var(--accent); }

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #222;
    font-size: 0.8rem;
    color: #666;
}

/* Ajuste Modo Claro */
[data-theme="light"] .main-footer {
    background: #f4f4f4;
    color: #333;
}
[data-theme="light"] .footer-col ul li { color: #555; }
[data-theme="light"] .social-links a { color: #333; }

/* --- FOOTER ULTRA-MINIMALISTA --- */
.site-footer {
    padding: 60px 0 30px;
    background: transparent;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 50px;
}

.footer-grid-minimal {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-label {
    display: block;
    color: var(--accent); /* Amarillo institucional */
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.footer-column p {
    color: #888;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 10px;
}

.footer-nav a {
    display: block;
    color: #888;
    text-decoration: none;
    font-size: 0.95rem;
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: #ffffff;
}

.footer-social-minimal {
    display: flex;
    gap: 20px;
}

.footer-social-minimal a {
    color: #888;
    font-size: 1.2rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

.footer-social-minimal a:hover {
    color: var(--accent);
    transform: translateY(-3px);
}

.footer-copyright {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 25px;
}

.footer-copyright p {
    color: #555;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

/* --- ADAPTACIÓN MODO CLARO --- */
[data-theme="light"] .site-footer {
    border-top-color: #eee;
}

[data-theme="light"] .footer-nav a:hover {
    color: #000;
}

[data-theme="light"] .footer-column p,
[data-theme="light"] .footer-nav a {
    color: #666;
}

/* --- FOOTER ULTRA-MINIMALISTA --- */
.site-footer {
    padding: 60px 0 30px;
    background: transparent;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 50px;
}

.footer-grid-minimal {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-label {
    display: block;
    color: var(--accent); /* Amarillo institucional */
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.footer-column p {
    color: #888;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 10px;
}

.footer-nav a {
    display: block;
    color: #888;
    text-decoration: none;
    font-size: 0.95rem;
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: #ffffff;
}

.footer-social-minimal {
    display: flex;
    gap: 20px;
}

.footer-social-minimal a {
    color: #888;
    font-size: 1.2rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

.footer-social-minimal a:hover {
    color: var(--accent);
    transform: translateY(-3px);
}

.footer-copyright {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 25px;
}

.footer-copyright p {
    color: #555;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

/* --- ADAPTACIÓN MODO CLARO --- */
[data-theme="light"] .site-footer {
    border-top-color: #eee;
}

[data-theme="light"] .footer-nav a:hover {
    color: #000;
}

[data-theme="light"] .footer-column p,
[data-theme="light"] .footer-nav a {
    color: #666;
}

/* --- BOTÓN VOLVER ARRIBA --- */
#backToTop {
    display: none;
  position: fixed;
    bottom: 20px; /* Pegado a la base */
    right: 20px;
    z-index: 999;
    border: none;
    outline: none;
    background-color: var(--accent); /* Tu amarillo institucional */
    color: #000;
    cursor: pointer;
    padding: 15px;
    border-radius: 12px;
    font-size: 1.2rem;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

#backToTop:hover {
    background-color: #1a1a1a;
    color: var(--accent);
    transform: translateY(-5px);
}

/* --- CORRECCIÓN DE ICONOS EN FOOTER --- */
.footer-social-minimal i {
    display: inline-block !important; /* Fuerza la visualización */
    visibility: visible !important;
    min-width: 20px;
    text-align: center;
}

/* Asegura que en modo oscuro los iconos no se "pierdan" */
[data-theme="dark"] .footer-social-minimal a {
    color: #888;
}

[data-theme="dark"] .footer-social-minimal a:hover {
    color: var(--accent);
}
/* Contenedor con margen para que no pegue al header */
.theme-toggle-container {
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle {
    position: relative;
    width: 58px;
    height: 30px;
    cursor: pointer;
}

.theme-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* El fondo del switch */
.toggle-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e0e0e0;
    border-radius: 30px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

/* El círculo que se mueve */
.toggle-circle {
    position: absolute;
    height: 24px;
    width: 24px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Iconos */
.toggle-circle i {
    font-size: 14px;
    position: absolute;
    transition: opacity 0.3s, transform 0.4s;
}

.sun-icon { color: var(--accent); opacity: 1; }
.moon-icon { color: #5c6bc0; opacity: 0; transform: rotate(-45deg); }

/* ESTADO ACTIVO (MODO OSCURO) */
input:checked + .toggle-slider {
    background-color: #333;
}

input:checked + .toggle-slider .toggle-circle {
    transform: translateX(28px);
}

input:checked + .toggle-slider .sun-icon {
    opacity: 0;
    transform: rotate(45deg);
}

input:checked + .toggle-slider .moon-icon {
    opacity: 1;
    transform: rotate(0deg);
}

/* Hover sutil */
.theme-toggle:hover .toggle-circle {
    box-shadow: 0 0 10px rgba(251, 192, 45, 0.4);
}
/* --- BOTÓN WHATSAPP FLOTANTE --- */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    left: 20px; /* Lo ponemos a la izquierda para no chocar con el botón de "Volver Arriba" */
    width: 60px;
    right: auto;
    height: 60px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Efecto de onda (Pulse) */
.whatsapp-float::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #25d366;
    border-radius: 50%;
    z-index: -1;
    animation: pulse-wa 2s infinite;
}

@keyframes pulse-wa {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.6); opacity: 0; }
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1);
    color: #fff;
}

/* Tooltip (Texto que aparece al poner el mouse) */
.tooltip-wa {
    position: absolute;
    left: 75px;
    background-color: #333;
    color: #fff;
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

.whatsapp-float:hover .tooltip-wa {
    opacity: 1;
    visibility: visible;
}



/* --- ESTILO DEFINITIVO NAVBAR --- */
.navbar {
    background-color: var(--bg); /* Usa el color de fondo del tema */
    border-bottom: 4px solid var(--accent);
    position: sticky;
    top: 0;
    z-index: 9999;
    padding: 10px 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: background 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Branding */
.brand {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.logo-img {
    height: 70px;
    width: auto;
}

.brand-titles {
    display: flex;
    flex-direction: column;
}

.main-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text); /* Cambia según el tema */
    line-height: 1;
}

.sub-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent); /* Siempre amarillo */
}

/* Derecha: Menú y Switch */
.nav-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 700;
    font-size: 0.85rem;
    transition: 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--accent);
}

/* --- SWITCH DE TEMA RE-DISEÑADO --- */
.theme-switch {
    position: relative;
    width: 50px;
    height: 26px;
    cursor: pointer;
}

.theme-switch input { opacity: 0; width: 0; height: 0; }

.slider {
    position: absolute;
    inset: 0;
    background: #333;
    border-radius: 30px;
    transition: 0.4s;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 5px;
}

.slider::before {
    content: "";
    position: absolute;
    height: 20px;
    width: 20px;
    left: 3px;
    background: white;
    border-radius: 50%;
    transition: 0.4s;
    z-index: 2;
}

input:checked + .slider { background: var(--accent); }
input:checked + .slider::before { transform: translateX(24px); }

.sun { color: var(--accent); font-size: 12px; }
.moon { color: #fff; font-size: 12px; }



/* --- CONFIGURACIÓN DE ESPACIOS NAVBAR --- */
.nav-wrapper {
    display: flex;
    justify-content: space-between; /* Empuja los dos bloques a los extremos */
    align-items: center;
    padding: 5px 0;
}

.brand-container {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    margin-left: -15px; /* Mueve el logo un poco más a la izquierda del margen del contenedor */
}

.logo-small {
    height: 46px; /* Tamaño ideal para que destaque sin ser gigante */
    width: auto;
}

.brand-text .full-name {
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.5;
    color: var(--text);
    text-transform: uppercase;
    display: block;
}

/* Grupo de la derecha (Menú y Switch) */
.nav-right-group {
    display: flex;
    align-items: center;
    gap: 40px; /* Espacio generoso entre el menú y el switch de tema */
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 10px; /* Distancia entre palabras del menú */
}

.nav-menu a {
    text-decoration: none;
    color: var(--text);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    transition: color 0.3s;
}

.nav-menu a:hover, .nav-menu a.active {
    color: var(--accent);
}

/* Ajuste del Toggle para que no quede volando */
.theme-toggle-container {
    display: flex;
    align-items: center;
    border-left: 1px solid var(-border); /* Una línea divisoria sutil */
    padding-left: 20px;
}
/* --- ESTILO ÚNICO Y COMPACTO PARA TODOS LOS MODALES --- */
.modal-overlay {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.85);
    backdrop-filter: blur(4px);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: var(--bg);
    color: var(--text);
    width: 90%;
    max-width: 450px; /* Tamaño compacto perfecto */
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    position: relative;
    overflow: hidden;
    animation: modalZoom 0.3s ease-out;
}

@keyframes modalZoom {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Cabecera genérica */
.modal-header-modern {
    padding: 20px;
    text-align: center;
    color: #000;
    background-color: var(--accent); /* Por defecto amarillo */
}

/* Diferenciación por colores usando una clase extra si quieres */
.header-blue { background: linear-gradient(135deg, #00d2ff 0%, #3a7bd5 100%) !important; color: white !important; }
.header-yellow { background: var(--accent) !important; color: #000 !important; }

.modal-header-modern i { font-size: 2.2rem; margin-bottom: 8px; }
.modal-header-modern h2 { font-size: 1.25rem; margin: 0; font-weight: 800; }

.modal-body-content { padding: 20px 25px; }

.modal-info-section { margin-bottom: 15px; }
.modal-info-section h4 { 
    color: var(--accent); 
    font-size: 0.95rem; 
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Ajuste de listas para que no ocupen tanto espacio */
.modal-list { 
    padding-left: 18px; 
    margin: 0;
}
.modal-list li { 
    font-size: 0.85rem; 
    margin-bottom: 5px; 
    line-height: 1.3;
}

.modal-close-x {
    position: absolute;
    top: 12px; right: 15px;
    font-size: 22px;
    cursor: pointer;
    z-index: 10;
    opacity: 0.7;
}
.modal-close-x:hover { opacity: 1; }

.btn-modal-close {
    width: 100%;
    padding: 14px;
    border: none;
    font-weight: 800;
    cursor: pointer;
    font-size: 0.9rem;
    transition: 0.3s;
}

/* --- ESTÁNDAR DE TIPOGRAFÍA --- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700;800&display=swap');

body, button, a {
    font-family: 'Montserrat', sans-serif; /* Tipografía moderna y uniforme */
}

/* --- BOTONES PREMIUM CONSISTENTES --- */
.btn-action-yellow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--accent); /* Tu amarillo #fbc02d */
    color: #000 !important;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 8px; /* Bordes suaves y modernos */
    border: 2px solid #000; /* Borde sutil para definir la forma */
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 130px;
    text-align: center;
}

.btn-action-yellow:hover {
    background-color: #000;
    color: var(--accent) !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Ajuste para el grupo de botones para que se alineen perfecto */
.btn-group {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 15px;
}

/* Contenedor para que los botones NO se apilen */
.btn-group-library {
    display: flex;
    justify-content: center; /* Centra el botón en la tarjeta */
    gap: 10px;
    margin-top: 20px;
    flex-wrap: nowrap; /* Evita que se pongan uno arriba del otro */
}

/* Ajuste del botón para que sea idéntico a los anteriores */
.btn-action-yellow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--accent);
    color: #000 !important;
    font-family: 'Montserrat', sans-serif; /* Misma fuente */
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    padding: 10px 20px;
    border-radius: 8px;
    border: 2px solid #000;
    text-decoration: none;
    transition: 0.3s;
}

/* El número pequeño al lado del texto */
.btn-action-yellow small {
    margin-left: 8px;
    opacity: 0.7;
    font-size: 0.75rem;
}

.btn-action-yellow:hover {
    background-color: #000;
    color: var(--accent) !important;
    transform: translateY(-2px);
}

.news-modal-size {
    max-width: 650px !important; /* Más ancho para lectura */
    max-height: 90vh;
    overflow-y: auto;
}

.announcement-link {
    background: none;
    border: none;
    color: var(--accent);
    font-weight: 700;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    padding: 0;
    text-decoration: underline;
}

.announcement-link:hover {
    color: #000;
}
/* Contenedor de la imagen en el modal de noticias */
.news-modal-img-wrapper {
    width: 100%;
    height: 250px; /* Altura máxima fija para que no sea gigante */
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 20px;
    background-color: #f8f8f8; /* Fondo neutro por si la imagen es transparente */
    display: flex;
    justify-content: center;
    align-items: center;
}

.news-modal-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Para logos (no se corta) */
    /* Cambia a 'cover' si prefieres que las fotos (como la piscina) llenen todo el cuadro */
}

/* Si es una foto de paisaje (piscina), que llene el cuadro */
.news-modal-img-wrapper img.photo {
    object-fit: cover;
}
#contenidoNoticia ul {
    padding-left: 20px;
    margin-top: 10px;
}

#contenidoNoticia li {
    margin-bottom: 8px;
    font-size: 0.9rem;
}
.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000; /* Super alto */
}

.lib-modal-size {
    background: white;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    position: relative;
}



/* --- CHATBOT MODERNO --- */

/* Botón disparador */
#chat-button {
    position: fixed;
    bottom: 100px; /* Lo subimos a 100px para que el de WhatsApp (a 20px) quepa debajo */
    left: 20px;    /* Cambiado de right a left */
    right: auto;
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 10001;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#chat-button:hover { transform: scale(1.1); }

/* Ventana principal */
#chat-window {
    position: fixed;
    bottom: 170px; /* Subimos la ventana para que abra justo encima del botón */
    left: 20px;    /* Cambiado de right a left */
    right: auto;
    width: 330px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    z-index: 10000;
    display: none; 
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #eef2f6;
    animation: slideUp 0.4s ease;
}

/* Cabecera Corregida */
.chat-header {
    background: linear-gradient(135deg, #002e5d, #004a94);
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    height: 70px; /* Un poco más de altura para comodidad */
    box-sizing: border-box;
    width: 100%;
}

.header-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1; 
    min-width: 0; /* Evita que el contenedor desborde al padre */
}

.status-container {
    display: flex;
    flex-direction: column;
    min-width: 0; /* Permite que el texto se trunque si es necesario */
}

.chat-avatar {
    width: 38px;
    height: 38px;
    background: white;
    border-radius: 50%;
    padding: 2px;
    flex-shrink: 0; /* Evita que el logo se aplaste */
}

.chat-name { 
    font-weight: 700; 
    font-size: 0.95rem; 
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* Si el nombre es muy largo, pone ... */
}

.chat-status { font-size: 0.7rem; color: #90ee90; display: flex; align-items: center; gap: 4px; }

.status-dot { width: 8px; height: 8px; background: #2ecc71; border-radius: 50%; }

/* Botón Cerrar Corregido */
.close-chat {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0; /* IMPRESCINDIBLE: No permite que el botón se mueva o desaparezca */
    margin-left: 10px;
}

.close-chat:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Cuerpo */
#chat-body {
    padding: 20px;
    background: #f8fafc;
    height: 300px; /* Altura fija para estabilidad */
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Burbujas */
.bot-msg {
    background: #ffffff;
    color: #334e68;
    padding: 12px 16px;
    border-radius: 15px;
    border-bottom-left-radius: 4px;
    font-size: 0.9rem;
    line-height: 1.5;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    max-width: 85%;
    align-self: flex-start;
}

.user-msg {
    background: #002e5d;
    color: #ffffff;
    padding: 12px 16px;
    border-radius: 18px;
    border-bottom-right-radius: 4px;
    font-size: 0.9rem;
    line-height: 1.5;
    max-width: 85%;
    align-self: flex-end;
    box-shadow: 0 4px 10px rgba(0, 46, 93, 0.15);
}

/* Pie de página de escritura */
.chat-footer {
    padding: 12px 15px;
    background: #ffffff;
    border-top: 1px solid #eef2f6;
    display: flex;
    align-items: center;
    gap: 8px;
}

#user-input {
    flex: 1;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 8px 15px;
    outline: none;
    font-size: 0.9rem;
    transition: 0.3s;
}

#user-input:focus { border-color: #002e5d; }

#send-btn {
    background: #002e5d;
    color: white;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* Scrollbar */
#chat-body::-webkit-scrollbar { width: 4px; }
#chat-body::-webkit-scrollbar-thumb { background: #ccc; border-radius: 10px; }

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
/* --- SECCIÓN GALERÍA (OPTIMIZADA PARA 12 FOTOS DISTINTAS) --- */
.ins-gallery-section {
    padding: 60px 0;
    background: transparent;
    overflow: hidden;
}

/* Contenedor con efecto de desvanecimiento lateral (Fade) */
.ins-gallery-wrapper {
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
    position: relative;
    display: block;
}

/* Capas de degradado para suavizar los bordes */
.ins-gallery-wrapper::before,
.ins-gallery-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    width: 120px; /* Ancho del efecto de desvanecimiento */
    height: 100%;
    z-index: 5;
    pointer-events: none; /* Permite clickear las fotos a través del degradado */
}

/* Ajuste de colores del degradado (Modo Claro por defecto) */
.ins-gallery-wrapper::before {
    left: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.9), transparent);
}

.ins-gallery-wrapper::after {
    right: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 0.9), transparent);
}

/* Ajuste automático para Modo Oscuro (Si usas una clase en el body) */
body.dark-mode .ins-gallery-wrapper::before,
[data-theme="dark"] .ins-gallery-wrapper::before {
    background: linear-gradient(to right, rgba(18, 18, 18, 1), transparent);
}

body.dark-mode .ins-gallery-wrapper::after,
[data-theme="dark"] .ins-gallery-wrapper::after {
    background: linear-gradient(to left, rgba(18, 18, 18, 1), transparent);
}

.ins-gallery-track {
    display: flex;
    gap: 20px;
    /* (300px + 20px) * 24 fotos total (12 orig + 12 copias) = 7680px */
    width: 7680px; 
    animation: insScroll 60s linear infinite !important;
    -webkit-animation: insScroll 60s linear infinite !important;
    will-change: transform;
}

.ins-gallery-track:hover { 
    animation-play-state: paused; 
}

@keyframes insScroll {
    0% { transform: translate3d(0, 0, 0); }
    /* El loop ocurre al terminar la foto 12: 3840px */
    100% { transform: translate3d(-3840px, 0, 0); }
}

@-webkit-keyframes insScroll {
    0% { -webkit-transform: translate3d(0, 0, 0); }
    100% { -webkit-transform: translate3d(-3840px, 0, 0); }
}

/* Estilos de los ítems */
.ins-gallery-item {
    width: 300px;
    height: 200px;
    flex-shrink: 0;
    border-radius: 15px;
    overflow: hidden;
}

.ins-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
}

.ins-gallery-item img:hover {
    transform: scale(1.08);
    border-color: var(--accent);
}

/* --- MODAL DE GALERÍA (AISLADO TOTAL) --- */
/* Asegúrate de que el overlay sea el que controle la visibilidad de todo */
.ins-gallery-overlay {
    display: none; /* Esto oculta TODO lo que esté adentro, incluyendo la X */
    position: fixed;
    z-index: 100000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
}

.ins-gallery-img-view {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
    border-radius: 5px;
    box-shadow: 0 0 40px rgba(0,0,0,0.5);
    animation: insZoom 0.3s ease-out forwards;
}

@keyframes insZoom {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Mejora la posición de la X para que no flote en cualquier lado */
.ins-gallery-close {
    position: absolute;
    top: 30px;
    right: 30px;
    color: white;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    z-index: 100001; /* Un poco por encima de la imagen */
}
.ins-gallery-close:hover {
    color: var(--accent);
}
/* --- SECCIÓN REVISTAS (ESTILO INSTITUCIONAL) --- */
.magazine-archive {
    padding: 80px 0;
    background: transparent;
}

.magazine-grid-official {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.mag-card-official {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mag-card-official:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

/* Contenedor de la Portada */
.mag-cover-wrap {
    position: relative;
    height: 260px; /* Un poco más de altura para lucir la portada */
    overflow: hidden;
}

.mag-cover-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.mag-card-official:hover .mag-cover-wrap img {
    transform: scale(1.1);
}

.mag-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.3s;
}

.mag-card-official:hover .mag-overlay { 
    opacity: 1; 
}

.mag-overlay i { 
    color: var(--accent); 
    font-size: 2.5rem; 
}

/* Cuerpo de la Tarjeta */
.mag-body-official {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.mag-tag {
    align-self: flex-start;
    background: rgba(212, 175, 55, 0.1);
    color: var(--accent);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mag-body-official h3 {
    margin: 15px 0 8px;
    font-size: 1.2rem;
    color: #fff;
    line-height: 1.4;
}

.mag-meta {
    display: flex;
    gap: 15px;
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
    margin-bottom: 25px;
    padding: 10px 0;
}

.mag-meta i { 
    color: var(--accent); 
    margin-right: 5px; 
}

/* Pie de la Tarjeta (Acción Principal) */
.mag-footer-actions {
    margin-top: auto; /* Empuja el botón siempre al final */
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.mag-dl-button.full-width {
    width: 100%;
    background: var(--accent);
    color: #000 !important;
    padding: 12px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.mag-dl-button.full-width:hover {
    background: #fff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}
.mag-card-official {
    background: var(--mag-card-bg); /* Variable */
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.4s ease;
}

.mag-body-official h3 {
    margin: 15px 0 8px;
    font-size: 1.2rem;
    color: var(--mag-text-title); /* Variable: Cambia según el modo */
    line-height: 1.4;
}

.mag-meta {
    display: flex;
    gap: 15px;
    color: var(--mag-text-meta); /* Variable: Cambia según el modo */
    font-size: 0.85rem;
    margin-bottom: 25px;
    padding: 10px 0;
}

/* Ajuste adicional para el título de la sección si no se ve */
.title-main {
    color: var(--mag-text-title);
}

/* ============================================================
   1. BOTÓN HAMBURGUESA (ESTILO GENERAL)
   ============================================================ */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 2100;
}
.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text);
    border-radius: 5px;
}

/* ============================================================
   2. MÓVIL (MAX-WIDTH: 992PX)
   ============================================================ */
@media (max-width: 992px) {
    .nav-wrapper {
        padding: 10px 20px !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
    }
    .full-name { display: none !important; }
    .short-name { display: inline-block !important; font-weight: 800; font-size: 1.1rem; }

    .hero-section {
        height: 70vh !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 !important;
        text-align: center !important;
    }

    /* Reglas fuertes SOLO para móviles */
    body .hero-content {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        padding: 0 20px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        left: 0 !important;
        transform: none !important;
    }

    body .hero-content h2 {
        font-size: 1.25rem !important; /* Tamaño ideal para que no se corte en el Android */
        line-height: 1.2 !important;
        margin: 0 0 15px 0 !important;
        width: 100% !important;
    }

    body .hero-content p {
        font-size: 0.95rem !important;
        margin: 0 auto 25px auto !important;
        max-width: 300px !important;
    }

    body .hero-btn {
        display: inline-flex !important; 
        width: auto !important;
        min-width: 160px !important;
        padding: 14px 25px !important;
        border-radius: 50px !important;
        margin: 0 auto !important;
    }

    .nav-menu {
        position: fixed !important;
        top: 0; right: -100%;
        width: 80% !important;
        height: 100vh;
        background: var(--bg) !important;
        z-index: 2000;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        transition: 0.5s ease;
    }
    .nav-menu.active { right: 0 !important; }
    .hamburger { display: flex !important; }
    
}

/* ============================================================
   3. PC (MIN-WIDTH: 993PX) - RESTAURAR TAMAÑO ORIGINAL
   ============================================================ */
@media (min-width: 993px) {
    /* Forzamos que en PC el título vuelva a su tamaño imponente */
    body .hero-content h2 {
        font-size: 3.5rem !important; 
        line-height: 1.1 !important;
        margin-bottom: 20px !important;
    }
    
    body .hero-content p {
        font-size: 1.2rem !important;
        max-width: 600px !important;
        margin: 0 auto 30px auto !important;
    }

    body .hero-btn {
        padding: 15px 40px !important;
        font-size: 1.1rem !important;
    }
    
}
/* ============================================================
   SECCIÓN DE NOTICIAS: OPTIMIZACIÓN DE TAMAÑO Y CLIC
   ============================================================ */

/* 1. MÓVIL (Pantallas pequeñas) */
@media (max-width: 992px) {
    .news-list-container {
        display: flex !important;
        flex-direction: column !important;
        gap: 15px !important; /* Menos espacio entre tarjetas */
        padding: 10px !important;
    }

    /* Tarjeta compacta */
    .news-announcement {
        display: flex !important;
        flex-direction: column !important;
        width: 85% !important; /* Más pequeña para que no sature la vista */
        max-width: 320px !important;
        background: var(--bg-card, #fff) !important;
        border-radius: 12px !important;
        overflow: hidden !important;
        box-shadow: 0 4px 12px rgba(0,0,0,0.08) !important;
        margin: 0 auto !important;
    }

    /* Imagen reducida */
    .announcement-img {
        width: 100% !important;
        height: 160px !important; /* Altura más baja para que sea pequeña */
        flex: none !important;
    }

    .announcement-img img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    /* Cuerpo de la noticia pequeño */
    .announcement-body {
        padding: 12px !important;
        text-align: center !important;
    }

    .announcement-body h2 {
        font-size: 1rem !important; /* Título pequeño */
        margin: 5px 0 10px 0 !important;
    }

    .announcement-body p {
        font-size: 0.8rem !important;
        line-height: 1.4 !important;
        margin-bottom: 12px !important;
        /* Cortar texto sobrante */
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .announcement-tag {
        display: table !important; /* Ajusta el ancho al texto */
        margin: 0 auto 10px auto !important; /* El 'auto' a los lados lo centra */
        text-align: center !important;
        background: #ffd500 !important;
        color: #000 !important;
        padding: 4px 12px !important;
        border-radius: 20px !important;
        font-size: 0.7rem !important;
    }

    /* Botón de acción (Prioridad de clic) */
    .announcement-link {
        width: 100% !important;
        padding: 10px !important;
        font-size: 0.85rem !important;
        cursor: pointer !important;
        position: relative !important;
        z-index: 5 !important; /* Asegura que el clic llegue al botón */
    }
}

/* 2. PC (Restaurar diseño ancho original) */
@media (min-width: 993px) {
    .news-announcement {
        display: flex !important;
        flex-direction: row !important; /* Imagen a la izquierda, texto a la derecha */
        margin-bottom: 25px !important;
        height: auto !important;
        min-height: 250px !important;
    }

    .announcement-img {
        width: 35% !important;
        height: auto !important;
    }

    .announcement-body {
        width: 65% !important;
        padding: 30px !important;
        text-align: left !important;
    }

    .announcement-body h2 {
        font-size: 1.6rem !important;
    }
}
@media (max-width: 992px) {
    /* Forzamos el color de los títulos dentro de las noticias */
    .announcement-body h2 {
        color: #000 !important; /* Un gris muy oscuro casi negro para máxima legibilidad */
        font-weight: 800 !important;
        text-shadow: none !important; /* Quitamos sombras que puedan emborronar en móvil */
    }

    /* Si usas el atributo data-theme="dark", esto los cambia en modo oscuro */
    [data-theme="dark"] .announcement-body h2 {
        color: #000 !important;
    }

    /* El texto de la descripción también suele verse pálido en móvil, esto lo ajusta */
    .announcement-body p {
        color: #444 !important;
        font-weight: 500 !important;
    }
    
    [data-theme="dark"] .announcement-body p {
        color: #000 !important;
    }
}

@media (max-width: 992px) {
    /* 1. Centrar los contenedores principales */
    .leader-section, 
    .board-grid {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 30px !important;
        padding: 0 10px !important;
    }

    /* 2. Convertir la tarjeta en formato vertical */
    .profile-card {
        flex-direction: column !important; /* Foto arriba, texto abajo */
        text-align: center !important;
        width: 100% !important;
        max-width: 350px !important; /* Evita que la tarjeta sea gigante */
        margin: 0 auto !important;
        padding: 25px !important;
        align-items: center !important;
    }

    /* 3. Ajustar la imagen del doctor/a */
    .profile-img {
        width: 150px !important; /* Tamaño ideal para móvil */
        height: 150px !important;
        margin: 0 auto 20px auto !important; /* Centra y separa del texto */
        border-radius: 50% !important; /* Círculo perfecto */
        
        overflow: hidden !important;
        flex: none !important;
    }

    .profile-img img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important; /* Evita que la cara se deforme */
    }

    /* 4. Ajustar la información y etiquetas */
    .profile-info {
        width: 100% !important;
        padding: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    .position-tag {
        font-size: 0.75rem !important;
        margin-bottom: 10px !important;
        display: inline-block !important;
    }

    .profile-info h2, 
    .profile-info h3 {
        font-size: 1.25rem !important;
        margin: 5px 0 10px 0 !important;
    }

    .profile-info p {
        font-size: 0.9rem !important;
        line-height: 1.5 !important;
       
    }
}

/* --- RESPONSIVO (MÓVIL) --- */
@media (max-width: 850px) {
    .contact-grid {
        grid-template-columns: 1fr; /* Una sola columna en móvil */
        gap: 30px;
    }

    .contact-info-column {
        order: 1; /* Datos y mapa primero */
    }

    .contact-form-column {
        order: 2; /* Formulario después */
        padding: 20px;
       
        border-radius: 15px;
    }

    /* Asegurar que el formulario no sea más ancho que la pantalla */
    .institutional-form input, 
    .institutional-form select, 
    .institutional-form textarea {
        width: 100% !important;
        box-sizing: border-box; /* Evita que el padding rompa el ancho */
    }
}

/* 1. Contenedor principal de las tarjetas */
.inst-grid-premium {
    display: grid;
    /* En móviles, una sola columna */
    grid-template-columns: 1fr;
    gap: 30px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto; /* Centra el bloque entero */
    justify-content: center; /* Centra el contenido del grid */
    padding: 20px;
}

/* 2. Configuración para PC (3 columnas) */
@media (min-width: 992px) {
    .inst-grid-premium {
        /* Tres columnas iguales */
        grid-template-columns: repeat(3, 1fr); 
        align-items: stretch; /* Hace que todas tengan la misma altura */
    }
}

/* 3. Estilo de las Cards para asegurar centrado interno */
.glass-card {
    background: var(--bg-card, rgba(255, 255, 255, 0.1));
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center; /* Centra todo el texto */
    display: flex;
    flex-direction: column;
    align-items: center; /* Centra el icono y el título horizontalmente */
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
    /* Sombra suave para que no floten raro */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* 4. Centrado de los Iconos */
.card-icon-wrapper {
    width: 70px;
    height: 70px;
    background: #fafc00; /* Tu color institucional */
    color: #000;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(250, 252, 0, 0.3);
}

/* 5. Ajuste del encabezado de la sección */
.section-header-alt {
    text-align: center;
    margin-bottom: 50px;
}

.header-line {
    width: 80px;
    height: 4px;
    background: #fafc00;
    margin: 15px auto; /* Centra la línea debajo del título */
    border-radius: 2px;
}

/* Contenedor de los enlaces del mapa del sitio */
.footer-nav {
    display: grid !important;
    /* Crea 2 columnas de igual ancho */
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px 15px !important; /* Espacio entre filas y columnas */
    margin-top: 15px !important;
}

/* Estilo de los enlaces para que no se amontonen */
.footer-nav a {
    display: block !important;
    text-decoration: none !important;
    
    font-size: 0.9rem !important;
    transition: 0.3s ease;
}

.footer-nav a:hover {
   
    padding-left: 5px; /* Un pequeño efecto visual al pasar el mouse */
}





/* ==========================================================================
   MODAL GALERÍA DE ESPACIOS DEL GREMIO
   ========================================================================== */

.area-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
}

.area-modal-content {
    position: relative;
    background-color: #ffffff;
    padding: 25px;
    border-radius: 12px;
    max-width: 800px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    text-align: center;
    animation: fadeIn 0.3s ease;
}

[data-theme="dark"] .area-modal-content {
    background-color: #1e293b;
    color: #ffffff;
}

.area-modal-close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 32px;
    font-weight: bold;
    color: #666;
    cursor: pointer;
    transition: color 0.2s;
}

.area-modal-close:hover {
    color: #e74c3c;
}

.area-modal-title {
    margin-bottom: 15px;
    font-size: 1.3rem;
    color: #1e3a8a;
    font-family: 'Montserrat', sans-serif;
}

[data-theme="dark"] .area-modal-title {
    color: #60a5fa;
}

.area-slider-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 8px;
    
}

.area-modal-img {
    max-width: 100%;
    max-height: 65vh;
    object-fit: contain;
    display: block;
}

.area-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    border: none;
    font-size: 24px;
    padding: 12px 16px;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.3s;
    user-select: none;
}

.area-slider-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.prev-btn {
    left: 15px;
}

.next-btn {
    right: 15px;
}

.area-modal-counter {
    margin-top: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #64748b;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* ==========================================================================
   SECCIÓN DE BÚSQUEDA DE REVISTAS (BIBLIOTECA DIGITAL)
   ========================================================================== */

.search-section-wrapper {
    margin-bottom: 35px;
    margin-top: 10px;
}

/* Contenedor principal de la barra de búsqueda */
.search-box-container {
    display: flex;
    align-items: center;
    background-color: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    padding: 6px 8px 6px 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    position: relative;
}

/* Adaptación al Modo Oscuro */
[data-theme="dark"] .search-box-container {
    background-color: #1e293b;
    border-color: #334155;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Efecto Hover / Focus en la barra de búsqueda */
.search-box-container:focus-within {
    border-color: #d4af37;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.25);
}

/* Ícono de Lupa */
.search-icon {
    color: #94a3b8;
    font-size: 1.1rem;
    margin-right: 12px;
}

[data-theme="dark"] .search-icon {
    color: #64748b;
}

/* Campo de entrada (Input) */
.search-box-container input {
    border: none;
    outline: none;
    width: 100%;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    background: transparent;
    color: #1e293b;
}

[data-theme="dark"] .search-box-container input {
    color: #f8fafc;
}

.search-box-container input::placeholder {
    color: #94a3b8;
}

/* Botón "Buscar" Dorado */
#search-btn {
    background: linear-gradient(135deg, #d4af37 0%, #b5932a 100%);
    color: #ffffff;
    border: none;
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.9rem;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}

#search-btn:hover {
    background: linear-gradient(135deg, #b5932a 0%, #8c701e 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

/* Botón de Limpiar Búsqueda (X) */
#clear-search {
    background: transparent;
    border: none;
    color: #ef4444;
    font-size: 1.2rem;
    padding: 0 12px;
    cursor: pointer;
    transition: transform 0.2s ease, color 0.2s ease;
}

#clear-search:hover {
    color: #dc2626;
    transform: scale(1.15);
}

/* Texto Informativo / Contador de Resultados */
.search-meta-bar {
    margin-top: 12px;
    padding-left: 15px;
}

.results-count {
    font-size: 0.88rem;
    color: #64748b;
    font-weight: 600;
}

[data-theme="dark"] .results-count {
    color: #94a3b8;
}

/* Mensaje cuando no hay resultados */
.no-results-msg {
    text-align: center;
    padding: 40px 20px;
    background: rgba(212, 175, 55, 0.05);
    border-radius: 16px;
    border: 2px dashed #d4af37;
    margin: 30px 0;
}

.no-results-msg i {
    font-size: 2.8rem;
    color: #d4af37;
    margin-bottom: 12px;
}

.no-results-msg h3 {
    font-size: 1.2rem;
    color: #1e293b;
    margin-bottom: 8px;
    font-weight: 700;
}

[data-theme="dark"] .no-results-msg h3 {
    color: #f8fafc;
}

.no-results-msg p {
    font-size: 0.92rem;
    color: #64748b;
    max-width: 500px;
    margin: 0 auto;
}

[data-theme="dark"] .no-results-msg p {
    color: #94a3b8;
}

/* Ajustes Responsive para Pantallas Pequeñas */
@media (max-width: 576px) {
    .search-box-container {
        padding: 6px 6px 6px 14px;
    }
    
    #search-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    .search-box-container input {
        font-size: 0.88rem;
    }
}
/* ==========================================================================
   VISOR / LECTOR DIGITAL DE REVISTAS
   ========================================================================== */

/* Capa oscura de fondo */
.reader-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
    animation: fadeInModal 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInModal {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}

/* Contenedor del Visor */
.reader-modal-container {
    background-color: #ffffff;
    width: 95%;
    max-width: 1100px;
    height: 92vh;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .reader-modal-container {
    background-color: #0f172a;
}

/* Encabezado del Visor */
.reader-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: #1e293b;
    color: #ffffff;
    border-bottom: 3px solid #d4af37;
}

.reader-title-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.reader-title-info i {
    color: #d4af37;
    font-size: 1.4rem;
}

.reader-title-info h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #f8fafc;
}

.reader-close-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.reader-close-btn:hover {
    color: #ef4444;
}

/* Cuerpo del Visor / Iframe */
.reader-modal-body {
    flex: 1;
    background-color: #f1f5f9;
    position: relative;
}

[data-theme="dark"] .reader-modal-body {
    background-color: #020617;
}

.reader-modal-body iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Pie del Visor */
.reader-modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
    background-color: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

[data-theme="dark"] .reader-modal-footer {
    background-color: #1e293b;
    border-top-color: #334155;
}

/* Efecto Hover en la portada para indicar interacción */
.mag-cover-wrap {
    cursor: pointer;
}
/* ==========================================================================
   ESTILOS PARA EL MODAL VISOR LECTOR DE PDF (readerModal)
   ========================================================================== */
.reader-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.reader-modal-container {
    background-color: var(--bg-card, #ffffff);
    width: 100%;
    max-width: 1100px;
    height: 90vh;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.reader-modal-header {
    background-color: var(--primary-color, #0056b3);
    color: #ffffff;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.reader-title-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.reader-title-info h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
}

.reader-close-btn {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

.reader-modal-body {
    flex: 1;
    width: 100%;
    background-color: #525659;
}

.reader-modal-body iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.reader-modal-footer {
    padding: 0.8rem 1.5rem;
    background-color: var(--bg-card, #ffffff);
    border-top: 1px solid var(--border-color, #eee);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ==========================================
   ESTILOS PARA EL MODAL LECTOR (FLIPBOOK/PDF)
   ========================================== */

/* Contenedor principal del modal */
#readerModal .modal-content {
    background-color: var(--bg-card, #ffffff);
    color: var(--text-color, #333333);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-radius: 12px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Ajustes cuando el sitio cambia a Modo Oscuro */
[data-theme="dark"] #readerModal .modal-content {
    background-color: #1e1e1e;
    color: #ffffff;
    border-color: #333333;
}

/* Encabezado interno del modal para el botón de cerrar */
#readerModal .reader-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    margin-bottom: 5px;
    border-bottom: 1px solid rgba(150, 150, 150, 0.2);
}

#readerModal .reader-modal-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    color: inherit;
}

/* Botón para cerrar la ventana modal */
#readerModal .modal-close-x {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    z-index: 10;
    color: #666666;
    transition: color 0.2s ease, transform 0.2s ease;
}

/* Visibilidad del botón de cerrar en modo oscuro */
[data-theme="dark"] #readerModal .modal-close-x {
    color: #ffffff;
}

#readerModal .modal-close-x:hover {
    color: #e74c3c !important;
    transform: scale(1.1);
}

/* Marco del Iframe */
#readerModal iframe {
    border-radius: 8px;
    background-color: #000000;
}




/* --- Estilos de Servicios y Modales (Soporte Modo Claro / Oscuro) --- */

/* Asegurar color correcto de los iconos */
.icon-circle i {
    color: #000000 !important;
}

/* Modales adaptables a variables de tema */
.modal-content {
    background-color: var(--bg, #ffffff);
    color: var(--text, #333333);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Bloque de Atención Directa */
.direct-contact-box {
    background: rgba(0, 0, 0, 0.04);
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid var(--accent, #fbc02d);
    margin-top: 15px;
}

[data-theme="dark"] .direct-contact-box {
    background: rgba(255, 255, 255, 0.05);
}

.direct-contact-box h4 {
    margin-top: 0;
    color: var(--text, #333333);
}

.contact-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.phone-link {
    color: #0275d8;
    text-decoration: underline;
}

[data-theme="dark"] .phone-link {
    color: #64b5f6;
}

.whatsapp-link {
    color: #25d366;
    font-weight: 600;
    text-decoration: underline;
}

/* Alerta Graduados adaptable */
.graduados-alert {
    background: #fff9c4;
    color: #856404;
    border: 2px dashed #fbc02d;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
}

[data-theme="dark"] .graduados-alert {
    background: rgba(251, 192, 45, 0.15);
    color: #ffeb3b;
}





        .eventos-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 25px;
            margin-top: 40px;
        }

        .evento-card {
            background-color: var(--bg-card, #ffffff);
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
            cursor: pointer;
            transition: transform 0.3s ease, box-shadow 0.3s ease; /* Solo transform y sombra */
            border: 1px solid var(--border-color, rgba(0, 0, 0, 0.05));
        }

        .evento-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
        }

        .evento-portada {
            position: relative;
            height: 190px;
            overflow: hidden;
        }

        .evento-portada img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.3s ease;
        }

        .evento-card:hover .evento-portada img {
            transform: scale(1.05);
        }

        .badge-fotos {
            position: absolute;
            bottom: 10px;
            right: 10px;
            background: rgba(0, 0, 0, 0.75);
            color: #ffffff;
            padding: 5px 10px;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: 600;
        }

        .evento-info {
            padding: 20px;
        }

        .evento-info h3 {
            margin: 0 0 8px 0;
            font-size: 1.1rem;
            color: var(--text-color, #222222);
        }

        .evento-info .fecha {
            margin: 0;
            font-size: 0.85rem;
            color: var(--text-muted, #777777);
        }

        /* --- Estilos Modal Eventos --- */
        .modal-galeria-eventos {
            display: none;
            position: fixed;
            z-index: 10000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.85);
            backdrop-filter: blur(5px);
            overflow-y: auto;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }

        .modal-contenido-eventos {
            background-color: var(--bg-card, #ffffff);
            color: var(--text-color, #222222);
            padding: 30px;
            border-radius: 16px;
            max-width: 900px;
            width: 100%;
            position: relative;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
            margin: auto;
            border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
        }

        .cerrar-modal-eventos {
            position: absolute;
            top: 15px;
            right: 20px;
            font-size: 32px;
            font-weight: bold;
            color: var(--text-muted, #888888);
            cursor: pointer;
            transition: color 0.2s;
        }

        .cerrar-modal-eventos:hover {
            color: var(--text-color, #ffffff);
        }

        .modal-fecha-texto {
            color: var(--text-muted, #888888);
            font-size: 0.9rem;
            margin-top: 5px;
            margin-bottom: 25px;
        }

        .modal-grid-fotos {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
            gap: 15px;
            max-height: 60vh;
            overflow-y: auto;
            padding-right: 5px;
        }

        .modal-grid-fotos img {
            width: 100%;
            height: 160px;
            object-fit: cover;
            border-radius: 8px;
            cursor: pointer;
            transition: transform 0.2s ease;
        }

        .modal-grid-fotos img:hover {
            transform: scale(1.03);
        }
        
        [data-theme="dark"] .evento-card {
            background-color: #162238;
            border-color: rgba(255, 255, 255, 0.08);
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
        }

        [data-theme="dark"] .evento-info h3 {
            color: #ffffff;
        }

        [data-theme="dark"] .evento-info .fecha {
            color: #94a3b8;
        }

        [data-theme="dark"] .modal-contenido-eventos {
            background-color: #0f172a;
            color: #ffffff;
            border-color: rgba(255, 255, 255, 0.1);
        }
    