/* ===================================
   GLOBAL STYLES & RESET
   =================================== */

:root {
    --primary-blue: #0a2e52;
    --secondary-blue: #1a3a5f;
    --tertiary-blue: #2a4a6f;
    --accent-gold: #FFC107;
    --light-gold: #FFD54F;
    --accent-gold-dark: #FFC107;
    --text-dark: #2c3e50;
    --grass-light: #3b7e4a;
    --text-light: #6c757d;
    --text-muted: #999;
    --white: #ffffff;
    --light-bg: #f8f9fa;
    --border-light: #e9ecef;
    --bg-light: #f8f9fa;
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-medium: rgba(0, 0, 0, 0.15);
    --shadow-dark: rgba(0, 0, 0, 0.2);
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 16px;
    --border-radius-xl: 20px;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    --section-padding: 5rem 0;
}

/* Barra de carga Programas Destacados */
.progress-bar-destacados-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0.5rem 0 2rem 0;
}
.progress-bar-destacados-bg {
    width: 320px;
    height: 8px;
    background: linear-gradient(90deg, #e0e7ef 0%, #f5f7fa 100%);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px 0 rgba(10,46,82,0.07);
    position: relative;
}
.progress-bar-destacados-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #ffc107 0%, #0a2e52 100%);
    border-radius: 6px;
    transition: width 0.3s cubic-bezier(.4,1.6,.6,1);
    box-shadow: 0 1px 6px 0 rgba(10,46,82,0.13);
}
@media (max-width: 600px) {
    .progress-bar-destacados-bg {
        width: 90vw;
        min-width: 120px;
        max-width: 98vw;
    }
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Evitar solapamiento con CTA en mÃ³viles */
@media (max-width: 576px) {
    /* Hero ocupa pantalla y mantiene cabecera libre */
    .hero {  padding-top: 90px; }
    .hero-content { padding: 0 16px 56px; overflow: visible; }

    /* TipografÃ­a y espaciado mÃ¡s aireados */
    .hero-title {
        font-size: clamp(1.7rem, 5.8vw, 2.1rem);
        line-height: 1.15;
        margin-top: var(--spacing-sm, 12px);
        margin-bottom: var(--spacing-sm, 12px);
    }
    /* Ocultar descripciÃ³n en mÃ³viles */
    .hero-description { display: none; }
    .animated-word-container { margin-bottom: var(--spacing-sm, 12px); }
    .animated-word { font-size: clamp(1.1rem, 5.2vw, 1.4rem); }

    .hero-stats { margin-top: var(--spacing-sm, 12px); }
    .stat-item { padding: 10px 8px; }

    /* Indicador separado del CTA */
    .scroll-indicator { bottom: 12px; }
}

@media (max-width: 480px) {
    .hero-content { padding-bottom: 64px; }
    .hero-title { font-size: clamp(1.6rem, 6.2vw, 1.9rem); }
    .animated-word { font-size: clamp(1.05rem, 5.6vw, 1.3rem); }
    .scroll-indicator { bottom: 10px; }
}

/* Tablet: mantener indicador visible como en desktop y dar espacio seguro */
@media (max-width: 768px) {
    /* Espaciado cÃ³modo en tablet */
    .hero-content { padding-bottom: 40px; }
    /* Evitar recortes por overflow en contenedores internos del hero */
    .hero-content,
    .hero .container,
    .hero .row.align-items-center { overflow: visible; }
    /* TÃ­tulo mÃ¡s compacto en tablet */
    .hero-title {
        font-size: clamp(1.7rem, 3.4vw, 2.1rem);
        line-height: 1.15;
        margin-top: var(--spacing-sm, 12px);
        margin-bottom: var(--spacing-sm, 12px);
    }
    .animated-word { font-size: clamp(1.2rem, 3.4vw, 1.4rem); }
    .scroll-indicator { bottom: 16px; }
}

html {
    overflow-x: hidden;
    scroll-behavior: smooth;
    /* Reserva solo el lado del scrollbar (derecha en LTR) para evitar vacÃ­o a la izquierda */
    scrollbar-gutter: stable;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    max-width: 100vw;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Optimizaciones para mejor rendimiento */
    text-rendering: optimizeLegibility;
    -webkit-font-feature-settings: "liga", "kern";
    font-feature-settings: "liga", "kern";
}

/* OptimizaciÃ³n de contenedores principales */
.main-content {
    padding-top: 90px;
    overflow-x: hidden;
    width: 100%;
    /* OptimizaciÃ³n para GPU */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: transform;
}

/* Reglas mejoradas para prevenir overflow */
.container, 
.container-fluid, 
.row, 
section {
    max-width: 100%;
    overflow-x: hidden;
}

.row {
    margin-left: 0;
    margin-right: 0;
}

/* OptimizaciÃ³n de imÃ¡genes responsivas */
img {
    max-width: 100%;
    height: auto;
    display: block;
    /* OptimizaciÃ³n para carga de imÃ¡genes */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* ===================================
   RESPONSIVE BREAKPOINTS CONSOLIDADOS
   =================================== */

/* Extra Large Devices (1200px y superior) - Desktop */
@media (min-width: 1200px) {
    .main-content {
        padding-top: 100px;
    }
    
    .hero {
        margin-top: -100px;
        padding-top: 100px;
    }
}

/* Large Devices (992px a 1199px) - Desktop pequeÃ±o */
@media (max-width: 1199px) and (min-width: 992px) {
    .main-content {
        padding-top: 90px;
    }
}

/* Medium Devices (768px a 991px) - Tablets */
@media (max-width: 991px) and (min-width: 769px) {
    .main-content {
        padding-top: 80px;
    }
    
    .hero {
        margin-top: -80px;
        padding-top: 80px;
    }
}

/* Small Devices (577px a 768px) - Tablets pequeÃ±as */
@media (max-width: 768px) and (min-width: 577px) {
    .main-content {
        padding-top: 70px;
    }
    
    .hero {
        margin-top: -70px;
        padding-top: 70px;
    }
}

/* Extra Small Devices (481px a 576px) - MÃ³viles grandes */
@media (max-width: 576px) and (min-width: 481px) {
    .main-content {
        padding-top: 60px;
    }
    
    .hero {
        margin-top: -60px;
        padding-top: 60px;
        /* Full mobile viewport height with modern units */
        padding-bottom: 20px;
        background-position: center;
        background-size: cover;
    }
    .hero-content { padding: var(--spacing-md) 0 0; }
    .hero-title { font-size: clamp(1.8rem, 6.5vw, 2.2rem); margin-bottom: 0.75rem; line-height: 1.15; }
    .animated-word-container { margin: 0.4rem 0 1rem 0; }
    .animated-word { font-size: clamp(2.4rem, 12vw, 3.6rem); }
    .hero-description { font-size: 1rem; margin-bottom: 1.5rem; padding: 0 12px; }
}

/* Extra Small Devices (hasta 480px) - MÃ³viles pequeÃ±os */
@media (max-width: 480px) {
    .main-content {
        padding-top: 50px;
    }
    
    .hero {
        margin-top: -50px;
        padding-top: 50px;
        /* Full mobile viewport height with modern units */
        padding-bottom: 16px;
        background-position: center;
        background-size: cover;
    }
    .hero-content { padding: var(--spacing-sm) 0 0; }
    .hero-title { font-size: clamp(1.6rem, 7vw, 2rem); margin-bottom: 0.6rem; line-height: 1.15; }
    .animated-word-container { margin: 0.35rem 0 0.9rem 0; }
    .animated-word { font-size: clamp(2.2rem, 13vw, 3.2rem); }
    .hero-description { font-size: 0.98rem; margin-bottom: 1.25rem; padding: 0 10px; }
}

/* ===================================
   HERO SECTION
   =================================== */

.hero-full-height {
    min-height: 100vh;
}

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: -90px;
    padding-top: 90px;
}

/* Scroll indicator: no debe tapar al CTA del hero */
.scroll-indicator {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 28px;
    z-index: 100; /* por debajo del contenido del hero */
}


/* Asegura que el contenido/CTA quede por encima */
.hero-content,
.hero .btn,
.hero a.btn {
    position: relative;
    z-index: 2;
}

/* Botones de acciÃ³n del Hero: diseÃ±o elegante y simple */
.hero-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: var(--spacing-md, 16px);
}

