/**
 * JAH — Contacto (/contacto/ · page 2413 y su traducción /en/contact/)
 * Solo layout/espaciado/jerarquía. No toca lógica CF7.
 */
body:is(.page-id-2413, .jah-contacto) {
	--jah-navy: #023e74;
	--jah-blue: #0069a6;
	--jah-cyan: #4fbeff;
	--jah-muted: #4c5760;
	--jah-line: #e7edf3;
	--jah-soft: #f1f4f8;
	--jah-card: #eef3f8;
	--jah-radius: 12px;
	--jah-radius-sm: 8px;
}

/* ---------- Tarjeta flotante formulario (hero: editable en Elementor) ---------- */
body:is(.page-id-2413, .jah-contacto) #jah-contacto-form.jah-contacto-form-wrap,
body:is(.page-id-2413, .jah-contacto) #jah-contacto-form {
	margin-top: -72px !important;
	padding-top: 0 !important;
	padding-bottom: 56px !important;
	padding-left: 24px !important;
	padding-right: 24px !important;
	background: #fff !important;
	position: relative !important;
	z-index: 3 !important;
}

body:is(.page-id-2413, .jah-contacto) #jah-contacto-form .jah-contacto-form-card,
body:is(.page-id-2413, .jah-contacto) #jah-contacto-form > .e-con {
	max-width: 1200px !important;
	width: 100% !important;
	margin-left: auto !important;
	margin-right: auto !important;
	background: #fff !important;
	border: 1px solid var(--jah-line) !important;
	border-radius: 16px !important;
	box-shadow: 0 18px 48px rgba(2, 62, 116, 0.14) !important;
	padding: 36px 32px !important;
}

body:is(.page-id-2413, .jah-contacto) #jah-contacto-form .e-con-inner,
body:is(.page-id-2413, .jah-contacto) #jah-contacto-form > .e-con > .e-con-inner {
	width: 100% !important;
	max-width: 100% !important;
}

body:is(.page-id-2413, .jah-contacto) #jah-contacto-form .jah-contacto-side-photo,
body:is(.page-id-2413, .jah-contacto) #jah-contacto-form .jah-contacto-side-photo img {
	width: 100% !important;
	max-width: 100% !important;
	height: 220px !important;
	object-fit: cover !important;
	object-position: center top !important;
	border-radius: 12px !important;
	display: block !important;
}

body:is(.page-id-2413, .jah-contacto) #jah-contacto-form .jah-contacto-side-info {
	background: #e8f1f8 !important;
	border-radius: 12px !important;
}

body:is(.page-id-2413, .jah-contacto) #jah-contacto-form .jah-contacto-side-info .elementor-icon-box-wrapper {
	align-items: flex-start !important;
}

body:is(.page-id-2413, .jah-contacto) #jah-contacto-form .jah-contacto-side-info .elementor-icon-box-icon {
	margin-top: 2px !important;
}

/* ---------- Secciones: menos aire ---------- */
body:is(.page-id-2413, .jah-contacto) #jah-contacto-oficinas,
body:is(.page-id-2413, .jah-contacto) #jah-contacto-prefieren,
body:is(.page-id-2413, .jah-contacto) #jah-contacto-cta {
	padding-top: 64px !important;
	padding-bottom: 64px !important;
	padding-left: 24px !important;
	padding-right: 24px !important;
}

body:is(.page-id-2413, .jah-contacto) #jah-contacto-oficinas > .e-con,
body:is(.page-id-2413, .jah-contacto) #jah-contacto-prefieren > .e-con,
body:is(.page-id-2413, .jah-contacto) #jah-contacto-cta > .e-con {
	width: 100% !important;
	max-width: 1200px !important;
	margin-left: auto !important;
	margin-right: auto !important;
}
body:is(.page-id-2413, .jah-contacto) #jah-contacto-form .elementor-shortcode,
body:is(.page-id-2413, .jah-contacto) #jah-contacto-form .wpcf7,
body:is(.page-id-2413, .jah-contacto) #jah-contacto-form .wpcf7-form {
	width: 100% !important;
	max-width: 100% !important;
}

