/* =========================================================
   MOTOGRAPHIX V9 — HEADER MOBILE
   Navegación principal: dock inferior.
   ========================================================= */

.mgx-header-mobile {
    position: relative;
    z-index: 1100;
    width: 100%;
    height: 78px;

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

    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,.24) 0%,
            rgba(255,255,255,.13) 100%
        );

    -webkit-backdrop-filter:
        blur(20px)
        saturate(155%);
    backdrop-filter:
        blur(20px)
        saturate(155%);

    border-bottom: 0;

    /* Sombra suave, sin línea en el borde inferior */
    box-shadow:
        0 12px 30px rgba(0,0,0,.07);
}

.mgx-mobile-bar {
    width: 100%;
    height: 100%;
    padding: 0 16px;

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

.mgx-mobile-logo {
    width: min(285px, calc(100vw - 44px));
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.mgx-mobile-logo img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 42px;
    object-fit: contain;

    /* Borde oscuro alrededor del logo para que el blanco no se pierda */
    filter:
        drop-shadow(1px 0 0 rgba(0,0,0,.92))
        drop-shadow(-1px 0 0 rgba(0,0,0,.92))
        drop-shadow(0 1px 0 rgba(0,0,0,.92))
        drop-shadow(0 -1px 0 rgba(0,0,0,.92))
        drop-shadow(0 3px 7px rgba(0,0,0,.28));
}

@media (max-width: 390px) {
    .mgx-header-mobile { height: 74px; }
    .mgx-mobile-logo { width: min(255px, calc(100vw - 36px)); }
    .mgx-mobile-logo img { max-height: 38px; }
}

@media (min-width: 900px) {
    .mgx-header-mobile { display: none !important; }
}


/* =========================================================
   HOME — HEADER MÓVIL SOBRE EL HERO
   ========================================================= */

body.home .mgx-header-mobile {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
}
