/* Baobab – Enlace de envoltura para Elementor */

:where(.baobab-wl-on) {
	position: relative;
}

/* Enlace real superpuesto a todo el elemento */
.baobab-wl-on > .baobab-wl {
	position: absolute;
	inset: 0;
	z-index: 0;
	display: block;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	text-decoration: none;
}

.baobab-wl-on > .baobab-wl:focus-visible {
	outline: 2px solid #005fcc;
	outline-offset: -3px;
}

/* Texto solo para lectores de pantalla */
.baobab-wl__txt {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

/* El contenido deja pasar el clic hacia el enlace de envoltura… */
body:not(.elementor-editor-active) .baobab-wl-on > :not(.baobab-wl) {
	pointer-events: none;
}

/* …salvo lo que es interactivo, que mantiene su propio enlace/acción */
body:not(.elementor-editor-active) .baobab-wl-on > :not(.baobab-wl) :is(a, button, input, select, textarea, label, summary, iframe, video, audio, [role="button"], [tabindex]) {
	pointer-events: auto;
}

/* …y queda por encima del enlace de envoltura (especificidad 0: no pisa posiciones ya definidas) */
:where(body:not(.elementor-editor-active) .baobab-wl-on > :not(.baobab-wl)) :where(a, button, input, select, textarea, label, summary, [role="button"]) {
	position: relative;
	z-index: 1;
}

/* Los vídeos de fondo nunca capturan el clic */
body:not(.elementor-editor-active) .baobab-wl-on .elementor-background-video-container,
body:not(.elementor-editor-active) .baobab-wl-on .elementor-background-video-container * {
	pointer-events: none !important;
}

/* En el editor de Elementor no se muestra el enlace superpuesto */
.elementor-editor-active .baobab-wl {
	display: none !important;
}
