/* =========================================================
   MOTOGRAPHIX V9
   HEADER MOBILE
   ========================================================= */


/* =========================================================
   HEADER
   ========================================================= */

.mgx-header-mobile {
    position: relative;
    z-index: 1100;

    width: 100%;
    height: 72px;

    display: flex;
    align-items: center;

    background: #000000;

    border-bottom:
        1px solid
        rgba(255, 255, 255, .10);

    box-sizing: border-box;
}


/* =========================================================
   BARRA SUPERIOR
   ========================================================= */

.mgx-mobile-bar {
    width: 100%;
    height: 100%;

    padding: 0 12px;

    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 48px;
    align-items: center;
    gap: 8px;

    box-sizing: border-box;
}


/* =========================================================
   LOGO CENTRADO
   ========================================================= */

.mgx-mobile-logo {
    min-width: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    text-decoration: none;
}

.mgx-mobile-logo img {
    display: block;

    width: min(230px, 100%);
    height: auto;
    max-height: 48px;

    object-fit: contain;
}


/* =========================================================
   WHATSAPP HEADER
   ========================================================= */

.mgx-mobile-whatsapp {
    width: 48px;
    height: 48px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 48px;

    background: #e30613;
    color: #ffffff;

    border-radius: 50%;

    text-decoration: none;

    font-size: 20px;

    transition:
        transform .25s ease,
        background .25s ease;
}

.mgx-mobile-whatsapp:hover {
    background: #ff1726;
    color: #ffffff;

    transform: scale(1.05);
}


.mgx-mobile-whatsapp-icon {
    width: 25px;
    height: 25px;

    display: block;

    color: currentColor;

    fill: none;
    stroke: currentColor;

    pointer-events: none;
}


/* =========================================================
   HAMBURGUESA
   ========================================================= */

.mgx-mobile-toggle {
    position: relative;

    width: 48px;
    height: 48px;

    flex: 0 0 48px;

    padding: 0;
    margin: 0;

    border: 0;
    outline: 0;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    background: transparent;
    color: #ffffff;

    border-radius: 50%;

    cursor: pointer;

    transition:
        background .25s ease,
        transform .25s ease;
}

.mgx-mobile-toggle:hover {
    background:
        rgba(255, 255, 255, .08);
}


/* =========================================================
   ICONO HAMBURGUESA / CERRAR — SVG
   ========================================================= */

.mgx-mobile-toggle-icon {
    position: absolute;

    width: 27px;
    height: 27px;

    display: block;

    color: #ffffff;

    fill: none;
    stroke: currentColor;

    pointer-events: none;

    transition:
        opacity .22s ease,
        transform .30s ease;
}

.mgx-mobile-toggle-icon--menu {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

.mgx-mobile-toggle-icon--close {
    opacity: 0;
    transform: scale(.72) rotate(-90deg);
}

.mgx-mobile-toggle.is-active
.mgx-mobile-toggle-icon--menu {
    opacity: 0;
    transform: scale(.72) rotate(90deg);
}

.mgx-mobile-toggle.is-active
.mgx-mobile-toggle-icon--close {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}


/* =========================================================
   MENÚ DESPLEGABLE
   ========================================================= */

.mgx-mobile-menu {
    position: absolute;

    top: 100%;
    left: 0;

    z-index: 1200;

    width: 100%;

    max-height:
        calc(100dvh - 72px);

    padding: 14px;

    overflow-y: auto;
    overflow-x: hidden;

    box-sizing: border-box;

    background:
        rgba(5, 5, 5, .975);

    border-bottom:
        1px solid
        rgba(227, 6, 19, .45);

    box-shadow:
        0 22px 45px
        rgba(0, 0, 0, .45);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform:
        translateY(-18px)
        scale(.985);

    filter:
        blur(5px);

    transform-origin:
        top center;

    -webkit-overflow-scrolling: touch;

    transition:
        opacity .28s ease,
        transform .38s cubic-bezier(.22, .8, .25, 1),
        filter .28s ease,
        visibility .28s ease;
}

.mgx-mobile-menu.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    transform:
        translateY(0)
        scale(1);

    filter:
        blur(0);
}


/* SCROLLBAR */

.mgx-mobile-menu {
    scrollbar-width: thin;
    scrollbar-color:
        rgba(227, 6, 19, .70)
        rgba(255, 255, 255, .04);
}

