/* FusionApps Hero Slider */
.fahs {
	--fahs-arrow: 46px;
	--fahs-arrow-color: #fff;
	--fahs-arrow-bg: rgba(0, 0, 0, .35);
	--fahs-arrow-bg-hover: rgba(0, 0, 0, .6);
	--fahs-dot: rgba(255, 255, 255, .55);
	--fahs-dot-active: #fff;
	--fahs-speed: 600ms;
	--fahs-fit: 1; /* 1 = el video llena el slider (por defecto también en celular), 0 = video completo con bandas */
	--fahs-yt-pad: 120px; /* alto extra del iframe arriba y abajo: ahí YouTube pone el título y el logo, y queda fuera de la vista */
	--fahs-video-bg: #000;
	--fahs-sound-bg: rgba(0, 0, 0, .45);
	position: relative;
	overflow: hidden;
	isolation: isolate;
	width: 100%;
}
.fahs-viewport {
	overflow: hidden;
	touch-action: pan-y;
}
.fahs-media,
.fahs picture {
	display: block;
}
.fahs-media {
	color: inherit;
	text-decoration: none;
	-webkit-user-drag: none;
}
.fahs img {
	display: block;
	width: 100%;
	max-width: none;
	height: auto;
	margin: 0;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	user-select: none;
}

/* alto fijo: la imagen cubre el área y se recorta */
.fahs.is-fixed .fahs-media {
	height: 580px;
}
.fahs.is-fixed .fahs-media picture,
.fahs.is-fixed .fahs-media img {
	height: 100%;
}
.fahs.is-fixed .fahs-media img {
	object-fit: cover;
}

/* ── video de YouTube ──
 * La caja del video tiene el mismo alto que las imágenes: en "según la imagen"
 * usa la proporción de la primera imagen (escritorio o celular); en alto fijo,
 * el alto elegido. Adentro, el video se agranda para llenarla (recortando
 * bordes) o se achica para entrar completo, según "Encuadre del video".
 */
.fahs-video {
	position: relative;
	overflow: hidden;
	background: var(--fahs-video-bg);
	container-type: size;
}
.fahs.is-auto .fahs-video {
	aspect-ratio: var(--fahs-ar-live, var(--fahs-ar-d, 16 / 9));
}
.fahs-frame {
	--fahs-fw: calc(var(--fahs-fit) * max(100cqw, 100cqh * var(--fahs-vr, 1.7778)) + (1 - var(--fahs-fit)) * min(100cqw, 100cqh * var(--fahs-vr, 1.7778)));
	position: absolute;
	left: 50%;
	top: 50%;
	width: var(--fahs-fw);
	height: calc(var(--fahs-fw) / var(--fahs-vr, 1.7778));
	overflow: hidden;
	transform: translate(-50%, -50%);
}
@supports not (width: 1cqw) {
	.fahs-frame {
		left: 0;
		top: 0;
		width: 100%;
		height: 100%;
		transform: none;
	}
}
.fahs .fahs-frame img.fahs-poster,
.fahs .fahs-frame iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	max-width: none;
	height: 100%;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
}
.fahs .fahs-frame img.fahs-poster {
	object-fit: cover;
	object-position: center;
	transition: opacity .5s ease;
}
.fahs .fahs-frame iframe {
	/* Más alto que el video: YouTube lo centra y deja su título y su logo en las
	 * franjas de arriba y abajo, que el recorte de .fahs-frame esconde. */
	top: calc(-1 * var(--fahs-yt-pad));
	height: calc(100% + 2 * var(--fahs-yt-pad));
	/* Nunca recibe toques ni mouse: YouTube no muestra pausa, anterior ni siguiente,
	 * y se puede deslizar y tocar el enlace encima del video. */
	pointer-events: none;
	opacity: 0;
	transition: opacity .5s ease;
}
.fahs .fahs-video.is-playing iframe {
	opacity: 1;
}
.fahs .fahs-video.is-playing img.fahs-poster {
	opacity: 0;
}
.fahs .fahs-video-link {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: block;
	background: transparent;
}