/* CF7 layout:
 * Nombre | Empresa (2)
 * Teléfono | Correo | País (3)
 * Cómo nos conociste | Embarques/mes (2)
 * Valor carga | Decisión seguros (2)
 * Mensaje / aceptación / enviar (1)
 */
body:is(.page-id-2413, .jah-contacto) #jah-contacto-form .wpcf7-form {
	display: grid !important;
	grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
	gap: 4px 16px !important;
	align-items: start !important;
}

body:is(.page-id-2413, .jah-contacto) #jah-contacto-form .wpcf7-form > .hidden-fields-container,
body:is(.page-id-2413, .jah-contacto) #jah-contacto-form .wpcf7-form > fieldset.hidden-fields-container {
	display: none !important;
}

body:is(.page-id-2413, .jah-contacto) #jah-contacto-form .wpcf7-form > p {
	margin: 0 0 12px !important;
	width: 100% !important;
	min-width: 0 !important;
	grid-column: span 12 !important;
}

/* 1 Nombre | 2 Empresa */
body:is(.page-id-2413, .jah-contacto) #jah-contacto-form .wpcf7-form > p:nth-child(2),
body:is(.page-id-2413, .jah-contacto) #jah-contacto-form .wpcf7-form > p:nth-child(3) {
	grid-column: span 6 !important;
}

/* 3 Teléfono | 4 Correo | 5 País — una sola fila */
body:is(.page-id-2413, .jah-contacto) #jah-contacto-form .wpcf7-form > p:nth-child(4),
body:is(.page-id-2413, .jah-contacto) #jah-contacto-form .wpcf7-form > p:nth-child(5),
body:is(.page-id-2413, .jah-contacto) #jah-contacto-form .wpcf7-form > p:nth-child(6) {
	grid-column: span 4 !important;
}

/* 6 Cómo nos conociste | 7 Embarques */
body:is(.page-id-2413, .jah-contacto) #jah-contacto-form .wpcf7-form > p:nth-child(7),
body:is(.page-id-2413, .jah-contacto) #jah-contacto-form .wpcf7-form > p:nth-child(8) {
	grid-column: span 6 !important;
}

/* 8 Valor carga | 9 Decisión seguros */
body:is(.page-id-2413, .jah-contacto) #jah-contacto-form .wpcf7-form > p:nth-child(9),
body:is(.page-id-2413, .jah-contacto) #jah-contacto-form .wpcf7-form > p:nth-child(10) {
	grid-column: span 6 !important;
}

/* Mensaje, aceptación, enviar, respuesta — ancho completo */
body:is(.page-id-2413, .jah-contacto) #jah-contacto-form .wpcf7-form > p:has(textarea),
body:is(.page-id-2413, .jah-contacto) #jah-contacto-form .wpcf7-form > p:has(.wpcf7-acceptance),
body:is(.page-id-2413, .jah-contacto) #jah-contacto-form .wpcf7-form > p:has(input[type="submit"]),
body:is(.page-id-2413, .jah-contacto) #jah-contacto-form .wpcf7-form > .wpcf7-response-output {
	grid-column: 1 / -1 !important;
}

body:is(.page-id-2413, .jah-contacto) #jah-contacto-form .wpcf7 label {
	font-family: Poppins, sans-serif !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	color: var(--jah-navy) !important;
	line-height: 1.35 !important;
	margin: 0 0 12px !important;
	text-transform: none !important;
}

