/*
 * Macarena — Slider del hero
 * Traducción a CSS de producción de SLIDER-HERO.md: dos columnas a sangre
 * (banda verde de texto + fotografía vertical), CERO degradado/velo/filtro
 * sobre la fotografía — es el motivo entero del rediseño (PROMPT.md), así
 * que no existe ni siquiera como regla comentada. Crossfade de fotografías
 * por opacidad; texto instantáneo (no hay ninguna duración de transición
 * especificada para el texto en la especificación). Ocupa 100vh menos la
 * altura real del header (medida por JS y expuesta como variable CSS
 * `--mhs-header-h`, ver hero-slider.js).
 *
 * Todos los colores y tipografías vienen de DESIGN-SYSTEM.md; no se
 * introduce ningún valor fuera de esa tabla.
 */

.mhs-scope {
	--mhs-verde-hero: #081913;
	--mhs-verde-foto-carga: #0e2a20;
	--mhs-marfil: #f4f0e7;
	--mhs-dorado: #d8b26a;
	--mhs-foco: #b68235;
	--mhs-font-heading: "Cormorant Garamond", Georgia, serif;
	--mhs-font-body: "Instrument Sans", system-ui, -apple-system, sans-serif;
}

.mhs-hero, .mhs-hero *, .mhs-hero *::before, .mhs-hero *::after { box-sizing: border-box; }
.mhs-hero a { text-decoration: none; }
.mhs-hero button { font: inherit; border-radius: 0; }
/*
 * :where() a propósito, con especificidad CERO para la parte "p, h1": una
 * regla normal ".mhs-hero p, .mhs-hero h1 { margin:0 }" (especificidad
 * clase+etiqueta) pesaría MÁS que ".mhs-hero__palabra" o ".mhs-hero__frase"
 * (una sola clase) más abajo en este mismo archivo, y anularía su
 * margin-bottom pase lo que pase el orden de las reglas — es exactamente lo
 * que dejaba la palabra, la frase y el botón pegados unos a otros sin
 * espacio entre sí. Con :where(), este reset solo actúa como valor por
 * defecto que cualquier regla más específica (una sola clase) puede pisar.
 */
.mhs-hero :where(p, h1) { margin: 0; padding: 0; }

/* Radio de esquina: 0 en todo (DESIGN-SYSTEM.md), sin sombras. */
.mhs-hero, .mhs-hero * { border-radius: 0 !important; box-shadow: none !important; }

.mhs-hero :focus { outline: none; }
.mhs-hero :focus-visible {
	outline: 2px solid var(--mhs-foco);
	outline-offset: 2px;
}

.mhs-hero {
	position: relative;
	display: grid;
	grid-template-columns: minmax(300px, .78fr) minmax(0, 1.22fr);
	height: calc( 100vh - var( --mhs-header-h, 90px ) );
	min-height: 560px;
	background: var(--mhs-verde-hero);
	overflow: hidden;
	font-family: var(--mhs-font-body);
}

/* ————— Columna de texto (banda verde) ————— */

.mhs-hero__panel {
	order: 1;
	overflow: hidden;
}

.mhs-hero__panel-inner {
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: clamp(28px, 5vh, 64px);
	padding: clamp(26px, 3.6vw, 60px);
	color: var(--mhs-marfil);
}

.mhs-hero__epigrafe {
	font-size: 10px;
	letter-spacing: .32em;
	text-transform: uppercase;
	color: rgba(216, 178, 106, .9);
}

.mhs-hero__cuerpo { position: relative; }

.mhs-hero__texto { display: none; }
.mhs-hero__texto.is-active { display: block; }

.mhs-hero__palabra {
	font-family: var(--mhs-font-heading);
	font-weight: 400;
	font-size: clamp(50px, 7vw, 116px);
	line-height: .88;
	letter-spacing: -.02em;
	color: var(--mhs-marfil);
	margin-bottom: clamp(16px, 2.4vh, 26px);
}

