/* Variables globales */
:root {
    --primary-color: #1e4066;
    /* Variante corporativa y oscura del azul del logo */
    --secondary-color: #5ce1e6;
    /* Cian brillante del logo */
    --accent-blue: #64a0df;
    /* Azul claro del logo */
    --text-color: #2c3e50;
    --text-light: #64748b;
    --bg-color: #f4f6f9;
    --white: #ffffff;
    --border-color: #e2e8f0;
    --hover-bg: #f0f4f8;

    --font-family: 'Inter', sans-serif;
    --transition: all 0.3s ease;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

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

body {
    font-family: var(--font-family);
    background-color: var(--white);
    /* Fondo blanco por fuera del menú flotante */
    color: var(--text-color);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}



/* ================== MAIN HEADER ================== */
.main-header {
    background-color: rgba(255, 255, 255, 0.85);
    /* Cristal translúcido */
    backdrop-filter: blur(8px);
    /* Desenfoque / Blur bajo para diferenciación */
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    /* Glow / sombra suave */
    border: 1px solid rgba(255, 255, 255, 0.4);
    /* Borde sutil del pill */
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    width: 90%;
    max-width: 1400px;
    /* Alineado con el nuevo ancho del hero */
    margin: 0;
    border-radius: 50px;
}

.header-container {
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 75px;
}

.logo img {
    height: 50px;
    width: auto;
}

/* ================== DESKTOP NAVIGATION ================== */
.desktop-nav {
    display: none;
    height: 100%;
}

@media (min-width: 1024px) {
    .desktop-nav {
        display: block;
        flex: 1;
        display: flex;
        justify-content: center;
    }
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    height: 100%;
}

.has-dropdown {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 1rem;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-color);
    border-radius: 6px;
    transition: var(--transition);
    cursor: pointer;
}

.nav-link:hover {
    background-color: var(--hover-bg);
    color: var(--primary-color);
}

.dropdown-icon {
    width: 16px;
    height: 16px;
    transition: var(--transition);
}

.has-dropdown:hover .dropdown-icon {
    transform: rotate(180deg);
}

/* Dropdown Menu Desktop */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    min-width: 280px;
    box-shadow: var(--shadow-md);
    border-radius: 8px;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    color: var(--text-color);
    transition: var(--transition);
}

.dropdown-menu a i,
.dropdown-menu a svg {
    width: 18px;
    height: 18px;
    color: var(--secondary-color);
}

.dropdown-menu a:hover {
    background-color: var(--hover-bg);
    color: var(--primary-color);
}

/* ================== BUTTONS ================== */
.btn-inscribete {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    font-weight: 700;
    padding: 0.6rem 1.5rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.btn-inscribete:hover {
    background-color: var(--accent-blue);
    transform: translateY(-2px);
    color: var(--white);
}

.desktop-only {
    display: none !important;
    /* Forzar ocultación en pantallas pequeñas */
}

@media (min-width: 1024px) {
    .desktop-only {
        display: inline-flex !important;
    }
}

.btn-block {
    display: flex;
    justify-content: center;
    width: 100%;
}

/* ================== MOBILE MENU ================== */
.mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-btn i {
    width: 24px;
    height: 24px;
}

@media (min-width: 1024px) {
    .mobile-menu-btn {
        display: none;
    }
}

.mobile-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.mobile-sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-sidebar {
    position: fixed;
    top: 8px;
    right: -320px;
    /* Oculto fuera de pantalla */
    width: 300px;
    height: calc(100vh - 16px);
    /* Altura que deja 8px libres arriba y abajo */
    background-color: rgba(255, 255, 255, 0.95);
    /* Cristal traslúcido elegante */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 999;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    /* Sombra suave flotante */
    transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    /* Transición suave moderna */
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    /* Bordes redondeados sutiles */
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.mobile-sidebar.active {
    right: 8px;
    /* Posicionamiento flotando a 8px del borde derecho */
}

.mobile-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.close-mobile-menu {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-color);
}

.mobile-sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 0;
}

.mobile-nav-list {
    display: flex;
    flex-direction: column;
}

.mobile-dropdown-toggle {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    border-bottom: 1px solid var(--border-color);
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-color);
    font-family: inherit;
    cursor: pointer;
}

.mobile-dropdown-toggle i {
    width: 18px;
    height: 18px;
    transition: var(--transition);
}

.mobile-dropdown-toggle.active i {
    transform: rotate(180deg);
}

.mobile-dropdown-menu {
    display: none;
    background-color: var(--hover-bg);
}

.mobile-dropdown-menu.active {
    display: block;
}

.mobile-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem 0.75rem 2.5rem;
    font-size: 0.95rem;
    color: var(--text-color);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.mobile-dropdown-menu a i,
.mobile-dropdown-menu a svg {
    width: 18px;
    height: 18px;
    color: var(--secondary-color);
}

