/* ==========================================================
   MILSEC · SECCIÓN DE CONTACTO
   Archivo: /components/contact/contact.css
========================================================== */

/* ==========================================================
   VARIABLES LOCALES
========================================================== */

.contact-section {
    --contact-primary: #118b8b;
    --contact-primary-dark: #0b6f70;
    --contact-primary-soft: #e7f7f6;
    --contact-secondary: #162a2e;
    --contact-text: #52636b;
    --contact-muted: #73838a;
    --contact-border: rgba(15, 23, 42, 0.12);
    --contact-danger: #c93838;
    --contact-danger-soft: #fff0f0;
    --contact-success: #16835f;
    --contact-success-soft: #eaf8f2;
    --contact-warning: #a86500;
    --contact-warning-soft: #fff7e6;
    --contact-white: #ffffff;
    --contact-background: #f5fbfa;
    --contact-shadow:
        0 24px 65px rgba(15, 23, 42, 0.11);
    --contact-shadow-hover:
        0 30px 80px rgba(15, 23, 42, 0.15);

    position: relative;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 10% 5%,
            rgba(17, 139, 139, 0.12),
            transparent 34%
        ),
        radial-gradient(
            circle at 92% 92%,
            rgba(22, 42, 46, 0.08),
            transparent 32%
        ),
        linear-gradient(
            180deg,
            #ffffff 0%,
            var(--contact-background) 100%
        );
}

.contact-section::before,
.contact-section::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.contact-section::before {
    width: 420px;
    height: 420px;
    top: -260px;
    right: -180px;
    background: rgba(17, 139, 139, 0.08);
}

.contact-section::after {
    width: 320px;
    height: 320px;
    left: -190px;
    bottom: -180px;
    background: rgba(22, 42, 46, 0.045);
}

/* ==========================================================
   ENCABEZADO
========================================================== */

.contact-section__header {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin-right: auto;
    margin-bottom: 56px;
    margin-left: auto;
    text-align: center;
}

.contact-section__header .section-description {
    max-width: 680px;
    margin-right: auto;
    margin-left: auto;
}

/* ==========================================================
   DISTRIBUCIÓN PRINCIPAL
========================================================== */

.contact-layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns:
        minmax(0, 1.15fr)
        minmax(330px, 0.85fr);
    align-items: start;
    gap: 42px;
}

/* ==========================================================
   TARJETA DEL FORMULARIO
========================================================== */

.contact-form-card {
    position: relative;
    min-width: 0;
    padding: 42px;
    overflow: hidden;
    border: 1px solid rgba(17, 139, 139, 0.12);
    border-radius: 30px;
    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.99),
            rgba(255, 255, 255, 0.96)
        );
    box-shadow: var(--contact-shadow);
}

.contact-form-card::before {
    content: "";
    position: absolute;
    width: 280px;
    height: 280px;
    top: -180px;
    right: -120px;
    border-radius: 50%;
    background:
        radial-gradient(
            circle,
            rgba(17, 139, 139, 0.12),
            transparent 68%
        );
    pointer-events: none;
}

.contact-form-card__heading {
    position: relative;
    z-index: 1;
    max-width: 680px;
    margin-bottom: 34px;
}

.contact-form-card__label {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    margin-bottom: 12px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--contact-primary-soft);
    color: var(--contact-primary-dark);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.contact-form-card__heading h3 {
    margin: 0 0 12px;
    color: var(--contact-secondary);
    font-size: clamp(1.55rem, 2.5vw, 2.15rem);
    font-weight: 750;
    line-height: 1.2;
}

.contact-form-card__heading p {
    max-width: 630px;
    margin: 0;
    color: var(--contact-text);
    font-size: 0.98rem;
    line-height: 1.75;
}

/* ==========================================================
   FORMULARIO
========================================================== */

.contact-form {
    position: relative;
    z-index: 1;
}

.contact-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.contact-field {
    min-width: 0;
}

.contact-field--full {
    grid-column: 1 / -1;
}

.contact-field label,
.contact-field__label-row label {
    display: inline-block;
    margin-bottom: 9px;
    color: var(--contact-secondary);
    font-size: 0.9rem;
    font-weight: 650;
    line-height: 1.4;
}

