/* =========================================================
   MOTOGRAPHIX V9 — NOSOTROS
   ========================================================= */

.mgx-about {
    --mgx-about-red: #e30613;
    --mgx-about-bg: #050505;
    --mgx-about-panel: #0b0b0c;
    --mgx-about-panel-2: #101011;
    --mgx-about-border: rgba(255,255,255,.11);
    --mgx-about-text: #ffffff;
    --mgx-about-muted: rgba(255,255,255,.66);

    overflow: hidden;
    background: var(--mgx-about-bg);
    color: var(--mgx-about-text);
}

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

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

.mgx-about-container {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}


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

.mgx-about-hero {
    position: relative;
    min-height: 650px;
    display: flex;
    align-items: center;
    overflow: hidden;
    border-bottom: 1px solid var(--mgx-about-border);
    background:
        radial-gradient(circle at 75% 50%, rgba(227,6,19,.16), transparent 34%),
        #050505;
}

.mgx-about-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(
            90deg,
            rgba(3,3,3,.98) 0%,
            rgba(3,3,3,.92) 32%,
            rgba(3,3,3,.38) 62%,
            rgba(3,3,3,.16) 100%
        ),
        linear-gradient(
            0deg,
            rgba(3,3,3,.65),
            transparent 45%
        );
}

.mgx-about-hero__media {
    position: absolute;
    inset: 0 0 0 38%;
}

.mgx-about-hero__media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    filter: saturate(.9) contrast(1.08);
}

.mgx-about-hero__inner {
    padding-top: 98px;
    padding-bottom: 60px;
}

.mgx-about-hero__copy {
    width: min(520px, 48%);
}

.mgx-about-eyebrow,
.mgx-about-kicker {
    display: inline-block;
    color: var(--mgx-about-red);
    font-size: 12px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: 1.5px;
}

.mgx-about-hero h1 {
    margin: 12px 0 14px;
    color: #fff;
    font-size: clamp(56px, 6vw, 88px);
    line-height: .92;
    font-weight: 950;
    letter-spacing: -3px;
}

.mgx-about-hero__copy > p {
    width: min(470px, 100%);
    margin: 0;
    color: rgba(255,255,255,.86);
    font-size: 20px;
    line-height: 1.45;
    font-weight: 600;
}

.mgx-about-hero__line {
    width: 56px;
    height: 4px;
    margin: 28px 0;
    border-radius: 99px;
    background: var(--mgx-about-red);
}

.mgx-about-hero__actions,
.mgx-about-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.mgx-about-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: 12px;
    font-weight: 900;
    letter-spacing: .4px;
    transition:
        transform .2s ease,
        background .2s ease,
        color .2s ease,
        border-color .2s ease,
        box-shadow .2s ease;
}

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

.mgx-about-button--primary {
    border: 1px solid var(--mgx-about-red);
    background: var(--mgx-about-red);
    color: #fff;
    box-shadow: 0 12px 30px rgba(227,6,19,.20);
}

.mgx-about-button--primary:hover {
    background: #ff101f;
    color: #fff;
}

.mgx-about-button--outline {
    border: 1px solid rgba(255,255,255,.28);
    background: rgba(5,5,5,.48);
    color: #fff;
    backdrop-filter: blur(8px);
}

.mgx-about-button--outline:hover {
    border-color: rgba(255,255,255,.55);
    color: #fff;
}


/* =========================================================
   SECCIONES
   ========================================================= */

.mgx-about-section {
    position: relative;
    padding: 86px 0;
    background: #050505;
}

.mgx-about-section--soft {
    background:
        linear-gradient(
            180deg,
            #070707,
            #0a0a0b
        );
    border-top: 1px solid rgba(255,255,255,.04);
    border-bottom: 1px solid rgba(255,255,255,.04);
}

.mgx-about-heading {
    margin-bottom: 34px;
    text-align: center;
}

.mgx-about-heading h2 {
    margin: 8px 0 0;
    color: #fff;
    font-size: clamp(30px, 3vw, 44px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -1px;
}


/* =========================================================
   HISTORIA
   ========================================================= */

.mgx-about-story {
    display: grid;
    grid-template-columns: .95fr 1.05fr;
    align-items: center;
    gap: 58px;
}

.mgx-about-story__image {
    position: relative;
    overflow: hidden;
    min-height: 390px;
    border: 1px solid var(--mgx-about-border);
    border-radius: 24px;
    background: #0d0d0e;
    box-shadow: 0 28px 60px rgba(0,0,0,.34);
}

.mgx-about-story__image::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 32%;
    background: linear-gradient(transparent, rgba(0,0,0,.58));
}