.hero-buttons .btn-cta {
    padding: 10px 18px;
    border-radius: 999px; /* pill */
    font-weight: 600;
    letter-spacing: 0.2px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
    transition: transform 140ms ease, box-shadow 140ms ease, background-color 140ms ease, color 140ms ease, border-color 140ms ease;
}

/* Primario: sÃ³lido pero limpio */
.hero-buttons .btn-cta.btn-primary {
    /* Azul institucional */
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    color: #ffffff;
}
.hero-buttons .btn-cta.btn-primary:hover,
.hero-buttons .btn-cta.btn-primary:focus {
    background-color: var(--secondary-blue);
    border-color: var(--secondary-blue);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px color-mix(in srgb, var(--primary-blue) 28%, transparent);
}

/* Secundario: contorno sutil (ghost) */
.hero-buttons .btn-cta.btn-outline-primary {
    /* Amarillo institucional como acento */
    background-color: transparent;
    border: 2px solid var(--accent-gold);
    color: var(--accent-gold);
}
.hero-buttons .btn-cta.btn-outline-primary:hover,
.hero-buttons .btn-cta.btn-outline-primary:focus {
    background-color: color-mix(in srgb, var(--accent-gold) 16%, transparent);
    border-color: var(--accent-gold-dark);
    color: var(--accent-gold-dark);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px color-mix(in srgb, var(--accent-gold) 24%, transparent);
}

/* Estados activos/pressed sutiles */
.hero-buttons .btn-cta:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.10);
}

/* Accesibilidad: focus visible limpio */
.hero-buttons .btn-cta:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--primary-blue) 35%, white);
    outline-offset: 2px;
}

/* Ajustes responsivos de los botones */
@media (max-width: 768px) {
    .hero-buttons { gap: 10px; }
    .hero-buttons .btn-cta { padding: 10px 16px; }
}
@media (max-width: 576px) {
    .hero-buttons { gap: 8px; }
    .hero-buttons .btn-cta { padding: 9px 14px; font-weight: 600; }
}

/* Evita barra interna por overflow en el contenedor/row del hero */
.hero .container,
.hero .row.align-items-center {
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 193, 7, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 193, 7, 0.08) 0%, transparent 50%);
    pointer-events: none;
    animation: backgroundShift 8s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 15% 85%, rgba(255, 193, 7, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.03) 0%, transparent 50%);
    pointer-events: none;
    opacity: 0.8;
}

@keyframes backgroundShift {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.1) rotate(2deg);
        opacity: 1;
    }
}

/* Responsive para efectos de fondo en mobile */
@media (max-width: 768px) {
    .hero::before {
        background: 
            radial-gradient(circle at 20% 80%, rgba(255, 193, 7, 0.08) 0%, transparent 50%),
            radial-gradient(circle at 80% 20%, rgba(255, 193, 7, 0.06) 0%, transparent 50%);
        will-change: transform, opacity;
    }
    
    .hero::after {
        background: 
            radial-gradient(circle at 15% 85%, rgba(255, 193, 7, 0.015) 0%, transparent 50%),
            radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.02) 0%, transparent 50%);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: var(--spacing-lg) 0;
    animation: heroFadeIn 1.2s ease-out;
    will-change: transform, opacity;
    /* Evita que animaciones internas generen barra de scroll temporal */
    overflow: hidden;
}

.hero-title {
    font-size: clamp(2.5rem, 4vw, 3rem);
    font-weight: 700;
    font-family: 'Poppins', 'Roboto', sans-serif;
    color: #ffffff;
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    line-height: 1.1;
    text-shadow: 0 2px 10px var(--shadow-dark);
    animation: titleSlideUp 1s ease-out 0.3s both;
    letter-spacing: -0.5px;
}