body:is(.page-id-2413, .jah-contacto) #jah-contacto-form .wpcf7 input[type="text"],
body:is(.page-id-2413, .jah-contacto) #jah-contacto-form .wpcf7 input[type="email"],
body:is(.page-id-2413, .jah-contacto) #jah-contacto-form .wpcf7 input[type="tel"],
body:is(.page-id-2413, .jah-contacto) #jah-contacto-form .wpcf7 select,
body:is(.page-id-2413, .jah-contacto) #jah-contacto-form .wpcf7 textarea {
	width: 100% !important;
	max-width: 100% !important;
	box-sizing: border-box !important;
	margin-top: 8px !important;
	padding: 12px 14px !important;
	min-height: 46px !important;
	border: 1.5px solid #adc8d9 !important;
	border-radius: var(--jah-radius-sm) !important;
	background: #fff !important;
	color: var(--jah-navy) !important;
	font-family: Roboto, sans-serif !important;
	font-size: 15px !important;
	line-height: 1.4 !important;
}

body:is(.page-id-2413, .jah-contacto) #jah-contacto-form .wpcf7 textarea {
	min-height: 120px !important;
	resize: vertical !important;
}

/* CF7 submit = UI Kit Main */
body:is(.page-id-2413, .jah-contacto) #jah-contacto-form .wpcf7 input[type="submit"],
body:is(.page-id-2413, .jah-contacto) #jah-contacto-form .wpcf7 .wpcf7-submit {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	box-sizing: border-box !important;
	min-height: 50px !important;
	height: auto !important;
	padding: 12px 28px !important;
	margin-top: 4px !important;
	border-radius: 999px !important;
	border: 1.5px solid #0069a6 !important;
	background: #0069a6 !important;
	background-color: #0069a6 !important;
	color: #fff !important;
	font-family: Poppins, sans-serif !important;
	font-weight: 600 !important;
	font-size: 13px !important;
	letter-spacing: 0.02em !important;
	text-transform: uppercase !important;
	cursor: pointer !important;
	outline: none !important;
	box-shadow: none !important;
	-webkit-appearance: none !important;
	appearance: none !important;
	transition: background-color 0.2s ease, border-color 0.2s ease !important;
}

body:is(.page-id-2413, .jah-contacto) #jah-contacto-form .wpcf7 input[type="submit"]:hover,
body:is(.page-id-2413, .jah-contacto) #jah-contacto-form .wpcf7 input[type="submit"]:focus,
body:is(.page-id-2413, .jah-contacto) #jah-contacto-form .wpcf7 input[type="submit"]:focus-visible,
body:is(.page-id-2413, .jah-contacto) #jah-contacto-form .wpcf7 .wpcf7-submit:hover,
body:is(.page-id-2413, .jah-contacto) #jah-contacto-form .wpcf7 .wpcf7-submit:focus,
body:is(.page-id-2413, .jah-contacto) #jah-contacto-form .wpcf7 .wpcf7-submit:focus-visible {
	background: #023e74 !important;
	background-color: #023e74 !important;
	border: 1.5px solid #023e74 !important;
	border-color: #023e74 !important;
	color: #fff !important;
}

body:is(.page-id-2413, .jah-contacto) #jah-contacto-form .wpcf7 .wpcf7-acceptance {
	margin: 4px 0 12px !important;
}

body:is(.page-id-2413, .jah-contacto) #jah-contacto-form .wpcf7 .wpcf7-list-item-label {
	font-family: Roboto, sans-serif !important;
	font-size: 14px !important;
	font-weight: 400 !important;
	color: var(--jah-muted) !important;
}

/* ---------- Oficinas: densas y sobrias ---------- */
body:is(.page-id-2413, .jah-contacto) #jah-contacto-oficinas > .e-con {
	gap: 20px !important;
}

/* Grid de cards: el contenedor fila con wrap */
body:is(.page-id-2413, .jah-contacto) #jah-contacto-oficinas .e-con.e-con-full.e-flex[class*="e-con"] {
	/* refuerzo: hijos ~31–32% ya en Elementor */
}

body:is(.page-id-2413, .jah-contacto) #jah-contacto-oficinas h3.elementor-heading-title {
	font-size: 16px !important;
	line-height: 1.3 !important;
	margin: 0 0 8px !important;
	color: var(--jah-navy) !important;
}

