/* ============================= */
/* CONTACTO - SM RACING */
/* ============================= */

.contact-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    min-height: 100svh;

    display: grid;
    grid-template-columns: 49% 51%;

    overflow: hidden;
    background: #202020;
}

/* ============================= */
/* PANEL ROJO IZQUIERDO */
/* ============================= */

.contact-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 */
/* ============================= */

.contact-title-wrapper {
    position: absolute;
    top: 105px;
    left: 50%;

    transform: translateX(-50%);

    width: 100%;
    max-width: 780px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;

    z-index: 12;
    pointer-events: none;
}

.contact-title {
    font-family: var(--font-title);
    font-style: italic;
    color: var(--sm-white);

    font-size: clamp(2.5rem, 3.5vw, 4rem);
    line-height: 1;

    letter-spacing: 1px;
    white-space: nowrap;

    transform: skewX(-10deg);
}
.contact-info h3 {
    font-size: 2rem;
    line-height: 1.05;
    font-weight: 900;
    margin-bottom: 6px;
    max-width: 520px;
}

.contact-info h4 {
    font-size: 1rem;
    margin-bottom: 28px;
}
.contact-title .text-red {
    color: var(--sm-white);
}

/* Líneas del título */
.contact-title-wrapper .title-lines {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-shrink: 0;
}

.contact-title-wrapper .title-lines span {
    width: 28px;
    height: 14px;

    background: var(--sm-black);
    transform: skewX(-25deg);
}

.contact-title-wrapper .title-lines-right span {
    background: var(--sm-red);
}

/* ============================= */
/* CONTENIDO GENERAL */
/* ============================= */

.contact-content {
    position: relative;
    z-index: 10;

    grid-column: 1 / -1;

    width: 100%;
    min-height: 100vh;
    min-height: 100svh;

    display: grid;
    grid-template-columns: 49% 51%;
}

/* ============================= */
/* INFO IZQUIERDA */
/* ============================= */

.contact-info {
    position: relative;
    z-index: 11;

    grid-column: 1 / 2;

    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 180px 105px 80px 58px;
}

.contact-info h3 {
    font-size: 6rem;
    line-height: 0.98;
    font-weight: 900;
    max-width: 650px;
    margin: 0 0 8px;
    letter-spacing: -0.5px;
}

.contact-info h4 {
    font-size: 3rem;
    font-weight: 600;
    font-size: 2rem;
    margin: 0 0 35px;
}
.contact-services {
    display: block;
    margin-bottom: 30px;
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.contact-info-item {
    display: grid;
    grid-template-columns: 52px 1fr;
    align-items: center;
    font-size: 2rem;
    column-gap: 18px;
}

.contact-icon {
    width: 48px;
    height: 48px;

    border-radius: 50%;
    background: var(--sm-black);

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--sm-white);
    font-size: 1.35rem;
    font-weight: 800;

    flex-shrink: 0;
}

.contact-info-text p {
    color: var(--sm-white);
    font-family: var(--font-title);

    font-size: 0.9rem !important;
    line-height: 1.3;

    letter-spacing: 0.3px;

    margin: 0;

    overflow-wrap: anywhere;
}

.contact-hours p {
    margin: 0;
    font-size: 2rem;
}

.contact-hours strong {
    color: var(--sm-black);
    font-weight: 800;
}

.contact-separator {
    width: 78%;
    height: 2px;

    margin: 16px 0 20px 70px;

    background: rgba(0, 0, 0, 0.45);
}

/* ============================= */
/* FORMULARIO DERECHA */
/* ============================= */

.contact-form-wrapper {
    position: relative;
    z-index: 8;
    grid-column: 2 / 3;

    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 180px 75px 80px 55px;
}

.contact-form-wrapper h3 {
    color: var(--sm-white);

    font-family: var(--font-body);
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;

    letter-spacing: 1.2px;
    text-transform: uppercase;

    margin-bottom: 26px;
}

.contact-form {
    width: 100%;
    max-width: 620px;
}

.form-group {
    position: relative;
    width: 100%;

    margin-bottom: 18px;
}

