/* =========================================================
   CORATTO PET · CONTACTO
   ========================================================= */

.contact-page {
    --contact-paper: #fffaf4;
    --contact-paper-soft: #f8eee2;
    --contact-cream: #efd8b9;
    --contact-brown: #422c21;
    --contact-brown-soft: #60402f;
    --contact-gold: #bd7d31;
    --contact-gold-soft: #dda457;
    --contact-muted: #776257;
    --contact-line: rgb(91 59 39 / 14%);

    position: relative;
    overflow: hidden;

    min-height: calc(100vh - 5rem);

    color: var(--contact-brown);

    background:
        radial-gradient(
            circle at 8% 20%,
            rgb(189 125 49 / 9%),
            transparent 23rem
        ),
        radial-gradient(
            circle at 92% 72%,
            rgb(225 190 145 / 16%),
            transparent 25rem
        ),
        linear-gradient(
            145deg,
            #fffaf4,
            #f8eee3
        );
}

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

    position: absolute;

    width: 7rem;
    height: 7rem;

    pointer-events: none;

    opacity: .08;

    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg fill='%23bd7d31'%3E%3Cellipse cx='50' cy='63' rx='20' ry='17'/%3E%3Cellipse cx='23' cy='39' rx='9' ry='13'/%3E%3Cellipse cx='42' cy='25' rx='9' ry='13'/%3E%3Cellipse cx='60' cy='25' rx='9' ry='13'/%3E%3Cellipse cx='79' cy='39' rx='9' ry='13'/%3E%3C/g%3E%3C/svg%3E");

    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.contact-page::before {
    top: 18%;
    left: 3%;

    transform: rotate(-16deg);
}

.contact-page::after {
    right: 4%;
    bottom: 12%;

    width: 9rem;
    height: 9rem;

    transform: rotate(14deg);
}

.contact-page__shell {
    position: relative;
    z-index: 1;

    display: grid;
    grid-template-columns: minmax(18rem, .72fr) minmax(32rem, 1.28fr);
    align-items: center;

    width: min(calc(100% - 64px), 1380px);
    gap: clamp(3rem, 6vw, 7rem);

    margin-inline: auto;

    padding:
        clamp(4rem, 7vw, 7rem)
        0
        clamp(4rem, 7vw, 6rem);
}

/* =========================================================
   INTRO
   ========================================================= */

.contact-intro {
    position: relative;
    max-width: 31rem;
}

.contact-eyebrow {
    display: block;

    margin-bottom: .75rem;

    color: var(--contact-gold);

    font-size: .75rem;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.contact-intro h1 {
    width: min(42rem, 46vw);
    max-width: none;

    margin: 0;

    color: var(--contact-brown);

    font-family: var(--serif);
    font-size: clamp(3rem, 5vw, 5rem);
    font-weight: 600;
    line-height: .95;
    letter-spacing: -.045em;

    text-wrap: balance;
}

.contact-intro > p {
    max-width: 29rem;

    margin: 1.25rem 0 0;

    color: var(--contact-muted);

    font-size: 1rem;
    line-height: 1.7;
}

.contact-intro__points {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;

    margin-top: 1.6rem;
}

.contact-intro__points span {
    display: inline-flex;
    align-items: center;

    min-height: 2.25rem;

    padding: .48rem .75rem;

    border: 1px solid rgb(189 125 49 / 22%);
    border-radius: 999px;

    color: #765032;
    background: rgb(255 250 244 / 72%);

    font-size: .72rem;
    font-weight: 750;
}

/* =========================================================
   CARD
   ========================================================= */

.contact-card {
    position: relative;
    overflow: hidden;

    padding: clamp(1.6rem, 3vw, 2.5rem);

    border: 1px solid var(--contact-line);
    border-radius: 1.7rem;

    background:
        radial-gradient(
            circle at 95% 4%,
            rgb(189 125 49 / 8%),
            transparent 14rem
        ),
        rgb(255 252 247 / 92%);

    box-shadow:
        0 1.4rem 4rem rgb(72 45 29 / 9%);
}

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

    position: absolute;
    top: -2rem;
    right: -2rem;

    width: 8rem;
    height: 8rem;

    opacity: .07;
    pointer-events: none;

    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg fill='%23bd7d31'%3E%3Cellipse cx='50' cy='63' rx='20' ry='17'/%3E%3Cellipse cx='23' cy='39' rx='9' ry='13'/%3E%3Cellipse cx='42' cy='25' rx='9' ry='13'/%3E%3Cellipse cx='60' cy='25' rx='9' ry='13'/%3E%3Cellipse cx='79' cy='39' rx='9' ry='13'/%3E%3C/g%3E%3C/svg%3E");

    background-repeat: no-repeat;
    background-size: contain;

    transform: rotate(18deg);
}

.contact-card__header {
    position: relative;
    z-index: 1;

    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(13rem, .55fr);
    align-items: end;
    gap: 1.5rem;

    margin-bottom: 1.5rem;
    padding-bottom: 1.2rem;

    border-bottom: 1px solid var(--contact-line);
}

.contact-card__header > div > span {
    display: block;

    color: var(--contact-gold);

    font-size: .68rem;
    font-weight: 900;
    letter-spacing: .12em;
}

