/* =============================================================
   3873NOTICIAS — Widgets de Ciudades
   Mismo estilo que el portal (widgets Bento): títulos en Georgia
   negrita, categorías y textos en Roboto (ya la carga el sitio).
   Las clases usan el prefijo "n3873-" porque en CSS una clase
   no puede empezar con un número (".3873-..." no funciona).
   ============================================================= */

.n3873 {
	--n3873-accent: #1B365D;
	--n3873-ink: #111827;
	--n3873-muted: #475569;
	--n3873-line: #e3e7eb;
	--n3873-media: #e2e8f0;
	--n3873-serif: Georgia, 'Times New Roman', serif;
	--n3873-sans: Roboto, system-ui, sans-serif;
	font-family: var(--n3873-sans);
	color: var(--n3873-ink);
	box-sizing: border-box;
}
.n3873 *,
.n3873 *::before,
.n3873 *::after { box-sizing: inherit; }

/* Links sin el rojo del tema */
.n3873 a,
.n3873 a:hover,
.n3873 a:focus { color: inherit !important; text-decoration: none !important; }

/* ── Encabezado de ciudad ───────────────────────────────────── */
.n3873-header {
	border-left: 6px solid var(--n3873-accent);
	padding: 4px 0 4px 20px;
}
.n3873 .n3873-header__title {
	font-family: var(--n3873-serif);
	font-size: clamp(1.875rem, 4vw, 2.75rem);
	font-weight: 900;
	line-height: 1.1;
	letter-spacing: -0.02em;
	color: var(--n3873-ink);
	margin: 0 0 8px;
}
.n3873 .n3873-header__lead {
	font-size: 1rem;
	line-height: 1.6;
	color: var(--n3873-muted);
	margin: 0;
	max-width: 65ch;
}

/* ── Tarjeta de noticia ─────────────────────────────────────── */
.n3873-card { display: flex; flex-direction: column; gap: 14px; margin: 0; }
.n3873-card__media {
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--n3873-media);
	border-radius: 8px;
}
.n3873-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	transition: transform 0.6s ease;
}
.n3873-card:hover .n3873-card__media img { transform: scale(1.04); }

.n3873 .n3873-badge {
	display: block;
	font-family: var(--n3873-sans);
	font-size: 0.875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	line-height: 1.4;
	color: var(--n3873-accent);
	margin-bottom: 6px;
}
.n3873 .n3873-card__title {
	font-family: var(--n3873-serif);
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1.3;
	color: var(--n3873-ink);
	margin: 0;
}
.n3873-card__title a { transition: color 0.2s ease; }
.n3873 .n3873-card:hover .n3873-card__title a { color: var(--n3873-accent) !important; }
.n3873 .n3873-card__excerpt {
	font-size: 0.875rem;
	line-height: 1.6;
	color: var(--n3873-muted);
	margin: 8px 0 0;
}
.n3873-card__date {
	display: block;
	margin-top: 8px;
	font-size: 0.75rem;
	color: var(--n3873-muted);
}

/* ── Destacadas (1 + 2) ─────────────────────────────────────── */
.n3873-hero { display: grid; grid-template-columns: 1fr; gap: 32px; }
.n3873-hero__side { display: flex; flex-direction: column; gap: 28px; }
.n3873 .n3873-card--lead .n3873-card__title {
	font-size: clamp(1.625rem, 3vw, 2.25rem);
	font-weight: 900;
	line-height: 1.12;
	letter-spacing: -0.03em;
}
.n3873 .n3873-card--lead .n3873-card__excerpt { font-size: 1rem; }
.n3873 .n3873-card--side .n3873-card__title { font-size: 1.125rem; }

@media (min-width: 1025px) {
	.n3873-hero { grid-template-columns: 2fr 1fr; }
	.n3873-hero__side .n3873-card + .n3873-card {
		border-top: 1px solid var(--n3873-line);
		padding-top: 24px;
	}
}
@media (min-width: 640px) and (max-width: 1024px) {
	.n3873-hero__side { flex-direction: row; }
	.n3873-hero__side .n3873-card { flex: 1 1 0; }
}

/* ── Grilla ─────────────────────────────────────────────────── */
.n3873-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 32px;
}
@media (max-width: 1024px) { .n3873-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px)  { .n3873-grid { grid-template-columns: 1fr; } }

.n3873-more { text-align: center; margin-top: 40px; }
.n3873 .n3873-more__btn {
	display: inline-block;
	padding: 12px 40px;
	border: 1px solid #c9cfd5;
	border-radius: 4px;
	background: transparent;
	font-family: var(--n3873-sans);
	font-size: 0.8125rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.15em;
	color: #333 !important;
	cursor: pointer;
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.n3873 .n3873-more__btn:hover {
	background: var(--n3873-accent);
	border-color: var(--n3873-accent);
	color: #fff !important;
}
.n3873-more__btn[aria-busy="true"] { opacity: 0.6; pointer-events: none; }

/* ── Banner publicitario ────────────────────────────────────── */
.n3873-ad {
	position: relative;
	display: block;
	width: 100%;
	height: 200px;
	overflow: hidden;
	border: 1px solid #e5e5e5;
	background: #f5f5f5;
}
.n3873-ad__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	transition: transform 0.6s ease;
}
a.n3873-ad:hover .n3873-ad__img { transform: scale(1.03); }
.n3873-ad__shade {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, #000 0%, rgba(0, 0, 0, 0.35) 60%, transparent 100%);
	opacity: 0.45;
}
.n3873-ad__label {
	position: absolute;
	top: 8px;
	left: 8px;
	z-index: 2;
	padding: 2px 6px;
	font-size: 9px;
	text-transform: uppercase;
	letter-spacing: 0.15em;
	color: #333;
	background: rgba(255, 255, 255, 0.85);
}
.n3873-ad__copy {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2;
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 16px 20px;
	color: #fff;
	border-left: 4px solid var(--n3873-accent);
}
.n3873-ad__kicker { font-size: 0.875rem; font-weight: 500; }
.n3873-ad__title {
	font-family: var(--n3873-serif);
	font-size: clamp(1.5rem, 4vw, 2.25rem);
	font-weight: 900;
	line-height: 1;
}
.n3873-ad__sub { font-size: 0.8125rem; opacity: 0.9; }

/* ── Mensajes ───────────────────────────────────────────────── */
.n3873-empty {
	padding: 24px;
	text-align: center;
	color: #475569;
	background: #fff;
	border: 1px dashed #cbd5e1;
	font-family: Roboto, system-ui, sans-serif;
}
.n3873-hint {
	margin-bottom: 12px;
	padding: 10px 14px;
	font: 500 13px/1.4 system-ui, sans-serif;
	color: #7a4b00;
	background: #fff4d6;
	border: 1px solid #f0d58a;
}

@media (prefers-reduced-motion: reduce) {
	.n3873-card__media img,
	.n3873-ad__img { transition: none; }
}
