/**
 * 2PX Elementor Suite — Blog Widget
 * BEM Methodology
 *
 * REGLA: Este archivo solo contiene propiedades de layout y estructura.
 * Tipografía (font-size, font-weight, font-family, line-height,
 * letter-spacing, text-transform) se omite aquí para que los controles
 * de Elementor sean la única fuente de verdad y no haya conflictos de CSS.
 */

/* ── Container ──────────────────────────────────────────────────────────────── */
.twopx-blog {
	display: block;
	box-sizing: border-box;
}

/* ── Heading ────────────────────────────────────────────────────────────────── */
.twopx-blog__heading {
	display: block;
}
.twopx-blog__subtitle {
	margin: 0 0 8px 0;
}
.twopx-blog__title {
	margin: 0 0 16px 0;
}
.twopx-blog__description {
	margin: 0 0 32px 0;
}

/* ── Filter ─────────────────────────────────────────────────────────────────── */
.twopx-blog__filter {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 24px;
	padding: 12px 0;
	margin-bottom: 32px;
	border-bottom: 1px solid currentColor;
}
.twopx-blog__filter-chip {
	display: inline-block;
	padding: 8px 0;
	text-decoration: none;
	background: transparent;
	color: inherit;
	transition: color 0.2s ease, background-color 0.2s ease;
}

/* ── Hero · Shared ──────────────────────────────────────────────────────────── */
.twopx-blog__hero {
	margin-bottom: 32px;
}
.twopx-blog__hero-badge {
	display: inline-block;
	padding: 6px 12px;
	margin-bottom: 16px;
	background: #ff5a1f;
	color: #fff;
}
.twopx-blog__hero-title {
	margin: 0 0 12px 0;
}
.twopx-blog__hero-title a {
	color: inherit;
	text-decoration: none;
}
.twopx-blog__hero-title a:hover {
	opacity: 0.9;
}
.twopx-blog__hero-meta {
	margin-bottom: 12px;
}
.twopx-blog__hero-meta .twopx-blog__sep {
	margin: 0 6px;
}
.twopx-blog__hero-excerpt {
	margin: 0 0 20px 0;
}
.twopx-blog__hero-cta {
	display: inline-block;
	padding-bottom: 4px;
	border-bottom: 1px solid currentColor;
	text-decoration: none;
}

/* ── Hero · Overlay layout ──────────────────────────────────────────────────── */
.twopx-blog__hero--overlay {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: 480px;
	background-size: cover;
	background-position: center;
	background-color: #111;
	overflow: hidden;
}
.twopx-blog__hero--overlay::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.7) 100%);
	pointer-events: none;
	z-index: 1;
}
.twopx-blog__hero-inner {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 720px;
	padding: 40px;
	color: #fff;
}
.twopx-blog__hero--overlay .twopx-blog__hero-title   { color: #fff; }
.twopx-blog__hero--overlay .twopx-blog__hero-meta    { color: rgba(255,255,255,0.75); }
.twopx-blog__hero--overlay .twopx-blog__hero-excerpt { color: rgba(255,255,255,0.85); }
.twopx-blog__hero--overlay .twopx-blog__hero-cta     { color: #fff; }

/* ── Hero · Split layout ────────────────────────────────────────────────────── */
.twopx-blog__hero--split {
	display: flex;
	align-items: stretch;
	gap: 0;
}
.twopx-blog__hero-media {
	flex: 0 0 55%;
	max-width: 55%;
	margin: 0;
	overflow: hidden;
}
.twopx-blog__hero-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.twopx-blog__hero-content {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 40px;
	box-sizing: border-box;
}

/* ── Grid ───────────────────────────────────────────────────────────────────── */
.twopx-blog__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

/* ── Card ───────────────────────────────────────────────────────────────────── */
.twopx-blog__card {
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	overflow: hidden;
}
.twopx-blog__card-image {
	display: block;
	height: 200px;
	overflow: hidden;
}
.twopx-blog__card-image .twopx-blog__card-img,
.twopx-blog__card-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}
.twopx-blog__card:hover .twopx-blog__card-img,
.twopx-blog__card:hover img {
	transform: scale(1.04);
}
.twopx-blog__card-content {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 20px;
}
.twopx-blog__card-category {
	display: block;
}
.twopx-blog__card-title {
	margin: 0;
}
.twopx-blog__card-title a {
	color: inherit;
	text-decoration: none;
}
.twopx-blog__card-title a:hover {
	text-decoration: underline;
}
.twopx-blog__card-excerpt {
	margin: 0;
}
.twopx-blog__card-date {
	display: block;
	opacity: 0.75;
}

/* ── Empty state ────────────────────────────────────────────────────────────── */
.twopx-blog__empty {
	padding: 32px;
	text-align: center;
	opacity: 0.7;
}

/* ── Pagination ─────────────────────────────────────────────────────────────── */
.twopx-blog__pagination {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-top: 40px;
}
.twopx-blog__pagination .page-numbers,
.twopx-blog__pagination-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	padding: 10px 14px;
	text-decoration: none;
	color: inherit;
	background: transparent;
	transition: color 0.2s ease, background-color 0.2s ease;
}
.twopx-blog__pagination .page-numbers.dots {
	background: transparent !important;
	pointer-events: none;
}
.twopx-blog__pagination--loadmore .twopx-blog__pagination-link--loadmore {
	padding: 14px 24px;
	border: 1px solid currentColor;
}

/* ── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
	.twopx-blog__grid  { grid-template-columns: repeat(2, 1fr); }
	.twopx-blog__hero-media { flex: 0 0 50%; max-width: 50%; }
}
@media (max-width: 767px) {
	.twopx-blog__grid { grid-template-columns: 1fr; }
	/* Overlay */
	.twopx-blog__hero--overlay { min-height: 360px; }
	.twopx-blog__hero-inner    { padding: 24px; }
	/* Split: stack vertically */
	.twopx-blog__hero--split      { flex-direction: column; }
	.twopx-blog__hero--split-left { flex-direction: column-reverse; }
	.twopx-blog__hero-media   { flex: 0 0 auto; max-width: 100%; width: 100%; aspect-ratio: 16 / 9; }
	.twopx-blog__hero-content { flex: 0 0 auto; }
	.twopx-blog__filter       { gap: 12px; }
}