.mhs-hero__frase {
	font-family: var(--mhs-font-heading);
	font-size: clamp(19px, 2.1vw, 31px);
	line-height: 1.26;
	color: rgba(244, 240, 231, .9);
	max-width: 22ch;
	margin-bottom: clamp(20px, 3vh, 34px);
}

.mhs-hero__cta {
	display: inline-block;
	font-family: var(--mhs-font-body);
	font-size: 11px;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: var(--mhs-marfil);
	background: transparent;
	border: 1px solid rgba(244, 240, 231, .45);
	padding: 14px 24px;
	transition: background-color .25s ease, border-color .25s ease;
}

.mhs-hero__cta:hover, .mhs-hero__cta:focus-visible {
	background: rgba(244, 240, 231, .12);
	border-color: rgba(216, 178, 106, .85);
}

/* ————— Controles: marcas a la izquierda, flechas a la derecha ————— */

.mhs-hero__controles {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 20px;
}

.mhs-hero__marcas { display: flex; align-items: center; gap: 6px; }

.mhs-hero__marca {
	width: 16px;
	height: 2px;
	background: rgba(244, 240, 231, .32);
	border: 0;
	padding: 0;
	cursor: pointer;
	transition: width .6s ease, background-color .6s ease;
}

.mhs-hero__marca.is-active {
	width: 34px;
	background: var(--mhs-dorado);
}

.mhs-hero__flechas {
	display: flex;
	border: 1px solid rgba(244, 240, 231, .32);
}

.mhs-hero__flecha {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	background: transparent;
	border: 0;
	color: var(--mhs-marfil);
	cursor: pointer;
	transition: background-color .25s ease;
}

.mhs-hero__flecha:first-child {
	border-right: 1px solid rgba(244, 240, 231, .32);
}

.mhs-hero__flecha:hover, .mhs-hero__flecha:focus-visible {
	background: rgba(244, 240, 231, .12);
}

/* ————— Columna de fotografía ————— */
/*
 * CRÍTICO (PROMPT.md, SLIDER-HERO.md §2): ni degradado, ni velo, ni capa de
 * color, ni filtro sobre la fotografía. El único elemento superpuesto es el
 * pie de foto (.mhs-hero__pie), en su esquina, con su propio fondo sólido
 * — nunca se añada aquí una regla de tipo `.mhs-hero__foto::after` con un
 * `background: linear-gradient(...)` u otra capa semitransparente: es
 * justo lo que este rediseño existe para eliminar.
 */

.mhs-hero__foto {
	order: 2;
	position: relative;
	background: var(--mhs-verde-foto-carga);
	overflow: hidden;
}

.mhs-hero__foto-capa {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity 1.4s cubic-bezier(.22, .61, .36, 1);
}

.mhs-hero__foto-capa.is-active { opacity: 1; }

.mhs-hero__foto-capa img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	/* Encuadre superior: en los primeros planos de imágenes marianas el
	   rostro está en el tercio alto (SLIDER-HERO.md §2). */
	object-position: center 30%;
	display: block;
}

.mhs-hero__pie {
	position: absolute;
	left: 0;
	bottom: 0;
	padding: 9px 15px;
	background: rgba(8, 25, 19, .8);
	font-size: 10px;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: rgba(244, 240, 231, .85);
}

/* ————— Móvil (< 900px): SLIDER-HERO.md §1 — se invierte el orden ————— */

@media (max-width: 899px) {
	.mhs-hero {
		grid-template-columns: 1fr;
		height: auto;
		min-height: 0;
	}

	.mhs-hero__foto {
		order: 1;
		min-height: 64vh;
	}

	.mhs-hero__panel {
		order: 2;
	}

	.mhs-hero__panel-inner {
		padding: clamp(24px, 6vw, 40px);
	}
}

/* ————— Movimiento reducido: SLIDER-HERO.md §6 ————— */

@media (prefers-reduced-motion: reduce) {
	.mhs-hero__foto-capa,
	.mhs-hero__marca,
	.mhs-hero__cta,
	.mhs-hero__flecha {
		transition: none !important;
	}
}
