/*
Theme Name: Empole Theme
Theme URI: https://empole.com.uy/
Author: Agustin Granja
Author URI: https://agustingranja.netlify.app/
Description: Tema personalizado para EMPOLE, convertido desde HTML/CSS estático.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: custom-theme, one-page, full-width
Text Domain: empole
*/


* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            scroll-margin-top: 150px;
        }

        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
            line-height: 1.6;
            color: #333;
            overflow-x: hidden;
        }

        /* Header */
        .header {
            position: fixed;
            top: 0;
            width: 100%;
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            z-index: 1000;
            padding: 1rem 0;
            transition: all 0.3s ease;
        }

        .nav-container {
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 2rem;
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 1rem;
        }

        .logo img {
            width: 75px;
            height: 75px;
        }

        .logo-text {
            font-weight: 700;
            font-size: 1.5rem;
            color: #1d2849;
        }

        .logo a {
            display: flex; /* Hacemos que el enlace se comporte como un contenedor flex */
            align-items: center; /* Centramos verticalmente la imagen y el texto */
            gap: 1rem; /* Espacio entre la imagen y el texto */
            text-decoration: none; /* ELIMINA EL SUBRAYADO DEL TEXTO */
            color: #1d2849; /* Asegura que el texto mantenga el color oscuro */
        }

        .logo .logo-text {
            font-size: 1.5rem; 
            font-weight: 700;
        }

        .nav-menu {
            display: flex;
            list-style: none;
            gap: 2rem;
            transition: transform 0.3s ease-in-out;
        }

        .nav-menu a {
            text-decoration: none;
            color: #64748b;
            font-weight: 500;
            transition: all 0.3s ease;
            position: relative;
        }

        .nav-menu a:hover {
            color: #1d2849;
        }

        .nav-menu a::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 0;
            width: 0;
            height: 2px;
            background: #1d2849;
            transition: width 0.3s ease;
        }

        .nav-menu a:hover::after {
            width: 100%;
        }

        /* Burger Menu Toggle (Botón de hamburguesa) */

        .menu-toggle {
            display: none; /* Ocultar por defecto en escritorio */
            background: none;
            border: none;
            cursor: pointer;
            padding: 0.5rem;
            z-index: 1001; /* Asegurar que esté sobre el menú */
        }

        .burger-icon {
            display: block;
            width: 25px;
            height: 2px;
            background: #1d2849;
            position: relative;
            transition: all 0.3s ease;
        }

        .burger-icon::before,
        .burger-icon::after {
            content: '';
            display: block;
            width: 25px;
            height: 2px;
            background: #1d2849;
            position: absolute;
            transition: all 0.3s ease;
        }

        .burger-icon::before {
            top: -8px;
        }

        .burger-icon::after {
            top: 8px;
        }

        /* State when menu is open (Clase que se añade con JavaScript) */
        .nav-menu.active {
            transform: translateX(0);
        }

        /* Icono de cerrar (X) */
        .menu-toggle.active .burger-icon {
            background: transparent;
        }

        .menu-toggle.active .burger-icon::before {
            transform: rotate(45deg) translate(5px, 6px);
        }

        .menu-toggle.active .burger-icon::after {
            transform: rotate(-45deg) translate(5px, -6px);
        }

        /* Hero Section */
        .hero {
            height: 100vh;
            background: linear-gradient(135deg, rgba(17, 37, 102, 0.6), rgba(17, 37, 102, 0.4)),
                    url("assets/images/hero-1.jpg");
            background-size: cover;
            background-position: center 47%;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            overflow: hidden;
        }

        .hero-content {
            text-align: center;
            color: white;
            z-index: 2;
            max-width: 800px;
            padding: 2rem;
        }

        .hero-title {
            font-size: 4rem;
            font-weight: 800;
            margin-bottom: 1rem;
            letter-spacing: -2px;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
        }

        .hero-subtitle {
            font-size: 1.5rem;
            margin-bottom: 2rem;
            opacity: 0.95;
            font-weight: 300;
        }

        .cta-buttons {
            display: flex;
            gap: 1rem;
            justify-content: center;
            flex-wrap: wrap;
        }

        .btn {
            padding: 1rem 2rem;
            border: none;
            border-radius: 50px;
            font-weight: 600;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            transition: all 0.3s ease;
            cursor: pointer;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            font-size: 0.9rem;
        }

        .btn-primary {
            background: white;
            color: #1d2849;
            box-shadow: 0 10px 25px rgba(0,0,0,0.2);
        }

        .btn-primary:hover {
            transform: translateY(-3px);
            box-shadow: 0 15px 35px rgba(0,0,0,0.3);
        }

        .btn-secondary {
            background: transparent;
            color: white;
            border: 2px solid rgba(255,255,255,0.3);
            backdrop-filter: blur(10px);
        }

        .btn-secondary:hover {
            background: rgba(255,255,255,0.1);
            border-color: white;
            transform: translateY(-3px);
        }

        /* Features Section */
        .features {
            padding: 6rem 2rem;
            background: #f8fafc;
        }

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

        .section-title {
            text-align: center;
            font-size: 3rem;
            font-weight: 800;
            margin-bottom: 1rem;
            color: #1d2849;
        }

        .section-subtitle {
            text-align: center;
            font-size: 1.2rem;
            color: #64748b;
            margin-bottom: 4rem;
            max-width: 600px;
            margin-left: auto;
            margin-right: auto;
        }

        .features-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
            gap: 2rem;
            margin-bottom: 4rem;
        }

        .feature-card {
            background: white;
            padding: 3rem 2rem;
            border-radius: 20px;
            text-align: center;
            box-shadow: 0 10px 40px rgba(0,0,0,0.1);
            transition: all 0.3s ease;
            border: 1px solid rgba(30, 64, 175, 0.1);
            position: relative;
            overflow: hidden;
        }

        .feature-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: #1d2849;
        }

        .feature-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 25px 50px rgba(0,0,0,0.15);
        }

        .feature-icon {
            width: 80px;
            height: 80px;
            margin: 0 auto 2rem;
            background: #1d2849;
            border-radius: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 2rem;
            color: white;
        }

        .feature-title {
            font-size: 1.5rem;
            font-weight: 700;
            margin-bottom: 1rem;
            color: #1e293b;
        }

        .feature-description {
            color: #64748b;
            line-height: 1.6;
        }

        .features-cta {
    text-align: center;
    margin-top: 4rem;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #1d2849 0%, #1e3a8a 100%);
    border-radius: 20px;
    color: white;
    box-shadow: 0 10px 40px rgba(29, 40, 73, 0.2);
}

