/*
  ARCHIVO: style.css
  PROYECTO: Sitio Web Institucional - U.E.N. Santa Rosalía
  DESCRIPCIÓN: Sistema de diseño completo, temas y animaciones CSS3.
  VERSIÓN: 1.0.0
  AUTORES: Luis Enrique Melendez Montilla, Anghelo Ramirez
  FECHA ACTUALIZACIÓN: 09/04/2026
  
  SISTEMA DE DISEÑO - ARQUITECTURA VISUAL
  Enfoque: Educativo, Moderno, Premium (Glassmorphism & Micro-animations).
  
  ESTRUCTURA DEL ARCHIVO:
  1. Variables CSS (Sistema de Tokens)
  2. Modos de Color (Light/Dark themes)
  3. Reset y Tipografía base
  4. Header & Navbar (Sticky effects)
  5. Hero Section (Parallax & Layout)
  6. Components (Cards, Buttons, Badges)
  7. Layout Grids (Responsive system)
  8. Interactions & Animations
  9. Modals & Complex UI
*/

:root {
    /* VARIABLES CSS - SISTEMA DE DISEÑO */

    /* Paleta de Colores Institucional */
    --Nuevo: #252527;
    /* Paleta Educativa Premium - MODO CLARO */
    --primary: #000000;
    /* Azul Marino Institucional - Color principal */
    --secondary: #a88100;
    /* Dorado Clásico - Color secundario */
    --secondary-light: #d0992b;
    /* Dorado Claro - Variante secundaria */
    --accent: #b91c1c;
    /* Rojo Carmesí - Color de acento para alertas */
    --background: #ffffff;
    /* Fondo principal */
    --surface: #ffffff;
    /* Superficie de tarjetas y componentes */
    --text-main: #1e293b;
    /* Texto principal */
    --text-muted: #64748b;
    /* Texto secundario/muted */

    /* Tipografía */
    --font-heading: 'Outfit', sans-serif;
    /* Fuente para encabezados */
    --font-body: 'Inter', sans-serif;
    /* Fuente para cuerpo de texto */

    /* Efectos de vidrio mejorados */
    --glass-bg: rgba(255, 255, 255, 0.95);
    /* Fondo vidrio */
    --glass-border: rgba(30, 58, 95, 0.1);
    /* Borde vidrio */
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    /* Sombra vidrio */

    /* Sistema de sombras */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    /* Sombra pequeña */
    --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
    /* Sombra mediana */
    --shadow-lg: 0 20px 50px -12px rgba(0, 0, 0, 0.12);
    /* Sombra grande */
    --shadow-xl: 0 25px 60px -15px rgba(0, 0, 0, 0.15);
    /* Sombra extra grande */
    --shadow-2xl: 0 35px 80px -20px rgba(0, 0, 0, 0.2);
    /* Sombra doble extra grande */

    /* Sistema de bordes redondeados */
    --radius-sm: 0.5rem;
    /* Radio pequeño */
    --radius-md: 1rem;
    /* Radio mediano */
    --radius-lg: 2rem;
    /* Radio grande */

    /* Sistema de transiciones */
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    /* Transición suave para todas las propiedades */
}

/* MODO OSCURO - Variables sobrescritas */
body.dark-mode {
    --Nuevo: #ffffff;
    --primary: #e5e7eb;
    /* Gris claro para texto principal */
    --secondary: #b5962f;
    /* Dorado más vibrante */
    --secondary-light: rgba(251, 191, 36, 0.15);
    --background: #000000;
    /* Negro puro */
    --surface: #1a1a1a;
    /* Gris muy oscuro */
    --text-main: #f3f4f6;
    /* Blanco suave */
    --text-muted: #9ca3af;
    /* Gris medio */
    --glass-bg: rgba(26, 26, 26, 0.95);
    --glass-border: rgba(255, 255, 255, 0.1);
}

/* Ajustes modo oscuro para elementos específicos */
body.dark-mode .navbar {
    background: var(--surface);
    border-bottom: 1px solid var(--glass-border);
}