/* Animaciones de entrada */
@keyframes heroFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes titleSlideUp {
    0% {
        opacity: 0;
        transform: translateY(24px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   ANIMATED WORD STYLES
   =================================== */

.animated-word-container {
    margin: 1rem 0 2rem 0;
    animation: containerFadeIn 1s ease-out 0.6s both;
}

.animated-word {
    display: inline-block;
    position: relative;
    background: linear-gradient(135deg, #FFC107 0%, #FFD54F 50%, #FFEB3B 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'Dancing Script', cursive;
    font-weight: 700;
    font-size: clamp(3.2rem, 7.5vw, 5.8rem);
    line-height: 1.1;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-shadow: 0 2px 8px rgba(255, 193, 7, 0.2);
}

.animated-word::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.08), rgba(255, 235, 59, 0.08));
    border-radius: 20px;
    filter: blur(8px);
    opacity: 0.6;
    z-index: -1;
    transition: all 0.4s ease;
}

/* Efecto hover mÃ¡s elegante para la palabra cursiva */
.animated-word:hover {
    text-shadow: 
        0 0 10px rgba(255, 193, 7, 0.6),
        0 0 20px rgba(255, 193, 7, 0.4),
        0 4px 8px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.animated-word:hover::before {
    opacity: 0.8;
    filter: blur(15px);
}

@keyframes containerFadeIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes wordGlow {
    0% {
        text-shadow: 
            0 0 5px rgba(255, 193, 7, 0.3),
            0 0 10px rgba(255, 193, 7, 0.2);
    }
    100% {
        text-shadow: 
            0 0 8px rgba(255, 193, 7, 0.4),
            0 0 15px rgba(255, 193, 7, 0.3);
    }
}

@keyframes glowPulse {
    0%, 100% {
        opacity: 0.4;
    }
    50% {
        opacity: 0.7;
    }
}

/* ===================================
   HERO DESCRIPTION
   =================================== */

.hero-description {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    animation: descriptionFadeIn 1s ease-out 0.6s both;
}

/* ===================================
   HERO STATS
   =================================== */

.hero-stats {
    margin: 3rem 0;
    animation: statsFadeIn 1s ease-out 0.8s both;
}

.stat-item {
    text-align: center;
    padding: 2rem 1rem;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

.stat-item::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #FFC107, #FFD54F);
    transition: width 0.4s ease;
}

.stat-item:hover::before {
    width: 60%;
}

.stat-item:hover {
    transform: translateY(-8px);
}

.stat-number {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 900;
    color: #FFC107;
    line-height: 1;
    margin-bottom: 0.8rem;
    text-shadow: 0 2px 8px rgba(255, 193, 7, 0.2);
    transition: all 0.3s ease;
}

.stat-item:hover .stat-number {
    color: #FFD54F;
    transform: scale(1.1);
    text-shadow: 0 4px 15px rgba(255, 193, 7, 0.4);
}

.stat-label {
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.stat-item:hover .stat-label {
    color: #ffffff;
    letter-spacing: 1.5px;
}

@keyframes statsFadeIn {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* AnimaciÃ³n especÃ­fica para mobile mÃ¡s sutil */
@keyframes statsFadeInMobile {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ===================================
   HERO BUTTONS
   =================================== */

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 2rem;
    animation: buttonsFadeIn 1s ease-out 0.9s both;
}

/* Animaciones adicionales */
@keyframes descriptionFadeIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes buttonsFadeIn {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn-cta {
    position: relative;
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
    overflow: hidden;
    min-width: 200px;
    letter-spacing: 1px;
    will-change: transform;
}

/* BotÃ³n Primario - Solicitar InformaciÃ³n */
.btn-primary.btn-cta {
    background: rgba(255, 193, 7, 0.1);
    color: var(--accent-gold);
    border: 2px solid var(--accent-gold);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.2);
}

.btn-primary.btn-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--light-gold) 100%);
    opacity: 0;
    transition: opacity var(--transition-normal);
    border-radius: 48px;
    z-index: -1;
}

.btn-primary.btn-cta:hover {
    transform: translateY(-3px);
    background: rgba(255, 193, 7, 0.05);
    border-color: var(--light-gold);
    color: var(--primary-blue);
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.3);
}

.btn-primary.btn-cta:hover::before {
    opacity: 1;
}

/* ===================================
   RESPONSIVE HERO SECTION
   =================================== */

/* Tablets y mÃ³viles grandes */
@media (max-width: 768px) {
    .hero-buttons {
        flex-direction: column;
        gap: var(--spacing-sm);
        align-items: center;
    }
    
    .btn-cta {
        width: 100%;
        max-width: 320px;
        min-width: 280px;
        font-size: 1rem;
        padding: 16px 30px;
        text-align: center;
        justify-content: center;
        white-space: nowrap;
    }
    
    .hero-title {
        font-size: clamp(2.8rem, 10vw, 4rem);
    }
    
    .animated-word {
        font-size: clamp(2.6rem, 10vw, 4.2rem);
    }
    
    .animated-word-container {
        margin: 0.8rem 0 1.5rem 0;
    }
    
    .hero-stats {
        margin: 1.5rem 0;
        animation: statsFadeInMobile 1s ease-out 0.8s both;
    }
    
    /* Mantener estadÃ­sticas lado a lado en tablets */
    .hero-stats .col-lg-8 {
        max-width: 100%;
    }
    
    .hero-stats .row.g-4 {
        display: flex;
        flex-wrap: nowrap;
        gap: 0.5rem;
    }
    
    .hero-stats .col-md-4,
    .hero-stats .col-sm-6,
    .hero-stats .col-sm-12 {
        flex: 1;
        min-width: 0;
        max-width: none;
    }
    
    .stat-item {
        padding: 1rem 0.5rem;
        margin-bottom: 0;
        border-radius: var(--border-radius-md);
        background: rgba(255, 255, 255, 0.05);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 193, 7, 0.2);
        min-height: auto;
        animation: statsFadeInMobile 0.6s ease-out both;
    }
    
    .stat-item::before {
        display: none;
    }
    
    .stat-item:hover {
        transform: translateY(-2px) scale(1.02);
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(255, 193, 7, 0.4);
        box-shadow: 0 4px 15px rgba(255, 193, 7, 0.1);
    }
    
    .stat-number {
        font-size: clamp(1.6rem, 6vw, 2.2rem);
        margin-bottom: 0.3rem;
    }
    
    .stat-label {
        font-size: clamp(0.75rem, 2.5vw, 0.9rem);
        letter-spacing: 0.5px;
    }
}

/* Layout alternativo: estadÃ­sticas en lÃ­nea para pantallas muy pequeÃ±as */
@media (max-width: 576px) {
    .hero-stats .col-lg-8 {
        max-width: 100%;
    }
    
    .hero-stats .row.g-4 {
        display: flex;
        flex-wrap: nowrap;
        gap: 0.5rem !important;
    }
    
    .hero-stats .col-md-4,
    .hero-stats .col-sm-6,
    .hero-stats .col-sm-12 {
        flex: 1;
        min-width: 0;
    }
    
    .stat-item {
        padding: 0.8rem 0.3rem;
        border-radius: 8px;
        position: relative;
        overflow: hidden;
    }
    
    /* Efecto de brillo sutil para pantallas pequeÃ±as */
    .stat-item::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 193, 7, 0.1), transparent);
        transform: translateX(-100%);
        transition: transform 2s ease;
    }
    
    .stat-item:hover::after {
        transform: translateX(100%);
    }
    
    .stat-number {
        font-size: clamp(1.3rem, 5vw, 1.8rem) !important;
        margin-bottom: 0.2rem !important;
        position: relative;
        z-index: 2;
    }
    
    .stat-label {
        font-size: clamp(0.65rem, 2vw, 0.8rem) !important;
        line-height: 1.2;
        position: relative;
        z-index: 2;
    }
}

/* ===================================
   HERO BUTTONS - SECONDARY STYLES
   =================================== */

/* BotÃ³n Secundario - Ver Programas */
.btn-outline-primary.btn-cta {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-radius: 50px;
}

.btn-outline-primary.btn-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: width 0.3s ease;
    z-index: -1;
    border-radius: 48px;
}

