/* ── ba-text-slider ───────────────────────────────────────────────────────── */

.ba-text-slider {
	--ba-slider-min-h: 730px;
	position: relative;
	width: 100%;
	min-height: var( --ba-slider-min-h );
}

/* Swiper wrapper interno */
.ba-text-slider__swiper {
	width: 100%;
	min-height: var( --ba-slider-min-h );
	height: auto;
}

/* Reset list styles */
.ba-text-slider__track {
	list-style: none;
	margin: 0;
	padding: 0;
}

/* Slide — min-height propagado via CSS var, crece si el contenido es más alto */
.ba-text-slider__slide {
	min-height: var( --ba-slider-min-h );
	height: auto;
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
	position: relative;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

/* Modo fade: anular el deslizamiento horizontal y superponer slides
   usando opacity. Swiper sigue gestionando el drag/swipe en modo slide
   pero visualmente se ve como crossfade. */
.ba-text-slider--fade .ba-text-slider__track {
	transform: none !important;
	position: relative;
}

.ba-text-slider--fade .ba-text-slider__slide {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	opacity: 0;
	transition: opacity 0.5s ease;
	pointer-events: none;
	z-index: 1;
}

.ba-text-slider--fade .ba-text-slider__slide.swiper-slide-active {
	opacity: 1;
	pointer-events: auto;
	z-index: 2;
}

/* En fade, los slides son absolute y el track colapsa en alto.
   Reservamos al menos el alto del slider, y permitimos crecer. */
.ba-text-slider--fade .ba-text-slider__track {
	min-height: var( --ba-slider-min-h );
	height: auto;
}

/* Overlay */
.ba-text-slider__overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
}

/* Content — contenedor ancho del sitio (como un container de Elementor) */
.ba-text-slider__content {
	position: relative;
	z-index: 2;
	flex: 1 0 auto;
	display: flex;
	flex-direction: column;
	justify-content: center;
	width: 100%;
	min-height: var( --ba-slider-min-h );
	max-width: var( --container-max-width, 1140px );
	margin-left: auto;
	margin-right: auto;
	padding: 80px;
	box-sizing: border-box;
}

/* Text wrap — contenedor interno del bloque de texto con ancho configurable */
.ba-text-slider__text-wrap {
	max-width: 600px;
	width: 100%;
}

/* Typography */
.ba-text-slider__eyebrow {
	margin: 0 0 8px;
	font-size: 16px;
	text-transform: uppercase;
}

.ba-text-slider__title {
	margin: 0 0 20px;
	font-size: 48px;
}

.elementor-widget-ba_text_slider .ba-text-slider__text {
	margin: 0;
	font-size: 18px;
	line-height: 1.6;
	color: #ffffff;
}

.elementor-widget-ba_text_slider .ba-text-slider__text p {
	margin: 0 0 1em;
	font-size: inherit;
	line-height: inherit;
	color: inherit;
}

.elementor-widget-ba_text_slider .ba-text-slider__text p:last-child {
	margin-bottom: 0;
}

/* Navigation */
.ba-text-slider__nav {
	position: absolute;
	bottom: 40px;
	left: 0;
	right: 0;
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 60px;
	max-width: var( --container-max-width, 1140px );
	width: 100%;
	margin-left: auto;
	margin-right: auto;
	padding-left: 60px;
	padding-right: 60px;
	box-sizing: border-box;
}

.ba-text-slider__nav-btn {
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
	color: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: opacity 0.2s ease, color 0.2s ease;
	line-height: 0;
}

.ba-text-slider__nav-btn:hover {
	opacity: 0.7;
}

.ba-text-slider__nav-btn[disabled],
.ba-text-slider__nav-btn.is-disabled {
	color: #949494;
	cursor: not-allowed;
	opacity: 1;
}

.ba-text-slider__nav-btn[disabled]:hover,
.ba-text-slider__nav-btn.is-disabled:hover {
	opacity: 1;
}

.ba-text-slider__nav-btn:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 4px;
	border-radius: 2px;
}

.ba-text-slider__nav-btn svg {
	width: 33px;
	height: 33px;
}

.ba-text-slider__nav-btn svg path {
	fill: currentColor;
}

/* Mobile */
@media (max-width: 767px) {
	.ba-text-slider__slide {
		justify-content: flex-end;
	}

	.ba-text-slider__content {
		margin-top: auto;
		justify-content: flex-end;
		padding-bottom: 100px !important;
	}

	.ba-text-slider__title {
		font-size: 26px;
	}

	.ba-text-slider__eyebrow {
		font-size: 13px;
	}

	.ba-text-slider__text {
		font-size: 15px;
	}

	.ba-text-slider__nav {
		bottom: 20px;
		right: 0 !important;
		left: 0 !important;
		top: auto;
		justify-content: center;
		gap: 32px;
	}
}

@media (max-width: 1024px) and (min-width: 768px) {
	.ba-text-slider__content {
		padding: 60px;
	}

	.ba-text-slider__title {
		font-size: 36px;
	}
}