body:is(.page-id-2413, .jah-contacto) #jah-contacto-oficinas .elementor-widget-text-editor,
body:is(.page-id-2413, .jah-contacto) #jah-contacto-oficinas .elementor-widget-text-editor p {
	font-size: 13.5px !important;
	line-height: 1.55 !important;
	color: var(--jah-muted) !important;
	margin: 0 0 6px !important;
}

/* Cards oficinas: hijos directos del grid (contenedores con h3) */
body:is(.page-id-2413, .jah-contacto) #jah-contacto-oficinas .e-con:has(> .elementor-widget-heading h3) {
	background: #fff !important;
	border: 1px solid var(--jah-line) !important;
	border-left: 3px solid var(--jah-blue) !important;
	border-radius: 10px !important;
	box-shadow: 0 2px 10px rgba(2, 62, 116, 0.04) !important;
	padding: 18px 16px !important;
	min-height: 0 !important;
}

/* ---------- ¿Por qué nos prefieren? ---------- */
body:is(.page-id-2413, .jah-contacto) #jah-contacto-prefieren {
	padding-top: 56px !important;
	padding-bottom: 56px !important;
}

body:is(.page-id-2413, .jah-contacto) #jah-contacto-prefieren > .e-con {
	align-items: center !important;
	gap: 28px !important;
}

body:is(.page-id-2413, .jah-contacto) #jah-contacto-prefieren h3.elementor-heading-title {
	font-size: 15px !important;
	line-height: 1.3 !important;
	margin: 0 0 6px !important;
	letter-spacing: 0.01em !important;
}

body:is(.page-id-2413, .jah-contacto) #jah-contacto-prefieren .elementor-widget-text-editor,
body:is(.page-id-2413, .jah-contacto) #jah-contacto-prefieren .elementor-widget-text-editor p {
	font-size: 13.5px !important;
	line-height: 1.5 !important;
	margin: 0 !important;
}

body:is(.page-id-2413, .jah-contacto) #jah-contacto-prefieren .e-con:has(> .elementor-widget-heading h3) {
	background: rgba(255, 255, 255, 0.08) !important;
	border: 1px solid rgba(255, 255, 255, 0.16) !important;
	border-radius: 10px !important;
	padding: 16px 14px !important;
	box-shadow: none !important;
}

/* ---------- CTA compacto ---------- */
body:is(.page-id-2413, .jah-contacto) #jah-contacto-cta {
	padding-top: 32px !important;
	padding-bottom: 32px !important;
	min-height: 0 !important;
}

body:is(.page-id-2413, .jah-contacto) #jah-contacto-cta > .e-con {
	gap: 10px !important;
	max-width: 800px !important;
	align-items: center !important;
	justify-content: center !important;
}

/* Pareja CTA: Main + Secondary, gap 12px, centrados */
body:is(.page-id-2413, .jah-contacto) #jah-contacto-cta .e-con:has(> .elementor-widget-button) {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: wrap !important;
	justify-content: center !important;
	align-items: center !important;
	gap: 12px !important;
	width: 100% !important;
}

body:is(.page-id-2413, .jah-contacto) #jah-contacto-cta .elementor-widget-button {
	width: auto !important;
	margin: 0 !important;
}

body:is(.page-id-2413, .jah-contacto) #jah-contacto-cta .elementor-widget-text-editor p {
	font-size: 15px !important;
	margin: 0 !important;
	color: var(--jah-muted) !important;
	text-align: center !important;
}

/* Botón Elementor huérfano (duplicado del submit CF7) */
body:is(.page-id-2413, .jah-contacto) .elementor-element-2eb44af {
	display: none !important;
}