.mgx-about-story__image img {
    width: 100%;
    height: 100%;
    min-height: 390px;
    display: block;
    object-fit: cover;
}

.mgx-about-story__content h2 {
    margin: 10px 0 20px;
    color: #fff;
    font-size: clamp(38px, 4vw, 58px);
    line-height: 1.02;
    font-weight: 900;
    letter-spacing: -1.6px;
}

.mgx-about-story__content h2 span {
    color: var(--mgx-about-red);
}

.mgx-about-story__content p {
    max-width: 610px;
    margin: 0 0 13px;
    color: var(--mgx-about-muted);
    font-size: 16px;
    line-height: 1.75;
    font-weight: 500;
}


/* =========================================================
   HIGHLIGHTS
   ========================================================= */

.mgx-about-highlights {
    margin-top: 42px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.mgx-about-highlight {
    min-height: 128px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid var(--mgx-about-border);
    border-radius: 16px;
    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.035),
            rgba(255,255,255,.012)
        );
}

.mgx-about-highlight > i {
    width: 42px;
    min-width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(227,6,19,.08);
    color: var(--mgx-about-red);
    font-size: 20px;
}

.mgx-about-highlight strong,
.mgx-about-highlight span {
    display: block;
}

.mgx-about-highlight strong {
    color: #fff;
    font-size: 16px;
    line-height: 1.18;
    font-weight: 900;
}

.mgx-about-highlight span {
    margin-top: 6px;
    color: var(--mgx-about-muted);
    font-size: 12px;
    line-height: 1.45;
    font-weight: 600;
}


/* =========================================================
   SERVICIOS
   ========================================================= */

.mgx-about-services {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
}

.mgx-about-service {
    overflow: hidden;
    min-height: 430px;
    border: 1px solid var(--mgx-about-border);
    border-radius: 18px;
    background: var(--mgx-about-panel);
    transition:
        transform .22s ease,
        border-color .22s ease,
        box-shadow .22s ease;
}

.mgx-about-service:hover {
    transform: translateY(-5px);
    border-color: rgba(227,6,19,.42);
    box-shadow: 0 22px 50px rgba(0,0,0,.30);
}

.mgx-about-service__image {
    height: 220px;
    overflow: hidden;
    background: #111;
}

.mgx-about-service__image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .45s ease;
}

.mgx-about-service:hover .mgx-about-service__image img {
    transform: scale(1.035);
}

.mgx-about-service__body {
    padding: 22px;
}

.mgx-about-service__body > i {
    color: var(--mgx-about-red);
    font-size: 22px;
}

.mgx-about-service h3 {
    margin: 15px 0 9px;
    color: #fff;
    font-size: 19px;
    line-height: 1.18;
    font-weight: 900;
}

.mgx-about-service p {
    margin: 0;
    color: var(--mgx-about-muted);
    font-size: 13px;
    line-height: 1.65;
    font-weight: 500;
}


/* =========================================================
   BENEFICIOS
   ========================================================= */

.mgx-about-benefits {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.mgx-about-benefit {
    min-height: 210px;
    padding: 24px;
    border: 1px solid var(--mgx-about-border);
    border-radius: 16px;
    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.025),
            rgba(255,255,255,.008)
        );
}

.mgx-about-benefit > i {
    color: var(--mgx-about-red);
    font-size: 25px;
}

.mgx-about-benefit h3 {
    margin: 17px 0 10px;
    color: #fff;
    font-size: 17px;
    line-height: 1.2;
    font-weight: 900;
}

.mgx-about-benefit p {
    margin: 0;
    color: var(--mgx-about-muted);
    font-size: 13px;
    line-height: 1.65;
    font-weight: 500;
}


/* =========================================================
   PROCESO
   ========================================================= */

.mgx-about-process {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        36px
        minmax(0, 1fr)
        36px
        minmax(0, 1fr);
    align-items: center;
    gap: 12px;
}

.mgx-about-step {
    position: relative;
    min-height: 170px;
    padding: 24px 22px 22px 78px;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    align-items: center;
    gap: 16px;
    border: 1px solid var(--mgx-about-border);
    border-radius: 16px;
    background: var(--mgx-about-panel);
}

.mgx-about-step > b {
    position: absolute;
    top: 18px;
    left: 18px;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--mgx-about-red);
    color: #fff;
    font-size: 16px;
    font-weight: 900;
    box-shadow: 0 10px 24px rgba(227,6,19,.22);
}

.mgx-about-step > i {
    color: #fff;
    font-size: 38px;
    opacity: .88;
}

.mgx-about-step h3 {
    margin: 0 0 7px;
    color: #fff;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 900;
}

.mgx-about-step p {
    margin: 0;
    color: var(--mgx-about-muted);
    font-size: 12px;
    line-height: 1.55;
    font-weight: 500;
}

