/* ==========================================================================
   VARIABLES Y CONFIGURACIÓN GLOBAL
   ========================================================================== */
:root {
    /* Colores principales - USANDO --primary SOLO */
    --primary: #9ecae3;
    --secondary-color: #4a4a4a;
    --accent-color: #0056b3;
    --accent-light: #4d94ff;
    --light-color: #f8f9fa;
    --border-color: #e0e0e0;
    --text-light: #6c757d;
    --white: #ffffff;
    --text: #1f2933;
    
    /* Sombras */
    --shadow: 0 20px 45px rgba(0,0,0,.12);
    --shadow-soft: 0 8px 25px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 15px 35px rgba(0, 0, 0, 0.15);
    
    /* Tipografía */
    --font-primary: 'Inter', 'Segoe UI', sans-serif;
}

/* ==========================================================================
   RESET Y CONFIGURACIÓN BASE
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
    font-family: var(--font-primary);
    scroll-behavior: smooth;
}

body {
    color: var(--text);
    background-color: #fff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   NAVBAR (ESTILOS CONSISTENTES)
   ========================================================================== */
.navbar {
    position: fixed;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1250px;
    background: var(--white);
    border-radius: 14px;
    box-shadow: var(--shadow);
    z-index: 1000;
    opacity: 1;
    pointer-events: all;
}

.navbar.hidden {
    transform: translate(-50%, -120%);
    opacity: 0;
    pointer-events: none;
}

.page-content {
    padding-top: 80px;
}

.navbar-inner {
    display: flex;
    align-items: center;
    padding: 14px 26px;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-img {
    height: 36px;
    width: auto;
    border-radius: 8px;
}

.logo-text {
    font-weight: 700;
    font-size: 1.5rem;
    text-transform: uppercase;
    color: var(--text);
    white-space: nowrap;
}

/* ==========================================================================
   MENÚ DESKTOP (ESTILOS CONSISTENTES)
   ========================================================================== */
.menu-desktop {
    display: flex;
    align-items: center;
    gap: 22px;
    list-style: none;
    flex: 1;
}

.menu-desktop a {
    text-decoration: none;
    font-size: .95rem;
    font-weight: 600;
    color: black;
    transition: color .2s ease;
}

.menu-desktop a:hover {
    color: var(--accent-light);
    
}

.menu-desktop .active {
    color: var(--accent-light);
    position: relative;
}

.menu-desktop .active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-light);
}


/* ==========================================================================
   DROPDOWN (ESTILOS CONSISTENTES)
   ========================================================================== */
.desktop-dropdown {
    position: relative;
}
.desktop-dropdown > a::after {
    content: "▾";
    font-size: .1rem;
    margin-left: 1px;

}

.desktop-dropdown .dropdown {
    position: absolute;
    top: 120%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    
}

.desktop-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
}

.dropdown a {
    display: block;
    padding: 14px 22px;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text);
    text-decoration: none;
}

.dropdown a:hover {
    background: #f1f5f9;
}

/* ==========================================================================
   BOTONES (ESTILOS CONSISTENTES)
   ========================================================================== */
.btn-outline {
    padding: 8px 18px;
    background: var(--white);
    border: 1.5px solid var(--text);
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    font-size: .95rem;
    color: var(--text);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--text);
}

.btn-primary {
    padding: 8px 18px;
    background: var(--primary);
    border: 1.5px solid var(--text);
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text);
}

.btn-primary:hover {
    background: var(--white);
}

/* ==========================================================================
   MOBILE MENU (ESTILOS CONSISTENTES)
   ========================================================================== */
.menu-btn {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text);
}

.mobile-menu {
    position: fixed;
    inset: 0;
    background: var(--white);
    transform: translateX(100%);
    z-index: 1100;
    display: flex;
    flex-direction: column;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 24px;
    border-bottom: 1px solid var(--border-color);
}

.close-btn {
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text);
}

.mobile-links {
    list-style: none;
    padding: 24px;
    flex: 1;
}

.mobile-links li {
    border-bottom: 1px solid var(--border-color);
}

