/* Home H2 — base */
/*
 * Zox aplica .left { float:left } a #mvp-site-main, #mvp-main-body-wrap, etc.
 * Sin anularlo, todo el main queda desplazado. Usamos body.elsouvenir-home-h2
 * (añadida en functions.php) para no afectar otras páginas.
 */
body.elsouvenir-home-h2 #mvp-site.left,
body.elsouvenir-home-h2 #mvp-site-wall.left,
body.elsouvenir-home-h2 #mvp-site-main.left,
body.elsouvenir-home-h2 #mvp-main-body-wrap.left,
body.elsouvenir-home-h2 #mvp-feat2-wrap.left,
body.elsouvenir-home-h2 #mvp-feat2-wrap .mvp-feat2-top.left {
	float: none !important;
	width: 100% !important;
	max-width: 100% !important;
	clear: both !important;
}

body.elsouvenir-home-h2 #home-h2.home-h2-wrap,
body.elsouvenir-home-h2 #home-h2.home-h2-wrap.left,
.home-h2-wrap.left,
.home-h2-wrap {
	float: none !important;
	clear: both !important;
	width: 100% !important;
	max-width: 100% !important;
	margin-left: auto !important;
	margin-right: auto !important;
	background: #fff;
}

body.elsouvenir-home-h2 #home-h2 .home-h2__section,
body.elsouvenir-home-h2 #home-h2 .home-h2__section.left,
.home-h2__section.left,
.home-h2__section {
	float: none !important;
	clear: both !important;
	width: 100% !important;
	max-width: 100% !important;
	box-sizing: border-box;
	padding-top: 1rem;
}

.home-h2__section {
	margin-bottom: 2.5rem;
}

body.elsouvenir-home-h2 #home-h2 .home-h2__section .mvp-main-box,
.home-h2__section .mvp-main-box {
	float: none !important;
	width: 100% !important;
	max-width: 1200px !important;
	margin-left: auto !important;
	margin-right: auto !important;
	/* Padding fluido: móvil → escritorio (solo CSS nuevo home-h2) */
	padding-left: clamp(12px, 3.5vw, 24px) !important;
	padding-right: clamp(12px, 3.5vw, 24px) !important;
	box-sizing: border-box !important;
}

/* Evita scroll horizontal por anchos fijos del tema */
body.elsouvenir-home-h2 #home-h2 {
	overflow-x: clip;
	overflow-x: hidden;
}

/* Grillas: ocupar todo el ancho del contenedor centrado */
body.elsouvenir-home-h2 #home-h2 [class^="h2-grid"],
body.elsouvenir-home-h2 #home-h2 [class*=" h2-grid"] {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

.h2-more {
	margin: 1rem 0 0;
	text-align: right;
}

.h2-more__link {
	font-weight: 600;
	font-size: 0.9rem;
	text-decoration: none;
	color: #111;
	border-bottom: 1px solid #111;
}

.h2-more__link:hover {
	opacity: 0.75;
}

.h2-card__noimg {
	display: block;
	width: 100%;
	min-height: 120px;
	background: #e8e8e8;
}

.h2-card__link {
	display: block;
	text-decoration: none;
	color: inherit;
}

/*
 * Overlay con título como hermano de .h2-card__media (p. ej. Internacional): sin esto,
 * position:absolute del título usa otro ancestro posicionado y la franja aparece abajo del bloque.
 */
.h2-card--overlay .h2-card__link {
	position: relative;
}

.h2-card__link:hover .h2-card__title {
	opacity: 0.85;
}

.h2-card__media {
	position: relative;
	overflow: hidden;
	background: #f0f0f0;
}

.h2-card__media img {
	width: 100%;
	max-width: 100%;
	height: auto;
	display: block;
	vertical-align: middle;
	object-fit: cover;
}

.h2-card__title {
	margin: 0.5rem 0 0;
	font-size: 1rem;
	line-height: 1.3;
	font-weight: 700;
}

.h2-card__excerpt {
	margin: 0.35rem 0 0;
	font-size: 0.875rem;
	line-height: 1.45;
	color: #444;
}