body.dark-mode .logo-img-wrapper {
    background: #000000 !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

body.dark-mode .logo-img-wrapper i {
    color: white !important;
}

body.dark-mode .logo {
    color: #f3f4f6 !important;
}

body.dark-mode .logo span {
    color: var(--secondary) !important;
}

body.dark-mode .hero {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.85)),
        url('../assets/images/hero-venezuela.png') center/cover no-repeat;
}

body.dark-mode .feature-card {
    background: var(--surface);
    border-color: var(--glass-border);
}

body.dark-mode .calendar-month {
    background: var(--surface);
    border-color: var(--glass-border);
}

body.dark-mode .modal-content {
    background-color: var(--background);
}

body.dark-mode .btn-nav-cal {
    background: var(--surface);
    border-color: var(--glass-border);
    color: #f3f4f6;
}

body.dark-mode .calendar-month {
    background: var(--surface);
    border-color: var(--glass-border);
}

body.dark-mode .calendar-month h4 {
    color: #f3f4f6;
}

body.dark-mode .calendar-day.weekend {
    background: rgba(255, 255, 255, 0.05);
}

body.dark-mode .calendar-day.empty {
    background: transparent;
}

/* Scrollbar personalizada */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--background);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary);
}

body.dark-mode ::-webkit-scrollbar-thumb {
    background: #374151;
}

body.dark-mode ::-webkit-scrollbar-thumb:hover {
    background: var(--secondary);
}

/* RESET & BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Transición suave para el modo oscuro */
body,
body .navbar,
body .feature-card,
body .logo-img-wrapper,
body .main-footer,
body .theme-toggle {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 90%;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--background);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary);
    line-height: 1.1;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* NAVEGACIÓN - DESKTOP FIRST */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: all 0.5s ease;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar.scrolled {
    padding: 0.7rem 5%;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.12);
    background: rgba(255, 255, 255, 0.99);
}

.logo {
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: var(--transition);
}

.logo span {
    color: var(--secondary);
}

.logo .logo-img-wrapper {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
}

.logo .logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo .logo-text span:first-child {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.logo .logo-text span:last-child {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    position: relative;
    z-index: 1005;
    /* Asegurar que los botones estén por encima del logo */
}

/* BOTÓN TOGGLE MODO OSCURO */
.theme-toggle {
    background: var(--surface);
    border: 2px solid var(--primary);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--primary);
    font-size: 1.2rem;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    z-index: 1001;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.theme-toggle:hover {
    background: var(--primary);
    color: var(--surface);
    transform: rotate(20deg) scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.theme-toggle:active {
    transform: scale(0.95);
}

body.dark-mode .theme-toggle {
    background: #000000;
    border-color: #e5e7eb;
    color: #e5e7eb;
}

body.dark-mode .theme-toggle:hover {
    background: #e5e7eb;
    color: #000000;
}

/* Mejoras para móviles */
@media (max-width: 768px) {
    .theme-toggle {
        width: 50px;
        height: 50px;
        font-size: 1.4rem;
        border-width: 3px;
    }
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
    transition: var(--transition);
}

.nav-link {
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    color: var(--primary);
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.btn-cta-nav {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
    color: white;
    padding: 0.75rem 1.6rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(201, 162, 39, 0.4);
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-cta-nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-cta-nav:hover::before {
    left: 100%;
}

.btn-cta-nav:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(201, 162, 39, 0.5);
    filter: brightness(1.05);
}

body.dark-mode .btn-cta-nav {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
    color: #000000;
}

body.dark-mode .btn-cta-nav:hover {
    filter: brightness(1.15);
}

.mobile-only {
    display: none;
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, rgba(6, 15, 27, 0.85), rgba(30, 58, 95, 0.75)),
        url('../assets/images/hero-venezuela.png') center/cover no-repeat;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to top, var(--background), transparent);
    pointer-events: none;
}

.hero-content {
    max-width: 900px;
    text-align: center;
    padding: 0 2rem;
    z-index: 10;
    color: white;
}

.hero-content .badge-wrapper {
    margin-bottom: 2.5rem;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.2rem);
    margin-bottom: 1.8rem;
    color: #ffffff;
    line-height: 1.15;
    font-weight: 800;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.02em;
}

