/* Enfoca Blog + Single — scoped, Elementor-safe */

.enfoca-blog,
.enfoca-single {
	--enfoca-navy: #282d67;
	--enfoca-blue: #3c83f6;
	--enfoca-content: 1300px;
	--enfoca-prose: 760px;
	/* Kit Elementor (primary) → fallback Plus Jakarta Sans */
	font-family: var(--e-global-typography-primary-font-family, "Plus Jakarta Sans"), Sans-serif;
}

.enfoca-blog h1,
.enfoca-blog h2,
.enfoca-blog h3,
.enfoca-blog h4,
.enfoca-blog p,
.enfoca-single h1,
.enfoca-single h2,
.enfoca-single h3,
.enfoca-single h4,
.enfoca-single p,
.enfoca-blog-hero__title,
.enfoca-blog-hero__desc,
.enfoca-blog-item__title,
.enfoca-blog-item__excerpt,
.enfoca-single-hero__title,
.enfoca-single-content__entry {
	font-family: inherit;
}

/*
 * Hello Elementor: body:not([class*=elementor-page-]) .site-main { max-width: 1140px }
 * Rompe el full-bleed del hero. Secciones a 100%; contenido interno a 1300px.
 */
body.enfoca-blog-view .site-main,
body.enfoca-single-view .site-main,
.enfoca-blog.site-main,
.enfoca-single.site-main {
	max-width: none;
	width: 100%;
	margin-inline: 0;
}

/* Shared hero grid pattern */
.enfoca-blog-hero,
.enfoca-single-hero {
	position: relative;
	width: 100%;
	background-color: var(--enfoca-navy);
	background-image:
		linear-gradient(rgba(126, 179, 255, 0.08) 1px, transparent 1px),
		linear-gradient(90deg, rgba(126, 179, 255, 0.08) 1px, transparent 1px);
	background-size: 48px 48px;
	color: #fff;
	overflow: hidden;
}

.enfoca-blog-hero__inner,
.enfoca-single-hero__inner,
.enfoca-blog-list__inner {
	max-width: var(--enfoca-content);
	width: 100%;
	margin: 0 auto;
	padding-left: 24px;
	padding-right: 24px;
	box-sizing: border-box;
}

.enfoca-single-content__inner {
	max-width: var(--enfoca-content);
	width: 100%;
	margin: 0 auto;
	padding-left: 24px;
	padding-right: 24px;
	box-sizing: border-box;
}

/* ========== Archive hero ========== */
.enfoca-blog-hero {
	padding: 200px 10px 96px;
}

.enfoca-blog-hero__label {
	display: inline-block;
	margin-bottom: 14px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--enfoca-blue);
}

.enfoca-blog-hero__title {
	margin: 0 0 14px;
	max-width: 20ch;
	font-size: clamp(2rem, 4vw, 3.25rem);
	font-weight: 800;
	line-height: 1.15;
	color: #fff;
}

.enfoca-blog-hero__line {
	display: block;
	width: 72px;
	height: 3px;
	margin-bottom: 22px;
	background: var(--enfoca-blue);
}

.enfoca-blog-hero__desc {
	margin: 0;
	max-width: 52ch;
	font-size: 16px;
	line-height: 1.7;
	color: rgba(255, 255, 255, 0.88);
}

/* ========== Archive grid (light cards) ========== */
.enfoca-blog-list {
	width: 100%;
	padding: 100px 0 150px;
	background: #f5f7fb;
}

.enfoca-blog-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.enfoca-blog-item {
	display: flex;
	flex-direction: column;
	border-radius: 16px;
	border: 1px solid #e6ebf5;
	background: #fff;
	overflow: hidden;
	box-shadow: 0 8px 24px rgba(40, 45, 103, 0.05);
	margin: 0;
}

.enfoca-blog-item__media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	text-decoration: none;
}

.enfoca-blog-item__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.35s ease;
}

.enfoca-blog-item:hover .enfoca-blog-item__media img {
	transform: scale(1.04);
}

.enfoca-blog-item__placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #e8edf7, #d5deef);
}

.enfoca-blog-item__badge {
	position: absolute;
	top: 14px;
	left: 14px;
	padding: 6px 12px;
	border-radius: 999px;
	background: var(--enfoca-blue);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.enfoca-blog-item__body {
	display: flex;
	flex-direction: column;
	gap: 12px;
	flex: 1;
	padding: 22px;
}

.enfoca-blog-item__date {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: #8b93b0;
}

.enfoca-blog-item__title {
	margin: 0;
	font-size: 1.15rem;
	font-weight: 700;
	line-height: 1.35;
}

.enfoca-blog-item__title a {
	color: #1f2548;
	text-decoration: none;
}

.enfoca-blog-item__title a:hover {
	color: var(--enfoca-blue);
}

.enfoca-blog-item__excerpt {
	margin: 0;
	font-size: 14px;
	line-height: 1.65;
	color: #6b7280;
	flex: 1;
}

.enfoca-blog-item__more {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 4px;
	color: var(--enfoca-blue);
	text-decoration: none;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.enfoca-blog-item__more:hover {
	color: #2563eb;
}

.enfoca-blog-empty {
	margin: 0;
	color: #6b7280;
}

/* Paginación pill (prev / next) */
.enfoca-blog-pager {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	margin-top: 48px;
}

.enfoca-blog-pager__btn {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	min-height: 52px;
	padding: 10px 22px;
	border-radius: 999px;
	background: var(--enfoca-blue);
	color: var(--enfoca-navy);
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.enfoca-blog-pager__btn:hover {
	background: #2563eb;
	color: #fff;
}

.enfoca-blog-pager__btn:hover .enfoca-blog-pager__icon {
	background: #fff;
	color: var(--enfoca-blue);
}

.enfoca-blog-pager__btn.is-disabled {
	background: #e8ecf4;
	color: #a0a8bc;
	pointer-events: none;
	cursor: default;
}

.enfoca-blog-pager__btn.is-disabled .enfoca-blog-pager__icon {
	background: #c5ccd9;
	color: #e8ecf4;
}

.enfoca-blog-pager__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--enfoca-navy);
	color: #fff;
	flex-shrink: 0;
}

.enfoca-blog-pager__btn.is-disabled .enfoca-blog-pager__icon {
	background: #c5ccd9;
	color: #eef1f6;
}

.enfoca-blog-pager__label {
	white-space: nowrap;
}

/* ========== Single hero ========== */
.enfoca-single-hero {
	padding: 200px 10px 96px;
}

.enfoca-single-hero__back {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 28px;
	color: rgba(255, 255, 255, 0.75);
	text-decoration: none;
	font-size: 14px;
}

.enfoca-single-hero__back:hover {
	color: #fff;
}

.enfoca-single-hero__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
	margin-bottom: 20px;
}

