@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@600;700&display=swap');


:root {
    --primary-color: #0b132b;
    --secondary-color: #1c2541;
    --accent-color: #ff9f1c;
    --accent-hover: #e08b17;
    --text-main: #333333;
    --text-light: #ffffff;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --error-color: #d90429;
    --success-color: #2b9348;
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s;
}

a:hover {
    color: var(--accent-color);
}

/* Header & Nav */
header {
    background-color: var(--primary-color);
    padding: 1rem 5%;
    display: flex;
    justify-content: flex-start; gap: 10px;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.logo h2 {
    color: var(--text-light);
    margin-bottom: 0;
}

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

nav ul {
    list-style: none;
    display: flex;
    gap: 1rem;
    align-items: center;
}

nav > ul > li {
    position: relative;
}

nav > ul > li > a {
    color: var(--text-light);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

nav > ul > li > a:hover, nav > ul > li > a.active {
    background-color: rgba(255, 159, 28, 0.15);
    border-color: var(--accent-color);
    color: var(--text-light);
}

.nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background-color: var(--accent-color);
    color: #ffffff !important;
    border-radius: 50%;
    font-size: 13px;
    flex-shrink: 0;
}

/* Dropdown Menu */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--primary-color);
    min-width: 220px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    border-radius: 4px;
    padding: 0.5rem 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    z-index: 1001;
}

.dropdown:hover .dropdown-menu {
    display: flex;
}

.dropdown-menu > li {
    width: 100%;
    position: relative;
}

.dropdown-menu a {
    padding: 0.8rem 1.5rem;
    display: flex;
    justify-content: flex-start; gap: 10px;
    font-size: 0.95rem;
    color: var(--text-light);
}

.dropdown-menu a:hover {
    background-color: var(--secondary-color);
}

/* Submenu (2nd level) */
.submenu {
    display: none;
    position: absolute;
    top: 0;
    left: 100%;
    background-color: var(--secondary-color);
    min-width: 240px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    border-radius: 4px;
    padding: 0.5rem 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
}

.dropdown-submenu:hover .submenu {
    display: flex;
}

.btn-cta {
    background-color: var(--accent-color);
    color: var(--primary-color);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
}

.btn-cta:hover {
    background-color: var(--accent-hover);
    color: var(--primary-color);
}

/* Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}
.menu-toggle span {
    width: 30px;
    height: 3px;
    background-color: var(--text-light);
    border-radius: 2px;
    transition: 0.3s;
}
.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}
.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}
.gallery-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s;
    cursor: pointer;
}
.gallery-img:hover {
    transform: scale(1.03);
}

/* Hero Section */
.hero {
    min-height: 80vh;
    background: linear-gradient(rgba(11, 19, 43, 0.7), rgba(28, 37, 65, 0.7)), url('https://images.unsplash.com/photo-1541339907198-e08756dedf3f?auto=format&fit=crop&q=80&w=1920') center/cover;
    display: flex;
    align-items: center;
    padding: 0 5%;
}

.hero-content {
    flex: 1;
    color: var(--text-light);
    padding-right: 2rem;
}

.hero-content h1 {
    color: var(--text-light);
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Forms */
.lead-form-container {
    background: rgba(255, 255, 255, 0.95);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 500px;
    backdrop-filter: blur(10px);
}

.lead-form-container h3 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 1rem;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-row .form-group {
    flex: 1;
}

input, select, textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(255, 159, 28, 0.2);
}

button[type="submit"] {
    width: 100%;
    background-color: var(--primary-color);
    color: var(--text-light);
    border: none;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    margin-top: 1rem;
}

button[type="submit"]:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

#formMessage {
    margin-top: 1rem;
    text-align: center;
    font-weight: 500;
    padding: 0.5rem;
    border-radius: 4px;
    display: none;
}

#formMessage.success {
    background-color: rgba(43, 147, 72, 0.1);
    color: var(--success-color);
    display: block;
}

