/**
 * Blog — archives, single, pagination.
 * Cards: mismo diseño que widget Blog Cards.
 * Sin comments.
 */

.hec-blog,
.eiva-blog-cards {
	--eiva-blog-accent: var(--hec-primary, #eecb68);
	--eiva-blog-badge-text: var(--hec-secondary, #141d3c);
	--eiva-blog-title: var(--hec-secondary, #141d3c);
	--eiva-blog-muted: #707070;
	--eiva-blog-cols: 3;
	--eiva-blog-more-color: var(--hec-secondary, #141d3c);
	--eiva-blog-arrow-color: var(--hec-secondary, #141d3c);
	--hec-blog-accent: var(--hec-primary, #eecb68);

	font-family: "Plus Jakarta Sans", sans-serif;
}

/* ========== Cards (igual widget) ========== */
.eiva-blog-cards__grid,
.hec-blog-grid {
	display: grid;
	grid-template-columns: repeat(var(--eiva-blog-cols, 3), minmax(0, 1fr));
	gap: 28px;
	width: 100%;
}

.eiva-blog-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: #fff;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 8px 28px rgba(8, 40, 40, 0.08);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.eiva-blog-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 14px 36px rgba(8, 40, 40, 0.12);
}

.eiva-blog-card__media {
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: #e8eef0;
	text-decoration: none;
}

.eiva-blog-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
}

.eiva-blog-card:hover .eiva-blog-card__media img {
	transform: scale(1.04);
}

.eiva-blog-card__media-placeholder {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 180px;
	background: linear-gradient(135deg, #dfe8ea, #c5d4d6);
}

.eiva-blog-card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 22px 22px 20px;
}

.eiva-blog-card__meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 14px;
}

.eiva-blog-card__badge {
	display: inline-flex;
	align-items: center;
	padding: 5px 12px;
	border-radius: 4px;
	background: var(--eiva-blog-accent);
	color: var(--eiva-blog-badge-text, var(--hec-secondary, #141d3c));
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	line-height: 1.2;
	text-decoration: none;
	text-transform: uppercase;
}

.eiva-blog-card__badge:hover {
	color: var(--eiva-blog-badge-text, var(--hec-secondary, #141d3c));
	opacity: 0.92;
}

.eiva-blog-card__date {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--eiva-blog-muted);
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1.2;
}

.eiva-blog-card__date-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--eiva-blog-accent);
	flex-shrink: 0;
}

.eiva-blog-card__title {
	margin: 0 0 18px;
	font-size: 1.15rem;
	font-weight: 700;
	line-height: 1.35;
	color: var(--eiva-blog-title);
}

.eiva-blog-card__title a {
	color: inherit;
	text-decoration: none;
}

.eiva-blog-card__title a:hover {
	color: var(--eiva-blog-accent);
}

.eiva-blog-card__more {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: auto;
	align-self: flex-start;
	color: var(--eiva-blog-arrow-color);
	text-decoration: none;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	line-height: 1;
}

.eiva-blog-card__more-text {
	display: inline-block;
	max-width: 0;
	opacity: 0;
	overflow: hidden;
	white-space: nowrap;
	color: var(--eiva-blog-more-color);
	transform: translateX(-6px);
	transition: max-width 0.35s ease, opacity 0.25s ease, transform 0.25s ease;
}

.eiva-blog-card:hover .eiva-blog-card__more-text,
.eiva-blog-card__more:focus-visible .eiva-blog-card__more-text {
	max-width: 12rem;
	opacity: 1;
	transform: translateX(0);
}

.eiva-blog-card__more-arrow {
	display: inline-flex;
	align-items: center;
	font-size: 1.15rem;
	line-height: 1;
	color: var(--eiva-blog-arrow-color);
	transition: transform 0.25s ease;
}

.eiva-blog-card:hover .eiva-blog-card__more-arrow {
	transform: translateX(3px);
}

/* ========== Archive / Blog home ========== */
.hec-blog-archive {
	background: #ffffff;
}

.hec-blog-archive-hero {
	position: relative;
	min-height: 350px;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 90px 24px 80px;
	background-color: var(--hec-secondary, #141d3c);
	background-size: cover;
	background-position: center;
	isolation: isolate;
}

.hec-blog-archive-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(8, 24, 28, 0.68);
	z-index: 0;
}

.hec-blog-archive-hero--no-image {
	background-image: none;
	background-color: var(--hec-secondary, #141d3c);
}

.hec-blog-archive-hero__inner {
	position: relative;
	z-index: 1;
	max-width: 900px;
	margin: 0 auto;
}

.hec-blog-archive-hero__title {
	margin: 0 0 18px;
	color: #fff;
	font-size: clamp(2rem, 4.5vw, 3rem);
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -0.02em;
}

.hec-blog-archive-hero__title-accent {
	position: relative;
	display: inline-block;
	padding-bottom: 10px;
}

.hec-blog-archive-hero__title-accent::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 0;
	width: 56px;
	height: 3px;
	border-radius: 2px;
	background: var(--hec-primary, #eecb68);
	transform: translateX(-50%);
}

.hec-blog-archive-hero__breadcrumb {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px;
	color: #fff;
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1.3;
}

.hec-blog-archive-hero__crumb-home {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #fff;
	text-decoration: none;
}

.hec-blog-archive-hero__crumb-home:hover {
	color: #fff;
	opacity: 0.85;
}

.hec-blog-archive-hero__home-icon {
	display: block;
	flex-shrink: 0;
}

.hec-blog-archive-hero__crumb-sep {
	opacity: 0.85;
	font-size: 0.85em;
}

.hec-blog-archive-hero__crumb-current {
	opacity: 0.95;
}

.hec-blog-archive__body {
	background: #ffffff;
	padding: 64px 24px 72px;
}

.hec-blog-archive__container {
	max-width: 1320px;
	margin: 0 auto;
}

.hec-blog-archive__desc {
	max-width: 720px;
	margin: 0 auto 36px;
	text-align: center;
	color: var(--eiva-blog-muted, #707070);
	font-size: 1rem;
	line-height: 1.65;
}

.hec-blog-archive__empty {
	text-align: center;
	color: var(--eiva-blog-muted, #707070);
	padding: 48px 0;
}


/* ========== Pagination (contador) ========== */
.hec-blog-pagination {
	margin-top: 48px;
	display: flex;
	justify-content: center;
}

.hec-blog-pagination__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.hec-blog-pagination__item a,
.hec-blog-pagination__item span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	font-size: 0.9rem;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	background: color-mix(in srgb, var(--hec-primary, #eecb68) 22%, #ffffff);
	color: var(--hec-secondary, #141d3c);
	transition: background 0.2s ease, color 0.2s ease;
}

.hec-blog-pagination__item a:hover {
	background: color-mix(in srgb, var(--hec-primary, #eecb68) 38%, #ffffff);
	color: var(--hec-secondary, #141d3c);
}

.hec-blog-pagination__item.is-current span,
.hec-blog-pagination__item .current {
	background: var(--hec-secondary, #141d3c);
	color: #fff;
	font-weight: 700;
}

.hec-blog-pagination__item.is-dots span {
	background: transparent;
	width: auto;
	min-width: 24px;
	color: var(--hec-secondary, #141d3c);
}

.hec-blog-pagination__item.is-prev a,
.hec-blog-pagination__item.is-next a {
	font-size: 1.15rem;
	font-weight: 700;
}

/* ========== Single ========== */
.hec-blog-single {
	background: #ffffff;
}

.hec-blog-hero {
	position: relative;
	min-height: 52vh;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 100px 24px 120px;
	background-color: var(--hec-secondary, #141d3c);
	background-size: cover;
	background-position: center;
	isolation: isolate;
}

.hec-blog-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(8, 24, 28, 0.62);
	z-index: 0;
}

.hec-blog-hero--no-image {
	background-image: none;
}

.hec-blog-hero__inner {
	position: relative;
	z-index: 1;
	max-width: 900px;
	margin: 0 auto;
}

.hec-blog-hero__badge {
	display: inline-flex;
	align-items: center;
	padding: 6px 14px;
	margin-bottom: 18px;
	border-radius: 4px;
	background: var(--hec-primary, #eecb68);
	color: var(--hec-secondary, #141d3c);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-decoration: none;
	text-transform: uppercase;
}

.hec-blog-hero__badge:hover {
	color: #fff;
	opacity: 0.95;
}

.hec-blog-hero__title {
	margin: 0 0 18px;
	color: #fff;
	font-size: clamp(1.75rem, 4vw, 2.75rem);
	font-weight: 800;
	line-height: 1.25;
}

.hec-blog-hero__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 10px 18px;
	margin: 0;
	padding: 0;
	list-style: none;
	color: #fff;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.hec-blog-hero__meta li {
	display: inline-flex;
	align-items: center;
	gap: 18px;
}

.hec-blog-hero__meta li:not(:last-child)::after {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--hec-primary, #eecb68);
}

.hec-blog-content-wrap {
	position: relative;
	z-index: 2;
	max-width: 1280px;
	margin: -72px auto 0;
	padding: 0 24px 48px;
}

.hec-blog-content {
	background: #fff;
	border-radius: 28px 28px 0 0;
	padding-top: 66px;
	padding-left: 110px;
	padding-right: 110px;
	padding-bottom: 32px;
}

.hec-blog-content .entry-content {
	color: #4a5560;
	font-size: 1.0625rem;
	line-height: 1.85;
	letter-spacing: 0.01em;
}

.hec-blog-content .entry-content > *:first-child {
	margin-top: 0;
}

.hec-blog-content .entry-content > *:last-child {
	margin-bottom: 0;
}

.hec-blog-content .entry-content p {
	margin: 0 0 1.35em;
}

.hec-blog-content .entry-content h1,
.hec-blog-content .entry-content h2,
.hec-blog-content .entry-content h3,
.hec-blog-content .entry-content h4,
.hec-blog-content .entry-content h5,
.hec-blog-content .entry-content h6 {
	color: var(--hec-secondary, #141d3c);
	font-weight: 800;
	line-height: 1.3;
	letter-spacing: -0.02em;
	margin: 1.75em 0 0.65em;
}

.hec-blog-content .entry-content h2 {
	font-size: clamp(1.45rem, 2.4vw, 1.75rem);
}

.hec-blog-content .entry-content h3 {
	font-size: clamp(1.2rem, 2vw, 1.4rem);
	font-weight: 700;
}

.hec-blog-content .entry-content h4 {
	font-size: 1.1rem;
	font-weight: 700;
}

.hec-blog-content .entry-content a {
	color: var(--hec-primary, #eecb68);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	transition: color 0.2s ease;
}

.hec-blog-content .entry-content a:hover {
	color: var(--hec-secondary, #141d3c);
}

.hec-blog-content .entry-content strong,
.hec-blog-content .entry-content b {
	color: var(--hec-secondary, #141d3c);
	font-weight: 700;
}

.hec-blog-content .entry-content em,
.hec-blog-content .entry-content i {
	font-style: italic;
	color: #3d4a50;
}

.hec-blog-content .entry-content ul,
.hec-blog-content .entry-content ol {
	margin: 0 0 1.4em;
	padding-left: 1.35em;
}

.hec-blog-content .entry-content li {
	margin-bottom: 0.55em;
	padding-left: 0.2em;
}

.hec-blog-content .entry-content ul li::marker {
	color: var(--hec-primary, #eecb68);
}

.hec-blog-content .entry-content ol li::marker {
	color: var(--hec-primary, #eecb68);
	font-weight: 700;
}

.hec-blog-content .entry-content blockquote {
	margin: 2em 0;
	padding: 0.35em 0 0.35em 1.35em;
	border-left: 3px solid var(--hec-primary, #eecb68);
	color: var(--hec-secondary, #141d3c);
	font-weight: 700;
	font-size: 1.125rem;
	line-height: 1.6;
	background: transparent;
}

.hec-blog-content .entry-content blockquote p {
	margin-bottom: 0.5em;
}

.hec-blog-content .entry-content blockquote p:last-child {
	margin-bottom: 0;
}

.hec-blog-content .entry-content img,
.hec-blog-content .entry-content figure {
	max-width: 100%;
	height: auto;
	border-radius: 12px;
	margin: 1.75em 0;
}

.hec-blog-content .entry-content figure {
	margin-left: 0;
	margin-right: 0;
}

.hec-blog-content .entry-content figcaption {
	margin-top: 0.65em;
	font-size: 0.875rem;
	color: #7a8a90;
	text-align: center;
	line-height: 1.5;
}

.hec-blog-content .entry-content hr {
	border: 0;
	border-top: 1px solid #e5ebee;
	margin: 2.25em 0;
}

.hec-blog-content .entry-content pre,
.hec-blog-content .entry-content code {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.hec-blog-content .entry-content code {
	padding: 0.15em 0.4em;
	border-radius: 4px;
	background: #f0f4f5;
	color: var(--hec-secondary, #141d3c);
	font-size: 0.92em;
}

.hec-blog-content .entry-content pre {
	padding: 1.1em 1.25em;
	border-radius: 10px;
	background: var(--hec-secondary, #141d3c);
	color: #e8f0f2;
	overflow-x: auto;
	margin: 1.75em 0;
	line-height: 1.6;
}

.hec-blog-content .entry-content pre code {
	padding: 0;
	background: transparent;
	color: inherit;
	font-size: 0.9em;
}

.hec-blog-content .entry-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 1.75em 0;
	font-size: 0.98rem;
}

.hec-blog-content .entry-content th,
.hec-blog-content .entry-content td {
	padding: 0.75em 1em;
	border-bottom: 1px solid #e5ebee;
	text-align: left;
}

.hec-blog-content .entry-content th {
	color: var(--hec-secondary, #141d3c);
	font-weight: 700;
	background: #f5f8f9;
}


.hec-blog-footer-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 24px 110px;
	background: #fff;
	border-top: 1px solid #e8eef0;
}

.hec-blog-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.hec-blog-tags a {
	display: inline-flex;
	align-items: center;
	padding: 8px 14px;
	border-radius: 999px;
	background: #eef2f3;
	color: var(--hec-secondary, #141d3c);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-decoration: none;
	text-transform: uppercase;
}

.hec-blog-tags a:hover {
	background: color-mix(in srgb, var(--hec-primary, #eecb68) 35%, #ffffff);
	color: var(--hec-secondary, #141d3c);
}

.hec-blog-share {
	display: flex;
	align-items: center;
	gap: 10px;
}

.hec-blog-share a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: #eef2f3;
	color: var(--hec-secondary, #141d3c);
	text-decoration: none;
	transition: background 0.2s ease, color 0.2s ease;
}

.hec-blog-share a:hover {
	background: var(--hec-primary, #eecb68);
	color: var(--hec-secondary, #141d3c);
}

.hec-blog-share svg {
	width: 16px;
	height: 16px;
}

.hec-blog-post-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 22px 110px 28px;
	background: #fff;
	border-top: 1px solid #e5e7eb;
	border-bottom: 1px solid #e5e7eb;
	border-radius: 0;
	margin-bottom: 16px;
}

.hec-blog-post-nav a {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	color: var(--hec-secondary, #141d3c);
	font-weight: 700;
	font-size: 0.95rem;
	text-decoration: none;
}

.hec-blog-post-nav a:hover {
	opacity: 0.85;
}

.hec-blog-post-nav__arrow {
	font-size: 1.25rem;
	line-height: 1;
	font-weight: 400;
}

.hec-blog-related {
	padding: 24px 24px 72px;
}

.hec-blog-related__container {
	max-width: 1320px;
	margin: 0 auto;
}

.hec-blog-related__title {
	margin: 0 0 28px;
	text-align: center;
	font-size: 1.75rem;
	font-weight: 800;
	color: var(--eiva-blog-title);
}

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

@media (max-width: 768px) {
	.hec-blog-content,
	.hec-blog-footer-bar,
	.hec-blog-post-nav {
		padding-left: 22px;
		padding-right: 22px;
	}

	.hec-blog-content {
		border-radius: 20px 20px 0 0;
		padding-top: 32px;
	}

	.hec-blog-content-wrap {
		margin-top: -48px;
	}

	.hec-blog-hero {
		min-height: 42vh;
		padding: 80px 20px 90px;
	}
}

@media (max-width: 640px) {
	.hec-blog-grid,
	.eiva-blog-cards__grid {
		grid-template-columns: 1fr;
	}

	.hec-blog-post-nav {
		flex-direction: column;
		align-items: stretch;
	}

	.hec-blog-post-nav__next {
		justify-content: flex-end;
	}
}