/* Botones página: UI Kit XD Main / Secondary (píldora · min-h 50 · borde 1.5px) */
body:is(.page-id-2413, .jah-contacto).page .elementor[data-elementor-type="wp-page"] .elementor-widget-button a.elementor-button,
body:is(.page-id-2413, .jah-contacto).page .elementor[data-elementor-type="wp-page"] .elementor-widget-button .elementor-button,
body:is(.page-id-2413, .jah-contacto) #jah-contacto-cta .elementor-button,
body:is(.page-id-2413, .jah-contacto) #jah-contacto-form .wpcf7 input[type="submit"],
body:is(.page-id-2413, .jah-contacto) #jah-contacto-form .wpcf7 .wpcf7-submit {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	box-sizing: border-box !important;
	border-radius: 999px !important;
	min-height: 50px !important;
	height: auto !important;
	padding: 12px 28px !important;
	border: 1.5px solid #0069a6 !important;
	border-top: 1.5px solid #0069a6 !important;
	border-right: 1.5px solid #0069a6 !important;
	border-bottom: 1.5px solid #0069a6 !important;
	border-left: 1.5px solid #0069a6 !important;
	outline: none !important;
	box-shadow: none !important;
	-webkit-appearance: none !important;
	appearance: none !important;
	font-family: Poppins, sans-serif !important;
	font-weight: 600 !important;
	font-size: 13px !important;
	line-height: 1.2 !important;
	letter-spacing: 0.02em !important;
	text-transform: uppercase !important;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease !important;
}

/* Main — cotización + CF7 submit (#0069A6 → hover/focus #023E74) */
body:is(.page-id-2413, .jah-contacto) #jah-contacto-cta .elementor-button[href*="cotizacion"],
body:is(.page-id-2413, .jah-contacto) .elementor[data-elementor-type="wp-page"] .elementor-widget-button a.elementor-button[href*="cotizacion"],
body:is(.page-id-2413, .jah-contacto) .elementor[data-elementor-type="wp-page"] .elementor-widget-button .elementor-button[href*="cotizacion"],
body:is(.page-id-2413, .jah-contacto) #jah-contacto-form .wpcf7 input[type="submit"],
body:is(.page-id-2413, .jah-contacto) #jah-contacto-form .wpcf7 .wpcf7-submit {
	background: #0069a6 !important;
	background-color: #0069a6 !important;
	border: 1.5px solid #0069a6 !important;
	border-color: #0069a6 !important;
	color: #fff !important;
}

body:is(.page-id-2413, .jah-contacto) #jah-contacto-cta .elementor-button[href*="cotizacion"]:hover,
body:is(.page-id-2413, .jah-contacto) #jah-contacto-cta .elementor-button[href*="cotizacion"]:focus,
body:is(.page-id-2413, .jah-contacto) #jah-contacto-cta .elementor-button[href*="cotizacion"]:focus-visible,
body:is(.page-id-2413, .jah-contacto) .elementor[data-elementor-type="wp-page"] .elementor-widget-button a.elementor-button[href*="cotizacion"]:hover,
body:is(.page-id-2413, .jah-contacto) .elementor[data-elementor-type="wp-page"] .elementor-widget-button a.elementor-button[href*="cotizacion"]:focus,
body:is(.page-id-2413, .jah-contacto) .elementor[data-elementor-type="wp-page"] .elementor-widget-button a.elementor-button[href*="cotizacion"]:focus-visible,
body:is(.page-id-2413, .jah-contacto) .elementor[data-elementor-type="wp-page"] .elementor-widget-button .elementor-button[href*="cotizacion"]:hover,
body:is(.page-id-2413, .jah-contacto) .elementor[data-elementor-type="wp-page"] .elementor-widget-button .elementor-button[href*="cotizacion"]:focus,
body:is(.page-id-2413, .jah-contacto) .elementor[data-elementor-type="wp-page"] .elementor-widget-button .elementor-button[href*="cotizacion"]:focus-visible,
body:is(.page-id-2413, .jah-contacto) #jah-contacto-form .wpcf7 input[type="submit"]:hover,
body:is(.page-id-2413, .jah-contacto) #jah-contacto-form .wpcf7 input[type="submit"]:focus,
body:is(.page-id-2413, .jah-contacto) #jah-contacto-form .wpcf7 input[type="submit"]:focus-visible,
body:is(.page-id-2413, .jah-contacto) #jah-contacto-form .wpcf7 .wpcf7-submit:hover,
body:is(.page-id-2413, .jah-contacto) #jah-contacto-form .wpcf7 .wpcf7-submit:focus,
body:is(.page-id-2413, .jah-contacto) #jah-contacto-form .wpcf7 .wpcf7-submit:focus-visible {
	background: #023e74 !important;
	background-color: #023e74 !important;
	border: 1.5px solid #023e74 !important;
	border-color: #023e74 !important;
	color: #fff !important;
	outline: 2px solid #023e74 !important;
	outline-offset: 2px !important;
}