#formMessage.error {
    background-color: rgba(217, 4, 41, 0.1);
    color: var(--error-color);
    display: block;
}

/* Sections */
.section {
    padding: 5rem 5%;
}

.text-center {
    text-align: center;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.card {
    background: var(--bg-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.card-img {
    height: 200px;
    background-color: #ddd;
    background-size: cover;
    background-position: center;
}

.card-content {
    padding: 1.5rem;
}

.card-content h3 {
    margin-bottom: 0.5rem;
}

/* Interior Pages Header */
.page-header {
    background: var(--primary-color);
    color: var(--text-light);
    padding: 4rem 5%;
    text-align: center;
}
.page-header h1 {
    color: var(--text-light);
    font-size: 2.5rem;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 3rem 5% 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col h4 {
    color: var(--accent-color);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.5rem;
}

.footer-col a {
    color: #ccc;
}

.footer-col a:hover {
    color: var(--text-light);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1rem;
    font-size: 0.9rem;
    color: #999;
}

/* WhatsApp Floating Button */
.whatsapp-float-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.whatsapp-float-btn {
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    cursor: pointer;
    border: none;
    transition: transform 0.3s;
}

.whatsapp-float-btn:hover {
    transform: scale(1.1);
}

.whatsapp-popup {
    display: none;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    margin-bottom: 1rem;
    overflow: hidden;
    width: 250px;
    flex-direction: column;
    transform-origin: bottom right;
    animation: popupAnim 0.3s ease;
}

.whatsapp-popup.show {
    display: flex;
}

@keyframes popupAnim {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

.wa-popup-header {
    background: var(--primary-color);
    color: white;
    padding: 1rem;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
}

.wa-option {
    padding: 1rem;
    color: var(--text-main);
    border-bottom: 1px solid #eee;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.2s;
}

.wa-option:last-child {
    border-bottom: none;
}

.wa-option:hover {
    background-color: var(--bg-light);
    color: #25D366;
}

/* --- Program Pages --- */
.program-hero {
    padding: 6rem 5% 4rem;
    color: var(--text-light);
    text-align: center;
}
.badge {
    background-color: var(--accent-color);
    color: var(--primary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 1rem;
}
.program-hero h1 {
    color: var(--text-light);
    font-size: 3rem;
    margin-bottom: 0.5rem;
}
.rvoe {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 2rem;
}
.program-quick-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    background: rgba(255,255,255,0.1);
    padding: 1.5rem;
    border-radius: 8px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.2);
}
.info-item strong {
    color: var(--accent-color);
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.program-container {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    padding: 4rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}
.program-main {
    flex: 1;
    min-width: 60%;
}
.program-sidebar {
    width: 350px;
}
.sticky-sidebar {
    position: sticky;
    top: 100px;
}
.prog-section {
    margin-bottom: 3rem;
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.prog-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}
.prog-grid-2 .prog-section {
    margin-bottom: 0;
}
.prog-section h2 {
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
    display: inline-block;
    margin-bottom: 1rem;
}
.prog-section ul {
    list-style-position: inside;
    margin-top: 1rem;
}
.prog-section ul li {
    margin-bottom: 0.5rem;
    color: var(--text-main);
}
.campo-laboral-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}
.campo-laboral-tags span {
    background: var(--bg-light);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-weight: 500;
    border: 1px solid #eee;
    transition: transform 0.2s, background 0.2s;
}
.campo-laboral-tags span:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-2px);
}
.plan-estudios-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 1.5rem;
}

@media (max-width: 900px) {
    .plan-estudios-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .plan-estudios-grid {
        grid-template-columns: 1fr;
    }
}
.semestre-card {
    background: var(--bg-light);
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 1rem;
}
.semestre-card h4 {
    color: var(--secondary-color);
    text-align: center;
    border-bottom: 1px solid #ccc;
    padding-bottom: 0.5rem;
    margin-bottom: 0.5rem;
}
.semestre-card ul {
    list-style: none;
    font-size: 0.9rem;
    margin-top: 0;
}
.semestre-card ul li {
    padding: 0.3rem 0;
    border-bottom: 1px dashed #eee;
}
.semestre-card ul li:last-child {
    border-bottom: none;
}

/* Responsive */
@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
    
    .hero-content {
        padding-right: 0;
        text-align: center;
        margin-bottom: 3rem;
    }
    
    header {
        flex-wrap: wrap;
    }
    
    .menu-toggle {
        display: flex;
        order: 2;
    }
    
    .header-btn {
        display: none; /* Ocultar CTA en mobile para ahorrar espacio */
    }
    
    nav {
        display: none;
        width: 100%;
        order: 3;
        margin-top: 1rem;
    }
    
    nav.active {
        display: block;
    }
    
    nav ul {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .dropdown-menu {
        position: static;
        display: none;
        box-shadow: none;
        padding-left: 1rem;
        background-color: transparent;
    }
    
    .dropdown:hover .dropdown-menu {
        display: flex; 
    }
    
    .submenu {
        position: static;
        box-shadow: none;
        padding-left: 1rem;
        background-color: transparent;
    }

    .program-container {
        flex-direction: column;
    }
    
    .program-sidebar {
        width: 100%;
    }
    
    .prog-grid-2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

/* --- NUEVO FOOTER LARGO --- */
/* Datos Relevantes */
.datos-relevantes {
    position: relative;
    background: url('https://images.unsplash.com/photo-1541339907198-e08756dedf3f?auto=format&fit=crop&q=80&w=1920') center/cover fixed;
    color: white;
    text-align: center;
    padding: 6rem 2rem;
}
.datos-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(11, 19, 43, 0.85); /* primary color con opacidad */
}
.datos-content {
    position: relative;
    z-index: 1;
}
.datos-content h2 {
    color: white;
    font-size: 1.5rem;
    letter-spacing: 2px;
    margin-bottom: 3rem;
}
.datos-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4rem;
}
.dato-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.dato-item i {
    font-size: 2.5rem;
    color: var(--accent-color);
}
.dato-item .numero {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
}
.dato-item .etiqueta {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Contactanos Seccion */
.contactanos-seccion {
    background-color: white;
    padding: 5rem 2rem;
    text-align: center;
}
.contactanos-container h2 {
    font-size: 1.5rem;
    color: var(--primary-color);
    letter-spacing: 2px;
    margin-bottom: 1rem;
}
.contactanos-container p {
    color: #666;
    max-width: 600px;
    margin: 0 auto 3rem;
}
.contactanos-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}
.contacto-box {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 2.5rem 2rem;
    flex: 1;
    min-width: 250px;
    transition: transform 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.contacto-box:hover {
    transform: translateY(-10px);
}
.contacto-box i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}
.contacto-box h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}
.contacto-box p {
    margin: 0.3rem 0;
    font-size: 0.9rem;
    color: #555;
}