.hero h1 span {
    color: var(--secondary);
}

.hero p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3.5rem;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
    color: white;
    padding: 1.3rem 3rem;
    border-radius: 50px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    box-shadow: 0 10px 30px rgba(201, 162, 39, 0.5);
    border: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-curriculum,
.btn-academic-levels {
    background: rgba(255, 255, 255, 0.12);
    color: white;
    padding: 1.3rem 3rem;
    border-radius: 50px;
    font-weight: 700;
    backdrop-filter: blur(12px);
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover,
.btn-curriculum:hover,
.btn-academic-levels:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-2xl);
}

.btn-primary:hover {
    box-shadow: 0 15px 45px rgba(201, 162, 39, 0.6);
}

.btn-curriculum:hover,
.btn-academic-levels:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.section-tag2 {
    color: white;
    background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
    padding: 0.7rem 1.6rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    box-shadow: 0 6px 20px rgba(201, 162, 39, 0.5);
    display: inline-block;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    align-items: center;
    justify-content: center;
    display: flex;
}

.section-tag {
    color: var(--secondary);
    background: linear-gradient(135deg, rgba(201, 162, 39, 0.15), rgba(201, 162, 39, 0.08));
    padding: 0.7rem 1.6rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    display: inline-block;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(201, 162, 39, 0.3);
}

.section-header .section-tag {
    margin-bottom: 0;
}

.section-tag:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-2xl);
    border-color: rgba(201, 162, 39, 0.6);
    color: white;
    background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
    align-items: center;
    justify-content: center;
    display: flex;
}

body.dark-mode .section-tag {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(251, 191, 36, 0.08));
    border-color: rgba(251, 191, 36, 0.4);
}

.section {
    padding: 120px 0;
}

.section-header {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 5.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.section-header h2 {
    font-size: 3rem;
    color: var(--primary);
    letter-spacing: -1px;
    position: relative;
    display: block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary), transparent);
    border-radius: 2px;
}

.grid-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
}

.grid-features .feature-card:nth-child(2) {
    animation-delay: 0.1s;
}

.grid-features .feature-card:nth-child(3) {
    animation-delay: 0.2s;
}

.grid-features .feature-card:nth-child(4) {
    animation-delay: 0.3s;
}

.feature-card {
    background: var(--surface);
    padding: 3.5rem 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-xl);
    border-color: var(--secondary);
}

