/* ==========================================================================
   VARIABLES Y CONFIGURACIÓN CORPORATIVA - UE MERCEDES JIJÓN
   ========================================================================== */
:root {
    --primary-color: #FF6F00;       /* Anaranjado */
    --primary-light: #FFE0B2;
    --secondary-color: #03A9F4;     /* Celeste */
    --secondary-light: #E1F5FE;
    --text-dark: #212121;
    --text-gray: #757575;
    --bg-light: #F8F9FA;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-dark);
    background-color: #FFFFFF;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-family: 'Poppins', sans-serif;
}

.justify-text { text-align: justify; }
.font-sm { font-size: 0.925rem; }
.font-xs { font-size: 0.8rem; }

.text-primary { color: var(--primary-color) !important; }
.text-secondary { color: var(--secondary-color) !important; }
.bg-primary { background-color: var(--primary-color) !important; }
.bg-secondary { background-color: var(--secondary-color) !important; }
.text-primary-light { color: #FFF3E0 !important; }
.text-gray { color: #B0BEC5 !important; }

.divider {
    height: 4px;
    width: 60px;
    background-color: var(--primary-color);
    border-radius: 2px;
    margin-top: 10px;
}

.section-padding {
    padding-top: 5.5rem !important;
    padding-bottom: 5.5rem !important;
}
.max-w-950 { max-width: 950px; margin: 0 auto; }

/* Versión Escritorio (Tu código actual) */
.logo-img {
    max-height: 100px;
    width: auto;
    display: inline-block;
    vertical-align: middle;
    transition: all 0.3s ease; /* Añade una transición suave al cambiar de tamaño */
}

/* Ajuste exclusivo para versión móvil (celulares y tablets pequeñas) */
@media (max-width: 767.98px) {
    .logo-img {
        max-height: 65px; /* Reduce la altura para que no desborde en el celular */
    }
}

/* ==========================================================================
   BARRA DE NAVEGACIÓN Y CONTROL DE CAPAS (Z-INDEX FIX TOTAL)
   ========================================================================== */
/* ==========================================
   NAVBAR
========================================== */

#mainNavbar{
    background:rgba(255,255,255,.98);
    backdrop-filter:blur(10px);
    border-bottom:1px solid rgba(0,0,0,.05);
    transition:all .3s ease;
    z-index:1050;
}

#mainNavbar.navbar-scrolled{
    background:#fff;
    padding-top:.6rem;
    padding-bottom:.6rem;
    box-shadow:0 4px 20px rgba(0,0,0,.08);
}

.nav-link{
    color:var(--text-dark);
    font-weight:500;
}

.nav-link:hover,
.nav-link.active{
    color:var(--primary-color)!important;
}

.dropdown-menu{
    border:none;
    border-radius:12px;
    box-shadow:0 6px 20px rgba(0,0,0,.08);
}

.dropdown-item{
    border-radius:8px;
}

.dropdown-item:hover{
    background:var(--primary-light);
}

/* MENÚ MÓVIL */

@media (max-width:991.98px){

    .navbar-collapse{
        background:#fff;
        margin-top:15px;
        padding:20px;
        border-radius:12px;
        box-shadow:0 8px 24px rgba(0,0,0,.12);
    }

    .navbar-nav{
        text-align:left;
    }

    .navbar-nav .nav-item{
        margin:8px 0;
    }

    .dropdown-menu{
        box-shadow:none;
        background:#f8f9fa;
    }
}

@media (min-width:992px){

    .custom-dropdown:hover .dropdown-menu{
        display:block;
    }

}



/* ==========================================================================
   HERO SECTION (CONTROL TRIDIMENSIONAL DEL FONDO Y DEGRADADO)
   ========================================================================== */
.hero-section{
    background-image:
        linear-gradient(
            rgba(3,169,244,.75),
            rgba(255,111,0,.45)
        ),
        url('../img/unidad-educativa-sur-guayaquil.jpg');

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    min-height: 120vh;
    position: relative;
}

@media (max-width: 767.98px) 
{
   .hero-section{ background-image:
        linear-gradient(
            rgba(3,169,244,.75),
            rgba(255,111,0,.45)
        ),
        url('../img/unidad-educativa-sur-guayaquil-movil.jpg');

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    min-height: 90vh;
    position: relative; 
    }
}

.hero-section .container{
    position:relative;
    z-index:2;
}

/* ==========================================================================
   INTERACTIVIDAD, BOTONES Y ADICIONALES
   ========================================================================== */
.custom-hover-btn {
    border: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.custom-hover-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 111, 0, 0.3) !important;
    filter: brightness(1.1);
}

.btn-plataforma {
    background-color: var(--secondary-color) !important;
    border: none;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(3, 169, 244, 0.2);
    transition: all 0.3s ease;
}

.btn-plataforma:hover {
    background-color: #039BE5 !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(3, 169, 244, 0.35) !important;
}

.hover-card {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.hover-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1) !important;
}

/* ==========================================================================
   FOOTER Y SUBPÁGINAS
   ========================================================================== */
footer { border-top: 5px solid var(--primary-color); }
.footer-links a { color: #ffffff; text-decoration: none; transition: all 0.3s ease; }
.footer-links a:hover { color: var(--secondary-color) !important; padding-left: 4px; }
.social-link-btn:hover { background-color: var(--primary-color) !important; transform: scale(1.15); }
.transition-all { transition: all 0.3s ease; }
.bg-dark {background: #FF6F00 !important;}
.subpage-navbar {
    background-color: #FFFFFF !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
    padding-top: 0.6rem !important;
    padding-bottom: 0.6rem !important;
}

.subpage-navbar .nav-link { color: var(--text-dark) !important; }
.subpage-navbar .nav-link:hover, .subpage-navbar .nav-link.active { color: var(--primary-color) !important; }
.subpage-banner { padding-top: 140px !important; padding-bottom: 50px !important; }

.navbar-toggler{
    border:none;
}

.navbar-toggler:focus{
    box-shadow:none;
}

.navbar-toggler-icon{
    width:1.5em;
    height:1.5em;
}

/* Efecto hover elegante para los títulos del blog */
.hover-primary {
    transition: color 0.2s ease-in-out;
}
.hover-primary:hover {
    color: #0d6efd !important; /* Cambia al color primary de Bootstrap */
}

/* Forzar que las imágenes mantengan proporciones óptimas sin deformarse */
.object-fit-cover {
    object-fit: cover;
}