.features-cta h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.features-cta p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn-features-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2.5rem;
    background: white;
    color: #1d2849;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-features-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    background: #f8fafc;
}

.btn-features-cta i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.btn-features-cta:hover i {
    transform: translateX(5px);
}

/* Responsive */
@media (max-width: 768px) {
    .features-cta {
        margin-top: 3rem;
        padding: 2rem 1.5rem;
    }
    
    .features-cta h3 {
        font-size: 1.5rem;
    }
    
    .features-cta p {
        font-size: 1rem;
    }
    
    .btn-features-cta {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
}


    /* News Section */
.news {
    padding: 6rem 2rem;
    background: white;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.news-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    position: relative;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.news-image {
    height: 200px;
    background: #1d2849;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
    position: relative;
    overflow: hidden;
}

.news-image .convenio-thumbnail {
    width: 100%; 
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-image .convenio-thumbnail {
    transform: scale(1.1);
}

.news-placeholder {
    padding: 2rem;
    text-align: center;
}

/* Overlay en hover */
.news-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(29, 40, 73, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.news-card:hover .news-overlay {
    opacity: 1;
}

.news-overlay i {
    font-size: 2.5rem;
    color: white;
}

.news-content {
    padding: 1.5rem;
}

.news-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1d2849;
    margin-bottom: 0.5rem;
}

.news-description {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 1rem;
}

.news-link {
    color: #1d2849;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
}

.news-card:hover .news-link {
    text-decoration: underline;
}

.view-more-btn {
    text-align: center;
    margin-top: 3rem;
}

.btn-view-more {
    background: #1d2849;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
}

.btn-view-more:hover {
    background: #1e3a8a;
    transform: translateY(-2px);
}

/* ========================================= */
/* --- MODAL DE NOTICIAS --- */
/* ========================================= */

.news-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.news-modal.active {
    display: flex;
    opacity: 1;
}

.modal-content-wrapper {
    max-width: 900px;
    width: 100%;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.news-modal.active .modal-content-wrapper {
    transform: scale(1);
}

.modal-image-container {
    width: 100%;
    max-height: 500px;
    overflow: hidden;
    background: #1d2849;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-image-container img {
    width: 100%;
    height: auto;
    object-fit: contain;
    max-height: 500px;
}

.modal-info {
    padding: 2rem;
    overflow-y: auto;
}

.modal-info h3 {
    font-size: 1.8rem;
    color: #1d2849;
    margin-bottom: 1rem;
}

.modal-info p {
    font-size: 1.1rem;
    color: #64748b;
    line-height: 1.8;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 2.5rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    backdrop-filter: blur(10px);
    z-index: 10000;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
    transform: rotate(90deg) scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
    .news-modal {
        padding: 1rem;
    }
    
    .modal-content-wrapper {
        max-height: 95vh;
    }
    
    .modal-image-container {
        max-height: 300px;
    }
    
    .modal-info {
        padding: 1.5rem;
    }
    
    .modal-info h3 {
        font-size: 1.4rem;
    }
    
    .modal-info p {
        font-size: 1rem;
    }
    
    .modal-close {
        width: 40px;
        height: 40px;
        font-size: 2rem;
        top: 10px;
        right: 10px;
    }
}

/* Noticias ocultas inicialmente */
.news-card-hidden {
    display: none;
}

/* Animación de entrada para las nuevas noticias */
.news-card.news-card-showing {
    animation: fadeInUp 0.5s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Botón Ver Más mejorado */
.btn-view-more {
    background: #1d2849;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.btn-view-more:hover {
    background: #1e3a8a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(29, 40, 73, 0.3);
}

.btn-view-more:active {
    transform: translateY(0);
}

.btn-count {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
}

/* Botón cuando no hay más noticias */
.btn-view-more.no-more {
    background: #64748b;
    cursor: not-allowed;
}

.btn-view-more.no-more:hover {
    background: #64748b;
    transform: none;
    box-shadow: none;
}

/* Mensaje cuando no hay noticias */
.no-news-message {
    text-align: center;
    padding: 4rem 2rem;
    color: #64748b;
}

.no-news-message i {
    font-size: 4rem;
    color: #cbd5e1;
    margin-bottom: 1rem;
}

.no-news-message p {
    font-size: 1.2rem;
}
        
        /* Modern Stats Section */
        .stats {
            padding: 4rem 2rem;
            background: #1d2849;
            color: white;
        }

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

        .stat-item {
            padding: 2rem;
        }

        .stat-number {
            font-size: 3rem;
            font-weight: 800;
            margin-bottom: 0.5rem;
        }

        .stat-label {
            font-size: 1.1rem;
            opacity: 0.9;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        /* Footer */
        .footer {
            background: #0f172a;
            color: white;
            padding: 3rem 2rem 2rem;
            position: relative;
        }

        .footer-content {
            max-width: 1200px;
            margin: 0 auto;
            text-align: center;
        }

        .footer-logo {
            font-size: 1.5rem;
            font-weight: 700;
            margin-bottom: 1rem;
            color: #ffffff;
        }

        .footer-text {
            color: #94a3b8;
            margin-bottom: 2rem;
        }

        .social-links {
            display: flex;
            justify-content: center;
            gap: 1rem;
            margin-bottom: 2rem;
        }

        .social-link {
            width: 50px;
            height: 50px;
            background: rgba(30, 64, 175, 0.1);
            border: 1px solid rgba(30, 64, 175, 0.3);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #94a3b8;
            text-decoration: none;
            transition: all 0.3s ease;
            font-size: 1.5rem;
        }

        .social-link:hover {
            background: #1d2849;
            color: white;
            transform: translateY(-3px);
        }

        .copyright {
            padding-top: 2rem;
            border-top: 1px solid #334155;
            color: #94a3b8;
            font-size: 0.9rem;
        }

        /* ========================================= */
            /* --- FIRMA DEL DESARROLLADOR --- */
        /* ========================================= */

    .developer-signature {
    position: absolute;
    bottom: 15px;
    left: 15px;
    opacity: 0.4;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.developer-signature img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: all 0.3s ease;
}

.developer-signature:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.developer-signature:hover img {
    filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(255,255,255,0.5));
}

.footer .developer-signature {
    position: absolute;
    bottom: 15px;
    left: 15px;
}

/* Responsive */
@media (max-width: 768px) {
    .developer-signature {
        bottom: 10px;
        left: 10px;
    }
    
    .developer-signature img {
        width: 35px;
        height: 35px;
    }
}

        /* Mobile Responsiveness */
        @media (max-width: 768px) {

            /* Mostrar el botón de hamburguesa */
            .menu-toggle {
                display: block; 
            }

            /* Estilos para el menú en móvil */
            .nav-menu {
                /* Ocultar el menú inicialmente fuera de la pantalla */
                position: fixed;
                top: 0;
                right: 0;
                width: 70%; /* Ancho del menú desplegable */
                height: 100vh;
                background: #f8fafc; /* Color de fondo claro para el menú */
                flex-direction: column;
                padding: 5rem 2rem;
                align-items: flex-start;
                gap: 1.5rem;
                transform: translateX(100%); /* Mover el menú fuera de la vista */
                box-shadow: -10px 0 30px rgba(0,0,0,0.1);
            }
            
            .nav-menu li a {
                font-size: 1.2rem;
                color: #1d2849;
                font-weight: 600;
            }
            
            .nav-menu li a::after {
                background: #1d2849;
            }
            
            /* Asegurar que el nav-container mantenga los elementos distribuidos */
            .nav-container {
                padding: 0 1.5rem;
            }

            .hero-title {
                font-size: 2.5rem;
            }

            .hero-subtitle {
                font-size: 1.2rem;
            }

            .cta-buttons {
                flex-direction: column;
                align-items: center;
            }

            .section-title {
                font-size: 2rem;
            }

            .features-grid, .news-grid {
                grid-template-columns: 1fr;
            }
        }

        /* CSS para que las imágenes destacadas se muestren correctamente */
.news-card .news-image img {
    /* Aseguramos que la imagen ocupe el 100% del ancho y alto de su contenedor */
    width: 100%; 
    height: 100%;
    /* Recorta la imagen si es necesario para cubrir el contenedor */
    object-fit: cover; 
}


/* --- SECCIÓN COMISIÓN DIRECTIVA (page-directiva.php) --- */

.team {
    padding: 4rem 0;
    text-align: center;
    background-color: #f8fafc; /* Fondo ligeramente gris */
}

/* Título de la página para que se vea bien en la plantilla */
.team .page-title {
    margin-top: 2rem; /* Espacio para que no choque con el header fijo */
    margin-bottom: 1rem;
}

.team-grid {
    display: grid;
    /* Muestra 3 miembros en escritorio. El auto-fit maneja la responsividad */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 30px;
    margin-top: 3rem;
}

.team-member {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.team-member:hover {
    transform: translateY(-5px);
}

.member-photo-container {
    width: 150px;
    height: 150px;
    margin-bottom: 15px;
    overflow: hidden;
    border-radius: 50%; /* Foto perfectamente redonda */
    border: 5px solid #1d2849; /* Borde con el color principal del tema */
}

.member-photo {
    width: 100%;
    height: 125%;
    object-fit: cover; /* Asegura que la imagen llene el contenedor sin distorsionarse */
}

.member-name {
    font-size: 1.3rem;
    color: #1d2849;
    margin-bottom: 5px;
}

.member-title {
    font-size: 1rem;
    color: #ff5722; /* Color de acento para el cargo */
    font-weight: 700;
    margin-bottom: 10px;
}


/* Estilo para los miembros de sólo texto */
.team-member.team-text-only {
    background-color: #f0f0f0; /* Fondo más sutil */
    padding: 15px; /* Padding reducido */
    box-shadow: none; /* Quitamos la sombra */
}

.team-member.team-text-only .member-name {
    font-size: 1.1rem; /* Nombre más pequeño */
}

.team-member.team-text-only .member-title {
    font-size: 0.9rem; /* Título más pequeño */
}

/* Responsividad (ajustes para pantallas pequeñas) */
@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: 1fr 1fr; /* 2 columnas en tablet */
    }
}
@media (max-width: 480px) {
    .team-grid {
        grid-template-columns: 1fr; /* 1 columna en móvil */
    }
}


/* ========================================= */
/* --- ESTILOS DE LA GRILLA DE CONVENIOS --- */
/* ========================================= */

.convenios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 20px;
    margin-bottom: 20px;
    
    /* CRÍTICO: El grid debe ser el contenedor de posicionamiento */
    position: relative;
    /* Agregar espacio extra para los expansores */
    padding-bottom: 20px;
}

.convenio-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    padding: 20px;
    cursor: pointer;
    min-height: 120px;
    
    display: flex; 
    flex-direction: column;
    justify-content: flex-start; 
    
    /* Transiciones mejoradas */
    transition: 
        transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        background-color 0.3s ease;
}
.convenio-card:hover {
    transform: translateY(5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.convenio-card.active {
    background-color: #fdf8f8; /* Azul claro suave que combina con #1d2849 */
    transform: translateY(5px);
    box-shadow: 0 4px 12px rgba(29, 40, 73, 0.2); /* Sombra azulada */
}

.convenio-title {
    font-size: 1.25rem;
    color: #1d2849;
    margin-bottom: 5px;
}

.convenio-excerpt {
    color: #666;
    font-size: 0.95rem;
}

.category-list-title {
    margin-top: 2rem;
    font-size: 1.5rem;
    color: #e41c27;
    border-bottom: 2px solid #e41c27;
    padding-bottom: 5px;
}

/* ========================================== */
/* --- ESTILOS DEL EXPANSOR DE DESCRIPCIÓN --- */
/* ========================================== */

.convenios-expanders-container {
    /* Este contenedor debe estar Oculto y no debe interferir con el layout */
    position: relative;
    width: 100%;
    height: 0; 
}

.convenio-expander {
    position: absolute;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 50;
    
    background-color: #fff;
    border: 2px solid #1d2849; /* Cambiar de #ff5722 a #1d2849 */
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(29, 40, 73, 0.2); /* Sombra azulada */
    
    /* Estado inicial: Oculto */
    max-height: 0; 
    padding: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    
    /* Transiciones suaves y coordinadas */
    transition: 
        max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        padding 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.3s ease,
        visibility 0s linear 0.5s;
}

/* Estado ACTIVO: El expansor se muestra */
.convenio-expander.active {
    max-height: 2000px; /* Aumentado para contenido más largo */
    padding: 25px;
    opacity: 1;
    visibility: visible;
    
    /* Animación de apertura más rápida y fluida */
    transition: 
        max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.1s,
        padding 0.6s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.3s ease,
        visibility 0s;
}

.expander-title {
    font-size: 1.5rem;
    color: #1d2849; /* Cambiar de #ff5722 a #1d2849 */
    margin-bottom: 15px;
    border-bottom: 2px solid #1d2849; /* Cambiar de #ff5722 a #1d2849 */
    padding-bottom: 5px;
}

.expander-body {
    line-height: 1.7;
    color: #333;
}

.expander-body a {
    color: #e41c27; /* Cambiar de #ff5722 a #1d2849 */
    text-decoration: underline;
}

/* Navegación de Convenios */
.convenios-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    align-items: center;
    margin: 2rem 0;
    padding: 15px;
    background-color: #f8fafc;
    border-radius: 12px;
}

.nav-filter-btn {
    padding: 8px 16px;
    border: 2px solid #1d2849;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.75rem;
    white-space: nowrap; /* Evita que el texto se divida en varias líneas */
    line-height: 1.2;
}

.nav-filter-btn.btn-primary {
    background: #1d2849;
    color: white;
    border-color: #1d2849;
}

.nav-filter-btn.btn-primary:hover,
.nav-filter-btn.btn-primary.active {
    background: #1e3a8a;
    border-color: #1e3a8a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(29, 40, 73, 0.3);
}

.nav-filter-btn.btn-secondary {
    background: white;
    color: #1d2849;
    border-color: #1d2849;
}

.nav-filter-btn.btn-secondary:hover,
.nav-filter-btn.btn-secondary.active {
    background: #1d2849;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(29, 40, 73, 0.2);
}

/* Responsive para navegación */
@media (max-width: 768px) {
    .convenios-nav {
        gap: 8px;
        padding: 12px;
		padding-top: 24px;
    }
    
    .nav-filter-btn {
        padding: 6px 12px;
        font-size: 0.7rem;
    }
}



/* ========================================= */
/* --- SECCIÓN GALERÍA --- */
/* ========================================= */

.galeria-page {
    padding: 4rem 0;
    background-color: #f8fafc;
}

.galeria-page .page-title {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.galeria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 3rem;
}

.galeria-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    aspect-ratio: 4/3;
    background-color: #e2e8f0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.galeria-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

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

.galeria-item:hover img {
    transform: scale(1.1);
}

.galeria-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(29, 40, 73, 0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: white;
    padding: 20px;
    text-align: center;
}

.galeria-item:hover .galeria-overlay {
    opacity: 1;
}

.galeria-overlay i {
    font-size: 3rem;
    margin-bottom: 10px;
}

.galeria-title {
    font-size: 1rem;
    font-weight: 600;
}

.no-photos {
    text-align: center;
    color: #64748b;
    font-size: 1.2rem;
    padding: 4rem 2rem;
    grid-column: 1 / -1;
}

/* Título de categoría de galería */
.galeria-category-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1d2849;
    margin: 3rem 0 2rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #1d2849;
}

.galeria-category-title:first-of-type {
    margin-top: 2rem;
}



/* ========================================= */
/* --- LIGHTBOX MODAL --- */
/* ========================================= */

.lightbox-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.lightbox-caption {
    color: white;
    text-align: center;
    margin-top: 20px;
    font-size: 1.2rem;
    font-weight: 500;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
    transform: scale(1.1);
}

.lightbox-close {
    top: 20px;
    right: 20px;
    font-size: 2.5rem;
    line-height: 1;
}

.lightbox-prev {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    line-height: 1;
}

.lightbox-next {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    line-height: 1;
}

.lightbox-prev:hover {
    transform: translateY(-50%) scale(1.1);
}

.lightbox-next:hover {
    transform: translateY(-50%) scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
    .galeria-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }
    
    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 2rem;
    }
    
    .lightbox-close {
        width: 40px;
        height: 40px;
        font-size: 2rem;
    }
}