/* Mapa Fullwidth */
.mapa-fullwidth {
    width: 100%;
    line-height: 0;
}
.mapa-fullwidth iframe {
    display: block;
}

/* Footer Bottom Bar */
.footer-bottom-bar {
    background-color: var(--primary-color);
    color: white;
    padding: 2rem 5%;
    text-align: center;
}
.footer-bottom-content p {
    margin: 0.5rem 0;
    font-size: 0.85rem;
    opacity: 0.8;
}
.social-icons {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}
.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    color: white;
    border-radius: 50%;
    transition: background 0.3s, transform 0.3s;
}
.social-icons a:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
}

/* --- MODAL DE REGISTRO (PROGRAMAS) --- */
.fixed-cta-btn {
    position: fixed;
    bottom: 30px;
    left: 30px; /* Lo ponemos a la izquierda para no estorbar el whatsapp de la derecha */
    background-color: var(--accent-color);
    color: var(--primary-color);
    border: none;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    cursor: pointer;
    z-index: 9998;
    transition: transform 0.3s, background-color 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}
.fixed-cta-btn:hover {
    transform: scale(1.05);
    background-color: var(--accent-hover);
}

.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(11, 19, 43, 0.8);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: none; /* Oculto por defecto */
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.modal-overlay.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    position: relative;
    transform: translateY(-50px);
    transition: transform 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    max-height: 90vh;
    overflow-y: auto;
}
.modal-overlay.show .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    color: #999;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
}
.close-modal:hover {
    color: var(--error-color);
}