.mobile-sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.mobile-social {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.mobile-social a {
    color: var(--text-color);
    background-color: var(--hover-bg);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.mobile-social a:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Ocultar topbar en moviles muy pequeños si se desea, aunque la imagen lo muestra. 
Ajustaremos para que se vea bien en móviles */
@media (max-width: 768px) {
    .top-bar {
        display: none;
    }
}

/* ================== FOOTER ================== */
.main-footer {
    background-color: var(--primary-color);
    color: #e2e8f0;
    padding-top: 4rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1.2fr;
    gap: 3rem;
    padding-bottom: 3rem;
}

.footer-col-about {
    padding-right: 1rem;
}

.footer-logo img {
    height: 60px;
    margin-bottom: 1rem;
}

.footer-desc {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: #cbd5e1;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.footer-social a {
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.footer-social a:hover {
    background-color: var(--secondary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.footer-social a i,
.footer-social a svg {
    width: 16px;
    height: 16px;
}

.footer-title {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links a {
    font-size: 0.9rem;
    color: #cbd5e1;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-link-all {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 1rem;
    transition: var(--transition);
}

.footer-link-all i {
    width: 16px;
    height: 16px;
}

.footer-link-all:hover {
    gap: 0.8rem;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    font-size: 0.9rem;
    color: #cbd5e1;
}

.contact-icon {
    background-color: rgba(255, 255, 255, 0.08);
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--secondary-color);
}

.contact-icon i,
.contact-icon svg {
    width: 14px;
    height: 14px;
}

.btn-inscribete-footer {
    background-color: var(--accent-blue);
    color: var(--white);
    font-weight: 600;
    padding: 0.7rem 1.5rem;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--transition);
    width: 100%;
}

.btn-inscribete-footer:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* ================== SUB FOOTER ================== */
.sub-footer {
    background-color: #122840;
    /* Tono aún más oscuro del primary para contraste */
    padding: 1.2rem 0;
    font-size: 0.85rem;
    color: #94a3b8;
}

.sub-footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.sub-footer-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.sub-footer-links li {
    position: relative;
}

.sub-footer-links li:not(:last-child)::after {
    content: '•';
    position: absolute;
    right: -12px;
    color: #475569;
}

.sub-footer-links a {
    transition: var(--transition);
}

.sub-footer-links a:hover {
    color: var(--white);
}

/* Responsivo para Footer */
@media (max-width: 1024px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .footer-col-about {
        padding-right: 0;
    }

    .sub-footer-container {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .sub-footer-links {
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* ================== HERO SECTION ================== */
.hero-section {
    position: relative;
    background-color: var(--primary-color); /* Fallback de color institucional sólido */
    background-image: linear-gradient(to right, rgba(30, 64, 102, 0.95) 45%, rgba(30, 64, 102, 0.5) 75%, rgba(30, 64, 102, 0.25) 100%), url('../assets/images/educacion.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* Altura estable basada en padding simétrico (igual que Conocenos) */
    /* 215px arriba (95px cabecera + 120px espacio libre) y 120px abajo para simetría vertical perfecta */
    padding: 215px 0 120px 0;
    overflow: hidden;
}

.hero-container {
    max-width: 1600px; /* Incrementado para que la frase se note más extendida */
    margin: 0 auto;
    padding: 0 1.5rem 0 1rem; /* Desplazado ligeramente más a la izquierda */
    display: grid;
    grid-template-columns: 1.4fr 0.6fr; /* Más espacio a la izquierda para extender la frase */
    align-items: center;
    position: relative;
    z-index: 1;
    gap: 4rem;
}

.hero-content {
    position: relative;
    padding-right: 2rem;
}

.hero-subtitle {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 1.5rem;
    position: relative;
    letter-spacing: 1.5px; /* Más espacio entre letras */
}

.hero-description {
    font-size: 1.1rem;
    color: #e2e8f0;
    margin-bottom: 2.5rem;
    max-width: 90%;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.btn-hero {
    display: inline-flex;
    font-weight: 700;
    padding: 1rem 2.5rem;
    border-radius: 8px;
    font-size: 1.1rem;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-hero.btn-primary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    /* Removido el sombreado (flour) por solicitud del usuario */
    box-shadow: none;
}

/* Efecto de Cursor para la Máquina de Escribir */
.typewriter-cursor {
    color: var(--secondary-color);
    font-weight: 300;
    margin-left: 4px;
    animation: typewriter-blink 0.75s step-end infinite;
}

@keyframes typewriter-blink {
    from, to { color: transparent }
    50% { color: var(--secondary-color) }
}

.btn-hero.btn-primary:hover {
    background-color: transparent;
    border-color: var(--secondary-color);
    color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: none;
}

.btn-hero.btn-outline-white {
    background-color: transparent;
    border-color: var(--white);
    color: var(--white);
}

.btn-hero.btn-outline-white:hover {
    background-color: var(--white);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px -10px rgba(255, 255, 255, 0.3);
}

/* Responsivo Hero */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }

    .hero-container {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        background-image: linear-gradient(to bottom, rgba(30, 64, 102, 0.95) 0%, rgba(30, 64, 102, 0.85) 100%), url('../assets/images/educacion.jpg');
        padding-top: 140px;
        padding-bottom: 60px;
        height: auto;
        min-height: auto;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        padding-right: 0;
    }

    .hero-description {
        margin: 0 auto 2.5rem auto;
    }

    .hero-buttons {
        justify-content: center;
    }
}


/* ================== BENEFITS RIBBON ================== */
.benefits-ribbon-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 10;
}

.benefits-ribbon {
    margin-top: -38px; /* Ajustado al medio de las 2 secciones (50% sobre el Hero) */
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columnas con separación pareja (between) */
    gap: 1.5rem;
}

.benefit-card {
    background-color: var(--white);
    border-radius: 5px; /* Borde redondo de 5px exacto */
    padding: 1rem 1.25rem; /* Padding esbelto y fino */
    box-shadow: 0 12px 28px rgba(30, 64, 102, 0.04); /* Sombra flotante más fina */
    border: 1px solid rgba(92, 225, 230, 0.15); /* Borde sutil individual */
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
}

.benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 35px rgba(30, 64, 102, 0.08);
    border-color: var(--secondary-color);
}

.benefit-icon-wrapper {
    background-color: rgba(92, 225, 230, 0.08);
    color: var(--primary-color);
    padding: 0.65rem; /* Icon wrapper más fino */
    border-radius: 8px; /* Radio adaptado al tamaño fino */
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(92, 225, 230, 0.2);
    flex-shrink: 0;
    transition: var(--transition);
}

.benefit-icon-wrapper i,
.benefit-icon-wrapper svg {
    width: 20px; /* Icono más compacto */
    height: 20px;
    color: var(--primary-color);
}

.benefit-card:hover .benefit-icon-wrapper {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.benefit-info h3 {
    font-size: 0.95rem; /* Texto de título más esbelto */
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.15rem;
    line-height: 1.2;
}

.benefit-info p {
    font-size: 0.78rem; /* Descripción más compacta */
    color: var(--text-light);
    line-height: 1.35;
    margin: 0;
}

/* Responsivo Ribbon */
@media (max-width: 1024px) {
    .benefits-ribbon {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
        margin-top: -25px; /* Ajustado al medio de las 2 secciones en tablets */
    }
    
    .benefit-card {
        padding: 1.5rem 1.25rem;
    }
}

@media (max-width: 600px) {
    .benefits-ribbon {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* ================== CAREERS SECTION ================== */
.careers-section {
    background-color: var(--white);
    padding: 2rem 0 3rem 0; /* Reducido a 3rem para evitar mucho espacio inferior */
    overflow: hidden;
}

.careers-outer-container {
    max-width: 1600px; /* Límite de seguridad para pantallas gigantes (4K / UltraWide) */
    width: 100%;
    padding: 0 10px; /* Exactos 10px de margen en laptops y monitores estándar */
    margin: 0 auto;
}

.careers-slider-wrapper {
    background-color: #f8fafc; /* Gris azulado muy suave, idéntico a la captura */
    border-radius: 40px; /* Bordes súper redondeados y fluidos */
    padding: 3.5rem;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.01), 0 20px 40px rgba(0,0,0,0.02);
    border: 1px solid rgba(30, 64, 102, 0.03);
}

.slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}

/* Píldora de Categorías (Izquierda) */
.slider-tabs {
    background-color: var(--white);
    padding: 0.4rem;
    border-radius: 5px; /* Bordes de 5px (ni tan redondos ni tan cuadrados) */
    display: flex;
    gap: 0.25rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.slider-tab {
    background: none;
    border: none;
    padding: 0.6rem 1.25rem;
    border-radius: 5px; /* Bordes de 5px */
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
}

.slider-tab:hover {
    color: var(--primary-color);
}

.slider-tab.active {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Indicador de Carreras (Derecha) */
.slider-indicator {
    display: flex;
    align-items: center;
    background-color: var(--white);
    padding: 0.6rem 1.25rem; /* Ajustado para hacer juego con las pestañas */
    border-radius: 5px; /* Bordes de 5px */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.indicator-text {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--primary-color);
}

/* Contenedor del Slider */
.careers-slider-container {
    overflow: hidden;
    position: relative;
    padding: 0.5rem 0.25rem;
}

.careers-slider-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    gap: 2rem;
}

/* Tarjeta del Slide */
.career-slide-card {
    flex: 0 0 calc((100% - 6rem) / 4); /* 4 columnas en pantallas grandes */
    background-color: var(--white);
    border-radius: 12px; /* Esquinas de 12px (ni tan redondas ni tan cuadradas) */
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(30, 64, 102, 0.04);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.career-slide-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(30, 64, 102, 0.06);
    border-color: rgba(92, 225, 230, 0.25);
}

.career-image-box {
    position: relative;
    overflow: hidden;
    height: 180px; /* Altura optimizada para 4 columnas */
    background-color: #e2e8f0;
}

.career-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

.career-slide-card:hover .career-image-box img {
    transform: scale(1.04);
}

.career-category-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: rgba(30, 64, 102, 0.9);
    backdrop-filter: blur(4px);
    color: var(--secondary-color);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.35rem 0.8rem;
    border-radius: 5px; /* Bordes de 5px */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(92, 225, 230, 0.2);
}

.career-info-box {
    padding: 1.25rem 1.25rem 1.5rem 1.25rem; /* Padding esbelto */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.career-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.85rem;
    gap: 0.5rem;
}

.career-title-group {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.career-info-box h3 {
    font-size: 1.1rem; /* Adaptado a 4 columnas */
    font-weight: 800;
    color: var(--primary-color);
    margin: 0;
    line-height: 1.25;
}

.career-subtitle {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 600;
}

.career-fav-btn {
    background-color: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: #9ca3af;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
    flex-shrink: 0;
}

.career-fav-btn:hover {
    background-color: #fef2f2;
    color: #ef4444;
    border-color: #fca5a5;
    transform: scale(1.08);
}

.career-fav-btn.active {
    background-color: #fee2e2;
    color: #ef4444;
    border-color: #fca5a5;
}

.career-fav-btn svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.career-description {
    font-size: 0.8rem;
    color: var(--text-light);
    line-height: 1.45;
    margin: 0 0 1.25rem 0;
    flex-grow: 1;
}

.career-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(30, 64, 102, 0.06);
    padding-top: 1rem;
    margin-top: auto;
    gap: 0.5rem;
}

.career-specs {
    display: flex;
    gap: 0.75rem;
}

.spec-item {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.spec-value {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--primary-color);
}

.spec-label {
    font-size: 0.55rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.2px;
}

.career-action-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a365d 100%);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.45rem 0.9rem;
    border-radius: 50px;
    text-decoration: none;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(30, 64, 102, 0.1);
    white-space: nowrap;
}

.career-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(30, 64, 102, 0.2);
    background: linear-gradient(135deg, #1a365d 0%, var(--primary-color) 100%);
}

/* Envoltorio Exterior para Flechas Flotantes Laterales */
.careers-slider-container-outer {
    position: relative;
    width: 100%;
}

/* Pie de Página del Slider (Ocultado ya que las flechas flotan a los lados) */
.slider-footer {
    display: none !important;
}

.slider-arrow-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--white);
    border: 1px solid rgba(30, 64, 102, 0.12);
    color: var(--primary-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
    z-index: 10;
    padding: 0;
}

.slider-arrow-btn:hover {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    box-shadow: 0 8px 24px rgba(30, 64, 102, 0.22);
    transform: translateY(-50%) scale(1.1);
}

.slider-arrow-btn.prev-btn {
    left: -25px; /* Flota exactamente fuera del borde izquierdo */
}

.slider-arrow-btn.next-btn {
    right: -25px; /* Flota exactamente fuera del borde derecho */
}

.slider-arrow-btn:disabled {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.slider-arrow-btn svg,
.slider-arrow-btn i {
    width: 24px;
    height: 24px;
    stroke-width: 2.5px;
}

/* Responsividad Slider */
@media (max-width: 1400px) and (min-width: 1101px) {
    .career-slide-card {
        flex: 0 0 calc((100% - 4rem) / 3); /* 3 columnas en pantallas medianas */
    }
    .career-image-box {
        height: 200px;
    }
    .slider-arrow-btn.prev-btn {
        left: -15px; /* Ajuste sutil en pantallas algo más estrechas */
    }
    .slider-arrow-btn.next-btn {
        right: -15px;
    }
}

@media (max-width: 1100px) {
    .career-slide-card {
        flex: 0 0 calc((100% - 2rem) / 2); /* 2 columnas */
    }
    .career-image-box {
        height: 210px;
    }
    .slider-arrow-btn {
        display: none !important; /* Desactivar flechas por completo en tablets y móviles */
    }
}

@media (max-width: 768px) {
    .careers-slider-wrapper {
        padding: 2rem 1.5rem;
        border-radius: 24px;
    }
    
    .slider-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        margin-bottom: 2rem;
    }
    
    .slider-tabs {
        width: 100%;
        overflow-x: auto;
        white-space: nowrap;
        padding: 0.4rem;
        scrollbar-width: none; /* Ocultar scroll en Firefox */
    }
    
    .slider-tabs::-webkit-scrollbar {
        display: none; /* Ocultar scroll en Chrome/Safari */
    }
    
    .slider-tab {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
    
    .slider-indicator {
        align-self: flex-end;
    }
    
    .career-slide-card {
        flex: 0 0 100%; /* 1 columna */
    }
    
    .career-image-box {
        height: 200px;
    }
    
    .career-info-box {
        padding: 1.5rem;
    }
}

/* ================== PRESENTATION SECTION ================== */
.presentation-section {
    background-color: var(--white);
    padding: 4rem 0 2rem 0; /* Reducido para compactar el espaciado vertical */
    position: relative;
    overflow: hidden;
}

.presentation-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 6rem;
    align-items: center;
}

/* Columna Izquierda: Imágenes Solapadas */
.presentation-visuals {
    position: relative;
    height: 480px;
}

.presentation-img-main {
    width: 65%;
    height: 380px;
    object-fit: cover;
    border-radius: 16px;
    position: absolute;
    top: 0;
    left: 0;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
}

.presentation-img-accent {
    width: 55%;
    height: 260px;
    object-fit: cover;
    border-radius: 16px;
    position: absolute;
    bottom: 0;
    right: 0;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.1);
    border: 6px solid var(--white);
    z-index: 2;
}


/* Columna Derecha: Contenido */
.presentation-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.presentation-subtitle {
    display: inline-block;
    color: var(--secondary-color);
    text-transform: uppercase;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 2.5px;
    margin-bottom: 1rem;
}

.presentation-title {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1.3;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.presentation-text {
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 2rem;
    text-align: justify;
}

/* Año en estilo delineado gigante */
.presentation-year {
    font-size: 5rem;
    font-weight: 800;
    /* Delineado moderno */
    -webkit-text-stroke: 1.5px var(--primary-color);
    color: transparent;
    opacity: 0.15;
    line-height: 1;
    margin-bottom: 2rem;
    letter-spacing: 2px;
    user-select: none;
}

.presentation-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color); /* Azul corporativo del logo */
    font-weight: 700;
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    border-bottom: 2px solid transparent;
    padding-bottom: 4px;
    align-self: flex-start;
}

.presentation-link i,
.presentation-link svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.presentation-link:hover {
    color: var(--accent-blue); /* Azul claro del logo */
    border-color: var(--accent-blue);
}

.presentation-link:hover i,
.presentation-link:hover svg {
    transform: translate(3px, -3px);
}

/* Responsivo Presentación */
@media (max-width: 1024px) {
    .presentation-container {
        gap: 4rem;
        grid-template-columns: 1fr 1fr;
    }
    
    .presentation-title {
        font-size: 2rem;
    }
    
    .presentation-year {
        font-size: 4rem;
    }
}

@media (max-width: 768px) {
    .presentation-section {
        padding: 5rem 0;
    }
    
    .presentation-container {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    .presentation-visuals {
        height: 380px;
        max-width: 500px;
        margin: 0 auto;
        width: 100%;
    }
    
    .presentation-img-main {
        height: 300px;
        width: 70%;
    }
    
    .presentation-img-accent {
        height: 200px;
        width: 60%;
    }
    
    .badge-container {
        width: 100px;
        height: 100px;
        left: 55%;
    }
    
    .badge-arrow i,
    .badge-arrow svg {
        width: 20px;
        height: 20px;
    }
    
    .presentation-content {
        align-items: center;
        text-align: center;
    }
    
    .presentation-text {
        text-align: center;
    }
    
    .presentation-link {
        align-self: center;
    }
}

/* ================= SECCIÓN DE AUTORIDADES ================= */
.authorities-section {
    padding: 2rem 10px 3rem 10px; /* Reducido a 2rem para compactar espaciado superior */
    background-color: var(--white);
    max-width: 1600px;
    margin: 0 auto;
}

.authorities-title-container {
    text-align: center;
    margin-bottom: 3.5rem;
    padding: 0 1rem;
}

.authorities-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--primary-color); /* Azul corporativo del logo */
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.authorities-subtitle {
    font-size: 1rem;
    color: #64748b;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.authorities-slider-wrapper {
    background-color: transparent; /* Removido fondo gris por solicitud del usuario */
    border-radius: 0;
    padding: 0;
    border: none;
}

.authorities-slider-container-outer {
    position: relative;
    width: 100%;
}

.authorities-slider-container {
    overflow: hidden;
    position: relative;
    padding: 0.5rem 0.25rem;
}

.authorities-slider-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    gap: 2rem;
}

