/* Contacto — acento verde de conversión */
body.page-contacto {
    --accent: #2e7d32;
    --accent-dark: #1f5f27;
    --accent-soft: #eaf5eb;
}

.page-contacto .contact-hero {
    background: linear-gradient(115deg, #002a5c 0%, #004a5e 50%, #1f6b45 100%);
}

.page-contacto .contact-hero::after {
    background: radial-gradient(ellipse at 80% 20%, rgba(41, 182, 246, .22), transparent 50%);
}

.contact-hero .lead {
    max-width: 760px;
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
    align-items: start;
    gap: clamp(24px, 3.5vw, 44px);
    max-width: 1120px;
    margin: 0 auto;
}

.contact-form-wrap {
    padding: clamp(20px, 3vw, 34px);
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--white);
    box-shadow: var(--shadow-md);
}

.contact-form-head {
    margin-bottom: 22px;
}

.contact-form-head h2 {
    margin-bottom: 8px;
    color: var(--navy);
    font-size: clamp(22px, 2.4vw, 28px);
    font-weight: 900;
    line-height: 1.2;
}

.contact-form-head p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.65;
}

.required-mark {
    color: #c62828;
    font-weight: 900;
}

.optional {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}

.form-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
    padding: 13px 15px;
    border: 1px solid #f0c4c4;
    border-radius: 10px;
    background: #fff5f5;
    color: #8a1c1c;
    font-size: 13px;
    line-height: 1.55;
}

.form-alert .icon {
    width: 19px;
    height: 19px;
    margin-top: 1px;
    flex: 0 0 19px;
    color: #c62828;
}

.form-alert strong {
    display: block;
    font-weight: 900;
}

.form-alert p {
    margin: 3px 0 0;
}

.form-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 16px;
}

.form-field {
    margin-bottom: 16px;
}

.form-field label {
    display: block;
    margin-bottom: 6px;
    color: var(--navy);
    font-size: 12.5px;
    font-weight: 900;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--white);
    color: var(--ink);
    font: inherit;
    font-size: 14px;
    line-height: 1.45;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.form-field textarea {
    min-height: 132px;
    resize: vertical;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: #9aabbd;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 3px rgba(46, 125, 50, .14);
}

.form-field input[aria-invalid="true"],
.form-field textarea[aria-invalid="true"] {
    border-color: #d9534f;
}

.label-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.message-count {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
}

.field-hint {
    margin: -8px 0 16px;
    color: var(--muted);
    font-size: 11.5px;
}

.field-error {
    display: block;
    margin-top: 5px;
    color: #b3261e;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.45;
}

.field-error-block {
    margin: -10px 0 16px;
}

.form-submit {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 4px;
}

.form-submit .button {
    min-width: 210px;
}

.form-submit .button[disabled] {
    opacity: .7;
    cursor: wait;
    transform: none;
}

.form-privacy {
    max-width: 380px;
    margin: 0;
    color: var(--muted);
    font-size: 11.5px;
    line-height: 1.55;
}

.contact-aside {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.channel-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 17px 18px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.channel-card:hover,
.channel-card:focus-visible {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.channel-icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    border-radius: 12px;
    background: var(--accent-soft);
    color: var(--accent);
}

.channel-icon .icon {
    width: 23px;
    height: 23px;
}

.channel-wa .channel-icon {
    background: #e8f9ee;
    color: #1ebe5a;
}

.channel-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.channel-body strong {
    color: var(--navy);
    font-size: 14.5px;
    font-weight: 900;
    line-height: 1.3;
}

.channel-body > span {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
    word-break: break-word;
}

.channel-action {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 7px;
    color: var(--accent-dark) !important;
    font-size: 11.5px !important;
    font-weight: 900 !important;
}

.channel-action .icon {
    width: 14px;
    height: 14px;
}

.contact-info-card {
    padding: 20px 18px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--pale);
}

.contact-info-card h3 {
    margin-bottom: 12px;
    color: var(--navy);
    font-size: 14.5px;
    font-weight: 900;
}

.contact-info-card p {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-bottom: 11px;
    color: #334b68;
    font-size: 12.5px;
    line-height: 1.5;
}

.contact-info-card p:last-child {
    margin-bottom: 0;
}

.contact-info-card .icon {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    flex: 0 0 16px;
    color: var(--accent);
}

.contact-info-card span {
    display: block;
}

.contact-info-card strong {
    display: block;
    color: var(--navy);
    font-size: 12px;
    font-weight: 900;
}

.contact-steps .step h3 {
    font-size: 14px;
}

/* Página de gracias */

.thanks-icon {
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    margin-bottom: 18px;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    color: #8fe0ff;
}

.thanks-icon .icon {
    width: 30px;
    height: 30px;
}

.thanks-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.thanks-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.thanks-card:hover,
.thanks-card:focus-visible {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.thanks-card strong {
    margin-bottom: 5px;
    color: var(--navy);
    font-size: 15px;
    font-weight: 900;
}

.thanks-card > span:last-child {
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.55;
}

@media (max-width: 1024px) {
    .contact-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .contact-aside {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .contact-info-card {
        grid-column: 1 / -1;
    }
}

@media (max-width: 760px) {
    .field-grid {
        grid-template-columns: minmax(0, 1fr);
    }

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

    .form-submit .button {
        width: 100%;
    }

    .contact-aside {
        grid-template-columns: minmax(0, 1fr);
    }

    .thanks-links {
        grid-template-columns: minmax(0, 1fr);
    }
}