.contact-field label span,
.contact-field__label-row label span {
    color: var(--contact-danger);
}

.contact-field__label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.contact-field__counter {
    flex: 0 0 auto;
    margin-bottom: 9px;
    color: var(--contact-muted);
    font-size: 0.78rem;
    font-weight: 600;
}

.contact-field input,
.contact-field textarea {
    width: 100%;
    border: 1px solid var(--contact-border);
    border-radius: 14px;
    outline: none;
    background: #ffffff;
    color: var(--contact-secondary);
    font: inherit;
    font-size: 0.95rem;
    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        background-color 0.25s ease,
        transform 0.25s ease;
}

.contact-field input {
    min-height: 52px;
    padding: 0 16px;
}

.contact-field textarea {
    min-height: 150px;
    padding: 15px 16px;
    line-height: 1.65;
    resize: vertical;
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
    color: #9aa7ad;
}

.contact-field input:hover,
.contact-field textarea:hover {
    border-color: rgba(17, 139, 139, 0.35);
}

.contact-field input:focus,
.contact-field textarea:focus {
    border-color: var(--contact-primary);
    background: #ffffff;
    box-shadow:
        0 0 0 4px rgba(17, 139, 139, 0.12);
}

.contact-field input:disabled,
.contact-field textarea:disabled {
    cursor: not-allowed;
    background: #f1f5f5;
    color: #8c989d;
}

/* ==========================================================
   AUTOCOMPLETADO DEL NAVEGADOR
========================================================== */

.contact-field input:-webkit-autofill,
.contact-field input:-webkit-autofill:hover,
.contact-field input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--contact-secondary);
    box-shadow: 0 0 0 1000px #ffffff inset;
    transition: background-color 9999s ease-out;
}

/* ==========================================================
   VALIDACIONES
========================================================== */

.contact-field.is-invalid input,
.contact-field.is-invalid textarea,
.contact-field input[aria-invalid="true"],
.contact-field textarea[aria-invalid="true"] {
    border-color: var(--contact-danger);
    background: var(--contact-danger-soft);
    box-shadow: 0 0 0 4px rgba(201, 56, 56, 0.08);
}

.contact-field.is-valid input,
.contact-field.is-valid textarea,
.contact-field input[aria-invalid="false"]:not(:placeholder-shown),
.contact-field textarea[aria-invalid="false"]:not(:placeholder-shown) {
    border-color: rgba(22, 131, 95, 0.5);
}

.contact-field__error {
    display: block;
    min-height: 18px;
    margin-top: 7px;
    color: var(--contact-danger);
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.45;
}

.contact-field__error:empty {
    min-height: 0;
    margin-top: 0;
}

.contact-field__error--consent {
    margin-top: 8px;
}

/* ==========================================================
   HONEYPOT
========================================================== */

.contact-form__honeypot {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* ==========================================================
   CONSENTIMIENTO
========================================================== */

.contact-consent {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    align-items: start;
    gap: 12px;
    margin-top: 24px;
    padding: 16px 18px;
    border: 1px solid rgba(17, 139, 139, 0.13);
    border-radius: 14px;
    background: rgba(231, 247, 246, 0.56);
}

.contact-consent input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    accent-color: var(--contact-primary);
    cursor: pointer;
}

.contact-consent label {
    margin: 0;
    color: var(--contact-text);
    font-size: 0.82rem;
    line-height: 1.6;
    cursor: pointer;
}

.contact-consent.is-invalid {
    border-color: rgba(201, 56, 56, 0.38);
    background: var(--contact-danger-soft);
}

/* ==========================================================
   ESTADO DEL FORMULARIO
========================================================== */

.contact-status {
    margin-top: 20px;
    padding: 14px 16px;
    border: 1px solid transparent;
    border-radius: 13px;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.55;
}

.contact-status[hidden] {
    display: none;
}

.contact-status.is-info {
    border-color: rgba(17, 139, 139, 0.2);
    background: var(--contact-primary-soft);
    color: var(--contact-primary-dark);
}

