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

.contacto-hero-light {
    position: absolute;

    border-radius: 50%;

    filter: blur(90px);

    pointer-events: none;
}

.contacto-hero-light-one {
    width: 520px;
    height: 520px;

    right: -120px;
    top: -300px;

    background: rgba(70, 180, 255, .17);
}

.contacto-hero-light-two {
    width: 430px;
    height: 430px;

    left: -180px;
    bottom: -260px;

    background: rgba(234, 179, 8, .12);
}


/* =========================================================
   CHIP
========================================================= */

.contacto-chip {
    display: inline-flex;

    align-items: center;

    gap: .6rem;

    padding: .5rem .9rem;

    border: 1px solid rgba(255,255,255,.18);
    border-radius: 999px;

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

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

    font-size: .78rem;
    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: .08em;
}

.contacto-chip span {
    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: #EAB308;
}


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

.contacto-form-card {
    padding: 2rem;

    border: 1px solid #dce8ef;
    border-radius: 30px;

    background: #ffffff;

    box-shadow:
        0 24px 60px rgba(15,55,85,.08);
}

.contacto-form-heading {
    margin-bottom: 2rem;
}

.contacto-form-heading > span {
    color: #EAB308;

    font-size: .75rem;
    font-weight: 900;

    text-transform: uppercase;

    letter-spacing: .12em;
}

.contacto-form-heading h2 {
    margin-top: .45rem;

    color: #123956;

    font-size: clamp(1.8rem, 3vw, 2.5rem);

    font-weight: 900;

    letter-spacing: -.03em;
}

.contacto-form-heading p {
    margin-top: .7rem;

    max-width: 620px;

    color: #72899a;

    line-height: 1.7;
}


/* =========================================================
   LABELS
========================================================= */

.contacto-label {
    display: flex;

    align-items: center;

    gap: .4rem;

    margin-bottom: .55rem;

    color: #17496f;

    font-size: .75rem;
    font-weight: 900;

    text-transform: uppercase;

    letter-spacing: .07em;
}

.contacto-label span {
    color: #96a7b3;

    font-size: .65rem;
    font-weight: 700;
}


/* =========================================================
   INPUT
========================================================= */

.contacto-input-wrap {
    height: 54px;

    display: flex;

    align-items: center;

    gap: .75rem;

    padding: 0 1rem;

    border: 1px solid #dae6ee;
    border-radius: 16px;

    background: #f9fbfd;

    color: #195fa8;

    transition:
        border .2s ease,
        box-shadow .2s ease,
        transform .2s ease;
}

.contacto-input-wrap:focus-within {
    transform: translateY(-1px);

    border-color: rgba(25,95,168,.52);

    background: #ffffff;

    box-shadow:
        0 0 0 4px rgba(25,95,168,.08);
}

.contacto-input-wrap input {
    width: 100%;
    height: 100%;

    outline: none;
    border: 0;

    background: transparent;

    color: #173c58;

    font-size: .92rem;
}


/* =========================================================
   SELECT
========================================================= */

.contacto-select-wrap {
    position: relative;

    height: 54px;

    display: flex;

    align-items: center;

    border: 1px solid #dae6ee;
    border-radius: 16px;

    background: #f9fbfd;
}

.contacto-select-wrap select {
    width: 100%;
    height: 100%;

    padding: 0 3rem 0 1rem;

    appearance: none;

    outline: none;
    border: 0;

    background: transparent;

    color: #173c58;
}

.contacto-select-wrap svg {
    position: absolute;

    right: 1rem;

    pointer-events: none;

    color: #195fa8;
}


/* =========================================================
   TEXTAREA
========================================================= */

.contacto-textarea {
    width: 100%;

    min-height: 180px;

    resize: vertical;

    padding: 1rem;

    border: 1px solid #dae6ee;
    border-radius: 18px;

    outline: none;

    background: #f9fbfd;

    color: #173c58;

    line-height: 1.6;

    transition:
        border .2s ease,
        box-shadow .2s ease;
}

