/*
 * BuenTheme — featured-image.css
 * Imagen destacada (.bt-fi). En el sitio: portada, archivos y entradas. En el editor: con el bloque de imagen destacada.
 * Extraído de style.css en 2.6.148. No se borró ninguna regla.
 */

/* ==========================================================================
   Imagen destacada (BuenTheme → Imagen destacada). Solo afecta a .bt-fi*:
   con los ajustes por defecto el bloque core no recibe estas clases.
   ========================================================================== */
.bt-fi {
	position: relative;
	margin-top: 0;
	margin-bottom: var(--wp--preset--spacing--30);
	overflow: hidden;
}
.bt-fi .bt-fi__img {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
}
.bt-fi.bt-fi--cropped .bt-fi__img {
	height: 100%;
	object-fit: cover;
}
.bt-fi.has-bt-fi-radius,
.bt-fi.has-bt-fi-radius .bt-fi__img {
	border-radius: var(--bt-fi-radius, 0);
}
.bt-fi.has-bt-fi-shadow {
	box-shadow: 0 12px 32px -12px rgba(15, 23, 42, 0.35), 0 4px 10px -6px rgba(15, 23, 42, 0.2);
}
.bt-fi .bt-fi__caption {
	margin: 0;
	padding: 0.5em 0 0;
	font-size: var(--wp--preset--font-size--small, 0.875rem);
	opacity: 0.8;
}
.bt-fi.bt-fi--cropped .bt-fi__caption {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	padding: 0.5em 0.75em;
	color: #fff;
	background: linear-gradient(transparent, rgba(0, 0, 0, 0.55));
	opacity: 1;
}

/* Clásico: encima del título, ancho de contenido. */
.bt-fi--layout-classic {
	max-width: var(--wp--style--global--content-size, 100%);
	margin-left: auto !important;
	margin-right: auto !important;
}

/* Ancho completo y hero: rompen el contenedor (también en main sin layout constrained). */
.bt-fi--layout-full,
.bt-fi-hero {
	width: 100vw;
	max-width: 100vw !important;
	margin-left: calc(50% - 50vw) !important;
	margin-right: calc(50% - 50vw) !important;
}
.bt-fi--layout-full.has-bt-fi-radius,
.bt-fi--layout-full.has-bt-fi-radius .bt-fi__img {
	border-radius: 0;
}

/* Hero: título sobre la imagen con velo. */
.bt-fi-hero {
	position: relative;
	margin-bottom: var(--wp--preset--spacing--40);
}
.bt-fi-hero .bt-fi {
	width: 100%;
	max-width: none !important;
	margin: 0 !important;
	border-radius: 0;
}
.bt-fi-hero .bt-fi--ratio-original {
	min-height: clamp(320px, 60vh, 720px);
}
.bt-fi-hero .bt-fi--ratio-original .bt-fi__img {
	position: absolute;
	inset: 0;
	height: 100%;
}
.bt-fi-hero .bt-fi__overlay {
	position: absolute;
	inset: 0;
	background: #000;
	opacity: var(--bt-fi-overlay, 0.4);
	pointer-events: none;
}
.bt-fi-hero__content {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 1;
	box-sizing: border-box;
	max-width: var(--wp--style--global--wide-size, 1290px);
	margin: 0 auto;
	padding: var(--wp--preset--spacing--40, 2rem) var(--wp--preset--spacing--30, 1.25rem);
	color: #fff;
}
.bt-fi-hero__content .wp-block-post-title,
.bt-fi-hero__content .wp-block-post-title a {
	margin: 0;
	color: inherit;
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

/* Dividido: imagen a un lado, título al otro; apilado en móvil. */
.bt-fi-split {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--wp--preset--spacing--40, 2rem);
	align-items: center;
	margin-bottom: var(--wp--preset--spacing--40);
}
.bt-fi-split .bt-fi {
	margin: 0;
}
.bt-fi-split--img-right .bt-fi-split__media {
	order: 2;
}
.bt-fi-split__content > :first-child {
	margin-top: 0;
}
@media (max-width: 781px) {
	.bt-fi-split {
		grid-template-columns: 1fr;
		gap: var(--wp--preset--spacing--30, 1.25rem);
	}
	.bt-fi-split--img-right .bt-fi-split__media {
		order: 0;
	}
}