/* Ajustes de layout para ancho completo */
.program-main {
    flex: 1;
    width: 100%;
}
.program-sidebar {
    display: none; /* Ya no se usa como barra lateral */
}

/* --- MEGA MENU --- */
.mega-dropdown {
    position: static !important; /* Para que el mega menu se posicione respecto al header */
}
.mega-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-width: none;
    background-color: var(--bg-white);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    border-radius: 0;
    padding: 2.5rem 5%;
    z-index: 1001;
    grid-template-columns: 1fr 1fr 1fr 300px;
    gap: 3rem;
    border-top: 4px solid var(--accent-color);
}
.dropdown:hover .mega-menu {
    display: grid;
    animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.mega-column h4 {
    color: var(--accent-color);
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.mega-column ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem !important; /* overrides nav ul gap */
    padding: 0;
    align-items: flex-start !important; /* overrides nav ul align-items */
}
.mega-column ul li {
    width: 100%;
}
.mega-column ul li a {
    color: var(--text-main) !important;
    font-size: 0.95rem;
    padding: 0 !important; /* overrides top level padding */
    border-radius: 0 !important; /* overrides pill border */
    display: inline-block !important;
    transition: color 0.2s, transform 0.2s;
    font-weight: 500;
}
.mega-column ul li a:hover {
    color: var(--accent-color) !important;
    background: transparent !important;
    border-color: transparent !important;
    transform: translateX(5px);
}

.promo-column {
    border-left: 1px solid #eee;
    padding-left: 2rem;
}
.promo-card {
    text-align: center;
}
.promo-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 1rem;
}
.promo-card h5 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}
.promo-card p {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

@media (max-width: 900px) {
    .mega-menu {
        position: static;
        display: none;
        width: 100%;
        grid-template-columns: 1fr;
        box-shadow: none;
        padding: 1rem;
        gap: 1rem;
        border-top: none;
    }
    .promo-column {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid #eee;
        padding-top: 1rem;
    }
}

/* --- BRIDGE PARA HOVER MEGA MENU --- */
nav > ul > li > a {
    position: relative;
}
nav > ul > li > a::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 40px; /* Puente invisible para que no se cierre el menu al bajar el mouse */
    background: transparent;
}

/* --- SLIDER PROMO MEGA MENU --- */
.promo-slider {
    position: relative;
    width: 100%;
    height: 140px;
    margin-bottom: 1rem;
    border-radius: 6px;
    overflow: hidden;
}
.promo-slider img {
    position: absolute;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    object-fit: cover;
    opacity: 0;
    animation: megaSlideShow 16s infinite;
}
.promo-slider img:nth-child(1) { animation-delay: 0s; }
.promo-slider img:nth-child(2) { animation-delay: 4s; }
.promo-slider img:nth-child(3) { animation-delay: 8s; }
.promo-slider img:nth-child(4) { animation-delay: 12s; }

@keyframes megaSlideShow {
    0%, 20% { opacity: 1; transform: scale(1); }
    25%, 95% { opacity: 0; transform: scale(1.05); }
    100% { opacity: 1; transform: scale(1); }
}

