/* styles.css */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary-dark-blue: #0A1931; /* Azul muy oscuro para fondo principal */
    --secondary-dark-blue: #182B49; /* Azul oscuro para tarjetas/elementos */
    --accent-blue: # #70ffef;/* Azul medio brillante para acentos y títulos */
    --light-blue: #70ffef; /* Azul claro para elementos interactivos y destacados */
    --text-color-light: #E0E7EB; /* Texto claro */
    --text-color-dark: #AAB7C4; /* Texto grisáceo para detalles */
    --shadow-color: rgba(0, 0, 0, 0.4);
    
}

body {
    margin: 0;
    font-family: 'Poppins', sans-serif; /* Usando Poppins de tu menú */
    background-color: var(--primary-dark-blue);
    color: var(--text-color-light);
    overflow-x: hidden;
    line-height: 1.6;
}

/* --- Particles.js Background --- */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: -1;
    top: 0;
    left: 0;
}


/* Header Styles */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1px 40px;
    background-color: #001233;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    height: 60px;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
    font-size: 15px;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #ffb800;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #ffbc00;
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

/* Estilos para el menú desplegable */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #001233;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 1;
    border-top: 3px solid #ffb800;
}

.dropdown-content li {
    margin: 0;
    padding: 0;
}

.dropdown-content li a {
    display: block;
    padding: 10px 15px;
    color: white;
    text-decoration: none;
    font-size: 14px;
    text-transform: none;
    transition: background-color 0.3s ease;
}

.dropdown-content li a:hover {
    background-color: #ffb800;
    color: #001233;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.dropdown-arrow {
    font-size: 10px;
    transition: transform 0.3s ease;
}

/* Estilos para el menú hamburguesa */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    height: 20px;
    width: 25px;
    cursor: pointer;
    margin-left: auto;
}

.menu-toggle .bar {
    background-color: white;
    height: 3px;
    width: 100%;
    transition: transform 0.3s ease;
}
/* Estilos para el mega menú */
.mega-dropdown {
    position: relative;
}

.mega-menu {
    display: none;
    position: absolute;
    left: 0;
    width: 300px; /* Ancho ajustable */
    background-color: #001233;
    padding: 15px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 1000;
}

.mega-menu > li {
    margin-bottom: 10px;
}

/* Estilos para el submenú de carreras */
.sub-dropdown {
    position: relative;
}

.sub-dropdown-content {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    width: 250px;
    background-color: #001233;
    border-left: 3px solid #ffb800;
    padding: 10px;
    box-shadow: 5px 5px 10px rgba(0,0,0,0.2);
}

.sub-dropdown:hover .sub-dropdown-content {
    display: block;
}

.sub-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Flecha para submenú */
.sub-dropdown .dropdown-arrow {
    font-size: 10px;
    margin-left: 10px;
    transform: rotate(0deg);
    transition: transform 0.3s ease;
}

.sub-dropdown:hover .dropdown-arrow {
    transform: rotate(90deg);
}
/* Estilos para el mega menú */
.mega-dropdown {
    position: relative;
}

.mega-menu {
    display: none;
    position: absolute;
    left: 0;
    width: 300px; /* Ancho ajustable */
    background-color: #001233;
    padding: 15px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 1000;
}

.mega-menu > li {
    margin-bottom: 10px;
}

/* Estilos para el submenú de carreras */
.sub-dropdown {
    position: relative;
}

.sub-dropdown-content {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    width: 250px;
    background-color: #001233;
    border-left: 3px solid #ffb800;
    padding: 10px;
    box-shadow: 5px 5px 10px rgba(0,0,0,0.2);
}

.sub-dropdown:hover .sub-dropdown-content {
    display: block;
}

.sub-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Flecha para submenú */
.sub-dropdown .dropdown-arrow {
    font-size: 10px;
    margin-left: 10px;
    transform: rotate(0deg);
    transition: transform 0.3s ease;
}

