/* =========================================================
   km_home_hero — slider principal de la portada.
   La sección va a ancho completo: en WPBakery, poner la fila
   que la contiene en "Stretch row" para que no la limite el
   contenedor del builder.
   ========================================================= */

.km-home-hero {
	/* Coral de marca sobre el que va texto blanco: la variante -dark
	   es la que cumple contraste (ver CLAUDE.md → identidad visual).
	   Para clavar el tono del mockup, cambiar a var(--km-highlight). */
	--km-hero-cta: var(--km-highlight-dark);
	--km-hero-cta-hover: var(--km-highlight);
	--km-hero-h: 640px;

	position: relative;
	min-height: var(--km-hero-h);
	background: var(--km-primary);
	overflow: hidden;
	isolation: isolate;
}

.km-home-hero--lg { --km-hero-h: 640px; }
.km-home-hero--md { --km-hero-h: 540px; }
.km-home-hero--sm { --km-hero-h: 440px; }

/* Los slides se apilan en la misma celda del grid: no hace falta
   posicionamiento absoluto y la altura la marca el contenido. */
.km-home-hero__viewport {
	display: grid;
	min-height: inherit;
}

.km-home-hero__slide {
	grid-area: 1 / 1;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: inherit;
	padding: 90px 0;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.7s ease, visibility 0.7s ease;
}

.km-home-hero__slide.is-active {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.km-home-hero__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: -2;
}

/* Sin velo sobre las fotos, por decisión de diseño: el titular blanco
   se apoya sólo en su text-shadow. */

.km-home-hero__inner {
	position: relative;
	text-align: center;
	color: var(--km-white);
}

.km-home-hero__title {
	font-size: clamp(35px, 5.3vw, 65px);
	line-height: 1.15;
	color: var(--km-white);
	margin: 0 0 18px;
	text-shadow: 0 2px 16px rgba(0, 0, 0, 0.28);
}

.km-home-hero__text {
	max-width: 640px;
	margin: 0 auto 8px;
	font-size: clamp(17px, 1.84vw, 21px);
	color: rgba(255, 255, 255, 0.92);
	text-shadow: 0 1px 10px rgba(0, 0, 0, 0.25);
}

.km-home-hero__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 16px;
	margin-top: 26px;
}

.km-home-hero__btn {
	border-radius: 999px;
	padding: 14px 30px;
	font-size: 15px;
	text-transform: none;
	letter-spacing: 0.01em;
}

.km-home-hero__btn--primary {
	background: var(--km-hero-cta);
	border-color: var(--km-hero-cta);
}

.km-home-hero__btn--primary:hover,
.km-home-hero__btn--primary:focus-visible {
	background: var(--km-hero-cta-hover);
	border-color: var(--km-hero-cta-hover);
}

/* ---------- Paginación ---------- */
.km-home-hero__dots {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 26px;
	display: flex;
	justify-content: center;
	gap: 12px;
	z-index: 2;
}

.km-home-hero__dot {
	width: 10px;
	height: 10px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.55);
	cursor: pointer;
	transition: background var(--km-trans), transform var(--km-trans);
}

.km-home-hero__dot:hover {
	background: rgba(255, 255, 255, 0.8);
}

.km-home-hero__dot.is-active {
	background: var(--km-white);
	transform: scale(1.15);
}

@media (max-width: 900px) {
	.km-home-hero--lg { --km-hero-h: 520px; }
	.km-home-hero--md { --km-hero-h: 460px; }
	.km-home-hero--sm { --km-hero-h: 380px; }

	.km-home-hero__slide { padding: 70px 0; }
}

@media (max-width: 600px) {
	.km-home-hero--lg,
	.km-home-hero--md { --km-hero-h: 420px; }

	.km-home-hero__actions {
		flex-direction: column;
		align-items: center;
	}

	.km-home-hero__btn {
		width: 100%;
		max-width: 300px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.km-home-hero__slide {
		transition: none;
	}
}
