
:root {
    --primary-color: #1C1B1B;
    --secondary-color: #FFDB58;
    --accent-color: #e74c3c;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --dark-color: #1a252f;
    --light-color: #ecf0f1;
    --white-color: #ffffff;
    --text-color: #34495e;
}

/* Reset y Estilos Generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================
   HERO ACADÉMICO
========================================== */
.academic-hero {
    background-image: url('../image/bg-hero.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
    padding: 130px 0 60px 0; /* Agregar padding-top para cubrir el header */
    margin-top: -130px; 
}

.academic-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(28, 27, 27, 0.65);
    z-index: 1;
}

.academic-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255,255,255,0.05) 0%, transparent 50%);
    z-index: 2;
}

.academic-hero .container {
    position: relative;
    z-index: 3;
}

.academic-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 10px 25px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 25px;
    border: 2px solid rgba(255,255,255,0.3);
}

.hero-academic-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    color: black;
    line-height: 1.2;
    margin-bottom: 25px;
}

.text-highlight {
    color: #FFDB58;;
    position: relative;
}

.hero-academic-text {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.9);
    line-height: 1.8;
    margin-bottom: 30px;
    max-width: 600px;
}

.hero-stats-mini {
    display: flex;
    gap: 30px;
    margin-bottom: 35px;
    flex-wrap: wrap;
}

.stat-mini-item {
    display: flex;
    flex-direction: column;
}

.stat-mini-item strong {
    font-size: 2rem;
    color: #3498db;
    font-weight: 800;
}

.stat-mini-item span {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
}

.hero-academic-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-academic-primary {
    background: var(--secondary-color);
    color: white;
    padding: 15px 35px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    border: 2px solid var(--secondary-color);
}

.btn-academic-primary:hover {
    background: #2980b9;
    color: white;
    text-decoration: none;
}

.btn-academic-outline {
    background: transparent;
    color: white;
    padding: 15px 35px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    border: 2px solid white;
}

.btn-academic-outline:hover {
    background: white;
    color: var(--primary-color);
    text-decoration: none;
}

/* ==========================================
   SECCIONES ACADÉMICAS
========================================== */
.section-academic-header {
    margin-bottom: 50px;
}

.academic-subtitle {
    display: block;
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.academic-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.academic-description {
    font-size: 1.1rem;
    color: var(--text-color);
    max-width: 700px;
    margin: 0 auto;
}

/* ==========================================
   SECCIÓN DE CAMPUS
========================================== */
.news-carousel-section {
    padding: 80px 0;
    background: var(--light-color);
}

/* ==========================================
   CARRUSEL DE CARRERAS - CORREGIDO
========================================== */
.campus-carousel-section {
    margin-bottom: 60px;
}

.campus-carousel-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 30px;
    text-align: center;
}

.careers-carousel-wrapper {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.careers-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    min-height: 550px; /* Asegura altura consistente */
}

/* CRÍTICO: Ocultar items no activos */
.career-carousel-item {
    display: none !important; /* IMPORTANTE: !important para forzar */
    opacity: 0;
}

.career-carousel-item.active {
    display: block !important; /* IMPORTANTE: !important para forzar */
    opacity: 1;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(10px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* Botones de navegación */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.carousel-btn:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn:focus {
    outline: none;
}

.carousel-prev {
    left: -60px;
}

.carousel-next {
    right: -60px;
}

/* Indicadores */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: var(--secondary-color);
    width: 30px;
    border-radius: 6px;
}

.indicator:hover {
    background: var(--primary-color);
}

/* Responsive */
@media (max-width: 768px) {
    .careers-carousel-wrapper {
        max-width: 100%;
    }
    
    .careers-carousel {
        min-height: 650px;
    }
    
    .carousel-prev {
        left: 10px;
    }
    
    .carousel-next {
        right: 10px;
    }
    
    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}
/* ==========================================
   CARDS DE PROGRAMAS
========================================== */
.program-card {
    background: white;
    border-radius: 12px;
    padding: 35px;
    height: 100%;
    border: 2px solid #e0e0e0;
    position: relative;
    overflow: hidden;
}

.program-card.featured {
    border-color: var(--secondary-color);
    box-shadow: 0 10px 30px rgba(52, 152, 219, 0.2);
}

.program-ribbon {
    position: absolute;
    top: 15px;
    right: -30px;
    background: var(--secondary-color);
    color: white;
    padding: 5px 40px;
    transform: rotate(45deg);
    font-size: 0.75rem;
    font-weight: 600;
}

.program-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #131414 0%, #b9b229 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.program-icon i {
    font-size: 2.5rem;
    color: white;
}

