/* =========================================================
   MOTOGRAPHIX V9 — CÓMO COMPRAR
   ========================================================= */

.mgx-howbuy {
    --mgx-red: #e30613;
    --mgx-red-2: #ff1523;
    --mgx-bg: #050505;
    --mgx-panel: #0b0b0c;
    --mgx-panel-2: #101011;
    --mgx-border: rgba(255,255,255,.11);
    --mgx-muted: rgba(255,255,255,.67);

    overflow: hidden;
    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(227,6,19,.045),
            transparent 25%
        ),
        var(--mgx-bg);

    color: #fff;
}

.mgx-howbuy *,
.mgx-howbuy *::before,
.mgx-howbuy *::after {
    box-sizing: border-box;
}

.mgx-howbuy img {
    max-width: 100%;
}

.mgx-howbuy-container {
    width: min(1220px, calc(100% - 48px));
    margin: 0 auto;
}


/* =========================================================
   HERO
   ========================================================= */

.mgx-howbuy-hero {
    padding:
        112px
        0
        34px;

    background:
        linear-gradient(
            180deg,
            #030303,
            #050505
        );
}

.mgx-howbuy-hero__image {
    position: relative;
    overflow: hidden;

    border:
        1px solid
        rgba(227,6,19,.34);

    border-radius: 24px;

    background: #090909;

    box-shadow:
        0 24px 70px
        rgba(0,0,0,.38),
        0 0 55px
        rgba(227,6,19,.045);
}

.mgx-howbuy-hero__image img {
    width: 100%;
    height: auto;
    display: block;
}


/* =========================================================
   INTRO
   ========================================================= */

.mgx-howbuy-intro {
    padding:
        58px
        0
        72px;

    text-align: center;
}

.mgx-howbuy-kicker {
    display: inline-block;

    color: var(--mgx-red);

    font-size: 11px;
    line-height: 1;

    font-weight: 900;

    letter-spacing: 1.5px;
}

.mgx-howbuy-intro h1 {
    max-width: 780px;

    margin:
        10px
        auto
        16px;

    color: #fff;

    font-size:
        clamp(
            38px,
            5vw,
            64px
        );

    line-height: 1;

    font-weight: 950;

    letter-spacing: -1.8px;
}

.mgx-howbuy-intro > .mgx-howbuy-container > p {
    max-width: 700px;

    margin:
        0
        auto;

    color: var(--mgx-muted);

    font-size: 16px;
    line-height: 1.7;

    font-weight: 500;
}

.mgx-howbuy-intro__actions {
    margin-top: 26px;

    display: flex;
    justify-content: center;
    flex-wrap: wrap;

    gap: 11px;
}


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

.mgx-howbuy-button {
    min-height: 48px;

    padding:
        0
        20px;

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

    gap: 9px;

    border-radius: 999px;

    text-decoration: none;

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

    letter-spacing: .45px;

    transition:
        transform .2s ease,
        background .2s ease,
        border-color .2s ease,
        box-shadow .2s ease;
}

.mgx-howbuy-button:hover {
    transform:
        translateY(-2px);
}

.mgx-howbuy-button--primary {
    border:
        1px solid
        var(--mgx-red);

    background:
        var(--mgx-red);

    color: #fff;

    box-shadow:
        0 12px 30px
        rgba(227,6,19,.19);
}

.mgx-howbuy-button--primary:hover {
    background:
        var(--mgx-red-2);

    color: #fff;
}

.mgx-howbuy-button--outline {
    border:
        1px solid
        rgba(255,255,255,.22);

    background:
        #0d0d0e;

    color: #fff;
}

.mgx-howbuy-button--outline:hover {
    border-color:
        rgba(255,255,255,.46);

    background:
        #121214;

    color: #fff;
}


/* =========================================================
   PASOS
   ========================================================= */

.mgx-howbuy-step {
    position: relative;

    padding:
        86px
        0;

    background: #050505;

    border-top:
        1px solid
        rgba(255,255,255,.04);
}

.mgx-howbuy-step--soft {
    background:
        linear-gradient(
            180deg,
            #080809,
            #0a0a0b
        );
}