.sub-dropdown:hover .dropdown-arrow {
    transform: rotate(90deg);
}

/* Estilos para móviles */
@media (max-width: 768px) {
    .mega-menu {
        width: 100%;
        position: static;
    }
    
    .sub-dropdown-content {
        position: static;
        width: 100%;
        border-left: none;
        border-top: 3px solid #ffb800;
        padding-left: 20px;
    }
}

/* Estilos para móviles */
@media (max-width: 768px) {
    .mega-menu {
        width: 100%;
        position: static;
    }
    
    .sub-dropdown-content {
        position: static;
        width: 100%;
        border-left: none;
        border-top: 3px solid #ffb800;
        padding-left: 20px;
    }
}
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    nav ul {
        display: none;
        flex-direction: column;
        align-items: center;
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: #001233;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        z-index: 100;
        height: calc(100vh - 60px);
        overflow-y: auto;
    }

    nav ul li {
        margin: 10px 0;
    }

    nav ul li a {
        font-size: 18px;
    }

    .menu-close {
        display: block;
    }
}

@media (min-width: 769px) {
    nav ul {
        display: flex;
    }
}
  /* Estilos para el menú desplegable */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none; /* Ocultar por defecto */
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #001233;
    min-width: 200px; /* Ajusta el ancho según sea necesario */
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 1;
    border-top: 3px solid #ffb800;
}

.dropdown-content li {
    margin: 0;
    padding: 0;
}

.dropdown-content li a {
    display: block;
    padding: 10px 15px;
    color: white;
    text-decoration: none;
    font-size: 14px;
    text-transform: none;
    transition: background-color 0.3s ease;
}

.dropdown-content li a:hover {
    background-color: #ffb800;
    color: #001233;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer; /* Añadir cursor de puntero */
}

.dropdown-arrow {
    font-size: 10px;
    transition: transform 0.3s ease;
}

/* Ajustes para dispositivos móviles */
@media (max-width: 768px) {
    .dropdown-content {
        width: 100%; /* Ajusta el ancho para que se adapte a la pantalla */
        left: 0;
        right: 0;
    }
}
/* Rotate arrow when dropdown is open */
.dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* Estilos para el menú hamburguesa (adaptado del anterior y el nuevo) */
.burger-menu {
    display: none; /* Oculto por defecto en desktop */
    cursor: pointer;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    z-index: 101; /* Encima del menú móvil */
}

.burger-menu .bar { /* Usamos la clase 'bar' del menú provisto */
    width: 30px;
    height: 3px;
    background-color: var(--menu-white);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Animación del burger-menu al abrir */
.burger-menu.nav-active .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}
.burger-menu.nav-active .line2 {
    opacity: 0;
}
.burger-menu.nav-active .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* --- Main Content Layout --- */
main {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

/* --- Section Titles --- */
.section-title {
    font-size: 2.5em;
    color: var(--accent-blue);
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 10px;
    text-shadow: 0 0 10px rgba(62, 109, 156, 0.4);
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--light-blue);
    border-radius: 5px;
}

/* --- Hero Section --- */
#hero {
    background: linear-gradient(to right, rgba(24, 43, 73, 0.9), rgba(24, 43, 73, 0.5));
    padding: 1px 0;
    text-align: center;
    border-radius: 15px;
    margin-bottom: 60px;
    box-shadow: 0 8px 20px var(--shadow-color);
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3.5em;
    color: var(--light-blue);
    margin-bottom: 25px;
    text-shadow: 0 0 15px rgba(112, 162, 255, 0.8);
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.3em;
    line-height: 1.7;
    margin-bottom: 40px;
    color: var(--text-color-light);
}

/* Eliminamos el botón "Ver Modalidades" */
.button {
    display: none;
}

/* --- Modalidad Cards --- */
#modalidades-section {
    padding-bottom: 60px;
}