.form-group input,
.form-group textarea {
    width: 100%;

    background: rgba(255, 255, 255, 0.12);

    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 7px;

    color: var(--sm-white);

    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 400;

    outline: none;

    padding: 12px 18px 12px 46px;

    transition:
            border-color 0.25s ease,
            background 0.25s ease,
            box-shadow 0.25s ease;
}

.form-group input {
    height: 48px;
}

.form-group textarea {
    height: 135px;
    resize: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.55);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.16);
    box-shadow: 0 0 0 3px rgba(255, 49, 49, 0.2);
}

.form-icon {
    position: absolute;
    top: 50%;
    left: 16px;

    transform: translateY(-50%);

    color: rgba(255, 255, 255, 0.55);
    font-size: 0.95rem;

    z-index: 2;
}

.textarea-group .form-icon {
    top: 15px;
    transform: none;
}

/* ============================= */
/* BOTÓN WHATSAPP */
/* ============================= */

.contact-whatsapp-btn {
    margin-top: 6px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    width: 100%;

    text-decoration: none;
    cursor: pointer;
}

.contact-whatsapp-btn .btn-text {
    flex: 1;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--sm-red);
    color: var(--sm-white);

    min-height: 48px;
    padding: 0 30px;

    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.5px;

    transform: skewX(-20deg);

    transition:
            background 0.25s ease,
            color 0.25s ease;
}

.contact-whatsapp-btn .btn-line {
    width: 24px;
    height: 48px;

    background: var(--sm-red);
    transform: skewX(-20deg);

    transition: background 0.25s ease;
}

.contact-whatsapp-btn:hover .btn-text,
.contact-whatsapp-btn:hover .btn-line {
    background: var(--sm-white);
    color: var(--sm-black);
}

/* ============================= */
/* DESKTOP BAJO */
/* ============================= */

@media (max-height: 760px) and (min-width: 769px) {
    .contact-title-wrapper {
        top: 95px;
    }

    .contact-info {
        padding-top: 165px;
        padding-bottom: 55px;
    }

    .contact-form-wrapper {
        padding-top: 165px;
        padding-bottom: 55px;
    }

    .contact-form-wrapper h3 {
        margin-bottom: 20px;
    }

    .form-group {
        margin-bottom: 14px;
    }

    .form-group input {
        height: 44px;
    }

    .form-group textarea {
        height: 115px;
    }

    .contact-whatsapp-btn .btn-text,
    .contact-whatsapp-btn .btn-line {
        min-height: 44px;
        height: 44px;
    }

    .contact-info-text p {
        font-size: 1.15rem;
    }

    .contact-icon {
        width: 44px;
        height: 44px;
        font-size: 1.15rem;
    }
}

/* ============================= */
/* TABLET */
/* ============================= */

@media (max-width: 1024px) {
    .contact-section {
        grid-template-columns: 49% 51%;
    }

    .contact-red-panel {
        width: 49%;

        clip-path: polygon(
                0 0,
                100% 0,
                76% 100%,
                0 100%
        );
    }

    .contact-title-wrapper {
        top: 95px;
        gap: 16px;
        max-width: 760px;
    }

    .contact-title {
        font-size: clamp(2.3rem, 4.5vw, 3.6rem);
    }

    .contact-title-wrapper .title-lines span {
        width: 24px;
        height: 13px;
    }

    .contact-info {
        padding: 165px 70px 60px 42px;
    }

    .contact-info-item {
        grid-template-columns: 48px 1fr;
        column-gap: 15px;
    }

    .contact-icon {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }

    .contact-info-text p {
        font-size: 1.1rem;
    }

    .contact-separator {
        margin-left: 62px;
        width: 78%;
    }

    .contact-info h3 {
        font-size: clamp(3rem, 5.5vw, 4.6rem);
        line-height: 1;
    }

    .contact-info h4 {
        font-size: 1.7rem;
        margin-bottom: 28px;
    }

    .contact-services {
        font-size: 2rem;
    }

    .contact-form-wrapper {
        padding: 165px 45px 60px 35px;
    }

    .contact-form-wrapper h3 {
        font-size: 1.15rem;
    }

    .form-group input {
        height: 44px;
    }

    .form-group textarea {
        height: 120px;
    }

    .contact-whatsapp-btn .btn-text {
        min-height: 44px;
        font-size: 0.9rem;
    }

    .contact-whatsapp-btn .btn-line {
        height: 44px;
        width: 21px;
    }
}

