/*
 * Eskura: mejoras progresivas.
 *
 * Este archivo se carga después de Elementor para que las correcciones no se
 * pierdan al regenerar su CSS.
 */

/* La clave de producción de reCAPTCHA no admite localhost. */
.eskura-environment-local .grecaptcha-badge {
	display: none !important;
}

/* Navegación accesible: destino real del enlace de salto y foco inequívoco. */
.eskura-main-content {
	display: block;
	scroll-margin-top: 96px;
}

.eskura-main-content:focus {
	outline: 3px solid #277f86;
	outline-offset: -3px;
}

body .skip-link.screen-reader-text:focus {
	background: #fff;
	border: 3px solid #2c245c;
	border-radius: 8px;
	box-shadow: 0 8px 24px rgba(23, 18, 63, 0.24);
	clip: auto !important;
	clip-path: none;
	color: #2c245c;
	display: block;
	font-size: 16px;
	font-weight: 800;
	height: auto;
	left: 16px;
	line-height: 1.3;
	margin: 0;
	overflow: visible;
	padding: 12px 16px;
	position: fixed !important;
	top: 16px;
	width: auto;
	z-index: 100000;
}

:where(a[href], button, input, select, textarea, [tabindex]:not([tabindex="-1"])):focus-visible {
	box-shadow: 0 0 0 2px #fff, 0 0 0 6px #2c245c !important;
	outline: 2px solid transparent !important;
	outline-offset: 3px;
}

.elementor-menu-toggle,
.elementor-swiper-button {
	min-height: 44px;
	min-width: 44px;
}

.swiper-pagination-bullet[tabindex="0"] {
	background-clip: content-box;
	box-sizing: border-box;
	min-height: 24px;
	min-width: 24px;
	padding: 8px;
}

/* Contraste AA conservando la paleta original de Eskura. */
.elementor-location-header .elementor-nav-menu--main .elementor-item.elementor-item-active,
.elementor-location-header .elementor-nav-menu--main .elementor-item:hover,
.elementor-location-header .elementor-nav-menu--main .elementor-item:focus-visible {
	color: #277f86 !important;
}

.elementor-element.elementor-element-f32c164 .elementor-heading-title {
	color: #2c245c !important;
}

.elementor-location-header .elementor-button,
.elementor-element.elementor-element-e26990a .elementor-button,
.elementor-element.elementor-element-641d1fe .elementor-button,
.elementor-element.elementor-element-3636270 .elementor-field-type-submit .elementor-button {
	background-color: #277f86 !important;
	color: #fff !important;
}

.elementor-location-header .elementor-button:hover,
.elementor-element.elementor-element-e26990a .elementor-button:hover,
.elementor-element.elementor-element-641d1fe .elementor-button:hover,
.elementor-element.elementor-element-3636270 .elementor-field-type-submit .elementor-button:hover {
	background-color: #17123f !important;
}

.elementor-element.elementor-element-8c53f85 .elementor-button {
	color: #fff !important;
}

.elementor-element.elementor-element-a522ff0 .elementor-button {
	color: #277f86 !important;
}

.elementor-element.elementor-element-8c53f85 .elementor-button:hover,
.elementor-element.elementor-element-a522ff0 .elementor-button:hover {
	background-color: #277f86 !important;
	color: #fff !important;
}

.elementor-element.elementor-element-3636270 a {
	color: #2c245c !important;
	text-decoration: underline;
	text-decoration-thickness: 0.1em;
	text-underline-offset: 0.18em;
}

.elementor-element.elementor-element-15799c8 a {
	color: #fff !important;
	text-decoration: underline;
	text-decoration-thickness: 0.1em;
	text-underline-offset: 0.18em;
}

:is(
	.elementor-element-e56751e,
	.elementor-element-37fc694,
	.elementor-element-286927e,
	.elementor-element-1e87edb,
	.elementor-element-1fa8e2b,
	.elementor-element-8e68107
) p {
	color: #277f86 !important;
}

/* Portada: propuesta especializada y dos caminos de conversión. */
.elementor-element.elementor-element-cc5a72b {
	min-height: 620px;
}

.eskura-hero-title .elementor-heading-title {
	line-height: 1.08;
	max-width: 780px;
}

.eskura-hero-title .eskura-accent {
	color: #277f86;
}

.eskura-hero-subtitle {
	max-width: 720px;
}

.eskura-hero-subtitle p {
	color: #2c245c;
	font-family: "Roboto Flex", Arial, sans-serif;
	font-size: clamp(17px, 1.7vw, 21px);
	font-weight: 500;
	line-height: 1.5;
	margin: 0;
}

.eskura-hero-actions {
	display: grid;
	gap: 20px;
	margin-top: 6px;
}