/* --- NOSOTROS PAGE --- */
.rector-section {
    display: flex;
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 5%;
    gap: 4rem;
    align-items: center;
}
.rector-img {
    flex: 1;
    position: relative;
}
.rector-img img {
    width: 100%;
    border-radius: 12px;
    box-shadow: -15px 15px 0 var(--accent-color);
}
.rector-text {
    flex: 1.2;
}
.rector-text h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}
.rector-quote {
    font-size: 1.3rem;
    font-style: italic;
    color: #555;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--accent-color);
    padding-left: 1.5rem;
}

.valores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 5%;
}
.valor-card {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    border-bottom: 4px solid transparent;
}
.valor-card:hover {
    transform: translateY(-10px);
    border-bottom: 4px solid var(--accent-color);
}
.valor-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.historia-timeline {
    max-width: 800px;
    margin: 4rem auto;
    padding: 0 5%;
    position: relative;
}
.historia-timeline::before {
    content: "";
    position: absolute;
    top: 0; left: 50%;
    width: 2px; height: 100%;
    background: var(--accent-color);
}
.timeline-item {
    display: flex;
    justify-content: flex-end;
    padding-right: 50%;
    position: relative;
    margin-bottom: 3rem;
}
.timeline-item:nth-child(even) {
    justify-content: flex-start;
    padding-right: 0;
    padding-left: 50%;
}
.timeline-content {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    width: 90%;
    position: relative;
}
.timeline-item::after {
    content: "";
    position: absolute;
    top: 20px;
    left: calc(50% - 10px);
    width: 20px; height: 20px;
    background: var(--primary-color);
    border: 4px solid white;
    border-radius: 50%;
    box-shadow: 0 0 0 2px var(--accent-color);
}
.timeline-year {
    font-weight: bold;
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.galeria-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 250px;
    gap: 1rem;
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 5%;
}
.galeria-item {
    border-radius: 8px;
    overflow: hidden;
}
.galeria-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.galeria-item:hover img {
    transform: scale(1.1);
}
.galeria-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }

/* --- CONTACTO PAGE --- */
.contact-hero {
    background: linear-gradient(rgba(11, 19, 43, 0.9), rgba(28, 37, 65, 0.9)), url("https://images.unsplash.com/photo-1521737604893-d14cc237f11d?auto=format&fit=crop&q=80&w=1920") center/cover;
    color: white;
    text-align: center;
    padding: 6rem 5%;
}
.contact-hero h1 { font-size: 3rem; margin-bottom: 1rem; }

.contact-directory {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: -3rem auto 4rem;
    padding: 0 5%;
    position: relative;
    z-index: 10;
}
.dir-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}
.dir-card h3 { color: var(--primary-color); margin-bottom: 1rem; }
.dir-card p { color: #666; margin-bottom: 1.5rem; }
.dir-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #25D366;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.3s;
}
.dir-btn:hover { transform: translateY(-3px); }