.mgx-about-process__arrow {
    color: rgba(255,255,255,.38);
    text-align: center;
    font-size: 20px;
}


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

.mgx-about-cta {
    position: relative;
    min-height: 360px;
    display: flex;
    align-items: center;
    overflow: hidden;
    border-top: 1px solid var(--mgx-about-border);
    border-bottom: 1px solid var(--mgx-about-border);
    background: #070707;
}

.mgx-about-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(
            90deg,
            rgba(5,5,5,.98) 0%,
            rgba(5,5,5,.94) 38%,
            rgba(5,5,5,.42) 68%,
            rgba(5,5,5,.10) 100%
        );
}

.mgx-about-cta__media {
    position: absolute;
    inset: 0 0 0 42%;
}

.mgx-about-cta__media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.mgx-about-cta__inner {
    padding: 70px 0;
}

.mgx-about-cta__inner > div {
    width: min(650px, 55%);
}

.mgx-about-cta h2 {
    margin: 0 0 10px;
    color: #fff;
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -1.2px;
}

.mgx-about-cta p {
    margin: 0 0 24px;
    color: var(--mgx-about-muted);
    font-size: 15px;
    line-height: 1.6;
    font-weight: 500;
}


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

@media (max-width: 1024px) {

    .mgx-about-container {
        width: min(100% - 36px, 920px);
    }

    .mgx-about-hero {
        min-height: 600px;
    }

    .mgx-about-hero__media {
        left: 32%;
    }

    .mgx-about-story {
        grid-template-columns: 1fr 1fr;
        gap: 34px;
    }

    .mgx-about-highlights,
    .mgx-about-services,
    .mgx-about-benefits {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mgx-about-process {
        grid-template-columns: 1fr;
    }

    .mgx-about-process__arrow {
        transform: rotate(90deg);
    }

    .mgx-about-step {
        min-height: 138px;
    }

}


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

@media (max-width: 720px) {

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

    .mgx-about-hero {
        min-height: 680px;
        align-items: flex-end;
    }

    .mgx-about-hero__media {
        inset: 0;
        height: 58%;
    }

    .mgx-about-hero::before {
        background:
            linear-gradient(
                0deg,
                #050505 0%,
                rgba(5,5,5,.94) 32%,
                rgba(5,5,5,.24) 70%,
                rgba(5,5,5,.10) 100%
            );
    }

    .mgx-about-hero__inner {
        padding-top: 300px;
        padding-bottom: 44px;
    }

    .mgx-about-hero__copy {
        width: 100%;
    }

    .mgx-about-hero h1 {
        margin-top: 8px;
        font-size: 54px;
        letter-spacing: -2px;
    }

    .mgx-about-hero__copy > p {
        font-size: 16px;
    }

    .mgx-about-section {
        padding: 60px 0;
    }

    .mgx-about-story {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .mgx-about-story__image,
    .mgx-about-story__image img {
        min-height: 290px;
    }

    .mgx-about-story__content h2 {
        font-size: 38px;
    }

    .mgx-about-story__content p {
        font-size: 14px;
    }

    .mgx-about-highlights,
    .mgx-about-services,
    .mgx-about-benefits {
        grid-template-columns: 1fr;
    }

    .mgx-about-highlight {
        min-height: 104px;
    }

    .mgx-about-service {
        min-height: 0;
    }

    .mgx-about-service__image {
        height: 230px;
    }

    .mgx-about-heading {
        margin-bottom: 26px;
    }

    .mgx-about-heading h2 {
        font-size: 30px;
    }

    .mgx-about-step {
        padding-left: 72px;
        grid-template-columns: 42px minmax(0, 1fr);
    }

    .mgx-about-cta {
        min-height: 470px;
        align-items: flex-end;
    }

    .mgx-about-cta__media {
        inset: 0;
    }

    .mgx-about-cta::before {
        background:
            linear-gradient(
                0deg,
                #050505 0%,
                rgba(5,5,5,.96) 40%,
                rgba(5,5,5,.32) 78%,
                rgba(5,5,5,.10) 100%
            );
    }

    .mgx-about-cta__inner {
        padding: 220px 0 42px;
    }

    .mgx-about-cta__inner > div {
        width: 100%;
    }

    .mgx-about-cta h2 {
        font-size: 34px;
    }

    .mgx-about-hero__actions,
    .mgx-about-cta__actions {
        display: grid;
        grid-template-columns: 1fr;
    }

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

}


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

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

    .mgx-about *,
    .mgx-about *::before,
    .mgx-about *::after {
        scroll-behavior: auto !important;
        transition: none !important;
        animation: none !important;
    }

}