.eskura-hero-actions__buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.eskura-hero-button {
	align-items: center;
	border: 2px solid #2c245c;
	border-radius: 999px;
	display: inline-flex;
	font-family: "Numans", Arial, sans-serif;
	font-size: 15px;
	font-weight: 800;
	justify-content: center;
	line-height: 1.25;
	min-height: 52px;
	padding: 11px 20px;
	text-align: center;
	text-decoration: none !important;
	transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.eskura-hero-button--primary {
	background: #2c245c;
	color: #fff !important;
}

.eskura-hero-button--secondary {
	background: rgba(255, 255, 255, 0.74);
	color: #2c245c !important;
}

.eskura-hero-button:hover {
	background: #17123f;
	border-color: #17123f;
	color: #fff !important;
	transform: translateY(-2px);
}

.eskura-hero-button:focus-visible {
	outline: 3px solid #277f86;
	outline-offset: 4px;
}

.eskura-hero-proof {
	display: flex;
	flex-wrap: wrap;
	gap: 9px;
}

.eskura-hero-proof span {
	background: rgba(255, 255, 255, 0.8);
	border: 1px solid rgba(44, 36, 92, 0.2);
	border-radius: 999px;
	color: #2c245c;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.2;
	padding: 7px 12px;
}

/* Contacto directo junto al formulario de presupuesto. */
.eskura-contact-links {
	align-items: start;
	display: grid;
	gap: clamp(18px, 2.2vw, 28px);
	max-width: 460px;
}

.eskura-contact-links__item {
	display: grid;
	gap: 6px;
}

.eskura-contact-links__label {
	color: #2c245c;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.3;
}

.eskura-contact-link {
	align-items: center;
	border-radius: 12px;
	color: #2c245c !important;
	display: inline-flex;
	font-size: clamp(18px, 2vw, 23px);
	font-weight: 700;
	gap: 12px;
	line-height: 1.25;
	max-width: 100%;
	padding: 5px 8px 5px 0;
	text-decoration: none !important;
	transition: color 160ms ease, transform 160ms ease;
	width: fit-content;
}

.eskura-contact-link__icon {
	align-items: center;
	background: rgba(255, 255, 255, 0.58);
	border: 1px solid rgba(44, 36, 92, 0.14);
	border-radius: 50%;
	box-shadow: 0 5px 16px rgba(44, 36, 92, 0.1);
	display: inline-flex;
	flex: 0 0 44px;
	height: 44px;
	justify-content: center;
	transition: background-color 160ms ease, box-shadow 160ms ease;
	width: 44px;
}

.eskura-contact-link__icon svg {
	fill: currentColor;
	height: 23px;
	width: 23px;
}

.eskura-contact-link:hover {
	color: #17123f !important;
	transform: translateX(3px);
}

.eskura-contact-link:hover .eskura-contact-link__icon {
	background: #fff;
	box-shadow: 0 7px 20px rgba(44, 36, 92, 0.18);
}

.eskura-contact-link:focus-visible {
	outline: 3px solid #2c245c;
	outline-offset: 4px;
}

.eskura-contact-link--instagram {
	background: #2c245c;
	box-shadow: 0 9px 24px rgba(44, 36, 92, 0.22);
	color: #fff !important;
	margin-top: 4px;
	padding: 12px 19px;
}

.eskura-contact-link--instagram .eskura-contact-link__icon {
	background: rgba(255, 255, 255, 0.12);
	border-color: rgba(255, 255, 255, 0.35);
	box-shadow: none;
}

.eskura-contact-link--instagram small,
.eskura-contact-link--instagram strong {
	display: block;
}

.eskura-contact-link--instagram small {
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.02em;
	margin-bottom: 2px;
}

.eskura-contact-link--instagram strong {
	font-size: 17px;
	line-height: 1.2;
}

.eskura-contact-link--instagram:hover {
	background: #17123f;
	color: #fff !important;
}

.eskura-contact-link--instagram:hover .eskura-contact-link__icon {
	background: rgba(255, 255, 255, 0.2);
}

@media (max-width: 767px) {
	/* Última barrera para capas animadas y widgets de terceros posicionados. */
	html,
	body {
		max-width: 100%;
		overflow-x: clip;
	}

	/* Elementor guardó estos widgets con un ancho superior al contenedor. */
	.elementor-23 .elementor-element.elementor-element-167fe86,
	.elementor-23 .elementor-element.elementor-element-180d529 {
		--container-widget-width: 100%;
		max-width: 100%;
		width: 100%;
	}

	/* La URL escrita completa de Instagram no cabía en pantallas estrechas. */
	.elementor-element.elementor-element-350d907,
	.elementor-element.elementor-element-350d907 a,
	.elementor-element.elementor-element-350d907 strong {
		max-width: 100%;
		overflow-wrap: anywhere;
		word-break: break-word;
	}

	/* Contener las capas que Elementor desplaza durante las animaciones. */
	.elementor-element.elementor-element-cc5a72b,
	.elementor-element.elementor-element-cc5a72b > .elementor-motion-effects-container,
	.elementor-element.elementor-element-e51234c,
	.elementor-element.elementor-element-e51234c .swiper,
	.elementor-element.elementor-element-e51234c .swiper-container {
		max-width: 100%;
		overflow: hidden;
	}

	/* Los iframes nunca deben ampliar el ancho de un formulario. */
	.elementor-form iframe,
	.g-recaptcha,
	.g-recaptcha > div {
		max-width: 100%;
	}

	/* Los campos del presupuesto se apilan para mantener una lectura cómoda. */
	.elementor-form .elementor-field-group {
		width: 100% !important;
	}

	.eskura-contact-links {
		justify-items: center;
		margin-inline: auto;
		text-align: center;
	}

	.elementor-element.elementor-element-cc5a72b {
		min-height: 700px;
	}

	.eskura-hero-title .elementor-heading-title,
	.eskura-hero-subtitle,
	.eskura-hero-actions {
		margin-inline: auto;
		text-align: center;
	}

	.eskura-hero-actions__buttons,
	.eskura-hero-proof {
		justify-content: center;
	}

	.eskura-hero-proof {
		box-sizing: border-box;
		padding-right: 48px;
	}

	.eskura-hero-button {
		width: min(100%, 310px);
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto !important;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		scroll-behavior: auto !important;
		transition-delay: 0ms !important;
		transition-duration: 0.01ms !important;
	}

	.elementor-motion-effects-element {
		transform: none !important;
	}

	.eskura-contact-link,
	.eskura-contact-link__icon,
	.eskura-hero-button {
		transition: none;
	}
}

@supports not (overflow: clip) {
	@media (max-width: 767px) {
		html,
		body {
			overflow-x: hidden;
		}
	}
}
