/* Slider de noticias destacadas — portada */

/* El fondo del contenedor se controla desde Elementor (.fio-home-news-slider-wrap). */

.fio-home-news-slider-wrap .fio-see-all,
.fio-home-news-slider-wrap .fio-see-all--on-dark {
	color: #7dd3fc !important;
}

.fio-home-hero {
	position: relative;
	z-index: 0;
}

.fio-news-slider {
	position: relative;
	width: 100%;
	overflow: hidden;
	border-radius: var(--fio-radius-lg, 16px);
	background: #0f2b46;
	box-shadow: var(--fio-shadow-md, 0 8px 24px rgba(15, 43, 70, 0.2));
	margin-bottom: 0;
}

.fio-news-slider__viewport {
	position: relative;
	aspect-ratio: 21 / 9;
	min-height: 280px;
}

.fio-news-slider__track {
	list-style: none;
	margin: 0;
	padding: 0;
	height: 100%;
}

.fio-news-slider__slide {
	position: absolute;
	inset: 0;
	margin: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.45s ease, visibility 0.45s ease;
}

.fio-news-slider__slide.is-active {
	opacity: 1;
	visibility: visible;
	z-index: 1;
}

.fio-news-slider__slide[hidden] {
	display: block !important;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

.fio-news-slider__link {
	display: block;
	position: relative;
	width: 100%;
	height: 100%;
	text-decoration: none;
	color: #fff;
}

.fio-news-slider__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.fio-news-slider__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		180deg,
		rgba(8, 26, 43, 0.15) 0%,
		rgba(8, 26, 43, 0.35) 45%,
		rgba(8, 26, 43, 0.88) 100%
	);
}

.fio-news-slider__caption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 1.5rem 1.75rem 3.25rem;
	z-index: 2;
}

.fio-news-slider__title {
	display: block;
	max-width: 42rem;
	font-family: var(--fio-font-heading, system-ui, sans-serif);
	font-size: clamp(1.35rem, 3vw, 2.15rem);
	font-weight: 700;
	line-height: 1.2;
	color: #fff !important;
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.fio-news-slider__controls {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0.85rem;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	padding: 0 1rem;
	pointer-events: none;
}

.fio-news-slider__btn,
.fio-news-slider__dot {
	pointer-events: auto;
	border: 0;
	cursor: pointer;
}

.fio-news-slider__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.18);
	color: #fff;
	font-size: 1.5rem;
	line-height: 1;
	backdrop-filter: blur(4px);
}

.fio-news-slider__btn:hover,
.fio-news-slider__btn:focus {
	background: rgba(251, 191, 36, 0.95);
	color: #0f2b46;
}

.fio-news-slider__dots {
	display: flex;
	align-items: center;
	gap: 0.4rem;
}

.fio-news-slider__dot {
	width: 0.55rem;
	height: 0.55rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.45);
	padding: 0;
}

.fio-news-slider__dot.is-active,
.fio-news-slider__dot[aria-current="true"] {
	width: 1.35rem;
	background: #fbbf24;
}

@media (max-width: 767px) {
	.fio-news-slider__viewport {
		aspect-ratio: 16 / 11;
		min-height: 260px;
		max-height: 420px;
	}

	.fio-news-slider__caption {
		padding: 1rem 1rem 3rem;
	}

	.fio-news-slider__title {
		font-size: clamp(1.05rem, 4.6vw, 1.35rem);
		display: -webkit-box;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 4;
		overflow: hidden;
	}

	.fio-news-slider {
		border-radius: var(--fio-radius-md, 10px);
	}
}
