/* =====================================================
   MENU OABI TABLET / MOVIL
   INDEPENDIENTE DEL MENU PC
   NO AFECTA DESKTOP
===================================================== */



/* =====================================================
   TABLET Y MOVIL
   Hasta 1024px
===================================================== */

@media screen and (max-width:1024px){



/* =====================================================
   HEADER MOVIL
===================================================== */


.oabi-mobile-header{

    display:flex;

    position:fixed;

    top:0;
    left:0;

    width:100%;
    height:80px;

    background:#17468C;

    align-items:center;
    justify-content:space-between;

    padding:0 20px;

    z-index:3000;

}




/* LOGO */

.logo-movil{

    height:45px;

    width:auto;

}





/* BOTON HAMBURGUESA */

.oabi-mobile-menu-btn{

    text-decoration:none;

    display:flex;

    align-items:center;

    justify-content:center;

    width:40px;

    height:40px;

}







/* =====================================================
   ICONO HAMBURGUESA → X
===================================================== */

.icon-menu{

    width:30px;
    height:22px;

    display:block;

    position:relative;

}


/* Tres líneas */

.icon-menu::before,
.icon-menu::after{

    content:"";

    position:absolute;

    left:0;

    width:30px;

    height:3px;

    background:white;

    border-radius:3px;

    transition:
        transform 0.3s ease,
        top 0.3s ease,
        box-shadow 0.3s ease;

}


/* Línea superior + línea central */

.icon-menu::before{

    top:0;

    box-shadow:
        0 9px 0 white,
        0 18px 0 white;

}


/* Línea inferior */

.icon-menu::after{

    display:none;

}


/* =====================================================
   MENÚ ABIERTO → X
===================================================== */

.oabi-mobile-menu-btn.activo .icon-menu::before{

    top:9px;

    box-shadow:none;

    transform:rotate(45deg);

}


.oabi-mobile-menu-btn.activo .icon-menu::after{

    display:block;

    top:9px;

    transform:rotate(-45deg);

}





/* =====================================================
   MENU LATERAL
===================================================== */


.oabi-mobile-nav{


    position:fixed;

    top:80px;

    left:-100%;


    width:100%;


    height:calc(100vh - 80px);


    background:white;


    overflow-y:auto;


    z-index:2500;


    transition:.3s ease;


}



/* MENU ABIERTO */

.oabi-mobile-nav.activo{


    left:0;


}





/* LISTAS */

.oabi-mobile-nav ul{


    list-style:none;

    margin:0;

    padding:0;


}




/* MENU PRINCIPAL */


.oabi-mobile-nav > ul > li > a{


    display:block;


    padding:20px;


    color:#54595F;


    font-size:15px;


    text-decoration:none;


    border-bottom:1px solid #eeeeee;


}





/* =====================================================
   SUBMENUS
===================================================== */


.mobile-children{


    display:none;


    background:#17468C;


}




.mobile-children.activo{


    display:block;


}




.mobile-children li a{


    display:block;


    padding:16px 25px;


    color:white;


    font-size:15px;


    text-decoration:none;


}





}


/* =====================================
   CORRECCIÓN HEADER MOVIL
   EVITA CONFLICTO CON LOGO ANTERIOR
===================================== */

.oabi-mobile-header .logo-movil{

    position:static !important;

    transform:none !important;

    height:45px;

    width:auto;

}


.oabi-mobile-menu-btn{

    position:static !important;

    display:flex;

    align-items:center;

    justify-content:center;

}


/* =====================================================
   OCULTAR MENU MOVIL EN PC
   NO TOCA MENU DESKTOP
===================================================== */


@media screen and (min-width:1025px){


    .oabi-mobile-header,
    .oabi-mobile-nav{


        display:none;


    }


}
/* =====================================
   FLECHAS DE SUBMENU
===================================== */

.mobile-submenu > a{

    position:relative;

    padding-right:45px;

}


/* Flecha */

.mobile-submenu > a::after{


    content:"›";

    position:absolute;

    right:20px;

    top:50%;

    transform:translateY(-50%);

    font-size:28px;

    color:#17468C;

    transition:.3s ease;


}



/* Cuando está abierto */

.mobile-submenu:has(.mobile-children.activo) > a::after{


    transform:
    translateY(-50%)
    rotate(90deg);


}
/* =====================================================
   DIVISIONES DENTRO DE SUBMENUS
===================================================== */


.mobile-children li{

    border-bottom:1px solid rgba(255,255,255,0.18);

}


/* quitar línea al último elemento */

.mobile-children li:last-child{

    border-bottom:none;

}



/* espacio y efecto al tocar */

.mobile-children li a{

    transition:0.3s ease;

}


.mobile-children li a:hover{

    background:rgba(255,255,255,0.10);

    padding-left:35px;

}
/* =====================================================
   ANIMACIÓN HAMBURGUESA → X
   ===================================================== */

.icon-menu::before,
.icon-menu::after{
    transition: transform 0.3s ease,
               top 0.3s ease,
               box-shadow 0.3s ease;
}


/* MENÚ ABIERTO */

.oabi-mobile-menu-btn.activo .icon-menu::before{

    top:9px;

    transform:rotate(45deg);

    box-shadow:none;

}


.oabi-mobile-menu-btn.activo .icon-menu::after{

    top:9px;

    transform:rotate(-45deg);

}