/* =========================================================
   MOTOGRAPHIX V9
   HERO — MOBILE / TABLET VERTICAL
   ========================================================= */

@media (max-width: 899px) {

    /* =====================================================
       HERO
       ===================================================== */

    .mgx-home-hero-shell {
        width: 100%;
        overflow: hidden;
        background: #000;
    }

    .hero {
        position: relative;
        width: 100%;
        height: calc(100svh - 72px);
        min-height: 620px;
        max-height: none;
        overflow: hidden;
        isolation: isolate;
        background: #000;
    }

    .mgx-hero-track,
    .mgx-hero-slide {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
    }

    .mgx-hero-slide {
        overflow: hidden;
        background: #000;
    }

    /* =====================================================
       IMAGEN MÓVIL
       ===================================================== */

    .mgx-hero-image {
        position: absolute;
        z-index: 0;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: var(--mgx-hero-position-mobile, center center);
        transform: scale(1.002);
        transform-origin: center center;
        transition: transform 7s ease-out;
        user-select: none;
        -webkit-user-drag: none;
    }

    .mgx-hero-slide.is-active .mgx-hero-image {
        transform: scale(1.008);
    }

    .mgx-hero-slide::before,
    .mgx-hero-slide::after {
        display: none;
    }

    /* =====================================================
       OVERLAY MÓVIL
       ===================================================== */

    .mgx-hero-image-overlay {
        position: absolute;
        z-index: 2;
        inset: 0;
        pointer-events: none;

        background:
            linear-gradient(
                180deg,
                rgba(0,0,0,.70) 0%,
                rgba(0,0,0,.52) 14%,
                rgba(0,0,0,.28) 30%,
                rgba(0,0,0,.08) 46%,
                rgba(0,0,0,0) 58%
            ),
            linear-gradient(
                180deg,
                rgba(0,0,0,0) 55%,
                rgba(0,0,0,.04) 64%,
                rgba(0,0,0,.16) 72%,
                rgba(0,0,0,.42) 82%,
                rgba(0,0,0,.76) 92%,
                #000 100%
            );
    }

    /* =====================================================
       CONTENIDO MÓVIL
       A LA IZQUIERDA + UN POCO MÁS ABAJO
       ===================================================== */

    .mgx-hero-content {
        position: absolute;
        z-index: 5;
        top: 108px;
        left: 24px;
        right: auto;
        width: calc(100% - 48px);
        max-width: 300px;
        transform: none;
        color: #fff;
        text-align: left;
    }

    /* =====================================================
       STICKERS PARA MOTOS
       ===================================================== */

    .mgx-hero-main-title {
        margin: 0;
        opacity: 0;
        transform: translateX(-24px);
        /* Sombra más marcada + borde negro muy fino */
        text-shadow:
            0 2px 2px rgba(0,0,0,.98),
            0 5px 14px rgba(0,0,0,.92),
            0 10px 24px rgba(0,0,0,.58);
        -webkit-text-stroke: .55px rgba(0,0,0,.86);
        paint-order: stroke fill;
    }

    .mgx-hero-main-title > span {
        display: block;
        width: max-content;
        max-width: 100%;
        font-size: clamp(47px, 13vw, 66px);
        line-height: .82;
        letter-spacing: 0;
        white-space: nowrap;
    }

    .mgx-hero-main-title > span + span {
        margin-top: 5px;
    }

    /* =====================================================
       CATEGORÍA — CINTA ROJA
       ===================================================== */

    .mgx-hero-category {
        position: relative;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: max-content;
        max-width: calc(100vw - 76px);
        margin-top: 20px;
        margin-left: 0;
        margin-right: 0;
        padding: 8px 18px;
        color: #fff;
        font-family: "Bebas Neue", "Arial Narrow", Impact, sans-serif;
        font-size: clamp(22px, 6vw, 29px);
        font-weight: 400;
        line-height: 1;
        letter-spacing: .7px;
        text-transform: uppercase;
        font-style: normal;
        white-space: nowrap;
        opacity: 0;
        transform: translateX(-22px);
        text-shadow:
            0 2px 2px rgba(0,0,0,.92),
            0 4px 9px rgba(0,0,0,.68);
        -webkit-text-stroke: .35px rgba(0,0,0,.76);
        paint-order: stroke fill;
        isolation: isolate;
    }

    .mgx-hero-category::before {
        content: "";
        position: absolute;
        z-index: -1;
        top: 0;
        right: -8px;
        bottom: 0;
        left: -8px;
        background: linear-gradient(135deg, #ff1b29 0%, #e30613 58%, #c8000c 100%);
        transform: skewX(-24deg);
        box-shadow:
            0 6px 18px rgba(0,0,0,.28),
            0 4px 16px rgba(227,6,19,.18);
    }

    /* =====================================================
       DESCRIPCIÓN
       ===================================================== */

    .mgx-hero-text {
        max-width: 245px;
        margin: 15px 0 0;
        color: rgba(255,255,255,.94);
        font-family: Arial, Helvetica, sans-serif;
        font-size: clamp(13px, 3.4vw, 15px);
        line-height: 1.45;
        font-weight: 500;
        opacity: 0;
        transform: translateY(14px);
        text-align: left;
        text-shadow:
            0 1px 2px rgba(0,0,0,1),
            0 3px 9px rgba(0,0,0,.98),
            0 7px 16px rgba(0,0,0,.62);
        -webkit-text-stroke: .18px rgba(0,0,0,.74);
        paint-order: stroke fill;
    }

    /* =====================================================
       INDICADORES
       ===================================================== */

    .mgx-hero-dots {
        position: absolute;
        z-index: 20;
        left: 50%;
        bottom: 76px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
        transform: translateX(-50%);
    }

    .mgx-hero-dot {
        width: 25px;
        height: 22px;
    }

    .mgx-hero-dot::before {
        width: 6px;
        height: 6px;
    }

    .mgx-hero-dot.is-active::before {
        width: 23px;
        background: #ed101d;
    }

    /* =====================================================
       BOTÓN VER CATÁLOGO
       ===================================================== */

    .floating-catalog {
        position: absolute;
        z-index: 40;
        left: 22px;
        right: 22px;
        bottom: 16px;
        width: calc(100% - 44px);
        min-width: 0;
        height: 54px;
        padding: 0 22px;
        display: flex;
        align-items: center;
        justify-content: center;
        transform: none;
        border-radius: 999px;
        font-size: 15px;
        letter-spacing: .5px;
        box-shadow:
            0 8px 25px rgba(0,0,0,.42),
            0 7px 26px rgba(227,6,19,.28);
    }

    .floating-catalog:hover {
        transform: translateY(-2px);
    }
}

/* =========================================================
   MÓVILES PEQUEÑOS
   ========================================================= */

@media (max-width: 480px) {

    .hero {
        min-height: 590px;
    }

    .mgx-hero-content {
        top: 104px;
        left: 18px;
        right: auto;
        width: calc(100% - 36px);
        max-width: 280px;
        transform: none;
        text-align: left;
    }

    .mgx-hero-main-title > span {
        font-size: clamp(43px, 13vw, 57px);
    }

    .mgx-hero-category {
        margin-top: 17px;
        margin-left: 0;
        margin-right: 0;
        padding: 7px 16px;
        font-size: clamp(20px, 5.7vw, 25px);
    }

    .mgx-hero-text {
        margin-top: 13px;
        max-width: 230px;
        font-size: 13px;
        line-height: 1.45;
        text-align: left;
    }

    .mgx-hero-dots {
        bottom: 73px;
    }

    .floating-catalog {
        left: 18px;
        right: 18px;
        bottom: 14px;
        width: calc(100% - 36px);
        height: 52px;
        font-size: 14px;
    }
}

/* =========================================================
   TABLET VERTICAL
   ========================================================= */

@media (min-width: 600px) and (max-width: 899px) {

    .mgx-hero-content {
        top: 110px;
        left: 42px;
        right: auto;
        width: calc(100% - 84px);
        max-width: 360px;
        transform: none;
        text-align: left;
    }

    .mgx-hero-main-title > span {
        font-size: clamp(62px, 10vw, 82px);
    }

    .mgx-hero-category {
        margin-left: 0;
        margin-right: 0;
        font-size: clamp(27px, 4.5vw, 35px);
        padding: 9px 22px;
    }

    .mgx-hero-text {
        max-width: 300px;
        margin-left: 0;
        margin-right: 0;
        font-size: 16px;
        text-align: left;
    }

    .floating-catalog {
        left: 50%;
        right: auto;
        width: 360px;
        transform: translateX(-50%);
    }

    .floating-catalog:hover {
        transform: translateX(-50%) translateY(-2px);
    }
}
