/* ==========================================================================
   1. VARIABLES Y CONFIGURACIÓN GLOBAL
   ========================================================================== */
:root {
    --u-verde-profundo: #1b4d3e;
    --u-verde-medio: #2c6e49;
    --u-dorado: #d4af37;
    --u-gris-claro: #f4f6f9;
    --u-texto: #333333;
    --u-blanco: #ffffff;
}

body {
    font-family: 'Lato', sans-serif;
    color: var(--u-texto);
    background-color: var(--u-blanco);
    overflow-x: hidden;
}

h1, h2, h3, h4, .formal-title, .navbar-brand {
    font-family: 'Merriweather', serif;
}

.formal-title {
    color: var(--u-verde-profundo);
    font-weight: 800;
}

.divider-gold {
    height: 4px;
    width: 70px;
    background-color: var(--u-dorado);
    margin: 15px auto;
    border-radius: 2px;
}

.ls-2 {
    letter-spacing: 2px;
}

a {
    text-decoration: none;
}

/* ==========================================================================
   2. HEADER Y TOP BAR
   ========================================================================== */
.top-bar {
    background-color: #0d2b21;
    color: #ccc;
    font-size: 0.8rem;
    padding: 6px 0;
}

.top-bar a {
    color: #ddd;
    transition: color 0.3s;
}

.top-bar a:hover {
    color: var(--u-dorado);
}

.main-header {
    background-color: white;
    padding: 20px 0;
    border-bottom: 3px solid var(--u-dorado);
}