.contact-status.is-success {
    border-color: rgba(22, 131, 95, 0.2);
    background: var(--contact-success-soft);
    color: var(--contact-success);
}

.contact-status.is-error {
    border-color: rgba(201, 56, 56, 0.2);
    background: var(--contact-danger-soft);
    color: var(--contact-danger);
}

.contact-status.is-warning {
    border-color: rgba(168, 101, 0, 0.2);
    background: var(--contact-warning-soft);
    color: var(--contact-warning);
}

/* ==========================================================
   BOTÓN DE ENVÍO
========================================================== */

.contact-submit {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    width: 100%;
    min-height: 56px;
    margin-top: 22px;
    padding: 14px 24px;
    overflow: hidden;
    border: 0;
    border-radius: 15px;
    background:
        linear-gradient(
            135deg,
            var(--contact-primary),
            var(--contact-primary-dark)
        );
    box-shadow:
        0 14px 30px rgba(17, 139, 139, 0.24);
    color: var(--contact-white);
    font: inherit;
    font-size: 0.96rem;
    font-weight: 750;
    cursor: pointer;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        opacity 0.25s ease;
}

.contact-submit::before {
    content: "";
    position: absolute;
    width: 70px;
    height: 180%;
    top: -40%;
    left: -100px;
    background: rgba(255, 255, 255, 0.18);
    transform: rotate(18deg);
    transition: left 0.55s ease;
}

.contact-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow:
        0 18px 38px rgba(17, 139, 139, 0.32);
}

.contact-submit:hover:not(:disabled)::before {
    left: calc(100% + 40px);
}

.contact-submit:active:not(:disabled) {
    transform: translateY(0);
}

.contact-submit:focus-visible {
    outline: 3px solid rgba(17, 139, 139, 0.28);
    outline-offset: 4px;
}

.contact-submit:disabled {
    cursor: wait;
    opacity: 0.72;
    transform: none;
}

.contact-submit__text {
    position: relative;
    z-index: 1;
}

.contact-submit__loader {
    position: relative;
    z-index: 1;
    display: none;
    width: 19px;
    height: 19px;
    border: 2px solid rgba(255, 255, 255, 0.38);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: contactSpin 0.8s linear infinite;
}

.contact-submit.is-loading .contact-submit__loader {
    display: inline-block;
}

@keyframes contactSpin {
    to {
        transform: rotate(360deg);
    }
}

/* ==========================================================
   RESULTADO DEL ENVÍO
========================================================== */

.contact-result {
    position: relative;
    z-index: 1;
    padding: 18px 4px 4px;
    text-align: center;
    animation: contactResultReveal 0.45s ease both;
}

.contact-result[hidden] {
    display: none;
}

.contact-result__icon {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: var(--contact-success-soft);
    color: var(--contact-success);
    font-size: 2rem;
    font-weight: 800;
    box-shadow:
        0 0 0 10px rgba(22, 131, 95, 0.07);
}

.contact-result.is-warning .contact-result__icon {
    background: var(--contact-warning-soft);
    color: var(--contact-warning);
    box-shadow:
        0 0 0 10px rgba(168, 101, 0, 0.07);
}

.contact-result.is-error .contact-result__icon {
    background: var(--contact-danger-soft);
    color: var(--contact-danger);
    box-shadow:
        0 0 0 10px rgba(201, 56, 56, 0.07);
}

.contact-result__eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--contact-primary-dark);
    font-size: 0.77rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.contact-result h3 {
    margin: 0 0 12px;
    color: var(--contact-secondary);
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    line-height: 1.25;
}

.contact-result > p {
    max-width: 610px;
    margin: 0 auto 24px;
    color: var(--contact-text);
    font-size: 0.95rem;
    line-height: 1.7;
}

