:root {
    --azul-primario: #0046ae;
    --azul-oscuro: #002266;
    --amarillo: #ffb703;
    --celeste-badge: #0084ff;
    --gris-fondo: #f8f9fa;
}
.text-azul{
    color: #002266;
}
body {
    font-family: 'Inter', sans-serif;
    color: #333;
    overflow-x: hidden;
}

/* ==========================================================================
   NUEVOS ESTILOS PARA LOS LOGOS (Control de tamaño)
   ========================================================================== */
.logo-nav {
    width: 45px;          /* Ajusta este valor si lo quieres un poco más grande o chico */
    height: 45px;
    object-fit: contain;  /* Evita que el logo se deforme o se estire mal */
}

.logo-footer {
    width: 40px;          /* Tamaño controlado para el pie de página */
    height: 40px;
    object-fit: contain;
}

/* ==========================================================================
   Topbar & Navbar (Ajustado para el Slider de Fondo)
   ========================================================================== */
.topbar {
    background-color: var(--azul-oscuro);
    font-size: 0.85rem;
}

/* Hacemos que la barra de navegación sea transparente sobre el slider */
.mi-navbar-color {
    background-color: rgba(255, 255, 255) !important; 
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.navbar-nav .nav-link {
    color: #001533 !important; /* Texto blanco para contrastar con el slider */
    font-weight: 600;
    opacity: 0.85;
    transition: opacity 0.3s ease;
}

.navbar-nav .nav-link:hover {
    opacity: 1;
}

.navbar-nav .nav-link.active {
    color: var(--amarillo) !important;
    opacity: 1;
    border-bottom: 3px solid var(--amarillo);
}

/* Hero Section with Background Slider */
.hero-section {
    position: relative;
    min-height: 650px;
    padding: 6rem 0;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-top: -81px; /* Empuja el slider bajo la navbar transparente (Ajusta según la altura de tu nav) */
}

/* Background Carousel */
.hero-bg-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}
.hero-bg-carousel .carousel-item {
    height: 100%;
    min-height: 650px;
}
.hero-bg-carousel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 
   Capa de superposición equilibrada:
   ¡MODIFICADO! Cambiado a tonos oscuros semitransparentes muy sutiles.
   Ahora las fotos del slider se notarán muchísimo más nítidas y vivas.
*/
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        rgba(0, 21, 51, 0.55) 0%,   /* Un poco más oscuro a la izquierda para leer las letras blancas */
        rgba(0, 21, 51, 0.35) 50%, 
        rgba(0, 21, 51, 0.15) 100%   /* Muy transparente a la derecha para apreciar la foto */
    );
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
}

/* 
   Text-shadow sutil:
   ¡MODIFICADO! Letras en color blanco y sombras oscuras 
   para garantizar legibilidad perfecta sobre tus fotos del slider.
*/
.hero-title {
    font-size: 3.4rem;
    font-weight: 800;
    color: #ffffff; /* Letras principales blancas */
    line-height: 1.2;
    text-shadow: 0px 2px 8px rgba(0, 0, 0, 0.6);
}
.hero-title span {
    color: var(--amarillo);
    text-shadow: 0px 2px 8px rgba(0, 0, 0, 0.6);
}
.hero-description {
    color: rgba(255, 255, 255, 0.9) !important; /* Descripción blanca clara */
    text-shadow: 0px 1px 4px rgba(0, 0, 0, 0.6);
    font-weight: 500;
}
.badge-educamos {
    background-color: var(--celeste-badge);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    display: inline-block;
    box-shadow: 0 4px 10px rgba(0, 132, 255, 0.2);
}