.mgx-howbuy-step__layout {
    display: grid;

    grid-template-columns:
        .72fr
        1.28fr;

    align-items: center;

    gap: 62px;
}

.mgx-howbuy-step__layout--reverse {
    grid-template-columns:
        .72fr
        1.28fr;
}

.mgx-howbuy-step__layout--reverse
.mgx-howbuy-step__copy {
    order: 2;
}

.mgx-howbuy-step__layout--reverse
.mgx-howbuy-step__visual {
    order: 1;
}

.mgx-howbuy-step__number {
    width: 42px;
    height: 42px;

    margin-bottom: 18px;

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

    border-radius: 999px;

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

    background:
        var(--mgx-red);

    color: #fff;

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

    box-shadow:
        0 10px 24px
        rgba(227,6,19,.20);
}

.mgx-howbuy-step__copy h2 {
    margin:
        9px
        0
        17px;

    color: #fff;

    font-size:
        clamp(
            34px,
            4vw,
            54px
        );

    line-height: 1.02;

    font-weight: 950;

    letter-spacing: -1.5px;
}

.mgx-howbuy-step__copy p {
    margin:
        0
        0
        13px;

    color: var(--mgx-muted);

    font-size: 15px;
    line-height: 1.72;

    font-weight: 500;
}

.mgx-howbuy-step__copy p strong {
    color: #fff;
}

.mgx-howbuy-text-link {
    margin-top: 14px;

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

    gap: 9px;

    color: #fff;

    text-decoration: none;

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

    letter-spacing: .5px;

    transition:
        color .18s ease,
        gap .18s ease;
}

.mgx-howbuy-text-link i {
    color:
        var(--mgx-red);
}

.mgx-howbuy-text-link:hover {
    gap: 13px;
    color: var(--mgx-red);
}


/* =========================================================
   VISUALES
   ========================================================= */

.mgx-howbuy-step__visual {
    position: relative;

    overflow: hidden;

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

    border-radius: 22px;

    background: #080808;

    box-shadow:
        0 26px 75px
        rgba(0,0,0,.36);
}

.mgx-howbuy-step__visual::after {
    content: "";

    position: absolute;
    inset: 0;

    pointer-events: none;

    border-radius: inherit;

    box-shadow:
        inset
        0
        0
        0
        1px
        rgba(227,6,19,.055);
}

.mgx-howbuy-step__visual img {
    width: 100%;
    height: auto;

    display: block;
}

.mgx-howbuy-reference {
    position: absolute;

    top: 14px;
    right: 14px;

    z-index: 3;

    min-height: 26px;

    padding:
        0
        10px;

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

    border:
        1px solid
        rgba(227,6,19,.42);

    border-radius: 999px;

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

    color:
        rgba(255,255,255,.82);

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

    letter-spacing: .8px;

    backdrop-filter:
        blur(8px);
}


/* =========================================================
   MINI PILLS
   ========================================================= */

.mgx-howbuy-mini-pills {
    margin-top: 20px;

    display: flex;
    flex-wrap: wrap;

    gap: 8px;
}

.mgx-howbuy-mini-pills span {
    min-height: 34px;

    padding:
        0
        12px;

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

    gap: 7px;

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

    border-radius: 999px;

    background:
        rgba(255,255,255,.025);

    color:
        rgba(255,255,255,.82);

    font-size: 10px;
    font-weight: 800;
}

.mgx-howbuy-mini-pills i {
    color:
        var(--mgx-red);
}


/* =========================================================
   ALERTA
   ========================================================= */

.mgx-howbuy-alert {
    margin-top: 22px;

    padding: 14px;

    display: grid;

    grid-template-columns:
        38px
        minmax(0, 1fr);

    align-items: start;

    gap: 12px;

    border:
        1px solid
        rgba(227,6,19,.22);

    border-radius: 12px;

    background:
        rgba(227,6,19,.055);
}

.mgx-howbuy-alert > i {
    width: 38px;
    height: 38px;

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

    border-radius: 10px;

    background:
        rgba(227,6,19,.08);

    color:
        var(--mgx-red);

    font-size: 17px;
}

.mgx-howbuy-alert strong,
.mgx-howbuy-alert span {
    display: block;
}

.mgx-howbuy-alert strong {
    margin-bottom: 4px;

    color: #fff;

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

    letter-spacing: .7px;
}