@keyframes contactResultReveal {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================
   TICKET
========================================================== */

.contact-ticket {
    max-width: 500px;
    margin: 0 auto 24px;
    padding: 18px;
    border: 1px dashed rgba(17, 139, 139, 0.35);
    border-radius: 15px;
    background:
        linear-gradient(
            135deg,
            rgba(231, 247, 246, 0.85),
            rgba(255, 255, 255, 0.92)
        );
}

.contact-ticket span {
    display: block;
    margin-bottom: 7px;
    color: var(--contact-muted);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.contact-ticket strong {
    display: block;
    overflow-wrap: anywhere;
    color: var(--contact-primary-dark);
    font-size: clamp(1rem, 3vw, 1.35rem);
    letter-spacing: 0.04em;
}

/* ==========================================================
   PASOS DEL RESULTADO
========================================================== */

.contact-result__steps {
    display: grid;
    gap: 10px;
    max-width: 520px;
    margin: 0 auto 26px;
    padding: 0;
    list-style: none;
    text-align: left;
}

.contact-result__steps li {
    position: relative;
    padding: 12px 14px 12px 42px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 12px;
    background: #ffffff;
    color: var(--contact-text);
    font-size: 0.85rem;
    font-weight: 600;
}

.contact-result__steps li::before {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 14px;
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--contact-success-soft);
    color: var(--contact-success);
    font-size: 0.72rem;
    font-weight: 900;
    transform: translateY(-50%);
}

.contact-result__steps li.is-failed::before {
    content: "!";
    background: var(--contact-warning-soft);
    color: var(--contact-warning);
}

.contact-result__steps li.is-pending::before {
    content: "•";
    background: #eef2f3;
    color: #718087;
}

/* ==========================================================
   BOTÓN DE WHATSAPP
========================================================== */

.contact-whatsapp-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 54px;
    padding: 13px 22px;
    border-radius: 14px;
    background: #25d366;
    box-shadow:
        0 14px 30px rgba(37, 211, 102, 0.2);
    color: #073f20;
    text-align: center;
    text-decoration: none;
    font-size: 0.93rem;
    font-weight: 800;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background-color 0.25s ease;
}

.contact-whatsapp-button::before {
    content: "";
    width: 19px;
    height: 19px;
    margin-right: 10px;
    background:
        no-repeat center / contain
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath fill='%23073f20' d='M16.04 3A12.77 12.77 0 0 0 5.1 22.38L3.4 28.6l6.37-1.67A12.79 12.79 0 1 0 16.04 3Zm0 23.3a10.55 10.55 0 0 1-5.37-1.47l-.38-.23-3.78.99 1.01-3.68-.25-.38A10.55 10.55 0 1 1 16.04 26.3Zm5.79-7.89c-.32-.16-1.88-.93-2.17-1.03-.29-.11-.5-.16-.71.16-.21.32-.82 1.03-1 1.24-.18.21-.37.24-.69.08-.32-.16-1.34-.49-2.56-1.57-.95-.85-1.59-1.9-1.78-2.22-.18-.32-.02-.49.14-.65.14-.14.32-.37.47-.55.16-.18.21-.32.32-.53.11-.21.05-.4-.03-.55-.08-.16-.71-1.72-.98-2.36-.26-.62-.52-.54-.71-.55h-.61c-.21 0-.55.08-.84.4-.29.32-1.11 1.08-1.11 2.64 0 1.56 1.14 3.07 1.3 3.28.16.21 2.24 3.42 5.43 4.8.76.33 1.35.52 1.81.67.76.24 1.45.21 2 .13.61-.09 1.88-.77 2.14-1.51.26-.74.26-1.38.18-1.51-.08-.13-.29-.21-.61-.37Z'/%3E%3C/svg%3E");
}

.contact-whatsapp-button:hover {
    background: #20c65d;
    box-shadow:
        0 18px 38px rgba(37, 211, 102, 0.28);
    color: #063719;
    transform: translateY(-2px);
}

.contact-whatsapp-button:focus-visible {
    outline: 3px solid rgba(37, 211, 102, 0.32);
    outline-offset: 4px;
}

/* ==========================================================
   NUEVA SOLICITUD
========================================================== */

.contact-new-request {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    margin-top: 15px;
    padding: 8px 18px;
    border: 0;
    background: transparent;
    color: var(--contact-primary-dark);
    font: inherit;
    font-size: 0.84rem;
    font-weight: 750;
    text-decoration: underline;
    text-underline-offset: 4px;
    cursor: pointer;
}