.program-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.program-duration {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 15px;
    display: block;
}

.program-highlights {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.program-highlights li {
    padding: 8px 0;
    color: var(--text-color);
}

.program-highlights i {
    color: var(--success-color);
    margin-right: 10px;
}

/* ==========================================
   TESTIMONIOS ACADÉMICOS
========================================== */
.testimonials-academic-section {
    padding: 80px 0;
    background: var(--light-color);
}

.testimonial-academic-card {
    background: white;
    border-radius: 12px;
    padding: 40px;
    margin: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.testimonial-quote i {
    font-size: 3rem;
    color: var(--secondary-color);
    opacity: 0.2;
    margin-bottom: 20px;
}

.testimonial-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    font-style: italic;
    margin-bottom: 30px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 20px;
}

.author-photo img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid var(--secondary-color);
}

.author-info h5 {
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 5px;
}

.author-info p {
    color: var(--text-color);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.author-rating i {
    color: var(--warning-color);
    font-size: 0.9rem;
}

/* ==========================================
   ASIGNATURAS / FEATURES
========================================== */
.why-choose-section {
    padding: 80px 0;
}

.advantage-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.advantage-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.advantage-icon i {
    font-size: 1.5rem;
    color: white;
}

.advantage-content h5 {
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 8px;
}

.advantage-content p {
    color: var(--text-color);
    margin: 0;
}

.feature-academic-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 2px solid #e0e0e0;
    position: relative;
    overflow: hidden;
}

.feature-academic-card i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.feature-academic-card h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.feature-academic-card p {
    color: var(--text-color);
    font-size: 0.95rem;
}

/* ==========================================
   ESTADÍSTICAS
========================================== */
.stats-academic-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    position: relative;
}

.stats-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #FFDB58;
}

.stats-academic-section .container {
    position: relative;
    z-index: 2;
}

.stat-academic-item {
    color: white;
}

