/* ============================= */
/* SOBRE NOSOTROS - SM RACING */
/* ============================= */

.about-section {
    position: relative;
    width: 100%;

    min-height: calc(100vh - 82px);
    min-height: calc(100svh - 82px);
    height: auto;
    max-height: none;

    display: grid;
    grid-template-columns: 49% 51%;

    overflow: hidden;
    background: #111;
}

/* ============================= */
/* PANEL ROJO */
/* ============================= */

.about-red-panel {
    position: absolute;
    top: 0;
    left: 0;

    width: 49%;
    height: 100%;

    background: var(--sm-red);

    clip-path: polygon(
            0 0,
            100% 0,
            78% 100%,
            0 100%
    );

    z-index: 5;
}

/* ============================= */
/* TÍTULO CENTRADO GENERAL */
/* ============================= */

.about-title-wrapper {
    position: absolute;
    top: 55px;
    left: 50%;

    transform: translateX(-50%);

    width: 100%;
    max-width: 900px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;

    z-index: 9;

    pointer-events: none;
}

.about-title {
    font-family: var(--font-title);
    font-style: italic;
    color: var(--sm-white);

    font-size: clamp(2.9rem, 4.4vw, 4.8rem);
    line-height: 1;

    letter-spacing: 1px;
    white-space: nowrap;

    transform: skewX(-10deg);
    z-index: 6;
}

.about-title .text-red {
    color: var(--sm-red);
}

/* ============================= */
/* LÍNEAS DEL TÍTULO */
/* ============================= */

.title-lines {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-shrink: 0;
}

.title-lines span {
    width: 32px;
    height: 16px;

    background: var(--sm-black);
    transform: skewX(-25deg);
}

.title-lines-right span {
    background: var(--sm-red);
}

/* ============================= */
/* CONTENIDO IZQUIERDO */
/* ============================= */

.about-content {
    position: static;

    grid-column: 1 / 2;

    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 135px 80px 50px 58px;
}
/* ============================= */
/* TEXTO */
/* ============================= */
.about-text {
    position: relative;
    z-index: 5;
    max-width: 520px;
}
.about-text p {
    color: var(--sm-white);

    font-size: clamp(1.2rem, 1.6vw, 1.55rem);
    line-height: 1.28;

    letter-spacing: 1.1px;
    font-weight: 400;
    max-width: 92%;
}

.about-text p + p {
    margin-top: 18px;
}

/* ============================= */
/* HEADINGS SOBRE NOSOTROS */
/* ============================= */

.about-text h2 {
    font-family: var(--font-title);
    font-size: clamp(2rem, 3.2vw, 2.9rem);
    line-height: 1.06;
    letter-spacing: 1.5px;

    color: var(--sm-white);

    margin: 0 0 24px;
    text-transform: uppercase;
    font-weight: 400;
}

.about-text h3 {
    font-family: var(--font-body);
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 2.5px;

    color: var(--sm-white);

    margin: 20px 0 6px;
}

.about-text .about-text-brand {
    font-family: var(--font-title);
    letter-spacing: 2px;
    opacity: 0.9;
}

/* ============================= */
/* IMAGEN DERECHA */
/* ============================= */
.about-image-wrapper {
    position: relative;
    z-index: 2;

    grid-column: 2 / 3;

    width: calc(100% + 180px);
    height: 100%;

    margin-left: -180px;

    overflow: hidden;
    clip-path: none;
}

.about-image {
    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center center;

    display: block;
}

.about-image-wrapper::after {
    content: "";
    position: absolute;
    inset: 0;

    background: linear-gradient(
            to right,
            rgba(0, 0, 0, 0.16),
            rgba(0, 0, 0, 0.22)
    );

    pointer-events: none;
}

/* ============================= */
/* TABLET */
/* ============================= */

