/* CONTACTO — estilos específicos de la página. */
.contact-page {
    overflow: hidden;
    background: var(--color-background);
    color: var(--color-primary)
}

.contact-page h1,
.contact-page h2,
.contact-page h3,
.contact-page p {
    margin: 0
}





/* =========================================================

   HERO

========================================================= */

.contact-hero {
    position: relative;
    height: 745px;
    overflow: hidden;
    background: var(--color-background);
}

.contact-hero__gradient {
    position: absolute;
    inset: 0;
    background-image: url("../assets/backgrounds/background_hero_contacto.png");
    background-repeat: no-repeat;
    background-position: right bottom;
    background-size: contain;
}

.contact-hero__content {
    position: relative;
    z-index: 2;
    width: min(100% - 170px, 1270px);
    margin: 0 auto;
    padding-top: 263px;
}

.contact-hero__title {
    max-width: 689px;
    font-size: 90px;
    font-weight: 500;
    line-height: 100px;
    font-family: var(--font-body);
}

.contact-page .contact-hero__intro {
    max-width: 651px;
    margin-top: 33px;
    font-family: var(--font-display);
    font-size: 32px;
    line-height: 1.3;
}


/* =========================================================

   CUÉNTANOS TU RETO + CONTACTO DIRECTO

========================================================= */

.contact-cta {
    min-height: 405px;
    padding: 66px 50px 50px;
    box-sizing: border-box;
    background: var(--color-background);
}

.contact-cta__content {
    width: min(100%, 1340px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 717px) 1fr;
    align-items: start;
}


.contact-cta__main {
    max-width: 518px;
}

.contact-cta__main p {
    margin-top: 12px;
}

.contact-cta__main .button--accent {
    margin-top: 51px;
}

.contact-direct__list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}

.contact-direct__list li {
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-direct__icon {
    width: 15px;
    height: 15px;
}

.contact-direct__list a {
    color: var(--color-primary);
    line-height: 24px;
    font-weight: 400;
    letter-spacing: .4px
}

.contact-cta__actions {
    display: flex;
    align-items: center;
}

/* =========================================================

   FORMULARIO

========================================================= */

.contact-form-section {
    min-height: 848px;
    padding: 50px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    background: var(--color-background);
}

.contact-form-section__content {
    width: min(100%, 1340px);
    margin: 0 auto;
}

.contact-form-section h2 {
    max-width: 518px;
}

.contact-form-section__content>p {
    max-width: 436px;
    margin-top: 12px;
    line-height: 1.35;
}

.contact-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 380px));
    column-gap: 90px;
    row-gap: 12px;
    width: 100%;
    max-width: 850px;
    margin-top: 12px;
}

.contact-form__field {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-form__field--full {
    grid-column: 1 / -1;
}

.contact-form label {
    line-height: 27px;
    font-weight: 400
}

.contact-form label span {
    color: #be2323
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    box-sizing: border-box;
    border: .8px solid rgba(22, 22, 22, .6);
    border-radius: 2px;
    background: #fff;
    color: var(--color-primary);
    font-family: var(--font-body);
}

.contact-form input {
    height: 50px;
    padding: 0 14px;
}

.contact-form textarea {
    height: 165px;
    padding: 12px 14px;
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: 2px solid var(--color-accent);
    outline-offset: 0
}

.contact-form input.contact-form__honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none
}

.contact-form__submit {
    grid-column: 1;
    justify-self: start;
    margin-top: 50px;
    border: 0;
    cursor: pointer;
    font-family: var(--font-body);
}


.contact-form__message {
    grid-column: 1 / -1;
    margin-top: 20px;
    line-height: 1.35
}

.contact-form__message--error {
    color: #be2323
}


/* =========================================================

   SEDES

========================================================= */

.offices {
    min-height: 676px;
    padding: 88px 0 135px;
    box-sizing: border-box;
    background: var(--color-background);
}

.contact-page .offices__title {
    margin: 0 auto 48px;
}

.offices__title {
    width: min(100% - 100px, 1340px);
    font-size: 48px;
    line-height: 1.27;
    font-weight: 700
}

.offices__grid {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 45px;
}

.office-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 292px;
}


.office-card p {
    max-width: 293px;
    line-height: 1.35;
    font-weight: 500;
    letter-spacing: .4px
}



/* ==========================================================================
   TABLET
   ========================================================================== */

@media (max-width: 1199px) {
    .contact-hero__content {
        width: 100%;
        padding-left: 6vw;
        padding-right: 6vw;
        box-sizing: border-box
    }

    .contact-hero__gradient {
        inset: -30px -8px -4px 0;
        background-size: auto 60%;
        background-position: right bottom;
    }

    .contact-hero__title {
        font-size: clamp(56px, 6.25vw, 90px);
        line-height: 1.1
    }

    .contact-cta {
        padding: 60px 40px
    }

    .contact-cta__content {
        grid-template-columns: 1fr 1fr;
        gap: 40px
    }

    .contact-form-section {
        min-height: auto;
        padding: 80px 40px
    }

    .offices {
        min-height: auto;
        padding: 80px 40px
    }

    .offices__title {
        width: 100%
    }


}

@media(max-width:1399px) {
    .offices__grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 292px));
        justify-content: center;
        gap: 40px;
    }
}

/* ========================================
   MÓVIL
======================================== */

@media (max-width: 767px) {

    .contact-hero {
        height: auto;
        min-height: 600px;
        padding-bottom: 80px;
    }

    .contact-hero__content {
        width: calc(100% - 40px);
        padding-top: 180px;
    }

    .contact-hero__title {
        font-size: 48px;
        line-height: 1.1
    }

    .contact-hero__intro {
        font-size: 24px
    }

    .contact-hero__gradient {
        inset: -10px -4px -4px 0;
        background-size: auto 40%;
    }

    .contact-cta {
        min-height: auto;
        padding: 60px 20px
    }

    .contact-cta__content {
        grid-template-columns: 1fr;
        gap: 50px
    }


    .contact-form-section {
        min-height: auto;
        padding: 60px 20px
    }

    .contact-form {
        grid-template-columns: 1fr;
    }

    .contact-form__submit {
        margin-top: 30px
    }

    .offices {
        min-height: auto;
        padding: 60px 20px
    }

    .offices__title {
        width: 100%;
        font-size: 24px
    }

    .offices__grid {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 40px
    }

    .office-card {
        width: 100%;
        max-width: 340px
    }



}