.h2-card__title--overlay {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	margin: 0;
	padding: 1rem 0.75rem;
	background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
	color: #fff;
}

/*
 * Columna central (podcast / gastro / eco): overlay absoluto sobre la foto.
 * Sin esto, si el grid no aplica, el bloque .h2-card__overlay cae DEBAJO de la imagen (franja gris).
 */
.h2-card__media--stack {
	position: relative;
	display: block;
	overflow: hidden;
	min-height: 0;
	background: #111;
}

.h2-card__media--stack > img,
.h2-card__media--stack > span.h2-card__noimg {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
	object-fit: cover;
	vertical-align: bottom;
}

/* Si un plugin/tema envuelve el thumb (figure/picture), sigue ocupando la capa inferior */
.h2-card__media--stack > :not(.h2-card__overlay) {
	display: block;
	width: 100%;
	max-width: 100%;
	line-height: 0;
}

.h2-card__media--stack figure,
.h2-card__media--stack picture {
	margin: 0;
}

.h2-card__media--stack figure img,
.h2-card__media--stack picture img {
	display: block;
	width: 100%;
	height: auto;
	object-fit: cover;
	vertical-align: bottom;
}

.h2-card__media--stack > .h2-card__overlay {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2;
	width: 100%;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	align-items: stretch;
	gap: 0.35rem;
	padding: 0.65rem 0.75rem 0.85rem;
	margin: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.38) 52%, transparent 90%);
	color: #fff;
	pointer-events: none;
}

/* Categoría arriba, título abajo (anula position:absolute del hero en el h3) */
.h2-card__media--stack .h2-card__overlay .h2-card__cat {
	order: 1;
}

.h2-card__media--stack .h2-card__overlay .h2-card__title--overlay {
	order: 2;
	position: relative !important;
	left: auto !important;
	right: auto !important;
	top: auto !important;
	bottom: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	background: none !important;
	color: #fff !important;
}

