body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #e6e9ed;
}

/* HEADER FIJO */
.main-header {
    background-color: #1a2a44;
    color: white;
    padding: 20px 0;

    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;

    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Contenedor interno */
.header-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Empuja SOLO la primera sección */
section:first-of-type {
    margin-top: 70px;
}
/* Ajuste para anclas */
section {
    padding: 60px 20px;
    text-align: center;
    scroll-margin-top: 140px;
}

nav {
    margin-top: 15px;
}

nav a {
    color: white;
    text-decoration: none;
    margin: 0 15px;
    font-weight: bold;
}

nav a:hover {
    text-decoration: underline;
}

.hero {
    background: linear-gradient(to bottom, #dfe3e8, #f2f4f7);
    padding: 50px 20px 80px 20px;
    text-align: center;
}

.hero-images {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 60px;
    flex-wrap: wrap;
}

.hero-images img {
    width: 260px;
    border-radius: 10px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.hero-images img:hover {
    transform: scale(1.18);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}
.nosotros-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    max-width: 1200px;
    margin: auto;
    padding: 60px 20px;
}

.nosotros-texto {
    flex: 1;
    text-align: left;
}

.nosotros-texto h2 {
    margin-bottom: 20px;
}

.nosotros-texto p {
    font-size: 18px;
    line-height: 1.6;
    color: #444;
}

.nosotros-imagen {
    flex: 1;
}

.nosotros-imagen img {
    width: 100%;
    border-radius: 10px;
}



/* MISION - VISION - VALORES */

.filosofia p {
    font-family: Georgia, 'Times New Roman', serif;
    font-style: italic;
    line-height: 1.8;
    font-size: 17px;
    color: #e0e6ed;
}

.filosofia h3 {
    margin-bottom: 15px;
    font-size: 22px;
    letter-spacing: 1px;
}
.filosofia-container {
    display: flex;
    justify-content: space-between;
    gap: 60px;
    flex-wrap: nowrap;
    max-width: 1200px;
    margin: auto;
}

.filosofia-box {
    flex: 1;
    min-width: 260px;
    padding: 0 30px;
    position: relative;
}

/* Línea divisora */
.filosofia-box:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 10%;
    height: 80%;
    width: 1px;
    background-color: rgba(255,255,255,0.3);
}
@media (max-width: 768px) {
    .filosofia-container {
        flex-wrap: wrap;
        gap: 40px;
    }

    .filosofia-box::after {
        display: none;
    }
}
/* ===== HEADER ===== */

.main-header {
    background: #1a2a44;
    padding: 15px 40px;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    height: 50px;
}

.main-nav a {
    color: white;
    margin-left: 25px;
    text-decoration: none;
    font-weight: bold;
}

.main-nav a:hover {
    text-decoration: underline;
}
/* ===== HERO ===== */

.hero h1 {
    font-size: 42px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 18px;
    max-width: 1100px;
    margin: auto;
    color: #444;
    line-height: 1.6;
}
/* ===== FILOSOFÍA ===== */

.filosofia {
    background: #1a2a44;
    color: white;
    padding: 60px 20px;
}
/* ===== CURSOS ===== */

#cursos {
    text-align: center;
    padding: 60px 20px;
}