/* Tarjeta de Autoridad */
.authority-slide-card {
    flex: 0 0 calc((100% - 6rem) / 4); /* 4 columnas exactas */
    background-color: var(--white);
    border-radius: 16px;
    padding: 2.5rem 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(30, 64, 102, 0.04);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.authority-slide-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(30, 64, 102, 0.06);
    border-color: rgba(30, 64, 102, 0.15);
}

.authority-image-box {
    width: 110px;
    height: 110px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #fff;
    padding: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    border: 3px solid rgba(30, 64, 102, 0.08);
    transition: var(--transition);
}

.authority-slide-card:hover .authority-image-box {
    transform: scale(1.05);
    border-color: var(--secondary-color); /* Turquesa del logo */
}

.authority-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.authority-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.4;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.1px;
    min-height: 2.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.authority-divider {
    color: var(--primary-color); /* Azul corporativo para combinar con el logo */
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.authority-slide-card:hover .authority-divider {
    transform: scale(1.15);
}

.authority-divider svg,
.authority-divider i {
    width: 22px;
    height: 22px;
    stroke-width: 2.2px;
}

.authority-role {
    font-size: 0.72rem;
    font-weight: 600;
    color: #64748b;
    line-height: 1.5;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    min-height: 2.6rem;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

/* Flechas Desnudas (Bare Arrows - Sin Círculos) */
.authorities-arrow-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    outline: none;
    color: var(--primary-color); /* Azul corporativo del logo */
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.authorities-arrow-btn:hover {
    color: var(--secondary-color); /* Turquesa del logo */
    transform: translateY(-50%) scale(1.2);
}

.authorities-arrow-btn.prev-btn {
    left: -42px; /* Flotan por fuera de forma limpia sin círculos */
}

.authorities-arrow-btn.next-btn {
    right: -42px;
}

.authorities-arrow-btn:disabled {
    opacity: 0.15;
    cursor: not-allowed;
    pointer-events: none;
}

.authorities-arrow-btn svg,
.authorities-arrow-btn i {
    width: 38px;
    height: 38px;
    stroke-width: 2.5px;
}

/* Responsividad de Autoridades */
@media (max-width: 1400px) and (min-width: 1101px) {
    .authority-slide-card {
        flex: 0 0 calc((100% - 4rem) / 3); /* 3 columnas */
    }
    .authorities-arrow-btn.prev-btn {
        left: -32px;
    }
    .authorities-arrow-btn.next-btn {
        right: -32px;
    }
}

@media (max-width: 1100px) {
    .authority-slide-card {
        flex: 0 0 calc((100% - 2rem) / 2); /* 2 columnas */
    }
    .authorities-arrow-btn {
        display: none !important; /* Desactivado en móvil/tablet para pasar táctilmente */
    }
}

@media (max-width: 768px) {
    .authorities-section {
        padding: 2rem 10px 2rem 10px;
    }
    .authorities-slider-wrapper {
        padding: 0;
        border-radius: 0;
    }
    .authority-slide-card {
        flex: 0 0 100%; /* 1 columna */
        padding: 2rem 1.2rem;
    }
}

/* ================= SECCIÓN DE ESTADÍSTICAS ================= */
.stats-section {
    position: relative;
    background-image: linear-gradient(135deg, rgba(15, 118, 110, 0.92) 0%, rgba(6, 182, 212, 0.85) 100%), url('../assets/images/educacion.jpg'); /* Imagen de fondo con tinte turquesa */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll; /* Mantener la imagen estática con la sección */
    padding: 2.25rem 0; /* Sumamente compacto para que parezca una cinta delgada */
    color: var(--white);
    text-align: center;
    overflow: hidden;
}

.stats-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 2;
}

.stats-section-title {
    font-size: 1.5rem; /* Título más fino y sutil estilo cinta */
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1.25rem; /* Reducido drásticamente para compactar verticalmente */
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.stats-grid {
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 2rem; /* Separación balanceada */
    max-width: 1400px;
    margin: 0 auto;
}

/* Semicápsula tipo espejo horizontal (Glassmorphism + Mirror shine) */
.stat-capsule {
    background: rgba(255, 255, 255, 0.22); /* Mayor opacidad para máxima legibilidad del contenido */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.38); /* Borde nítido para delimitar la cápsula */
    border-radius: 24px; /* Rectángulo redondeado suave según la imagen */
    padding: 1.15rem 3.5rem; /* Padding horizontal amplio para lograr la anchura de la imagen */
    text-align: center;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.45);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1 1 280px; /* Flexbox fluido para un ancho perfecto de cápsula */
    max-width: 340px; /* Ancho máximo para mantener la forma horizontal de la imagen */
}