.brand-text h1 {
    color: var(--u-verde-profundo);
    font-size: 1.6rem;
    margin: 0;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.brand-text span {
    color: #666;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}





/* ==========================================================================
   3. NAVBAR PRINCIPAL (FIJA AL SCROLLEAR)
   ========================================================================== */
.academic-nav {
    background-color: var(--u-verde-profundo);
    padding: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    
    /* --- AQUÍ ESTÁ EL CAMBIO PARA QUE SE FIJE --- */
    position: -webkit-sticky; /* Para Safari */
    position: sticky;         /* Estándar */
    top: 0;                   /* Se pega al llegar al borde superior */
    z-index: 1030;            /* Se mantiene encima de todo */
}

/* Estilos de los enlaces del menú de escritorio */
.academic-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    text-transform: uppercase;
    font-family: 'Lato', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 18px 20px !important;
    transition: background 0.3s;
}

/* Botón Hamburguesa Limpio */
.navbar-toggler {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    padding: 5px;
}

.navbar-toggler:focus {
    box-shadow: none;
}


/* ==========================================================================
   4. ESTILOS DEL MENÚ MÓVIL (SIDEBAR/OFFCANVAS)
   ========================================================================== */
.mobile-sidebar {
    background-color: #0f8b65;
    border-left: 4px solid var(--u-dorado);
    width: 85% !important;
    max-width: 350px;
}

.offcanvas-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.mobile-cat-title {
    color: #ffffff;
    font-family: 'Merriweather', serif;
    font-weight: 900;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin: 20px 0 5px 5px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.mobile-links-box {
    background-color: #0b6e4f;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.mobile-link {
    display: block;
    padding: 12px 15px;
    color: white;
    font-weight: 700;
    font-size: 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s;
}

.mobile-link:hover {
    background-color: #084d38;
    color: var(--u-dorado);
    padding-left: 20px;
}

.mobile-sub-box {
    background-color: #064e3b;
    border-top: 2px solid rgba(0, 0, 0, 0.1);
}




/* ==========================================================================
   REGLAS DE VISIBILIDAD (ESCRITORIO vs MÓVIL)
   ========================================================================== */

/* PANTALLAS GRANDES (Escritorio) */
@media (min-width: 992px) {
    .offcanvas.mobile-sidebar,
    .mobile-cat-title,
    .mobile-links-box {
        display: none !important;
    }

    .academic-nav .nav-link:hover {
        background-color: var(--u-verde-medio);
        color: var(--u-dorado) !important;
    }

    .dropdown-menu {
        border-top: 4px solid var(--u-dorado);
        border-radius: 0;
        margin-top: 0;
        display: block;
        opacity: 0;
        visibility: hidden;
        transform: translateY(20px);
        transition: all 0.3s;
    }

    .navbar-nav .dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .dropdown-item {
        padding: 10px 20px;
        border-bottom: 1px solid #eee;
    }

    .dropdown-item:hover {
        background-color: #f8f9fa;
        color: var(--u-verde-profundo);
        padding-left: 25px;
        transition: 0.2s;
    }
}

/* PANTALLAS PEQUEÑAS (Móvil) */
@media (max-width: 991px) {
    .mobile-cat-title,
    .mobile-links-box {
        display: block;
    }
}
/* ==========================================================================
   CSS DEFINITIVO "NUCLEAR" (CON !important PARA FORZAR CAMBIOS)
   ========================================================================== */

/* --- VARIABLES --- */
:root {
    --u-verde-profundo: #004d40;
    --u-dorado: #d4af37;
}

/* --- CONFIGURACIÓN DEL SLIDER (PC) --- */
.hero-slide {
    height: 700px; 
    position: relative;
    background-color: #0d2b21;
    overflow: hidden; 
}

/* --- IMAGEN DE FONDO DIFUMINADA --- */
.overlay-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(5px) brightness(0.8); 
    -webkit-filter: blur(5px) brightness(0.8);
    transform: scale(1.1); 
    z-index: 1;
    transition: transform 6s ease;
}

.carousel-item.active .overlay-image {
    transform: scale(1.15); 
}

.hero-slide .container {
    position: relative;
    z-index: 10;
}

/* --- TARJETA FLOTANTE (PC) --- */
.hero-news-card {
    background-color: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    position: absolute;
    bottom: 250px; 
    left: 100px;
    max-width: 700px;
    padding: 45px;
    border-radius: 15px;
    border-top: 5px solid var(--u-dorado);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    opacity: 0;
    animation: entradaPremium 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    animation-delay: 0.5s;
}

/* --- TEXTOS (PC) --- */
.news-category {
    display: block;
    font-family: sans-serif;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 2px;
    font-size: 0.85rem;
    margin-bottom: 15px;
}

.news-headline {
    color: var(--u-verde-profundo);
    font-family: 'Merriweather', serif;
    font-weight: 900;
    font-size: 2.2rem;
    line-height: 1.2;
    margin-bottom: 25px;
    letter-spacing: -0.5px;
}

/* --- BOTÓN (PC) --- */
.btn-academic {
    background-color: var(--u-verde-profundo);
    color: white;
    border-radius: 6px;
    padding: 12px 25px;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.9rem;
    border: 2px solid var(--u-verde-profundo);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.btn-academic:hover {
    background-color: transparent;
    color: var(--u-verde-profundo);
    transform: translateY(-3px);
}

.btn-academic .arrow-icon {
    transition: transform 0.3s ease;
}

.btn-academic:hover .arrow-icon {
    transform: translateX(5px);
}

/* --- FLECHAS (PC) --- */
.nav-arrow-bg {
    background-color: var(--u-verde-profundo);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: transform 0.2s;
}

.carousel-control-prev:hover .nav-arrow-bg,
.carousel-control-next:hover .nav-arrow-bg {
    transform: scale(1.1);
    background-color: var(--u-dorado);
}

/* --- ANIMACIÓN --- */
@keyframes entradaPremium {
    0% { opacity: 0; transform: translateY(40px) scale(0.98); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* =========================================================
   AQUÍ ESTÁ LA MAGIA PARA EL CELULAR (SOLUCIÓN FORZADA)
   ========================================================= */
@media (max-width: 768px) {
    
    .hero-slide {
        height: 600px !important;
    }

    /* 1. TARJETA: SUPER ALTA Y CON ESPACIO LATERAL EXTRA */
    .hero-news-card {
        bottom: 200px !important; /* MÁS ARRIBA (Forzado) */
        left: 10px !important;
        right: 10px !important;
        width: auto !important;
        max-width: none !important;
        
        /* 60px a los lados: EL TEXTO NO PODRÁ TOCAR LAS FLECHAS */
        padding: 30px 60px !important; 
        
        border-radius: 12px !important;
    }

    /* Títulos centrados y ajustados */
    .news-headline {
        font-size: 1.2rem !important;
        margin-bottom: 15px !important;
        text-align: center !important;
        line-height: 1.3 !important;
    }
    
    .news-category {
        text-align: center !important;
    }

    /* 2. BOTÓN: Ocupa todo el ancho */
    .btn-academic {
        width: 100% !important;
        justify-content: center !important;
        font-size: 0.8rem !important;
        padding: 12px 10px !important;
    }

    /* 3. FLECHAS: PEQUEÑAS Y TRANSPARENTES */
    /* Se pegan a los bordes y no molestan */
    .nav-arrow-bg {
        width: 30px !important;
        height: 30px !important;
        font-size: 0.7rem !important;
        background-color: rgba(0, 77, 64, 0.7) !important;
        backdrop-filter: blur(2px);
    }

    /* Posición exacta de las flechas */
    .carousel-control-prev { left: 0px !important; width: 40px !important;}
    .carousel-control-next { right: 0px !important; width: 40px !important;}
}



/* ==========================================================================
   6. ESPECIALIDADES (Cards)
   ========================================================================== */
/* --- ESTILO FINAL: IMAGEN VISIBLE + EFECTO SUAVE (HOVER) --- */

/* --- ESTILO FINAL: IMAGEN VISIBLE + EFECTO SUAVE (HOVER) --- */

.tp-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.tp-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.tp-card {
    position: relative;
    height: 380px;
    border-radius: 12px; /* Bordes un poco más redondeados */
    overflow: hidden; /* Importante para que el zoom no se salga */
    
    /* IMAGEN DE FONDO */
    background-image: var(--bg-img);
    background-size: 100%; /* Empezamos con la imagen al 100% */
    background-position: center;
    background-repeat: no-repeat;
    
    /* BORDE Y SOMBRA INICIAL */
    border-bottom: 5px solid #004e36; /* Verde institucional */
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    
    /* LA MAGIA: TRANSICIONES SUAVES */
    /* Aquí definimos que el cambio dure 0.5 segundos (medio segundo) */
    transition: transform 0.5s ease, 
                box-shadow 0.5s ease, 
                background-size 0.8s ease, /* El zoom es más lento para ser elegante */
                border-bottom-color 0.3s ease;
}

/* DEGRADADO (Solo abajo para leer texto, invisible arriba) */
.tp-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    
    /* Gradiente transparente arriba -> Oscuro abajo */
    background: linear-gradient(
        to bottom, 
        rgba(0,0,0,0) 0%, 
        rgba(0,0,0,0) 40%, 
        rgba(0, 78, 54, 0.5) 70%, 
        rgba(0, 78, 54, 0.95) 100%
    );
    
    transition: background 0.5s ease;
    z-index: 1;
}

.tp-content-wrapper {
    position: relative;
    z-index: 2;
    height: 100%;
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Texto abajo */
    align-items: flex-start;
    text-align: left;
}

/* ICONO (En círculo blanco arriba) */
.tp-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: rgba(255, 255, 255, 0.95);
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #004e36;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    
    /* Transición para el giro y color */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Efecto rebote suave */
}

/* TÍTULOS */
.tp-title {
    font-family: 'Times New Roman', serif;
    font-weight: 700;
    font-size: 1.6rem;
    color: #fff;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    transform: translateY(0);
    transition: transform 0.3s ease;
}

/* DESCRIPCIÓN */
.tp-desc {
    font-size: 0.95rem;
    color: #f1f1f1;
    margin-bottom: 1rem;
    line-height: 1.4;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.9);
}

/* BOTÓN "VER ESPECIALIDAD" */
.tp-more {
    background-color: transparent;
    border: 2px solid #d4af37;
    color: #d4af37;
    padding: 6px 18px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    background-color: rgba(0,0,0,0.3); /* Fondo semitransparente para leerse bien */
    transition: all 0.3s ease;
}

/* --- EFECTOS HOVER (CUANDO PASAS EL MOUSE) --- */

/* 1. La tarjeta flota hacia arriba y crece la sombra */
.tp-card-link:hover .tp-card {
    transform: translateY(-12px); /* Sube 12 pixeles */
    box-shadow: 0 20px 40px rgba(0,0,0,0.25); /* Sombra difusa y elegante */
    background-size: 110%; /* ZOOM SUAVE: La imagen crece un 10% */
    border-bottom-color: #d4af37; /* El borde verde cambia a dorado */
}

/* 2. El icono gira un poco, crece y se pone dorado */
.tp-card-link:hover .tp-icon {
    background-color: #d4af37;
    color: #fff;
    transform: scale(1.1) rotate(10deg); /* Crece y gira 10 grados */
}

/* 3. El botón se rellena de color dorado */
.tp-card-link:hover .tp-more {
    background-color: #d4af37;
    color: #000;
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.4);
}

