/* =========================================================
   MDL_CONTACT_FIX_FILE_V1
   Estilos independientes para la sección de contacto
   ========================================================= */

.contact-section {
    position: relative;
    overflow: hidden;
    padding: 115px 0;
    background: var(--secondary, #bdccd4);
}

.contact-section::before {
    content: "";
    position: absolute;
    width: 480px;
    height: 480px;
    left: -250px;
    bottom: -260px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(129, 195, 98, .22),
        transparent 70%
    );
}

.contact-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: .83fr 1.17fr;
    gap: 90px;
    align-items: start;
}

.contact-intro {
    position: sticky;
    top: 130px;
}

.contact-intro .eyebrow {
    color: #69aa4c;
}

.contact-intro h2 {
    max-width: 610px;
    font-size: clamp(2.5rem, 4.5vw, 4.1rem);
    line-height: 1.03;
    letter-spacing: -.05em;
    color: #1b202b;
}

.contact-description {
    max-width: 580px;
    margin-top: 28px;
    color: #59636d;
    font-size: 1.03rem;
}

.contact-direct {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 45px;
}

.contact-direct-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.contact-direct-icon {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: #1b202b;
    color: #81c362;
    font-weight: 900;
    font-size: 1rem;
}

.contact-direct-item > div:last-child {
    display: flex;
    flex-direction: column;
}

.contact-direct-item span {
    color: #68747d;
    font-size: .76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.contact-direct-item a {
    margin-top: 2px;
    color: #1b202b;
    font-weight: 800;
    font-size: .95rem;
    word-break: break-word;
}

.contact-direct-item a:hover {
    color: #4f8d37;
}

.contact-note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    max-width: 510px;
    margin-top: 45px;
    padding-top: 25px;
    border-top: 1px solid rgba(27, 32, 43, .13);
}

.contact-note-dot {
    flex: 0 0 9px;
    width: 9px;
    height: 9px;
    margin-top: 7px;
    border-radius: 50%;
    background: #69aa4c;
}

.contact-note p {
    color: #66717a;
    font-size: .84rem;
}

/* FORM CARD */

.contact-form-card {
    padding: 46px;
    border-radius: 28px;
    background: #ffffff;
    border: 1px solid rgba(27, 32, 43, .06);
    box-shadow: 0 35px 80px rgba(27, 32, 43, .14);
}

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

.contact-form-heading > span {
    display: block;
    margin-bottom: 9px;
    color: #69aa4c;
    text-transform: uppercase;
    letter-spacing: .13em;
    font-size: .72rem;
    font-weight: 900;
}

.contact-form-heading h3 {
    color: #1b202b;
    font-size: 1.85rem;
    line-height: 1.12;
    letter-spacing: -.035em;
}

.contact-form-heading p {
    margin-top: 10px;
    color: #68717d;
    font-size: .92rem;
}

/* FORM */

.contact-form {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #1b202b;
    font-size: .81rem;
    font-weight: 800;
}

.form-group label span {
    color: #69aa4c;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    border: 1px solid #dce2e5;
    border-radius: 12px;
    background: #f9fafb;
    color: #1b202b;
    font: inherit;
    font-size: .92rem;
    outline: 0;
    transition:
        border-color .2s ease,
        background .2s ease,
        box-shadow .2s ease;
    -webkit-appearance: none;
    appearance: none;
}

.form-group input,
.form-group select {
    height: 52px;
    padding: 0 15px;
}

.form-group textarea {
    min-height: 145px;
    padding: 15px;
    resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #a4abb0;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: rgba(129, 195, 98, .90);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(129, 195, 98, .11);
}

.form-group input.is-invalid,
.form-group select.is-invalid,
.form-group textarea.is-invalid {
    border-color: #d96969;
    background: #fffafa;
}

.field-error {
    margin-top: 6px;
    color: #bd4f4f;
    font-size: .76rem;
    font-weight: 600;
}

.form-footer {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    align-items: center;
    padding-top: 4px;
}

.form-footer > p {
    max-width: 340px;
    color: #8a9298;
    font-size: .72rem;
    line-height: 1.5;
}

.contact-submit {
    min-width: 190px;
    border: 0;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.contact-submit:disabled {
    cursor: wait;
    opacity: .72;
    transform: none;
}

.submit-arrow {
    margin-left: 8px;
    transition: transform .2s ease;
}

.contact-submit:hover .submit-arrow {
    transform: translateX(4px);
}

/* ALERTS */

.form-alert {
    display: flex;
    gap: 13px;
    align-items: flex-start;
    margin-bottom: 28px;
    padding: 16px;
    border-radius: 12px;
}

.form-alert-icon {
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: .8rem;
    font-weight: 900;
}

.form-alert strong {
    display: block;
    font-size: .85rem;
}

.form-alert p {
    margin-top: 2px;
    font-size: .79rem;
}

.form-alert-success {
    background: #f1f8ed;
    border: 1px solid #d3e8c8;
    color: #436b34;
}

.form-alert-success .form-alert-icon {
    background: #81c362;
    color: #1b202b;
}

.form-alert-error {
    background: #fff4f4;
    border: 1px solid #f0d3d3;
    color: #994848;
}

.form-alert-error .form-alert-icon {
    background: #d96969;
    color: #ffffff;
}

/* HONEYPOT */

.mdl-hp-field {
    position: absolute !important;
    left: -10000px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* TABLET */

@media (max-width: 980px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 55px;
    }

    .contact-intro {
        position: static;
    }

    .contact-intro h2 {
        max-width: 720px;
    }

    .contact-description {
        max-width: 680px;
    }

    .contact-direct {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        max-width: 650px;
    }
}

/* MOBILE */

@media (max-width: 640px) {
    .contact-section {
        padding: 80px 0;
    }

    .contact-grid {
        gap: 42px;
    }

    .contact-intro h2 {
        font-size: 2.7rem;
    }

    .contact-direct {
        display: flex;
    }

    .contact-form-card {
        padding: 28px 22px;
        border-radius: 22px;
    }

    .contact-form-heading h3 {
        font-size: 1.6rem;
    }

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

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

    .form-footer > p {
        max-width: none;
    }

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


/* =========================================================
   MDL_CONTACT_DESKTOP_REFINEMENT_V2

   1. Reduce ligeramente el peso visual del título principal.
   2. Genera más separación antes de correo y WhatsApp.
   ========================================================= */

@media (min-width: 981px) {

    .contact-intro h2 {
        font-size: clamp(
            2.35rem,
            4.05vw,
            3.7rem
        );
        line-height: 1.045;
    }

    .contact-direct {
        margin-top: 60px;
    }

}