.contact-new-request:hover {
    color: var(--contact-secondary);
}

.contact-new-request:focus-visible {
    outline: 3px solid rgba(17, 139, 139, 0.22);
    outline-offset: 3px;
    border-radius: 8px;
}

/* ==========================================================
   COLUMNA LATERAL
========================================================== */

.contact-aside {
    display: grid;
    gap: 24px;
    min-width: 0;
}

.contact-aside__image {
    position: relative;
    min-height: 430px;
    margin: 0;
    overflow: hidden;
    border-radius: 28px;
    background: #dbeceb;
    box-shadow: var(--contact-shadow);
}

.contact-aside__image::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            180deg,
            rgba(15, 23, 42, 0) 48%,
            rgba(15, 23, 42, 0.18) 100%
        );
    pointer-events: none;
}

.contact-aside__image img {
    width: 100%;
    height: 100%;
    min-height: 430px;
    display: block;
    object-fit: cover;
    object-position: center;
    transition:
        transform 0.65s ease,
        filter 0.65s ease;
}

.contact-aside__image:hover img {
    transform: scale(1.035);
}

/* ==========================================================
   CONTACTO DIRECTO
========================================================== */

.contact-direct {
    padding: 28px;
    border: 1px solid rgba(17, 139, 139, 0.14);
    border-radius: 24px;
    background:
        linear-gradient(
            145deg,
            #123f42,
            #102c30
        );
    box-shadow: var(--contact-shadow);
    color: #ffffff;
}

.contact-direct__label {
    display: inline-block;
    margin-bottom: 10px;
    color: #8ce1dd;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.contact-direct h3 {
    margin: 0 0 22px;
    color: #ffffff;
    font-size: 1.25rem;
    line-height: 1.35;
}

.contact-direct__list {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.contact-direct__list li {
    padding: 13px 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.055);
}

.contact-direct__list span {
    display: block;
    margin-bottom: 4px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.contact-direct__list a {
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.contact-direct__list a:hover {
    color: #8ce1dd;
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* ==========================================================
   TARJETA DEL EQUIPO
========================================================== */

.contact-team-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(17, 139, 139, 0.13);
    border-radius: 26px;
    background: #ffffff;
    box-shadow: var(--contact-shadow);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.contact-team-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--contact-shadow-hover);
}

.contact-team-card > img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center;
}

.contact-team-card__content {
    padding: 26px;
}

.contact-team-card__content > span {
    display: inline-block;
    margin-bottom: 9px;
    color: var(--contact-primary);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.contact-team-card__content h3 {
    margin: 0 0 10px;
    color: var(--contact-secondary);
    font-size: 1.2rem;
    line-height: 1.35;
}

.contact-team-card__content p {
    margin: 0 0 20px;
    color: var(--contact-text);
    font-size: 0.88rem;
    line-height: 1.7;
}

.contact-team-card__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 11px 18px;
    border: 1px solid rgba(17, 139, 139, 0.25);
    border-radius: 12px;
    background: var(--contact-primary-soft);
    color: var(--contact-primary-dark);
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 800;
    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease;
}

.contact-team-card__button:hover {
    background: var(--contact-primary);
    color: #ffffff;
    transform: translateY(-2px);
}

.contact-team-card__button:focus-visible {
    outline: 3px solid rgba(17, 139, 139, 0.22);
    outline-offset: 4px;
}

/* ==========================================================
   ESTADOS GENERALES
========================================================== */

.contact-form-card.is-processing {
    pointer-events: none;
}

.contact-form-card.is-processing::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 8;
    background: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(1px);
}

.contact-form-card.is-processing .contact-submit {
    pointer-events: auto;
}

/* ==========================================================
   TABLET GRANDE
========================================================== */

@media (max-width: 1100px) {
    .contact-layout {
        grid-template-columns:
            minmax(0, 1.08fr)
            minmax(300px, 0.92fr);
        gap: 30px;
    }

    .contact-form-card {
        padding: 34px;
    }

    .contact-aside__image,
    .contact-aside__image img {
        min-height: 390px;
    }
}

/* ==========================================================
   TABLET VERTICAL
========================================================== */