/* 4. Ajuste para tarjeta de Admisión (Diferenciación) */
.admission-card::before {
    background: linear-gradient(
        to bottom, 
        rgba(212, 175, 55, 0.2) 0%, 
        rgba(180, 140, 20, 0.95) 100%
    ) !important;
}
.admission-card .tp-icon {
    color: #d4af37;
    background: #004e36;
}
.tp-card-link:hover .admission-card .tp-icon {
    background-color: #fff;
    color: #004e36;
}
/* ==========================================================================
   7. EQUIPO, TALLERES & INFO
   ========================================================================== */
.team-section,
.info-section {
    padding: 80px 0;
    background-color: #fff;
}

.workshops-section {
    background-color: #f4f6f9;
    padding: 80px 0;
}

.news-section {
    background-color: var(--u-gris-claro);
}

.director-img-wrapper {
    position: relative;
    min-height: 400px;
    height: 100%;
}

.director-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.director-frame {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-formal-outline {
    border: 2px solid var(--u-verde-profundo);
    color: var(--u-verde-profundo);
    padding: 10px 20px;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 1px;
    display: inline-block;
    transition: all 0.3s;
}

.btn-formal-outline:hover {
    background-color: var(--u-verde-profundo);
    color: #fff;
}

.team-card {
    background: white;
    border: 1px solid #f0f0f0;
    transition: all 0.3s;
    height: 100%;
    text-align: center;
    padding-bottom: 20px;
}

.team-card:hover {
    transform: translateY(-5px);
    border-color: var(--u-dorado);
}

.team-img-container img {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 0 0 3px var(--u-verde-profundo);
    margin: 30px auto 20px;
}

.custom-tab {
    color: #555 !important;
    font-family: 'Merriweather', serif;
    font-weight: 700;
    background: transparent !important;
}

.custom-tab.active {
    color: var(--u-verde-profundo) !important;
    background: white !important;
    border-bottom: 3px solid var(--u-dorado);
}

.workshop-card {
    position: relative;
    height: 300px;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.workshop-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
}

.workshop-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, var(--u-verde-profundo) 0%, rgba(27, 77, 62, 0.1) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    transition: all 0.4s;
}

