/*
 * Carrusel de portada [mapa_hero] (sustituye a jet-slider).
 * Cortes: tablet <=1024 y móvil <=767, los del kit (viewport_lg 1025 / viewport_md 768).
 *
 * ESPECIFICIDAD: el kit 1070 estiliza elementos desnudos (h1…h6, button, p…) con
 * selectores tipo ".elementor-kit-1070 h1" → (0,1,1), que ganan a una sola clase (0,1,0).
 * Por eso título, subtítulo, flechas y puntos van con DOS clases (.mac-hero .mac-hero__x).
 * Sin esto, el h1 del hero sale a los 112px del kit en vez de a los 85px de aquí.
 * Ver la bitácora de CLAUDE.md.
 *
 * COLOCACIÓN DEL TEXTO: el bloque se ancla ARRIBA con un margin-top en px, no se centra.
 * Motivo: en Inicio el buscador es un contenedor aparte que se sube con margin negativo,
 * así que el texto tiene que caber por encima de donde empieza:
 *
 *     alto hero   el buscador sube   empieza en
 *     530 (esc)   -227               303 px
 *     390 (tab)   -190               200 px
 *     580 (móv)   -320               260 px
 *
 * Centrar con flex + margin negativo era peor: en un item centrado el margen solo
 * desplaza la MITAD de su valor, con lo que el ajuste es poco predecible.
 * Si cambias el alto del hero o esos márgenes, revisa ese margin-top.
 *
 * SIN FONDO DETRÁS DEL TEXTO: jet-slider traía slider_content_background_color
 * rgba(0,0,0,0.25), pero allí iba en un contenedor a toda la altura del slider y se leía
 * como un oscurecido general. Aquí el bloque es de alto automático, así que ese mismo
 * color salía como una banda recortada. El contraste lo da el velo (.mac-hero__velo, 40 %)
 * más un text-shadow suave. No devolver el background a este bloque.
 */

.mac-hero {
	position: relative;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	height: var(--mac-hero-h, 530px);
	overflow: hidden;
	background-color: #000000;
	isolation: isolate;
}

/* ---------- imágenes ---------- */

.mac-hero__fondos {
	position: absolute;
	inset: 0;
}

.mac-hero__slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity .6s ease;
}

.mac-hero__slide.esta-activa {
	opacity: 1;
}

.mac-hero .mac-hero__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.mac-hero__velo {
	position: absolute;
	inset: 0;
	background: #000000;
	opacity: .4;
}

/* ---------- contenido ---------- */

.mac-hero__contenido {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	box-sizing: border-box;
	width: 100%;
	max-width: 770px;
	margin-top: var(--mac-hero-arriba, 36px);
	padding: 14px 10px 18px;
}

.mac-hero .mac-hero__titulo {
	margin: 0;
	padding: 0;
	color: #FFFFFF;                 /* token del kit: 41bc420 "Invers" */
	font-family: inherit;
	font-size: 85px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: normal;
	text-align: left;
	text-shadow: 0 2px 14px rgba(0, 0, 0, .45);
	text-transform: uppercase;
	overflow-wrap: break-word;
}

.mac-hero .mac-hero__sub {
	margin: 14px 0 0 10px;
	padding: 0;
	color: #FFFFFF;
	font-family: inherit;
	font-size: 24px;
	font-weight: 400;
	line-height: 30px;
	text-align: left;
	text-shadow: 0 1px 10px rgba(0, 0, 0, .5);
}

/* ---------- flechas ---------- */

.mac-hero .mac-hero__flecha {
	position: absolute;
	top: 50%;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	min-width: 0;
	max-width: none;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	background-color: transparent;
	box-shadow: none;
	color: rgba(255, 255, 255, .46);
	font: inherit;
	letter-spacing: normal;
	line-height: 1;
	text-transform: none;
	white-space: normal;
	transform: translateY(-50%);
	cursor: pointer;
	transition: color .18s ease;
}

.mac-hero .mac-hero__flecha--ant {
	left: 8%;
}

.mac-hero .mac-hero__flecha--sig {
	right: 8%;
}

.mac-hero .mac-hero__flecha:hover,
.mac-hero .mac-hero__flecha:focus-visible {
	background: none;
	background-color: transparent;
	color: #FFFFFF;
}

.mac-hero .mac-hero__flecha:focus-visible {
	outline: 2px solid #FFFFFF;
	outline-offset: 2px;
}

/* ---------- puntos ---------- */

.mac-hero__puntos {
	position: absolute;
	bottom: 50px;
	left: 0;
	right: 0;
	z-index: 3;
	display: flex;
	justify-content: center;
	gap: 10px;
}

.mac-hero .mac-hero__punto {
	width: 10px;
	height: 10px;
	min-width: 0;
	max-width: none;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: none;
	background-color: rgba(255, 255, 255, .48);
	box-shadow: none;
	font: inherit;
	line-height: 1;
	text-transform: none;
	cursor: pointer;
	transition: background-color .18s ease;
}

.mac-hero .mac-hero__punto:hover,
.mac-hero .mac-hero__punto.esta-activo {
	background-color: #FFFFFF;
}

.mac-hero .mac-hero__punto:focus-visible {
	outline: 2px solid #FFFFFF;
	outline-offset: 3px;
}

/* ---------- tablet ---------- */

@media (max-width: 1024px) {

	.mac-hero {
		height: var(--mac-hero-h-tablet, 390px);
	}

	.mac-hero__contenido {
		margin-top: 26px;
	}

	.mac-hero .mac-hero__titulo {
		margin-left: 10px;
		font-size: 48px;
	}

	.mac-hero .mac-hero__sub {
		margin-left: 10px;
		font-size: 18px;
		line-height: 21px;
	}

	.mac-hero .mac-hero__flecha--ant {
		left: 0;
	}

	.mac-hero .mac-hero__flecha--sig {
		right: 0;
	}

	.mac-hero__puntos {
		bottom: 40px;
	}
}

/* ---------- móvil ---------- */

@media (max-width: 767px) {

	.mac-hero {
		height: var(--mac-hero-h-movil, 580px);
	}

	.mac-hero__contenido {
		align-items: center;
		margin-top: 92px;
	}

	.mac-hero .mac-hero__titulo {
		margin-left: 0;
		font-size: 40px;
		text-align: center;
	}

	.mac-hero .mac-hero__sub {
		margin-left: 0;
		text-align: center;
	}
}

@media (prefers-reduced-motion: reduce) {

	.mac-hero__slide,
	.mac-hero .mac-hero__flecha,
	.mac-hero .mac-hero__punto {
		transition: none;
	}
}