.contact-card__header h2 {
    margin: .3rem 0 0;
    width: 100%;
    max-width: 30rem;
    color: var(--contact-brown);

    font-family: var(--serif);
    font-size: clamp(1.8rem, 2.5vw, 2.6rem);
    font-weight: 600;
    line-height: 1;
}

.contact-card__header > p {
    margin: 0;

    color: var(--contact-muted);

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

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

.contact-form {
    position: relative;
    z-index: 1;
}

.contact-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.contact-field {
    display: grid;
    gap: .42rem;

    min-width: 0;
}

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

.contact-field > span {
    color: #5b4030;

    font-size: .89rem;
    font-weight: 650;
}

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

    border: 1px solid rgb(91 59 39 / 18%);
    border-radius: .85rem;

    outline: 0;

    color: var(--contact-brown);
    background: #fffdfa;

    font: inherit;
    font-size: .9rem;

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

.contact-field input {
    min-height: 3.15rem;
    padding: .75rem .9rem;
}

.contact-field textarea {
    min-height: 9.5rem;
    padding: .9rem;

    resize: vertical;
    line-height: 1.55;
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
    color: #aa988c;
}

.contact-field input:hover,
.contact-field textarea:hover {
    border-color: rgb(189 125 49 / 32%);
}

.contact-field input:focus,
.contact-field textarea:focus {
    border-color: var(--contact-gold);

    background: #fff;

    box-shadow:
        0 0 0 3px rgb(189 125 49 / 10%);
}

/* =========================================================
   RECAPTCHA / ENVÍO
   ========================================================= */

.contact-form__bottom {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1.25rem;

    margin-top: 1.25rem;
}

.contact-recaptcha {
    display: grid;
    gap: .4rem;
}

.contact-recaptcha__label {
    color: var(--contact-muted);

    font-size: .68rem;
    font-weight: 750;
}

.contact-submit {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: .5rem;

    min-width: 11rem;

    border: 0 !important;

    color: #fffaf4 !important;
    background:
        linear-gradient(
            135deg,
            #bd7d31,
            #9d6022
        ) !important;

    font-weight: 850 !important;

    box-shadow:
        0 .65rem 1.4rem rgb(126 76 28 / 18%);

    cursor: pointer;

    transition:
        transform .18s ease,
        box-shadow .18s ease !important;
}

.contact-submit svg {
    width: 1rem;
    height: 1rem;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.contact-submit:hover {
    transform: translateY(-2px);

    box-shadow:
        0 .85rem 1.7rem rgb(126 76 28 / 24%);
}

/* =========================================================
   MENSAJES
   ========================================================= */

.contact-feedback {
    display: grid;
    gap: .25rem;

    margin-bottom: 1rem;
    padding: .85rem 1rem;

    border-radius: .85rem;

    font-size: .78rem;
    line-height: 1.45;
}

.contact-feedback strong {
    font-size: .82rem;
}

.contact-feedback--success {
    border: 1px solid rgb(73 123 85 / 24%);

    color: #355d40;
    background: #edf6ef;
}

.contact-feedback--error {
    border: 1px solid rgb(154 70 55 / 20%);

    color: #793f34;
    background: #fff0ec;
}

.contact-feedback ul {
    margin: .2rem 0 0;
    padding-left: 1.1rem;
}

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

@media (max-width: 950px) {
    .contact-page__shell {
        grid-template-columns: 1fr;

        width: min(calc(100% - 32px), 760px);
        gap: 2rem;

        padding-top: 3rem;
    }

    .contact-intro {
        max-width: 42rem;
    }

    .contact-intro h1 {
        max-width: 14ch;
    }
}

/* =========================================================
   MÓVIL
   ========================================================= */

@media (max-width: 650px) {
    .contact-page__shell {
        width: calc(100% - 20px);

        gap: 1.4rem;

        padding:
            2.3rem
            0
            3rem;
    }

    .contact-intro h1 {
        font-size: 2.55rem;
    }

    .contact-intro > p {
        margin-top: .9rem;

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

    .contact-intro__points {
        margin-top: 1rem;
    }

    .contact-intro__points span {
        min-height: 2rem;

        padding: .4rem .62rem;

        font-size: .65rem;
    }

    .contact-card {
        padding: 1.1rem;

        border-radius: 1.25rem;
    }

    .contact-card__header {
        grid-template-columns: 1fr;
        gap: .55rem;

        margin-bottom: 1.1rem;
        padding-bottom: .9rem;
    }

    .contact-card__header h2 {
        font-size: 1.85rem;
    }

    .contact-card__header > p {
        font-size: .72rem;
    }

    .contact-form__grid {
        grid-template-columns: 1fr;
        gap: .8rem;
    }

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

    .contact-field input {
        min-height: 2.8rem;
    }

    .contact-field textarea {
        min-height: 7.5rem;
    }

    .contact-form__bottom {
        align-items: stretch;
        flex-direction: column;

        gap: .9rem;
    }

    .contact-recaptcha {
        overflow-x: auto;
    }

    .contact-submit {
        width: 100%;
    }
}