/* =============================================================================
   Hero Slider  —  css/slider.css
   ============================================================================= */

/* ── Contenedor principal ───────────────────────────────────────────────────── */
.hero-slider {
	position: relative;
	width: 100%;
	height: 600px;
	overflow: hidden;
	background: var(--accent, #000);
}

/* ── Track (posiciona todos los slides juntos) ──────────────────────────────── */
.hero-slider__track {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

/* ── Slides ─────────────────────────────────────────────────────────────────── */
.hero-slider__slide {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	opacity: 0;
	transform: scale(1.04);
	transition: opacity .9s ease, transform .9s ease;
	will-change: opacity, transform;
}

.hero-slider__slide.is-active {
	opacity: 1;
	transform: scale(1);
}

/* ── Overlay oscuro ─────────────────────────────────────────────────────────── */
.hero-slider__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to bottom,
		rgba(0, 0, 0, .35) 0%,
		rgba(0, 0, 0, .55) 100%
	);
	z-index: 1;
	pointer-events: none;
}

/* ── Contenido textual ──────────────────────────────────────────────────────── */
.hero-slider__content {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	height: 100%;
	text-align: center;
	padding: 0 24px;
	color: #fff;
}

.hero-slider__title {
	font-family: var(--ff-base, 'Heebo', sans-serif);
	font-size: clamp(1rem, 5vw, 1.5rem);
	font-weight: 700;
	line-height: 1.15;
	margin: 0 0 16px;
	max-width: 820px;
    color: var(--primary, #90B0B7);
	text-shadow: 0 2px 10px rgba(0, 0, 0, .45);
}

.hero-slider__subtitle {
	font-family: var(--ff-base, 'Heebo', sans-serif);
	font-size: clamp(3rem, 2vw, 4.5rem);
	font-weight: bold;
	line-height: 1.5;
	margin: 0 0 36px;
	max-width: 620px;
	text-shadow: 0 1px 5px rgba(0, 0, 0, .4);
}

/* ── Botón CTA ──────────────────────────────────────────────────────────────── */
.hero-slider__cta {
	display: inline-block;
	padding: 14px 40px;
	background: var(--primary, #90B0B7);
	color: #fff;
	font-family: var(--ff-base, 'Heebo', sans-serif);
	font-size: .9375rem;
	font-weight: 700;
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: .06em;
	border-radius: 3px;
	box-shadow: 0 4px 18px rgba(0, 0, 0, .25);
	transition: background .25s ease, transform .25s ease;
}

.hero-slider__cta:hover,
.hero-slider__cta:focus {
	background: var(--primary-hover, #7a9ea6);
	color: #fff;
	transform: translateY(-2px);
	text-decoration: none;
}

/* ── Flechas de navegación ──────────────────────────────────────────────────── */
.hero-slider__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, .3);
	border-radius: 50%;
	color: #fff;
	cursor: pointer;
	padding: 0;
	transition: background .2s ease, border-color .2s ease;
	backdrop-filter: blur(4px);
}

.hero-slider__arrow:hover {
	background: rgba(255, 255, 255, .32);
	border-color: rgba(255, 255, 255, .6);
}

.hero-slider__arrow--prev { left: 24px; }
.hero-slider__arrow--next { right: 24px; }

/* ── Puntos de navegación ───────────────────────────────────────────────────── */
.hero-slider__dots {
	position: absolute;
	bottom: 28px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 3;
	display: flex;
	gap: 10px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.hero-slider__dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, .65);
	background: transparent;
	cursor: pointer;
	padding: 0;
	transition: background .25s ease, border-color .25s ease;
}

.hero-slider__dot.is-active,
.hero-slider__dot:hover {
	background: #fff;
	border-color: #fff;
}

/* ── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
	.hero-slider {
		height: 450px;
	}

    .hero-slider__subtitle {
        font-size: clamp(1.5rem, 4vw, 2.5rem);
    }

	.hero-slider__arrow {
		width: 38px;
		height: 38px;
	}

	.hero-slider__arrow--prev { left: 12px; }
	.hero-slider__arrow--next { right: 12px; }
}

@media (max-width: 480px) {
	.hero-slider {
		height: 360px;
	}

	.hero-slider__arrow {
		display: none; /* En móvil muy pequeño se navega sólo por dots */
	}
}