.stat-icon {
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.stat-icon i {
    font-size: 2rem;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* ==========================================
   CTA FINAL
========================================== */
.cta-academic-section {
    padding: 80px 0;
    background: var(--dark-color);
    color: white;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.cta-text {
    font-size: 1.2rem;
    opacity: 0.9;
}

.btn-cta-large {
    display: inline-block;
    background: var(--secondary-color);
    color: white;
    padding: 15px 40px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid var(--secondary-color);
}

.btn-cta-large:hover {
    background: black;
    color: white;
    text-decoration: none;
}

/* ==========================================
   RESPONSIVIDAD
========================================== */
@media (max-width: 991px) {
    .academic-hero {
        background-attachment: scroll;
    }
    
    .hero-academic-title {
        font-size: 2.5rem;
        color: black

    }
    
    .academic-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-stats-mini {
        justify-content: center;
    }
    
    .hero-academic-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-academic-primary,
    .btn-academic-outline {
        width: 100%;
        justify-content: center;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .cta-title {
        font-size: 2rem;
    }
    
    .careers-carousel-wrapper {
        max-width: 100%;
    }
    
    .carousel-prev {
        left: -10px;
    }
    
    .carousel-next {
        right: -10px;
    }
    
    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}

/* ==========================================
   ACCESIBILIDAD
========================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

:focus-visible {
    outline: 3px solid var(--secondary-color);
    outline-offset: 3px;
}

/* ==========================================
   BOTÓN SCROLL TO TOP
========================================== */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #FFDB58;
    backdrop-filter: blur(10px);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: none; /* Oculto por defecto */
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
}

.scroll-to-top:hover {
    background: black;
    transform: translateY(-5px);
    box-shadow: 0 6px 20px #FFDB58;
}

.scroll-to-top.show {
    display: flex;
    animation: fadeInUp 0.3s ease;
}

.scroll-to-top i {
    font-size: 1.2rem;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .scroll-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }
    
    .scroll-to-top i {
        font-size: 1rem;
    }
}

/* ==========================================
   HEADER TRANSPARENTE CON GLASSMORPHISM
========================================== */
.header-glass {
    background: rgba(30, 60, 114, 0.15);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.4s ease-in-out; /* Transición suave */
    z-index: 1000;
    position: fixed;
    top: 0;
    width: 100%;
}

/* Header oculto */
.header-glass.hidden {
    transform: translateY(-100%);
}

/* Header al hacer scroll */
.header-glass.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Logo */
.header-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: black;
    font-size: 1.5rem;
    font-weight: 700;
    transition: all 0.3s ease;
}

.header-logo i {
    font-size: 1.8rem;
}

.header-logo:hover {
    color: #FFDB58;
    transform: translateY(-2px);
}

.logo-text {
    font-weight: 800;
}

/* Botones Glassmorphism */
.btn-glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.btn-glass-primary {
    background: #1C1B1B;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    font-weight: 600;
}

.btn-glass-primary:hover {
    background: #FFDB58;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(52, 152, 219, 0.4);
}

/* ==========================================
   MENÚ TRANSPARENTE
========================================== */
.navbar-glass {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0;
}

.navbar-toggler {
    border: none;
    padding: 10px;
}

.navbar-toggler-icon-glass {
    color: white;
    font-size: 1.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Links del Menú */
.navbar-nav {
    gap: 5px;
}

.nav-link-glass {
    color: rgba(255, 255, 255, 0.9);
    padding: 15px 20px;
    text-decoration: none;
    display: flex;
    align-items: center;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
}

.nav-link-glass:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    transform: translateY(-2px);
}

.nav-link-glass.active {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.nav-link-glass.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20px;
    right: 20px;
    height: 3px;
    background: #FFDB58;
    border-radius: 3px 3px 0 0;
}

/* ==========================================
   FOOTER
========================================== */
.footer {
    background: #1C1B1B;
    color: white;
    padding: 60px 0 30px;
}

.footer h5 {
    color: #FFDB58;
    margin-bottom: 20px;
    font-weight: 700;
}

.footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer a:hover {
    color: #FFDB58;
    padding-left: 5px;
}

.social-links a {
    color: white;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: #FFDB58;
    transform: translateY(-3px);
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ==========================================
   EFECTO SCROLL EN HEADER
========================================== */
@media (min-width: 992px) {
    .header-glass.scrolled .header-logo {
        color: var(--dark-color);
    }
    
    .header-glass.scrolled .nav-link-glass {
        color: var(--dark-color);
    }
    
    .header-glass.scrolled .btn-glass {
        background: rgba(52, 152, 219, 0.1);
        color: var(--dark-color);
        border-color: rgba(52, 152, 219, 0.3);
    }
}

/* ==========================================
   RESPONSIVE
========================================== */
@media (max-width: 991px) {
    .navbar-glass .navbar-collapse {
        background: rgba(30, 60, 114, 0.95);
        backdrop-filter: blur(20px);
        margin-top: 15px;
        border-radius: 12px;
        padding: 20px;
    }
    
    .nav-link-glass {
        justify-content: flex-start;
        padding: 12px 15px;
    }
    
    .btn-glass,
    .btn-glass-primary {
        width: 50px;
        height: 50px;
        padding: 0;
        justify-content: center;
    }
    
    .btn-glass span,
    .btn-glass-primary span {
        display: none !important;
    }
}

