/* Fullscreen Slider — frontend
   Fiel al diseño Slider 3.svg: foto full-bleed + overlay + flechas + dots píldora + chevron. */

.fss {
	position: relative;
	width: 100%;
	overflow: hidden;
	background: #111;
	height: var(--fss-h-m, 70vh);
	isolation: isolate;          /* contexto de apilado propio para el z-index de las capas */
	touch-action: pan-y;         /* deja el scroll vertical al navegador; el horizontal es del arrastre */
	--fss-accent: #EB763A;
	--fss-overlay-a: .35;
}
.fss, .fss * { box-sizing: border-box; }
.fss:focus { outline: none; }

/* Arrastre con mouse */
.fss--draggable { cursor: grab; }
.fss--draggable.fss--dragging { cursor: grabbing; }
.fss--dragging { user-select: none; }

/* Alturas por breakpoint */
.fss.fss--m-ratio { height: auto; aspect-ratio: var(--fss-ar-m, 1400 / 767); }

@media (min-width: 783px) {
	.fss { height: var(--fss-h-d, 100vh); }
	.fss.fss--m-ratio { aspect-ratio: auto; }            /* resetea la proporción móvil */
	.fss.fss--d-ratio { height: auto; aspect-ratio: var(--fss-ar-d, 1400 / 767); }
}

/* Pista + slides */
.fss__track { position: absolute; inset: 0; }

.fss--slide .fss__track {
	display: flex;
	height: 100%;
	transition: transform .6s cubic-bezier(.4, 0, .2, 1);
	will-change: transform;
}
.fss--slide .fss__slide { position: relative; flex: 0 0 100%; height: 100%; }

.fss--fade .fss__slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity .8s ease;
	pointer-events: none;
}
.fss--fade .fss__slide.is-active { opacity: 1; pointer-events: auto; z-index: 1; }

.fss__link { display: block; width: 100%; height: 100%; }
.fss__pic { display: block; width: 100%; height: 100%; }
.fss .fss__slide .fss__img {
	/* <img> es un elemento REEMPLAZADO: con height:auto NO se estira aunque tenga
	   inset:0 (usa su alto natural). Reglas de tema como `.elementor img { height:auto }`
	   (especificidad 0,1,1) le ganan a `.fss__img` (0,1,0) y colapsaban la foto dejando
	   franja negra. Ganamos con especificidad alta (0,3,0) + !important en width/height. */
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
	object-position: center;
	display: block;
	-webkit-user-drag: none;
	user-select: none;
}

/* Overlay degradado (por slide): encima de la imagen, debajo del contenido */
.fss__overlay {
	position: absolute;
	inset: 0;
	z-index: 2;
	pointer-events: none;
	background: linear-gradient(
		180deg,
		rgba(0, 0, 0, var(--fss-overlay-a)) 0%,
		rgba(0, 0, 0, 0) 26%,
		rgba(0, 0, 0, 0) 58%,
		rgba(0, 0, 0, calc(var(--fss-overlay-a) * .7)) 100%
	);
}

/* Contenido HTML encima del slider (global o por slide) */
.fss__content {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 14px;
	text-align: center;
	padding: 6%;
	color: #fff;
	pointer-events: none;              /* el texto no bloquea el arrastre… */
	text-shadow: 0 2px 12px rgba(0, 0, 0, .5);
}
.fss__content--slide { z-index: 3; }
.fss__content--global { z-index: 4; }
/* …pero los elementos interactivos sí reciben clicks */
.fss__content a,
.fss__content button,
.fss__content input,
.fss__content select,
.fss__content textarea,
.fss__content [data-clickable] { pointer-events: auto; }
.fss__content img { max-width: 100%; height: auto; }
.fss__content :where(h1, h2, h3, p) { margin: 0; }
.fss__content a:not([class]) { color: #fff; text-decoration: underline; }

/* Flechas */
.fss__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 5;
	width: 48px;
	height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	border: 0;
	padding: 0;
	cursor: pointer;
	color: #fff;
	opacity: .75;
	transition: opacity .2s ease, transform .2s ease;
	-webkit-tap-highlight-color: transparent;
}
.fss__arrow:hover, .fss__arrow:focus-visible { opacity: 1; outline: none; }
.fss__arrow--prev { left: 14px; }
.fss__arrow--next { right: 14px; }
.fss__arrow--prev:hover { transform: translateY(-50%) translateX(-2px); }
.fss__arrow--next:hover { transform: translateY(-50%) translateX(2px); }
.fss__arrow svg {
	width: 28px;
	height: 28px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.2;
	stroke-linecap: round;
	stroke-linejoin: round;
	filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .55));
}

/* Dots píldora */
.fss__dots {
	position: absolute;
	left: 50%;
	bottom: 24px;
	transform: translateX(-50%);
	z-index: 5;
	display: flex;
	gap: 6px;
	align-items: center;
}
.fss__dot {
	width: 23px;
	height: 7px;
	padding: 0;
	border: 0;
	border-radius: 3.5px;
	cursor: pointer;
	background: rgba(255, 255, 255, .85);
	box-shadow: 0 1px 2px rgba(0, 0, 0, .3);
	transition: width .3s ease, background .3s ease;
	-webkit-tap-highlight-color: transparent;
}
.fss__dot:hover { background: #fff; }
.fss__dot.is-active { width: 35px; background: var(--fss-accent); }
.fss__dot:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* Chevron scroll-down */
.fss__chevron {
	position: absolute;
	left: 50%;
	bottom: 52px;
	transform: translateX(-50%);
	z-index: 5;
	width: 40px;
	height: 26px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	border: 0;
	padding: 0;
	cursor: pointer;
	color: #fff;
	opacity: .9;
	animation: fss-bounce 2s infinite;
	-webkit-tap-highlight-color: transparent;
}
.fss__chevron svg {
	width: 26px;
	height: 16px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.2;
	stroke-linecap: round;
	stroke-linejoin: round;
	filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .55));
}
.fss__chevron:focus-visible { outline: none; opacity: 1; }

@keyframes fss-bounce {
	0%, 100% { transform: translateX(-50%) translateY(0); }
	50% { transform: translateX(-50%) translateY(6px); }
}

/* Móvil */
@media (max-width: 782px) {
	.fss__arrow { width: 40px; height: 40px; opacity: .85; }
	.fss__arrow svg { width: 22px; height: 22px; }
	.fss__arrow--prev { left: 4px; }
	.fss__arrow--next { right: 4px; }
	.fss__dots { bottom: 18px; }
	.fss__chevron { bottom: 42px; }
}

/* Accesibilidad: menos movimiento */
@media (prefers-reduced-motion: reduce) {
	.fss__chevron { animation: none; }
	.fss--fade .fss__slide,
	.fss--slide .fss__track { transition: none; }
}
