/* EdaHero — encabezado de categoría (solo se carga en las páginas donde se muestra). */

.edahero {
	position: relative;
	isolation: isolate;
	display: grid;
	align-items: center;
	min-height: var(--edahero-h, 340px);
	margin: 0 0 24px;
	overflow: hidden;
	background: #2c2420;
	color: var(--edahero-title, #fff);
	font-family: inherit;
	box-sizing: border-box;
}

.edahero *,
.edahero *::before,
.edahero *::after {
	box-sizing: border-box;
}

/* Ancho completo de la ventana, aunque el tema lo ponga dentro de un contenedor. */
.edahero--full {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}

body.edahero-full {
	overflow-x: clip;
}

.edahero__media,
.edahero__overlay {
	position: absolute;
	inset: 0;
}

.edahero__media {
	z-index: 0;
}

.edahero__poster,
.edahero__video {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	max-width: none;
}

/* El video aparece suavemente cuando empieza a reproducirse; mientras tanto se ve la imagen. */
.edahero__video {
	opacity: 0;
	transition: opacity .6s ease;
}

.edahero__media.is-playing .edahero__video {
	opacity: 1;
}

.edahero__overlay {
	z-index: 1;
	background: var(--edahero-overlay, rgba(44, 36, 32, .45));
}

.edahero__content {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 1100px;
	margin: 0 auto;
	padding: clamp(24px, 5vw, 56px) 24px;
}

.edahero--center .edahero__content {
	text-align: center;
}

.edahero--left .edahero__content {
	text-align: left;
}

.edahero .edahero__title {
	margin: 0;
	padding: 0;
	color: inherit;
	font-size: clamp(1.8rem, 4.5vw, 3rem);
	line-height: 1.15;
	text-shadow: 0 2px 12px rgba(0, 0, 0, .35);
}

.edahero .edahero__desc {
	max-width: 62ch;
	margin-top: .8em;
	color: inherit;
	font-size: clamp(1rem, 2vw, 1.15rem);
	line-height: 1.5;
	text-shadow: 0 1px 8px rgba(0, 0, 0, .35);
}

.edahero--center .edahero__desc {
	margin-left: auto;
	margin-right: auto;
}

.edahero .edahero__desc p {
	margin: 0 0 .6em;
	color: inherit;
}

.edahero .edahero__desc p:last-child {
	margin-bottom: 0;
}

@media (max-width: 768px) {
	.edahero {
		min-height: var(--edahero-hm, 220px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.edahero__video {
		display: none;
	}
}

@media print {
	.edahero__video {
		display: none;
	}
}