.curso-card {
    background: white;
    padding: 40px;
    margin: 40px auto;
    max-width: 700px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.curso-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.curso-info {
    color: #555;
    margin-bottom: 20px;
}

.curso-boton {
    display: inline-block;
    margin-top: 20px;
    background: #0a66c2;
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: 0.3s ease;
}

.curso-boton:hover {
    background: #084a91;
}
/* ===== MENÚ PRINCIPAL ===== */

.menu {
    list-style: none;
    display: flex;
    gap: 25px;
    margin: 0;
    padding: 0;
}

.menu li {
    position: relative;
}

.menu a {
    color: white;
    text-decoration: none;
    font-family: "Segoe UI", Arial, sans-serif;
    font-weight: 600;
    letter-spacing: 0.5px;
    font-size: 15px;
}


/* ===== SUBMENÚ NIVEL 1 (ÁREAS) ===== */

.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    min-width: 220px;          /* antes 280 */
    border-radius: 6px;        /* un poco más sutil */
    padding: 6px 0;            /* menos espacio vertical */
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.submenu li {
    position: relative;
}

.submenu a {
    display: block;
    padding: 10px 18px;   /* más compacto */
    color: #1a2a44;
    text-decoration: none;
    font-size: 13.5px;
    font-family: "Segoe UI", Arial, sans-serif;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: all 0.2s ease;
}

.submenu a:hover {
    background: #f4f6fa;
    padding-left: 28px;
}


/* ===== SUBMENÚ NIVEL 2 (CURSOS) ===== */

.submenu2 {
    display: none;
    position: absolute;
    top: 0;
    right: calc(100% + 3px);   /* un poco más cerca */
    background: #ffffff;
    min-width: 230px;          /* antes 300 */
    border-radius: 6px;
    padding: 6px 0;
    box-shadow: 0 8px 20px rgba(0,0,0,0.14);
}

.submenu2 a {
    display: block;
    padding: 10px 18px;      /* más compacto */
    font-size: 13.5px;
    font-family: "Segoe UI", Arial, sans-serif;
    font-weight: 500;
    color: #1a2a44;
    text-decoration: none;
    transition: all 0.2s ease;
}

.submenu2 a:hover {
    background: #eef2f7;
    padding-left: 24px;      /* desplazamiento más sutil */
}


/* ===== ANIMACIÓN SUAVE ===== */

.submenu,
.submenu2 {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.dropdown:hover > .submenu,
.dropdown-sub:hover > .submenu2 {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* ===== SECCIÓN CONTACTO ===== */

.contacto {
    background: #f4f6fa;
    padding: 70px 20px;
    text-align: center;
}

.contacto h2 {
    font-size: 28px;
    margin-bottom: 40px;
    font-family: "Segoe UI", Arial, sans-serif;
    color: #1a2a44;
}

.contacto-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.contacto-item {
    background: white;
    padding: 30px 40px;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    min-width: 250px;
}

.contacto-item h3 {
    margin-bottom: 10px;
    font-size: 18px;
    color: #1a2a44;
}

.contacto-item p {
    margin-bottom: 15px;
    color: #555;
}

.btn-whatsapp {
    display: inline-block;
    padding: 10px 20px;
    background: #25D366;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    font-size: 14px;
    transition: 0.2s ease;
}

.btn-whatsapp:hover {
    background: #1ebe5d;
}

/* ===== FOOTER INSTITUCIONAL ===== */

.contacto-footer {
    background: #0f1c2e;
    padding: 20px 60px 50px 60px;
    color: white;
}
.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    max-width: 1200px;
}

.footer-left {
    max-width: 500px;
}

.footer-right {
    text-align: left;
}

.footer-logo {
    margin-bottom: 30px;
}

.footer-logo img {
    height: 48px;
    display: block;
}

.footer-item {
    margin-bottom: 18px;
}

.footer-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    text-decoration: none;
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 15px;
    transition: opacity 0.2s ease;
}

.footer-link:hover {
    opacity: 0.7;
}

.footer-social {
    margin-top: 25px;
    display: flex;
    gap: 20px;
}

.footer-social a {
    display: inline-flex;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.footer-social a:hover {
    transform: translateY(-3px);
    opacity: 0.7;
}

.footer-title {
    margin: 15px 0 30px 0;
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 20px;              /* más grande */
    font-weight: 700;
    letter-spacing: 1px;
    color: white;
    display: inline-block;
    border-bottom: 3px solid #2f5fa7;
    padding-bottom: 8px;
}

.footer-logo {
    margin-top: 50px;
}

.footer-logo img {
    height: 45px;
}

.footer-legal {
    margin-top: 10px;
    text-align: center;
    font-size: 13px;
    opacity: 0.7;
    font-family: "Segoe UI", Arial, sans-serif;
}

/* ===== HAMBURGUESA ===== */
.hamburger {
    display: none;
    font-size: 28px;
    cursor: pointer;
    color: white;
}

/* ===== RESPONSIVE MOBILE ===== */
@media (max-width: 768px) {

    /* Header compacto */
    .main-header {
        padding: 10px 0;
    }

    .header-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: relative; /* clave para que el menú no se salga */
    }

    .logo img {
        height: 45px;
    }

    .hamburger {
        display: block;
        font-size: 26px;
        cursor: pointer;
        color: white;
    }

    /* Menú desplegable */
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #1a2a44;
        display: none;
        flex-direction: column;
        padding: 20px 0;
    }

    .main-nav.active {
        display: flex;
    }

    .menu {
        display: flex;              /* ← faltaba esto */
        flex-direction: column;
        align-items: center;
        gap: 15px;
        padding: 0;
        margin: 0;
    }

    .menu li {
        list-style: none;
    }

    .menu a {
        font-size: 16px;
    }

    /* Recuperar sección Nosotros */
    .nosotros-container {
        flex-direction: column;
        text-align: center;
    }

    .nosotros-texto {
        text-align: center;
    }

    /* Ajuste por header fijo */
    section:first-of-type {
        margin-top: 120px;
    }

    section {
        scroll-margin-top: 120px;
    }
}

.header-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;   /* ← ESTO ES CLAVE */
}