/* ============================================================================
   Noticias — Posts-backed news listing (home.php / archive.php) and single
   post (single.php). The intro band reuses .svc-header; grid cards reuse
   .news-card. Figma: 2591:3530 (listing) and 2591:3637 (single).
   ========================================================================== */

/* ---------- Listing: intro+filters (left) and posts (right), top-aligned ---- */
/* Soft gradient band behind the top region (Figma: rgba(28,59,91,0.08) → 0). */
.noticias-page {
	background: linear-gradient(180deg, rgba(28, 59, 91, 0.08), rgba(28, 59, 91, 0)) top left / 100% clamp(280px, 28vw, 340px) no-repeat;
	padding-block: clamp(56px, 8vw, 112px) clamp(64px, 9vw, 120px);
}
.noticias {
	display: grid;
	grid-template-columns: 325px minmax(0, 670px);
	gap: clamp(40px, 6vw, 56px) clamp(56px, 10vw, 141px); /* row / column — wider gutter pushes the posts column right (Figma) */
	align-items: start;
}
.noticias__aside { display: flex; flex-direction: column; gap: clamp(48px, 8vw, 112px); }
.noticias__intro {}
.noticias__title {
	margin: 0;
	font-size: var(--fs-h1);
	line-height: var(--lh-h1);
	letter-spacing: var(--ls-h1);
	font-weight: var(--fw-medium);
	color: var(--bida-blue);
}
.noticias__lead {
	margin: var(--space-8) 0 0;
	max-width: 269px;
	font-size: var(--fs-body);
	line-height: var(--lh-body);
	color: var(--neutral-700);
}

/* Filters */
.noticias__filters-title {
	font-size: var(--fs-sub1);
	line-height: var(--lh-sub1);
	color: var(--bida-blue);
	margin: 0 0 var(--space-6);
}
.noticias__filter-list { display: flex; flex-direction: column; gap: 10px; }
.noticias__field {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-3);
	height: 34px;
	padding: 0 16px;
	background: var(--white);
	border: 1px solid var(--neutral-100);
	border-radius: var(--radius-pill);
}
.noticias__field--search { background: var(--neutral-50); }
.noticias__input,
.noticias__select {
	flex: 1 1 auto;
	min-width: 0;
	border: 0;
	background: transparent;
	font-family: inherit;
	font-size: var(--fs-body);
	line-height: var(--lh-body);
	color: var(--bida-blue);
}
.noticias__input::placeholder { color: var(--neutral-500); opacity: 1; }
.noticias__input:focus, .noticias__select:focus { outline: none; }
.noticias__select { appearance: none; -webkit-appearance: none; cursor: pointer; }
.noticias__field-icon { width: 15px; height: 15px; flex: none; color: var(--neutral-500); pointer-events: none; }
.noticias__search-btn {
	display: inline-flex; align-items: center; justify-content: center;
	border: 0; background: transparent; padding: 0; cursor: pointer; color: var(--neutral-500);
}

