/* Contacto: el banner y los márgenes generales se definen en banner.css y deleg-layout.css. */
.contacto-page { --ct-blue: #0789ed; --ct-muted: #45658b; color: #092652; }
.contacto-page h2 { margin: 0 0 10px; font-size: clamp(24px, 2.3vw, 33px); line-height: 1.13; }
.contacto-eyebrow { color: var(--ct-blue); font-size: 12px; font-weight: 700; letter-spacing: .03em; }
.contacto-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Formulario y vías de contacto: .contacto-wrap viene del layout. */
.contacto-main { padding-block: 30px; background: linear-gradient(90deg, #fff, #f5faff 65%, #fff); }
.contacto-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 65px); }
.contacto-lead { max-width: 630px; margin: 0 0 18px; color: var(--ct-muted); font-size: 15px; line-height: 1.45; }
.contacto-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.contacto-field { display: block; min-width: 0; }
.contacto-field--full { grid-column: 1 / -1; }
.contacto-field :is(input, select, textarea) {
    display: block; width: 100%; min-width: 0; padding: 12px 13px;
    border: 1px solid #cfdfeb; border-radius: 6px; background: #f1f7fc;
    color: #0e3a66; font: 13px/1.4 Arial, Helvetica, sans-serif;
}
.contacto-field :is(input, select) { min-height: 43px; }
.contacto-field textarea { min-height: 155px; resize: vertical; }
.contacto-field :is(input, textarea)::placeholder { color: #5d7798; opacity: 1; }
.contacto-field select:invalid { color: #5d7798; }
.contacto-field :is(input, select, textarea):focus-visible { outline: 2px solid var(--ct-blue); outline-offset: 1px; }
.contacto-privacy { display: flex; align-items: flex-start; gap: 8px; margin: 17px 0 15px; color: var(--ct-muted); font-size: 12px; }
.contacto-privacy input { flex: 0 0 15px; width: 15px; height: 15px; margin: 0; accent-color: var(--ct-blue); }
.contacto-privacy a { color: #007de1; }
.contacto-btn {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 43px;
    padding: 11px 22px;
    border: 0;
    border-radius: 8px;
    background: #0078d4;
    color: #fff;
    font: 700 13px/1.3 Arial, Helvetica, sans-serif;
    cursor: pointer;
}
    .contacto-btn:hover {
        background: #002b4d;
    }
.contacto-btn:focus-visible { outline: 2px solid var(--ct-blue); outline-offset: 3px; }
.contacto-btn [aria-hidden] { font-size: 10px; font-weight: 400; }

.contacto-methods { display: grid; gap: 16px; margin: 16px 0; }
.contacto-method { display: flex; align-items: flex-start; gap: 14px; }
.contacto-method-icon, .contacto-benefit-icon {
    display: grid; flex-shrink: 0; place-items: center; border-radius: 50%;
    font-size: 8px; overflow-wrap: anywhere; text-align: center;
}
.contacto-method-icon { width: 43px; height: 43px; background: #138ff0; color: #fff; }
.contacto-method h3 { margin: 0 0 3px; font-size: 13px; }
.contacto-method :is(a, strong) { color: #063f85; font-size: 14px; font-weight: 700; text-decoration: none; }
.contacto-method p { margin: 3px 0 0; color: var(--ct-muted); font-size: 12px; line-height: 1.45; }
.contacto-map-placeholder {
    display: grid; place-items: center; min-height: 165px; padding: 18px;
    border: 1px dashed #8bb9df; border-radius: 6px; background: #e7f2fb;
    color: #326c95; font-size: 12px; text-align: center;
}
.contacto-details-info {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    padding: 2ex;
}
/* Ventajas */
.contacto-benefits {
    padding-block: 24px;
    background: #e4f4ff;
}
.contacto-benefits-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.contacto-benefits article { display: flex; gap: 16px; padding-inline: 22px; border-right: 1px solid #9bd2fa; }
.contacto-benefits article:first-child { padding-left: 0; }
.contacto-benefits article:last-child { padding-right: 0; border: 0; }
.contacto-benefit-icon { width: 58px; height: 58px; border: 2px solid #168ff0; background: #fff; color: #0878c7; }
.contacto-benefits h3 { margin: 0 0 9px; font-size: 16px; line-height: 1.2; }
.contacto-benefits p { margin: 0; color: var(--ct-muted); font-size: 12px; line-height: 1.45; }

/*Mapa*/
.contacto-mapa {
    overflow: hidden;
    border-radius: 8px;
}

.contacto-mapa iframe {
    width: 50ex;
    height: 40ex;
    border: 0;
}

@media (max-width: 1640px) {
    .contacto-mapa iframe {
        width: 35ex;
        height: 40ex;
    }
}

@media (max-width: 1359px) {
    .contacto-mapa iframe {
        width: 55ex;
        height: 40ex;
    }
    .contacto-details-info {
        flex-direction: column;
        align-items: start;
    }
}
@media (max-width: 1000px) {
    .contacto-mapa iframe {
        width: 40ex;
        height: 40ex;
    }
}

    @media (max-width: 768px) {
        .contacto-columns, .contacto-feature {
            grid-template-columns: 1fr;
        }

        .contacto-columns {
            gap: 34px;
        }

        .contacto-benefits-grid {
            grid-template-columns: 1fr;
            gap: 18px;
        }

        .contacto-benefits article {
            padding: 0 0 18px;
            border-right: 0;
            border-bottom: 1px solid #9bd2fa;
        }

            .contacto-benefits article:last-child {
                padding: 0;
                border: 0;
            }

        .contacto-feature-image {
            min-height: 200px;
        }

        .contacto-feature-body {
            padding: 28px var(--page-inset);
        }
        .contacto-mapa iframe {
            width: 40ex;
            height: 40ex;
        }

        .contacto-details-info {
            flex-direction: row;
            align-items: center;
        }
    }

    @media (max-width: 560px) {
        .contacto-form-grid {
            grid-template-columns: 1fr;
        }

        .contacto-field--full {
            grid-column: auto;
        }

        .contacto-btn {
            width: 100%;
        }
        .contacto-mapa iframe {
            width: 40ex;
            height: 40ex;
        }

        .contacto-details-info {
            flex-direction: column;
            align-items: start;
        }
    }

@media (max-width: 390px) {
    .contacto-mapa iframe {
        width: 35ex;
        height: 30ex;
    }
}

@media (max-width: 340px) {
    .contacto-mapa iframe {
        width: 30ex;
        height: 30ex;
    }
}

    /* Confirmación tras POST normal (sin AJAX). */
    .contacto-page .contacto-respuesta {
        margin: 14px 0 0;
        padding: 12px 14px;
        border: 1px solid #b6d9c0;
        border-radius: 8px;
        background: #f0faf3;
        color: #175b32;
        font-size: 13px;
        line-height: 1.5;
    }

    .contacto-page .contacto-respuesta--error {
        border-color: #e9b6b6;
        background: #fff2f2;
        color: #912a2a;
    }
