/* ==========================================================================
   VARIABLES Y CONFIGURACIÓN GLOBAL
   ========================================================================== */
:root {
    /* Colores principales */
    --primary-color: #1a1a1a;
    --secondary-color: #4a4a4a;
    --accent-color: #0056b3;
    --accent-light: #4d94ff;
    --light-color: #f8f9fa;
    --border-color: #e0e0e0;
    --text-light: #6c757d;
    --white: #ffffff;
    
    /* Colores específicos para navbar */
    --bg: #ffffff;
    --text: #1f2933;
    --muted: #6b7280;
    --primary: #9ecae3;
    --border: #e5e7eb;
    --shadow: 0 20px 45px rgba(0,0,0,.12);
    
    /* Sombras */
    --shadow-soft: 0 8px 25px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 15px 35px rgba(0, 0, 0, 0.15);
    
    /* Colores de estado */
    --success-color: #28a745;
    
    /* Tipografía */
    --font-primary: 'Inter', 'Segoe UI', sans-serif;
    
    /* Espaciados */
    --section-padding: 8rem 0;
}

/* ==========================================================================
   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(--primary-color);
    background-color: #fff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-top: 80px;
}

/* =========================================================
   NAVBAR SCROLL HIDE/SHOW
========================================================= */
.navbar {
    position: fixed;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1250px;
    background: var(--bg);
    border-radius: 14px;
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
    pointer-events: all;
}

.navbar.hidden {
    transform: translate(-50%, -120%);
    opacity: 0;
    pointer-events: none;
}

.page-container {
    padding-top: 80px;
}

.navbar-inner {
    display: flex;
    align-items: center;
    padding: 14px 26px;
    gap: 24px;
}

/* Logo */
.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;
}

/* =========================================================
   DESKTOP MENU
========================================================= */
.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);
}

/* =========================================================
   DESKTOP DROPDOWN (EDUCACIÓN CONTINUA)
========================================================= */
.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(--bg);
  border-radius: 12px;
  box-shadow: var(--shadow);
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transition: all .25s ease;
  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;
  transition: background .2s ease;
}

.dropdown a:hover {
  background: #f1f5f9;
}
/* =========================================================
   DESKTOP ACTIONS
========================================================= */
.btn-outline {
    padding: 8px 18px;
    background: #ffffff;
    border: 1.5px solid #000;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    font-size: .95rem;
    color: #000;
    transition: background 0.25s ease,
                box-shadow 0.25s ease,
                transform 0.15s ease;
}

.btn-outline:hover,
.btn-outline:focus-visible,
.btn-outline:active {
    background: var(--primary);
    color: #000;
    border-color: #000;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.15),
                0 8px 20px rgb(0, 0, 0);
    transform: translateY(-1px);
}

.btn-outline:focus {
    outline: none;
}

.btn-primary {
    padding: 8px 18px;
    background: var(--primary);
    border: 1.5px solid #000;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    color: #000;
    transition: box-shadow 0.25s ease,
                transform 0.15s ease,
                filter 0.2s ease;
}

.btn-primary:hover,
.btn-primary:focus-visible,
.btn-primary:active {
    background: white;
    filter: brightness(0.95);
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.2),
                0 6px 18px rgb(0, 0, 0);
    transform: translateY(-1px);
}

.btn-primary:focus {
    outline: none;
}

/* =========================================================
   MOBILE MENU BUTTON
========================================================= */
.menu-btn {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text);
}

/* =========================================================
   MOBILE MENU
========================================================= */
.mobile-menu {
    position: fixed;
    inset: 0;
    background: var(--bg);
    transform: translateX(100%);
    transition: transform .4s ease;
    z-index: 1100;
    display: flex;
    flex-direction: column;
}

.mobile-menu.active {
    transform: translateX(0);
}

/* =========================================================
   MOBILE HEADER
========================================================= */
.mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 24px;
    border-bottom: 1px solid var(--border);
}

.close-btn {
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text);
}

/* =========================================================
   MOBILE LINKS
========================================================= */
.mobile-links {
    list-style: none;
    padding: 24px;
    flex: 1;
}