.mgx-mobile-menu::-webkit-scrollbar {
    width: 5px;
}

.mgx-mobile-menu::-webkit-scrollbar-track {
    background:
        rgba(255, 255, 255, .04);
}

.mgx-mobile-menu::-webkit-scrollbar-thumb {
    background:
        rgba(227, 6, 19, .70);

    border-radius: 999px;
}


/* =========================================================
   NAVEGACIÓN
   ========================================================= */

.mgx-mobile-nav,
.mgx-mobile-social {
    width: 100%;

    display: flex;
    flex-direction: column;

    gap: 6px;
}

.mgx-mobile-nav {
    padding: 8px;

    box-sizing: border-box;

    background: #151515;

    border:
        1px solid
        rgba(255, 255, 255, .07);

    border-radius: 14px;
}

.mgx-mobile-social {
    padding:
        0
        8px
        8px;

    box-sizing: border-box;
}


/* =========================================================
   BOTONES
   ========================================================= */

.mgx-mobile-item {
    width: 100%;
    min-height: 52px;

    display: flex;
    align-items: center;
    justify-content: flex-start;

    padding:
        0
        16px;

    box-sizing: border-box;

    border:
        1px solid
        rgba(255, 255, 255, .025);

    border-radius: 10px;

    background: #1d1d1d;
    color: #ffffff;

    text-decoration: none;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 14px;
    font-weight: 900;

    letter-spacing: .2px;

    text-transform: uppercase;

    cursor: pointer;

    opacity: 0;

    transform:
        translateY(-12px);

    transition:
        opacity .30s ease,
        transform .36s cubic-bezier(.22, .8, .25, 1),
        background .20s ease,
        border-color .20s ease;
}


/* ICONOS */

.mgx-mobile-item-icon {
    width: 27px;
    height: 27px;

    flex: 0 0 27px;

    margin-right: 12px;

    color: #e30613;

    fill: none;
    stroke: currentColor;

    pointer-events: none;
}


/* HOVER */

.mgx-mobile-item:hover {
    background: #282828;

    border-color:
        rgba(227, 6, 19, .35);

    color: #ffffff;

    transform:
        translateX(3px);
}


/* =========================================================
   SEPARADOR
   ========================================================= */

.mgx-mobile-menu-divider {
    width:
        calc(100% - 16px);

    height: 1px;

    margin:
        10px
        auto;

    background:
        rgba(255, 255, 255, .10);
}


/* =========================================================
   HORARIOS
   ========================================================= */

.mgx-mobile-hours-toggle {
    position: relative;

    border:
        1px solid
        rgba(255, 255, 255, .025);

    text-align: left;
}

.mgx-mobile-hours-toggle span {
    flex: 1 1 auto;
}

.mgx-mobile-hours-chevron {
    width: 18px !important;
    height: 18px !important;

    flex: 0 0 18px !important;

    margin:
        0
        0
        0
        12px !important;

    color:
        rgba(255, 255, 255, .55) !important;

    fill: none;
    stroke: currentColor;

    pointer-events: none;

    transition:
        transform .28s ease,
        color .20s ease;
}

.mgx-mobile-hours-toggle.is-open
.mgx-mobile-hours-chevron {
    color: #e30613 !important;

    transform:
        rotate(180deg);
}


/* PANEL */

.mgx-mobile-hours-panel {
    width: 100%;

    max-height: 0;

    overflow: hidden;

    padding:
        0
        12px;

    box-sizing: border-box;

    border:
        1px solid
        transparent;

    border-radius: 10px;

    background:
        rgba(0, 0, 0, .35);

    opacity: 0;

    transform:
        translateY(-6px);

    transition:
        max-height .34s cubic-bezier(.22, .8, .25, 1),
        opacity .24s ease,
        transform .30s ease,
        padding .30s ease,
        border-color .30s ease;
}

.mgx-mobile-hours-panel.is-open {
    max-height: 190px;

    padding:
        12px;

    border-color:
        rgba(227, 6, 19, .22);

    opacity: 1;

    transform:
        translateY(0);
}


/* FILAS HORARIO */

.mgx-mobile-hours-row {
    min-height: 58px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 16px;

    padding:
        8px
        4px;

    box-sizing: border-box;
}

.mgx-mobile-hours-row + .mgx-mobile-hours-row {
    border-top:
        1px solid
        rgba(255, 255, 255, .07);
}