.fahs button.fahs-sound,
.fahs button.fahs-sound:hover,
.fahs button.fahs-sound:focus,
.fahs button.fahs-sound:active {
	position: absolute;
	right: 14px;
	bottom: 14px;
	left: auto;
	top: auto;
	z-index: 4;
	box-sizing: border-box;
	width: 40px;
	min-width: 0;
	height: 40px;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--fahs-sound-bg);
	color: #fff;
	box-shadow: none;
	font-size: 0;
	line-height: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transform: none;
	transition: opacity .2s;
	-webkit-backdrop-filter: blur(2px);
	backdrop-filter: blur(2px);
}
.fahs button.fahs-sound:hover {
	opacity: .85;
}
.fahs button.fahs-sound:focus:not(:focus-visible) {
	outline: none;
}
.fahs button.fahs-sound:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 2px;
}
.fahs button.fahs-sound svg {
	display: block;
	width: 22px;
	height: 22px;
	margin: 0;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.fahs button.fahs-sound .fahs-spk {
	fill: currentColor;
}
.fahs .fahs-video .fahs-on,
.fahs .fahs-video.is-muted .fahs-off {
	display: inline;
}
.fahs .fahs-video .fahs-off,
.fahs .fahs-video.is-muted .fahs-on {
	display: none;
}

/* deslizar */
.fahs--slide .fahs-track {
	display: flex;
	align-items: flex-start;
	transition: transform var(--fahs-speed) cubic-bezier(.4, 0, .2, 1);
	will-change: transform;
}
.fahs--slide .fahs-slide {
	flex: 0 0 100%;
	min-width: 0;
}
.fahs.is-dragging .fahs-track {
	transition: none;
}

/* fundido */
.fahs--fade .fahs-track {
	display: grid;
}
.fahs--fade .fahs-slide {
	grid-area: 1 / 1;
	opacity: 0;
	visibility: hidden;
	transition: opacity var(--fahs-speed) ease, visibility 0s linear var(--fahs-speed);
}
.fahs--fade .fahs-slide.is-active {
	opacity: 1;
	visibility: visible;
	z-index: 1;
	transition: opacity var(--fahs-speed) ease;
}

/* flechas
 * Selectores con más peso que los estilos de botón del tema (Hello Elementor,
 * Astra…) y del kit de Elementor, que si no les ponen borde, relleno y colores.
 */
.fahs button.fahs-arrow,
.fahs button.fahs-arrow:hover,
.fahs button.fahs-arrow:focus,
.fahs button.fahs-arrow:active {
	position: absolute;
	top: 50%;
	z-index: 3;
	box-sizing: border-box;
	width: var(--fahs-arrow);
	min-width: 0;
	height: var(--fahs-arrow);
	min-height: 0;
	margin: calc(var(--fahs-arrow) / -2) 0 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--fahs-arrow-bg);
	color: var(--fahs-arrow-color);
	box-shadow: none;
	font-size: 0;
	line-height: 0;
	text-decoration: none;
	text-transform: none;
	letter-spacing: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transform: none;
	transition: background-color .2s, opacity .2s;
	-webkit-backdrop-filter: blur(2px);
	backdrop-filter: blur(2px);
}
.fahs button.fahs-arrow:hover,
.fahs button.fahs-arrow:focus-visible {
	background: var(--fahs-arrow-bg-hover);
}
.fahs button.fahs-arrow:focus:not(:focus-visible),
.fahs button.fahs-dot:focus:not(:focus-visible) {
	outline: none;
}
.fahs button.fahs-arrow:focus-visible,
.fahs button.fahs-dot:focus-visible {
	outline: 3px solid var(--fahs-dot-active);
	outline-offset: 2px;
}
.fahs button.fahs-arrow[disabled] {
	opacity: .35;
	cursor: default;
}
.fahs button.fahs-arrow svg {
	display: block;
	width: 46%;
	height: 46%;
	margin: 0;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.6;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.fahs button.fahs-prev {
	left: 14px;
	right: auto;
}
.fahs button.fahs-next {
	right: 14px;
	left: auto;
}

/* puntos */
.fahs .fahs-dots {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 14px;
	z-index: 3;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	pointer-events: none;
}
.fahs button.fahs-dot,
.fahs button.fahs-dot:hover,
.fahs button.fahs-dot:focus,
.fahs button.fahs-dot:active {
	pointer-events: auto;
	box-sizing: border-box;
	flex: none;
	width: 10px;
	min-width: 0;
	height: 10px;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: var(--fahs-dot);
	box-shadow: 0 1px 4px rgba(0, 0, 0, .35);
	font-size: 0;
	line-height: 0;
	cursor: pointer;
	transform: none;
	transition: width .3s, background-color .3s;
}
.fahs button.fahs-dot.is-active {
	width: 28px;
	background: var(--fahs-dot-active);
}
.fahs-dots-below .fahs .fahs-dots {
	position: static;
	padding: 14px 0 4px;
}
.fahs-dots-below .fahs button.fahs-dot {
	box-shadow: none;
}

.fahs-empty {
	padding: 40px 20px;
	text-align: center;
	border: 2px dashed #c9c9c9;
	color: #666;
	font-size: 15px;
}

@media (max-width: 767px) {
	.fahs {
		--fahs-arrow: 38px; /* el tamaño elegido en Elementor tiene prioridad */
	}
	.fahs button.fahs-prev {
		left: 8px;
	}
	.fahs button.fahs-next {
		right: 8px;
	}
	.fahs--no-arrows-mobile button.fahs-arrow,
	.fahs--no-arrows-mobile button.fahs-arrow:hover,
	.fahs--no-arrows-mobile button.fahs-arrow:focus {
		display: none;
	}
	.fahs .fahs-dots {
		bottom: 10px;
	}
	.fahs button.fahs-sound,
	.fahs button.fahs-sound:hover,
	.fahs button.fahs-sound:focus,
	.fahs button.fahs-sound:active {
		right: 10px;
		bottom: 10px;
		width: 36px;
		height: 36px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.fahs--slide .fahs-track,
	.fahs--fade .fahs-slide,
	.fahs--fade .fahs-slide.is-active,
	.fahs button.fahs-dot,
	.fahs .fahs-frame img.fahs-poster,
	.fahs .fahs-frame iframe {
		transition: none;
	}
}
