/* ============================================
   APEX | MENU PRINCIPAL
   Montserrat + Pantone APEX
============================================ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

.apex-nav,
.apex-nav *,
.apex-nav *::before,
.apex-nav *::after {
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif !important;
}

.apex-nav {
    --apex-blue: #244080;
    --apex-white: #F0F0F0;

    width: 100%;
    margin: 0;
    padding: 0;
    background: #FFFFFF;
    border-bottom: 1px solid #E5E5E5;
}

.apex-nav-inner {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 0;

    width: 100%;
    max-width: 1700px;
    min-height: 66px;
    margin: 0 auto;
    padding: 0 12px;
}

/* ENLACES */
.apex-nav .apex-nav-item {
    position: relative;

    display: inline-flex;
    flex: 0 1 auto;
    align-items: center;
    justify-content: center;
    gap: 11px;

    min-width: 0;
    min-height: 66px;
    margin: 0;
    padding: 0 22px;

    color: var(--apex-blue) !important;
    background: transparent;
    border: 0;
    border-radius: 0;

    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1.5;
    letter-spacing: 0;
    text-transform: none;
    white-space: nowrap;
    text-decoration: none !important;

    transition: background .2s ease, color .2s ease;
}

/* TEXTOS */
.apex-nav .apex-nav-item span {
    color: inherit;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1.5;
    white-space: nowrap;
}

/* ICONOS */
.apex-nav .apex-nav-item svg {
    display: block;
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    margin: 0;
    padding: 0;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* HOVER */
.apex-nav .apex-nav-item:hover,
.apex-nav .apex-nav-item:focus-visible {
    color: var(--apex-blue) !important;
    background: var(--apex-white);
}

/* LINEA INFERIOR */
.apex-nav .apex-nav-item::after {
    content: "";
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 0;
    height: 2px;

    background: var(--apex-blue);
    transform: scaleX(0);
    transition: transform .2s ease;
}

.apex-nav .apex-nav-item:hover::after,
.apex-nav .apex-nav-item:focus-visible::after {
    transform: scaleX(1);
}

/* TABLET */
@media (min-width: 768px) and (max-width: 1100px) {
    .apex-nav-inner {
        justify-content: space-around;
        padding: 0 5px;
    }

    .apex-nav .apex-nav-item {
        gap: 7px;
        padding: 0 10px;
        font-size: 12px !important;
    }

    .apex-nav .apex-nav-item span {
        font-size: 12px !important;
    }

    .apex-nav .apex-nav-item svg {
        flex-basis: 19px;
        width: 19px;
        height: 19px;
    }

    .apex-nav .apex-nav-item::after {
        left: 10px;
        right: 10px;
    }
}

/* MOVIL: MENU DESLIZABLE */
@media (max-width: 767px) {
    .apex-nav {
        overflow: hidden;
    }

    .apex-nav-inner {
        justify-content: flex-start;
        align-items: stretch;
        gap: 0;

        min-height: 62px;
        padding: 0 6px;

        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .apex-nav-inner::-webkit-scrollbar {
        display: none;
    }

    .apex-nav .apex-nav-item {
        flex: 0 0 auto;
        gap: 8px;
        min-height: 62px;
        padding: 0 15px;
        font-size: 12px !important;
    }

    .apex-nav .apex-nav-item span {
        font-size: 12px !important;
    }

    .apex-nav .apex-nav-item svg {
        flex-basis: 20px;
        width: 20px;
        height: 20px;
    }

    .apex-nav .apex-nav-item::after {
        left: 15px;
        right: 15px;
    }
}

/* ACCESIBILIDAD */
.apex-nav .apex-nav-item:focus-visible {
    outline: 2px solid var(--apex-blue);
    outline-offset: -3px;
}

@media (prefers-reduced-motion: reduce) {
    .apex-nav *,
    .apex-nav *::before,
    .apex-nav *::after {
        transition: none !important;
    }
}