body:is(.page-id-2413, .jah-contacto) #jah-contacto-cta .elementor-button[href*="cotizacion"] .elementor-button-text,
body:is(.page-id-2413, .jah-contacto) .elementor[data-elementor-type="wp-page"] .elementor-widget-button a.elementor-button[href*="cotizacion"] .elementor-button-text {
	color: #fff !important;
}

/* Secondary — tel / outline (blanco · borde/texto #0069A6 · hover/focus fill azul) */
body:is(.page-id-2413, .jah-contacto) #jah-contacto-cta .elementor-button[href^="tel:"],
body:is(.page-id-2413, .jah-contacto) .elementor[data-elementor-type="wp-page"] .elementor-widget-button a.elementor-button[href^="tel:"],
body:is(.page-id-2413, .jah-contacto) .elementor[data-elementor-type="wp-page"] .elementor-widget-button.jah-btn-secondary a.elementor-button {
	background: #fff !important;
	background-color: #fff !important;
	border: 1.5px solid #0069a6 !important;
	color: #0069a6 !important;
}

body:is(.page-id-2413, .jah-contacto) #jah-contacto-cta .elementor-button[href^="tel:"]:hover,
body:is(.page-id-2413, .jah-contacto) #jah-contacto-cta .elementor-button[href^="tel:"]:focus,
body:is(.page-id-2413, .jah-contacto) #jah-contacto-cta .elementor-button[href^="tel:"]:focus-visible,
body:is(.page-id-2413, .jah-contacto) .elementor[data-elementor-type="wp-page"] .elementor-widget-button a.elementor-button[href^="tel:"]:hover,
body:is(.page-id-2413, .jah-contacto) .elementor[data-elementor-type="wp-page"] .elementor-widget-button a.elementor-button[href^="tel:"]:focus,
body:is(.page-id-2413, .jah-contacto) .elementor[data-elementor-type="wp-page"] .elementor-widget-button a.elementor-button[href^="tel:"]:focus-visible {
	background: #0069a6 !important;
	background-color: #0069a6 !important;
	border: 1.5px solid #0069a6 !important;
	border-color: #0069a6 !important;
	color: #fff !important;
	outline: 2px solid #0069a6 !important;
	outline-offset: 2px !important;
}

body:is(.page-id-2413, .jah-contacto) #jah-contacto-cta .elementor-button[href^="tel:"] .elementor-button-text,
body:is(.page-id-2413, .jah-contacto) .elementor[data-elementor-type="wp-page"] .elementor-widget-button a.elementor-button[href^="tel:"] .elementor-button-text {
	color: inherit !important;
}

/* CF7: mantener píldora durante envío / spinner / disabled */
body:is(.page-id-2413, .jah-contacto) #jah-contacto-form .wpcf7-form.submitting input[type="submit"],
body:is(.page-id-2413, .jah-contacto) #jah-contacto-form .wpcf7-form.submitting .wpcf7-submit,
body:is(.page-id-2413, .jah-contacto) #jah-contacto-form .wpcf7 input[type="submit"]:disabled,
body:is(.page-id-2413, .jah-contacto) #jah-contacto-form .wpcf7 .wpcf7-submit:disabled,
body:is(.page-id-2413, .jah-contacto) #jah-contacto-form .wpcf7 input[type="submit"].has-spinner {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	min-height: 50px !important;
	height: auto !important;
	border-radius: 999px !important;
	border: 1.5px solid #0069a6 !important;
	background: #0069a6 !important;
	background-color: #0069a6 !important;
	color: #fff !important;
	opacity: 0.88 !important;
	box-shadow: none !important;
	cursor: wait !important;
}

