/* ============================================================
   Página: Blog (home.php + single.php)
   Scoped bajo .bj-page-blog (clase de body que añade el tema);
   los <main> llevan .tpl-blog (--index / --single).
   Mobile-first — breakpoints 640 / 768 / 1024 / 1280.
   ============================================================ */

/* ---------- Iconos lucide ---------- */
.bj-page-blog .blog-icon {
	width: 1rem;
	height: 1rem;
	flex-shrink: 0;
	display: inline-block;
	vertical-align: -0.125em;
}

/* ---------- Manchas de pintura (SplatterSVG) ---------- */
.bj-page-blog .blog-splat {
	position: absolute;
	pointer-events: none;
	z-index: 0;
}
.bj-page-blog .blog-splat--yellow {
	top: 5rem;
	right: 2.5rem;
	width: 10rem;
	height: 10rem;
	fill: var(--bj-yellow);
	opacity: 0.2;
}
.bj-page-blog .blog-splat--magenta {
	bottom: 2.5rem;
	left: 2.5rem;
	width: 8rem;
	height: 8rem;
	fill: var(--bj-magenta);
	opacity: 0.2;
}
.bj-page-blog .blog-splat--post {
	top: 0;
	right: 0;
	width: 10rem;
	height: 10rem;
	fill: var(--bj-yellow);
	opacity: 0.1;
}

/* ---------- Meta de post (categoría · tiempo · fecha) ---------- */
.bj-page-blog .blog-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem;
	font-size: 0.875rem;
	color: var(--bj-gray-soft);
	margin-bottom: 0.75rem;
}
.bj-page-blog .blog-meta__cat { color: var(--bj-yellow); }
.bj-page-blog .blog-meta__time {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
}

/* ============================================================
   Índice del blog (home.php)
   ============================================================ */

/* ---------- Hero ---------- */
.bj-page-blog .blog-hero {
	position: relative;
	overflow: hidden;
	background: var(--bj-charcoal);
	padding-top: 8rem;
	padding-bottom: 4rem;
}
.bj-page-blog .blog-hero--empty { padding-bottom: 5rem; }
.bj-page-blog .blog-hero__inner {
	position: relative;
	z-index: 1;
	text-align: center;
	max-width: 48rem;
	margin-inline: auto;
}
.bj-page-blog .blog-hero__title {
	font-size: clamp(3rem, 8vw, 4.5rem);
	color: var(--bj-white);
	margin-bottom: 1.5rem;
}
.bj-page-blog .blog-hero__hl { color: var(--bj-yellow); }
.bj-page-blog .blog-hero__subtitle {
	font-size: 1.25rem;
	color: var(--bj-gray-soft);
	margin: 0;
}

/* ---------- Post destacado ---------- */
.bj-page-blog .blog-featured { padding-block: 3rem; }
.bj-page-blog .blog-featured__card {
	display: grid;
	background: var(--bj-charcoal);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: var(--radius);
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	transition: border-color 0.2s ease;
}
.bj-page-blog .blog-featured__card:hover { border-color: rgba(255, 214, 10, 0.3); }
@media (min-width: 1024px) {
	.bj-page-blog .blog-featured__card { grid-template-columns: 1fr 1fr; }
}
.bj-page-blog .blog-featured__media {
	position: relative;
	aspect-ratio: 16 / 10;
	overflow: hidden;
}
@media (min-width: 1024px) {
	.bj-page-blog .blog-featured__media {
		aspect-ratio: auto;
		height: 100%;
	}
}
.bj-page-blog .blog-featured__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}
.bj-page-blog .blog-featured__card:hover .blog-featured__media img { transform: scale(1.05); }
.bj-page-blog .blog-featured__badge {
	position: absolute;
	top: 1rem;
	left: 1rem;
	background: var(--bj-yellow);
	color: var(--bj-black);
	padding: 0.25rem 0.75rem;
	border-radius: 999px;
	font-size: 0.875rem;
	font-weight: 500;
}
.bj-page-blog .blog-featured__body {
	padding: 2rem;
	display: flex;
	flex-direction: column;
	justify-content: center;
}
.bj-page-blog .blog-featured__title {
	font-size: clamp(1.875rem, 3.5vw, 2.25rem);
	color: var(--bj-white);
	margin-bottom: 1rem;
	transition: color 0.2s ease;
}
.bj-page-blog .blog-featured__card:hover .blog-featured__title { color: var(--bj-yellow); }
.bj-page-blog .blog-featured__excerpt {
	color: var(--bj-gray-soft);
	margin-bottom: 1.5rem;
}
.bj-page-blog .blog-featured__more {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	color: var(--bj-yellow);
	font-weight: 500;
}
.bj-page-blog .blog-featured__more .blog-icon {
	width: 1.25rem;
	height: 1.25rem;
	transition: transform 0.2s ease;
}
.bj-page-blog .blog-featured__card:hover .blog-featured__more .blog-icon { transform: translateX(0.5rem); }

