/* Contacto (body.mfx-ct). Mismos tokens que Consumibles/Bombeo: azul #0089e4, navy #1a3a5c, texto #192730 / #4a5c68, bordes #dbe5ec. */
body.mfx-ct #primary { margin-top: 0 !important; }
body.mfx-ct article.page { padding-top: 0 !important; }
body.mfx-ct .site-content > .ast-container { max-width: none; padding-left: 0; padding-right: 0; }

/* Cuerpo a ancho completo con fondo suave */
body.mfx-ct .elementor-element.elementor-element-ctbody {
    width: 100vw !important;
    max-width: none !important;
    margin-left: calc(50% - 50vw) !important;
    padding: 64px 0 88px !important;
    background: #f5f8fa;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
}
body.mfx-ct .elementor-element-ctbody > .elementor-widget-html,
body.mfx-ct .elementor-element-ctbody > .elementor-element-ctrow { width: min(1240px, calc(100vw - 64px)); max-width: none; margin: 0 auto; }

/* 1. Vías de contacto */
body.mfx-ct .mp-ct-channels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
body.mfx-ct .mp-ct-card {
    display: flex; align-items: center; gap: 18px; min-height: 96px; box-sizing: border-box;
    padding: 22px 24px; background: #fff; border: 1px solid #dbe5ec; border-radius: 16px;
    box-shadow: 0 12px 30px rgba(16, 52, 75, .07); color: #192730; text-decoration: none;
}
body.mfx-ct .mp-ct-ico { flex: 0 0 52px; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 12px; background: #eaf4fb; color: #0069b0; }
body.mfx-ct .mp-ct-ico svg { width: 26px; height: 26px; }
body.mfx-ct .mp-ct-txt { display: grid; gap: 2px; min-width: 0; }
body.mfx-ct .mp-ct-label { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #0069b0; }
body.mfx-ct .mp-ct-value { font-size: clamp(17px, 1.7vw, 20px); font-weight: 700; line-height: 1.25; color: #192730; overflow-wrap: anywhere; }
body.mfx-ct .mp-ct-hint { font-size: 14px; color: #4a5c68; }
body.mfx-ct .mp-ct-card:hover { border-color: #0089e4; }
body.mfx-ct .mp-ct-card:focus-visible,
body.mfx-ct .mp-ct-link:focus-visible,
body.mfx-ct .elementor-element-ctform input:focus-visible,
body.mfx-ct .elementor-element-ctform textarea:focus-visible,
body.mfx-ct .elementor-element-ctform button:focus-visible { outline: 3px solid #0089e4; outline-offset: 3px; }

/* 2. Fila formulario + ubicación */
body.mfx-ct .elementor-element.elementor-element-ctrow {
    display: grid !important;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    gap: 28px;
    padding: 0 !important;
    align-items: stretch;
}
body.mfx-ct .elementor-element.elementor-element-ctform,
body.mfx-ct .elementor-element.elementor-element-ctinfo {
    width: auto !important; max-width: none !important; box-sizing: border-box;
    padding: 40px 44px !important; background: #fff; border: 1px solid #dbe5ec; border-radius: 16px;
    box-shadow: 0 18px 42px rgba(16, 52, 75, .08);
    display: block;
}
body.mfx-ct .mp-ct-kicker { margin: 0 0 12px; color: #0069b0; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
body.mfx-ct .mp-ct-h2 { margin: 0 0 14px; color: #192730; font-size: clamp(26px, 2.8vw, 34px); line-height: 1.15; }
body.mfx-ct .mp-ct-lead { margin: 0 0 18px; color: #4a5c68; line-height: 1.65; }
body.mfx-ct .mp-ct-tips { margin: 0 0 24px; padding: 14px 18px; background: #eaf4fb; border-radius: 10px; color: #194f70; font-size: 14px; line-height: 1.6; }
body.mfx-ct .mp-ct-tips strong { display: block; margin-bottom: 4px; }
body.mfx-ct .mp-ct-tips ul { margin: 0; padding-left: 18px; }

/* Formulario (WPForms): etiquetas visibles, objetivos ≥ 44 px, foco claro, errores junto al campo */
body.mfx-ct .elementor-element-ctform .wpforms-container { margin: 0; }
body.mfx-ct .elementor-element-ctform .wpforms-field { padding: 0 0 16px; }
body.mfx-ct .elementor-element-ctform .wpforms-field-label { margin: 0 0 6px; color: #192730; font-size: 14px; font-weight: 600; }
body.mfx-ct .elementor-element-ctform .wpforms-required-label { color: #b3261e; }
body.mfx-ct .elementor-element-ctform input[type=text],
body.mfx-ct .elementor-element-ctform input[type=email],
body.mfx-ct .elementor-element-ctform input[type=tel],
body.mfx-ct .elementor-element-ctform textarea {
    width: 100%; max-width: 100%; box-sizing: border-box; min-height: 48px; padding: 12px 14px;
    background: #fff; color: #192730; border: 1px solid #9fb3c0; border-radius: 8px; font-size: 16px; line-height: 1.4;
}
body.mfx-ct .elementor-element-ctform textarea { min-height: 140px; }
body.mfx-ct .elementor-element-ctform input:focus,
body.mfx-ct .elementor-element-ctform textarea:focus { border-color: #0089e4; box-shadow: 0 0 0 3px rgba(0, 137, 228, .25); outline: none; }
/* Etiquetas siempre visibles (el formulario las trae ocultas y deja sólo el placeholder) */
body.mfx-ct .elementor-element-ctform .wpforms-field-label.wpforms-label-hide,
body.mfx-ct .elementor-element-ctform .wpforms-field-sublabel.wpforms-sublabel-hide {
    position: static !important; clip: auto !important; clip-path: none !important; width: auto !important; height: auto !important;
    overflow: visible !important; margin: 0 0 6px !important; padding: 0 !important; white-space: normal !important; display: block;
}
body.mfx-ct .elementor-element-ctform .wpforms-field-sublabel.wpforms-sublabel-hide { margin: 6px 0 0 !important; color: #4a5c68; font-size: 13px; font-weight: 500; }
body.mfx-ct .elementor-element-ctform ::placeholder { color: #6b7a86; opacity: 1; }
body.mfx-ct .elementor-element-ctform .wpforms-field-name .wpforms-field-row { display: flex; gap: 14px; flex-wrap: wrap; margin: 0 !important; width: 100% !important; max-width: 100% !important; }
body.mfx-ct .elementor-element-ctform .wpforms-field-name .wpforms-field-row-block { flex: 1 1 200px; padding: 0 !important; width: auto !important; }
body.mfx-ct .elementor-element-ctform .wpforms-field-large { max-width: 100% !important; }
body.mfx-ct .elementor-element-ctform label.wpforms-error,
body.mfx-ct .elementor-element-ctform em.wpforms-error { display: block; margin-top: 6px; color: #b3261e; font-size: 14px; font-weight: 600; }
body.mfx-ct .elementor-element-ctform input.wpforms-error,
body.mfx-ct .elementor-element-ctform textarea.wpforms-error { border-color: #b3261e; }
body.mfx-ct .elementor-element-ctform .wpforms-submit-container { padding-top: 6px; }
body.mfx-ct .elementor-element-ctform button.wpforms-submit {
    display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 14px 28px;
    background: #1a3a5c; color: #fff; border: 0; border-radius: 6px; font-size: 15px; font-weight: 700; line-height: 1; cursor: pointer;
    transition: background .15s ease;
}
body.mfx-ct .elementor-element-ctform button.wpforms-submit:hover { background: #0089e4; }
body.mfx-ct .elementor-element-ctform .wpforms-confirmation-container,
body.mfx-ct .elementor-element-ctform .wpforms-confirmation-container-full { margin: 0; padding: 18px 20px; background: #eaf7ee; border: 1px solid #9fd3ae; border-radius: 10px; color: #17492a; }
body.mfx-ct .mp-ct-privacy { margin: 16px 0 0; color: #4a5c68; font-size: 13px; line-height: 1.5; }
body.mfx-ct .mp-ct-privacy a { color: #0069b0; text-decoration: underline; }

/* Ubicación */
body.mfx-ct .mp-ct-address { display: flex; gap: 14px; align-items: flex-start; margin: 0 0 18px; color: #192730; font-style: normal; line-height: 1.55; }
body.mfx-ct .mp-ct-address .mp-ct-ico { flex-basis: 44px; width: 44px; height: 44px; }
body.mfx-ct .mp-ct-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 4px; color: #0069b0; font-weight: 700; text-decoration: none; }
body.mfx-ct .mp-ct-link::after { content: "\2192"; font-weight: 400; }
body.mfx-ct .mp-ct-link:hover { text-decoration: underline; }
body.mfx-ct .mp-contact-map { margin-top: 18px; overflow: hidden; border: 1px solid #dbe5ec; border-radius: 12px; line-height: 0; }
body.mfx-ct .mp-contact-map iframe { display: block; width: 100%; height: 320px; border: 0; }

/* Interacción suave (respeta "reducir movimiento") */
@media (prefers-reduced-motion: no-preference) {
    body.mfx-ct .mp-ct-card { transition: transform .25s ease, box-shadow .25s ease, border-color .2s ease; }
    body.mfx-ct .mp-ct-card:hover { transform: translateY(-3px); box-shadow: 0 18px 38px rgba(16, 52, 75, .13); }
}
body.mfx-ct #contacto, body.mfx-ct .elementor-element-ctform { scroll-margin-top: 110px; }

@media (max-width: 1100px) {
    body.mfx-ct .mp-ct-channels { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
    body.mfx-ct .elementor-element.elementor-element-ctrow { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
    body.mfx-ct .elementor-element.elementor-element-ctbody { padding: 40px 0 56px !important; }
    body.mfx-ct .elementor-element-ctbody > .elementor-widget-html,
    body.mfx-ct .elementor-element-ctbody > .elementor-element-ctrow { width: calc(100vw - 32px); }
    body.mfx-ct .elementor-element.elementor-element-ctform,
    body.mfx-ct .elementor-element.elementor-element-ctinfo { padding: 28px 20px !important; }
    body.mfx-ct .elementor-element-ctform button.wpforms-submit { width: 100%; }
    body.mfx-ct .mp-contact-map iframe { height: 260px; }
}

/* La fila Nombre/Apellido de WPForms trae pseudo-elementos de clearfix que, dentro de un flex con gap, sangran el primer campo */
body.mfx-ct .elementor-element-ctform .wpforms-field-name .wpforms-field-row::before,
body.mfx-ct .elementor-element-ctform .wpforms-field-name .wpforms-field-row::after { display: none !important; content: none !important; }
body.mfx-ct .elementor-element-ctform .wpforms-field-name .wpforms-field-row-block { float: none !important; }

/* Mapa bloqueado hasta aceptar cookies (SureCookie): botón en los colores del sitio */
body.mfx-ct .mp-contact-map .surecookie-placeholder { background: #f5f8fa; }
body.mfx-ct .mp-contact-map .surecookie-placeholder-text { margin: 0 0 14px; color: #33424d; font-size: 15px; line-height: 1.5; }
body.mfx-ct .mp-contact-map .surecookie-placeholder-button { min-height: 44px; padding: 12px 22px; background: #1a3a5c !important; color: #fff !important; border: 0; border-radius: 6px; font-size: 14px; font-weight: 700; cursor: pointer; }
body.mfx-ct .mp-contact-map .surecookie-placeholder-button:hover { background: #0089e4 !important; }
body.mfx-ct .mp-contact-map .surecookie-placeholder-button:focus-visible { outline: 3px solid #0089e4; outline-offset: 3px; }
body.mfx-ct .elementor-element-ctform .wpforms-field-name .wpforms-field-row-block { margin-left: 0 !important; margin-right: 0 !important; }