/* ========================================= */
/* --- SECCIÓN CONTACTO --- */
/* ========================================= */

.contacto-page {
    padding: 4rem 0;
    background-color: #f8fafc;
}

.contacto-page .page-title {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.contacto-wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-top: 3rem;
}

/* Información de Contacto */
.contacto-info {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    height: fit-content;
}

.contacto-info h2 {
    font-size: 1.5rem;
    color: #1d2849;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #1d2849;
}

.info-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.info-item i {
    font-size: 1.5rem;
    color: #1d2849;
    width: 30px;
    flex-shrink: 0;
    margin-top: 5px;
}

.info-item h3 {
    font-size: 1rem;
    color: #1d2849;
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.info-item p {
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

.info-item a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-item a:hover {
    color: #1d2849;
}

.social-links-contacto {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
    justify-content: center;
}

.social-links-contacto .social-link {
    width: 45px;
    height: 45px;
    background: #1d2849;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.social-links-contacto .social-link:hover {
    background: #1e3a8a;
    transform: translateY(-3px);
}

/* Formulario de Contacto */
.contacto-form-container {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.contacto-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: #1d2849;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1d2849;
    box-shadow: 0 0 0 3px rgba(29, 40, 73, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 240px;
}

.btn-submit {
    align-self: flex-start;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: #1d2849;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-submit:hover {
    background: #1e3a8a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(29, 40, 73, 0.3);
}

/* Mensajes de éxito y error */
.mensaje-exito {
    text-align: center;
    padding: 3rem 2rem;
    background: #d1fae5;
    border-radius: 12px;
    border: 2px solid #10b981;
}

.mensaje-exito i {
    font-size: 3rem;
    color: #10b981;
    margin-bottom: 1rem;
}

.mensaje-exito h3 {
    color: #065f46;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.mensaje-exito p {
    color: #047857;
}

.mensaje-error {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: #fee2e2;
    border: 2px solid #ef4444;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.mensaje-error i {
    font-size: 1.5rem;
    color: #dc2626;
}

.mensaje-error p {
    color: #991b1b;
    margin: 0;
}

/* Mapa */
.mapa-container {
    margin-top: 4rem;
}

.mapa-container .section-title {
    margin-bottom: 2rem;
}

.mapa-embed {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.mapa-embed iframe {
    display: block;
}

.form-group select {
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: white;
    cursor: pointer;
}

.form-group select:focus {
    outline: none;
    border-color: #1d2849;
    box-shadow: 0 0 0 3px rgba(29, 40, 73, 0.1);
}

/* Responsive */
@media (max-width: 968px) {
    .contacto-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .contacto-form-container {
        padding: 1.5rem;
    }
    
    .btn-submit {
        width: 100%;
        justify-content: center;
    }
}


/* ========================================= */
/* --- SECCIÓN UBICACIÓN --- */
/* ========================================= */

.ubicacion-page {
    padding: 4rem 0;
    background-color: #f8fafc;
}

.ubicacion-page .page-title {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.ubicaciones-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

/* Tarjeta de ubicación */
.ubicacion-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ubicacion-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.ubicacion-header {
    background: linear-gradient(135deg, #1d2849 0%, #1e3a8a 100%);
    color: white;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.ubicacion-header i {
    font-size: 2rem;
}

.ubicacion-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.ubicacion-info {
    padding: 2rem;
}

.ubicacion-info .info-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.ubicacion-info .info-item:last-child {
    margin-bottom: 0;
}

.ubicacion-info .info-item i {
    font-size: 1.3rem;
    color: #1d2849;
    width: 25px;
    flex-shrink: 0;
    margin-top: 3px;
}

.ubicacion-info .info-item strong {
    display: block;
    color: #1d2849;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.ubicacion-info .info-item p {
    color: #64748b;
    margin: 0;
    line-height: 1.6;
}

.ubicacion-info .info-item a {
    color: #1d2849;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.ubicacion-info .info-item a:hover {
    color: #1e3a8a;
    text-decoration: underline;
}

.info-item.info-destacada {
    background: #fffbeb;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #f59e0b;
    margin-left: -1rem;
    margin-right: -1rem;
    padding-left: 1.5rem;
}

.info-item.info-destacada i {
    color: #f59e0b;
}

.info-item.info-destacada strong {
    color: #92400e;
}

.info-item.info-destacada p {
    color: #78350f;
}

/* Mapa */
.ubicacion-mapa {
    width: 100%;
    height: 300px;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.ubicacion-mapa iframe {
    display: block;
    width: 100%;
    height: 100%;
}

/* Botones de acción */
.ubicacion-actions {
    padding: 1.5rem 2rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.ubicacion-actions .btn {
    flex: 1;
    min-width: 200px;
    justify-content: center;
    text-decoration: none;
}

.ubicacion-actions .btn i {
    font-size: 1.1rem;
}

/* Información de transporte */
.transporte-info {
    margin-top: 4rem;
    padding: 3rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.transporte-info .section-title {
    margin-bottom: 2rem;
}

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

.transporte-card {
    padding: 2rem;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid #1d2849;
    text-align: center;
}

.transporte-card i {
    font-size: 2.5rem;
    color: #1d2849;
    margin-bottom: 1rem;
}

.transporte-card h3 {
    font-size: 1.3rem;
    color: #1d2849;
    margin-bottom: 1rem;
}

.transporte-card p {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.transporte-card strong {
    color: #1d2849;
}

/* Responsive */
@media (max-width: 1024px) {
    .ubicaciones-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .ubicacion-actions {
        flex-direction: column;
    }
    
    .ubicacion-actions .btn {
        width: 100%;
        min-width: 0;
    }
    
    .transporte-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================= */
/* --- BOTÓN FLOTANTE DE WHATSAPP --- */
/* ========================================= */

.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 9998;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #25D366;
    color: white;
    padding: 12px 20px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    opacity: 0;
    animation: slideInRight 0.8s ease-out 1s forwards, pulse-whatsapp 2s infinite 2s;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.whatsapp-float:hover {
    background: #20BA5A;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
}

.whatsapp-icon {
    font-size: 1.8rem;
    line-height: 1;
}

.whatsapp-text {
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;
}

/* Animación de pulso sutil */
@keyframes pulse-whatsapp {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 25px rgba(37, 211, 102, 0.7);
    }
}

/* Responsive - En móvil solo mostrar el ícono */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 60px;
        height: 60px;
        padding: 0;
        justify-content: center;
        border-radius: 50%;
        gap: 0;
    }
    
    .whatsapp-text {
        display: none;
    }
    
    .whatsapp-icon {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .whatsapp-float {
        bottom: 15px;
        right: 15px;
        width: 55px;
        height: 55px;
    }
    
    .whatsapp-icon {
        font-size: 1.8rem;
    }
}

/* Botón para Volver Arriba  */
.back-to-top-btn {
    position: fixed;
    bottom: 25px; 
    left: 25px;  
    display: none; 
    width: 50px;
    height: 50px;
    line-height: 50px; 
    text-align: center;
    background-color: #1d2848; 
    color: white;
    border-radius: 50%; 
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 990; 
    font-size: 1.2rem;
    transition: background-color 0.3s, transform 0.3s;
}

.back-to-top-btn:hover {
    background-color: #101729; 
    transform: translateY(-2px);
}

.back-to-top-btn.visible {
    display: block;
}