.fnc-banners {
	position: relative;
	width: 100%;
	min-width: 0;
	border-radius: 16px;
	overflow: hidden;
	background: rgba(20, 24, 40, 0.85);
	border: 1px solid rgba(255, 255, 255, 0.08);
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
	isolation: isolate;
}

.fnc-banners__track {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: linear-gradient(145deg, rgba(40, 48, 78, 0.9), rgba(18, 20, 34, 0.95));
}

/* Modo automático: el slide activo queda en flujo y define la altura segun la imagen */
.fnc-banners--auto .fnc-banners__track {
	aspect-ratio: auto;
	height: auto;
}

.fnc-banners--auto .fnc-banners__slide.is-active {
	position: relative;
}

.fnc-banners--auto .fnc-banners__image {
	height: auto;
	object-fit: contain;
}

.fnc-banners__slide {
	position: absolute;
	inset: 0;
	/* display:none gana a [hidden] del UA y evita que el tema deje slides “fantasma”. */
	display: none !important;
	color: inherit;
	text-decoration: none;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.45s ease;
	z-index: 1;
}

.fnc-banners__slide.is-active {
	display: block !important;
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	z-index: 2;
}

.fnc-banners__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.fnc-banners__caption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 1.6rem 1rem 0.85rem;
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.78));
	color: #fff;
	pointer-events: none;
}

.fnc-banners__title {
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.25;
	text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

.fnc-banners__body {
	font-size: 0.85rem;
	line-height: 1.35;
	opacity: 0.9;
	max-width: 42rem;
}

/* Solo carruseles con captionStyle = hero (landing). El modo normal no cambia. */
.fnc-banners--caption-hero .fnc-banners__caption {
	padding: 2.4rem 1.35rem 1.25rem;
	gap: 0.4rem;
	background: linear-gradient(180deg, transparent 8%, rgba(0, 0, 0, 0.55) 48%, rgba(0, 0, 0, 0.82));
}

.fnc-banners--caption-hero .fnc-banners__title {
	font-size: clamp(1.25rem, 2.6vw, 2.05rem);
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.15;
	text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
}

.fnc-banners--caption-hero .fnc-banners__body {
	font-size: clamp(0.92rem, 1.35vw, 1.12rem);
	line-height: 1.4;
	opacity: 0.95;
	max-width: min(36rem, 92%);
	text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
}

.fnc-banners--caption-hero:has(.fnc-banners__caption) .fnc-banners__dots {
	bottom: 0.7rem;
}

.fnc-banners__nav {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 0.55rem;
	pointer-events: none;
	z-index: 3;
}

/* Reset duro: el tema aplica button{flex:1} y button:not(...) con mucha especificidad. */
.fnc-banners button.fnc-banners__btn,
.fnc-banners .fnc-banners__btn {
	pointer-events: auto !important;
	box-sizing: border-box !important;
	flex: 0 0 auto !important;
	width: 2.35rem !important;
	height: 2.35rem !important;
	min-width: 2.35rem !important;
	min-height: 2.35rem !important;
	max-width: 2.35rem !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 999px !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	cursor: pointer !important;
	font-size: 0.85rem !important;
	font-weight: 600 !important;
	letter-spacing: 0 !important;
	line-height: 1 !important;
	color: #fff !important;
	background: rgba(0, 0, 0, 0.48) !important;
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35) !important;
	opacity: 1 !important;
	filter: none !important;
	transform: none !important;
	appearance: none !important;
	-webkit-appearance: none !important;
	transition: background 0.15s ease, transform 0.15s ease !important;
	z-index: 5;
}

.fnc-banners button.fnc-banners__btn:hover,
.fnc-banners button.fnc-banners__btn:focus {
	background: rgba(0, 0, 0, 0.72) !important;
	border: 0 !important;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.45) !important;
	outline: none !important;
	filter: none !important;
	transform: scale(1.06) !important;
	color: #fff !important;
}

.fnc-banners button.fnc-banners__btn:active {
	transform: scale(0.98) !important;
	filter: none !important;
}

.fnc-banners__dots {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0.55rem;
	display: flex;
	justify-content: center;
	gap: 0.4rem;
	z-index: 4;
	pointer-events: none;
}

.fnc-banners button.fnc-banners__dot,
.fnc-banners .fnc-banners__dot {
	pointer-events: auto !important;
	box-sizing: border-box !important;
	flex: 0 0 auto !important;
	width: 0.5rem !important;
	height: 0.5rem !important;
	min-width: 0.5rem !important;
	min-height: 0.5rem !important;
	max-width: 1.1rem !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 999px !important;
	cursor: pointer !important;
	font-size: 0 !important;
	font-weight: 400 !important;
	letter-spacing: 0 !important;
	line-height: 0 !important;
	color: transparent !important;
	background: rgba(255, 255, 255, 0.45) !important;
	box-shadow: none !important;
	filter: none !important;
	transform: none !important;
	appearance: none !important;
	-webkit-appearance: none !important;
	transition: background 0.15s ease, width 0.15s ease !important;
}

.fnc-banners button.fnc-banners__dot:hover,
.fnc-banners button.fnc-banners__dot:focus {
	background: rgba(255, 255, 255, 0.8) !important;
	border: 0 !important;
	outline: none !important;
	box-shadow: none !important;
	filter: none !important;
	transform: none !important;
}

.fnc-banners button.fnc-banners__dot.is-active {
	width: 1.1rem !important;
	background: #fff !important;
	transform: none !important;
}

.fnc-banners__caption + .fnc-banners__dots,
.fnc-banners:has(.fnc-banners__caption) .fnc-banners__dots {
	bottom: 0.45rem;
}

@media (max-width: 720px) {
	.fnc-banners__title { font-size: 0.92rem; }
	.fnc-banners__body { font-size: 0.8rem; }

	.fnc-banners--caption-hero .fnc-banners__caption {
		padding: 1.6rem 0.9rem 1rem;
	}

	.fnc-banners--caption-hero .fnc-banners__title {
		font-size: clamp(1.1rem, 5.2vw, 1.45rem);
	}

	.fnc-banners--caption-hero .fnc-banners__body {
		font-size: clamp(0.84rem, 3.4vw, 0.98rem);
	}
}
