/*======================================================
=                    CONTACTO PAGE
======================================================*/

.contact-page {
    position: relative;

    min-height: 100vh;

    padding: 95px 0 105px;

    overflow: hidden;
    isolation: isolate;

    background:
        radial-gradient(
            circle at 8% 17%,
            rgba(201, 162, 77, .15),
            transparent 25%
        ),
        radial-gradient(
            circle at 94% 78%,
            rgba(15, 31, 82, .09),
            transparent 29%
        ),
        #fffdf8;
}

/* Textura tipo papel */

.contact-page::before {
    content: "";

    position: absolute;
    inset: 0;

    z-index: -4;

    opacity: .3;
    pointer-events: none;

    background-image:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 33px,
            rgba(15, 31, 82, .022) 34px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 33px,
            rgba(15, 31, 82, .016) 34px
        );
}

/* Mancha inferior */

.contact-page::after {
    content: "";

    position: absolute;

    width: 600px;
    height: 205px;

    right: -135px;
    bottom: -90px;

    z-index: -3;

    background: rgba(201, 162, 77, .13);

    transform: rotate(-8deg);

    clip-path: polygon(
        0 42%,
        10% 17%,
        24% 36%,
        39% 9%,
        55% 31%,
        70% 12%,
        86% 38%,
        100% 19%,
        95% 75%,
        79% 61%,
        62% 86%,
        43% 67%,
        25% 91%,
        7% 69%
    );
}

.contact-page .container {
    position: relative;
    z-index: 3;

    max-width: 1380px;
}

/*======================================================
=                    ENCABEZADO
======================================================*/

.contact-page-heading {
    max-width: 1040px;

    margin: 0 auto 80px;

    text-align: center;
}

.contact-page-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 13px;

    margin-bottom: 27px;

    color: #956d1c;

    font-size: .76rem;
    font-weight: 800;
    letter-spacing: 3px;
}

.contact-page-eyebrow::before,
.contact-page-eyebrow::after {
    content: "";

    width: 42px;
    height: 4px;

    flex-shrink: 0;

    background: #c9a24d;
    border-radius: 999px;
}

.contact-page-eyebrow::before {
    transform: rotate(-6deg);
}

.contact-page-eyebrow::after {
    transform: rotate(6deg);
}

.contact-page-heading h1 {
    margin: 0 0 28px;

    color: #0f1f52;

    font-size: clamp(3.4rem, 6.5vw, 6.5rem);
    line-height: .92;
    font-weight: 900;
    letter-spacing: -5px;
}

.contact-page-heading h1 strong {
    position: relative;

    display: inline-block;

    color: #c9a24d;
    font-weight: 900;
}

.contact-page-heading h1 strong::after {
    content: "";

    position: absolute;

    left: -2%;
    right: -2%;
    bottom: -9px;

    height: 22px;

    z-index: -1;

    background: rgba(227, 193, 109, .28);

    transform: rotate(-2deg);

    clip-path: polygon(
        0 42%,
        11% 17%,
        25% 36%,
        40% 10%,
        57% 35%,
        74% 13%,
        89% 38%,
        100% 20%,
        96% 73%,
        80% 61%,
        63% 84%,
        46% 63%,
        27% 80%,
        8% 61%
    );
}

.contact-page-heading p {
    max-width: 720px;

    margin: 0 auto;

    color: #5c6372;

    font-size: 1.08rem;
    line-height: 1.9;
}

/*======================================================
=                 CONTENIDO PRINCIPAL
======================================================*/

.contact-page-wrapper {
    display: grid;

    grid-template-columns:
        minmax(330px, .78fr)
        minmax(0, 1.22fr);

    gap: 48px;

    align-items: stretch;
}

/*======================================================
=               INFORMACIÓN DE CONTACTO
======================================================*/

.contact-info {
    position: relative;

    min-height: 100%;

    padding: 60px 46px 48px;

    overflow: hidden;
    isolation: isolate;

    color: #fff;

    background:
        radial-gradient(
            circle at 85% 13%,
            rgba(255, 255, 255, .13),
            transparent 28%
        ),
        radial-gradient(
            circle at 8% 88%,
            rgba(201, 162, 77, .18),
            transparent 31%
        ),
        linear-gradient(
            145deg,
            #0f1f52,
            #18366f 57%,
            #244b9a
        );

    clip-path: polygon(
        3% 2%,
        97% 0,
        100% 92%,
        92% 100%,
        1% 96%,
        0 9%
    );

    box-shadow:
        20px 23px 0 rgba(201, 162, 77, .23),
        0 40px 75px rgba(15, 31, 82, .20);
}