.ws-details {
    height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.4s;
    color: #ddd;
    font-size: 0.9rem;
}

.workshop-card:hover img {
    transform: scale(1.1);
}

.workshop-card:hover .workshop-overlay {
    background: rgba(27, 77, 62, 0.95);
}

.workshop-card:hover .ws-details {
    height: auto;
    opacity: 1;
    margin-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 15px;
}

.academic-card {
    background: white;
    border: 1px solid #e0e0e0;
    transition: transform 0.3s;
    height: 100%;
}

.academic-card:hover {
    transform: translateY(-5px);
    border-color: var(--u-dorado);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.academic-card img {
    height: 200px;
    object-fit: cover;
    width: 100%;
}

.academic-card .card-body {
    padding: 25px;
}

.news-date-badge {
    background-color: var(--u-dorado);
    color: #000;
    font-weight: bold;
    padding: 5px 10px;
    text-transform: uppercase;
    font-size: 0.7rem;
    display: inline-block;
    margin-bottom: 10px;
}

.info-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    height: 100%;
}

.card-header-academic {
    background-color: var(--u-verde-profundo);
    color: white;
    padding: 15px;
    font-weight: 700;
    border-bottom: 3px solid var(--u-dorado);
}

.day-card {
    background: #f9f9f9;
    border-left: 4px solid var(--u-verde-medio);
    padding: 15px;
    height: 100%;
}

.day-card.friday-card {
    background: #fff8e1;
    border-left-color: var(--u-dorado);
}

.address-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.95);
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid var(--u-verde-profundo);
    max-width: 250px;
}

/* ==========================================================================
   8. FOOTER
   ========================================================================== */
footer {
    background-color: #0d2b21;
    color: white;
    padding: 70px 0 30px 0;
    border-top: 5px solid var(--u-dorado);
    width: 100% !important;
    margin: 0 !important;
    display: block;
    position: relative;
}

footer h5 {
    color: var(--u-dorado);
    font-family: 'Merriweather', serif;
    font-weight: 700;
    margin-bottom: 25px;
    font-size: 1.1rem;
}

