/* ENFOCA: estilos que antes ponían Elementor Pro y Use Any Font.
   Lo carga mu-plugins/enfoca-sitio.php. Todas las clases llevan prefijo
   enfoca- para no chocar con Astra, Elementor ni ElementsKit. */

/* ── Fuente Avalanche (antes Use Any Font) ── */
@font-face {
	font-family: 'avalanchenormal';
	src: url('fuentes/2231AvalancheNormal.woff2') format('woff2'),
		url('fuentes/2231AvalancheNormal.woff') format('woff');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
.avalanchenormal { font-family: 'avalanchenormal' !important; }

/* ── Imágenes fijas al hacer scroll (antes «sticky» de Elementor Pro) ──
   Pro las fijaba arriba (desplazamiento 0), dentro de su columna, solo en
   escritorio y tableta. position: sticky hace lo mismo sin JavaScript. */
@media (min-width: 768px) {
	.elementor-widget.enfoca-sticky {
		position: sticky;
		top: 0;
		align-self: flex-start;
		z-index: 1;
	}
}

/* ── Galería de YouTube: botón «Atrás» (antes CSS propio de Elementor Pro) ── */
.ayg-pagination-prev .ayg-btn { font-size: 0 !important; }
.ayg-pagination-prev .ayg-btn::after { content: "Atrás"; font-size: 16px; }

/* ── Formulario de contacto (antes widget Formulario de Elementor Pro) ── */
/* text-align: la caja de Contacto está centrada y las etiquetas lo heredaban. */
.enfoca-form { display: flex; flex-direction: column; width: 100%; text-align: left; }
.enfoca-form__campo { display: flex; flex-direction: column; }
.enfoca-form__trampa { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.enfoca-form__oculto { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.enfoca-form input,
.enfoca-form textarea { width: 100%; max-width: 100%; margin: 0; box-shadow: none; }
.enfoca-form textarea { resize: vertical; }
.enfoca-form button { width: 100%; cursor: pointer; transition: background-color .3s, color .3s; }
.enfoca-form__aviso { margin: 0 0 12px; padding: 12px 16px; border-radius: 4px; font-family: 'Poppins', sans-serif; font-size: 15px; line-height: 1.5; }
.enfoca-form__aviso a { color: inherit; text-decoration: underline; }
.enfoca-form__aviso--ok { background: rgba(255, 255, 255, .92); color: #01657d; }
.enfoca-form__aviso--error { background: #fff3f3; color: #9b1c1c; }

/* Estilo «contacto» (página de Contacto): etiquetas blancas, campos blancos,
   botón celeste. Medidas tomadas del formulario original. */
.enfoca-form--contacto { gap: 10px; }
.enfoca-form--contacto label {
	margin: 0 0 4px;
	color: #fff;
	font-family: 'Poppins', sans-serif;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.4;
}
.enfoca-form--contacto input,
.enfoca-form--contacto textarea {
	padding: 7px 14px;
	min-height: 40px;
	border: 1px solid #69727d;
	border-radius: 3px;
	background: #fff;
	color: #1f2124;
	font-family: 'Roboto', sans-serif;
	font-size: 16px;
	line-height: 1.4;
}
.enfoca-form--contacto button {
	height: 40px;
	margin-top: 6px;
	padding: 0 24px;
	border: 0;
	border-radius: 3px;
	background: var(--e-global-color-primary, #6ec1e4);
	color: #fff;
	font-family: 'Poppins', sans-serif;
	font-size: 15px;
	font-weight: 700;
}
.enfoca-form--contacto button:hover,
.enfoca-form--contacto button:focus-visible {
	background: var(--ast-global-color-0, #01657d);
	color: #fff;
}

/* Estilo «oscuro» (Testimoniales y contenido educativo): campos translúcidos
   redondeados con el texto dentro, botón blanco. */
.enfoca-form--oscuro { gap: 20px; }
.enfoca-form--oscuro input,
.enfoca-form--oscuro textarea {
	padding: 6px 24px;
	min-height: 47px;
	border: 0;
	border-radius: 20px;
	background: rgba(255, 255, 255, .16);
	color: #fff;
	font-family: 'Montserrat', sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.5;
}
.enfoca-form--oscuro textarea { padding-top: 12px; }
.enfoca-form--oscuro input::placeholder,
.enfoca-form--oscuro textarea::placeholder { color: rgba(255, 255, 255, .62); opacity: 1; }
.enfoca-form--oscuro button {
	height: 47px;
	padding: 0 24px;
	border: 0;
	border-radius: 0;
	background: #fff;
	color: #111;
	font-family: 'Poppins', sans-serif;
	font-size: 1rem;
	font-weight: 400;
}
.enfoca-form--oscuro button:hover,
.enfoca-form--oscuro button:focus-visible { background: #fff; color: var(--ast-global-color-6, #111); }

.enfoca-form input:focus,
.enfoca-form textarea:focus { outline: 2px solid var(--e-global-color-primary, #6ec1e4); outline-offset: 1px; }

/* ── Cabecera en celular y tableta (6 oct 2026) ──
   Plantilla de ElementsKit 56: sección 68030cc1 = cabecera de celular,
   87802a1 = de escritorio. Si se cambian esas secciones en Elementor, revisar esto. */

/* Selector de idioma compacto. TranslatePress le da 200 px de ancho (y por JS
   un width en línea) y en celular su columna mide 75 px: se encimaba con «Podcast». */
@media (max-width: 1024px) {
	.elementor-element-2520a51 .trp-language-switcher { width: max-content; height: auto; }
	.elementor-element-2520a51 .trp-language-switcher > div { padding: 2px 21px 2px 4px; background-position: calc(100% - 7px) 50%; }
	.elementor-element-2520a51 .trp-ls-shortcode-current-language { width: max-content !important; }
	.elementor-element-2520a51 .trp-language-switcher > div > a { padding: 5px 2px; font-size: 13px; }
	.elementor-element-2520a51 .trp-language-switcher > div > a > img { margin: 0 3px 0 0; }
	.elementor-element-7005a3e > .elementor-widget-wrap { padding: 0 4px !important; }
}

/* En tableta (768-1024 px, también celulares en horizontal) las dos cabeceras
   estaban ocultas y el sitio se veía sin menú. Se muestra la de celular. */
@media (min-width: 768px) and (max-width: 1024px) {
	.elementor-56 .elementor-element-68030cc1.elementor-hidden-tablet { display: block !important; }
	.elementor-56 .elementor-element-276c69c1 { width: 25% !important; }
	.elementor-56 .elementor-element-7005a3e { width: 20% !important; }
	.elementor-56 .elementor-element-36dcfaf9 { width: 55% !important; }
	.elementor-56 .elementor-element-41bde2af,
	.elementor-56 .elementor-element-f0fb35d { display: none !important; }
	.elementor-56 .elementor-element-36dcfaf9 > .elementor-widget-wrap { flex-wrap: nowrap; align-items: center; }
	.elementor-56 .elementor-element-68dc636.elementor-hidden-tablet { display: block !important; width: 140px; max-width: 140px; }
	.elementor-56 .elementor-element-39a2848e { width: auto; margin-left: auto; }
}

/* ── Accesibilidad: contraste (7 oct 2026) ──
   PageSpeed marcaba texto con contraste menor a 4.5:1. Mismo tono, un poco
   más oscuro. */
.wprevpro_t1_P_3.wprev_preview_tcolor1_T1 { color: #666 !important; }          /* reseñas: #777 → 5.7:1 */
.elementskit-post-body .meta-date-text { color: #1f63e0 !important; }           /* fecha en tarjetas del blog: #2575fc → 5.4:1 */

/* Retina: «Casos más comunes» y «¿Cuándo requiere cirugía?» pasaron de h4 a h3
   (orden de encabezados); se conserva el tamaño que tenían. */
.elementor-element-673d354 h3 { font-size: 20px; line-height: 24px; }

/* Color de texto predeterminado de Elementor (#7A7A7A, 4.3:1 sobre blanco)
   → #666 (5.7:1). Solo afecta a textos que usan el color global «Texto». */
body.elementor-kit-5 { --e-global-color-text: #666666; }

/* Contraste aprobado por Alan (7 oct 2026), con colores de la marca. */
/* Barra de copyright del pie: #41A1B1 (3.0:1 con texto blanco) → #01657D (6.6:1). */
.elementor-43 .elementor-element.elementor-element-5d6d224:not(.elementor-motion-effects-element-type-background),
.elementor-43 .elementor-element.elementor-element-5d6d224 > .elementor-motion-effects-container > .elementor-motion-effects-layer { background-color: #01657D !important; }
/* Catarata, botón «Agendar valoración»: texto blanco sobre #00CFC6 (1.95:1) → texto #003B39 (6.4:1). */
.elementor-380 .elementor-element.elementor-element-20ab6b1 .elementskit-btn,
.elementor-380 .elementor-element.elementor-element-20ab6b1 .elementskit-btn:hover { color: #003B39 !important; fill: #003B39 !important; }
/* Nosotros: nombres de asociaciones en el azul predeterminado de Elementor #6EC1E4 (2.0:1) → #01657D (6.6:1). */
.elementor-331 :is(.elementor-element-53fa8a2, .elementor-element-1f012b9, .elementor-element-ab25ca5, .elementor-element-f2fef8d, .elementor-element-d9caf9b, .elementor-element-42c9131) .elementor-heading-title { color: #01657D !important; }