/* Mancha decorativa interna */

.contact-info::before {
    content: "";

    position: absolute;

    width: 320px;
    height: 120px;

    left: -75px;
    bottom: -35px;

    z-index: -1;

    background: rgba(227, 193, 109, .13);

    transform: rotate(-9deg);

    clip-path: polygon(
        0 40%,
        12% 15%,
        29% 31%,
        44% 9%,
        61% 27%,
        79% 12%,
        100% 40%,
        94% 75%,
        72% 61%,
        51% 84%,
        28% 63%,
        7% 80%
    );
}

.contact-info-tape {
    position: absolute;

    width: 145px;
    height: 39px;

    top: -12px;
    left: 50%;

    z-index: 5;

    background: rgba(239, 228, 194, .88);

    transform:
        translateX(-50%)
        rotate(-5deg);

    box-shadow:
        0 5px 14px rgba(2, 8, 28, .17);
}

/* Encabezado del panel */

.contact-info-header {
    margin-bottom: 43px;
}

.contact-info-small {
    display: block;

    margin-bottom: 17px;

    color: #f2dda0;

    font-size: .68rem;
    font-weight: 800;
    letter-spacing: 2.1px;
}

.contact-info-header h2 {
    margin: 0 0 21px;

    color: #fff;

    font-size: clamp(2.4rem, 3.8vw, 3.9rem);
    line-height: .95;
    font-weight: 900;
    letter-spacing: -2.5px;
}

.contact-info-header p {
    margin: 0;

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

    font-size: .97rem;
    line-height: 1.8;
}

/* Lista */

.contact-info-list {
    display: flex;
    flex-direction: column;

    gap: 13px;
}