.enfoca-single-hero__badge {
	display: inline-flex;
	padding: 6px 12px;
	border-radius: 999px;
	background: var(--enfoca-blue);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.enfoca-single-hero__date {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: rgba(255, 255, 255, 0.8);
}

.enfoca-single-hero__title {
	margin: 0 0 16px;
	max-width: 33ch;
	font-size: clamp(1.85rem, 4vw, 3rem);
	font-weight: 800;
	line-height: 1.15;
	color: #fff;
}

.enfoca-single-hero__line {
	display: block;
	width: 72px;
	height: 3px;
	background: var(--enfoca-blue);
}

/* ========== Single content (recomendado) ========== */
.enfoca-single-content {
	width: 100%;
	padding: 56px 0 80px;
	background: #f7f9fc;
}

.enfoca-single-content__media {
	margin: 0 0 32px;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 12px 32px rgba(40, 45, 103, 0.1);
}

.enfoca-single-content__media img {
	display: block;
	width: 100%;
	height: auto;
}

.enfoca-single-content__entry {
	color: #374151;
	font-size: 1.05rem;
	line-height: 1.8;
}

.enfoca-single-content__entry > *:first-child {
	margin-top: 0;
}

.enfoca-single-content__entry h2,
.enfoca-single-content__entry h3,
.enfoca-single-content__entry h4 {
	margin: 2em 0 0.75em;
	color: var(--enfoca-navy);
	font-weight: 700;
	line-height: 1.3;
}

.enfoca-single-content__entry p {
	margin: 0 0 1.25em;
}

.enfoca-single-content__entry a {
	color: var(--enfoca-blue);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.enfoca-single-content__entry a:hover {
	color: #2563eb;
}

.enfoca-single-content__entry ul,
.enfoca-single-content__entry ol {
	margin: 0 0 1.25em;
	padding-left: 1.25em;
}

.enfoca-single-content__entry blockquote {
	margin: 1.75em 0;
	padding: 1rem 1.25rem;
	border-left: 3px solid var(--enfoca-blue);
	background: #fff;
	border-radius: 0 12px 12px 0;
	color: var(--enfoca-navy);
	font-style: italic;
}

.enfoca-single-content__entry img {
	max-width: 100%;
	height: auto;
	border-radius: 12px;
}

.enfoca-single-content__entry figure {
	margin: 1.75em 0;
}

.enfoca-single-content__tags {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-top: 40px;
	padding-top: 24px;
	border-top: 1px solid #e6ebf5;
}

.enfoca-single-content__tags-label {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #8b93b0;
}

.enfoca-single-content__tags a {
	display: inline-flex;
	padding: 6px 12px;
	border-radius: 999px;
	background: #eef2f8;
	color: var(--enfoca-navy);
	text-decoration: none;
	font-size: 13px;
	font-weight: 600;
}

.enfoca-single-content__tags a:hover {
	background: var(--enfoca-blue);
	color: #fff;
}

.enfoca-single-nav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin-top: 36px;
	padding-top: 28px;
	border-top: 1px solid #e6ebf5;
}

.enfoca-single-nav a {
	display: block;
	padding: 16px 18px;
	border-radius: 12px;
	background: #fff;
	border: 1px solid #e6ebf5;
	color: var(--enfoca-navy);
	text-decoration: none;
	font-weight: 600;
	line-height: 1.4;
	transition: border-color 0.2s ease, color 0.2s ease;
}

.enfoca-single-nav a:hover {
	border-color: var(--enfoca-blue);
	color: var(--enfoca-blue);
}

.enfoca-single-nav__next {
	text-align: right;
}

@media (max-width: 1024px) {
	.enfoca-blog-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 782px) {
	.enfoca-blog-hero,
	.enfoca-single-hero {
		padding: 72px 0 56px;
	}

	.enfoca-blog-grid {
		grid-template-columns: 1fr;
	}

	.enfoca-blog-pager {
		flex-direction: column;
		align-items: stretch;
	}

	.enfoca-blog-pager__btn {
		justify-content: center;
	}

	.enfoca-single-nav {
		grid-template-columns: 1fr;
	}

	.enfoca-single-nav__next {
		text-align: left;
	}
}