.mgx-howbuy-alert span {
    color:
        rgba(255,255,255,.65);

    font-size: 11px;
    line-height: 1.5;

    font-weight: 600;
}


/* =========================================================
   PASO FINAL
   ========================================================= */

.mgx-howbuy-final {
    padding:
        88px
        0;

    background:
        radial-gradient(
            circle at 50% 20%,
            rgba(227,6,19,.065),
            transparent 34%
        ),
        #050505;

    border-top:
        1px solid
        rgba(255,255,255,.04);
}

.mgx-howbuy-heading {
    max-width: 760px;

    margin:
        0
        auto
        36px;

    text-align: center;
}

.mgx-howbuy-heading
.mgx-howbuy-step__number {
    margin-bottom: 14px;
}

.mgx-howbuy-heading h2 {
    margin:
        10px
        0
        13px;

    color: #fff;

    font-size:
        clamp(
            34px,
            4vw,
            52px
        );

    line-height: 1.05;

    font-weight: 950;

    letter-spacing: -1.4px;
}

.mgx-howbuy-heading p {
    max-width: 640px;

    margin:
        0
        auto;

    color:
        var(--mgx-muted);

    font-size: 14px;
    line-height: 1.7;
}

.mgx-howbuy-final__options {
    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 16px;
}

.mgx-howbuy-final__card {
    min-height: 180px;

    padding: 25px;

    display: grid;

    grid-template-columns:
        56px
        minmax(0, 1fr);

    align-items: center;

    gap: 18px;

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

    border-radius: 18px;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.032),
            rgba(255,255,255,.009)
        );

    transition:
        transform .2s ease,
        border-color .2s ease;
}