.mgx-mobile-hours-row > div {
    min-width: 0;

    display: flex;
    flex-direction: column;

    gap: 3px;
}

.mgx-mobile-hours-row strong {
    color: #ffffff;

    font-size: 12px;
    font-weight: 900;

    letter-spacing: .35px;
}

.mgx-mobile-hours-row span {
    color:
        rgba(255, 255, 255, .62);

    font-size: 11px;
    font-weight: 700;
}

.mgx-mobile-hours-row-icon {
    width: 20px;
    height: 20px;

    flex: 0 0 20px;

    color: #e30613;

    fill: none;
    stroke: currentColor;

    pointer-events: none;
}


/* =========================================================
   ENTRADA DE BOTONES
   ========================================================= */

.mgx-mobile-menu.is-active
.mgx-mobile-item {
    opacity: 1;

    transform:
        translateY(0);
}


/* =========================================================
   ANIMACIÓN ESCALONADA
   ========================================================= */

.mgx-mobile-menu.is-active .mgx-delay-1 {
    transition-delay: .10s;
}

.mgx-mobile-menu.is-active .mgx-delay-2 {
    transition-delay: .16s;
}

.mgx-mobile-menu.is-active .mgx-delay-3 {
    transition-delay: .22s;
}

.mgx-mobile-menu.is-active .mgx-delay-4 {
    transition-delay: .28s;
}

.mgx-mobile-menu.is-active .mgx-delay-5 {
    transition-delay: .34s;
}

.mgx-mobile-menu.is-active .mgx-delay-6 {
    transition-delay: .40s;
}

.mgx-mobile-menu.is-active .mgx-delay-7 {
    transition-delay: .46s;
}

.mgx-mobile-menu.is-active .mgx-delay-8 {
    transition-delay: .52s;
}

.mgx-mobile-menu.is-active .mgx-delay-9 {
    transition-delay: .60s;
}

.mgx-mobile-menu.is-active .mgx-delay-10 {
    transition-delay: .68s;
}

.mgx-mobile-menu.is-active .mgx-delay-11 {
    transition-delay: .76s;
}


/* =========================================================
   SOLO MOBILE / TABLET VERTICAL
   ========================================================= */

@media (min-width: 900px) {

    .mgx-header-mobile {
        display: none;
    }

    .mgx-mobile-menu {
        display: none;
    }

}


/* =========================================================
   MÓVILES PEQUEÑOS
   ========================================================= */

@media (max-width: 480px) {

    .mgx-header-mobile {
        height: 68px;
    }


    .mgx-mobile-bar {
        padding:
            0
            12px;
    }


    .mgx-mobile-logo img {
        width: 140px;
        max-height: 44px;
    }


    .mgx-mobile-actions {
        gap: 7px;
    }


    .mgx-mobile-whatsapp,
    .mgx-mobile-toggle {
        width: 40px;
        height: 40px;

        flex-basis: 40px;
    }


    .mgx-mobile-menu {
        max-height:
            calc(100dvh - 68px);

        padding: 10px;
    }


    .mgx-mobile-nav {
        padding: 7px;
    }


    .mgx-mobile-social {
        padding:
            0
            7px
            7px;
    }


    .mgx-mobile-item {
        min-height: 50px;

        padding:
            0
            14px;

        font-size: 13px;
    }


    .mgx-mobile-item-icon {
        width: 25px;
        height: 25px;

        flex-basis: 25px;

        margin-right: 10px;
    }


    .mgx-mobile-hours-row strong {
        font-size: 11px;
    }


    .mgx-mobile-hours-row span {
        font-size: 10px;
    }

}


/* =========================================================
   ACCESIBILIDAD
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .mgx-mobile-menu,
    .mgx-mobile-item,
    .mgx-mobile-toggle-icon,
    .mgx-mobile-hours-panel,
    .mgx-mobile-hours-chevron {
        transition-duration: .01ms !important;
        transition-delay: 0ms !important;
    }

}


@media (max-width: 380px) {
    .mgx-mobile-bar {
        padding: 0 8px;
        grid-template-columns: 46px minmax(0, 1fr) 46px;
        gap: 6px;
    }

    .mgx-mobile-toggle,
    .mgx-mobile-whatsapp {
        width: 46px;
        height: 46px;
        flex-basis: 46px;
    }

    .mgx-mobile-logo img {
        width: min(200px, 100%);
    }
}