.btn-outline-primary.btn-cta:hover {
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    color: #ffffff;
}

.btn-outline-primary.btn-cta:hover::before {
    width: 100%;
}

.btn-outline-primary.btn-cta::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid transparent;
    border-radius: 50px;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.8), rgba(255, 213, 79, 0.8)) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: subtract;
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask-composite: subtract;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-outline-primary.btn-cta:hover {
    color: #0a2e52;
    border-color: #FFC107;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 15px 35px rgba(255, 193, 7, 0.3),
        0 5px 15px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-outline-primary.btn-cta:hover::before {
    width: 100%;
}

.btn-outline-primary.btn-cta:hover::after {
    opacity: 1;
}

.btn-outline-primary.btn-cta:active {
    transform: translateY(-1px) scale(1.02);
}

/* Iconos en botones */
.btn-cta i {
    transition: transform 0.3s ease;
}

.btn-cta:hover i {
    transform: translateX(5px);
}

.btn-primary.btn-cta:hover i {
    transform: scale(1.2);
}

/* ===================================
   SCROLL INDICATOR
   =================================== */

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.scroll-arrow {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.5rem;
    animation: bounce 2s infinite;
    z-index: 100;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}


/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 768px) {
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .btn-cta {
        width: 100%;
        max-width: 320px;
        min-width: 280px;
        padding: 18px 30px;
        text-align: center;
        justify-content: center;
        white-space: nowrap;
    }
    
    .animated-word::before {
        top: -3px;
        left: -3px;
        right: -3px;
        bottom: -3px;
        filter: blur(6px);
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-description {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .btn-cta {
        font-size: 1rem;
        padding: 15px 25px;
        max-width: 300px;
        min-width: 260px;
        text-align: center;
        justify-content: center;
    }
}

/* ===================================
   CINTA INFORMATIVA SECTION
   =================================== */

.cinta-section {
    padding: 10px 0;
    background: linear-gradient(135deg, #FFC107 0%, #ffd037 50%, #ffeb34 100%);
    position: relative;
    overflow: hidden;
}

.cinta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.cinta-content {
    position: relative;
    z-index: 2;
}

.cinta-text {
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    font-weight: 600;
    color: #0a2e52;
    margin: 0;
    line-height: 1.2;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.3);
}

.cinta-action {
    position: relative;
    z-index: 2;
}

.btn-cinta {
    background: #0a2e52;
    color: #FFC107;
    border: 2px solid rgba(10, 46, 82, 0.3);
    padding: 12px 28px;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-decoration: none;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(10, 46, 82, 0.3);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-family: 'Roboto', sans-serif;
}

.btn-cinta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    opacity: 0;
    transition: all 0.4s ease;
    border-radius: 10px;
    z-index: -1;
    transform: translateY(100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.btn-cinta::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, 
        rgba(255, 193, 7, 0.2) 0%, 
        transparent 70%);
    transform: translate(-50%, -50%);
    transition: all 0.5s ease;
    border-radius: 50%;
    z-index: 1;
    opacity: 0;
}

.btn-cinta:hover {
    color: #0a2e52;
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(10, 46, 82, 0.2);
}

.btn-cinta:hover::before {
    opacity: 1;
    transform: translateY(0);
}

.btn-cinta:hover::after {
    width: 150px;
    height: 150px;
    opacity: 1;
}

.btn-cinta:active {
    transform: translateY(0);
    box-shadow: 
        0 2px 8px rgba(10, 46, 82, 0.3),
        inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-cinta i {
    transition: all 0.4s ease;
    margin-right: 10px;
    font-size: 1rem;
    position: relative;
    z-index: 2;
    color: #FFC107;
}

.btn-cinta:hover i {
    transform: translateX(3px);
    color: #1a3a5f;
    filter: drop-shadow(0 1px 2px rgba(10, 46, 82, 0.3));
}

.btn-cinta span {
    position: relative;
    z-index: 2;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes borderGlow {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* ===================================
   ADDITIONAL SECTIONS SPACING
   =================================== */

.admision-section,
.programas-section,
.motivacional-section,
.empresas-section,
.noticias-section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #0a2e52;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 3rem;
}

/* Ajuste adicional para mÃ³viles muy pequeÃ±os */
@media (max-width: 480px) {
    .main-content {
        padding-top: 50px; /* AÃºn menos espacio en mÃ³viles pequeÃ±os */
    }
    
    .hero {
        margin-top: -50px;
        padding-top: 50px;
    }
    
    .hero-title {
        font-size: clamp(2.2rem, 10vw, 3.5rem);
    }
    
    .animated-word {
        font-size: clamp(2.1rem, 12vw, 3.4rem) !important;
    }
    
    /* Cinta section responsive */
    .cinta-section {
        padding: 8px 0;
    }
    
    .cinta-text {
        font-size: clamp(1rem, 4vw, 1.2rem);
        margin-bottom: 0.8rem;
        text-align: center;
    }
    
    .cinta-action {
        text-align: center !important;
    }
    
    .btn-cinta {
        font-size: 0.85rem;
        padding: 10px 22px;
        width: 100%;
        max-width: 260px;
        letter-spacing: 0.6px;
        border-radius: 10px;
    }
}

/* Responsive design para cinta en tablets */
@media (max-width: 768px) {
    .cinta-section {
        padding: 12px 0;
    }
    
    .cinta-text {
        font-size: clamp(1.1rem, 3vw, 1.3rem);
        margin-bottom: 1rem;
        text-align: center;
    }
    
    .cinta-action {
        text-align: center !important;
    }
    
    .btn-cinta {
        font-size: 0.88rem;
        padding: 11px 24px;
        border-radius: 10px;
    }
}

/* ===================================
   LO ÃšLTIMO SECTION STYLES
   =================================== */

.lo-ultimo-section {
    background: #f8f9fa;
    padding: 80px 0;
}

.lo-ultimo-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 2rem;
    font-family: 'Roboto', sans-serif;
}

.ultimo-card {
    background: white;
    border: 1px solid #55555552;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.ultimo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.ultimo-image {
    position: relative;
    overflow: hidden;
}

.ultimo-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.ultimo-card:hover .ultimo-image img {
    transform: scale(1.05);
}

.ultimo-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.ultimo-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
    line-height: 1.3;
    font-family: 'Roboto', sans-serif;
}

.ultimo-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.ultimo-action {
    margin-top: auto;
    text-align: right;
}

.btn-ultimo {
    background: #FFC107 ;
    color: rgb(66, 32, 0);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-ultimo:hover {
    background: linear-gradient(135deg, #0a2e52 0%, #1a3a5f 100%);
    color: white;
    transform: scale(1.1);
}

.btn-ultimo i {
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .lo-ultimo-section {
        padding: 60px 0;
    }
    
    .lo-ultimo-title {
        font-size: 2rem;
        text-align: center;
    }
    
    .ultimo-image img {
        height: 180px;
    }
    
    .ultimo-content {
        padding: 1.25rem;
    }
    
    .ultimo-card-title {
        font-size: 1.15rem;
    }
}

/* ===================================
   ADMISIÃ“N SECTION STYLES
   =================================== */

.admision-section {
    background: #ffffff;
    padding: 80px 0;
    border-top: 1px solid #e9ecef;
}

.admision-image {
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    width: 100%; /* Asegurar que tome el ancho completo */
}

.admision-image img {
    width: 100%;
    height: 370px;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.3s ease;
    display: block; /* Eliminar cualquier espacio en lÃ­nea */
}

.admision-image:hover img {
    transform: scale(1.02);
}

.admision-content {
    padding-left: 2rem;
}

.admision-badge {
    display: inline-block;
    background: #f8f9fa;
    color: #0a2e52;
    padding: 5px 20px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    border: 1px solid #e9ecef;
}

.admision-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #0a2e52;
    margin-bottom: 1rem;
    line-height: 1.2;
    font-family: 'Roboto', sans-serif;
}

.admision-deadline {
    margin-bottom: 1.2rem;
}

.deadline-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.deadline-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.deadline-date {
    font-size: 1.3rem;
    font-weight: 700;
    color: #dc3545;
    font-family: 'Roboto', sans-serif;
}

.admision-programs {
    margin-bottom: 1.5rem;
    padding: 1rem 0;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
}

.programs-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.3rem;
    line-height: 1.4;
}

.university-name {
    font-size: 1.1rem;
    color: #0a2e52;
    font-weight: 500;
    margin: 0;
}

.admision-action {
    margin-top: 1.5rem;
}

.btn-admision {
    background: #0a2e52;
    color: white;
    border: none;
    padding: 15px 35px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: background-color 0.3s ease;
}

.btn-admision:hover {
    background: #1a4b73;
    color: white;
}

.btn-admision i {
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 991px) {
    .admision-content {
        margin-top: 3rem;
        text-align: center;
    }
    
    .admision-title {
        font-size: 2.2rem;
    }
    
    .deadline-info {
        align-items: center;
    }
}

@media (max-width: 768px) {
    .admision-section {
        padding: 60px 0;
    }
    
    .admision-section .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .admision-image {
        margin-bottom: 2rem;
        padding: 0; /* Usar solo el padding del Bootstrap column */
    }
    
    .admision-image img {
        height: 280px;
        object-position: center top;
    }
    
    .admision-content {
        padding-left: 0;
        margin-top: 2rem;
        text-align: center;
        padding: 0; /* Usar solo el padding del Bootstrap column */
    }
    
    .admision-title {
        font-size: 2rem;
    }
    
    .programs-title {
        font-size: 1.2rem;
    }
    
    .btn-admision {
        padding: 12px 28px;
        font-size: 0.9rem;
    }
}

/* Estilos especÃ­ficos para mÃ³viles pequeÃ±os */
@media (max-width: 576px) {
    .admision-section {
        padding: 50px 0;
    }
    
    .admision-section .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .admision-section .row {
        margin-left: 0;
        margin-right: 0;
    }
    
    .admision-section .col-lg-6 {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .admision-image {
        margin-bottom: 1.5rem;
        padding: 0; /* Remover el padding extra ya que usamos el del col */
    }
    
    .admision-image img {
        height: 250px;
        border-radius: 8px; /* Reducir border-radius en mÃ³viles */
    }
    
    .admision-content {
        padding: 0; /* Remover el padding extra ya que usamos el del col */
        margin-top: 1.5rem;
    }
    
    .admision-title {
        font-size: 1.8rem;
        line-height: 1.3;
    }
    
    .deadline-date {
        font-size: 1.2rem;
    }
    
    .programs-title {
        font-size: 1.1rem;
    }
    
    .btn-admision {
        padding: 10px 24px;
        font-size: 0.85rem;
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .admision-section {
        padding: 40px 0;
    }
    
    .admision-section .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .admision-section .col-lg-6 {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .admision-image {
        padding: 0; /* Sin padding extra */
    }
    
    .admision-image img {
        height: 220px;
    }
    
    .admision-content {
        padding: 0; /* Sin padding extra */
        margin-top: 1rem;
    }
    
    .admision-title {
        font-size: 1.6rem;
    }
    
    .admision-badge {
        padding: 4px 16px;
        font-size: 0.9rem;
    }
}

/* ===================================
   PROGRAMAS DESTACADOS SECTION STYLES
   =================================== */

.programas-section {
    background: #ffffff;
    padding: 80px 0;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #333;
    font-family: 'Roboto', sans-serif;
}

.programas-navigation {
    display: flex;
    gap: 10px;
}

.btn-nav {
    width: 40px;
    height: 40px;
    border: 2px solid #e9ecef;
    background: white;
    color: #666;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-nav:hover {
    border-color: #e74c3c;
    color: #e74c3c;
}

.programa-card-nueva {
    background: white;
    border: 1px solid #6464644d;
    border-radius: 8px;
    padding: 2rem;
    height: 100%;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    position: relative;
}

.programa-card-nueva:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.programa-content-nueva {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.programa-title-nueva {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1.5rem;
    line-height: 1.4;
    font-family: 'Roboto', sans-serif;
    flex-grow: 1;
}

.programa-details {
    margin-bottom: 2rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.75rem;
    color: #666;
    font-size: 0.9rem;
}

.detail-item i {
    color: #999;
    width: 16px;
    font-size: 0.85rem;
}

.programa-action-nueva {
    margin-top: auto;
    text-align: right;
}

.btn-programa-nueva {
    background:  linear-gradient(135deg, #fcca37  0%, #FFC107  100%);
    color: rgb(66, 32, 0);
    width: 40px;
    height: 40px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-programa-nueva:hover {
    background: linear-gradient(135deg, #0a2e52 0%, #1a3a5f 100%) ;
    color: white;
    transform: scale(1.05);
}

.btn-programa-nueva i {
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .programas-section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .programas-navigation {
        justify-content: center;
    }
    
    .programa-card-nueva {
        padding: 1.5rem;
    }
    
    .programa-title-nueva {
        font-size: 1.15rem;
    }
}

/* ===================================
    MOTIVACIONAL SECTION STYLES
   =================================== */

.motivacional-section {
    position: relative;
    background: linear-gradient(135deg, #00264d 0%, #093264 50%, #03254b 100%);
    padding: 100px 0;
    overflow: hidden;
    min-height: 400px;
    display: flex;
    align-items: center;
}

.motivacional-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.motivacional-background::before {
    content: '';
    position: absolute;
    top: -20%;
    left: 0;
    width: 300px;
    height: 300px;
    background: linear-gradient(45deg, rgba(255, 193, 7, 0.08) 0%, rgba(255, 193, 7, 0.03) 100%);
    border-radius: 50%;
    animation: floatShape1 5s ease-in-out infinite;
}

.motivacional-background::after {
    content: '';
    position: absolute;
    top: 30%;
    right: 0;
    width: 250px;
    height: 250px;
    background: linear-gradient(45deg, rgba(255, 193, 7, 0.06) 0%, rgba(255, 193, 7, 0.02) 100%);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: floatShape2 4s ease-in-out infinite reverse;
}

.motivacional-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 193, 7, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 193, 7, 0.03) 0%, transparent 50%);
    z-index: 2;
}

.motivacional-section .container {
    position: relative;
    z-index: 3;
}

.motivacional-text {
    font-size: 2.5rem;
    color: #ffffff;
    font-family: 'Roboto', sans-serif;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    text-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.4),
        0 4px 8px rgba(0, 0, 0, 0.3),
        0 8px 16px rgba(0, 0, 0, 0.2),
        0 0 30px rgba(255, 193, 7, 0.15);
    position: relative;
}

.motivacional-subtitle {
    font-size: 1.3rem;
    color: #e0e0e0;
    font-weight: 400;
    line-height: 1.5;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    margin: 0;
}

@keyframes floatShape1 {
    0%, 100% {
        transform: translateY(0) rotate(0deg) scale(1);
    }
    50% {
        transform: translateY(-50px) rotate(360deg) scale(1.3);
    }
}

@keyframes floatShape2 {
    0%, 100% {
        transform: translateY(0) rotate(0deg) scale(1);
    }
    50% {
        transform: translateY(-40px) rotate(-360deg) scale(0.8);
    }}

/* Formas adicionales de fondo */
.motivacional-section::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 50%;
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.082) 0%, rgba(255, 193, 7, 0.11) 100%);
    border-radius: 63% 37% 54% 46% / 55% 48% 52% 45%;
    transform: translateX(-50%);
    animation: floatShape3 6s ease-in-out infinite;
    z-index: 1;
}

.motivacional-section::after {
    content: '';
    position: absolute;
    bottom: 20%;
    left: 20%;
    width: 100px;
    height: 100px;
    background: linear-gradient(45deg, rgba(255, 193, 7, 0.05) 0%, rgba(255, 193, 7, 0.01) 100%);
    border-radius: 50%;
    animation: floatShape4 4s ease-in-out infinite;
    z-index: 1;
}

@keyframes floatShape3 {
    0%, 100% {
        transform: translateX(-50%) translateY(0) rotate(0deg);
    }
    50% {
        transform: translateX(-50%) translateY(-30px) rotate(180deg);
    }
}

@keyframes floatShape4 {
    0%, 100% {
        transform: translateY(0) scale(1) rotate(0deg);
    }
    50% {
        transform: translateY(-40px) scale(1.4) rotate(180deg);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .motivacional-section {
        padding: 80px 0;
        min-height: 300px;
    }
    
    .motivacional-text {
        font-size: 2rem;
        line-height: 1;
        margin-bottom: 1rem;
    }
    
    .motivacional-subtitle {
        font-size: 1rem;
    }
    
    .motivacional-background::before {
        width: 200px;
        height: 200px;
    }
    
    .motivacional-background::after {
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 480px) {
    .motivacional-section {
        padding: 60px 0;
    }
    
    .motivacional-background::before {
        width: 150px;
        height: 150px;
        left: 10px;
    }
    
    .motivacional-background::after {
        width: 120px;
        height: 120px;
        right: 10px;
    }
}

/* Prevenir overflow horizontal en dispositivos muy pequeÃ±os */
@media (max-width: 320px) {
    .motivacional-background::before,
    .motivacional-background::after {
        opacity: 0.3;
        width: 100px;
        height: 100px;
    }
    
    .motivacional-background::before {
        left: 20px;
    }
    
    .motivacional-background::after {
        right: 20px;
    }
}

@media (max-width: 320px) {
    .motivacional-text {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
    }
    
    .motivacional-subtitle {
        font-size: 1rem;
    }
}

/* ===================================
   TESTIMONIOS SECTION STYLES
   =================================== */

.testimonios-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 80px 0;
    overflow: hidden;
}

.testimonios-marquee-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin: 1rem 0;
}

.testimonios-marquee-container::before,
.testimonios-marquee-container::after {
    content: '';
    position: absolute;
    top: 0;
    width: 200px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.testimonios-marquee-container::before {
    left: 0;
    background: linear-gradient(to right, #f8f9fa, rgba(248, 249, 250, 0));
}

.testimonios-marquee-container::after {
    right: 0;
    background: linear-gradient(to left, #f8f9fa, rgba(248, 249, 250, 0));
}

.testimonios-marquee {
    display: flex;
    gap: 2rem;
    animation: marquee 40s linear infinite;
    width: fit-content;
}

.testimonios-marquee:hover {
    animation-play-state: paused;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.testimonio-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    min-width: 320px;
    max-width: 320px;
    border-top: 3px solid #0a2e52;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex-shrink: 0;
}

.testimonio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.testimonio-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e9ecef;
}

.author-info {
    flex: 1;
}

.author-name {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin: 0;
    line-height: 1.2;
    font-family: 'Roboto', sans-serif;
}

.author-handle {
    font-size: 0.875rem;
    color: #666;
    margin: 0;
    margin-top: 2px;
}

.testimonio-text {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
    .testimonios-section {
        padding: 60px 0;
    }
    
    .testimonios-marquee-container::before,
    .testimonios-marquee-container::after {
        width: 100px;
    }
    
    .testimonios-marquee {
        gap: 1.5rem;
        animation-duration: 30s;
    }
    
    .testimonio-card {
        min-width: 280px;
        max-width: 280px;
        padding: 1.25rem;
    }
    
    .author-avatar {
        width: 40px;
        height: 40px;
    }
    
    .author-name {
        font-size: 0.95rem;
    }
    
    .testimonio-text {
        font-size: 0.9rem;
    }
}

/* ===================================
   EMPRESAS SECTION
   =================================== */

.empresas-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
}

.empresas-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 193, 7, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.empresas-grid {
    position: relative;
    z-index: 1;
}

.empresa-logo {
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.empresa-logo:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: rgba(120, 119, 198, 0.2);
}

.empresa-logo img {
    max-width: 100%;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: none;
    transition: all 0.3s ease;
}

.empresa-logo:hover img {
    filter: none;
    transform: scale(1.05);
}

/* Responsive */
@media (max-width: 768px) {
    .empresas-section {
        padding: 60px 0;
    }
    
    .empresa-logo {
        padding: 1rem;
        height: 100px;
    }
    
    .empresa-logo img {
        max-height: 60px;
    }
    
    .empresas-grid .row {
        margin-bottom: 1.5rem !important;
    }
    
    .empresas-grid .row:last-child {
        margin-bottom: 0 !important;
    }
}

@media (max-width: 576px) {
    .empresa-logo {
        padding: 0.75rem;
        height: 80px;
    }
    
    .empresa-logo img {
        max-height: 50px;
    }
}

/* ===================================
   INFORMACIÃ“N Y CONTACTO SECTION
   =================================== */

.info-contacto-section {
    padding: 50px 0;
    background: linear-gradient(135deg, #0a2e52 0%, #0d3a63 100%);
    position: relative;
    color: #fff;
}

.info-contacto-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 70%, rgba(255, 193, 7, 0.1) 0%, transparent 50%),
        radial-gradient(circle at  70% 30%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.info-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.info-subtitle {
    font-size: 0.95rem;
    color: #e0e0e0;
    margin-bottom: 0;
    line-height: 1.4;
}

.formulario-contacto {
    background: #fff;
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
    height: fit-content;
}

.contact-form .form-control,
.contact-form .form-select {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0.6rem 0.75rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: #fafbfc;
    margin-bottom: 0.75rem;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    border-color: #0a2e52;
    box-shadow: 0 0 0 0.15rem rgba(10, 46, 82, 0.15);
    background: #fff;
}

.form-label-small {
    font-size: 0.75rem;
    color: #6c757d;
    margin-top: -0.5rem;
    margin-bottom: 0.75rem;
    display: block;
    font-weight: 500;
}

.phone-input {
    display: flex;
    gap: 0.5rem;
}

.country-code {
    flex: 0 0 80px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0.6rem 0.4rem;
    font-size: 0.8rem;
    background: #fafbfc;
    transition: all 0.3s ease;
    margin-bottom: 0.75rem;
}

.country-code:focus {
    border-color: #0a2e52;
    box-shadow: 0 0 0 0.15rem rgba(10, 46, 82, 0.15);
    background: #fff;
}

.phone-input .form-control {
    flex: 1;
}

.form-check {
    margin-bottom: 0.75rem;
}

.form-check-input:checked {
    background-color: #0a2e52;
    border-color: #0a2e52;
}

.form-check-label {
    font-size: 0.85rem;
    color: #555;
    line-height: 1.3;
}

.btn-submit {
    background: linear-gradient(135deg, #0a2e52 0%, #0d3a63 100%);
    border: none;
    padding: 0.75rem 1.25rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95rem;
    width: 100%;
    transition: all 0.3s ease;
    text-transform: none;
    color: #fff;
    margin-top: 0.5rem;
}

.btn-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(10, 46, 82, 0.3);
    background: linear-gradient(135deg, #FFC107 0%, #FFB300 100%);
    color: #0a2e52;
}

/* Estilos para checkboxes del formulario */
.form-check-input {
    width: 1.1rem;
    height: 1.1rem;
    border: 2px solid #0a2e52;
    border-radius: 4px;
    background-color: transparent;
    margin-top: 0.1rem;
}

.form-check-input:checked {
    background-color: #FFC107;
    border-color: #FFC107;
}

.form-check-input:focus {
    border-color: #FFC107;
    box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25);
}

.form-check-label {
    font-size: 0.85rem;
    color: black;
    line-height: 1.4;
    margin-left: 0.5rem;
    cursor: pointer;
}

.info-side {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contacto-info-simple {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contacto-item-destacado {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contacto-item-compacto {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.icono-contacto {
    background: #FFC107;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.icono-contacto-pequeno {
    background: #FFC107;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.icono-contacto i {
    font-size: 1.2rem;
    color: #0a2e52;
}

.icono-contacto-pequeno i {
    font-size: 0.9rem;
    color: #0a2e52;
}

.contacto-content {
    display: flex;
    flex-direction: column;
}

.contacto-content-compacto {
    display: flex;
    flex-direction: column;
}

.contacto-label {
    font-size: 0.9rem;
    color: #FFC107;
    font-weight: 500;
    margin-bottom: 0.2rem;
}

.contacto-label-pequeno {
    font-size: 0.8rem;
    color: #FFC107;
    font-weight: 500;
    margin-bottom: 0.15rem;
}

.contacto-telefono {
    font-size: 1.3rem;
    color: #fff;
    font-weight: 700;
    margin-bottom: 0.1rem;
}

.contacto-telefono-pequeno {
    font-size: 1rem;
    color: #fff;
    font-weight: 600;
    margin-bottom: 0.1rem;
}

.contacto-disponibilidad {
    font-size: 0.8rem;
    color: #e0e0e0;
    font-weight: 400;
}

.contacto-disponibilidad-pequeno {
    font-size: 0.7rem;
    color: #e0e0e0;
    font-weight: 400;
}

.mapa-container {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.25rem;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex: 1;
}

.mapa-title {
    color: #FFC107;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-align: center;
}

.mapa-embed {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    margin-bottom: 0.75rem;
    position: relative;
    min-height: 280px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mapa-embed iframe {
    display: block;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
}

/* Fallback cuando el mapa no carga */
.mapa-embed::before {
    content: "ðŸ—ºï¸ Mapa de ubicaciÃ³n";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #666;
    font-size: 1rem;
    text-align: center;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.direccion-compacta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: rgba(255, 193, 7, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(255, 193, 7, 0.2);
}

.direccion-compacta i {
    color: #FFC107;
    font-size: 0.9rem;
}

.direccion-compacta span {
    color: #e0e0e0;
    font-size: 0.85rem;
    font-weight: 500;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .info-contacto-section {
        padding: 35px 0;
    }
    
    .info-title {
        font-size: 1.5rem;
    }
    
    .formulario-contacto {
        padding: 1.25rem;
        margin-bottom: 2rem;
    }
    
    .phone-input {
        flex-direction: column;
    }
    
    .country-code {
        flex: none;
    }
    
    .info-side {
        gap: 1.25rem;
    }
    
    .contacto-info-simple {
        padding: 1.25rem;
    }
    
    .mapa-container {
        padding: 1rem;
    }
    
    .mapa-embed iframe {
        height: 180px;
    }
    
    .contacto-item-destacado {
        gap: 0.75rem;
    }
    
    .contacto-item-compacto {
        gap: 0.6rem;
    }
    
    .icono-contacto {
        width: 45px;
        height: 45px;
    }
    
    .icono-contacto-pequeno {
        width: 30px;
        height: 30px;
    }
    
    .icono-contacto-pequeno i {
        font-size: 0.8rem;
    }
    
    .contacto-telefono {
        font-size: 1.1rem;
    }
    
    .contacto-telefono-pequeno {
        font-size: 0.9rem;
    }
}

/* ===================================
   CORRECCIONES ADICIONALES MOBILE
   =================================== */

/* Prevenir overflow horizontal global */
* {
    max-width: 100%;
}

/* EspecÃ­fico para elementos posicionados */
[class*="position-absolute"], 
[class*="position-fixed"],
*::before,
*::after {
    max-width: calc(100vw - 10px);
}

/* Asegurar que bootstrap no cause overflow */
.row {
    margin-left: 0;
    margin-right: 0;
}

.container,
.container-fluid {
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
}

/* Regla final para asegurar responsividad total */
@media (max-width: 991px) {
    *:not(.btn-cta):not(.hero-buttons):not(.hero-buttons *):not(img.footer-logo):not(.testimonio-card):not(.popup-content):not(.popup-overlay):not(.popup-content *):not(.popup-overlay *) {
        max-width: 100vw !important;
    }
    
    /* Mantener tamaÃ±o original de botones del hero */
    .btn-cta {
        max-width: none !important;
        width: auto !important;
    }
    
    .hero-buttons {
        max-width: none !important;
        width: auto !important;
    }
    
    /* Ocultar elementos decorativos problemÃ¡ticos en tablets */
    .motivacional-background::before,
    .motivacional-background::after {
        width: 120px !important;
        height: 120px !important;
    }
}

@media (max-width: 576px) {
    /* Asegurar que ningÃºn elemento cause overflow */
    .row {
        margin-left: -10px;
        margin-right: -10px;
    }
    
    .col-1, .col-2, .col-3, .col-4, .col-5, .col-6,
    .col-7, .col-8, .col-9, .col-10, .col-11, .col-12,
    .col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6,
    .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12,
    .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6,
    .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12,
    .col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6,
    .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12 {
        padding-left: 10px;
        padding-right: 10px;
    }
}

/* ================================
   DISEÃ‘O DE PROGRAMAS (copiado de programas-styles.css)
   ================================ */

.programas-section {
    padding: 4rem 0;
    background: var(--light-bg);
}

#programas-container {
    padding: 1rem;
}

.section-header {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--accent-gold);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.btn-admision-programa {
    background: #0a2e52;
    color: white;
    border-radius: 10px;
    border: none;
    padding: 10px 25px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: background-color 0.3s ease;
}

.programa-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid var(--gray-300);
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
}

.programa-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.card-header {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.programa-card:hover .card-image {
    transform: scale(1.05);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 46, 82, 0.7) 0%, rgba(26, 58, 95, 0.5) 100%);
}

.tipo-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tipo-maestria {
    background: var(--accent-gold);
    color: var(--primary-blue);
}

.tipo-doctorado {
    background: var(--primary-blue);
    color: var(--white);
}
.tipo-especialidad {
    background: var(--grass-light);
    color: var(--white)
}
.card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.programa-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.facultad-name {
    font-size: 0.9rem;
    color: var(--accent-gold-dark);
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.programa-description {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.programa-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.detail-item {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.detail-item i {
    margin-right: 6px;
    color: var(--accent-gold-dark);
    width: 16px;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.btn-ver-mas {
    background: var(--primary-blue);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-ver-mas:hover {
    background: var(--accent-gold);
    color: var(--primary-blue);
    transform: translateY(-2px);
}

.btn-admision-programa {
    background: var(--accent-gold); /* Using accent-gold for consistency with other admission buttons */
    color: var(--primary-blue);
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex; /* Ensure it behaves like a button */
    align-items: center;
    justify-content: center;
}

.btn-admision-programa:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-admision {
    background: var(--accent-gold);
    color: var(--primary-blue);
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 2px solid var(--accent-gold);
}

.btn-admision:hover {
    background: transparent;
    color: var(--accent-gold);
    border-color: var(--accent-gold);
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2.2rem;
    }
    .programa-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    .card-footer {
        flex-direction: column;
        gap: 1rem;
    }
    .btn-ver-mas,
    .btn-admision,
    .btn-admision-programa {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 2rem;
    }
}
.popup-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup-content {
    position: relative;
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    max-width: 600px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    text-align: center;
    z-index: 1001;
}

@media (max-width: 768px) {
    .popup-content {
        max-width: 50vw;
        width: 50vw;
        border-radius: 10px;
        box-shadow: 0 2px 10px rgba(10,46,82,0.13);
    }
}

@media (max-width: 425px) {
    .popup-content {
        max-width: 80vw;
        width: 80vw;
        border-radius: 10px;
        box-shadow: 0 2px 10px rgba(10,46,82,0.13);
    }
}

.popup-content img {
    max-width: 100% !important;
    border-radius: 8px;
    cursor: pointer;
}

.popup-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #007bb4;
    border: none;
    color: #fff;
    font-weight: bold;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    font-size: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.popup-close:hover {
    background: #008bcc;
}

/* ===================================
   REVISTA VIDEO SECTION
   =================================== */

.revista-video-section {
    padding: 5rem 0;
    background-color: #f8f9fa; /* Light background for contrast */
    position: relative;
    overflow: hidden;
}

/* Background decoration */
.revista-video-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 90% 10%, rgba(10, 46, 82, 0.03) 0%, transparent 40%),
                radial-gradient(circle at 10% 90%, rgba(255, 193, 7, 0.03) 0%, transparent 40%);
    pointer-events: none;
}

.revista-video-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.revista-video-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-gold);
    margin: 0.5rem auto 0;
    border-radius: 2px;
}

.revista-video-subtitle {
    font-family: 'Roboto', sans-serif;
    font-size: 1.1rem;
    color: #6c757d;
    max-width: 700px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

/* Video Container Enhanced */
.video-container-enhanced {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    background: #000;
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-container-enhanced:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

/* Aspect Ratio Wrapper (16:9) */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
}

.video-wrapper video,
.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none;
}

/* Optional: Overlay play button style if using custom controls or poster */
.video-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(255, 193, 7, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
    box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.7);
    animation: pulse-gold 2s infinite;
}

.video-play-overlay:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background: #fff;
    color: var(--accent-gold);
}

.video-play-overlay i {
    font-size: 2rem;
    color: #fff;
    margin-left: 4px; /* Optical adjustment for play icon */
    transition: color 0.3s ease;
}

.video-play-overlay:hover i {
    color: var(--accent-gold);
}

@keyframes pulse-gold {
    0% {
        transform: translate(-50%, -50%) scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.7);
    }
    70% {
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 0 0 20px rgba(255, 193, 7, 0);
    }
    100% {
        transform: translate(-50%, -50%) scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0);
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .revista-video-section {
        padding: 3rem 0;
    }
    
    .revista-video-title {
        font-size: 1.8rem;
    }
    
    .video-container-enhanced {
        border-radius: 12px;
    }
}