.contact-info-item {
    position: relative;

    min-height: 76px;

    padding: 13px 45px 13px 13px;

    display: flex;
    align-items: center;
    gap: 15px;

    color: #fff;
    background: rgba(255, 255, 255, .075);

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

    text-decoration: none;

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

a.contact-info-item:hover {
    color: #fff;

    background: rgba(255, 255, 255, .13);
    border-color: rgba(242, 221, 160, .35);

    transform: translateX(7px);
}

.contact-info-icon {
    width: 48px;
    height: 48px;

    display: grid;
    place-items: center;

    flex-shrink: 0;

    color: #0f1f52;
    background: #f2dda0;

    font-size: 1.15rem;

    border-radius:
        45% 55% 62% 38% /
        46% 40% 60% 54%;

    transform: rotate(-4deg);

    box-shadow:
        5px 6px 0 rgba(2, 8, 28, .14);
}

.contact-info-item span {
    display: block;

    margin-bottom: 4px;

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

    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
}

.contact-info-item strong {
    display: block;

    color: #fff;

    font-size: .9rem;
    line-height: 1.35;
    font-weight: 700;

    overflow-wrap: anywhere;
}

.contact-info-arrow {
    position: absolute;

    right: 18px;
    top: 50%;

    color: #f2dda0;

    transform: translateY(-50%);
}

/* Redes sociales */

.contact-social {
    margin-top: 35px;
    padding-top: 29px;

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

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

.contact-social > span {
    color: rgba(255, 255, 255, .65);

    font-size: .82rem;
}

.contact-social-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-social-links a {
    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    color: #0f1f52;
    background: #f2dda0;

    text-decoration: none;

    border-radius: 50%;

    transition:
        transform .3s ease,
        background-color .3s ease;
}

.contact-social-links a:hover {
    color: #0f1f52;
    background: #fff3c9;

    transform:
        translateY(-4px)
        rotate(5deg);
}

/* Nota inferior */

.contact-info-note {
    margin-top: 40px;

    padding: 18px 20px;

    display: flex;
    align-items: center;
    gap: 13px;

    color: #0f1f52;
    background: #f2dda0;

    transform: rotate(-2deg);

    clip-path: polygon(
        2% 5%,
        98% 0,
        100% 87%,
        92% 100%,
        0 94%
    );

    box-shadow:
        8px 9px 0 rgba(2, 8, 28, .14);
}

.contact-info-note i {
    flex-shrink: 0;

    font-size: 1.4rem;
}

.contact-info-note span {
    font-family: cursive;
    font-size: .87rem;
    line-height: 1.4;
}

/*======================================================
=                 TARJETA DEL FORMULARIO
======================================================*/

.contact-form-card {
    position: relative;

    padding: 60px 58px 55px;

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

    border: 1px solid rgba(15, 31, 82, .10);

    clip-path: polygon(
        1% 1%,
        99% 0,
        100% 97%,
        95% 100%,
        0 98%,
        .5% 5%
    );

    box-shadow:
        19px 22px 0 rgba(201, 162, 77, .17),
        0 38px 75px rgba(15, 31, 82, .10);
}

/* Cintas */

.contact-form-tape {
    position: absolute;

    width: 125px;
    height: 35px;

    z-index: 5;

    background: rgba(239, 228, 194, .86);

    box-shadow:
        0 5px 13px rgba(15, 31, 82, .11);
}

.contact-form-tape-left {
    top: -10px;
    left: 70px;

    transform: rotate(-7deg);
}

.contact-form-tape-right {
    top: -8px;
    right: 70px;

    transform: rotate(7deg);
}

/* Encabezado formulario */

.contact-form-heading {
    max-width: 700px;

    margin-bottom: 42px;
}

.contact-form-heading > span {
    display: block;

    margin-bottom: 15px;

    color: #c9a24d;

    font-size: .69rem;
    font-weight: 800;
    letter-spacing: 2px;
}

.contact-form-heading h2 {
    margin: 0 0 17px;

    color: #0f1f52;

    font-size: clamp(2.5rem, 4vw, 4rem);
    line-height: .96;
    font-weight: 900;
    letter-spacing: -2.7px;
}

.contact-form-heading p {
    margin: 0;

    color: #666d7a;

    font-size: .96rem;
    line-height: 1.75;
}

/*======================================================
=                     FORMULARIO
======================================================*/

.contact-form-grid {
    display: grid;

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

    gap: 25px 22px;
}

.contact-field {
    position: relative;
}

.contact-field-full {
    grid-column: 1 / -1;
}

.contact-field label {
    display: block;

    margin-bottom: 9px;

    color: #0f1f52;

    font-size: .77rem;
    line-height: 1.4;
    font-weight: 800;
}

.contact-field label span {
    color: #c9a24d;
}

/* Inputs */

.contact-input-wrapper,
.contact-textarea-wrapper {
    position: relative;
}

.contact-input-wrapper > i {
    position: absolute;

    left: 17px;
    top: 50%;

    z-index: 2;

    color: #c9a24d;

    font-size: .98rem;

    transform: translateY(-50%);
}

.contact-input-wrapper input,
.contact-input-wrapper select,
.contact-textarea-wrapper textarea {
    width: 100%;

    border: 1px solid rgba(15, 31, 82, .14);
    outline: none;

    color: #0f1f52;
    background: #fffdf8;

    font-family: inherit;
    font-size: .91rem;

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

.contact-input-wrapper input,
.contact-input-wrapper select {
    height: 58px;

    padding: 0 18px 0 47px;
}

.contact-input-wrapper select {
    cursor: pointer;

    appearance: none;
    -webkit-appearance: none;

    padding-right: 48px;
}

.contact-select-wrapper::after {
    content: "\F282";

    position: absolute;

    right: 18px;
    top: 50%;

    color: #0f1f52;

    font-family: "bootstrap-icons";
    font-size: .8rem;

    transform: translateY(-50%);

    pointer-events: none;
}

.contact-textarea-wrapper textarea {
    min-height: 180px;

    padding: 17px 18px 38px;

    resize: vertical;

    line-height: 1.65;
}

.contact-input-wrapper input::placeholder,
.contact-textarea-wrapper textarea::placeholder {
    color: #a0a4ad;
}

.contact-input-wrapper input:focus,
.contact-input-wrapper select:focus,
.contact-textarea-wrapper textarea:focus {
    border-color: rgba(201, 162, 77, .85);

    background: #fff;

    box-shadow:
        0 0 0 4px rgba(201, 162, 77, .12);
}

.contact-character-count {
    position: absolute;

    right: 14px;
    bottom: 11px;

    color: #a0a4ad;

    font-size: .69rem;
}

/* Errores */

.contact-field-error {
    min-height: 17px;

    display: block;

    margin-top: 6px;

    color: #b42318;

    font-size: .7rem;
}

.contact-field.has-error input,
.contact-field.has-error select,
.contact-field.has-error textarea {
    border-color: #b42318;

    background: #fff8f7;
}

/*======================================================
=                CASILLA DE PRIVACIDAD
======================================================*/

.contact-privacy {
    margin-top: 27px;

    display: flex;
    align-items: flex-start;
    gap: 12px;

    cursor: pointer;
}

.contact-privacy input {
    position: absolute;

    opacity: 0;
    pointer-events: none;
}

.contact-checkbox {
    width: 22px;
    height: 22px;

    display: grid;
    place-items: center;

    flex-shrink: 0;

    border: 2px solid rgba(15, 31, 82, .28);

    color: transparent;
    background: #fff;

    transition:
        background-color .25s ease,
        border-color .25s ease,
        color .25s ease;
}

.contact-privacy input:checked + .contact-checkbox {
    color: #fff;
    background: #0f1f52;
    border-color: #0f1f52;
}

.contact-privacy input:focus-visible + .contact-checkbox {
    outline: 3px solid rgba(201, 162, 77, .28);
    outline-offset: 3px;
}

.contact-privacy > span:last-child {
    color: #6f7581;

    font-size: .77rem;
    line-height: 1.55;
}

/*======================================================
=                   PIE DEL FORMULARIO
======================================================*/

.contact-form-footer {
    margin-top: 34px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.contact-submit {
    min-height: 61px;

    padding: 0 31px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 13px;

    border: 0;

    color: #fff;
    background: #0f1f52;

    cursor: pointer;

    font-family: inherit;
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .6px;

    clip-path: polygon(
        3% 5%,
        98% 0,
        100% 86%,
        91% 100%,
        0 95%
    );

    box-shadow:
        10px 11px 0 rgba(201, 162, 77, .30);

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

.contact-submit:hover {
    color: #fff;
    background: #244b9a;

    transform:
        translateY(-5px)
        rotate(-1deg);

    box-shadow:
        15px 16px 0 rgba(201, 162, 77, .35);
}

.contact-submit i {
    transition: transform .35s ease;
}

.contact-submit:hover i {
    transform: translateX(5px);
}

.contact-submit:disabled {
    opacity: .65;
    cursor: not-allowed;

    transform: none;
}

.contact-submit-loading {
    display: none;
    align-items: center;
    gap: 8px;
}

.contact-submit.is-loading .contact-submit-text,
.contact-submit.is-loading > i {
    display: none;
}

.contact-submit.is-loading .contact-submit-loading {
    display: inline-flex;
}

.contact-form-footer p {
    max-width: 240px;

    margin: 0;

    display: flex;
    align-items: flex-start;
    gap: 8px;

    color: #858a94;

    font-size: .71rem;
    line-height: 1.5;
}

.contact-form-footer p i {
    margin-top: 1px;

    color: #c9a24d;

    font-size: .9rem;
}

/*======================================================
=                    DECORACIONES
======================================================*/

.contact-page-decoration {
    position: absolute;
    inset: 0;

    z-index: -2;

    pointer-events: none;
}

.contact-page-stroke {
    position: absolute;
}

.contact-page-stroke-one {
    width: 290px;
    height: 90px;

    top: 110px;
    left: -60px;

    background: rgba(201, 162, 77, .21);

    transform: rotate(-10deg);

    clip-path: polygon(
        0 39%,
        12% 15%,
        29% 31%,
        44% 9%,
        61% 27%,
        79% 12%,
        100% 40%,
        94% 75%,
        72% 61%,
        51% 84%,
        28% 63%,
        7% 80%
    );
}

.contact-page-stroke-two {
    width: 260px;
    height: 84px;

    right: -55px;
    bottom: 105px;

    background: rgba(15, 31, 82, .08);

    transform: rotate(13deg);

    clip-path: polygon(
        0 35%,
        15% 12%,
        33% 28%,
        51% 6%,
        69% 29%,
        87% 10%,
        100% 39%,
        92% 77%,
        67% 62%,
        45% 86%,
        22% 64%
    );
}

.contact-page-doodle {
    position: absolute;
}

.contact-page-doodle-one {
    width: 110px;
    height: 110px;

    left: 3%;
    bottom: 115px;

    border: 4px solid rgba(201, 162, 77, .30);

    border-radius:
        42% 58% 61% 39% /
        48% 40% 60% 52%;

    transform: rotate(18deg);

    animation:
        contact-page-float
        7s
        ease-in-out
        infinite;
}

.contact-page-doodle-two {
    width: 150px;
    height: 72px;

    right: 3%;
    top: 220px;

    border-top: 4px solid rgba(15, 31, 82, .16);
    border-radius: 50%;

    transform: rotate(-17deg);

    animation:
        contact-page-float
        8s
        ease-in-out
        infinite reverse;
}

.contact-page-dot {
    position: absolute;

    border-radius: 50%;

    background: #c9a24d;
}

.contact-page-dot-one {
    width: 10px;
    height: 10px;

    top: 17%;
    right: 8%;
}

.contact-page-dot-two {
    width: 7px;
    height: 7px;

    left: 5%;
    top: 48%;

    opacity: .7;
}

.contact-page-dot-three {
    width: 14px;
    height: 14px;

    right: 13%;
    bottom: 7%;

    opacity: .45;
}

/*======================================================
=                    ANIMACIÓN
======================================================*/

@keyframes contact-page-float {
    0%,
    100% {
        translate: 0 0;
    }

    50% {
        translate: 0 -13px;
    }
}

/*======================================================
=                RESPONSIVE: LAPTOP
======================================================*/

@media (max-width: 1200px) {

    .contact-page-wrapper {
        grid-template-columns:
            minmax(315px, .8fr)
            minmax(0, 1.2fr);

        gap: 34px;
    }

    .contact-info {
        padding:
            55px
            36px
            45px;
    }

    .contact-form-card {
        padding:
            55px
            45px
            50px;
    }
}

/*======================================================
=                RESPONSIVE: TABLET
======================================================*/

@media (max-width: 992px) {

    .contact-page {
        padding: 125px 0 115px;
    }

    .contact-page-heading {
        margin-bottom: 62px;
    }

    .contact-page-wrapper {
        grid-template-columns: 1fr;

        gap: 55px;
    }

    .contact-info {
        max-width: 760px;

        margin: 0 auto;

        width: 100%;
    }

    .contact-info-list {
        display: grid;

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

    .contact-info-note {
        max-width: 430px;
    }

    .contact-form-card {
        max-width: 850px;

        margin: 0 auto;

        width: 100%;
    }
}

/*======================================================
=                RESPONSIVE: MÓVIL
======================================================*/

@media (max-width: 576px) {

    .contact-page {
        padding: 105px 0 90px;
    }

    .contact-page-heading {
        margin-bottom: 48px;
    }

    .contact-page-eyebrow {
        gap: 9px;

        font-size: .63rem;
        letter-spacing: 1.8px;
    }

    .contact-page-eyebrow::before,
    .contact-page-eyebrow::after {
        width: 25px;
    }

    .contact-page-heading h1 {
        font-size: clamp(3rem, 15vw, 4.2rem);
        line-height: .94;
        letter-spacing: -2.4px;
    }

    .contact-page-heading p {
        font-size: .98rem;
        line-height: 1.78;
    }

    .contact-page-wrapper {
        gap: 45px;
    }

    .contact-info {
        padding:
            52px
            25px
            38px;

        box-shadow:
            13px 15px 0 rgba(201, 162, 77, .22),
            0 30px 60px rgba(15, 31, 82, .19);
    }

    .contact-info-header h2 {
        font-size: 2.75rem;
    }

    .contact-info-list {
        grid-template-columns: 1fr;
    }

    .contact-info-item {
        padding-right: 39px;
    }

    .contact-social {
        align-items: flex-start;
        flex-direction: column;
    }

    .contact-info-note {
        margin-top: 32px;
    }

    .contact-form-card {
        padding:
            52px
            24px
            40px;

        box-shadow:
            13px 15px 0 rgba(201, 162, 77, .16),
            0 28px 60px rgba(15, 31, 82, .09);
    }

    .contact-form-tape {
        width: 90px;
        height: 28px;
    }

    .contact-form-tape-left {
        left: 35px;
    }

    .contact-form-tape-right {
        right: 35px;
    }

    .contact-form-heading {
        margin-bottom: 34px;
    }

    .contact-form-heading h2 {
        font-size: 2.8rem;
    }

    .contact-form-grid {
        grid-template-columns: 1fr;

        gap: 20px;
    }

    .contact-field-full {
        grid-column: auto;
    }

    .contact-form-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .contact-submit {
        width: 100%;

        padding: 0 20px;
    }

    .contact-form-footer p {
        max-width: 100%;
    }
}

/*======================================================
=              REDUCIR ANIMACIONES
======================================================*/

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

    .contact-page-doodle {
        animation: none;
    }

    .contact-info-item,
    .contact-social-links a,
    .contact-submit,
    .contact-submit i {
        transition: none;
    }
}