footer p,
footer li {
    font-size: 0.9rem;
    color: #ccc;
    line-height: 1.8;
}

footer a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

footer a:hover {
    color: var(--u-dorado);
    text-decoration: none;
    padding-left: 5px;
}

.footer-logo-text {
    font-size: 1.5rem;
    font-weight: 900;
    color: white;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: block;
    font-family: 'Merriweather', serif;
}

.social-icons a {
    font-size: 1.2rem;
    margin-right: 15px;
    color: white;
}

.social-icons a:hover {
    color: var(--u-dorado);
}

/* ==========================================================================
   9. MEDIA QUERIES (AJUSTES PARA MÓVIL - 991px o menos)
   ========================================================================== */
@media (max-width: 991px) {
    .main-header {
        padding: 10px 0;
    }

    .main-header .row {
        flex-wrap: nowrap;
    }

    .main-header img {
        height: 50px !important;
        margin-right: 10px !important;
    }

    .brand-text h1 {
        font-size: 1.1rem !important;
        margin-bottom: 2px;
        line-height: 1.2;
    }

    .brand-text span {
        font-size: 0.65rem !important;
        display: block;
        line-height: 1.1;
    }

    .navbar-toggler {
        border: none !important;
        outline: none !important;
        box-shadow: none !important;
        padding: 5px;
        margin-left: auto;
    }

    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255, 255, 255, 1)' stroke-width='3' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E") !important;
        filter: drop-shadow(0px 2px 2px rgba(0, 0, 0, 0.3));
    }

    .hero-slide {
        height: 500px !important;
    }

    .hero-news-card {
        width: auto !important;
        max-width: none !important;
        left: 15px !important;
        right: 15px !important;
        bottom: 60px !important;
        padding: 25px 20px !important;
        background-color: rgba(255, 255, 255, 0.95);
        border-radius: 15px !important;
        border-top: none !important;
        border-left: 5px solid var(--u-dorado) !important;
    }

    .news-headline {
        font-size: 1.3rem !important;
        margin-bottom: 10px !important;
    }

    .hero-news-card .btn-academic {
        border-radius: 50px !important;
        width: 100%;
        text-align: center;
        margin-top: 15px;
        padding: 12px 0;
        background: linear-gradient(135deg, var(--u-verde-profundo), var(--u-verde-medio)) !important;
        border: none !important;
        box-shadow: 0 4px 15px rgba(27, 77, 62, 0.4);
    }

    .director-img-wrapper {
        min-height: 300px;
    }

    .address-overlay {
        position: relative;
        bottom: auto;
        left: auto;
        max-width: 100%;
        margin-top: 10px;
    }

    footer {
        text-align: center;
    }

    footer h5 {
        margin-top: 30px;
    }
}



/* =========================================
       BOTÓN WHATSAPP FLOTANTE
       ========================================= */
    .whatsapp-float {
        position: fixed;
        width: 60px;
        height: 60px;
        bottom: 30px;
        right: 30px;
        background-color: #25d366; /* Verde oficial WhatsApp */
        color: #FFF;
        border-radius: 50%;
        text-align: center;
        font-size: 30px;
        box-shadow: 2px 2px 15px rgba(0,0,0,0.2);
        z-index: 1000; /* Para que esté siempre encima de todo */
        display: flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        transition: all 0.3s ease;
        
        /* Animación de entrada */
        animation: whatsapp-pulse 2s infinite;
    }

    .whatsapp-float:hover {
        background-color: #128c7e; /* Verde más oscuro al pasar el mouse */
        color: white;
        transform: scale(1.1); /* Crece un poquito */
    }

    /* Ajuste para móvil: un poco más pequeño para no tapar contenido */
    @media (max-width: 991px) {
        .whatsapp-float {
            width: 50px;
            height: 50px;
            bottom: 20px;
            right: 20px;
            font-size: 25px;
        }
    }

    /* Animación de Pulso Suave */
    @keyframes whatsapp-pulse {
        0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
        70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
        100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
    }



    /* =========================================
       SECCIÓN IMPACTO (CIFRAS)
       ========================================= */
    .impact-section {
        background-color: var(--u-verde-profundo); /* Fondo verde institucional */
        padding: 80px 0;
        background-image: url('https://www.transparenttextures.com/patterns/cubes.png'); /* Textura sutil opcional */
        border-bottom: 5px solid var(--u-dorado);
    }

    .stat-box {
        background: rgba(255, 255, 255, 0.05); /* Fondo semi-transparente */
        padding: 20px;
        border-radius: 8px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        transition: transform 0.3s;
    }

    .stat-box:hover {
        transform: translateY(-5px);
        background: rgba(255, 255, 255, 0.1);
        border-color: var(--u-dorado);
    }

    .stat-icon {
        font-size: 2.5rem;
        color: var(--u-dorado);
        margin-bottom: 15px;
    }

    .stat-number {
        color: white;
        font-family: 'Merriweather', serif;
        font-weight: 900;
        font-size: 2.5rem;
        margin-bottom: 5px;
    }

    .stat-label {
        color: #ccc;
        font-size: 0.85rem;
        text-transform: uppercase;
        font-weight: 700;
        margin-bottom: 0;
        letter-spacing: 1px;
    }


