.blog-page {
	background: #fff;
	color: #111;
	font-family: bmw, 'BMW Light', sans-serif;
}

.blog-main {
	max-width: 1320px;
	margin-left: auto;
	margin-right: auto;
	/* Compensa navbar fijo tm-navbar1 (tooplate-infinite-loop.css) */
	padding-top: 5.5rem;
	padding-bottom: 70px;
}

.blog-header {
	padding: 1rem 0 1.25rem;
	max-width: 820px;
}

.blog-header__label {
	display: inline-block;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #336699;
	margin-bottom: 0.65rem;
}

.blog-header__title {
	font-family: bmw, 'BMW Bold', sans-serif;
	font-size: clamp(1.85rem, 3.2vw, 2.75rem);
	line-height: 1.2;
	font-weight: 700;
	color: #111;
	margin-bottom: 0.65rem;
}

.blog-header__lead {
	font-size: clamp(0.98rem, 1.35vw, 1.12rem);
	line-height: 1.6;
	color: #555;
	max-width: 640px;
	margin-bottom: 0;
}

.blog-empty {
	padding: 2rem 0 4rem;
	color: #666;
	font-size: 1.05rem;
}

/* --- Hero destacado --- */
.blog-featured {
	position: relative;
	width: 100%;
	border-radius: 2px;
	overflow: hidden;
	margin-bottom: 2.75rem;
	aspect-ratio: 16 / 6.5;
	min-height: 280px;
	max-height: 520px;
	background: #1a1a1a;
}

.blog-featured__media {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	border: 0;
}

.blog-featured__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		90deg,
		rgba(0, 0, 0, 0.84) 0%,
		rgba(0, 0, 0, 0.68) 28%,
		rgba(0, 0, 0, 0.28) 52%,
		rgba(0, 0, 0, 0.06) 72%,
		rgba(0, 0, 0, 0) 100%
	);
	pointer-events: none;
}

.blog-featured__content {
	position: absolute;
	left: 0;
	bottom: 0;
	top: 0;
	z-index: 2;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	align-items: flex-start;
	padding: clamp(1.35rem, 3.2vw, 2.5rem);
	width: 100%;
	max-width: 40%;
	min-width: 280px;
	color: #fff;
}

.blog-featured__date {
	font-size: 0.72rem;
	letter-spacing: 0.06em;
	text-transform: none;
	opacity: 0.88;
	margin-bottom: 0.55rem;
}