.mobile-links a,
.accordion-btn {
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 18px 0;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--text);
    background: var(--white);
    border: none;
    cursor: pointer;
}

.accordion-content {
    display: none;
    padding-left: 12px;
}

.accordion-content a {
    display: block;
    padding: 14px 0;
    font-size: 0.95rem;
    font-weight: 500;
}

.accordion.active .accordion-content {
    display: block;
}

.mobile-actions {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    opacity: 0;
    visibility: hidden;
    z-index: 1050;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.educacion-hero {
    position: relative;
    height: 85vh;
    min-height: 700px;
    overflow: hidden;
    margin-top: -80px;
}

.educacion-hero .hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.educacion-hero .hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.educacion-hero .hero-container {
    position: relative;
    z-index: 2;
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 800px;
    color: #fff;
    padding: 4rem 0;
    margin-left: -7.7%;
    margin-top: -8%;
}

.educacion-hero .hero-title {
    font-size: 6.5rem;
    font-weight: 900;
    margin-bottom: 2rem;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.educacion-hero .hero-subtitle {
    font-size: 2.8rem;
    font-weight: 600;
    margin-bottom: 3rem;
    color: rgba(255,255,255,0.95);
    line-height: 1.5;
}

.educacion-hero .hero-description {
    font-size: 1.8rem;
    margin-bottom: 4rem;
    color: rgba(255,255,255,0.9);
    line-height: 1.6;
    max-width: 700px;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-icon {
    font-size: 2.5rem;
    color: var(--primary);
}

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.stat-label {
    font-size: 1.4rem;
    color: rgba(255,255,255,0.8);
    margin-top: 0.5rem;
}

/* ==========================================================================
   SECCIONES COMUNES
   ========================================================================== */
.programas-formacion,
.diplomados-destacados,
.beneficios-educacion,
.testimonios-educacion,
.preguntas-frecuentes {
    position: relative !important;
    padding: 8rem 0 !important;
    overflow: hidden !important;
}

.programas-formacion .section-background,
.diplomados-destacados .section-background,
.beneficios-educacion .section-background,
.testimonios-educacion .section-background,
.preguntas-frecuentes .section-background {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: -1 !important;
    overflow: hidden !important;
}

.programas-formacion .section-bg-image,
.diplomados-destacados .section-bg-image,
.beneficios-educacion .section-bg-image,
.testimonios-educacion .section-bg-image,
.preguntas-frecuentes .section-bg-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
}

.section-header {
    text-align: center;
    margin-bottom: 6rem;
}

.section-title {
    font-size: 4rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: black;
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.8rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================================================
   PROGRAMAS DE FORMACIÓN
   ========================================================================== */
.programas-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.programa-card {
    background: var(--white);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: var(--shadow);
    border: 2px solid var(--border-color);
    text-decoration: none;
    display: block;
    position: relative;
    overflow: hidden;
}

.programa-card:hover {
    border-color: var(--primary);
}

.programa-icon {
    font-size: 3.5rem;
    margin-bottom: 2rem;
    color: var(--primary);
}

.programa-content {
    margin-bottom: 2rem;
}

.programa-titulo {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.programa-descripcion {
    font-size: 1.5rem;
    line-height: 1.6;
    color: var(--secondary-color);
    margin-bottom: 2rem;
}

.programa-info {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.3rem;
    color: var(--text-light);
}

.info-item i {
    font-size: 1.4rem;
}

.programa-arrow {
    position: absolute;
    top: 3rem;
    right: 3rem;
    font-size: 1.8rem;
    color: var(--primary);
}

/* ==========================================================================
   DIPLOMADOS DESTACADOS
   ========================================================================== */
.btn-destacado {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: var(--accent-color);
    color: var(--white);
    padding: 1.2rem 2.5rem;
    border-radius: 999px;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 4rem;
}

.btn-destacado:hover {
    background: var(--accent-light);
}

/* CARRUSEL DE DIPLOMADOS */
.carousel-wrapper {
    position: relative;
}

.carousel-container {
    overflow: hidden;
    touch-action: pan-y;
}

.carousel-track {
    display: flex;
    gap: 3rem;
    transition: transform 0.45s ease;
    will-change: transform;
}

.carousel-nav {
    position: absolute;
    top: -70px;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.4rem;
    cursor: pointer;
    background: var(--border-color);
    color: var(--text);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.carousel-nav.prev { right: 60px; }
.carousel-nav.next { right: 0; }

.carousel-nav:disabled {
    opacity: 0.3;
    cursor: default;
}

/* TARJETAS DE DIPLOMADOS */
.diplomado-card {
    position: relative;
    flex: 0 0 calc((100% - 6rem) / 3);
    background: var(--white);
    border-radius: 18px;
    padding: 3rem;
    box-shadow: var(--shadow);
    border: 2px solid var(--border-color);
    min-height: 350px;
    display: flex;
    flex-direction: column;
}

.diplomado-card:hover {
    border-color: var(--primary);
}

.diplomado-badge {
    display: inline-block;
    background: var(--primary);
    color: var(--text);
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    width: fit-content;
}

.diplomado-numero {
    font-size: 4rem;
    font-weight: 900;
    color: var(--text-light);
    opacity: 0.1;
    position: absolute;
    top: 2rem;
    right: 2rem;
}

.diplomado-titulo {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 1rem 0;
    color: var(--text);
    line-height: 1.3;
    flex: 1;
}

.diplomado-descripcion {
    font-size: 1.5rem;
    line-height: 1.6;
    color: var(--secondary-color);
    margin-bottom: 2rem;
}

.diplomado-info {
    display: flex;
    gap: 2rem;
    font-size: 1.3rem;
    color: var(--text-light);
}

.diplomado-info span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* MAESTRÍA */
.maestria-card {
    background: var(--accent-light);
    border-radius: 20px;
    padding: 4rem;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 3rem;
    margin-top: 4rem;
    overflow: hidden;
}

.maestria-icon {
    font-size: 4rem;
    flex-shrink: 0;
}

.maestria-content {
    flex: 1;
}

.maestria-titulo {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.maestria-descripcion {
    font-size: 1.6rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.maestria-info {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    font-size: 1.4rem;
    font-weight: 600;
}

.maestria-info span {
    opacity: 0.9;
}

/* ==========================================================================
   BENEFICIOS
   ========================================================================== */
.beneficios-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.beneficio-card {
    background: var(--);
    border-radius: 16px;
    padding: 3rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    text-align: center;
}

.beneficio-card:hover {
    border-color: var(--primary);
}

.beneficio-icon {
    font-size: 3.5rem;
    color: var(--primary);
    margin-bottom: 2rem;
}

.beneficio-titulo {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.beneficio-descripcion {
    font-size: 1.5rem;
    line-height: 1.6;
    color: var(--secondary-color);
}

/* ==========================================================================
   TESTIMONIOS EDUCATIVOS - CARRUSEL
   ========================================================================== */
.testimonios-educacion {
    position: relative !important;
    padding: 8rem 0 !important;
    overflow: hidden !important;
}

.testimonios-educacion .section-background {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: -1 !important;
    overflow: hidden !important;
}

.testimonios-educacion .section-bg-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
}

.testimonios-carousel-wrapper {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.testimonios-carousel-container {
    overflow: hidden;
    border-radius: 20px;
}

.testimonios-carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonio-card {
    flex: 0 0 100%;
    min-width: 100%;
    padding: 2rem 4rem;
}

.testimonio-content {
    text-align: center;
}

.testimonio-text {
    font-size: 2.2rem;
    line-height: 1.6;
    color: var(--text);
    font-weight: 500;
    margin-bottom: 4rem;
    position: relative;
    padding: 0 2rem;
}

.testimonio-text::before {
    content: "“";
    position: absolute;
    left: -10px;
    top: -20px;
    font-size: 6rem;
    color: var(--primary);
    opacity: 0.3;
    font-family: Georgia, serif;
}

.testimonio-text::after {
    content: "”";
    position: absolute;
    right: -10px;
    bottom: -40px;
    font-size: 6rem;
    color: var(--primary);
    opacity: 0.3;
    font-family: Georgia, serif;
}

.testimonio-autor {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.testimonio-autor-info {
    text-align: center;
}

.testimonio-autor-nombre {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.testimonio-autor-titulo {
    font-size: 1.4rem;
    color: var(--text-light);
    font-weight: 500;
}

.testimonios-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--border-color);
    border: 2px solid var(--border-color);
    color: var(--text);
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonios-carousel-nav.prev {
    left: -100px;
}

.testimonios-carousel-nav.next {
    right: -100px;
}

.testimonios-carousel-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.testimonios-carousel-nav:disabled:hover {
    background: var(--border-color);
    color: var(--text);
    transform: translateY(-50%) scale(1);
}

/* Indicadores del carrusel */
.testimonios-indicators {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.testimonio-indicator {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: none;
    background: rgb(133, 133, 133);
    cursor: pointer;
    padding: 0;
}

.testimonio-indicator.active {
    background: var(--text);
    transform: scale(1.3);
}

/* ==========================================================================
   ANIMACIONES PARA EL CARRUSEL DE TESTIMONIOS
   ========================================================================== */
@keyframes fadeInTestimonio {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.testimonio-card {
    animation: fadeInTestimonio 0.6s ease forwards;
}

/* ==========================================================================
   RESPONSIVE DESIGN PARA TESTIMONIOS
   ========================================================================== */

/* TABLET (≤1024px) */
@media (max-width: 1024px) {
    .testimonios-educacion {
        padding: 6rem 0 !important;
    }
    
    .testimonio-card {
        padding: 4rem 3rem;
    }
    
    .testimonio-text {
        font-size: 1.9rem;
        padding: 0 1rem;
    }
    
    .testimonios-carousel-nav {
        width: 45px;
        height: 45px;
    }
    
    .testimonios-carousel-nav.prev {
        left: -15px;
    }
    
    .testimonios-carousel-nav.next {
        right: -15px;
    }
}

/* TABLET PEQUEÑA (≤768px) */
@media (max-width: 768px) {
    .testimonio-card {
        padding: 3.5rem 2.5rem;
    }
    
    .testimonio-text {
        font-size: 1.7rem;
        margin-bottom: 3rem;
    }
    
    .testimonio-text::before,
    .testimonio-text::after {
        font-size: 5rem;
    }
    
    .testimonio-autor-nombre {
        font-size: 1.6rem;
    }
    
    .testimonio-autor-titulo {
        font-size: 1.3rem;
    }
    
    .testimonios-carousel-nav {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    
    .testimonios-carousel-nav.prev {
        left: 10px;
    }
    
    .testimonios-carousel-nav.next {
        right: 10px;
    }
    
    .testimonios-indicators {
        margin-top: 3rem;
    }
    
    .testimonio-indicator {
        border: 2px solid var(--white);
    }
    
    .testimonio-indicator.active {
        background: var(--white);
    }
}

/* MÓVIL (≤576px) */
@media (max-width: 576px) {
    .testimonios-educacion {
        padding: 4rem 0 !important;
    }
    
    .testimonio-card {
        padding: 3rem 2rem;
    }
    
    .testimonio-text {
        font-size: 1.5rem;
        line-height: 1.5;
        padding: 0;
        margin-bottom: 2.5rem;
    }
    
    .testimonio-text::before {
        left: -5px;
        top: -15px;
        font-size: 4rem;
    }
    
    .testimonio-text::after {
        right: -5px;
        bottom: -30px;
        font-size: 4rem;
    }
    
    .testimonio-autor-nombre {
        font-size: 1.4rem;
    }
    
    .testimonio-autor-titulo {
        font-size: 1.2rem;
    }
    
    .testimonios-carousel-nav {
        display: none;
    }
    
    .testimonios-indicators {
        gap: 0.8rem;
        margin-top: 2.5rem;
    }
    
    .testimonio-indicator {
        width: 10px;
        height: 10px;
        border: 2px solid var(--white);
    }
    
    .testimonio-indicator.active {
        background: var(--white);
    }
}


/* ==========================================================================
   PREGUNTAS FRECUENTES
   ========================================================================== */
.preguntas-grid {
    max-width: 900px;
    margin: 0 auto;
}

.pregunta-item {
    background: var(--white);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
}

.pregunta-item.active {
    border-color: var(--primary);
}

.pregunta-pregunta {
    padding: 2rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.pregunta-pregunta h3 {
    font-size: 1.7rem;
    font-weight: 600;
    color: var(--text);
    margin: 0;
}

.pregunta-pregunta i {
    font-size: 1.4rem;
    color: var(--primary);
    transition: transform 0.3s ease;
}

.pregunta-respuesta {
    padding: 0 3rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.pregunta-item.active .pregunta-respuesta {
    padding: 0 3rem 2rem;
    max-height: 500px;
}

.pregunta-respuesta p {
    font-size: 1.5rem;
    line-height: 1.6;
    color: var(--secondary-color);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    background-color: #0046a5;
    color: var(--white);
    padding: 8rem 0 4rem;
    position: relative;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 5rem;
    margin-bottom: 4rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.footer-logo span {
    font-size: 2.4rem;
    font-weight: 800;
}

.footer-section p {
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 2.5rem;
    line-height: 1.7;
    max-width: 35rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4.5rem;
    height: 4.5rem;
    background-color: var(--text);
    border-radius: 50%;
    color: var(--white);
    text-decoration: none;
    font-size: 1.8rem;
}

.social-links a:hover {
    background-color: var(--white);
    color: var(--text);
}

.footer-section h4 {
    font-size: 1.7rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--white);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 1.5rem;
}

.footer-section ul li a {
    color: var(--white);
    text-decoration: none;
    font-size: 1.4rem;
}

.footer-section ul li a:hover {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 3rem;
    text-align: center;
}

.footer-bottom p {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.8);
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

/* TABLET GRANDE (≤1200px) */
@media (max-width: 1200px) {
    .diplomado-card {
        flex: 0 0 calc((100% - 3rem) / 2);
    }
    
    .beneficios-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 4rem;
    }
    
    .educacion-hero .hero-title {
        font-size: 4rem;
    }
    
    .educacion-hero .hero-subtitle {
        font-size: 2rem;
    }
}

/* TABLET (≤1024px) */
@media (max-width: 1024px) {
    html {
        font-size: 55%;
    }
    
    .section-title {
        font-size: 3rem;
        margin-bottom: 4rem;
    }
    
    .programas-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .maestria-card {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    /* Ocultar menú desktop, mostrar botón hamburguesa */
    .menu-desktop,
    .actions-desktop {
        display: none;
    }
    
    .menu-btn {
        display: block;
        margin-left: auto;
    }
    
    .navbar {
        width: calc(100% - 32px);
        top: 12px;
    }
    
    .navbar-inner {
        padding: 12px 18px;
    }
}

/* TABLET PEQUEÑA (≤768px) */
@media (max-width: 768px) {
    .diplomado-card {
        flex: 0 0 85%;
    }
    
    .carousel-nav {
        display: none;
    }
    
    .beneficios-grid {
        grid-template-columns: 1fr;
    }

    
    .educacion-hero {
        height: auto;
        min-height: 0;
        padding: 6rem 0 4rem;
        margin-top: -60px;
    }
    
    .educacion-hero .hero-container {
        align-items: flex-start;
    }
    
    .hero-content {
        padding: 0;
        margin-left: 0;
        margin-top: 0;
        max-width: 100%;
        text-align: left;
    }
    
    .educacion-hero .hero-title {
        font-size: 2.6rem;
        line-height: 1.15;
        margin-bottom: 1.5rem;
    }
    
    .educacion-hero .hero-subtitle {
        font-size: 1.4rem;
        margin-bottom: 2.5rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 2rem;
    }
    
    .logo-text {
        font-size: 1.2rem;
    }
    
    .logo-img {
        height: 32px;
    }
    
    .navbar {
        border-radius: 16px;
    }
}

/* MÓVIL GRANDE (≤576px) */
@media (max-width: 576px) {
    .diplomado-card {
        flex: 0 0 100%;
        padding: 2rem;
    }
    .footer-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .hero-description {
        font-size: 1.4rem;
    }
}

/* MÓVIL MUY PEQUEÑO (≤375px) */
@media (max-width: 375px) {
    .educacion-hero .hero-title {
        font-size: 2rem;
    }
    
    .educacion-hero .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .stat-item {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    
    .logo-text {
        font-size: 1.05rem;
    }
    
    .logo-img {
        height: 28px;
    }
    
    .navbar {
        top: 10px;
        width: calc(100% - 20px);
    }
    
    .mobile-header {
        padding: 18px;
    }
    
    .mobile-links {
        padding: 16px;
    }
    
    .mobile-links a,
    .accordion-btn {
        font-size: 0.95rem;
    }
    
    .mobile-actions {
        padding: 16px;
        gap: 12px;
    }
    
    .mobile-actions a {
        font-size: 0.95rem;
    }
}

/* =========================================================
   MODAL "ARTÍCULOS PRÓXIMAMENTE" (ESTILO DE TUS SECCIONES)
========================================================= */
.articulos-soon-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
  z-index: 99990;
}

.articulos-soon-modal{
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(.96);
  width: min(680px, 92vw);
  background: #fff;
  border-radius: 24px;
  border: 2px solid #000;
  box-shadow: var(--shadow, 0 20px 45px rgba(0,0,0,.12));
  padding: 28px;
  opacity: 0;
  visibility: hidden;
  transition: transform .25s ease, opacity .25s ease, visibility .25s ease;
  z-index: 99999;
  overflow: hidden; /* CLAVE para el ribbon */
}

/* franja suave tipo "sección overlay" */
.articulos-soon-modal::before{
  content:"";
  position:absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(158, 202, 227, .35), rgba(0,0,0,0) 55%);
  pointer-events:none;
  z-index: 0;
}

/* =========================================================
   RIBBON DIAGONAL "PRÓXIMAMENTE" (COMO LA IMAGEN)
========================================================= */
.articulos-soon-ribbon{
  position: absolute;
  top: 18px;
  right: -70px;
  width: 260px;
  height: 56px;
  transform: rotate(35deg);
  z-index: 3;
  pointer-events: none;
  filter: drop-shadow(0 14px 18px rgba(0,0,0,.2));
}

.articulos-soon-ribbon span{
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;

  background: linear-gradient(
    135deg,
    #63df63 0%,
    #34c84c 55%,
    #1fa833 100%
  );

  color: #fff;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 2px;

  box-shadow:
    inset 0 2px 0 rgba(255,255,255,.35),
    inset 0 -2px 0 rgba(0,0,0,.15);
}

/* =========================================================
   ESTADO ACTIVO
========================================================= */
.articulos-soon-overlay.active{
  opacity: 1;
  visibility: visible;
}
.articulos-soon-modal.active{
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}
/* titulo y texto */
.articulos-soon-title{
  position: relative;
  z-index: 1;
  margin-top: 18px;
  font-size: 2.4rem;
  font-weight: 900;
  color: #000;
  text-transform: uppercase;
  line-height: 1.15;
}

.articulos-soon-desc{
  position: relative;
  z-index: 1;
  margin-top: 12px;
  font-size: 1.55rem;
  color: #111;
  line-height: 1.7;
  font-weight: 600;
  max-width: 62ch;
}

/* acciones */
.articulos-soon-actions{
  position: relative;
  z-index: 1;
  margin-top: 18px;
  display: flex;
  gap: 12px;
}

.articulos-soon-btn{
  width: 100%;
  padding: 14px 18px;
  border-radius: 999px;
  border: 2px solid #000;
  background: #9ecae3;
  color: #000;
  font-weight: 900;
  font-size: 1.4rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .25s ease, background .25s ease;
}

.articulos-soon-btn:hover{
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 16px 35px rgba(0,0,0,.18);
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 480px){
  .articulos-soon-modal{
    padding: 20px;
    border-radius: 18px;
  }

  .articulos-soon-title{
    font-size: 2rem;
  }

  .articulos-soon-desc{
    font-size: 1.35rem;
  }

  .articulos-soon-ribbon{
    top: 14px;
    right: -78px;
    width: 210px;
    height: 48px;
  }

  .articulos-soon-ribbon span{
    font-size: 1.15rem;
    letter-spacing: 1.6px;
  }
}
/* =========================================================
   EDUCACIÓN - SECCIÓN DIPLOMADO DESTACADO (SIN CARRUSEL)
   (Clases renombradas con prefijo edu- para evitar conflictos)
========================================================= */

.edu-diploma-section {
  position: relative;
  overflow: hidden;
  /* Ajuste: título más arriba + espacio inferior para no pegar con otras secciones */
  padding: 5rem 0 9rem 0;
}

/* Fondo (si ya existe en tu CSS global, esto queda independiente) */
.edu-diploma-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.edu-diploma-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.edu-diploma-overlay {
  position: absolute;
  inset: 0;
}

.edu-diploma-title {
  position: relative;
  z-index: 2;
  margin: 0 0 3.5rem 0;
  text-align: center;

  font-size: 4.5rem;      /* tamaño grande */
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: black;
  line-height: 1.1;
}

/* =========================================================
   Tarjeta grande
========================================================= */
.edu-diploma-card {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 1.4fr;
  gap: 0;
  background: var(--white);
  border-radius: 22px;
  box-shadow: black;
  border: 2px solid var(--border);
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* Hover SOLO de la tarjeta */
.edu-diploma-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.664);
}

/* =========================================================
   LADO IMAGEN
========================================================= */
.edu-diploma-media {
  position: relative;
  min-height: 340px;
  background: #0b1b2b;
}

.edu-diploma-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: contrast(1.05);
}

.edu-diploma-badge {
  position: absolute;
  left: 18px;
  bottom: 18px;
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary-color);
  letter-spacing: 0.5px;
}

/* =========================================================
   CONTENIDO
========================================================= */
.edu-diploma-content {
  padding: 3.2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.6rem;
}

.edu-diploma-card-title {
  font-size: 3rem;
  font-weight: 900;
  color: var(--primary-color);
  line-height: 1.15;
  text-transform: uppercase;
  margin: 0;
}

.edu-diploma-desc {
  font-size: 1.6rem;
  color: var(--secondary-color);
  line-height: 1.7;
  margin: 0;
}

.edu-diploma-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
}

.edu-diploma-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--light-color);
  border: 1px solid var(--border-color);
  font-size: 1.35rem;
  color: var(--primary-color);
  font-weight: 600;
}

/* =========================================================
   BOTÓN CTA (SOLO REACCIONA AL TOCARLO)
========================================================= */
.edu-diploma-cta {
  margin-top: 1rem;
}

.edu-diploma-btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem 2.6rem;
  border-radius: 999px;
  border: 2px solid var(--text);
  background: var(--primary);
  color: var(--text);
  font-weight: 900;
  font-size: 1.35rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.25s ease;
}

/* Hover SOLO del botón */
.edu-diploma-btn:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.18);
}

/* =========================================================
   RIBBON CRUZADO "PRÓXIMAMENTE"
========================================================= */
.edu-diploma-ribbon {
  position: absolute;
  top: 18px;
  right: -56px;
  width: 230px;
  height: 52px;
  transform: rotate(35deg);
  z-index: 5;
  pointer-events: none;
}

.edu-diploma-ribbon span {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(29, 173, 0, 0.85);
  color: #fff;
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: 2px solid rgba(255,255,255,0.65);
  border-radius: 10px;
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 992px) {
  .edu-diploma-card {
    grid-template-columns: 1fr;
  }

  .edu-diploma-media {
    min-height: 280px;
  }

  .edu-diploma-card-title {
    font-size: 2.6rem;
  }
}

@media (max-width: 576px) {
  .edu-diploma-content {
    padding: 2rem;
  }

  .edu-diploma-card-title {
    font-size: 2.1rem;
  }

  .edu-diploma-ribbon {
    top: 14px;
    right: -66px;
    width: 210px;
  }
}