.modalidad-card {
    background-color: var(--secondary-dark-blue);
    border-radius: 15px;
    box-shadow: 0 8px 20px var(--shadow-color);
    margin-bottom: 50px;
    display: flex;
    align-items: center;
    padding: 30px;
    gap: 40px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.modalidad-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.5);
}

.modalidad-card.reverse-layout {
    flex-direction: row-reverse;
}

.card-image {
    flex: 1;
    min-width: 300px;
}

.card-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    height: 250px; /* Altura fija para consistencia */
    object-fit: cover; /* Asegura que la imagen se ajuste y cubra el espacio */
}

.card-content {
    flex: 2;
}

.card-content h3 {
    font-size: 2em;
    color: var(--accent-blue);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.card-content h3 i {
    font-size: 1.2em;
    margin-right: 15px;
    color: var(--light-blue);
}

.card-content p {
    font-size: 1.1em;
    color: var(--text-color-dark);
    margin-bottom: 25px;
}

.card-content ul {
    list-style: none;
    padding: 0;
    margin-bottom: 0;
}

.card-content ul li {
    font-size: 1em;
    margin-bottom: 10px;
    color: var(--text-color-light);
    display: flex;
    align-items: flex-start;
}

.card-content ul li i {
    color: var(--light-blue);
    margin-right: 10px;
    font-size: 0.9em;
    margin-top: 5px;
}

/* --- Contact Section --- */
#contacto {
    text-align: center;
    padding: 10px 0;
    background-color: rgba(24, 43, 73, 0.6);
    border-radius: 15px;
    margin-bottom: 50px;
    box-shadow: 0 8px 20px var(--shadow-color);
}

#contacto p {
    font-size: 1.2em;
    color: var(--text-color-dark);
    margin-bottom: 30px;
}

.contact-info {
    margin-top: 25px;
    font-size: 1.3em;
    color: var(--text-color-light);
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
}

.contact-info i {
    margin-right: 10px;
    color: var(--light-blue);
}

