/* =========================================================
   Especial Grid - Estilos
   ========================================================= */

.eg-wrapper {
	--eg-blue: #0b5ed7;
	--eg-text: #1a1a1a;
	--eg-muted: #6b7280;
	--eg-border: #e5e7eb;
	--eg-radius: 10px;
	font-family: inherit;
}

/* ---------- Filtros ---------- */
.eg-filtros-grupo {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 24px;
}

.eg-filtros {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.eg-filtro-btn {
	border: 1px solid var(--eg-border);
	background: #fff;
	color: var(--eg-text);
	padding: 8px 16px;
	border-radius: 999px;
	font-size: 14px;
	cursor: pointer;
	transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.eg-filtro-btn:hover {
	border-color: var(--eg-blue);
}

.eg-filtro-btn.is-active {
	background: var(--eg-blue);
	border-color: var(--eg-blue);
	color: #fff;
}

/* ---------- Grid principal ---------- */
.eg-grid {
	display: grid;
	grid-template-columns: 1.7fr repeat(2, 1fr);
	grid-auto-rows: auto;
	gap: 28px 24px;
	align-items: start;
}

.eg-item {
	display: flex;
	flex-direction: column;
}

.eg-item[hidden] {
	display: none;
}

.eg-item-imglink {
	display: block;
	border-radius: var(--eg-radius);
	overflow: hidden;
	background: #f3f4f6;
	margin-bottom: 12px;
	aspect-ratio: 4 / 3;
}

.eg-item-img,
.eg-item-img--placeholder {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.25s ease;
}

.eg-item-img--placeholder {
	background: linear-gradient(135deg, #e5e7eb, #f3f4f6);
}

/* Item destacado: columna 1, ocupa las 3 filas visualmente */
.eg-item--featured {
	grid-column: 1;
	grid-row: 1 / span 3;
}

.eg-item--featured .eg-item-imglink {
	aspect-ratio: 4 / 3.6;
}

.eg-item--featured .eg-item-titulo {
	font-size: 22px;
}

/* ---------- Instrucciones para hover item ------------------ */
.eg-item:hover .eg-item-titulo a {
	color: var(--gcid-2w2gbf5aza );
	transition: color 0.25s ease;
}

.eg-item:hover .eg-item-img {
	transform: scale(1.04);
	transition: transform 0.25s ease;
}

/* ---------- Meta (bandera + badge tipo) ---------- */
.eg-item-meta {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 6px;
}

.eg-pais {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	color: var(--eg-muted);
}

.eg-pais-icon {
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
}

.eg-badge {
	font-size: 12px;
	color: var(--eg-muted);
}

.eg-tag {
	display: inline-block;
	width: fit-content;
	background: #eef2ff;
	color: #4338ca;
	font-size: 12px;
	font-weight: 600;
	padding: 3px 10px;
	border-radius: 6px;
	margin-bottom: 8px;
}

.eg-item-titulo {
	font-size: 16px;
	line-height: 1.35;
	font-weight: 700;
	margin: 0 0 6px;
}

.eg-item-titulo a {
	color: var(--eg-text);
	text-decoration: none;
}

.eg-item-titulo a:hover {
	text-decoration: underline;
}

.eg-item-autor-fecha {
	font-size: 13px;
	color: var(--eg-muted);
	margin: 0;
}

.eg-empty {
	color: var(--eg-muted);
	font-style: italic;
}

/* =========================================================
   Responsive
   ========================================================= */

/* Tablets: destacado arriba (ancho completo), resto en 2 columnas */
@media (max-width: 980px) {
	.eg-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.eg-item--featured {
		grid-column: 1 / -1;
		grid-row: auto;
	}

	.eg-item--featured .eg-item-imglink {
		aspect-ratio: 16 / 9;
	}
}

/* Móviles: todo en 1 columna */
@media (max-width: 620px) {
	.eg-grid {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.eg-item--featured {
		grid-column: 1;
	}

	.eg-filtros-grupo {
		gap: 6px;
	}

	.eg-filtros {
		flex-wrap: nowrap;
		overflow-x: auto;
		padding-bottom: 4px;
		-webkit-overflow-scrolling: touch;
	}

	.eg-filtro-btn {
		flex-shrink: 0;
	}
}