/* =========================================
   SECCIÓN NOTICIA DESTACADA (RESPONSIVE)
   ========================================= */

/* 1. Contenedor de la imagen */
.featured-news .col-lg-6.p-0 {
    overflow: hidden; /* Para que el zoom no se salga de los bordes */
    height: 100%; /* Ocupar todo el alto disponible en escritorio */
}

/* 2. La imagen en sí */
.featured-news img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* CLAVE: Recorta la imagen para llenar el espacio sin estirarla/deformarla */
    object-position: center 20%; /* Enfoca un poco más arriba del centro (las caras) */
    transition: transform 0.6s ease; /* Animación suave */
    display: block; /* Elimina espacios blancos extraños abajo */
}

/* 3. Efecto Zoom al pasar el mouse */
.featured-news:hover img {
    transform: scale(1.05);
}

/* =========================================
   MEDIA QUERIES (ADAPTACIÓN A PANTALLAS)
   ========================================= */

/* A. TABLETS Y MÓVILES (Pantallas menores a 992px) */
@media (max-width: 991px) {
    /* En móvil/tablet, la imagen va arriba y necesita una altura fija tipo "banner" */
    .featured-news img {
        height: 300px !important; /* Altura fija para que se vea bien */
        min-height: 300px;
    }
    
    /* Ajuste para que el contenedor de la imagen ocupe todo el ancho */
    .featured-news .col-lg-6 {
        width: 100%;
    }
}

/* B. MÓVILES PEQUEÑOS (Pantallas menores a 576px) */
@media (max-width: 576px) {
    .featured-news img {
        height: 220px !important; /* Un poco más bajito en celulares pequeños */
        min-height: 220px;
    }
    
    /* Reducir un poco el padding del texto en celulares */
    .featured-news .col-lg-6.p-4.p-lg-5 {
        padding: 1.5rem !important;
    }
}

/* =========================================
   MEDIA QUERIES (ADAPTACIÓN A PANTALLAS)
   ========================================= */

/* A. TABLETS Y MÓVILES (Pantallas menores a 992px) */
@media (max-width: 991px) {
    
    /* 1. Ajuste de la imagen */
    .featured-news img {
        height: 300px !important; /* Altura fija para banner */
        min-height: 300px;
    }
    
    .featured-news .col-lg-6 {
        width: 100%;
    }

    /* 2. SOLUCIÓN: SEPARAR DE LOS BORDES */
    /* Esto le da márgenes a los lados a la tarjeta blanca */
    .featured-news .row.shadow-sm {
        margin-left: 15px !important;
        margin-right: 15px !important;
        width: auto !important; /* Asegura que no se salga de la pantalla */
        border-radius: 15px !important; /* Bordes un poco más redondeados */
    }
}

/* B. MÓVILES PEQUEÑOS */
@media (max-width: 576px) {
    .featured-news img {
        height: 220px !important;
        min-height: 220px;
    }
    
    .featured-news .col-lg-6.p-4.p-lg-5 {
        padding: 1.5rem !important;
    }
}



 /* Estilos específicos para la sección de Matrículas */
        .process-card {
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            border-radius: 15px;
            background: white;
        }
        .process-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
        }
        .step-icon {
            width: 70px;
            height: 70px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.8rem;
        }
        /* Estilos Guía PAES */
        .step-badge {
            width: 30px; height: 30px; border-radius: 50%; display: inline-flex;
            align-items: center; justify-content: center; color: white; font-size: 0.9rem;
        }
        .custom-accordion .accordion-button:not(.collapsed) {
            background-color: #f8f9fa; color: #0d2b21;
        }
        .custom-accordion .accordion-button:focus { box-shadow: none; }
        .date-box { box-shadow: 0 4px 6px rgba(0,0,0,0.1); line-height: 1.1; }





        /* Estilo Profesional del Contador */