/* Posts column */
.noticias__main { display: flex; flex-direction: column; gap: 48px; min-width: 0; }
.noticias__grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 48px 20px;
}
.noticias__grid .news-card__title {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.noticias__empty { color: var(--neutral-500); }

/* Featured (first post on page 1) */
.noticia-featured__link { display: flex; flex-direction: column; gap: var(--space-6); }
.noticia-featured__media {
	position: relative;
	display: block;
	height: clamp(240px, 30vw, 367px);
	border-radius: var(--radius-sm);
	overflow: hidden;
	background: var(--bida-dark);
}
.noticia-featured__media img {
	width: 100%; height: 100%; object-fit: cover; object-position: bottom;
	transition: transform var(--dur) var(--ease);
}
.noticia-featured__link:hover .noticia-featured__media img { transform: scale(1.03); }
.noticia-featured__title {
	margin: 0;
	font-size: var(--fs-sub1);
	line-height: var(--lh-sub1);
	font-weight: var(--fw-medium);
	color: var(--bida-blue);
}
.noticia-featured__excerpt {
	margin: 0;
	font-size: var(--fs-body);
	line-height: var(--lh-body);
	color: var(--neutral-500);
}

/* Pagination (the_posts_pagination) */
.noticias .pagination { margin-top: clamp(40px, 6vw, 64px); }
.noticias .nav-links { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.noticias .page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 34px; height: 34px; padding: 0 10px;
	border: 1px solid var(--neutral-100); border-radius: var(--radius-pill);
	color: var(--bida-blue); text-decoration: none; font-size: var(--fs-body);
	transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.noticias .page-numbers:hover { border-color: var(--bida-green); }
.noticias .page-numbers.current { background: var(--bida-blue); border-color: var(--bida-blue); color: var(--white); }

/* ---------- Single noticia ---------- */
.noticia-single { padding-bottom: clamp(64px, 9vw, 120px); }

/* The shared service header carries a generous bottom pad for service pages.
   On an article that pad was compounded by the hero margin, leaving the title
   visually detached from its image.  Scope the correction to posts only. */
body.single-post .svc-header__inner { padding-bottom: clamp(24px, 3vw, 40px); }
.noticia-single__hero {
	border-radius: var(--radius-lg);
	overflow: hidden;
	margin: clamp(20px, 2.5vw, 36px) 0 clamp(48px, 6vw, 80px);
}
.noticia-single__hero img {
	display: block;
	width: 100%;
	height: auto;
	/* Article imagery must remain uncropped; listing-card crops are separate. */
	object-fit: contain;
}

/* Keep oversized article artwork readable without letting it dominate the
   desktop layout. The template is shared by ES/EU and future news posts. */
@media (min-width: 901px) {
	body.single-post .noticia-single__hero {
		width: 100%;
		display: flex;
		align-items: center;
		justify-content: center;
		margin-inline: 0;
	}

	body.single-post .noticia-single__hero img {
		width: auto;
		height: auto;
		max-width: min(50%, 567px);
		max-height: 420px;
		border-radius: var(--radius-lg);
	}
}

.noticia-single__body {
	display: grid;
	grid-template-columns: 210px minmax(0, 670px);
	gap: clamp(32px, 5vw, 48px) clamp(56px, 10vw, 141px); /* row / column */
	align-items: start;
}

/* Single sidebar (date / categories / latest) */
.noticia-aside { display: flex; flex-direction: column; gap: clamp(40px, 6vw, 80px); }
.noticia-aside__block { display: flex; flex-direction: column; gap: var(--space-3); }
.noticia-aside__label {
	margin: 0;
	font-size: var(--fs-body);
	line-height: var(--lh-body);
	letter-spacing: 0.64px;
	text-transform: uppercase;
	color: var(--neutral-500);
}
.noticia-aside__date {
	margin: 0;
	font-size: var(--fs-sub1);
	line-height: var(--lh-sub1);
	font-weight: var(--fw-medium);
	color: var(--bida-blue);
	text-transform: capitalize;
}
.noticia-cats { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.noticia-cat {
	display: inline-flex; align-items: center; justify-content: center;
	padding: 4px 16px;
	background: var(--neutral-50);
	border: 1px solid var(--neutral-200);
	border-radius: var(--radius-pill);
	font-size: var(--fs-body-s);
	line-height: var(--lh-body-s);
	font-weight: var(--fw-medium);
	color: var(--bida-blue);
	text-decoration: none;
	transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.noticia-cat:hover { border-color: var(--bida-green); }
.noticia-latest { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-6); }
.noticia-latest a {
	font-size: var(--fs-body);
	line-height: var(--lh-body);
	font-weight: var(--fw-semibold);
	color: var(--bida-blue);
	text-decoration: none;
}
.noticia-latest a:hover { color: var(--bida-green); }

/* Single content + share */
.noticia-single__main { display: flex; flex-direction: column; gap: 48px; min-width: 0; }
.noticia-share { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.noticia-share__title {
	margin: 0;
	font-size: var(--fs-sub2);
	line-height: var(--lh-sub2);
	font-weight: var(--fw-medium);
	color: var(--bida-blue);
}
.noticia-share__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 12px; align-items: center; }

@media (max-width: 1024px) {
	.noticias { grid-template-columns: 1fr; }
	.noticia-single__body { grid-template-columns: 1fr; }
	.noticia-single__main { order: 1; }
	.noticia-aside { order: 2; }
}
@media (max-width: 560px) {
	.noticias__grid { grid-template-columns: 1fr; }
}