.h2-card__overlay .h2-card__cat {
	display: block;
	margin: 0;
	font-size: 0.68rem;
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.95);
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.h2-card__overlay .h2-card__title--overlay {
	position: static;
	left: auto;
	right: auto;
	bottom: auto;
	margin: 0;
	padding: 0;
	background: none;
	color: #fff;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

.h2-card__excerpt--overlay {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	margin: 0;
	padding: 0 0.75rem 0.5rem;
	color: rgba(255, 255, 255, 0.95);
	font-size: 0.8rem;
	background: transparent;
}

/* Tarjeta PODCAST (bloque triple): título 1.4rem + extracto en flujo flex */
.h2-card--podcast-hero .h2-card__title--overlay {
	font-size: 1.4rem;
	line-height: 1.22;
	font-weight: 700;
}

.h2-card--podcast-hero .h2-card__media--stack .h2-card__overlay .h2-card__title--overlay {
	margin-bottom: 0.35rem !important;
}

.h2-card--podcast-hero .h2-card__media--stack .h2-card__overlay .h2-card__excerpt--overlay {
	order: 3;
	position: relative !important;
	inset: auto !important;
	margin: 0.2rem 0 0 !important;
	padding: 0 !important;
	max-height: none;
	color: rgba(255, 255, 255, 0.92);
	font-size: clamp(0.8rem, 2.2vw, 0.92rem);
	line-height: 1.45;
	font-weight: 400;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

.h2-card--podcast-hero .h2-card__media--stack > .h2-card__overlay {
	gap: 0.4rem;
	padding: 0.65rem 0.75rem clamp(0.85rem, 2.5vw, 1.1rem);
	align-items: stretch;
}

/* Destino del mes (card central): mismo patrón de overlay con extracto */
.h2-card--destino-hero .h2-card__title--overlay {
	font-size: 1.4rem;
	line-height: 1.22;
	font-weight: 700;
}

.h2-card--destino-hero .h2-card__media--stack .h2-card__overlay .h2-card__title--overlay {
	margin-bottom: 0.35rem !important;
}

.h2-card--destino-hero .h2-card__media--stack .h2-card__overlay .h2-card__excerpt--overlay {
	order: 3;
	position: relative !important;
	inset: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	max-height: none;
	color: rgba(255, 255, 255, 0.92);
	font-size: clamp(0.8rem, 2.2vw, 0.92rem);
	line-height: 1.45;
	font-weight: 400;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

.h2-card--destino-hero .h2-card__media--stack > .h2-card__overlay {
	gap: 0.35rem;
	padding: 0.65rem 0.75rem clamp(0.9rem, 2.8vw, 1.15rem);
	align-items: stretch;
}

/* Cultura: main con título grande + extracto en overlay; sub con título sobre imagen */
.h2-card--cultura-main .h2-card__title--overlay {
	font-size: 1.4rem;
	line-height: 1.22;
	font-weight: 700;
}

.h2-card--cultura-main .h2-card__overlay .h2-card__title--overlay {
	margin-bottom: 0.35rem !important;
}

.h2-card--cultura-main .h2-card__media--stack .h2-card__overlay .h2-card__excerpt--overlay {
	order: 3;
	position: relative !important;
	inset: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	max-height: none;
	color: rgba(255, 255, 255, 0.92);
	font-size: clamp(0.8rem, 2.2vw, 0.92rem);
	line-height: 1.45;
	font-weight: 400;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

.h2-card--cultura-main .h2-card__media--stack > .h2-card__overlay {
	gap: 0.35rem;
	padding: 0.65rem 0.75rem clamp(0.9rem, 2.8vw, 1.15rem);
	align-items: stretch;
}

/* Hoteles: destacado izquierdo con título grande + extracto sobre imagen */
.h2-card--hoteles-hero .h2-card__title--overlay {
	font-size: 1.4rem;
	line-height: 1.22;
	font-weight: 700;
}

.h2-card--hoteles-hero .h2-card__media--stack .h2-card__overlay .h2-card__title--overlay {
	margin-bottom: 0.35rem !important;
}

.h2-card--hoteles-hero .h2-card__media--stack .h2-card__overlay .h2-card__excerpt--overlay {
	order: 3;
	position: relative !important;
	inset: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	max-height: none;
	color: rgba(255, 255, 255, 0.92);
	font-size: clamp(0.8rem, 2.2vw, 0.92rem);
	line-height: 1.45;
	font-weight: 400;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

.h2-card--hoteles-hero .h2-card__media--stack > .h2-card__overlay {
	gap: 0.35rem;
	padding: 0.65rem 0.75rem clamp(0.9rem, 2.8vw, 1.15rem);
	align-items: stretch;
}

/* Cruceros: destacado izquierdo con título grande + extracto sobre imagen */
.h2-card--cruceros-hero .h2-card__title--overlay {
	font-size: 1.4rem;
	line-height: 1.22;
	font-weight: 700;
}

.h2-card--cruceros-hero .h2-card__media--stack .h2-card__overlay .h2-card__title--overlay {
	margin-bottom: 0.35rem !important;
}

.h2-card--cruceros-hero .h2-card__media--stack .h2-card__overlay .h2-card__excerpt--overlay {
	order: 3;
	position: relative !important;
	inset: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	max-height: none;
	color: rgba(255, 255, 255, 0.92);
	font-size: clamp(0.8rem, 2.2vw, 0.92rem);
	line-height: 1.45;
	font-weight: 400;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

.h2-card--cruceros-hero .h2-card__media--stack > .h2-card__overlay {
	gap: 0.35rem;
	padding: 0.65rem 0.75rem clamp(0.9rem, 2.8vw, 1.15rem);
	align-items: stretch;
}

.h2-card--hero .h2-card__media {
	min-height: clamp(200px, 45vw, 320px);
}

/* Sin min-height del hero: evita caja más alta que la imagen */
.h2-card--overlay.h2-card--hero .h2-card__media {
	min-height: 0;
}

.h2-card__play {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.25);
	color: #fff;
	font-size: 2rem;
	pointer-events: none;
}

.spacer-20 {
	height: 20px;
}