.contact-split {
    display: flex;
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 5%;
    gap: 4rem;
}
.contact-form-premium {
    flex: 1.5;
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}
.contact-info-side {
    flex: 1;
}
.info-row {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}
.info-row i {
    font-size: 1.5rem;
    color: var(--accent-color);
    background: rgba(255, 159, 28, 0.1);
    padding: 1rem;
    border-radius: 50%;
}
.horarios-box {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    margin-top: 2rem;
}
.horarios-box h4 { margin-bottom: 1rem; color: var(--primary-color); }
.horarios-box p { display: flex; justify-content: flex-start; gap: 10px; margin-bottom: 0.5rem; border-bottom: 1px dashed #ccc; padding-bottom: 0.5rem;}

@media (max-width: 900px) {
    .rector-section, .contact-split { flex-direction: column; }
    .historia-timeline::before { left: 20px; }
    .timeline-item, .timeline-item:nth-child(even) { justify-content: flex-start; padding-left: 50px; padding-right: 0; }
    .timeline-item::after { left: 10px; }
    .timeline-content { width: 100%; }
    .galeria-grid { grid-template-columns: 1fr; grid-auto-rows: 200px; }
    .galeria-item:nth-child(1) { grid-column: span 1; grid-row: span 1; }
}

/* --- BECAS PAGE --- */
.becas-hero {
    background: linear-gradient(rgba(11, 19, 43, 0.8), rgba(28, 37, 65, 0.8)), url("https://images.unsplash.com/photo-1523240795612-9a054b0db644?auto=format&fit=crop&q=80&w=1920") center/cover;
    color: white;
    text-align: center;
    padding: 6rem 5%;
}
.becas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 5%;
}
.beca-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}
.beca-card:hover { transform: translateY(-10px); }
.beca-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.beca-content {
    padding: 2rem;
}
.beca-content h3 { color: var(--primary-color); margin-bottom: 1rem; }
.beca-content p { color: #666; margin-bottom: 1.5rem; line-height: 1.5; }
.beca-content .porcentaje {
    display: inline-block;
    background: var(--accent-color);
    color: var(--primary-color);
    font-weight: bold;
    padding: 0.3rem 1rem;
    border-radius: 50px;
    margin-bottom: 1rem;
}

.pasos-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 5%;
    flex-wrap: wrap;
}
.paso-item {
    flex: 1;
    min-width: 250px;
    text-align: center;
    position: relative;
}
.paso-numero {
    width: 60px; height: 60px;
    background: var(--primary-color);
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 0 0 5px rgba(11, 19, 43, 0.1);
}

/* --- VIDA ESTUDIANTIL --- */
.vida-hero {
    background: linear-gradient(rgba(11, 19, 43, 0.6), rgba(28, 37, 65, 0.6)), url("https://images.unsplash.com/photo-1517486808906-6ca8b3f04846?auto=format&fit=crop&q=80&w=1920") center/cover;
    color: white;
    text-align: center;
    padding: 8rem 5%;
}
.clubes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 5%;
}
.club-card {
    position: relative;
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
}
.club-card img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.5s;
}
.club-card:hover img { transform: scale(1.1); }
.club-overlay {
    position: absolute;
    bottom: 0; left: 0; width: 100%;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 2rem 1.5rem 1.5rem;
    color: white;
}

.testimonios-slider {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    padding: 2rem 5%;
    max-width: 1200px;
    margin: 0 auto 4rem;
    scroll-snap-type: x mandatory;
}
.testimonio-card {
    flex: 0 0 350px;
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    scroll-snap-align: center;
}
.testimonio-card p {
    font-style: italic;
    color: #555;
    margin-bottom: 1.5rem;
}
.alumno-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.alumno-info img {
    width: 50px; height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

/* --- FAQ PAGE --- */
.faq-hero {
    background: var(--bg-light);
    text-align: center;
    padding: 6rem 5% 4rem;
}
.faq-hero h1 { color: var(--primary-color); margin-bottom: 1rem; }
.faq-hero p { color: #666; max-width: 600px; margin: 0 auto; }
.faq-container {
    max-width: 800px;
    margin: 4rem auto;
    padding: 0 5%;
}
.faq-category {
    margin-bottom: 3rem;
}
.faq-category h3 {
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #eee;
    padding-bottom: 0.5rem;
}
.faq-item {
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
}
.faq-question {
    padding: 1.2rem 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    justify-content: flex-start; gap: 10px;
    align-items: center;
    transition: background 0.3s;
}
.faq-question:hover { background: #fdfdfd; }
.faq-question i {
    transition: transform 0.3s;
    color: var(--accent-color);
}
.faq-item.active .faq-question i {
    transform: rotate(180deg);
}
.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #666;
    line-height: 1.6;
}
.faq-item.active .faq-answer {
    padding: 0 1.5rem 1.2rem;
    max-height: 500px; /* Suficiente para el contenido */
}

/* --- AJUSTES FINALES --- */
/* Centrar Menú Principal */
#nav-menu {
    flex: 1;
    display: flex;
    justify-content: center;
}
/* Ampliar contenedor de FAQ */
.faq-container {
    max-width: 1200px !important;
}
