
/* =========================================================
   CONTACTO — AXON × KUDEA
   Estilos exclusivos de .contacto-page
   ========================================================= */

.contacto-page {
    --contacto-blue: var(--axon-blue, #0841A2);
    --contacto-green: var(--kudea-green, #4BA780);
    --contacto-ink: var(--ink, #172333);
    --contacto-muted: var(--muted, #697586);
    --contacto-border: var(--border, #e5eaf0);
    --contacto-surface-blue: var(--surface-blue, #f0f5fc);
    --contacto-surface-green: var(--surface-green, #f0f7f3);

    overflow: clip;
    color: var(--contacto-ink);
}

.contacto-page h1,
.contacto-page h2,
.contacto-page h3,
.contacto-page p {
    margin-top: 0;
}

.contacto-page h1,
.contacto-page h2,
.contacto-page h3 {
    color: var(--contacto-ink);
    letter-spacing: -0.045em;
}

.contacto-page p {
    color: var(--contacto-muted);
}

.contacto-page .eyebrow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    color: var(--contacto-blue);
    font-size: 0.75rem;
    font-weight: 750;
    letter-spacing: 0.12em;
}

.contacto-page .eyebrow span {
    color: var(--contacto-green);
}

.contacto-page .section-kicker {
    margin-bottom: 17px;
    color: var(--contacto-blue);
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.12em;
    line-height: 1.5;
}

.contacto-page .lead {
    max-width: 590px;
    font-size: clamp(1.03rem, 1.4vw, 1.17rem);
    line-height: 1.8;
}

.contacto-page a:focus-visible,
.contacto-page button:focus-visible,
.contacto-page input:focus-visible,
.contacto-page select:focus-visible,
.contacto-page textarea:focus-visible {
    outline: 3px solid var(--contacto-green);
    outline-offset: 3px;
}


/* ---------------------------------------------------------
   HERO Y COMPOSICIÓN
   --------------------------------------------------------- */

.contacto-hero {
    padding-block: clamp(64px, 8vw, 110px) clamp(80px, 10vw, 130px);
    background:
        radial-gradient(
            ellipse at 5% 10%,
            rgb(75 167 128 / 7%),
            transparent 35%
        ),
        #fff;
}

.contacto-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(430px, 1.15fr);
    align-items: start;
    gap: clamp(44px, 7vw, 100px);
}

.contacto-intro {
    position: sticky;
    top: 35px;
    padding-top: 15px;
}

.contacto-intro h1 {
    max-width: 650px;
    margin-bottom: 25px;
    font-size: clamp(2.7rem, 5vw, 4.65rem);
    font-weight: 680;
    line-height: 1.035;
    letter-spacing: -0.065em;
    text-wrap: balance;
}

.contacto-intro > .lead {
    margin-bottom: 28px;
}

.contacto-intro-note {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    max-width: 430px;
    margin-top: 32px;
}

.contacto-intro-note > span {
    flex: 0 0 3px;
    min-height: 43px;
    border-radius: 3px;
    background: var(--contacto-green);
}

.contacto-intro-note p {
    margin-bottom: 0;
    color: var(--contacto-ink);
    font-size: 0.92rem;
    line-height: 1.7;
}

.contacto-principles {
    display: grid;
    gap: 0;
    max-width: 520px;
    margin-top: 42px;
    border-top: 1px solid var(--contacto-border);
}

.contacto-principle {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 15px;
    padding-block: 20px;
    border-bottom: 1px solid var(--contacto-border);
}

.contacto-principle-number {
    padding-top: 2px;
    color: var(--contacto-green);
    font-size: 0.76rem;
    font-weight: 750;
}

.contacto-principle strong {
    display: block;
    margin-bottom: 5px;
    color: var(--contacto-ink);
    font-size: 0.94rem;
}

.contacto-principle p {
    margin-bottom: 0;
    font-size: 0.87rem;
    line-height: 1.7;
}


/* ---------------------------------------------------------
   PANEL DEL FORMULARIO
   --------------------------------------------------------- */

.contacto-form-panel {
    min-width: 0;
    padding: clamp(26px, 4vw, 46px);
    border: 1px solid rgb(8 65 162 / 9%);
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--shadow-card, 0 18px 55px rgb(22 37 54 / 8%));
    scroll-margin-top: 30px;
}

.contacto-form-heading {
    margin-bottom: 30px;
}

.contacto-form-heading h2 {
    margin-bottom: 12px;
    font-size: clamp(1.75rem, 2.8vw, 2.35rem);
    font-weight: 680;
    line-height: 1.15;
}

.contacto-form-heading > p:last-child {
    margin-bottom: 0;
    font-size: 0.84rem;
    line-height: 1.65;
}


/* ---------------------------------------------------------
   CAMPOS
   --------------------------------------------------------- */

.contacto-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 18px;
}

.contacto-field {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: stretch;
}

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

.contacto-field label {
    display: block;
    margin-bottom: 9px;
    color: var(--contacto-ink);
    font-size: 0.88rem;
    font-weight: 650;
    line-height: 1.5;
}

.contacto-field input,
.contacto-field select,
.contacto-field textarea {
    display: block;
    width: 100%;
    min-width: 0;
    padding: 13px 14px;
    border: 1px solid #dce3eb;
    border-radius: 10px;
    background: #fff;
    color: var(--contacto-ink);
    font: inherit;
    font-size: 0.91rem;
    line-height: 1.5;
    transition:
        border-color 160ms ease,
        box-shadow 160ms ease,
        background-color 160ms ease;
}

.contacto-field input,
.contacto-field select {
    min-height: 49px;
}

.contacto-field textarea {
    min-height: 140px;
    resize: vertical;
}

.contacto-field input::placeholder,
.contacto-field textarea::placeholder {
    color: #8a95a3;
    opacity: 1;
}

.contacto-field input:hover,
.contacto-field select:hover,
.contacto-field textarea:hover {
    border-color: #b7c5d5;
}

.contacto-field input:focus,
.contacto-field select:focus,
.contacto-field textarea:focus {
    border-color: var(--contacto-blue);
    outline: none;
    box-shadow: 0 0 0 3px rgb(8 65 162 / 10%);
}

.contacto-field input[aria-invalid="true"],
.contacto-field select[aria-invalid="true"],
.contacto-field textarea[aria-invalid="true"] {
    border-color: #b42318;
    background: #fffdfd;
}

.contacto-field-help,
.contacto-field-error {
    margin: 7px 0 0;
    font-size: 0.77rem;
    line-height: 1.55;
}

.contacto-field-error {
    color: #b42318 !important;
}

.contacto-field-help {
    color: var(--contacto-muted);
}

.contacto-field select {
    appearance: none;
    padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23697586' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}

.contacto-field select:invalid {
    color: var(--contacto-muted);
}


/* ---------------------------------------------------------
   CONSENTIMIENTO Y PRIVACIDAD
   --------------------------------------------------------- */

.contacto-consent {
    display: grid;
    grid-template-columns: 19px minmax(0, 1fr);
    align-items: start;
    gap: 11px;
    margin-top: 26px;
}

.contacto-consent input {
    width: 17px;
    height: 17px;
    margin: 3px 0 0;
    accent-color: var(--contacto-blue);
    cursor: pointer;
}

.contacto-consent label {
    color: var(--contacto-muted);
    font-size: 0.81rem;
    line-height: 1.75;
    cursor: pointer;
}

.contacto-consent a {
    color: var(--contacto-blue);
    font-weight: 650;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.contacto-consent a:hover {
    color: var(--contacto-blue);
    text-decoration-thickness: 2px;
}

.contacto-consent-error {
    margin: 8px 0 0 30px;
}

.contacto-submit {
    display: inline-flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
    cursor: pointer;
}

.contacto-submit:active {
    transform: translateY(1px);
}

.contacto-privacy-note {
    margin: 15px 0 0;
    font-size: 0.76rem;
    line-height: 1.7;
    text-align: center;
}


/* ---------------------------------------------------------
   PROTECCIÓN ANTI-SPAM
   --------------------------------------------------------- */

.contacto-honeypot {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}


/* ---------------------------------------------------------
   CONFIRMACIÓN Y ERRORES
   --------------------------------------------------------- */

.contacto-feedback {
    padding: 22px;
    border-radius: 14px;
}

.contacto-feedback h3 {
    margin-bottom: 11px;
    font-size: 1.45rem;
    font-weight: 680;
    line-height: 1.25;
}

.contacto-feedback p {
    margin-bottom: 0;
    font-size: 0.91rem;
    line-height: 1.8;
}

.contacto-feedback-success {
    border: 1px solid rgb(75 167 128 / 24%);
    background: var(--contacto-surface-green);
}

.contacto-feedback-success h3 {
    color: #216b4a;
}

.contacto-feedback-mark {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    margin-bottom: 18px;
    border-radius: 50%;
    background: #fff;
    color: #287b58;
    font-size: 1rem;
    font-weight: 750;
}

.contacto-feedback-error {
    margin-bottom: 23px;
    border: 1px solid #f0c5c2;
    background: #fff7f6;
    color: #912018;
    font-size: 0.88rem;
    line-height: 1.7;
}


/* ---------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------- */

@media (max-width: 1050px) {
    .contacto-hero-grid {
        grid-template-columns: minmax(0, 0.82fr) minmax(400px, 1.18fr);
        gap: 40px;
    }

    .contacto-intro h1 {
        font-size: clamp(2.55rem, 4.8vw, 3.75rem);
    }

    .contacto-form-panel {
        padding: 28px;
    }
}

@media (max-width: 850px) {
    .contacto-hero-grid {
        grid-template-columns: 1fr;
        gap: 42px;
    }

    .contacto-intro {
        position: static;
        max-width: 720px;
    }

    .contacto-intro h1 {
        max-width: 690px;
        font-size: clamp(2.8rem, 7vw, 4.2rem);
    }

    .contacto-intro > .lead {
        max-width: 650px;
    }

    .contacto-principles {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
        max-width: none;
        border-top: 0;
    }

    .contacto-principle {
        grid-template-columns: 30px minmax(0, 1fr);
        border-top: 1px solid var(--contacto-border);
        border-bottom: 0;
    }

    .contacto-form-panel {
        max-width: 760px;
    }
}

@media (max-width: 560px) {
    .contacto-hero {
        padding-block: 46px 72px;
    }

    .contacto-hero-grid {
        gap: 32px;
    }

    .contacto-intro h1 {
        font-size: clamp(2.45rem, 10.5vw, 3.45rem);
    }

    .contacto-intro .lead {
        font-size: 1rem;
    }

    .contacto-intro-note {
        margin-top: 25px;
    }

    .contacto-principles {
        grid-template-columns: 1fr;
        gap: 0;
        margin-top: 29px;
    }

    .contacto-principle {
        padding-block: 17px;
    }

    .contacto-form-panel {
        padding: 25px 20px;
        border-radius: 18px;
    }

    .contacto-form-heading {
        margin-bottom: 25px;
    }

    .contacto-form-heading h2 {
        font-size: 1.85rem;
    }

    .contacto-form-grid {
        grid-template-columns: 1fr;
        gap: 19px;
    }

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

    .contacto-field textarea {
        min-height: 150px;
    }

    .contacto-consent {
        gap: 10px;
    }

    .contacto-consent label {
        font-size: 0.79rem;
    }
}

@media (max-width: 360px) {
    .contacto-intro h1 {
        font-size: 2.3rem;
    }

    .contacto-form-panel {
        padding: 22px 16px;
    }

    .contacto-field input,
    .contacto-field select,
    .contacto-field textarea {
        padding-inline: 11px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .contacto-page *,
    .contacto-page *::before,
    .contacto-page *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