.mgx-howbuy-final__card:hover {
    transform:
        translateY(-4px);

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

.mgx-howbuy-final__card > i {
    width: 56px;
    height: 56px;

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

    border-radius: 16px;

    background:
        rgba(227,6,19,.08);

    color:
        var(--mgx-red);

    font-size: 24px;
}

.mgx-howbuy-final__card span {
    display: block;

    margin-bottom: 6px;

    color:
        var(--mgx-red);

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

    letter-spacing: .8px;
}

.mgx-howbuy-final__card h3 {
    margin:
        0
        0
        7px;

    color: #fff;

    font-size: 20px;
    line-height: 1.15;

    font-weight: 900;
}

.mgx-howbuy-final__card p {
    margin: 0;

    color:
        var(--mgx-muted);

    font-size: 12px;
    line-height: 1.6;
}


/* =========================================================
   CONFIANZA
   ========================================================= */

.mgx-howbuy-trust {
    padding:
        0
        0
        72px;

    background: #050505;
}

.mgx-howbuy-trust__grid {
    display: grid;

    grid-template-columns:
        repeat(
            4,
            minmax(0, 1fr)
        );

    overflow: hidden;

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

    border-radius: 15px;

    background:
        #0b0b0c;
}

.mgx-howbuy-trust__grid article {
    min-height: 84px;

    padding:
        14px
        16px;

    display: flex;
    align-items: center;

    gap: 12px;

    border-right:
        1px solid
        rgba(255,255,255,.08);
}

.mgx-howbuy-trust__grid article:last-child {
    border-right: 0;
}

.mgx-howbuy-trust__grid i {
    color:
        var(--mgx-red);

    font-size: 19px;
}

.mgx-howbuy-trust__grid strong,
.mgx-howbuy-trust__grid span {
    display: block;
}

.mgx-howbuy-trust__grid strong {
    color: #fff;

    font-size: 9px;
    line-height: 1.2;

    font-weight: 900;
}

.mgx-howbuy-trust__grid span {
    margin-top: 4px;

    color:
        rgba(255,255,255,.53);

    font-size: 9px;
    line-height: 1.35;

    font-weight: 600;
}


/* =========================================================
   CTA
   ========================================================= */

.mgx-howbuy-cta {
    padding:
        0
        0
        78px;

    background: #050505;
}

.mgx-howbuy-cta__panel {
    min-height: 190px;

    padding:
        34px
        38px;

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

    gap: 30px;

    border:
        1px solid
        rgba(227,6,19,.22);

    border-radius: 20px;

    background:
        radial-gradient(
            circle at 85% 50%,
            rgba(227,6,19,.10),
            transparent 28%
        ),
        linear-gradient(
            135deg,
            #101011,
            #080809
        );

    box-shadow:
        0 22px 60px
        rgba(0,0,0,.30);
}

.mgx-howbuy-cta__panel h2 {
    margin:
        8px
        0
        8px;

    color: #fff;

    font-size:
        clamp(
            28px,
            3vw,
            42px
        );

    line-height: 1.05;

    font-weight: 950;

    letter-spacing: -1px;
}

.mgx-howbuy-cta__panel p {
    max-width: 570px;

    margin: 0;

    color:
        var(--mgx-muted);

    font-size: 13px;
    line-height: 1.6;
}

.mgx-howbuy-cta__actions {
    min-width: 260px;

    display: grid;

    grid-template-columns: 1fr;

    gap: 9px;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1024px) {

    .mgx-howbuy-container {
        width:
            min(
                930px,
                calc(100% - 36px)
            );
    }

    .mgx-howbuy-step__layout,
    .mgx-howbuy-step__layout--reverse {
        grid-template-columns:
            .78fr
            1.22fr;

        gap: 34px;
    }

    .mgx-howbuy-step__copy h2 {
        font-size: 39px;
    }

    .mgx-howbuy-trust__grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }

    .mgx-howbuy-trust__grid article:nth-child(2) {
        border-right: 0;
    }

    .mgx-howbuy-trust__grid article:nth-child(-n+2) {
        border-bottom:
            1px solid
            rgba(255,255,255,.08);
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 720px) {

    .mgx-howbuy-container {
        width:
            calc(
                100% - 28px
            );
    }

    .mgx-howbuy-hero {
        padding:
            88px
            0
            22px;
    }

    .mgx-howbuy-hero__image {
        border-radius: 16px;
    }

    .mgx-howbuy-intro {
        padding:
            40px
            0
            52px;
    }

    .mgx-howbuy-intro h1 {
        font-size: 38px;
    }

    .mgx-howbuy-intro
    > .mgx-howbuy-container
    > p {
        font-size: 14px;
    }

    .mgx-howbuy-intro__actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .mgx-howbuy-button {
        width: 100%;
    }

    .mgx-howbuy-step {
        padding:
            58px
            0;
    }

    .mgx-howbuy-step__layout,
    .mgx-howbuy-step__layout--reverse {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .mgx-howbuy-step__layout--reverse
    .mgx-howbuy-step__copy,
    .mgx-howbuy-step__layout--reverse
    .mgx-howbuy-step__visual {
        order: initial;
    }

    .mgx-howbuy-step__copy h2 {
        font-size: 36px;
    }

    .mgx-howbuy-step__copy p {
        font-size: 14px;
    }

    .mgx-howbuy-step__visual {
        border-radius: 16px;
    }

    .mgx-howbuy-reference {
        top: 10px;
        right: 10px;
    }

    .mgx-howbuy-final {
        padding:
            62px
            0;
    }

    .mgx-howbuy-heading h2 {
        font-size: 34px;
    }

    .mgx-howbuy-final__options {
        grid-template-columns: 1fr;
    }

    .mgx-howbuy-final__card {
        min-height: 150px;
    }

    .mgx-howbuy-trust {
        padding-bottom: 52px;
    }

    .mgx-howbuy-trust__grid {
        grid-template-columns: 1fr;
    }

    .mgx-howbuy-trust__grid article {
        border-right: 0;
        border-bottom:
            1px solid
            rgba(255,255,255,.08);
    }

    .mgx-howbuy-trust__grid article:last-child {
        border-bottom: 0;
    }

    .mgx-howbuy-cta {
        padding-bottom: 58px;
    }

    .mgx-howbuy-cta__panel {
        padding: 26px;

        display: grid;
        grid-template-columns: 1fr;
    }

    .mgx-howbuy-cta__actions {
        min-width: 0;
    }

}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

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

    .mgx-howbuy *,
    .mgx-howbuy *::before,
    .mgx-howbuy *::after {
        transition: none !important;
        animation: none !important;
    }

}
