* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
}


/* ===== BARRA SUPERIOR ===== */
.top-bar {
    background-color: #0b3d91;
    color: white;
    font-size: 13px;
    padding: 8px 0;
}

.top-contenedor {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: space-between; /* ← ESTA ES LA CLAVE */
    align-items: center;
}

.top-izquierda,
.top-derecha {
    display: flex;
    gap: 25px;
    align-items: center;
}

.top-bar a {
    color: white;
    text-decoration: none;
    transition: 0.3s;
}

.top-bar a:hover {
    text-decoration: underline;
    opacity: 0.8;
}

/* termina barra superior*/

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3px 40px; /* menos espacio arriba y abajo solo del primer px */
}

.logo {
    font-size: 20px;
    font-weight: bold;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav ul li a {
    color: white; /* color del menu */
    text-decoration: none;
    display: block;        /* 👈 MUY IMPORTANTE */
    padding: 10px 0;       /* 👈 Da espacio */
}

nav ul li a:hover {
    color: #007bff; /* azul institucional */
}

.hero {
    background:  linear-gradient(rgba(0, 25, 65, 0.72), rgba(0, 25, 65, 0.72)),
                url(' ');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 120px 20px;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero button {
    background: #f9b233;
    border: none;
    padding: 12px 25px;
    font-size: 16px;
    cursor: pointer;
}

.seccion {
    padding: 60px 20px;
    text-align: center;
}

.cards {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.card {
    background: #f3f6fa;
    padding: 30px;
    width: 250px;
    border-radius: 10px;
}

.fondo {
    background: #e9eef5;
}

form {
    display: flex;
    flex-direction: column;
    max-width: 400px;
    margin: auto;
    gap: 15px;
}

input, textarea {
    padding: 10px;
}

button {
    background: #002147;
    color: white;
    padding: 10px;
    border: none;
}

footer {
    background: #002147;
    color: white;
    text-align: center;
    padding: 20px;
}

/* Botón flotante WhatsApp */
.social-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.social-float a {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    transition: 0.3s;
}

.social-float a:nth-child(1) {
    background: #1877F2; /* Facebook */
}

.social-float a:nth-child(2) {
    background: #25D366; /* WhatsApp */
}

.social-float a:hover {
    transform: scale(1.1);
}

.facebook-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 95px;
    right: 25px;
    background-color: #1877F2;
    border-radius: 50%;

    display: flex;              /* 🔥 Centrado perfecto */
    justify-content: center;    /* Horizontal */
    align-items: center;        /* Vertical */

    box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    z-index: 100;
    text-decoration: none;
}

.facebook-float img {
    width: 30px;
    transform: translateY(1px); /* Ajusta entre 1px y 3px */
}

/* Pulse WhatsApp */
@keyframes pulse-whatsapp {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 18px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.whatsapp-float {
    animation: pulse-whatsapp 2s infinite;
}

/* Pulse Facebook */
@keyframes pulse-facebook {
    0% {
        box-shadow: 0 0 0 0 rgba(24, 119, 242, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(24, 119, 242, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(24, 119, 242, 0);
    }
}

.facebook-float {
    animation: pulse-facebook 2s infinite;
}
/* ========================= */
/* RESPONSIVE MENU CORRECTO */
/* ========================= */

header {
    position: relative;
}



.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
}

.menu-toggle span {
    width: 30px;
    height: 3px;
    background: #000; /* color de las rayas */
    border-radius: 2px;
}

nav ul li a {
    color: #222;   /* menu color laptop negro elegante */
    text-decoration: none;
}

nav ul li a {
    font-size: 20px;   /* tamaño más grande - menu laptop */
    font-weight: 500;  /* un poco más elegante - menu laptop*/
    letter-spacing: 0.5px;
	text-decoration: none;
}

.logo img {
    height: 100px;   /* logo más grande en laptop */
    width: auto;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    cursor: pointer;
    width: 35px;
    height: 25px;
    position: relative;
}

.menu-toggle span {
    position: absolute;
    width: 100%;
    height: 3px;
    background: #000;
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

/* Posición inicial de las líneas MENU HAMBURGUESA*/
.menu-toggle span:nth-child(1) {
    top: 0;
}

.menu-toggle span:nth-child(2) {
    top: 10px;
}

.menu-toggle span:nth-child(3) {
    top: 20px;
}

/* ===== Animación elegante a X ===== */
.menu-toggle.active span:nth-child(1) {
    top: 10px;
    transform: rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    top: 10px;
    transform: rotate(-45deg);
}

/* MODO MÓVIL */
@media (max-width: 768px) {

    .menu-toggle {
        display: flex;
    }

.logo img {
	height: 50px; /* más pequeño en celular */
}
    nav {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: #002147;
        display: none;
        text-align: center;
    }

    nav ul {
        flex-direction: column;
        padding: 20px 0;
        list-style: none;
    }

    nav ul li {
        margin: 0; 
    }

    nav ul li a {
        display: block;
        padding: 15px 0;
        color: white;
        text-decoration: none;
        font-size: 18px;
    }

    nav ul li a:hover {
        background: rgba(255,255,255,0.1);
    }

    nav.active {
        display: block;
    }

/* menu superior*/
@media (max-width: 768px) {

    .top-contenedor {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }

    .top-izquierda,
    .top-derecha {
        flex-direction: column;
        gap: 5px;
    }

}
/* termina menu superior*/

}


/* Contenedor */
.social-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Botones base */
.facebook-float,
.whatsapp-float {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: pulse 2s infinite;
}

/* Colores */
.facebook-float {
    background: #1877f2;
}

.whatsapp-float {
    background: #25D366;
}

/* Animación */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.4);
    }
    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 15px rgba(0, 0, 0, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
    }
}

/* converierte enlace en boton: preinscripci[on en linea*/
.btn-pre {
    display: inline-block;
    background: linear-gradient(135deg, #0b3d91, #1455c0);
    color: white;
    padding: 16px 40px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 17px;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-pre:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

/* CONTENEDOR ESTUDIANTE MJC */
#nav ul li.dropdown {
    position: relative;
}

/* SUBMENU OCULTO */
#nav ul li.dropdown > .submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 230px;
    background: #ffffff;
    padding: 5px 0;
    margin: 0;
    list-style: none;
    flex-direction: column;
    gap: 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    border-radius: 5px;
    z-index: 1000;
}

/* APARECER AL PASAR EL CURSOR */
#nav ul li.dropdown:hover > .submenu {
    display: flex;
}

/* OPCIÓN PLATAFORMA EDUCATIVA */
#nav ul li.dropdown > .submenu li a {
    display: block;
    color: #0b3d91;
    padding: 12px 18px;
    font-size: 16px;
    white-space: nowrap;
}