/* Reflejo de espejo */
.stat-capsule::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.22), transparent);
    pointer-events: none;
}

.stat-capsule:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.28);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.stat-number {
    font-size: 2.85rem; /* Más grande y legible */
    font-weight: 800;
    color: var(--white);
    line-height: 1;
    margin-bottom: 0.25rem;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.25); /* Sombra nítida para resaltar contra el fondo */
    letter-spacing: -0.5px;
}

.stat-label {
    font-size: 0.85rem; /* Tamaño idóneo y perfectamente legible */
    font-weight: 700;
    color: #ffffff; /* Blanco puro para contraste máximo */
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.2;
    margin: 0;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);
}

/* Responsivo para Estadísticas */
@media (max-width: 1024px) {
    .stats-grid {
        gap: 1.5rem;
    }
    .stats-section-title {
        font-size: 1.35rem;
        margin-bottom: 1.25rem;
    }
    .stat-capsule {
        border-radius: 20px;
        padding: 1rem 2rem;
        flex: 1 1 240px;
    }
    .stat-number {
        font-size: 2.5rem;
    }
}

@media (max-width: 600px) {
    .stats-grid {
        gap: 1rem;
        max-width: 320px;
        margin: 0 auto;
    }
    .stats-section {
        padding: 1.75rem 0;
    }
    .stat-capsule {
        border-radius: 20px;
        padding: 0.85rem 1.5rem;
        flex: 1 1 100%;
    }
}