.mobile-links li {
    border-bottom: 1px solid var(--border);
}

.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: white;
    border: none;
    cursor: pointer;
}

/* =========================================================
   ACORDEÓN MOBILE
========================================================= */
.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;
}

.plus {
    font-size: 1.4rem;
    transition: transform .3s ease;
}

.accordion.active .plus {
    transform: rotate(45deg);
}

/* =========================================================
   MOBILE ACTIONS
========================================================= */
.mobile-actions {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* =========================================================
   OVERLAY
========================================================= */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    opacity: 0;
    visibility: hidden;
    transition: .3s;
    z-index: 1050;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ==========================================================================
   CONTENEDORES Y ESTRUCTURA
   ========================================================================== */
.container {
    max-width: 120rem;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ==========================================================================
   FONDOS DE SECCIÓN CON IMÁGENES
   ========================================================================== */
.intro-diplomas,
.diplomas-destacados,
.beneficios-carrusel,
.diplomas-detallados-carrusel {
    position: relative !important;
    padding: var(--section-padding) !important;
    overflow: hidden !important;
}

/* Fondo de imagen para cada sección */
.section-background {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 0 !important;
    overflow: hidden !important;
}

.section-bg-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
}


/* ==========================================================================
   HERO DIPLOMADOS
   ========================================================================== */
.diplomas-hero {
    position: relative;
    height: 85vh;
    min-height: 700px;
    overflow: hidden;
    margin-top: -160px;
}

.diplomas-hero .hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.diplomas-hero .hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.diplomas-hero .hero-overlay {
    position: absolute;
    inset: 0;
}

.diplomas-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: -2.5%;
}

.diplomas-hero .hero-title {
    font-size: 6.5rem;
    font-weight: 900;
    margin-bottom: 2rem;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: -1px;
    color: #fff;
}

.diplomas-hero .hero-subtitle {
    font-size: 2.8rem;
    font-weight: 600;
    margin-bottom: 3rem;
    color: rgba(255,255,255,0.95);
    line-height: 1.5;
}

.diplomas-hero .hero-description {
    font-size: 1.8rem;
    margin-bottom: 4rem;
    color: rgba(255,255,255,0.9);
    line-height: 1.7;
    max-width: 600px;
}

/* ==========================================================================
   INTRODUCCIÓN DIPLOMADOS
   ========================================================================== */
.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.intro-title {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 2rem;
    line-height: 1.2;
}

.intro-lead {
    font-size: 1.8rem;
    color: var(--secondary-color);
    line-height: 1.7;
    margin-bottom: 3rem;
}

.intro-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.feature i {
    color: var(--success-color);
    font-size: 1.8rem;
    margin-top: 0.3rem;
    flex-shrink: 0;
}

.feature span {
    font-size: 1.6rem;
    color: var(--primary-color);
    line-height: 1.6;
}

/* Intro Card */
.intro-card {
    background: var(--white);
    padding: 4rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    border: 2px solid var(--primary);
    position: relative;
}

.card-header {
    margin-bottom: 2rem;
}

.card-header i {
    font-size: 3rem;
    color: var(--primary);
}