body:is(.page-id-2413, .jah-contacto) #jah-contacto-form .wpcf7 .wpcf7-spinner {
	margin-left: 10px !important;
	vertical-align: middle !important;
}

/* Solo outline en :focus-visible (no en click de ratón) */
body:is(.page-id-2413, .jah-contacto) #jah-contacto-cta .elementor-button:focus:not(:focus-visible),
body:is(.page-id-2413, .jah-contacto) .elementor[data-elementor-type="wp-page"] .elementor-widget-button .elementor-button:focus:not(:focus-visible),
body:is(.page-id-2413, .jah-contacto) #jah-contacto-form .wpcf7 input[type="submit"]:focus:not(:focus-visible) {
	outline: none !important;
}

/* ---------- Banderas oficinas (redondas) ---------- */
body:is(.page-id-2413, .jah-contacto) #jah-contacto-oficinas .jah-office-flag,
body:is(.page-id-2413, .jah-contacto) #jah-contacto-oficinas .elementor-widget-image.jah-office-flag {
	width: 44px !important;
	max-width: 44px !important;
	margin: 0 0 10px !important;
}

body:is(.page-id-2413, .jah-contacto) #jah-contacto-oficinas .jah-office-flag .elementor-widget-container,
body:is(.page-id-2413, .jah-contacto) #jah-contacto-oficinas .jah-office-flag img,
body:is(.page-id-2413, .jah-contacto) #jah-contacto-oficinas .elementor-widget-image.jah-office-flag img {
	width: 44px !important;
	height: 44px !important;
	max-width: 44px !important;
	border-radius: 50% !important;
	object-fit: cover !important;
	display: block !important;
	overflow: hidden !important;
	box-shadow: 0 0 0 1px rgba(2, 62, 116, 0.12) !important;
}

/* ---------- Tipografía general ---------- */
body:is(.page-id-2413, .jah-contacto) .elementor[data-elementor-type="wp-page"] .elementor-widget-text-editor {
	font-family: Roboto, sans-serif !important;
}

