:root {
    --azul-regio: #0a2558;
    --azul-claro: #143d8d;
    --plomo: #4e4e4e;
    --plomo-suave: #f4f4f4;
    --oro: #c5a059;
    --blanco: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--blanco);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

.top-bar {
    background: linear-gradient(90deg, #374151 0%, #0a2558 100%);
    color: white;
    padding: 8px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar-left, .top-bar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* --- BOTÓN DE DIRECCIÓN (MAPS) --- */
.btn-maps-top {
    text-decoration: none;
    color: white;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: 0.3s;
    display: flex;
    align-items: center;
}

.btn-maps-top i {
    color: var(--oro);
    margin-right: 6px;
}

.btn-maps-top:hover {
    background: rgba(197, 160, 89, 0.1);
    border-color: var(--oro);
    color: var(--oro);
}

/* Badge de estado */
.badge-status {
    background: rgba(197, 160, 89, 0.2);
    padding: 4px 12px;
    border-radius: 50px;
    border: 1px solid var(--oro);
    color: var(--oro);
    font-weight: 700;
    font-size: 0.7rem;
}

/* Botón SAE */
.btn-sae-top {
    background: var(--oro);
    color: var(--azul-regio) !important;
    padding: 4px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.7rem;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-sae-top:hover {
    background: white;
    transform: scale(1.05);
}

.top-separator {
    width: 1px;
    height: 20px;
    background: rgba(255, 255, 255, 0.2);
    margin: 0 5px;
}

/* Redes Sociales */
.social-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-item {
    color: white;
    text-decoration: none;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-item:hover {
    background: var(--oro);
    color: var(--azul-regio);
    transform: translateY(-2px);
}

/* RESPONSIVO */
@media (max-width: 768px) {
    .hide-mobile, .top-separator {
        display: none;
    }
    .top-bar {
        flex-direction: column;
        gap: 10px;
        padding: 10px 5%;
    }
}
/* --- ESTILOS INTERNOS DEL SIDEBAR FOOTER --- */
.sidebar-footer {
    padding: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-contact-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

.side-info-link {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
}

.side-info-link i {
    color: var(--oro);
    width: 20px;
}

/* Botón de Mapa en Sidebar */
.btn-side-maps {
    background: rgba(255, 255, 255, 0.05);
    padding: 10px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Bloque de Admisión y SAE */
.sidebar-actions-box {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

.side-badge-status {
    border: 1px solid var(--oro);
    color: var(--oro);
    padding: 10px;
    border-radius: 12px;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 700;
}

.side-btn-sae {
    background: var(--oro);
    color: var(--azul-regio);
    text-decoration: none;
    padding: 12px;
    border-radius: 12px;
    text-align: center;
    font-weight: 800;
    font-size: 0.9rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

/* Redes Sociales en Sidebar */
.sidebar-social-flex {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.side-social-icon {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.2rem;
    transition: 0.3s;
}

.side-social-icon:hover {
    background: var(--oro);
    color: var(--azul-regio);
    transform: translateY(-3px);
}

/* --- HEADER PRINCIPAL --- */
.header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8%;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.logo-img {
    height: 75px;
    width: auto;
    object-fit: contain;
}

.logo-text h1 {
    font-family: 'Playfair Display', serif;
    color: var(--azul-regio);
    font-size: 1.5rem;
    line-height: 1;
    text-transform: uppercase;
}

.logo-text span {
    display: block;
    font-size: 0.7rem;
    color: var(--plomo);
    letter-spacing: 2px;
    font-weight: 600;
}

/* Menú Escritorio */
.nav-desk {
    display: flex;
    gap: 25px;
    list-style: none;
    align-items: center;
}

.nav-desk a {
    text-decoration: none;
    color: var(--azul-regio);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    transition: 0.3s;
}

.nav-desk a:hover {
    color: var(--oro);
}

.btn-contacto-nav {
    background: var(--azul-regio);
    color: white !important;
    padding: 12px 25px !important;
    border-radius: 4px;
    font-size: 0.8rem;
}

/* ============================================================
   SIDEBAR PREMIUM MARÍA DIZA - AZUL & PLOMO
   SOPORTE TOTAL PARA SCROLL Y RESPONSIVIDAD
   ============================================================ */

:root {
    --azul-regio: #0a2558;
    --azul-header: rgba(10, 37, 88, 0.85); 
    --azul-dark: #07193c; 
    --oro: #c5a059;
    --plomo: #4e4e4e;
    --blanco: #ffffff;
}

/* --- CONTENEDOR PRINCIPAL --- */
.sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    height: 100vh;
    background: var(--azul-regio);
    z-index: 3000;
    display: flex;
    flex-direction: column; /* Organiza header, contenido y footer en vertical */
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -10px 0 40px rgba(0,0,0,0.5);
    overflow: hidden; /* IMPORTANTE: El scroll se maneja internamente */
}

/* Clase de activación */
.sidebar.active {
    transform: translateX(-100%);
    right: -320px;
}

/* --- 1. HEADER TRANSLÚCIDO (FIJO) --- */
.sidebar-header {
    flex-shrink: 0; /* Impide que se encoja */
    background: var(--azul-header);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 35px 20px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.sidebar-logo-whitebox {
    background: white;
    padding: 10px;
    border-radius: 12px;
    display: inline-block;
    margin-bottom: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.sidebar-logo-whitebox img {
    height: 60px;
    width: auto;
    display: block;
}

.sidebar-header h2 {
    color: var(--blanco);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* --- 2. ÁREA DE SCROLL (EL CUERPO) --- */
.sidebar-content {
    flex-grow: 1; /* Toma todo el espacio disponible */
    overflow-y: auto; /* ACTIVA EL SCROLL AQUÍ */
    overflow-x: hidden;
    padding: 15px 0;
    -webkit-overflow-scrolling: touch; /* Suavidad en iPhone */
}

/* Estética del Scrollbar */
.sidebar-content::-webkit-scrollbar {
    width: 5px;
}
.sidebar-content::-webkit-scrollbar-thumb {
    background: var(--oro);
    border-radius: 10px;
}

/* Alineación de bloques internos */
.visitas-box,
.side-badge-container,
.sidebar-group,
.sidebar-section-title {
    width: calc(100% - 40px);
    margin-left: auto;
    margin-right: auto;
}

.side-badge-status {
    border: 1px solid var(--oro);
    color: var(--oro);
    padding: 12px;
    border-radius: 10px;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.05);
    margin-bottom: 10px;
}

.sidebar-section-title {
    color: var(--oro);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 15px 5px 5px;
}

.sidebar-group {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
}

.sidebar-links {
    list-style: none;
}

.sidebar-links a {
    display: flex;
    align-items: center;
    gap: 15px;
    color: white;
    text-decoration: none;
    padding: 14px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: 0.3s;
}

.sidebar-links a i {
    width: 20px;
    text-align: center;
    color: var(--oro);
}

.sidebar-links li.active a,
.sidebar-links a:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* --- 3. FOOTER (FIJO AL FINAL) --- */
.sidebar-footer {
    flex-shrink: 0;
    padding: 20px;
    background: var(--azul-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.btn-side-maps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--plomo);
    color: white;
    text-decoration: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    margin-bottom: 15px;
}

.sidebar-social-flex {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.side-social-icon {
    font-size: 1.3rem;
    color: white;
}

/* --- ELEMENTOS DE CIERRE Y FONDO --- */
.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 20;
}

.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2500;
    display: none;
    opacity: 0;
    transition: opacity 0.4s;
}

.menu-overlay.active {
    display: block;
    opacity: 1;
}

/* --- ICONO DE MENÚ (HAMBURGUESA) MÁS GRANDE --- */
#openMenu {
    font-size: 2.2rem; /* Tamaño aumentado */
    color: var(--azul-regio);
    cursor: pointer;
    padding: 10px;
    display: inline-block;
    transition: transform 0.2s ease;
}

#openMenu:active {
    transform: scale(0.9); /* Efecto táctil al presionar */
}

/* --- RESPONSIVIDAD --- */
@media (max-width: 360px) {
    .sidebar { width: 280px; }
    .sidebar.active { right: -280px; }
    #openMenu { font-size: 2rem; }
}

/* Ajuste si el celular es muy bajo de altura */
@media (max-height: 580px) {
    .sidebar-header { padding: 20px 15px; }
    .sidebar-logo-whitebox img { height: 45px; }
    .sidebar-header h2 { font-size: 0.9rem; }
}
/* --- CARRUSEL --- */
.news-section {
    width: 100%;
    height: 85vh;
    min-height: 500px;
    position: relative;
}

.swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    position: relative;
    overflow: hidden;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overlay-slide {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(10, 37, 88, 0.8), transparent);
    z-index: 1;
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 8%;
    transform: translateY(-50%);
    color: white;
    z-index: 2;
    max-width: 700px;
}

.slide-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 25px;
}

.slide-content p {
    font-size: 1.3rem;
    border-left: 5px solid var(--oro);
    padding-left: 20px;
    font-weight: 300;
}

/* Botones de Navegación del Carrusel */
.swiper-button-next,
.swiper-button-prev {
    color: var(--oro) !important;
    width: 55px;
    height: 55px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: 0.3s;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: var(--oro);
    color: white !important;
    border-color: var(--oro);
}

.swiper-pagination-bullet {
    background: white;
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    background: var(--oro) !important;
    opacity: 1;
    width: 30px;
    border-radius: 5px;
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .nav-desk,
    .top-bar {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .header {
        height: 90px;
    }

    .slide-content h2 {
        font-size: 2.5rem;
    }

    .news-section {
        height: 70vh;
    }
}

@media (max-width: 768px) {
    /* BOTONES MÁS PEQUEÑOS EN MÓVIL */
    .swiper-button-next,
    .swiper-button-prev {
        width: 38px !important;
        height: 38px !important;
        background: rgba(255, 255, 255, 0.25) !important;
    }

    .swiper-button-next::after,
    .swiper-button-prev::after {
        font-size: 1rem !important;
    }

    .slide-content {
        left: 5%;
        width: 90%;
    }
}

/* --- SECCIÓN ADMISIÓN (ESTILO FLYER) --- */
.admission-section {
    padding: 80px 8%;
    background-color: var(--blanco);
}

.admission-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.admission-text {
    flex: 1;
}

.admission-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.admission-image img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.admission-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.2rem;
    color: var(--azul-regio);
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
}

.admission-title span {
    font-weight: 400;
}

.title-underline {
    width: 200px;
    height: 5px;
    background: var(--azul-regio);
    margin-top: 10px;
    position: relative;
}

.title-underline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 45px;
    height: 100%;
    background: var(--oro);
}

.admission-description {
    font-size: 1.1rem;
    color: var(--plomo);
    line-height: 1.8;
    margin-bottom: 35px;
    font-weight: 300;
}

.btn-more {
    display: inline-block;
    background: var(--azul-regio);
    color: white;
    text-decoration: none;
    padding: 16px 45px;
    font-weight: 600;
    font-size: 0.9rem;
    position: relative;
    clip-path: polygon(0 0, 100% 0, 92% 100%, 0% 100%);
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-more:hover {
    background: var(--azul-claro);
    padding-left: 55px;
    transform: translateX(5px);
}

/* --- SECCIÓN SELLOS Y VALORES --- */
.values-section {
    padding: 100px 8%;
    background-color: var(--plomo-suave);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    margin-top: 50px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.value-card {
    background: white;
    padding: 45px 30px;
    border-radius: 25px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: 0.4s ease;
    border-bottom: 4px solid transparent;
}

.value-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-bottom: 4px solid var(--oro);
}

.value-card i {
    font-size: 2.8rem;
    color: var(--oro);
    margin-bottom: 25px;
    display: block;
}

.value-card h3 {
    color: var(--azul-regio);
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.value-card p {
    color: var(--plomo);
    font-size: 0.95rem;
    line-height: 1.6;
    font-weight: 300;
}

/* =========================================
   FOOTER INSTITUCIONAL PROFESIONAL
   ========================================= */
.main-footer {
    background: linear-gradient(180deg, #374151 0%, #0a2558 100%);
    color: white;
    padding: 70px 8% 0;
    font-family: 'Poppins', sans-serif;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 0.7fr 0.7fr 1fr; /* 4 Columnas */
    gap: 40px;
    padding-bottom: 50px;
}

/* Identidad y Logo */
.footer-logo-wrapper {
    background: white;
    width: fit-content;
    padding: 10px;
    border-radius: 12px;
    margin-bottom: 20px;
}
.footer-logo { height: 60px; }
.footer-desc {
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
}

/* Títulos con Línea Dorada */
.footer-section h4 {
    color: #C5A059; /* Tu color Oro */
    font-size: 1.1rem;
    margin-bottom: 25px;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 35px;
    height: 2px;
    background: #C5A059;
}

/* Listas de Niveles y Navegación */
.footer-section ul { list-style: none; padding: 0; }
.footer-section ul li { 
    margin-bottom: 12px; 
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-section ul li i { color: #C5A059; font-size: 0.8rem; }

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: 0.3s;
}

.footer-section ul li a:hover {
    color: #C5A059;
    transform: translateX(8px);
    display: inline-block;
}

/* Contacto Interactivo */
.contact-item-box a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    margin-bottom: 15px;
    transition: 0.3s;
}

.contact-item-box i { color: #C5A059; width: 20px; }

.contact-item-box a:hover {
    color: white;
    transform: translateY(-2px);
}

/* Redes Sociales */
.footer-social-modern { display: flex; gap: 12px; margin-top: 20px; }
.social-circle {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: 0.4s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.social-circle:hover {
    background: #C5A059;
    color: #0a2558;
    transform: scale(1.1);
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px 0;
}
.bottom-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}
.bottom-content span { color: #C5A059; font-weight: 600; }

/* --- RESPONSIVIDAD --- */
@media (max-width: 992px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}
@media (max-width: 600px) {
    .footer-container { grid-template-columns: 1fr; text-align: center; }
    .footer-logo-wrapper, .footer-social-modern, .footer-section h4::after { margin-left: auto; margin-right: auto; }
    .contact-item-box a { justify-content: center; }
    .bottom-content { flex-direction: column; gap: 10px; }
}

/* =========================================
   FOOTER RESPONSIVO (MÓVIL Y TABLET)
   ========================================= */

@media (max-width: 992px) {
    /* En tablets, usamos 2 columnas para que no se vea vacío */
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
        text-align: left;
    }
}

@media (max-width: 768px) {
    .main-footer {
        padding: 50px 5% 0; /* Menos espacio lateral en móviles */
    }

    .footer-container {
        grid-template-columns: 1fr; /* Una sola columna en celulares */
        gap: 35px;
        text-align: center; /* Centramos todo para mejor estética móvil */
    }

    /* Centramos el logo y la línea dorada de los títulos */
    .footer-logo-wrapper {
        margin: 0 auto 20px;
    }

    .footer-section h4::after {
        left: 50%;
        transform: translateX(-50%); /* Centra la rayita dorada */
    }

    /* Centramos los iconos de las listas */
    .footer-section ul li {
        justify-content: center;
    }

    /* Ajustamos el contacto para que los iconos no queden volando */
    .contact-item-box a {
        justify-content: center;
        flex-direction: column; /* Icono arriba del texto para que no se corte */
        gap: 5px;
    }

    .contact-item-box i {
        margin-bottom: 5px;
        font-size: 1.2rem;
    }

    /* Centramos las redes sociales */
    .footer-social-modern {
        justify-content: center;
        margin-top: 25px;
    }

    /* Ajuste de la franja final */
    .bottom-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

/* Ajuste extra para celulares muy pequeños (iPhone SE, etc) */
@media (max-width: 380px) {
    .footer-section h4 {
        font-size: 1rem;
    }
    
    .footer-desc {
        font-size: 0.85rem;
    }
}

/* =========================================
   1. SECCIÓN DOCUMENTOS (DESCARGAS)
   ========================================= */
.docs-section { 
    padding: 80px 8%; 
    background: var(--blanco); 
    text-align: center; 
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    color: var(--azul-regio);
    margin-bottom: 40px;
}

.docs-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); 
    gap: 25px; 
    max-width: 1200px; 
    margin: 0 auto;
}

.doc-item { 
    padding: 35px 20px; 
    background: var(--plomo-suave); 
    border-radius: 20px; 
    text-decoration: none; 
    color: var(--azul-regio); 
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    gap: 15px;
    border: 1px solid rgba(0,0,0,0.05);
}

.doc-item i { 
    font-size: 3rem; 
    color: #d32f2f; /* Rojo PDF */
}

.doc-item span {
    font-weight: 600;
    font-size: 0.95rem;
}

.doc-item:hover { 
    background: var(--azul-regio); 
    color: white; 
    transform: translateY(-10px);
}

.doc-item:hover i { color: var(--oro); }

/* =========================================
   2. SECCIÓN GALERÍA (VIDA ESCOLAR)
   ========================================= */
.gallery-section {
    padding-bottom: 0;
    background: var(--blanco);
}

.gallery-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 0; 
}

.gallery-item { 
    height: 350px; 
    overflow: hidden; 
}

.gallery-item img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: 0.8s ease; 
    filter: brightness(0.8) grayscale(20%);
}

.gallery-item:hover img { 
    transform: scale(1.1); 
    filter: brightness(1);
}

/* =========================================
   3. SECCIÓN CONTACTO Y MAPA
   ========================================= */
.contact-section { 
    padding: 100px 8%; 
    background: var(--plomo-suave); 
}

.contact-container { 
    display: flex; 
    gap: 40px; 
    max-width: 1200px; 
    margin: 0 auto; 
}

.contact-form-box { 
    flex: 1; 
    background: white; 
    padding: 45px; 
    border-radius: 25px; 
    box-shadow: 0 15px 40px rgba(0,0,0,0.05); 
}

.contact-form-box h3 { 
    color: var(--azul-regio); 
    margin-bottom: 30px; 
    font-size: 2rem;
    font-family: 'Playfair Display', serif;
}

.contact-form-box input, 
.contact-form-box textarea { 
    width: 100%; 
    padding: 15px; 
    margin-bottom: 20px; 
    border: 1px solid #eee; 
    border-radius: 12px; 
    font-family: inherit;
    background: #f9f9f9;
}

.btn-submit {
    background: var(--azul-regio);
    color: white;
    padding: 18px;
    width: 100%;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

.btn-submit:hover {
    background: var(--oro);
    transform: translateY(-3px);
}

.map-box { 
    flex: 1.3; 
    border-radius: 25px; 
    overflow: hidden; 
    box-shadow: 0 15px 40px rgba(0,0,0,0.1); 
    border: 8px solid white;
}
/* =========================================
   BOTÓN WHATSAPP DINÁMICO (CORREGIDO)
   ========================================= */
.whatsapp-btn {
    position: fixed; 
    bottom: 30px; 
    right: 30px; 
    background: #25d366; 
    color: white !important;
    height: 60px; /* Altura fija */
    min-width: 60px; /* Empieza como un círculo perfecto */
    width: auto;
    border-radius: 50px; 
    text-decoration: none; 
    display: flex; 
    align-items: center; 
    justify-content: flex-start; /* Alinea al icono al inicio */
    padding: 0 17px; /* Padding equilibrado para el icono */
    
    /* CAMBIO CLAVE: z-index bajo para quedar detrás del sidebar */
    z-index: 1000; 
    
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden; /* Importante para que el texto no se vea al inicio */
}

/* El Icono de WhatsApp (Centrado) */
.whatsapp-btn i {
    font-size: 1.8rem;
    position: relative;
    z-index: 2;
    min-width: 25px; /* Da un ancho base para centrar */
    text-align: center;
}

/* Texto del recordatorio */
.wsp-text {
    max-width: 0;
    opacity: 0;
    white-space: nowrap;
    overflow: hidden;
    transition: all 0.6s ease-in-out;
    font-weight: 700;
    font-size: 0.95rem;
    margin-left: 0; /* Empieza pegado al icono */
    position: relative;
    z-index: 2;
}

/* --- ESTADO EXPANDIDO (Cada 10 segundos) --- */
/* Esta clase la activa el JavaScript */
.whatsapp-btn.expand {
    padding-right: 30px; /* Da aire al final del texto */
}

.whatsapp-btn.expand .wsp-text {
    max-width: 250px; /* Permite que el texto se despliegue */
    opacity: 1;
    margin-left: 12px; /* Espacio entre icono y texto */
}

/* --- ANIMACIÓN DE PULSO DETRÁS --- */
.whatsapp-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: #25d366;
    border-radius: 50px;
    z-index: 1;
    animation: wspPulse 2.5s infinite;
}

@keyframes wspPulse {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.5); opacity: 0; }
}










/* --- ESTILOS RESEÑA E HISTORIA --- */
.history-section {
    padding: 100px 8%;
    background: var(--blanco);
}

.history-text-block {
    max-width: 900px;
    margin: 0 auto 80px;
    text-align: center;
}

.history-content {
    text-align: justify;
    line-height: 1.8;
    color: var(--plomo);
    font-size: 1.1rem;
}

.history-content p {
    margin-bottom: 20px;
}

.history-content blockquote {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: var(--azul-regio);
    padding: 30px;
    margin: 40px 0;
    border-left: 5px solid var(--oro);
    background: var(--plomo-suave);
    font-style: italic;
    border-radius: 0 20px 20px 0;
}

/* --- LÍNEA DE TIEMPO HORIZONTAL (LIQUID GLASS) --- */
.timeline-container {
    text-align: center;
}

.timeline-main-title {
    color: var(--oro);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.9rem;
    margin-bottom: 50px;
}

.timeline-visual {
    display: flex;
    justify-content: space-between;
    position: relative;
    padding-top: 20px;
}

/* Línea de fondo connectora */
.timeline-visual::before {
    content: '';
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--oro);
    opacity: 0.3;
    z-index: 1;
}

.timeline-point {
    flex: 1;
    z-index: 2;
    padding: 0 10px;
}

.point-img {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--oro);
    background: white;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.point-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.point-info {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: 0.3s;
}

.timeline-point:hover .point-info {
    background: white;
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.point-year {
    font-weight: 800;
    color: var(--oro);
    font-size: 1.2rem;
}

/* RESPONSIVO MÓVIL */
@media (max-width: 768px) {
    .timeline-visual {
        flex-direction: column;
        gap: 40px;
    }
    
    .timeline-visual::before {
        display: none;
    }

    .timeline-point {
        display: flex;
        align-items: center;
        text-align: left;
        gap: 20px;
    }

    .point-img {
        width: 70px;
        height: 70px;
        margin: 0;
        flex-shrink: 0;
    }
}


/* --- SECCIÓN FUNCIONARIOS COMPLETA --- */
.staff-section {
    padding: 100px 8%;
    background: var(--blanco);
    text-align: center;
}

/* --- NUEVO: BLOQUE DESTACADO DIRECTORA --- */
.director-highlight {
    max-width: 1100px;
    margin: 0 auto 80px;
    display: flex;
    align-items: center;
    gap: 50px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 50px;
    border-radius: 40px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 25px 50px rgba(10, 37, 88, 0.05);
}

.director-message {
    flex: 1;
    text-align: left;
}

.director-message h3 {
    font-family: 'Playfair Display', serif;
    color: var(--azul-regio);
    font-size: 2rem;
    margin-bottom: 15px;
}

.director-message p {
    color: var(--plomo);
    line-height: 1.8;
    font-style: italic;
    font-size: 1.15rem;
    margin-bottom: 25px;
    position: relative;
}

/* Ajuste específico para la card de la directora dentro del highlight */
.director-highlight .staff-card {
    flex: 0 0 320px;
}

.director-highlight .staff-img-box {
    margin-bottom: 40px; /* Reducido porque el badge ya no flota tanto hacia afuera aquí */
}

/* --- GRID DEL RESTO DEL EQUIPO --- */
.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 60px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.staff-card {
    position: relative;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Contenedor de la Imagen */
.staff-img-box {
    position: relative;
    width: 100%;
    height: 380px;
    border-radius: 25px;
    overflow: visible;
    margin-bottom: 60px;
}

.staff-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 25px;
    filter: saturate(1.05);
    box-shadow: 0 15px 35px rgba(10, 37, 88, 0.12);
    transition: 0.5s ease;
}

/* Placa Flotante (Liquid Glass) */
.staff-info-badge {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    padding: 20px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    z-index: 5;
    transition: 0.4s ease;
}

.staff-info-badge h3 {
    color: var(--azul-regio);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.staff-role {
    color: var(--oro);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Detalles Inferiores */
.staff-details {
    padding: 0 15px;
    opacity: 0.9;
}

.staff-degree {
    font-size: 0.9rem;
    color: var(--plomo);
    font-weight: 500;
    margin-bottom: 12px;
    line-height: 1.4;
}

.staff-specialties {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
}

.staff-specialties span {
    font-size: 0.7rem;
    background: var(--plomo-suave);
    color: var(--azul-regio);
    padding: 5px 12px;
    border-radius: 50px;
    font-weight: 500;
    border: 1px solid rgba(0,0,0,0.03);
}

/* Hover Effects */
.staff-card:hover .staff-img-box img {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 50px rgba(10, 37, 88, 0.2);
}

.staff-card:hover .staff-info-badge {
    background: rgba(255, 255, 255, 1);
    bottom: -22px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* --- RESPONSIVO --- */
@media (max-width: 992px) {
    .director-highlight {
        flex-direction: column;
        text-align: center;
        padding: 30px;
    }

    .director-highlight .staff-card {
        flex: 0 0 auto;
        width: 100%;
        max-width: 320px;
    }

    .director-message {
        text-align: center;
    }

    .director-message h3 {
        font-size: 1.6rem;
    }

    .staff-specialties {
        justify-content: center !important;
    }
}

@media (max-width: 768px) {
    .staff-section {
        padding: 60px 5%;
    }

    .staff-img-box {
        height: 340px;
    }

    .staff-grid {
        gap: 80px 20px; /* Más espacio vertical en móvil por los badges flotantes */
    }
}




/* --- SECCIÓN NORMATIVA PROFESIONAL (LIQUID GLASS) --- */
.normativa-section {
    padding: 100px 8%;
    background: linear-gradient(180deg, var(--blanco) 0%, var(--plomo-suave) 100%);
    text-align: center;
}

.normativa-header {
    margin-bottom: 60px;
}

.tag-superior {
    display: inline-block;
    padding: 6px 18px;
    background: var(--azul-regio);
    color: white;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    box-shadow: 0 4px 12px rgba(10, 37, 88, 0.2);
}

.normativa-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
    max-width: 1300px;
    margin: 0 auto;
}

/* Tarjeta Base Estilo iPhone */
.normativa-card {
    position: relative;
    padding: 45px 30px;
    border-radius: 35px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-glass-bg {
    position: absolute;
    inset: 0;
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    z-index: 1;
}

.card-content {
    position: relative;
    z-index: 2;
}

/* Iconos Dinámicos */
.doc-icon-box {
    width: 65px;
    height: 65px;
    background: var(--azul-regio);
    color: var(--oro);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    font-size: 2rem;
    margin: 0 auto 25px;
    box-shadow: 0 10px 25px rgba(10, 37, 88, 0.15);
}

/* Colores específicos para iconos */
.fa-brain { color: #ff9a9e !important; } 
.fa-landmark { color: #a1c4fd !important; } 
.fa-file-signature { color: #84fab0 !important; }
.fa-hands-holding-child { color: #fbc2eb !important; }

/* Previsualización del Documento */
.doc-preview {
    width: 100%;
    height: 190px;
    background: white;
    border-radius: 20px;
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.02);
}

.watermark-logo {
    position: absolute;
    width: 130px;
    opacity: 0.04;
    filter: grayscale(1);
}

.doc-preview h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: var(--azul-regio);
    z-index: 2;
    letter-spacing: 1px;
}

.normativa-card h3 {
    font-size: 1.3rem;
    color: var(--azul-regio);
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.3;
}

.normativa-card p {
    font-size: 0.95rem;
    color: var(--plomo);
    line-height: 1.6;
    margin-bottom: 30px;
    font-weight: 400;
}

/* Botón de Descarga Apple Style */
.btn-download {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: var(--oro);
    color: white;
    text-decoration: none;
    padding: 16px 28px;
    border-radius: 18px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: 0.3s ease;
    box-shadow: 0 8px 20px rgba(197, 160, 89, 0.25);
}

.btn-download:hover {
    background: var(--azul-regio);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(10, 37, 88, 0.3);
}

/* Efecto Brillo de Vidrio (Swipe) */
.normativa-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: 0.8s;
    z-index: 3;
}

.normativa-card:hover::before {
    left: 150%;
}

.normativa-card:hover {
    transform: translateY(-12px);
    border-color: var(--oro);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 30px 60px rgba(10, 37, 88, 0.12);
}

/* RESPONSIVO */
@media (max-width: 768px) {
    .normativa-grid {
        grid-template-columns: 1fr;
        padding: 0 10px;
    }
    .normativa-section {
        padding: 60px 5%;
    }
    .doc-preview {
        height: 160px;
    }
}

/* =========================================
   SECCIÓN ACTIVIDADES - GLASS PORTFOLIO
   ========================================= */
.activities-section {
    padding: 80px 8%;
    background: #ffffff;
}

/* Grid dinámico y compacto */
.activities-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    max-width: 1400px;
    margin: 40px auto 0;
}

.glass-card-mini {
    position: relative;
    height: 380px; /* Tamaño ideal compacto */
    border-radius: 25px;
    overflow: hidden;
    background: #000; /* Fondo negro para que resalten las fotos */
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* MOTOR DE SLIDESHOW (3 IMÁGENES POR TARJETA) */
.slideshow-engine {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.img-layer {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.1);
    animation: simpleCrossfade 12s infinite; /* 4 segundos por imagen */
}

/* Tiempos para que las 3 imágenes se turnen */
.img-layer:nth-child(1) { animation-delay: 0s; }
.img-layer:nth-child(2) { animation-delay: 4s; }
.img-layer:nth-child(3) { animation-delay: 8s; }

@keyframes simpleCrossfade {
    0% { opacity: 0; transform: scale(1.15); }
    10% { opacity: 0.6; } /* Opacidad 0.6 para que el texto sea legible */
    33% { opacity: 0.6; }
    43% { opacity: 0; transform: scale(1); }
    100% { opacity: 0; }
}

/* PLACA DE INFORMACIÓN (LIQUID GLASS) */
.glass-info {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    padding: 22px;
    background: rgba(255, 255, 255, 0.1); /* Transparencia base */
    backdrop-filter: blur(15px) saturate(160%);
    -webkit-backdrop-filter: blur(15px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    z-index: 5;
    text-align: left;
    transition: 0.4s ease;
}

.glass-badge {
    display: inline-block;
    font-size: 0.65rem;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--oro); /* Color institucional */
    letter-spacing: 1.5px;
    margin-bottom: 8px;
}

.glass-info h3 {
    color: #ffffff;
    font-size: 1.2rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    margin-bottom: 6px;
    line-height: 1.2;
}

.glass-info p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 15px;
    /* Limitamos a 2 líneas para que sea compacto */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.btn-glass {
    display: inline-block;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    border-bottom: 2px solid var(--oro);
    padding-bottom: 3px;
    transition: 0.3s ease;
}

.btn-glass:hover {
    color: var(--oro);
    border-color: #ffffff;
    letter-spacing: 1px;
}

/* --- EFECTOS HOVER --- */
.glass-card-mini:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(10, 37, 88, 0.15);
}

.glass-card-mini:hover .glass-info {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-5px);
}

.glass-card-mini:hover .img-layer {
    filter: blur(2px) brightness(0.8); /* Desenfoca un poco al tocarlo */
}

/* =========================================
   RESPONSIVIDAD
   ========================================= */
@media (max-width: 768px) {
    .activities-section {
        padding: 60px 5%;
    }

    .activities-grid-modern {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 20px;
    }

    .glass-card-mini {
        height: 320px; /* Un poco más pequeño en móviles */
    }

    .glass-info {
        bottom: 15px;
        left: 15px;
        right: 15px;
        padding: 15px;
    }

    .glass-info h3 {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .glass-card-mini {
        height: 300px;
    }
}






/* --- OPCIÓN 1: PILARES --- */
.pilares-section {
    padding: 100px 8%;
    background: #fdfdfd;
    text-align: center;
}

.pilares-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.pilar-card {
    padding: 50px 30px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 15px 35px rgba(10, 37, 88, 0.05);
    transition: all 0.4s ease;
}

.pilar-card i {
    font-size: 3.5rem;
    color: var(--oro);
    margin-bottom: 25px;
    display: block;
}

.pilar-card h3 {
    color: var(--azul-regio);
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-family: 'Playfair Display', serif;
}

.pilar-card p {
    color: var(--plomo);
    line-height: 1.6;
    font-size: 0.95rem;
}

.pilar-card:hover {
    transform: translateY(-10px);
    background: white;
    border-color: var(--oro);
    box-shadow: 0 25px 50px rgba(10, 37, 88, 0.1);
}


/* --- ESTILO FAQ ACORDEÓN --- */
.faq-section {
    padding: 100px 8%;
    background: #f8f9fa;
}

.faq-container {
    max-width: 900px;
    margin: 50px auto 0;
    text-align: left;
}

.faq-item {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    margin-bottom: 20px;
    border-radius: 20px;
    border: 1px solid rgba(10, 37, 88, 0.05);
    padding: 25px;
    transition: 0.4s;
    box-shadow: 0 10px 20px rgba(0,0,0,0.02);
}

.faq-item summary {
    list-style: none;
    font-weight: 700;
    color: var(--azul-regio);
    font-size: 1.1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    outline: none;
}

.faq-item summary i {
    color: var(--oro);
    transition: 0.4s;
}

.faq-item[open] {
    background: white;
    border-color: var(--oro);
    box-shadow: 0 15px 30px rgba(10, 37, 88, 0.08);
}

.faq-item[open] summary i {
    transform: rotate(180deg);
}

.faq-content {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
    line-height: 1.8;
    color: var(--plomo);
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}



/* --- SECCIÓN TOP 4 NOTICIAS --- */
.top-news-section {
    padding: 100px 8%;
    background: #ffffff;
}

.top-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 50px auto 0;
}

.news-main-card {
    background: #ffffff; /* Eliminado backdrop-filter para mayor fluidez */
    border-radius: 35px;
    overflow: hidden;
    border: 1px solid rgba(10, 37, 88, 0.08);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03); /* Sombra más sutil */
    display: flex;
    flex-direction: column;
    /* Transición más rápida y suave usando solo propiedades ligeras */
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    will-change: transform; /* Optimiza el renderizado */
}

/* Imagen con efecto de profundidad */
.news-img-box {
    position: relative;
    height: 280px;
    overflow: hidden;
    background: #f4f4f4;
}

.news-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Transición de escala muy lenta para que sea casi imperceptible */
    transition: transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.news-date {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--oro);
    color: white;
    padding: 6px 15px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    z-index: 2;
}

/* Contenido de la Noticia */
.news-text-content {
    padding: 35px;
    text-align: left;
}

.news-category {
    color: var(--oro);
    font-weight: 800;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    display: block;
}

.news-text-content h3 {
    font-family: 'Playfair Display', serif;
    color: var(--azul-regio);
    font-size: 1.6rem;
    line-height: 1.3;
    margin-bottom: 15px;
}

.news-text-content p {
    color: var(--plomo);
    line-height: 1.7;
    font-size: 0.95rem;
    margin-bottom: 25px;
}

.news-link {
    color: var(--azul-regio);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}

.news-link i {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

/* --- EFECTOS HOVER (SUAVIZADOS) --- */
.news-main-card:hover {
    /* Desplazamiento reducido (de 12px a 5px) para evitar saltos bruscos */
    transform: translateY(-5px); 
    box-shadow: 0 20px 40px rgba(10, 37, 88, 0.1);
    border-color: rgba(197, 160, 89, 0.4);
}

.news-main-card:hover .news-img-box img {
    /* Zoom mucho más discreto (de 1.1 a 1.05) */
    transform: scale(1.05);
}

.news-link:hover {
    color: var(--oro);
}

.news-link:hover i {
    transform: translateX(3px); /* Movimiento de flecha más corto */
}

/* RESPONSIVIDAD */
@media (max-width: 768px) {
    .top-news-grid {
        grid-template-columns: 1fr;
        padding: 0 10px;
    }
    .news-text-content h3 {
        font-size: 1.4rem;
    }
    .top-news-section {
        padding: 60px 5%;
    }
}



/* --- SECCIÓN ADMISIÓN LIMPIA --- */
.admission-clean {
    padding: 100px 8%;
    background: #ffffff; /* Fondo blanco puro para orden visual */
    display: flex;
    justify-content: center;
}

.container-clean {
    max-width: 1200px;
    display: flex;
    align-items: center;
    gap: 60px; /* Espacio generoso entre imagen y texto */
}

/* LADO IMAGEN */
.image-box {
    flex: 1;
}

.image-box img {
    width: 100%;
    height: auto;
    border-radius: 20px; /* Bordes suaves, no circulares */
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); /* Sombra muy sutil */
    display: block;
}

/* LADO TEXTO */
.text-box {
    flex: 1;
    text-align: left;
}

.eyebrow {
    color: var(--oro);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 0.85rem;
    display: block;
    margin-bottom: 15px;
}

.title-clean {
    font-size: 2.8rem;
    color: var(--azul-regio);
    line-height: 1.1;
    margin-bottom: 25px;
    font-family: 'Playfair Display', serif;
}

.title-clean span {
    color: var(--oro);
}

.description-clean {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 35px;
}

/* ACCIONES */
.action-box {
    display: flex;
    align-items: center;
    gap: 25px;
}

.btn-direct {
    background: var(--azul-regio);
    color: #ffffff;
    text-decoration: none;
    padding: 18px 35px;
    border-radius: 10px;
    font-weight: 700;
    transition: 0.3s;
}

.btn-direct:hover {
    background: var(--oro);
    transform: translateY(-3px);
}

.btn-link {
    color: var(--azul-regio);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    border-bottom: 2px solid transparent;
    transition: 0.3s;
}

.btn-link:hover {
    border-color: var(--oro);
}

/* RESPONSIVO: IMPORTANTE PARA EL ORDEN */
@media (max-width: 992px) {
    .container-clean {
        flex-direction: column; /* Se apilan en móvil */
        text-align: center;
        gap: 40px;
    }
    
    .text-box {
        text-align: center;
    }
    
    .action-box {
        flex-direction: column;
        gap: 20px;
    }

    .title-clean {
        font-size: 2.2rem;
    }
}



/* =========================================
   PORTAL DE CONTACTO INTERACTIVO & RESPONSIVO
   ========================================= */

/* Contenedor Principal */
.contact-interactive-section {
    padding: 80px 5%; /* Espaciado lateral flexible */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
}

/* Tarjeta de Cristal (El Contenedor) */
.glass-portal-container {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Dos columnas iguales en PC */
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    overflow: hidden;
    max-width: 1200px;
    width: 100%;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

/* --- LADO DEL MAPA --- */
.map-box-modern {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 450px;
}

.map-box-modern iframe {
    width: 100%;
    height: 100%;
    border: none;
    filter: grayscale(0.2) contrast(1.1);
    display: block;
}

.map-card-info {
    position: absolute;
    bottom: 25px;
    left: 25px;
    background: #0a2558;
    padding: 15px 20px;
    border-radius: 15px;
    color: white;
    border: 1px solid #C5A059;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    z-index: 10;
}

/* --- LADO DEL FORMULARIO --- */
.form-box-modern {
    padding: 60px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-header-modern {
    margin-bottom: 40px;
}

.form-header-modern h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: white;
}

.form-header-modern h2 span {
    color: #C5A059;
}

.form-header-modern p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
}

/* Estilos de Inputs */
.input-animated {
    position: relative;
    margin-bottom: 35px;
}

.input-animated input, 
.input-animated textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    padding: 12px 0;
    color: white;
    font-size: 1rem;
    outline: none;
    transition: 0.3s;
}

.input-animated label {
    position: absolute;
    left: 0;
    top: 12px;
    color: rgba(255, 255, 255, 0.4);
    pointer-events: none;
    transition: 0.3s all ease;
}

/* Animación de la etiqueta al escribir */
.input-animated input:focus ~ label,
.input-animated input:valid ~ label,
.input-animated textarea:focus ~ label,
.input-animated textarea:valid ~ label {
    top: -20px;
    font-size: 0.85rem;
    color: #C5A059;
}

.border-glow {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #C5A059;
    transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.input-animated input:focus ~ .border-glow,
.input-animated textarea:focus ~ .border-glow {
    width: 100%;
}

/* Botón Enviar */
.btn-send-modern {
    background: #C5A059;
    color: #0a2558;
    border: none;
    padding: 18px;
    border-radius: 12px;
    font-weight: 800;
    letter-spacing: 1px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    transition: 0.4s;
    width: 100%;
}

.btn-send-modern:hover {
    background: white;
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(197, 160, 89, 0.3);
}

/* =========================================
   Ajustes para Tablet (Menos de 1024px)
   ========================================= */
@media (max-width: 1024px) {
    .form-box-modern {
        padding: 40px;
    }
    .form-header-modern h2 {
        font-size: 1.8rem;
    }
}

/* =========================================
   Ajustes para Móvil (Menos de 768px)
   ========================================= */
@media (max-width: 768px) {
    .contact-interactive-section {
        padding: 40px 15px;
    }

    .glass-portal-container {
        grid-template-columns: 1fr; /* Una sola columna */
        border-radius: 20px;
    }

    .map-box-modern {
        height: 300px; /* Reducimos altura del mapa en móvil */
        min-height: 300px;
        order: 2; /* El mapa pasa abajo del formulario (opcional) */
    }

    .form-box-modern {
        padding: 40px 25px;
        order: 1; /* El formulario queda arriba para que sea lo primero que vean */
    }

    .form-header-modern {
        text-align: center;
    }

    .map-card-info {
        left: 50%;
        bottom: 15px;
        transform: translateX(-50%); /* Centramos la info del mapa en móvil */
        width: 80%;
        justify-content: center;
        font-size: 0.8rem;
    }
}


/* =========================================
   SECCIÓN FINAL ANTES DEL FOOTER (CTA)
   ========================================= */
.final-cta {
    padding: 120px 8%;
    background: linear-gradient(rgba(10, 37, 88, 0.85), rgba(10, 37, 88, 0.95)), 
                url('images/fondo-colegio.jpg'); /* Usa una foto del patio o fachada */
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Efecto Parallax */
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.cta-eyebrow {
    color: #C5A059;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 700;
    display: block;
    margin-bottom: 20px;
}

.final-cta h2 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 25px;
}

.final-cta h2 span {
    color: #C5A059;
}

.final-cta p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    line-height: 1.6;
}

/* Botones */
.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn-main-cta {
    background: #C5A059;
    color: #0a2558 !important;
    padding: 18px 35px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.4s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-secondary-cta {
    background: transparent;
    color: white !important;
    padding: 18px 35px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    border: 2px solid white;
    transition: 0.4s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-main-cta:hover {
    background: white;
    transform: translateY(-5px);
}

.btn-secondary-cta:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #C5A059;
    color: #C5A059 !important;
}

/* RESPONSIVO */
@media (max-width: 768px) {
    .final-cta h2 { font-size: 2.2rem; }
    .cta-buttons { flex-direction: column; align-items: center; }
    .btn-main-cta, .btn-secondary-cta { width: 100%; justify-content: center; }
}