.contact-info a {
    color: var(--light-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: var(--text-color-light);
}

.final-note {
    font-size: 0.95em;
    color: var(--text-color-dark);
    margin-top: 40px;
    padding: 0 20px;
}



    /* Footer moderno */
    footer {
        background-color: #001233;
        color: white;
        padding: 70px 80px 30px;
    }

    .footer-content {
        display: flex;
        justify-content: space-between;
        margin-bottom: 50px;
    }

    .footer-logo {
        flex: 1;
    }

    .footer-logo img {
        height: 200px;
        margin-bottom: 20px;
        transition: transform 0.3s ease;
    }

    .footer-logo img:hover {
        transform: scale(1.05);
    }

    .footer-info, .footer-contact {
        flex: 1;
        padding-left: 30px;
    }

    .footer-contact p {
        margin-bottom: 10px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .footer-contact a {
        color: #4caf50;
        text-decoration: none;
        transition: color 0.3s ease;
    }

    .footer-contact a:hover {
        color: white;
        text-decoration: underline;
    }

    .footer-bottom {
        margin-top: 50px;
        display: flex;
        justify-content: space-between;
        padding-top: 20px;
        border-top: 1px solid rgba(255,255,255,0.1);
    }

    .footer-bottom p {
        font-size: 14px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    /* Responsive */
    @media (max-width: 768px) {
        header {
            padding: 15px 20px;
            flex-direction: column;
        }

        nav ul {
            margin-top: 15px;
        }

        .footer-content {
            flex-direction: column;
        }

        .footer-info, .footer-contact {
            padding-left: 0;
            margin-top: 30px;
        }

        .footer-bottom {
            flex-direction: column;
            gap: 15px;
        }

        .section-header h2 {
            font-size: 2rem;
        }
        
        .card-content {
            flex-direction: column;
        }
        
        .card-content .texto,
        .card-content .imagen {
            min-width: 100%;
        }

        .location-actions {
            flex-direction: column;
            align-items: center;
        }

        .action-btn {
            width: 100%;
            max-width: 300px;
            justify-content: center;
        }

        .hero-content h1 {
            font-size: 2rem;
            padding: 0 20px;
        }
    }


/* ======================================= */
/* --- RESPONSIVE DESIGN & MOBILE MENU --- */
/* ======================================= */

@media (max-width: 992px) {
    header {
        padding: 10px 20px; /* Ajuste para pantallas más pequeñas */
    }

    .section-title {
        font-size: 2em;
        margin-bottom: 40px;
    }

    #hero {
        padding: 80px 0;
    }

    .hero-content h1 {
        font-size: 2.8em;
    }

    .hero-content p {
        font-size: 1.1em;
    }

    .modalidad-card {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .modalidad-card.reverse-layout {
        flex-direction: column;
    }

    .card-image {
        min-width: unset;
        width: 80%;
        max-width: 400px;
        margin: 0 auto;
    }

    .card-image img {
        height: 200px; /* Ajuste de altura para tabletas */
    }

    .card-content h3 {
        justify-content: center;
    }

    .card-content ul {
        text-align: left;
        padding-left: 20px;
    }

    .contact-info {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 768px) {
    /* Mostrar botón de hamburguesa */
    .burger-menu {
        display: flex;
    }

    /* Ocultar menú de navegación por defecto */
    nav ul.nav-links {
        position: fixed;
        right: 0;
        top: 0; /* Ajustar a 0 para que cubra la cabecera */
        height: 100vh;
        width: 70%; /* Ancho del menú móvil */
        background-color: var(--secondary-dark-blue); /* Color del fondo principal del menú */
        flex-direction: column;
        align-items: center;
        justify-content: flex-start; /* Alinear arriba para el scroll */
        transform: translateX(100%); /* Ocultar fuera de la pantalla */
        transition: transform 0.5s ease-in;
        padding: 80px 0 20px; /* Padding para dejar espacio a la cabecera y el logo */
        margin: 0; /* Reiniciar margen */
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
        overflow-y: auto; /* Permitir scroll si el contenido es largo */
    }

    /* Mostrar menú de navegación cuando está activo */
    nav ul.nav-links.nav-active {
        transform: translateX(0%);
    }

    nav ul li {
        opacity: 0; /* Ocultar elementos para animarlos */
        margin: 15px 0; /* Margen vertical para los elementos del menú */
        width: 90%; /* Asegura que los enlaces ocupen más ancho */
        text-align: center;
    }

    nav ul li a {
        font-size: 1.3em; /* Texto más grande en móvil */
        padding: 10px 0;
        display: block; /* Para que ocupe todo el ancho del li */
        color: var(--text-color-light); /* Color del texto del menú principal */
    }
    
    /* Eliminar el underline animation en móvil para enlaces principales */
    nav ul li a::after {
        display: none;
    }

    /* Estilos del dropdown en móvil */
    .dropdown .dropdown-toggle {
        font-size: 1.3em;
        padding: 10px 0;
        width: 100%;
        justify-content: center; /* Centrar texto y flecha */
    }

    .dropdown-content {
        position: static; /* Cambiar a estático para que fluya en el documento */
        background-color: rgba(0, 0, 0, 0.3); /* Un fondo más oscuro para el submenú */
        width: 100%;
        box-shadow: none; /* Eliminar sombra */
        border-top: none;
        padding: 5px 0;
    }

    .dropdown-content li a {
        font-size: 1.1em; /* Texto más pequeño para subenlaces */
        padding: 8px 15px; /* Padding para subenlaces */
        background-color: transparent; /* Fondo transparente */
    }

    .dropdown-content li a:hover {
        background-color: rgba(255, 193, 7, 0.2); /* Fondo sutil al pasar el mouse */
        color: var(--menu-secondary-color);
    }

    /* La animación de los elementos de la lista */
    nav ul.nav-links.nav-active li {
        opacity: 1;
        transition: opacity 0.5s ease-in forwards;
    }
    /* Retrasos para una animación escalonada */
    nav ul.nav-links.nav-active li:nth-child(1) { transition-delay: 0.1s; }
    nav ul.nav-links.nav-active li:nth-child(2) { transition-delay: 0.2s; }
    nav ul.nav-links.nav-active li:nth-child(3) { transition-delay: 0.3s; }
    nav ul.nav-links.nav-active li:nth-child(4) { transition-delay: 0.4s; }
    nav ul.nav-links.nav-active li:nth-child(5) { transition-delay: 0.5s; }
    nav ul.nav-links.nav-active li:nth-child(6) { transition-delay: 0.6s; }
    nav ul.nav-links.nav-active li:nth-child(7) { transition-delay: 0.7s; }
    nav ul.nav-links.nav-active li:nth-child(8) { transition-delay: 0.8s; }


    .logo {
        height: 50px; /* Logo más pequeño en móvil */
    }

    .hero-content h1 {
        font-size: 2.2em;
        padding: 0 10px;
    }

    .section-title {
        font-size: 1.8em;
    }

    .card-content h3 {
        font-size: 1.7em;
    }

    .card-content p {
        font-size: 1em;
    }

    .card-image img {
        height: 180px; /* Altura más pequeña para móviles */
    }
}

@media (max-width: 480px) {
    header {
        padding: 10px 15px;
    }
    .logo {
        height: 45px;
    }
    .hero-content h1 {
        font-size: 1.8em;
    }
    .section-title {
        font-size: 1.6em;
    }
    .card-content h3 {
        font-size: 1.4em;
    }
    .card-content ul li {
        font-size: 0.9em;
    }
    .modalidad-card {
        padding: 20px;
    }
    .contact-info {
        font-size: 1.1em;
    }
}

/* Animación para los enlaces del menú móvil */
@keyframes navLinkFade {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}


.carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin: 2rem 0 4rem;
    padding: 0 10px;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-container .modalidad-card {
    flex: 0 0 100%;
    box-sizing: border-box;
    margin: 0 10px;
    background-color: var(--secondary-dark-blue);
    border-radius: 15px;
    box-shadow: 0 8px 20px var(--shadow-color);
    padding: 30px;
    gap: 40px;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.carousel-container .modalidad-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.5);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(62, 109, 156, 0.3); /* azul medio semitransparente */
    color: var(--light-blue);
    border: none;
    padding: 12px 18px;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;
    transition: background-color 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.carousel-btn:hover {
    background-color: var(--light-blue);
    color: var(--secondary-dark-blue);
}

.carousel-btn.prev {
    left: 10px;
}

.carousel-btn.next {
    right: 10px;
}

@media (max-width: 992px) {
    .carousel-container .modalidad-card {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .carousel-btn {
        padding: 10px 14px;
        font-size: 1.5rem;
    }

    .carousel-container .modalidad-card {
        padding: 20px;
    }
}




#carousel-section {
    overflow: hidden;
    width: 100%;
    max-width: 1500px;
    margin: 40px auto;
    border-radius: 15px;
    background-color: var(--secondary-dark-blue);
    box-shadow: 0 8px 20px var(--shadow-color);
    position: relative;
}

.carousel-track {
    display: flex;
    gap: 10px;
    animation: scrollCarousel 25s linear infinite;
    padding: 20px;
    width: max-content;
}

.carousel-slide {
    flex: 0 0 auto;
    width: 200px;
    background-color: var(--primary-dark-blue);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    text-align: center;
    padding: 15px;
}

.carousel-slide img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}

.carousel-slide h3 {
    font-size: 1em;
    color: var(--light-blue);
    margin: 0;
}

/* Animación para desplazar horizontalmente */
@keyframes scrollCarousel {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}