.feature-icon {
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    color: white;
    font-size: 1.6rem;
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

body.dark-mode .feature-icon {
    background: linear-gradient(135deg, #374151, var(--secondary));
}

.feature-card:hover .feature-icon {
    transform: rotateY(360deg) scale(1.1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
    color: var(--primary);
    font-weight: 700;
}

body.dark-mode .feature-card h3 {
    color: #f3f4f6;
}

body.dark-mode .feature-card p {
    color: #9ca3af;
}

body.dark-mode .section-header h2 {
    color: #f3f4f6;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    flex-grow: 1;
}

/* ANIMACIONES */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .nav-links {
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {

    /* NAVEGACIÓN MÓVIL */
    .navbar {
        padding: 0.9rem 5%;
        background: rgba(255, 255, 255, 0.98) !important;
        backdrop-filter: blur(10px);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        border-bottom: 2px solid var(--secondary);
    }

    .navbar .logo {
        color: var(--primary) !important;
        gap: 0.5rem;
    }

    .navbar .logo .logo-img-wrapper {
        width: 40px;
        height: 40px;
        padding: 6px;
    }

    .navbar .logo .logo-img-wrapper img {
        height: 28px !important;
    }

    .navbar .logo .logo-img-wrapper i {
        font-size: 1.3rem !important;
    }

    .navbar .logo .logo-text {
        line-height: 1.2;
    }

    .navbar .logo .logo-text span:first-child {
        font-size: 0.75rem;
    }

    .navbar .logo .logo-text span:last-child {
        font-size: 0.95rem;
    }

    .btn-cta-nav {
        display: none !important;
    }

    .mobile-menu-btn {
        display: block;
        color: var(--primary) !important;
        z-index: 1001;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: linear-gradient(180deg, var(--surface) 0%, var(--surface) 100%);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        transition: 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0);
        z-index: 999;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.2);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-link {
        font-size: 1.5rem;
        font-weight: 700;
        color: var(--primary) !important;
        position: relative;
    }

    .nav-link::after {
        content: '';
        position: absolute;
        bottom: -8px;
        left: 50%;
        transform: translateX(-50%);
        width: 0;
        height: 3px;
        background: var(--secondary);
        transition: width 0.3s ease;
        border-radius: 2px;
    }

    .nav-link:hover::after {
        width: 100%;
    }

    /* MÓVIL MODO OSCURO */
    body.dark-mode .navbar {
        background: rgba(0, 0, 0, 0.98) !important;
        backdrop-filter: blur(10px);
        border-bottom: 2px solid var(--secondary) !important;
    }

    body.dark-mode .nav-links {
        background: linear-gradient(180deg, #0a0a0a 0%, #000000 100%);
    }

    body.dark-mode .nav-link {
        color: #f3f4f6 !important;
    }

    body.dark-mode .mobile-menu-btn {
        color: #f3f4f6 !important;
    }

    /* HERO MÓVIL */
    .hero {
        padding-top: 80px;
        min-height: 100vh;
    }

    .hero::before {
        height: 100px;
    }

    .hero-content {
        padding: 0 1rem;
    }

    .hero-content .badge-wrapper {
        margin-bottom: 1.8rem;
    }

    .hero h1 {
        font-size: 2rem;
        line-height: 1.25;
        margin-bottom: 1.2rem;
        padding: 0 5%;
    }

    .hero p {
        font-size: 1rem;
        line-height: 1.6;
        padding: 0 10%;
        opacity: 0.95;
        margin-bottom: 2.5rem;
    }

    .hero-btns {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
        gap: 1.2rem;
    }

    .btn-primary,
    .btn-curriculum,
    .btn-academic-levels {
        width: 100%;
        justify-content: center;
        padding: 1.1rem 2rem;
    }

    /* SECCIONES MÓVIL */
    .section {
        padding: 70px 5%;
    }

    .grid-features {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .section-header {
        margin-bottom: 3.5rem;
    }

    .section-header h2 {
        font-size: 2.3rem;
    }

    .feature-card {
        padding: 2.8rem 2.2rem;
        text-align: center;
        align-items: center;
        border-radius: 16px;
    }

    .feature-card:hover {
        transform: translateY(-8px);
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 0.85rem;
    }

    .logo img {
        height: 35px !important;
    }

    .hero h1 {
        font-size: 1.8rem;
    }
}

/* ACADEMIC LEVELS */
.academic-levels {
    background: var(--background);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

body.dark-mode .academic-levels {
    border-top-color: rgba(255, 255, 255, 0.1);
}

.level-card-1 {
    border-top: 5px solid var(--secondary);
}

.level-card-2 {
    border-top: 5px solid var(--primary);
}

.level-card-3 {
    border-top: 5px solid var(--accent);
}

.btn-text {
    color: var(--secondary);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.btn-text::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: width 0.3s ease;
}

.btn-text:hover {
    gap: 0.9rem;
}

.btn-text:hover::after {
    width: 100%;
}

.btn-text:hover i {
    transform: translateX(8px);
}

/* FOOTER */
.main-footer {
    background: var(--Nuevo);
    color: white;
    padding: 5rem 5% 2rem;
    position: relative;
}

.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--primary));
}

body.dark-mode .main-footer {
    background: #000000;
    /* Negro puro */
}

body.dark-mode .main-footer h3 {
    color: var(--secondary);
}

body.dark-mode .main-footer ul li {
    color: #9ca3af;
}

body.dark-mode .main-footer ul li i {
    color: var(--secondary);
}

body.dark-mode .main-footer p {
    color: #9ca3af;
}

body.dark-mode .footer-bottom {
    border-top-color: rgba(255, 255, 255, 0.1);
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-info h2 {
    color: white;
    font-size: clamp(1.2rem, 4vw, 1.6rem);
    margin-bottom: 1.5rem;
    position: relative;
    width: 100%;
}

.footer-info h2 span {
    color: var(--secondary);
}

.footer-info p {
    opacity: 0.7;
    max-width: 400px;
}

.main-footer h3 {
    color: var(--secondary);
    font-size: 1.2rem;
    margin-bottom: 2rem;
    position: relative;
}

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

.main-footer ul {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.main-footer ul li {
    opacity: 0.8;
    transition: var(--transition);
}

.main-footer ul li i {
    color: var(--secondary);
    margin-right: 0.5rem;
}

.main-footer ul li:hover {
    opacity: 1;
    transform: translateX(5px);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    opacity: 0.6;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    font-size: 1.3rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.social-links a:hover {
    color: var(--secondary);
    transform: translateY(-5px) scale(1.1);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 5px 15px rgba(201, 162, 39, 0.4);
}

/* RESPONSIVE FOOTER */
@media (max-width: 992px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

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

    .footer-logo {
        align-items: center;
    }

    .footer-info h2 {
        left: 0;
        transform: none;
        text-align: center;
    }

    .main-footer h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-info p {
        margin: 0 auto;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
    }
}

/* NAVEGACIÓN DE AÑOS */
.calendar-header-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.btn-nav-cal {
    background: var(--surface);
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 0.8rem 1.2rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.btn-nav-cal:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

#current-year-display {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    min-width: 250px;
    text-align: center;
}

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    overflow-y: auto;
}

.modal-content {
    background-color: var(--background);
    margin: 5% auto;
    padding: 3rem;
    border-radius: var(--radius-md);
    width: 85%;
    max-width: 1000px;
    box-shadow: var(--shadow-lg);
    position: relative;
    animation: modalScale 0.4s ease-out;
}

@keyframes modalScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.close-modal {
    position: absolute;
    right: 1.5rem;
    top: 1rem;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-muted);
}

body.dark-mode .close-modal {
    color: #9ca3af;
}

body.dark-mode .close-modal:hover {
    color: #f3f4f6;
}

body.dark-mode #current-year-display {
    color: #f3f4f6;
}

body.dark-mode .calendar-days-header {
    color: #9ca3af;
}

body.dark-mode .calendar-day {
    color: #f3f4f6;
}

.calendar-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
}

.calendar-month {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.calendar-month:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.calendar-month h4 {
    color: var(--primary);
    margin-bottom: 1rem;
    text-align: center;
    text-transform: capitalize;
    border-bottom: 2px solid var(--secondary);
    padding-bottom: 0.5rem;
}

.calendar-days-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.calendar-days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    border-radius: 6px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.calendar-day:not(.empty):not(.holiday):not(.weekend):hover {
    background: rgba(0, 0, 0, 0.05);
    transform: scale(1.1);
    font-weight: 600;
}

.calendar-day.empty {
    background: transparent;
}

.calendar-day.holiday {
    background: rgba(185, 28, 28, 0.12);
    color: var(--accent);
    font-weight: 800;
    cursor: help;
    border: 1px solid var(--accent);
}

.calendar-day.holiday:hover {
    background: var(--accent);
    color: white;
    transform: scale(1.15);
}

.calendar-day.weekend {
    color: var(--text-muted);
    background: rgba(0, 0, 0, 0.03);
}