/* ==========================================
   APEX SURFACE | MENU MOVIL
   MONTSERRAT
   AZUL CORPORATIVO #203c80
========================================== */

.apex-mobile-menu,
.apex-mobile-menu * ,
.apex-mobile-menu *::before,
.apex-mobile-menu *::after {
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif !important;
}

.apex-mobile-menu {
    --apex-blue: #203c80;
    --apex-white: #F0F0F0;
    --apex-green: #25D366;

    position: relative;
    display: block;
    width: 100%;
}

/* BOTÓN HAMBURGUESA */

.apex-mobile-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    height: 48px;
    padding: 0 16px;

    background: var(--apex-blue);
    color: #FFFFFF;

    border: 1px solid var(--apex-blue);
    border-radius: 7px;

    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

/* ICONO */

.apex-mobile-icon {
    width: 20px;
    height: 16px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.apex-mobile-icon i {
    display: block;
    width: 20px;
    height: 2px;
    background: #FFFFFF;
    border-radius: 3px;
}

/* FONDO OSCURO */

.apex-mobile-backdrop {
    position: fixed;
    inset: 0;
    z-index: 999990;

    background: rgba(0,0,0,.50);

    opacity: 0;
    visibility: hidden;

    transition: opacity .3s ease,
                visibility .3s ease;
}

/* PANEL LATERAL */

.apex-mobile-drawer {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999991;

    width: min(88vw, 390px);
    height: 100vh;
    height: 100dvh;

    padding: 22px 20px;

    background: #FFFFFF;

    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;

    transform: translateX(-105%);
    transition: transform .3s ease;
}

/* MENÚ ABIERTO */

.apex-mobile-menu.is-open .apex-mobile-backdrop {
    opacity: 1;
    visibility: visible;
}

.apex-mobile-menu.is-open .apex-mobile-drawer {
    transform: translateX(0);
}

/* CABECERA */

.apex-mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding-bottom: 18px;

    border-bottom: 2px solid var(--apex-blue);

    color: var(--apex-blue);
    font-size: 15px;
    font-weight: 700;
}

.apex-mobile-close {
    padding: 0 5px;

    background: transparent;
    border: none;

    color: var(--apex-blue);
    font-size: 32px;
    line-height: 1;

    cursor: pointer;
}

/* ENLACES PRINCIPALES */

.apex-mobile-main {
    padding: 10px 0 18px;
}

.apex-mobile-link {
    display: flex;
    align-items: center;
    gap: 13px;

    min-height: 49px;
    padding: 11px 3px;

    border-bottom: 1px solid #E9EDF3;

    color: var(--apex-blue) !important;
    background: #FFFFFF;

    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;

    text-decoration: none !important;
    transition: background .2s ease;
}

/* ICONOS */

.apex-mobile-link-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 23px;
}

.apex-mobile-link-icon svg {
    display: block;
    width: 21px;
    height: 21px;

    fill: none;
    stroke: var(--apex-blue);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* TITULO CATEGORÍAS */

.apex-mobile-category-title {
    padding: 19px 0 12px;

    border-top: 2px solid var(--apex-blue);

    color: var(--apex-blue);

    font-size: 13px;
    font-weight: 700;
    letter-spacing: .3px;
}

/* LISTA CATEGORÍAS */

.apex-mobile-categories a {
    display: block;

    padding: 13px 4px;

    border-bottom: 1px solid #E9EDF3;

    color: var(--apex-blue) !important;
    background: #FFFFFF;

    font-size: 13px;
    font-weight: 500;

    text-decoration: none !important;
    transition: background .2s ease;
}

/* HOVER */

.apex-mobile-link:hover,
.apex-mobile-categories a:hover {
    background: #F3F5FA;
}

/* WHATSAPP */

.apex-mobile-whatsapp {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 9px;

    margin-top: 23px;
    padding: 15px 10px;

    background: var(--apex-green);
    color: #FFFFFF !important;

    border-radius: 7px;

    font-size: 12px;
    font-weight: 700;

    text-decoration: none !important;
}

.apex-mobile-whatsapp svg {
    width: 21px;
    height: 21px;

    fill: none;
    stroke: #FFFFFF;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ACCESIBILIDAD */

.apex-mobile-menu button:focus-visible,
.apex-mobile-menu a:focus-visible {
    outline: 2px solid var(--apex-blue);
    outline-offset: 3px;
}

/* ANIMACIONES */

@media (prefers-reduced-motion: reduce) {
    .apex-mobile-menu *,
    .apex-mobile-menu *::before,
    .apex-mobile-menu *::after {
        transition: none !important;
    }
}