.contacto-textarea:focus {
    border-color: rgba(25,95,168,.52);

    background: #ffffff;

    box-shadow:
        0 0 0 4px rgba(25,95,168,.08);
}

.contacto-textarea-bottom {
    min-height: 24px;

    margin-top: .35rem;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 1rem;
}

.contacto-textarea-bottom span {
    color: #93a5b3;

    font-size: .7rem;
}


/* =========================================================
   ERROR
========================================================= */

.contacto-error {
    min-height: 18px;

    margin-top: .3rem;

    color: #c43b3b;

    font-size: .72rem;
}


/* =========================================================
   SUBMIT
========================================================= */

.contacto-submit {
    width: 100%;

    min-height: 56px;

    margin-top: 1rem;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: .7rem;

    border-radius: 17px;

    background: #0c4375;

    color: #ffffff;

    font-weight: 900;

    box-shadow:
        0 14px 30px rgba(12,67,117,.20);

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

.contacto-submit:hover:not(:disabled) {
    transform: translateY(-2px);

    background: #08385f;

    box-shadow:
        0 18px 36px rgba(12,67,117,.26);
}

.contacto-submit:disabled {
    opacity: .65;

    cursor: wait;
}


/* =========================================================
   PANEL DERECHO
========================================================= */

.contacto-side {
    padding: 2rem;

    display: flex;

    flex-direction: column;

    gap: 1.2rem;

    border-radius: 30px;

    background: #071f36;

    box-shadow:
        0 30px 70px rgba(7,31,54,.20);
}

.contacto-side-kicker {
    color: #EAB308;

    font-size: .75rem;
    font-weight: 900;

    text-transform: uppercase;

    letter-spacing: .12em;
}

.contacto-side h2 {
    margin-top: .5rem;

    color: #ffffff;

    font-size: 2rem;

    line-height: 1.15;

    font-weight: 900;

    letter-spacing: -.03em;
}

.contacto-side > div:first-child p {
    margin-top: .8rem;

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

    line-height: 1.7;
}


/* =========================================================
   OPCIONES
========================================================= */

.contacto-option {
    display: grid;

    grid-template-columns: 50px 1fr auto;

    gap: 1rem;

    align-items: center;

    padding: 1rem;

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

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

    color: #ffffff;

    transition:
        transform .2s ease,
        background .2s ease,
        border .2s ease;
}

.contacto-option:hover {
    transform: translateY(-3px);

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

    border-color: rgba(255,255,255,.18);
}

.contacto-option-icon {
    width: 48px;
    height: 48px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 15px;

    background: rgba(234,179,8,.14);

    color: #EAB308;
}

.contacto-whatsapp
.contacto-option-icon {
    background: rgba(37,211,102,.14);

    color: #25d366;
}

.contacto-option span {
    color: rgba(255,255,255,.52);

    font-size: .72rem;
}

.contacto-option strong {
    display: block;

    margin-top: .2rem;

    color: #ffffff;

    font-size: .9rem;
}

.contacto-option-arrow {
    color: #EAB308 !important;

    font-size: 1.2rem !important;
}


/* =========================================================
   NOTA
========================================================= */

.contacto-note {
    margin-top: auto;

    display: grid;

    grid-template-columns: 42px 1fr;

    gap: .8rem;

    align-items: center;

    padding: 1rem;

    border-radius: 17px;

    background: rgba(234,179,8,.10);

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

    font-size: .78rem;

    line-height: 1.55;
}

.contacto-note > div {
    color: #EAB308;
}


/* =========================================================
   HONEYPOT
========================================================= */

.contacto-honeypot {
    position: absolute !important;

    left: -99999px !important;

    width: 1px !important;
    height: 1px !important;

    overflow: hidden !important;
}


/* =========================================================
   MODAL
========================================================= */

.contacto-modal {
    position: fixed;

    inset: 0;

    z-index: 300;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 1rem;
}

.contacto-modal.hidden {
    display: none !important;
}

.contacto-modal-overlay {
    position: absolute;

    inset: 0;

    background: rgba(3,22,38,.75);

    backdrop-filter: blur(10px);
}

.contacto-modal-card {
    position: relative;

    z-index: 1;

    width: min(100%, 470px);

    padding: 2rem;

    border-radius: 28px;

    background: #ffffff;

    text-align: center;

    box-shadow:
        0 40px 100px rgba(0,0,0,.32);
}

.contacto-modal-close {
    position: absolute;

    right: 1rem;
    top: 1rem;

    width: 38px;
    height: 38px;

    border-radius: 50%;

    background: #f1f5f8;

    color: #557084;
}

.contacto-modal-icon {
    width: 70px;
    height: 70px;

    margin: 0 auto 1.2rem;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 22px;

    background: #EAB308;

    color: #082f51;

    font-size: 2rem;
    font-weight: 900;
}

.contacto-modal-icon.is-error {
    background: #fee2e2;

    color: #b42323;
}

.contacto-modal-card h3 {
    color: #123956;

    font-size: 1.5rem;

    font-weight: 900;
}

.contacto-modal-card > p {
    margin-top: .7rem;

    color: #708796;

    line-height: 1.65;
}

.contacto-modal-actions {
    margin-top: 1.5rem;

    display: grid;

    gap: .7rem;
}

.contacto-modal-whatsapp,
.contacto-modal-secondary {
    min-height: 50px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 15px;

    font-size: .86rem;

    font-weight: 900;
}

.contacto-modal-whatsapp {
    background: #25d366;

    color: #08351a;
}

.contacto-modal-secondary {
    background: #eef3f6;

    color: #34536a;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 767px) {

    .contacto-form-card,
    .contacto-side {
        padding: 1.3rem;

        border-radius: 24px;
    }

    .contacto-side h2 {
        font-size: 1.65rem;
    }

}

/* =========================================================
   REFINAMIENTOS VISUALES - CONTACTO
   Mantiene los estilos existentes y mejora la legibilidad.
========================================================= */
.contacto-form-card,
.contacto-side { border-radius: 24px; }

.contacto-form-card {
    border-color: #e2e9ef;
    box-shadow: 0 18px 52px rgba(7, 31, 54, .065);
}

.contacto-form-heading > span,
.contacto-side-kicker { letter-spacing: .1em; }

.contacto-form-heading h2,
.contacto-side h2 { font-weight: 800; }

.contacto-label { font-weight: 750; letter-spacing: .035em; }

.contacto-input-wrap,
.contacto-select-wrap,
.contacto-textarea {
    border-radius: 12px;
    background: #fff;
}

.contacto-input-wrap:focus-within,
.contacto-select-wrap:focus-within,
.contacto-textarea:focus {
    border-color: #0c4375;
    box-shadow: 0 0 0 3px rgba(12, 67, 117, .10);
}

.contacto-submit { border-radius: 12px; font-weight: 800; }

.contacto-option {
    border-radius: 14px;
    text-decoration: none;
    min-width: 0;
}

.contacto-option > div:nth-child(2) { min-width: 0; }
.contacto-option strong { line-height: 1.4; }

.contacto-option-icon-instagram {
    background: linear-gradient(135deg, #833ab4 0%, #c13584 38%, #e1306c 65%, #f77737 100%);
    color: #fff;
}

.contacto-instagram:hover,
.contacto-instagram:focus-visible {
    border-color: rgba(225, 48, 108, .65);
    background: rgba(225, 48, 108, .10);
}

.contacto-option:focus-visible,
.contacto-submit:focus-visible,
.contacto-modal-whatsapp:focus-visible {
    outline: 3px solid #eab308;
    outline-offset: 3px;
}

@media (max-width: 480px) {
    .contacto-option { grid-template-columns: 44px minmax(0, 1fr) auto; gap: .75rem; padding: .85rem; }
    .contacto-option-icon { width: 44px; height: 44px; }
    .contacto-option strong { font-size: .84rem; }
    .contacto-form-card, .contacto-side { padding: 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
    .contacto-option, .contacto-submit, .contacto-input-wrap { transition: none; }
}

/* Ocultar el acceso a WhatsApp cuando no hay enlace valido. */
.contacto-modal-whatsapp.hidden { display: none !important; }