.card-quote {
    font-size: 1.8rem;
    font-style: italic;
    color: var(--primary-color);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.card-author {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.author-line {
    width: 40px;
    height: 2px;
    background: var(--primary);
}

.author-text {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==========================================================================
   DIPLOMADOS DESTACADOS
   ========================================================================== */
.section-header {
    text-align: center;
    margin-bottom: 6rem;
    position: relative;
    z-index: 2;
}

.section-title {
    font-size: 4rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.section-subtitle {
    font-size: 1.8rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}



/* Contenedor de diplomados (sin carrusel) */
.diplomados-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 6rem;
    position: relative;
    z-index: 2;
}

/* Tarjetas de Diplomado */
.diplomado-card {
    background: var(--white);
    border-radius: 20px;
    padding: 4rem 3rem;
    box-shadow: var(--shadow);
    border: 2px solid var(--border);
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.diplomado-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.diplomado-badge {
    display: inline-block;
    padding: 0.6rem 1.8rem;
    background: var(--text);
    color: var(--white);
    border-radius: 20px;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.diplomado-numero {
    font-size: 8rem;
    font-weight: 900;
    color: rgba(0, 0, 0, 0.05);
    margin-bottom: 1rem;
    line-height: 1;
}

.diplomado-titulo {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 2rem;
    line-height: 1.3;
}

.diplomado-descripcion {
    font-size: 1.5rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 3rem;
}

.diplomado-info {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 3rem;
    font-size: 1.4rem;
    color: var(--muted);
}

.diplomado-info span {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.btn-diplomado {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: var(--primary);
    color: var(--text);
    border-radius: 999px;
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: 2px solid var(--text);
}

.btn-diplomado:hover {
    background: transparent;
    color: var(--text);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* Tarjeta de Maestría */
.maestria-card {
    background: linear-gradient(135deg, var(--primary) 0%, #7ab3d0 100%);
    border-radius: 20px;
    padding: 4rem;
    display: flex;
    align-items: center;
    gap: 4rem;
    box-shadow: var(--shadow);
    position: relative;
    z-index: 2;
}

.maestria-icon {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: var(--primary-color);
}

.maestria-content {
    flex: 1;
}

.maestria-titulo {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.maestria-descripcion {
    font-size: 1.6rem;
    color: rgba(0, 0, 0, 0.9);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.maestria-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    font-size: 1.4rem;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.8);
}

/* ==========================================================================
   CARRUSEL DE BENEFICIOS
   ========================================================================== */
.beneficios-container {
    position: relative;
    z-index: 2;
}

/* Indicadores del carrusel */
.carrusel-indicators {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
    
}

.indicator {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 2rem;
    background: var(--primary);
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 220px;
    
}

.indicator.active {
    background: var(--white);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.indicator:hover:not(.active) {
    border-color: var(--primary);
    transform: translateY(-1px);
}

.indicator-number {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary-color);
    background: rgb(255, 255, 255);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.indicator.active .indicator-number {
    background: var(--primary);
    color: var(--text);
}

.indicator-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary-color);
    text-align: left;
    transition: all 0.3s ease;
}

.indicator.active .indicator-title {
    color: var(--text);
}

/* Contenedor del carrusel */
.carrusel-wrapper {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

/* Slides del carrusel */
.carrusel-slide {
    display: none;
    animation: fadeIn 0.5s ease;
}

.carrusel-slide.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Cabecera del slide */
.beneficio-header {
    text-align: center;
    margin-bottom: 4rem;
}

.diploma-badge {
    display: inline-block;
    padding: 0.6rem 1.8rem;
    background: var(--text);
    color: var(--white);
    border-radius: 20px;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.diploma-number {
    font-size: 5rem;
    font-weight: 900;
    color: rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
    line-height: 1;
}

.diploma-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 1.5rem;
    line-height: 10.3;
}

.diploma-duration {
    font-size: 1.4rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.diploma-duration i {
    color: var(--primary);
}

/* Grid de beneficios */
.beneficios-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
}

.beneficio-item {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 16px;
    border: 2px solid var(--border);
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-start;
    gap: 2rem;
}

.beneficio-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.beneficio-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: var(--text);
}

.beneficio-content {
    flex: 1;
}

.beneficio-content h4 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1rem;
}

.beneficio-content p {
    font-size: 1.4rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* Controles de navegación */
.carrusel-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    margin-top: 4rem;
}

.carrusel-nav {
    width: 50px;
    height: 50px;
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--text);
    transition: all 0.3s ease;
}

.carrusel-nav:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--text);
    transform: scale(1.1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.carrusel-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.carrusel-dots {
    display: flex;
    gap: 1rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.dot.active {
    background: var(--primary);
    transform: scale(1.3);
}

.dot:hover:not(.active) {
    background: #ccc;
}

/* ==========================================================================
   DIPLOMADOS DESTACADOS 
   ========================================================================== */
.diplomas-destacados {
    position: relative;
    padding: 8rem 0 5rem 0;
    margin: 0;
    overflow: hidden;
    background-color: white;
}

.diplomas-destacados-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
}

.diplomas-destacados-title {
    font-size: 4rem;
    font-weight: 900;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
}

.diplomas-destacados-subtitle {
    font-size: 1.8rem;
    color: var(--secondary-color);
    max-width: 600px;
    margin: 0 auto;
}

/* CARRUSEL DE DIPLOMADOS */
.diplomas-destacados-carousel-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    z-index: 2;
}

/* Botones arriba */
.carousel-nav-top-diplomas {
    position: absolute;
    top: -60px;
    right: 0;
    display: flex;
    gap: 16px;
    z-index: 10;
}

.carousel-nav-diplomas {
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: var(--border);
    color: var(--primary-color);
    font-size: 1.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-weight: bold;
    border: 1px solid var(--border-color);
}



.carousel-nav-diplomas:disabled {
    opacity: 0.3;
    cursor: default;
}

.diplomas-destacados-carousel-container {
    overflow: hidden;
    border-radius: 18px;
    box-shadow: var(--shadow);
    background: var(--white);
}

.diplomas-destacados-carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* TARJETA DE DIPLOMADO - VISIÓN COMPLETA SIN SCROLL */
.diploma-destacado-card {
    flex: 0 0 100%;
    min-width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    height: auto;
    max-height: none;
    border-radius: 18px;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.3s ease;
    background: var(--white);
}

.diploma-destacado-card.active {
    opacity: 1;
}

/* NÚMERO GRANDE EN ESQUINA */
.diploma-corner-number {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 8rem;
    font-weight: 900;
    color: rgba(0, 86, 179, 0.1);
    line-height: 1;
    z-index: 1;
    pointer-events: none;
    user-select: none;
}

/* INFORMACIÓN DEL DIPLOMADO */
.diploma-destacado-info {
    padding: 3rem;
    color: var(--text);
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-height: none;
    overflow: visible;
    position: relative;
    z-index: 2;
}

/* HEADER REORGANIZADO */
.diploma-header-info {
    position: relative;
    text-align: left;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 2rem;
    z-index: 2;
}

.diploma-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 2rem;
    line-height: 1.3;
    position: relative;
    z-index: 2;
}

.diploma-meta-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
}

.diploma-meta-left {
    flex: 1;
}

.diploma-level {
    display: inline-block;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    background: var(--primary);
    padding: 8px 20px;
    border-radius: 20px;
    text-align: center;
    max-width: 300px;
    border: 1px solid black;
}

.diploma-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 1rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.4rem;
    color: var(--primary-color);
    background: var(--light-color);
    padding: 10px 18px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.meta-item i {
    color: var(--primary);
    font-size: 1.2rem;
}

/* DESCRIPCIÓN */
.diploma-description {
    background: var(--light-color);
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid var(--primary);
}

.diploma-description h4 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

.diploma-description p {
    font-size: 1.5rem;
    line-height: 1.6;
    color: var(--text);
    margin-bottom: 1rem;
}

.diploma-description p:last-child {
    margin-bottom: 0;
}

/* MÓDULOS */
.diploma-modules h4 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.diploma-modules h4 i {
    color: var(--primary);
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    max-height: none;
    overflow: visible;
}

.module-item {
    display: flex;
    gap: 1rem;
    background: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.module-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.module-number {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    background: var(--primary);
    color: var(--primary-color);
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.4rem;
}

.module-content h5 {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.module-subtitle {
    font-size: 1.2rem;
    color: var(--secondary-color);
    font-style: italic;
    margin-bottom: 0.5rem;
}

.module-desc {
    font-size: 1.3rem;
    color: var(--text);
    line-height: 1.4;
}

/* ACCIONES */
.diploma-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
    margin-top: 1rem;
}

.btn-diploma-download {
    background: var(--primary);
    color: var(--primary-color);
    padding: 1.2rem 3rem;
    font-size: 1.6rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--primary-color);
    transition: all 0.3s ease;
    border-radius: 100px;
}

.btn-diploma-download:hover {
    background: #ffffff;
}

.diploma-status {
    display: flex;
    align-items: center;
}

.status-badge.available {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 25px;
    background: rgba(40, 167, 69, 0.1);
    color: var(--success-color);
    font-size: 1.4rem;
    font-weight: 600;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.status-badge i {
    font-size: 1.6rem;
}

/* INDICADORES */
.carousel-indicators-diplomas {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.indicator-diplomas {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.indicator-diplomas.active {
    background: var(--primary-color);
    transform: scale(1.3);
}

/* ==================================================================
   RESPONSIVE – LAPTOP
================================================================== */
@media (max-width: 992px) {
    .diplomas-destacados-title {
        font-size: 3.2rem;
    }
    
    .diploma-corner-number {
        font-size: 6rem;
        top: 15px;
        right: 15px;
    }
    
    .diploma-title {
        font-size: 2.4rem;
    }
    
    .diploma-meta-container {
        flex-direction: column;
    }
    
    .diploma-level {
        max-width: 100%;
    }
    
    .modules-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

/* ==================================================================
   RESPONSIVE – TABLET
================================================================== */
@media (max-width: 768px) {
    .diplomas-destacados {
        padding: 6rem 0 4rem;
    }
    
    .diplomas-destacados-title {
        font-size: 2.8rem;
    }
    
    .diplomas-destacados-subtitle {
        font-size: 1.6rem;
        padding: 0 2rem;
    }
    
    .carousel-nav-top-diplomas {
        top: -50px;
    }
    
    .diploma-corner-number {
        font-size: 5rem;
        top: 10px;
        right: 10px;
    }
    
    .diploma-destacado-info {
        padding: 2rem;
    }
    
    .diploma-title {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
    
    .diploma-level {
        font-size: 1.2rem;
        padding: 6px 15px;
    }
    
    .diploma-meta {
        gap: 1rem;
    }
    
    .meta-item {
        font-size: 1.2rem;
        padding: 8px 14px;
    }
    
    .modules-grid {
        grid-template-columns: 1fr;
    }
    
    .diploma-actions {
        flex-direction: column;
        gap: 2rem;
        align-items: center;
    }
    
    .btn-diploma-download {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}

/* ==================================================================
   RESPONSIVE – MÓVIL
================================================================== */
@media (max-width: 576px) {
    .diplomas-destacados-title {
        font-size: 2.4rem;
        padding: 0 1rem;
    }
    
    .diplomas-destacados-subtitle {
        font-size: 1.4rem;
    }
    
    .carousel-nav-top-diplomas {
        top: -40px;
    }
    
    .carousel-nav-diplomas {
        width: 36px;
        height: 36px;
        font-size: 1.4rem;
    }
    
    .diploma-corner-number {
        font-size: 4rem;
        top: 8px;
        right: 8px;
    }
    
    .diploma-destacado-info {
        padding: 1.5rem;
    }
    
    .diploma-title {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    
    .diploma-level {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .diploma-meta {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .meta-item {
        width: 100%;
        justify-content: center;
    }
    
    .diploma-description h4 {
        font-size: 1.6rem;
    }
    
    .diploma-description p {
        font-size: 1.3rem;
    }
    
    .diploma-modules h4 {
        font-size: 1.6rem;
    }
    
    .module-item {
        padding: 1rem;
    }
    
    .module-content h5 {
        font-size: 1.4rem;
    }
    
    .module-desc {
        font-size: 1.2rem;
    }
    
    .btn-diploma-download {
        padding: 1rem 2rem;
        font-size: 1.4rem;
    }
}

/* ==================================================================
   RESPONSIVE – MÓVIL PEQUEÑO
================================================================== */
@media (max-width: 400px) {
    .diplomas-destacados-title {
        font-size: 2rem;
    }
    
    .diploma-corner-number {
        font-size: 3rem;
        top: 5px;
        right: 5px;
    }
    
    .diploma-title {
        font-size: 1.6rem;
    }
    
    .btn-diploma-download {
        font-size: 1.3rem;
    }
}
/* =========================================================
   RIBBON CRUZADO "PRÓXIMAMENTE" (ESQUINA)
========================================================= */
.diploma-destacado-card {
  position: relative; /* asegurar posicionamiento del ribbon */
}

.ribbon-soon {
  position: absolute;
  top: 18px;
  right: -56px;
  width: 230px;
  height: 52px;
  transform: rotate(35deg);
  z-index: 5;
  pointer-events: none;
}

.ribbon-soon span {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(29, 173, 0, 0.90);
  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: 576px) {
  .ribbon-soon {
    top: 14px;
    right: -66px;
    width: 210px;
    height: 48px;
  }
  .ribbon-soon span {
    font-size: 1.2rem;
    letter-spacing: 1.5px;
  }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    background-color: #0046a5;
    color: 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: 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: black;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.8rem;
}

.social-links a:hover {
    background-color: white;
    color: black;
    transform: translateY(-3px);
}

.footer-section h4 {
    font-size: 1.7rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: white;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 1.5rem;
}

.footer-section ul li a {
    color: white;
    text-decoration: none;
    font-size: 1.4rem;
    transition: all 0.3s ease;
}

.footer-section ul li a:hover {
    color: #9ecae3;
    transform: translateX(5px);
}

.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 & MOBILE (≤1024px)
========================= */
@media (max-width: 1024px) {
    /* Oculta desktop */
    .menu-desktop,
    .actions-desktop {
        display: none;
    }

    /* Muestra botón hamburguesa */
    .menu-btn {
        display: block;
        margin-left: auto;
    }

    /* Navbar más flexible */
    .navbar {
        width: calc(100% - 32px);
        top: 12px;
    }

    .navbar-inner {
        padding: 12px 18px;
    }

    /* Hero */
    .diplomas-hero {
        height: 75vh;
        min-height: 620px;
    }

    .diplomas-hero .hero-title {
        font-size: 4rem;
    }

    .diplomas-hero .hero-subtitle {
        font-size: 2rem;
    }

    .diplomas-hero .hero-description {
        font-size: 1.5rem;
    }

    /* Intro */
    .intro-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .intro-title {
        font-size: 3rem;
    }

    .intro-lead {
        font-size: 1.6rem;
    }

    /* Diplomados destacados */
    .diplomados-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .diplomado-card {
        max-width: 500px;
        margin: 0 auto;
    }

    /* Carrusel de beneficios */
    .beneficios-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
    }

    .carrusel-indicators {
        flex-direction: column;
        align-items: center;
    }
    
    .indicator {
        width: 100%;
        max-width: 300px;
    }

    /* Carrusel de diplomados detallados */
    .diploma-detalle-content {
        grid-template-columns: 350px 1fr;
    }
    
    .diploma-sidebar-detalle {
        padding: 3rem;
    }
    
    .diploma-content-detalle {
        padding: 3rem;
    }
    
    .modules-grid-detalle {
        grid-template-columns: 1fr;
    }
    
    .diplomas-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .diploma-tab {
        width: 100%;
        max-width: 400px;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 4rem;
    }
}

/* =========================
   MOBILE (≤768px)
========================= */
@media (max-width: 768px) {
    html {
        font-size: 55%;
    }

    /* Logo */
    .logo-text {
        font-size: 1.2rem;
    }

    .logo-img {
        height: 32px;
    }

    /* Navbar */
    .navbar {
        border-radius: 16px;
    }

    /* Hero */
    .diplomas-hero {
        height: auto;
        min-height: 0;
        padding: 6rem 0 4rem;
        margin-top: -150px;
    }

    .hero-content {
        margin-top: 50px;
        padding: 0;
        text-align: left;
        margin-left: 5%;
        margin-right: 150px;
    }

    .diplomas-hero .hero-title {
        font-size: 2.6rem;
        line-height: 1.15;
    }

    .diplomas-hero .hero-subtitle {
        font-size: 1.4rem;
        margin-bottom: 2.5rem;
    }

    .diplomas-hero .hero-description {
        font-size: 1.4rem;
    }

    /* Secciones */
    .section-title {
        font-size: 3rem;
        margin-bottom: 4rem;
    }

    /* Maestría */
    .maestria-card {
        flex-direction: column;
        text-align: center;
        padding: 3rem;
        gap: 2rem;
    }

    /* Carrusel de beneficios */
    .diploma-title {
        font-size: 2.2rem;
    }
    
    .beneficio-item {
        padding: 2rem;
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .beneficio-icon {
        margin: 0 auto;
    }

    /* Carrusel de diplomados detallados */
    .diplomas-tabs {
        gap: 1rem;
    }
    
    .diploma-tab {
        min-width: 200px;
        padding: 1rem 1.5rem;
    }
    
    .tab-number {
        width: 30px;
        height: 30px;
        font-size: 1.2rem;
    }
    
    .tab-title {
        font-size: 1.1rem;
    }
    
    .diploma-detalle-content {
        grid-template-columns: 1fr;
    }
    
    .diploma-sidebar-detalle {
        border-right: none;
        border-bottom: 2px solid var(--border);
        padding: 2rem;
    }
    
    .diploma-numero-detalle {
        font-size: 6rem;
    }
    
    .diploma-title-detalle {
        font-size: 1.8rem;
    }
    
    .diploma-content-detalle {
        padding: 2rem;
        max-height: 600px;
    }
    
    .modules-header-detalle h3 {
        font-size: 2rem;
    }
    
    .module-card-detalle {
        padding: 1.5rem;
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .module-number-circle-detalle {
        margin: 0 auto;
    }
    
    .detalle-nav {
        display: none;
    }
    
    .diplomas-controls {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}

/* =========================
   MÓVIL (≤480px)
========================= */
@media (max-width: 480px) {
    body {
        padding-top: 70px;
    }

    /* Logo aún más compacto */
    .logo-text {
        font-size: 1.05rem;
    }

    .logo-img {
        height: 28px;
    }

    /* Navbar */
    .navbar {
        top: 10px;
        width: calc(100% - 20px);
    }

    /* Hero */
    .hero-content {
        margin-right: 5%;
    }

    .diplomas-hero .hero-title {
        font-size: 2rem;
    }

    .diplomas-hero .hero-subtitle {
        font-size: 1.2rem;
    }

    .diplomas-hero .hero-description {
        font-size: 1.2rem;
    }

    /* Secciones */
    .section-title {
        font-size: 2.4rem;
        margin-bottom: 3rem;
    }

    /* Carrusel de beneficios */
    .beneficios-carrusel .section-title {
        font-size: 2.5rem;
    }
    
    .beneficios-carrusel .section-subtitle {
        font-size: 1.4rem;
    }
    
    .diploma-number {
        font-size: 4rem;
    }
    
    .diploma-title {
        font-size: 1.8rem;
    }
    
    .carrusel-slide {
        padding: 2rem 1rem;
    }

    /* Carrusel de diplomados detallados */
    .diploma-tab {
        min-width: 100%;
    }
    
    .diploma-detalle {
        padding: 0.5rem;
    }
    
    .diploma-sidebar-detalle,
    .diploma-content-detalle {
        padding: 1.5rem;
    }
    
    .diploma-numero-detalle {
        font-size: 5rem;
    }
    
    .diploma-title-detalle {
        font-size: 1.6rem;
    }
    
    .diploma-level-detalle {
        font-size: 1rem;
    }
    
    .sidebar-btn-detalle {
        padding: 1rem 1.5rem;
        font-size: 1.2rem;
    }
    
    .diplomas-counter {
        font-size: 1.5rem;
    }
    
    .current-diploma {
        font-size: 2rem;
    }
    
    .counter-label {
        font-size: 1.2rem;
    }
    
    .auto-play-text {
        font-size: 1.2rem;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
}

/* Para reducir movimiento en preferencias de accesibilidad */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
/* =========================================================
   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;
  }
}
