@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
/* --- Variables de Estilo (Paleta de Modalidades de Graduación) --- */
:root {
    --primary-dark-blue: #0A1931; /* Azul muy oscuro para fondo principal */
    --secondary-dark-blue: #182B49; /* Azul oscuro para tarjetas/elementos */
    --accent-blue: #3E6D9C; /* Azul medio brillante para acentos y títulos */
    --light-blue: #70A2FF; /* 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);
    --border-radius-large: 15px;
    --border-radius-medium: 10px;
    --transition-speed: 0.3s;
}

/* --- Base Body Styles --- */
body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background-color: var(--primary-dark-blue);
    color: var(--text-color-light);
    overflow-x: hidden;
    line-height: 1.6;
}

/* --- Particles.js Background Global --- */
#particles-bg {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: -1;
    top: 0;
    left: 0;
}

 :root {
            --primary: #001233;
            --secondary: #ffc107;
            --accent: #0466c8;
            --light: #f8f9fa;
            --dark: #212529;
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* 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 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;
    }
}

/* --- Menu Close (X) --- */
.menu-close {
    display: none; /* Oculto por defecto en desktop */
    font-size: 2em;
    color: var(--text-color-light);
    cursor: pointer;
    z-index: 101; /* Asegura que esté por encima del menú */
}

/* --- Hero Section --- */
.hero {
    position: relative;
    height: 470px;
    background: linear-gradient(to right, rgb(24 43 73 / 0%), rgba(10, 25, 49, 0.8));
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-radius: 0 0 var(--border-radius-large) var(--border-radius-large);
    margin-bottom: 50px;
 
}


/* --- 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;
}


/* --- 3D Carousel (Ajustes de Centrado y Estilo) --- */
.carousel-container {
    width: 100%;
    height: 600px; /* Aumentado para dar más espacio vertical y centrar */
    display: flex; /* Usar flexbox para centrado */
    justify-content: center;
    align-items: center;
    perspective: 3500px;
   

}

.carousel-3d {
    width: 400px; /* Ancho ligeramente aumentado para las imágenes */
    height: 280px; /* Altura ligeramente aumentada */
    position: relative; /* Cambiado de absolute a relative para que flexbox lo centre */
    transform-style: preserve-3d;
    top: 0; /* Reiniciar top/left si eran absolutos */
    left: 0;
    /* Remover transform: translate(-50%, -50%) si ya se centra con flexbox */
}

.carousel-3d img {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: var(--border-radius-medium);
    object-fit: cover;
    -webkit-box-reflect: below 55px linear-gradient(transparent, transparent, rgba(0,0,0,0.3));
    filter: brightness(0.9);
    box-shadow: 0 8px 25px var(--shadow-color);
    border: 3px solid var(--accent-blue); /* Borde sutil para cada imagen */
}

.carousel-3d img:hover {
    transform: scale(1.05); /* Escala un poco más al pasar el ratón */
    filter: brightness(1.2); /* Más brillo al pasar el ratón */
    box-shadow: 0 12px 30px rgba(112, 162, 255, 0.6); /* Sombra con el color de acento */
}


/* --- Perfil Section --- */
.perfil {
    padding: 60px 20px;
    background-color: var(--primary-dark-blue);
    max-width: 1200px;
    margin: 0 auto 50px auto;
}

.perfil .content-wrapper {
    background-color: var(--secondary-dark-blue);
    border-radius: var(--border-radius-large);
    box-shadow: 0 8px 20px var(--shadow-color);
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 40px;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.perfil .content-wrapper:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.5);
}

.perfil .texto {
    flex: 2;
    text-align: justify;
    color: var(--text-color-dark);
}

.perfil .texto p {
    margin-bottom: 15px;
    font-size: 1.1em;
}

.perfil .imagen {
    flex: 1;
    min-width: 300px;
}

.perfil .imagen img {
    width: 100%;
    border-radius: var(--border-radius-medium);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}


/* --- Malla Curricular Cards Section --- */
.malla-cards {
    padding: 60px 20px;
    text-align: center;
   
    margin-bottom: 50px;
}

.tarjetas-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto 40px auto;
}

.tarjeta-malla {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius-large);
    box-shadow: 0 8px 20px var(--shadow-color);
    width: 380px;
    text-align: left;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    background-color: var(--secondary-dark-blue);
    color: var(--text-color-light);
}

.tarjeta-malla:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.5);
}

.tarjeta-contenido {
    position: relative;
    z-index: 1;
    padding: 25px 30px;
}

.tarjeta-malla h3 {
    color: var(--accent-blue);
    margin-bottom: 20px;
    font-size: 1.7em;
    border-bottom: 2px solid var(--light-blue);
    padding-bottom: 10px;
    display: flex;
    align-items: center;
}

.tarjeta-malla ul {
    list-style-type: none;
    padding-left: 0;
}

.tarjeta-malla ul li {
    color: var(--text-color-dark);
    margin-bottom: 12px;
    font-size: 1em;
    display: flex;
    align-items: flex-start;
}

.tarjeta-malla ul li i {
    color: var(--light-blue);
    margin-right: 15px;
    font-size: 1.1em;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
    margin-top: 3px;
}

/* --- Botón Descargar --- */
.button {
    display: inline-block;
    padding: 16px 35px;
    background-color: var(--accent-blue);
    color: var(--text-color-light);
    text-decoration: none;
    border-radius: 30px;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color var(--transition-speed) ease, transform 0.2s ease, box-shadow var(--transition-speed) ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.button:hover {
    background-color: var(--light-blue);
    color: var(--primary-dark-blue);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* --- Convenios / Pasantias Section --- */
.convenios-pasantias {
    padding: 60px 20px;
    text-align: center;
    margin-bottom: 50px;
}

.convenio-card {
    background-color: var(--secondary-dark-blue);
    color: var(--text-color-light);
    border-radius: var(--border-radius-large);
    padding: 40px;
    box-shadow: 0 8px 20px var(--shadow-color);
    max-width: 900px;
    margin: 40px auto;
    text-align: left;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.convenio-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.5);
}

.convenio-card h3 {
    font-size: 2em;
    margin-bottom: 25px;
    padding-bottom: 15px;
    color: var(--accent-blue);
    border-bottom: 2px solid var(--light-blue);
    text-align: center;
}

.convenio-card p {
    font-size: 1.1em;
    line-height: 1.8;
    color: var(--text-color-dark);
    margin-bottom: 20px;
    text-align: justify;
}

.convenio-card ul {
    list-style: none;
    padding-left: 0;
    margin: 20px 0;
}

.convenio-card li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    font-size: 1.05em;
    color: var(--text-color-light);
}

.convenio-card li i {
    position: absolute;
    top: 3px;
    left: 0;
    color: var(--light-blue);
    font-size: 1.2em;
    width: 25px;
    text-align: center;
}
   /* Estilo para el título con espacio separado */
.hero-content h1 {
    color: var(--light-blue);
    font-size: 3.5em;
    font-weight: 700;
    animation: fadeInDown 1s ease-in-out;
    text-shadow: 0 0 15px rgba(112, 162, 255, 0.8);
    line-height: 1.2;
    
}
.hero-subtitle {
    color: #FFFFFF; /* Blanco puro */
    font-size: 1.4rem;
    max-width: 700px;
    margin: 0 auto;
    padding: 20px;

}
        
        /* Footer moderno */
       /* Footer */
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;
}