#nav ul li.dropdown > .submenu li a:hover {
    background: #f0f4fa;
}

/* ===== NUESTROS COLEGIOS - ESTADOS ===== */

.estados-presencia {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 25px;
    padding: 10px 0;
}

.estados-presencia span {
    display: inline-block;
    background-color: #0b3d91;
    color: #ffffff;
    padding: 12px 25px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.3px;
    box-shadow: 0 3px 8px rgba(0, 33, 71, 0.12);
    transition: all 0.3s ease;
    cursor: default;
}

.estados-presencia span:hover {
    background-color: #002147;
    transform: translateY(-4px);
    box-shadow: 0 5px 12px rgba(0, 33, 71, 0.20);
}

/* Adaptación para celulares */
@media (max-width: 600px) {

    .estados-presencia {
        gap: 10px;
    }

    .estados-presencia span {
        padding: 10px 17px;
        font-size: 13px;
    }
}

/* Acercar saludo institucional a Valores */

.valores-institucionales {
    margin-bottom: 10px;
}

.mensaje-institucional {
    margin-top: 0;
}
/* ===== ESPACIO EN SECCIÓN CONTACTO ===== */
.contacto {
    padding-bottom: 20px;
    margin-bottom: 10px;
}

.contacto h2 {
    text-align: center;
}