/* ---------- Grid "Más artículos" ---------- */
.bj-page-blog .blog-more { padding-bottom: 5rem; }
.bj-page-blog .blog-more__title {
	font-size: 1.5rem;
	color: var(--bj-white);
	margin-bottom: 2rem;
}
.bj-page-blog .blog-grid {
	display: grid;
	gap: 1.5rem;
}
@media (min-width: 768px) {
	.bj-page-blog .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
	.bj-page-blog .blog-grid { grid-template-columns: repeat(3, 1fr); }
}
.bj-page-blog .blog-grid article { height: 100%; }
.bj-page-blog .blog-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: var(--bj-charcoal);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: var(--radius);
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	transition: border-color 0.2s ease;
}
.bj-page-blog .blog-card:hover { border-color: rgba(255, 214, 10, 0.3); }
.bj-page-blog .blog-card__media {
	aspect-ratio: 16 / 10;
	overflow: hidden;
}
.bj-page-blog .blog-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}
.bj-page-blog .blog-card:hover .blog-card__media img { transform: scale(1.05); }
.bj-page-blog .blog-card__body { padding: 1.5rem; }
.bj-page-blog .blog-card__title {
	font-size: 1.25rem;
	color: var(--bj-white);
	margin-bottom: 0.75rem;
	transition: color 0.2s ease;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.bj-page-blog .blog-card:hover .blog-card__title { color: var(--bj-yellow); }
.bj-page-blog .blog-card__excerpt {
	color: var(--bj-gray-soft);
	font-size: 0.875rem;
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* ---------- Paginación ---------- */
.bj-page-blog .blog-pagination-wrap { padding-bottom: 5rem; }
.bj-page-blog .blog-pagination-wrap .bj-pagination {
	margin-top: 0;
	flex-wrap: wrap;
}

/* ============================================================
   Entrada del blog (single.php)
   ============================================================ */

/* ---------- Breadcrumb ---------- */
.bj-page-blog .post-breadcrumbs {
	background: var(--bj-charcoal);
	padding-top: 7rem;
	padding-bottom: 1rem;
}
.bj-page-blog .post-breadcrumbs .bj-breadcrumbs [aria-current] {
	display: inline-block;
	max-width: 200px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	vertical-align: bottom;
}

/* ---------- Cabecera del post ---------- */
.bj-page-blog .post-header {
	position: relative;
	overflow: hidden;
	background: var(--bj-charcoal);
	padding-bottom: 3rem;
}
.bj-page-blog .post-header .bj-container { position: relative; z-index: 1; }
.bj-page-blog .post-header__inner { max-width: 48rem; }
.bj-page-blog .post-header__back {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	color: var(--bj-yellow);
	text-decoration: none;
	margin-bottom: 1.5rem;
}
.bj-page-blog .post-header__back:hover { text-decoration: underline; }
.bj-page-blog .post-header__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem;
	font-size: 0.875rem;
	color: var(--bj-gray-soft);
	margin-bottom: 1rem;
}
.bj-page-blog .post-header__cat {
	background: rgba(255, 214, 10, 0.2);
	color: var(--bj-yellow);
	padding: 0.25rem 0.75rem;
	border-radius: 999px;
}
.bj-page-blog .post-header__time {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
}
.bj-page-blog .post-header__title {
	font-size: clamp(2.25rem, 5vw, 3.75rem);
	color: var(--bj-white);
	margin-bottom: 1.5rem;
	text-wrap: balance;
}
.bj-page-blog .post-header__excerpt {
	font-size: 1.25rem;
	color: var(--bj-gray-soft);
	margin-bottom: 2rem;
}
.bj-page-blog .post-header__byline {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1.5rem;
}
.bj-page-blog .post-header__author {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}
.bj-page-blog .post-header__avatar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 50%;
	background: rgba(255, 214, 10, 0.2);
	color: var(--bj-yellow);
}
.bj-page-blog .post-header__avatar .blog-icon {
	width: 1.25rem;
	height: 1.25rem;
}
.bj-page-blog .post-header__author-name {
	color: var(--bj-white);
	font-size: 0.875rem;
	font-weight: 500;
}
.bj-page-blog .post-header__date {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	color: var(--bj-gray-soft);
	font-size: 0.875rem;
}