/* ================= SECCIÓN DE NOTICIAS Y COMUNICADOS ================= */
.news-section {
    padding: 5rem 0;
    background-color: #f8fafc; /* Color de fondo suave */
}

.news-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.news-main-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: #0f172a;
    text-align: center;
    margin-bottom: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.news-main-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--secondary-color); /* Turquesa del logo */
    border-radius: 2px;
}

/* Filtros y barra de búsqueda */
.news-filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    gap: 1.5rem;
    background: var(--white);
    padding: 1rem 1.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    border: 1px solid #f1f5f9;
}

.news-search-box {
    position: relative;
    flex: 1;
    max-width: 450px;
    display: flex;
    align-items: center;
}

.news-search-box .search-icon {
    position: absolute;
    left: 1rem;
    color: #64748b;
    width: 18px;
    height: 18px;
    pointer-events: none;
}

.news-search-box input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.95rem;
    color: #1e293b;
    background-color: #f8fafc;
    transition: all 0.3s ease;
}

.news-search-box input:focus {
    outline: none;
    border-color: var(--accent-blue); /* Azul del logo */
    background-color: var(--white);
    box-shadow: 0 0 0 4px rgba(100, 160, 223, 0.12); /* Sombra de azul del logo */
}

.clear-search-btn {
    position: absolute;
    right: 1rem;
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
}