@media (max-width: 1024px) {
    .about-section {
        grid-template-columns: 49% 51%;
    }

    .about-red-panel {
        width: 49%;

        clip-path: polygon(
                0 0,
                100% 0,
                76% 100%,
                0 100%
        );
    }

    .about-content {
        padding: 145px 55px 50px 42px;
    }

    .about-title-wrapper {
        top: 68px;
        gap: 16px;
        max-width: 760px;
    }

    .about-title {
        font-size: clamp(2.3rem, 4.5vw, 3.6rem);
    }

    .title-lines span {
        width: 24px;
        height: 13px;
    }

    .about-text {
        max-width: 440px;
    }

    .about-text p {
        font-size: 1.08rem;
        line-height: 1.2;
        letter-spacing: 0.9px;
        max-width: 90%;

    }

    .about-image-wrapper {
        width: calc(100% + 90px);
        margin-left: -90px;
        clip-path: none;
    }
}

/* ============================= */
/* MOBILE */
/* ============================= */

@media (max-width: 768px) {
    .about-section {
        height: auto;
        max-height: none;
        min-height: auto;

        display: flex;
        flex-direction: column;

        background: var(--sm-red);
    }

    .about-red-panel {
        width: 100%;
        height: 390px;

        clip-path: polygon(
                0 0,
                100% 0,
                100% 80%,
                0 100%
        );

        z-index: 1;
    }

    .about-title-wrapper {
        position: relative;
        top: auto;
        left: auto;
        transform: none;

        width: 100%;
        max-width: none;

        margin-bottom: 32px;

        gap: 8px;
        justify-content: center;
    }

    .about-title {
        font-size: 1.8rem;
        line-height: 1;
        letter-spacing: 0.5px;
    }

    .about-title .text-red {
        color: var(--sm-black);
    }

    .title-lines {
        gap: 4px;
    }

    .title-lines span {
        width: 17px;
        height: 10px;
        background: var(--sm-black);
    }

    .title-lines-right span {
        background: var(--sm-black);
    }

    .about-content {
        width: 100%;
        min-height: 390px;

        padding: 100px 34px 105px;

        display: flex;
        justify-content: flex-start;

        z-index: 10;
    }

    .about-text {
        max-width: 100%;
        z-index: 11;
    }

    .about-text p {
        font-size: 0.95rem;
        line-height: 1.14;
        letter-spacing: 0.45px;
    }

    .about-text p + p {
        margin-top: 16px;
    }

    .about-text h2 {
        font-size: 1.5rem;
        margin-bottom: 12px;
    }

    .about-text h3 {
        font-size: 0.85rem;
        margin-top: 12px;
    }

    .about-image-wrapper {
        width: 100%;
        height: 58vh;
        min-height: 380px;

        margin-left: 0;
        margin-top: -40px;

        clip-path: polygon(
                0 12%,
                100% 0,
                100% 100%,
                0 100%
        );

        z-index: 2;
    }

    .about-image {
        object-fit: cover;
        object-position: center top;
    }

    .about-image-wrapper::after {
        background: linear-gradient(
                to bottom,
                rgba(0, 0, 0, 0.04),
                rgba(0, 0, 0, 0.14)
        );
    }
}

/* ============================= */
/* MOBILE SMALL */
/* ============================= */

@media (max-width: 480px) {
    .about-red-panel {
        height: 360px;

        clip-path: polygon(
                0 0,
                100% 0,
                100% 78%,
                0 100%
        );
    }

    .about-content {
        min-height: 360px;
        padding: 92px 34px 82px;
    }

    .about-title-wrapper {
        margin-bottom: 26px;
        gap: 6px;
    }

    .about-title {
        font-size: 1.55rem;
    }

    .title-lines span {
        width: 14px;
        height: 9px;
    }

    .about-text p {
        font-size: 0.82rem;
        line-height: 1.14;
        letter-spacing: 0.4px;
    }

    .about-text p + p {
        margin-top: 15px;
    }

    .about-image-wrapper {
        height: 56vh;
        min-height: 360px;
        margin-top: -40px;

        clip-path: polygon(
                0 11%,
                100% 0,
                100% 100%,
                0 100%
        );
    }
}

/* ============================= */
/* MOBILE EXTRA SMALL */
/* ============================= */

@media (max-width: 360px) {
    .about-content {
        padding: 86px 26px 76px;
    }

    .about-title {
        font-size: 1.35rem;
    }

    .title-lines span {
        width: 12px;
        height: 8px;
    }

    .about-text p {
        font-size: 0.78rem;
    }
}