/* Glass Container on the right for badges */
.glass-badge-container {
    background: rgba(255, 255, 255, 0.2); /* Más cristalino para ver el slider a través */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.feature-tag-card {
    background: rgba(255, 255, 255, 0.9); /* Tarjetas internas ligeramente translúcidas */
    border-radius: 12px;
    padding: 0.8rem 1.2rem;
    box-shadow: 0 6px 15px rgba(0,0,0,0.05);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}
.feature-tag-card:last-child {
    margin-bottom: 0;
}
.feature-tag-card:hover {
    transform: scale(1.02);
}
.feature-tag-card i {
    font-size: 1.6rem;
    color: var(--azul-primario);
}

/* BUTTONS */
.btn-primary-custom {
    background-color: var(--azul-primario);
    color: white;
    border-radius: 8px;
    padding: 0.9rem 2.2rem;
    font-weight: 700;
    font-size: 1.1rem;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 70, 174, 0.3);
    transition: all 0.3s ease;
}
.btn-primary-custom:hover {
    background-color: var(--azul-oscuro);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 34, 102, 0.4);
}

/* RESPONSIVE HERO OPTIMIZATION */
@media (max-width: 991.98px) {
    .hero-section {
        margin-top: 0; /* En móviles evita desfases con menús colapsables */
        text-align: center !important;
        padding: 4rem 0;
    }
    .hero-overlay {
        background: linear-gradient(180deg, 
            rgba(0, 21, 51, 0.8) 0%, 
            rgba(0, 21, 51, 0.6) 100%
        );
    }
    .hero-title {
        font-size: 2.2rem;
        text-align: center !important;
    }
    .hero-description {
        margin: 0 auto 1.5rem auto !important;
        text-align: center !important;
    }
    .hero-content .d-flex {
        justify-content: center !important;
    }
    .glass-badge-container {
        margin-top: 2rem;
        background: rgba(255, 255, 255, 0.15);
    }
}

/* Info Strip (Below Hero) */
.info-strip {
    margin-top: -30px;
    position: relative;
    z-index: 10;
}
.info-card {
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: none;
    height: 100%;
}

.section-badge {
    background-color: #e6f0fa;
    color: var(--celeste-badge);
    font-weight: 600;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    display: inline-block;
}

/* Niveles Educativos */
.level-card {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}
.level-card:hover {
    transform: translateY(-5px);
}
.level-icon-badge {
    width: 45px;
    height: 45px;
    background-color: var(--celeste-badge);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -25px;
    position: relative;
    border: 3px solid white;
}

/* CTA Section */
.cta-box {
    background: linear-gradient(90deg, var(--azul-oscuro) 0%, var(--azul-primario) 100%);
    border-radius: 20px;
    color: white;
    position: relative;
    overflow: hidden;
}

/* Footer */
footer {
    background-color: #001533;
    color: #b3c6ff;
    font-size: 0.9rem;
}
footer h5 {
    color: white;
    font-weight: 600;
}
footer a {
    color: #b3c6ff;
    text-decoration: none;
}
footer a:hover {
    color: white;
}

/* Floating WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    text-decoration: none;
}
/* Contenedor */
.logos {
    max-width: 900px;      /* Cambia este valor */
    width: 90%;
    margin: 50px auto;
    overflow: hidden;
    padding: 20px 0;
    position: relative;
    background: #fff;
    border-radius: 15px;
}

/* Efecto degradado en los lados */
.logos::before,
.logos::after {
    content: "";
    position: absolute;
    top: 0;
    width: 120px;
    height: 100%;
    z-index: 2;
}

.logos::before {
    left: 0;
    background: linear-gradient(to right, #fff, transparent);
}

.logos::after {
    right: 0;
    background: linear-gradient(to left, #fff, transparent);
}

/* Contenedor de logos */
.logos-slide {
    display: flex;
    align-items: center;
    width: max-content;
    animation: scroll 25s linear infinite;
}

/* Logos */
.logos-slide img {
    width: 150px;
    height: 80px;
    object-fit: contain;
    margin: 0 40px;
    transition: transform .3s;
}

.logos-slide img:hover {
    transform: scale(1.1);
}

/* Animación */
@keyframes scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

/* Responsive */
@media (max-width: 992px) {
    .logos-slide img {
        width: 120px;
        margin: 0 25px;
    }
}

@media (max-width: 768px) {
    .logos-slide img {
        width: 90px;
        margin: 0 18px;
    }

    .logos::before,
    .logos::after {
        width: 60px;
    }
}

@media (max-width: 480px) {
    .logos-slide img {
        width: 70px;
        margin: 0 12px;
    }
}