.clear-search-btn:hover {
    color: #0f172a;
}

.news-filter-pills {
    display: flex;
    gap: 0.75rem;
}

.filter-pill {
    background: #f1f5f9;
    border: none;
    padding: 0.6rem 1.25rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-pill:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.filter-pill.active {
    background: var(--primary-color); /* Azul corporativo del logo */
    color: var(--white);
    box-shadow: 0 4px 12px rgba(30, 64, 102, 0.15);
}

/* Layout Wrapper */
.news-layout-wrapper {
    display: grid;
    grid-template-columns: 1fr 1px 1.25fr;
    gap: 3rem;
    align-items: stretch;
}

.news-vertical-divider {
    background-color: #e2e8f0;
    width: 100%;
    height: 100%;
}

.news-left-column {
    display: flex;
    flex-direction: column;
}

.news-right-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Tarjeta Destacada Izquierda (Featured Card) */
.news-featured-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    border: 1px solid #f1f5f9;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    opacity: 1;
    transform: scale(1);
}

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

.news-featured-image-box {
    position: relative;
    width: 100%;
    height: 320px;
    overflow: hidden;
}

.news-featured-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-featured-card:hover .news-featured-image-box img {
    transform: scale(1.05);
}

.news-badge {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    padding: 0.4rem 1rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: 0.75px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.badge-primary {
    background-color: var(--primary-color); /* Azul corporativo del logo */
}

.news-featured-content {
    padding: 2.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-featured-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.news-featured-desc {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.news-read-more-link {
    display: inline-block;
    color: var(--primary-color); /* Azul corporativo del logo */
    font-weight: 800;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: all 0.3s ease;
    align-self: flex-start;
    margin-bottom: 1rem;
}

.news-read-more-link:hover {
    color: var(--accent-blue); /* Azul claro del logo */
    letter-spacing: 1.5px;
}

.news-card-separator {
    height: 1px;
    background-color: #f1f5f9;
    width: 100%;
    margin: 1.5rem 0;
}

.news-featured-footer {
    display: flex;
    gap: 1.5rem;
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
}

.news-featured-footer span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.news-featured-footer i {
    width: 14px;
    height: 14px;
}

/* Tarjetas Horizontales Derechas */
.news-horizontal-card {
    background: var(--white);
    border-radius: 16px;
    padding: 1rem;
    display: flex;
    gap: 1.5rem;
    align-items: center;
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.01);
    transition: all 0.4s ease;
    opacity: 1;
    transform: scale(1);
}

.news-horizontal-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    border-color: #e2e8f0;
}

.news-horizontal-thumb {
    width: 110px;
    height: 110px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}

.news-horizontal-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-horizontal-card:hover .news-horizontal-thumb img {
    transform: scale(1.06);
}

.news-horizontal-body {
    flex: 1;
    min-width: 0;
}

.news-horizontal-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.3;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-horizontal-desc {
    font-size: 0.88rem;
    color: #475569;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-horizontal-action {
    flex-shrink: 0;
}

.news-btn-action {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: var(--primary-color); /* Azul corporativo del logo */
    border: 1.5px solid #e2e8f0;
    padding: 0.55rem 1.1rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.85rem;
    white-space: nowrap;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-btn-action:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(30, 64, 102, 0.15);
}

.news-btn-action i {
    width: 14px;
    height: 14px;
    transition: transform 0.3s ease;
}

.news-btn-action:hover i {
    transform: translateX(3px);
}

/* Clases de Filtrado con Animaciones Smooth */
.news-card-hidden {
    opacity: 0 !important;
    transform: scale(0.9) !important;
    pointer-events: none !important;
    position: absolute !important;
    visibility: hidden !important;
    display: none !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Responsivo para Noticias y Comunicados */
@media (max-width: 1024px) {
    .news-layout-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .news-vertical-divider {
        display: none;
    }
    .news-featured-image-box {
        height: 280px;
    }
}

@media (max-width: 768px) {
    .news-filter-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .news-search-box {
        max-width: 100%;
    }
    .news-filter-pills {
        justify-content: center;
    }
    .news-horizontal-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1.25rem;
    }
    .news-horizontal-thumb {
        width: 100%;
        height: 160px;
    }
    .news-horizontal-body {
        width: 100%;
    }
    .news-horizontal-action {
        width: 100%;
    }
    .news-btn-action {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .news-section {
        padding: 3rem 0;
    }
    .news-main-title {
        font-size: 1.75rem;
    }
    .news-featured-title {
        font-size: 1.35rem;
    }
    .news-featured-content {
        padding: 1.5rem;
    }
    .filter-pill {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
}

/* ================= SECCIÓN DE GALERÍA INSTITUCIONAL ================= */
.gallery-section {
    padding: 5rem 0;
    background-color: var(--white);
}

.gallery-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.gallery-main-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: #0f172a;
    text-align: center;
    margin-bottom: 3.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.gallery-main-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--secondary-color); /* Turquesa del logo */
    border-radius: 2px;
}

/* Rejilla de Mosaico Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 320px 320px; /* Altura perfecta e idéntica */
    gap: 1.5rem;
}