@media (max-width: 900px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .contact-aside {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .contact-aside__image {
        grid-column: 1 / -1;
        min-height: auto;
        aspect-ratio: 16 / 8;
    }

    .contact-aside__image img {
        min-height: 0;
    }

    .contact-direct,
    .contact-team-card {
        height: 100%;
    }
}

/* ==========================================================
   MÓVIL HORIZONTAL Y TABLET PEQUEÑA
========================================================== */

@media (max-width: 700px) {
    .contact-section__header {
        margin-bottom: 38px;
    }

    .contact-form-card {
        padding: 28px 22px;
        border-radius: 24px;
    }

    .contact-form-card__heading {
        margin-bottom: 26px;
    }

    .contact-form__grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .contact-field--full {
        grid-column: auto;
    }

    .contact-aside {
        grid-template-columns: 1fr;
    }

    .contact-aside__image {
        grid-column: auto;
        aspect-ratio: 4 / 3;
        border-radius: 23px;
    }

    .contact-direct,
    .contact-team-card {
        border-radius: 22px;
    }
}

/* ==========================================================
   MÓVIL
========================================================== */

@media (max-width: 520px) {
    .contact-section::before {
        width: 300px;
        height: 300px;
        top: -200px;
        right: -180px;
    }

    .contact-form-card {
        padding: 24px 17px;
        border-radius: 20px;
    }

    .contact-form-card__heading h3 {
        font-size: 1.48rem;
    }

    .contact-form-card__heading p {
        font-size: 0.9rem;
    }

    .contact-form-card__label {
        font-size: 0.7rem;
    }

    .contact-field input {
        min-height: 50px;
        padding: 0 14px;
    }

    .contact-field textarea {
        padding: 14px;
    }

    .contact-consent {
        grid-template-columns: 19px minmax(0, 1fr);
        padding: 14px;
    }

    .contact-submit {
        min-height: 53px;
        padding: 12px 18px;
    }

    .contact-result {
        padding-top: 10px;
    }

    .contact-result__icon {
        width: 62px;
        height: 62px;
        font-size: 1.7rem;
    }

    .contact-ticket {
        padding: 15px 12px;
    }

    .contact-result__steps li {
        padding-right: 10px;
        font-size: 0.8rem;
    }

    .contact-direct,
    .contact-team-card__content {
        padding: 22px 18px;
    }

    .contact-team-card > img {
        height: 190px;
    }
}

/* ==========================================================
   PANTALLAS MUY PEQUEÑAS
========================================================== */

@media (max-width: 360px) {
    .contact-form-card {
        padding-right: 14px;
        padding-left: 14px;
    }

    .contact-field__label-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 0;
    }

    .contact-field__counter {
        margin-top: -5px;
    }

    .contact-direct__list a {
        font-size: 0.82rem;
    }
}

/* ==========================================================
   ACCESIBILIDAD Y MOVIMIENTO REDUCIDO
========================================================== */

@media (prefers-reduced-motion: reduce) {
    .contact-field input,
    .contact-field textarea,
    .contact-submit,
    .contact-submit::before,
    .contact-submit__loader,
    .contact-whatsapp-button,
    .contact-new-request,
    .contact-aside__image img,
    .contact-team-card,
    .contact-team-card__button,
    .contact-result {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

/* ==========================================================
   MODO DE ALTO CONTRASTE
========================================================== */

@media (forced-colors: active) {
    .contact-form-card,
    .contact-field input,
    .contact-field textarea,
    .contact-consent,
    .contact-direct,
    .contact-team-card,
    .contact-submit,
    .contact-whatsapp-button {
        border: 1px solid CanvasText;
    }

    .contact-submit,
    .contact-whatsapp-button {
        forced-color-adjust: none;
    }
}

/* ==========================================================
   IMPRESIÓN
========================================================== */

@media print {
    .contact-section {
        background: #ffffff;
    }

    .contact-submit,
    .contact-whatsapp-button,
    .contact-new-request,
    .contact-team-card__button {
        display: none !important;
    }

    .contact-form-card,
    .contact-direct,
    .contact-team-card,
    .contact-aside__image {
        box-shadow: none;
    }
}