/* H1/H2: sin override — tipografía editable desde Elementor */

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
	body:is(.page-id-2413, .jah-contacto) #jah-contacto-form {
		margin-top: -56px !important;
		padding-top: 0 !important;
		padding-bottom: 44px !important;
		padding-left: 20px !important;
		padding-right: 20px !important;
	}

	body:is(.page-id-2413, .jah-contacto) #jah-contacto-form > .e-con {
		padding: 28px 20px !important;
	}

	body:is(.page-id-2413, .jah-contacto) #jah-contacto-form .wpcf7-form {
		grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
		gap: 4px 12px !important;
	}

	/* En tablet: Tel / Correo / País siguen en 1 fila; pares en 2 cols */
	body:is(.page-id-2413, .jah-contacto) #jah-contacto-form .wpcf7-form > p:nth-child(2),
	body:is(.page-id-2413, .jah-contacto) #jah-contacto-form .wpcf7-form > p:nth-child(3),
	body:is(.page-id-2413, .jah-contacto) #jah-contacto-form .wpcf7-form > p:nth-child(7),
	body:is(.page-id-2413, .jah-contacto) #jah-contacto-form .wpcf7-form > p:nth-child(8),
	body:is(.page-id-2413, .jah-contacto) #jah-contacto-form .wpcf7-form > p:nth-child(9),
	body:is(.page-id-2413, .jah-contacto) #jah-contacto-form .wpcf7-form > p:nth-child(10) {
		grid-column: span 6 !important;
	}

	body:is(.page-id-2413, .jah-contacto) #jah-contacto-form .wpcf7-form > p:nth-child(4),
	body:is(.page-id-2413, .jah-contacto) #jah-contacto-form .wpcf7-form > p:nth-child(5),
	body:is(.page-id-2413, .jah-contacto) #jah-contacto-form .wpcf7-form > p:nth-child(6) {
		grid-column: span 4 !important;
	}

	body:is(.page-id-2413, .jah-contacto) #jah-contacto-oficinas,
	body:is(.page-id-2413, .jah-contacto) #jah-contacto-prefieren,
	body:is(.page-id-2413, .jah-contacto) #jah-contacto-cta {
		padding-top: 52px !important;
		padding-bottom: 52px !important;
		padding-left: 20px !important;
		padding-right: 20px !important;
	}
}

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
	body:is(.page-id-2413, .jah-contacto) #jah-contacto-form {
		margin-top: -48px !important;
		padding-top: 0 !important;
		padding-bottom: 36px !important;
		padding-left: 16px !important;
		padding-right: 16px !important;
	}

	body:is(.page-id-2413, .jah-contacto) #jah-contacto-oficinas,
	body:is(.page-id-2413, .jah-contacto) #jah-contacto-prefieren,
	body:is(.page-id-2413, .jah-contacto) #jah-contacto-cta {
		padding-top: 44px !important;
		padding-bottom: 44px !important;
		padding-left: 18px !important;
		padding-right: 18px !important;
	}

	body:is(.page-id-2413, .jah-contacto) #jah-contacto-form > .e-con {
		padding: 22px 16px !important;
		border-radius: 12px !important;
	}

	body:is(.page-id-2413, .jah-contacto) #jah-contacto-form .jah-contacto-side-photo,
	body:is(.page-id-2413, .jah-contacto) #jah-contacto-form .jah-contacto-side-photo img {
		height: 180px !important;
	}

	body:is(.page-id-2413, .jah-contacto) #jah-contacto-form .wpcf7-form {
		grid-template-columns: 1fr !important;
		gap: 0 !important;
	}

	body:is(.page-id-2413, .jah-contacto) #jah-contacto-form .wpcf7-form > p,
	body:is(.page-id-2413, .jah-contacto) #jah-contacto-form .wpcf7-form > p:nth-child(n) {
		grid-column: 1 / -1 !important;
	}

	body:is(.page-id-2413, .jah-contacto) #jah-contacto-form .wpcf7 input[type="submit"],
	body:is(.page-id-2413, .jah-contacto) #jah-contacto-form .wpcf7 .wpcf7-submit,
	body:is(.page-id-2413, .jah-contacto) .elementor[data-elementor-type="wp-page"] .elementor-widget-button a.elementor-button,
	body:is(.page-id-2413, .jah-contacto) .elementor[data-elementor-type="wp-page"] .elementor-widget-button .elementor-button {
		width: 100% !important;
		justify-content: center !important;
	}

	body:is(.page-id-2413, .jah-contacto) #jah-contacto-cta {
		padding-top: 36px !important;
		padding-bottom: 36px !important;
	}

	/* Pareja CTA en móvil: apilada, ancho completo */
	body:is(.page-id-2413, .jah-contacto) #jah-contacto-cta .e-con:has(> .elementor-widget-button) {
		flex-direction: column !important;
		align-items: stretch !important;
		gap: 12px !important;
	}

	body:is(.page-id-2413, .jah-contacto) #jah-contacto-cta .elementor-widget-button,
	body:is(.page-id-2413, .jah-contacto) #jah-contacto-cta .elementor-button {
		width: 100% !important;
	}
}

/* Fallback si :has() no aplica en navegadores viejos — refuerzo por borde izquierdo azul en oficinas */
@supports not selector(:has(*)) {
	body:is(.page-id-2413, .jah-contacto) #jah-contacto-oficinas .e-con.e-con-full {
		border-radius: 10px;
	}
}
