/* ======================================= */
/* === VARIABLES Y ESTILOS GENERALES === */
/* ======================================= */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    /* Colores principales */
    --primary-dark-blue: #0A1931;
    --secondary-dark-blue: #182B49;
    --accent-blue: #ffee00;
    --light-blue: #00ffcc;
    --text-color-light: #ffffff;
    --text-color-dark: #ffffff;
    --shadow-color: rgba(0, 0, 0, 0.4);
    
    /* Colores del menú */
    --menu-primary-color: #001233;
    --menu-secondary-color: #ffc107;
    --menu-white: #ffffff;
    --menu-text-color: #333333;
    --menu-light-bg: #f9f9f9;
    
    /* Transiciones */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--primary-dark-blue);
    color: var(--text-color-light);
    overflow-x: hidden;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ======================================= */
/* === PARTICLES JS === */
/* ======================================= */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: -1;
    top: 0;
    left: 0;
    background-color: var(--primary-dark-blue);
}

/* ======================================= */
/* === HEADER Y NAVEGACIÓN === */
/* ======================================= */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1px 40px;
    background-color: var(--menu-primary-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    height: 60px;
    transition: transform var(--transition-medium);
}

.logo:hover {
    transform: scale(1.05);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
    position: relative;
}

nav ul li a {
    text-decoration: none;
    color: var(--menu-white);
    font-weight: 500;
    font-size: 15px;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 5px;
    transition: color var(--transition-medium);
    display: flex;
    align-items: center;
    gap: 5px;
}

nav ul li a:hover {
    color: var(--menu-secondary-color);
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--menu-secondary-color);
    transition: width var(--transition-medium);
}

nav ul li a:hover::after {
    width: 100%;
}

/* Menús desplegables */
.dropdown-content,
.mega-menu,
.sub-dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--menu-primary-color);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 1000;
    border-top: 3px solid var(--menu-secondary-color);
}

.dropdown-content {
    min-width: 200px;
    top: 100%;
    left: 0;
}

.mega-menu {
    width: 300px;
    padding: 15px;
}

.sub-dropdown-content {
    left: 100%;
    top: 0;
    width: 250px;
    border-left: 3px solid var(--menu-secondary-color);
}

.dropdown:hover .dropdown-content,
.mega-dropdown:hover .mega-menu,
.sub-dropdown:hover .sub-dropdown-content {
    display: block;
}

.dropdown-content li,
.mega-menu li,
.sub-dropdown-content li {
    margin: 0;
    padding: 0;
    width: 100%;
}

.dropdown-content li a,
.mega-menu li a,
.sub-dropdown-content li a {
    display: block;
    padding: 10px 15px;
    color: var(--menu-white);
    text-decoration: none;
    font-size: 14px;
    text-transform: none;
    transition: background-color var(--transition-medium);
}

.dropdown-content li a:hover,
.mega-menu li a:hover,
.sub-dropdown-content li a:hover {
    background-color: var(--menu-secondary-color);
    color: var(--menu-primary-color);
}

.dropdown-toggle,
.sub-toggle {
    cursor: pointer;
}

.dropdown-arrow {
    font-size: 10px;
    transition: transform var(--transition-medium);
}

.sub-dropdown .dropdown-arrow {
    transform: rotate(0deg);
}

.sub-dropdown:hover .dropdown-arrow {
    transform: rotate(90deg);
}

/* 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: var(--menu-white);
    height: 3px;
    width: 100%;
    transition: transform var(--transition-medium);
}

/* ======================================= */
/* === CONTENIDO PRINCIPAL === */
/* ======================================= */
main {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
    flex: 1;
}

/* Títulos de sección */
.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;
}

.category-heading {
    text-align: center;
    margin: 4rem 0 2rem;
}

.category-heading h3 {
    font-size: 2.2rem;
    color: var(--accent-blue);
    position: relative;
    display: inline-block;
    padding-bottom: 0.3rem;
}

.category-heading h3::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background-color: var(--light-blue);
    border-radius: 1px;
}

/* Sección Hero */
#hero {
    background: linear-gradient(to right, rgba(24, 43, 73, 0.9), rgba(24, 43, 73, 0.5));
    padding: 100px 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);
    
}

/* Tarjetas de cursos */
.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 var(--transition-medium), box-shadow var(--transition-medium);
}

.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;
    height: 250px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform var(--transition-medium);
}

.modalidad-card:hover .card-image img {
    transform: scale(1.05);
}

.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 .fas {
    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;
    text-align: justify;
}

.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 .fas {
    color: #48BB78;
    margin-right: 10px;
    font-size: 0.9em;
    margin-top: 5px;
}

/* Sección de contacto */
#contacto {
    text-align: center;
    padding: 40px 20px;
    background-color: rgba(24, 43, 73, 0.6);
    border-radius: 15px;
    margin-top: 60px;
    box-shadow: 0 8px 20px var(--shadow-color);
}

#contacto .section-title {
    margin-bottom: 30px;
}

#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;
    flex-wrap: wrap;
}

.contact-info i {
    margin-right: 10px;
    color: var(--light-blue);
}

.contact-info a {
    color: var(--light-blue);
    text-decoration: none;
    transition: color var(--transition-medium);
    display: flex;
    align-items: center;
}

.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 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;
}
/* ======================================= */
/* === DISEÑO RESPONSIVO === */
/* ======================================= */
@media (max-width: 1200px) {
    .modalidad-card {
        gap: 30px;
        padding: 25px;
    }
    
    .card-image {
        min-width: 250px;
        height: 220px;
    }
}

@media (max-width: 992px) {
    header {
        padding: 10px 20px;
    }

    .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;
    }

    .card-content h3 {
        justify-content: center;
    }

    .card-content ul {
        text-align: left;
        padding-left: 20px;
    }

    .contact-info {
        flex-direction: column;
        gap: 15px;
    }
    
    /* Footer responsive */
    footer {
        padding: 50px 40px 20px;
    }
    
    .footer-info, .footer-contact {
        padding-left: 0;
    }
    
    .footer-logo img {
        height: 150px;
    }
}

@media (max-width: 768px) {
    /* Menú hamburguesa */
    .menu-toggle {
        display: flex;
    }

    nav ul {
        display: none;
        flex-direction: column;
        align-items: center;
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: var(--menu-primary-color);
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        z-index: 100;
        height: calc(100vh - 60px);
        overflow-y: auto;
        padding: 20px 0;
    }

    nav ul li {
        margin: 15px 0;
        width: 90%;
        text-align: center;
    }

    nav ul li a {
        font-size: 18px;
        justify-content: center;
    }

    /* Menús desplegables en móvil */
    .dropdown-content,
    .mega-menu,
    .sub-dropdown-content {
        position: static;
        width: 100%;
        box-shadow: none;
        border: none;
        background-color: rgba(0, 0, 0, 0.2);
    }
    
    .sub-dropdown-content {
        border-top: 3px solid var(--menu-secondary-color);
        border-left: none;
    }
    
    .dropdown-content li a,
    .mega-menu li a,
    .sub-dropdown-content li a {
        justify-content: center;
    }
    
    /* Footer */
    .footer-content {
        flex-direction: column;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 576px) {
    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;
    }
    
    /* Footer móvil */
    footer {
        padding: 30px 20px 15px;
    }
    
    .footer-logo img {
        height: 120px;
    }
}