/* Historia Histórica · ficha general (biografía, pilar, evento, artículo estándar) · versión 1.0
   Se suma a hh-ficha.css y hh-hub.css. Todas las clases llevan el prefijo hh-. */

/* ---------- Introducción de la cabecera ---------- */

.hh-hero__intro {
	max-width: 36rem;
	margin: 0 0 var(--hh-esp-6);
	font-size: 1rem;
	line-height: 1.6;
	color: #E3E0D8;
}

/* ---------- Datos destacados de la cabecera (chips) ---------- */

.hh-chips {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1px;
	margin: 0 0 var(--hh-esp-6);
	padding: 0;
	list-style: none;
	background: rgba(243, 240, 232, 0.2);
	border: 1px solid rgba(243, 240, 232, 0.2);
	border-radius: var(--hh-radio);
	overflow: hidden;
}

.hh-chip {
	display: flex;
	flex-direction: column;
	gap: var(--hh-esp-1);
	padding: var(--hh-esp-3) var(--hh-esp-4);
	background: rgba(23, 25, 27, 0.78);
}

.hh-chip__etiqueta {
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #CFCDC6;
}

.hh-chip__valor {
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.3;
	color: var(--hh-marfil);
}

/* ---------- Cita de la cabecera ---------- */

.hh-hero__cita {
	margin: var(--hh-esp-6) 0 0;
	padding: var(--hh-esp-4) var(--hh-esp-6);
	border: 0;
	border-left: 3px solid var(--hh-rojo-claro);
	background: rgba(23, 25, 27, 0.7);
	font-style: normal;
}

.hh-hero__cita p {
	margin: 0 0 var(--hh-esp-2);
	font-family: var(--hh-fuente-titulos);
	font-size: 1.125rem;
	font-style: italic;
	line-height: 1.4;
	color: var(--hh-marfil);
}

.hh-hero__cita cite {
	font-size: 0.8125rem;
	font-style: normal;
	color: #CFCDC6;
}

.hh-hero__cita cite::before {
	content: "— ";
}

/* ---------- Etapas de la cronología ---------- */

.hh-etapas {
	margin: 0 0 var(--hh-esp-12);
}

.hh-etapas__lista {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--hh-esp-3);
	margin: 0;
	padding: 0;
	list-style: none;
}

.hh-etapa {
	display: flex;
	flex-direction: column;
	gap: var(--hh-esp-2);
	padding: var(--hh-esp-4);
	border-radius: var(--hh-radio);
	color: var(--hh-marfil);
}

.hh-etapa--1 {
	background: var(--hh-rojo-oscuro);
}

.hh-etapa--2 {
	background: var(--hh-azul);
}

.hh-etapa--3 {
	background: var(--hh-verde-texto);
}

.hh-etapa--4 {
	background: var(--hh-arena);
	color: var(--hh-carbon);
}

.hh-etapa__fecha {
	font-family: var(--hh-fuente-titulos);
	font-size: 1.25rem;
	font-weight: 700;
}

.hh-etapa__titulo {
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.3;
}

.hh-etapa__texto {
	font-size: 0.875rem;
	line-height: 1.45;
}

.hh-etapa__enlace {
	margin-top: auto;
	font-size: 0.8125rem;
	font-weight: 600;
	color: inherit;
	text-decoration: underline;
}

.hh-etapas__cta {
	margin: var(--hh-esp-4) 0 0;
}

.hh-etapas__cta a {
	display: inline-block;
	padding: var(--hh-esp-2) var(--hh-esp-4);
	border: 1px solid var(--hh-rojo-oscuro);
	border-radius: var(--hh-radio);
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--hh-rojo-oscuro);
	text-decoration: none;
}

.hh-etapas__cta a:hover,
.hh-etapas__cta a:focus-visible {
	background: var(--hh-rojo-oscuro);
	color: #FFFFFF;
}

/* ---------- Pantallas anchas ---------- */

@media (min-width: 640px) {
	.hh-etapas__lista {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 960px) {
	.hh-chips--4 {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.hh-chips--3 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.hh-chips--1,
	.hh-chips--2 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.hh-hero__cita {
		position: absolute;
		right: var(--hh-esp-6);
		top: 50%;
		transform: translateY(-50%);
		max-width: 20rem;
		margin: 0;
	}

	.hh-etapas__lista--3 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.hh-etapas__lista--4 {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.hh-etapas__lista--5,
	.hh-etapas__lista--6 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* Encuadre de la imagen del hero: muestra la parte alta (cabezas).
   0% = parte superior de la foto · 50% = centro (valor anterior). */
:root {
	--hh-hero-encuadre: 50% 20%;
}

.hh-hero__img {
	object-position: var(--hh-hero-encuadre);
}