/* ============================= */
/* MOBILE */
/* ============================= */
/* =========================================
   MOBILE — SM RACING
   ========================================= */

@media (max-width: 768px) {

    /* =========================
       SECCIÓN
       ========================= */

    .contact-section {
        position: relative;

        width: 100%;
        min-height: 0;
        height: auto;

        display: block;

        background: #202020;

        overflow: hidden;
    }


    /* =========================
       PANEL ROJO
       ========================= */

    /* El fondo rojo lo aportan ahora .contact-title-wrapper y .contact-info,
       que crecen con su contenido (el panel fijo dejaba texto fuera de la zona roja) */
    .contact-red-panel {
        display: none;
    }


    /* =========================
       CONTENIDO
       ========================= */

    .contact-content {
        position: relative;

        width: 100%;
        min-height: 0;
        height: auto;

        display: block;

        z-index: 10;
    }


    /* =========================
       INFORMACIÓN
       ========================= */

    .contact-info {
        position: relative;

        width: 100%;
        min-width: 0;
        min-height: 390px;

        padding: 26px 28px 62px;

        display: flex;
        flex-direction: column;
        justify-content: flex-start;

        background: var(--sm-red);

        box-sizing: border-box;

        z-index: 11;
    }

    .contact-info::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 60px;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0));
        pointer-events: none;
    }


    /* =========================
       TÍTULO CONTACTO
       ========================= */

    .contact-title-wrapper {
        position: relative;

        top: auto;
        left: auto;

        width: 100%;
        max-width: 100%;

        margin: 0;
        padding: 44px 28px 0;

        background: var(--sm-red);

        display: flex;
        align-items: center;
        justify-content: center;

        gap: 7px;

        transform: none;

        box-sizing: border-box;

        z-index: 12;
    }


    .contact-title {
        margin: 0;

        font-size: 1.55rem;
        line-height: 1;

        letter-spacing: 0.5px;

        white-space: nowrap;

        transform: skewX(-10deg);
    }


    .contact-title-wrapper .title-lines {
        display: flex;

        align-items: center;

        gap: 4px;

        flex-shrink: 0;
    }


    .contact-title-wrapper .title-lines span {
        width: 15px;
        height: 8px;

        flex-shrink: 0;

        background: var(--sm-black);
    }


    .contact-title-wrapper .title-lines-right span {
        background: var(--sm-black);
    }


    /* =========================
       TÍTULO GRANDE
       ========================= */

    .contact-info h3 {
        width: 100%;
        max-width: 100%;
        min-width: 0;

        margin: 0 0 12px;

        font-size: clamp(2.5rem, 11vw, 3.7rem);
        line-height: 0.92;

        font-weight: 900;

        letter-spacing: -1.5px;

        overflow-wrap: normal;
        word-break: normal;

        box-sizing: border-box;
    }


    /* =========================
       SUBTÍTULO
       ========================= */

    .contact-info h4 {
        width: 100%;
        max-width: 100%;

        margin: 0 0 20px;

        font-size: 1.05rem;
        line-height: 1.2;

        box-sizing: border-box;
    }


    /* =========================
       SERVICIOS
       ========================= */

    .contact-services {
        width: 100%;
        max-width: 100%;

        margin: 0 0 12px;

        font-size: 0.78rem;
        line-height: 1.35;

        letter-spacing: 0.5px;

        overflow-wrap: anywhere;

        box-sizing: border-box;
    }


    /* =========================
       DATOS CONTACTO
       ========================= */

    .contact-info-item {
        width: 100%;
        min-width: 0;

        display: grid;

        grid-template-columns: 38px minmax(0, 1fr);

        column-gap: 12px;

        align-items: center;

        padding: 12px 0;

        box-sizing: border-box;
    }


    /* =========================
       ICONOS
       ========================= */

    .contact-icon {
        width: 36px;
        height: 36px;

        border-radius: 50%;

        display: flex;
        align-items: center;
        justify-content: center;

        flex-shrink: 0;

        font-size: 0.85rem;
    }


    /* =========================
       TEXTO
       ========================= */

    .contact-info-text {
        width: 100%;
        min-width: 0;
        max-width: 100%;

        box-sizing: border-box;
    }


    .contact-info-text p {
        width: 100%;
        max-width: 100%;

        margin: 0;

        font-size: 0.95rem;
        line-height: 1.3;

        overflow-wrap: anywhere;

        box-sizing: border-box;
    }


    /* TELÉFONO */

    .contact-info-item:first-of-type .contact-info-text p {
        font-size: 1rem;
        font-weight: 800;
    }


    /* ENLACES */

    .contact-info-text a {
        display: block;

        width: 100%;
        max-width: 100%;

        color: inherit;

        text-decoration: none;

        box-sizing: border-box;
    }


    /* DIRECCIÓN */

    .contact-info-text a p {
        font-size: 0.95rem;
        line-height: 1.35;
    }


    /* =========================
       SEPARADORES
       ========================= */

    .contact-separator {
        width: calc(100% - 50px);
        height: 1px;

        margin: 4px 0 4px 50px;

        background: rgba(0, 0, 0, 0.35);
    }


    /* =========================
       HORARIO
       ========================= */

    .contact-hours {
        min-width: 0;
    }


    .contact-hours p {
        margin: 2px 0;

        font-size: 0.85rem;

        line-height: 1.3;
    }


    .contact-hours strong {
        color: var(--sm-black);
    }


    .contact-hours p:last-child {
        font-size: 0.9rem;

        font-weight: 700;
    }


    /* =========================
       FORMULARIO
       ========================= */

    .contact-form-wrapper {
        position: relative;

        width: 100%;
        max-width: 100%;

        margin: 0;

        padding: 38px 28px 45px;

        background: #202020;

        box-sizing: border-box;

        z-index: 10;
    }


    .contact-form-wrapper h3 {
        width: 100%;

        margin: 0 0 20px;

        text-align: center;

        font-size: 1.1rem;
        line-height: 1.1;

        letter-spacing: 0.6px;
    }


    .contact-form {
        width: 100%;
        max-width: 100%;

        box-sizing: border-box;
    }


    /* =========================
       CAMPOS
       ========================= */

    .form-group {
        position: relative;

        width: 100%;
        max-width: 100%;

        margin-bottom: 12px;

        box-sizing: border-box;
    }


    .form-group input,
    .form-group textarea {
        width: 100%;
        max-width: 100%;

        box-sizing: border-box;

        font-size: 0.82rem;

        border-radius: 5px;

        padding: 10px 14px 10px 34px;
    }


    .form-group input {
        height: 42px;
    }


    .form-group textarea {
        height: 100px;

        min-height: 100px;

        resize: vertical;
    }


    /* =========================
       ICONOS FORMULARIO
       ========================= */

    .form-icon {
        left: 10px;

        font-size: 0.75rem;
    }


    .textarea-group .form-icon {
        top: 10px;

        transform: none;
    }


    /* =========================
       BOTÓN
       ========================= */

    .contact-whatsapp-btn {
        width: 100%;
        max-width: 100%;

        margin-top: 18px;

        display: flex;

        align-items: center;
        justify-content: center;

        gap: 6px;

        box-sizing: border-box;
    }


    .contact-whatsapp-btn .btn-text {
        flex: 1;

        min-height: 42px;

        padding: 10px 18px;

        display: flex;

        align-items: center;
        justify-content: center;

        font-size: 0.8rem;

        letter-spacing: 0.2px;

        box-sizing: border-box;
    }


    .contact-whatsapp-btn .btn-line {
        width: 13px;
        height: 34px;

        flex-shrink: 0;
    }
    

}


/* =========================================
   MÓVILES PEQUEÑOS
   ========================================= */

@media (max-width: 380px) {

    .contact-info {
        padding-left: 22px;
        padding-right: 22px;
    }


    .contact-info h3 {
        font-size: 2.3rem;
    }


    .contact-title {
        font-size: 1.4rem;
    }


    .contact-form-wrapper {
        padding-left: 22px;
        padding-right: 22px;
    }
}