.blog-featured__title {
	font-family: bmw, 'BMW Bold', sans-serif;
	font-size: clamp(1.25rem, 1.85vw, 1.75rem);
	line-height: 1.22;
	font-weight: 700;
	margin-bottom: 0.6rem;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.blog-featured__summary {
	font-size: clamp(0.88rem, 1.1vw, 0.98rem);
	line-height: 1.52;
	opacity: 0.92;
	margin-bottom: 1rem;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.blog-media-fallback {
	background: linear-gradient(135deg, #2a2a2a 0%, #444 100%);
}

/* CTA hero — compacto, no full-width */
.blog-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	align-self: flex-start;
	width: auto;
	padding: 0.72rem 1.45rem;
	background: #22439a;
	color: #fff !important;
	border-radius: 2px;
	font-size: 0.88rem;
	font-weight: 600;
	text-decoration: none !important;
	border: none;
	white-space: nowrap;
	transition: background 0.2s ease;
}

.blog-btn:hover {
	background: #336699;
	color: #fff !important;
}

/* --- Tarjetas secundarias --- */
.blog-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: none;
	border-radius: 0;
	overflow: hidden;
	height: 100%;
	box-shadow: none;
	transition: opacity 0.2s ease;
}

.blog-card:hover {
	opacity: 0.97;
}

.blog-card--horizontal {
	flex-direction: row;
	align-items: stretch;
	height: 100%;
	min-height: 300px;
}

.blog-card__media-wrap {
	position: relative;
	flex: 0 0 44%;
	align-self: stretch;
	min-height: 280px;
	background: #ececec;
	overflow: hidden;
	display: block;
}

.blog-card--horizontal .blog-card__media-wrap {
	min-height: 100%;
}

.blog-card__media {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	border: 0;
	min-height: 0;
}

.blog-card__body {
	flex: 1 1 56%;
	align-self: stretch;
	padding: 1.65rem 1.75rem 1.75rem;
	display: flex;
	flex-direction: column;
	min-height: 0;
}

.blog-card__text {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	min-height: 0;
}

.blog-card__date {
	font-size: 0.72rem;
	color: #888;
	margin-bottom: 0.5rem;
	letter-spacing: 0.04em;
}

.blog-card__title {
	font-family: bmw, 'BMW Bold', sans-serif;
	font-size: clamp(1.12rem, 1.25vw, 1.28rem);
	line-height: 1.28;
	font-weight: 700;
	color: #111;
	margin-bottom: 0.7rem;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.blog-card__title a {
	color: inherit;
}

.blog-card__title a:hover {
	color: #22439a;
}

.blog-card__summary {
	font-size: 0.92rem;
	line-height: 1.55;
	color: #666;
	margin-bottom: 0;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.blog-link {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	font-size: 0.9rem;
	font-weight: 600;
	color: #22439a;
	text-decoration: none;
	flex-shrink: 0;
	margin-top: auto;
	padding-top: 1.1rem;
	align-self: flex-start;
}

.blog-link:hover {
	color: #336699;
	text-decoration: none;
}

/* --- Grilla y paginación --- */
.blog-grid {
	margin-bottom: 2rem;
	--bs-gutter-x: 1.75rem;
	--bs-gutter-y: 1.75rem;
}

.blog-grid__item {
	display: flex;
	align-items: stretch;
}

.blog-grid__item > .blog-card {
	width: 100%;
	flex: 1 1 auto;
}

.blog-pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	padding: 1.5rem 0 0;
	flex-wrap: wrap;
}

.blog-pagination__link,
.blog-pagination__span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.35rem;
	height: 2.35rem;
	padding: 0 0.5rem;
	border-radius: 50%;
	font-size: 0.92rem;
	color: #333;
	text-decoration: none;
	border: none;
	background: transparent;
}

.blog-pagination__link:hover {
	color: #22439a;
	text-decoration: none;
}

.blog-pagination__link.is-active {
	background: #22439a;
	color: #fff;
	font-weight: 600;
}

.blog-pagination__link.is-disabled {
	opacity: 0.35;
	pointer-events: none;
}

.blog-pagination__ellipsis {
	min-width: 1.5rem;
	color: #888;
}

/* --- Tablet --- */
@media (max-width: 1199.98px) {
	.blog-featured__content {
		max-width: 48%;
	}
}

@media (max-width: 991.98px) {
	.blog-main {
		padding-top: 4.75rem;
	}

	.blog-header {
		padding: 0.85rem 0 1rem;
	}

	.blog-featured {
		aspect-ratio: 5 / 4;
		max-height: 480px;
		min-height: 320px;
		margin-bottom: 2.25rem;
	}

	.blog-featured__content {
		max-width: 100%;
		min-width: 0;
		justify-content: flex-end;
		padding: 1.5rem 1.35rem 1.65rem;
		background: linear-gradient(
			180deg,
			rgba(0, 0, 0, 0) 0%,
			rgba(0, 0, 0, 0.35) 42%,
			rgba(0, 0, 0, 0.72) 100%
		);
	}

	.blog-featured__overlay {
		background: linear-gradient(
			180deg,
			rgba(0, 0, 0, 0) 0%,
			rgba(0, 0, 0, 0.25) 45%,
			rgba(0, 0, 0, 0.55) 100%
		);
	}

	.blog-featured__title {
		font-size: clamp(1.15rem, 4.2vw, 1.45rem);
		-webkit-line-clamp: 2;
	}

	.blog-featured__summary {
		-webkit-line-clamp: 2;
		margin-bottom: 0.85rem;
	}

	.blog-card--horizontal {
		flex-direction: column;
		min-height: 0;
	}

	.blog-card__media-wrap {
		flex: none;
		width: 100%;
		min-height: 220px;
		aspect-ratio: 16 / 10;
	}

	.blog-card__body {
		min-height: 0;
		padding: 1.35rem 1.25rem 1.5rem;
	}

	.blog-grid {
		--bs-gutter-x: 1.25rem;
		--bs-gutter-y: 1.5rem;
	}
}

/* --- Mobile --- */
@media (max-width: 575.98px) {
	.blog-main {
		padding-top: 4.25rem;
		padding-bottom: 70px;
	}

	.blog-header {
		padding-top: 0.65rem;
		padding-bottom: 0.85rem;
	}

	.blog-featured {
		aspect-ratio: 4 / 5;
		max-height: 440px;
		min-height: 300px;
	}

	.blog-featured__title {
		-webkit-line-clamp: 3;
	}

	.blog-card__media-wrap {
		min-height: 200px;
		aspect-ratio: 16 / 11;
	}

	.blog-card__body {
		padding: 1.2rem 1.1rem 0.5rem;
	}

	.blog-pagination {
		padding-bottom: 0;
	}
}