/* Distribución de las Columnas */
.col-left {
    grid-column: 1;
    grid-row: 1 / span 2;
}

.col-middle-top {
    grid-column: 2;
    grid-row: 1;
}

.col-middle-bottom {
    grid-column: 2;
    grid-row: 2;
}

.col-right {
    grid-column: 3;
    grid-row: 1 / span 2;
}

/* Elementos Individuales de la Galería */
.gallery-item {
    position: relative;
    border-radius: 24px; /* Bordes suaves premium */
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    height: 100%;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

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

/* Superposición Degradada de Cristal (Overlay) */
.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.25) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.gallery-category {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--secondary-color); /* Turquesa/Cian brillante del logo */
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 0.5rem;
    transform: translateY(15px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.05s;
}

.gallery-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--white);
    margin: 0;
    transform: translateY(15px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.1s;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.gallery-item:hover .gallery-category,
.gallery-item:hover .gallery-title {
    transform: translateY(0);
}

/* Responsivo para la Galería */
@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 260px);
        gap: 1.25rem;
    }
    .col-left {
        grid-column: 1;
        grid-row: 1 / span 2;
    }
    .col-right {
        grid-column: 2;
        grid-row: 2 / span 2;
    }
    .col-middle-top {
        grid-column: 2;
        grid-row: 1;
    }
    .col-middle-bottom {
        grid-column: 1;
        grid-row: 3;
    }
}

@media (max-width: 768px) {
    .gallery-section {
        padding: 3.5rem 0;
    }
    .gallery-main-title {
        font-size: 1.85rem;
        margin-bottom: 2.5rem;
    }
    .gallery-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, 250px);
        gap: 1rem;
    }
    .col-left, .col-right, .col-middle-top, .col-middle-bottom {
        grid-column: auto !important;
        grid-row: auto !important;
    }
    .gallery-overlay {
        padding: 1.25rem;
        opacity: 1; /* Siempre visible en pantallas táctiles */
        background: linear-gradient(to top, rgba(15, 23, 42, 0.75) 0%, rgba(15, 23, 42, 0.1) 60%, transparent 100%);
    }
    .gallery-category, .gallery-title {
        transform: translateY(0);
    }
    .gallery-title {
        font-size: 1.15rem;
    }
}