/* ---------- Imagen destacada ---------- */
.bj-page-blog .post-figure__media {
	position: relative;
	z-index: 1;
	margin-top: -2rem;
	aspect-ratio: 21 / 9;
	border-radius: var(--radius);
	overflow: hidden;
}
.bj-page-blog .post-figure__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* ---------- Contenido ---------- */
.bj-page-blog .post-content { padding-block: 3rem; }
.bj-page-blog .post-pages {
	margin-top: 2rem;
	color: var(--bj-gray-soft);
	font-size: 0.875rem;
}
.bj-page-blog .post-pages a { color: var(--bj-yellow); }

/* ---------- Etiquetas ---------- */
.bj-page-blog .post-tags {
	max-width: 46rem;
	margin: 2.5rem auto 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}
.bj-page-blog .post-tags__tag {
	background: rgba(255, 255, 255, 0.1);
	color: var(--bj-gray-soft);
	padding: 0.25rem 0.75rem;
	border-radius: 999px;
	font-size: 0.875rem;
	text-decoration: none;
	transition: background 0.2s ease, color 0.2s ease;
}
.bj-page-blog .post-tags__tag:hover {
	background: var(--bj-yellow);
	color: var(--bj-black);
}

/* ---------- CTA de reserva ---------- */
.bj-page-blog .post-cta { padding-bottom: 4rem; }
.bj-page-blog .post-cta__card {
	max-width: 46rem;
	margin-inline: auto;
	background: var(--bj-yellow);
	border-radius: var(--radius);
	padding: 2rem;
}
.bj-page-blog .post-cta__title {
	font-size: 1.5rem;
	color: var(--bj-black);
	margin-bottom: 0.75rem;
}
.bj-page-blog .post-cta__text {
	color: rgba(10, 10, 10, 0.7);
	font-size: 0.875rem;
	margin-bottom: 1rem;
}
.bj-page-blog .post-cta__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.75rem 1.5rem;
	border-radius: 0.75rem;
	background: var(--bj-black);
	color: var(--bj-yellow);
	font-weight: 700;
	font-size: 0.95rem;
	text-decoration: none;
	transition: opacity 0.2s ease, transform 0.2s ease;
}
.bj-page-blog .post-cta__btn:hover {
	opacity: 0.9;
	transform: scale(1.03);
}

/* ---------- Navegación anterior/siguiente ---------- */
.bj-page-blog .post-nav {
	background: var(--bj-charcoal);
	padding-block: 4rem;
}
.bj-page-blog .post-nav__grid {
	display: grid;
	gap: 1rem;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	padding-top: 2rem;
}
@media (min-width: 640px) {
	.bj-page-blog .post-nav__grid { grid-template-columns: repeat(2, 1fr); }
}
.bj-page-blog .post-nav__card {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	background: var(--bj-black);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: var(--radius);
	padding: 1.25rem;
	text-decoration: none;
	color: inherit;
	transition: border-color 0.2s ease;
}
.bj-page-blog .post-nav__card:hover { border-color: rgba(255, 214, 10, 0.3); }
.bj-page-blog .post-nav__card .blog-icon {
	width: 1.25rem;
	height: 1.25rem;
	color: var(--bj-yellow);
}
.bj-page-blog .post-nav__card--newer {
	justify-content: flex-end;
	text-align: right;
}
.bj-page-blog .post-nav__body { min-width: 0; }
.bj-page-blog .post-nav__label {
	display: block;
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--bj-gray-soft);
}
.bj-page-blog .post-nav__title {
	display: block;
	font-family: var(--font-display);
	text-transform: uppercase;
	letter-spacing: 0.02em;
	font-size: 1rem;
	color: var(--bj-white);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	transition: color 0.2s ease;
}
.bj-page-blog .post-nav__card:hover .post-nav__title { color: var(--bj-yellow); }