.visit-counter {
    background: rgba(255, 255, 255, 0.1);
    padding: 3px 12px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.75rem;
    color: #fff;
    display: inline-flex;
    align-items: center;
    margin-left: 15px;
    vertical-align: middle;
}
.visit-counter i {
    color: #ffc107;
    margin-right: 6px;
}
.counter-label {
    text-transform: uppercase;
    font-weight: 400;
    margin-right: 5px;
    letter-spacing: 0.5px;
    opacity: 0.8;
}
.counter-number {
    font-weight: 700;
    color: #ffc107;
}


/* Estilo para el contador en el Menú Móvil */
.mobile-counter {
    background: rgba(255, 193, 7, 0.1); /* Fondo amarillo suave */
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.mobile-counter i { color: #ffc107; font-size: 1.2rem; }
.mobile-counter span { color: white; font-size: 0.9rem; font-weight: bold; }
.mobile-counter .num { color: #ffc107; font-size: 1.1rem; }






    :root {
        --primary-green: #2d572c; /* Verde Oscuro Institucional */
        --accent-green: #8db600;  /* Verde Lima de Acento */
        --light-gray: #f8f9fa;
        --text-muted: #6c757d;
    }

    .info-section {
        padding: 80px 0;
        background-color: #ffffff;
        font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    }

    /* Tarjetas */
    .info-card {
        border: none;
        border-radius: 15px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.08);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        background: #fff;
        height: 100%;
    }

    .info-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 35px rgba(0,0,0,0.12);
    }

    /* Cabeceras de Tarjeta */
    .card-header-academic {
        background: var(--primary-green);
        color: white;
        padding: 1.2rem;
        font-weight: 600;
        letter-spacing: 1px;
        display: flex;
        align-items: center;
        border-bottom: 4px solid var(--accent-green);
    }

    .divider-green {
        width: 70px;
        height: 4px;
        background: var(--accent-green);
        margin: 15px auto;
        border-radius: 2px;
    }

    /* Bloques de Horarios */
    .day-card {
        background: var(--light-gray);
        border-radius: 10px;
        padding: 18px;
        border-left: 4px solid var(--accent-green);
    }

    .badge-time {
        padding: 4px 12px;
        border-radius: 20px;
        font-size: 0.8rem;
        font-weight: 700;
        text-transform: uppercase;
    }

    .badge-time.entry { background: #e8f5e9; color: #2d572c; }
    .badge-time.exit { background: #fff3e0; color: #e67e22; }

    /* Contacto e Identidad */
    .contact-item {
        display: flex;
        align-items: center;
        margin-bottom: 1.2rem;
        padding: 5px;
    }

    .contact-icon {
        width: 40px;
        height: 40px;
        background: var(--primary-green);
        color: white;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-right: 15px;
        flex-shrink: 0;
        font-size: 1rem;
    }

    .tag-institucional {
        background: #f1f8e9;
        color: var(--primary-green);
        padding: 3px 10px;
        border-radius: 5px;
        font-weight: 800;
        font-size: 0.75rem;
        border: 1px solid #dcedc8;
    }

    /* Enlaces y Botones */
    .doc-link {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 18px;
        background: #ffffff;
        border: 1px solid #eee;
        border-radius: 10px;
        text-decoration: none;
        color: var(--primary-green);
        font-weight: 600;
        margin-bottom: 10px;
        transition: 0.3s;
    }

    .doc-link:hover {
        background: var(--primary-green);
        color: white !important;
        border-color: var(--primary-green);
    }

    .info-list-extra {
        list-style: none;
        padding: 0;
        margin: 15px 0 0 0;
    }

    .info-list-extra li {
        padding: 8px 0;
        border-top: 1px dashed #ddd;
        font-size: 0.85rem;
        display: flex;
        justify-content: space-between;
        color: #555;
    }

    .map-container {
        flex-grow: 1;
        min-height: 350px;
        line-height: 0;
    }

    /* Ajustes Responsivos */
    @media (max-width: 991px) {
        .info-section { padding: 60px 0; }
        .map-container { min-height: 300px; }
    }



    







