/**
 * Novedades editorial craft v1.7 — listado / home / single
 * #200C80 · Montserrat · radius 0 · sin gradients · motion liviano
 */

/* —— Archive hero (shared page-hero look) —— */
.hm-news-hero {
	/* Height / navy / trama: .hm-page-hero in contemporaneo.css */
	color: #fff;
}

.hm-news-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem 1.5rem;
	padding: 1.25rem 0 0;
}

.hm-news-toolbar__count {
	display: flex;
	align-items: baseline;
	gap: 0.45rem;
	margin: 0;
}

.hm-news-toolbar__count-num {
	font-family: var(--hm-font-display, "Montserrat", sans-serif);
	font-size: 1.35rem;
	font-weight: 600;
	letter-spacing: -0.03em;
	color: var(--hm-brand, #200c80);
}

.hm-news-toolbar__count-label {
	font-size: 0.78rem;
	font-weight: 400;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--hm-muted, #5c5c6a);
}

.hm-news-search {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: stretch;
	width: 100%;
	background: #fff;
	border: 1px solid transparent;
}

.hm-news-search__icon {
	display: grid;
	place-items: center;
	width: 48px;
	color: #200c80;
}

.hm-news-search input[type="search"] {
	appearance: none;
	border: 0;
	outline: none;
	min-height: 54px;
	padding: 0 0.25rem 0 0;
	font-family: inherit;
	font-weight: 300;
	font-size: 0.95rem;
	color: var(--hm-ink, #12121a);
	background: transparent;
}

.hm-news-search input[type="search"]::placeholder {
	color: var(--hm-muted-soft, #8a8a96);
}

.hm-news-search__btn {
	border-radius: 0;
	min-height: 54px;
	padding-inline: 1.25rem;
}

.hm-news-search:focus-within {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

/* —— Board / chips —— */
.hm-news-board {
	padding: clamp(1.85rem, 3.8vw, 3rem) 0 3.5rem;
}

.hm-news-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
	margin: 0 0 2rem;
	padding: 0 0 1.35rem;
	border-bottom: 1px solid var(--hm-line, #e5e5e8);
}

.hm-news-chips__item {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 0 1rem;
	border: 1px solid var(--hm-line, #e5e5e8);
	background: #fff;
	color: var(--hm-muted, #5c5c68);
	font-size: 0.84rem;
	font-weight: 400;
	letter-spacing: 0.01em;
	text-decoration: none !important;
	transition:
		color var(--hm-ease, 220ms ease),
		border-color var(--hm-ease, 220ms ease),
		background var(--hm-ease, 220ms ease);
}

.hm-news-chips__item:hover {
	color: #200c80;
	border-color: #200c80;
}

.hm-news-chips__item.is-active {
	color: #fff;
	background: #200c80;
	border-color: #200c80;
	font-weight: 500;
}

/* —— Mosaic list —— */
.hm-news-board__list {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 1.15rem 1.2rem;
	list-style: none;
	margin: 0 0 2.5rem;
	padding: 0;
}

.hm-news-board__featured {
	grid-column: 1 / -1;
}

.hm-news-board__mosaic--1 {
	grid-column: span 7;
}

.hm-news-board__mosaic--2 {
	grid-column: span 5;
}

.hm-news-board__item {
	grid-column: span 4;
}

/* —— Cards —— */
.hm-ncard {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	background: #fff;
	border: 1px solid #e5e5e8;
	border-radius: 0;
	overflow: hidden;
	transition:
		border-color var(--hm-ease, 220ms ease),
		transform var(--hm-ease, 220ms ease);
}

.hm-ncard::after {
	content: "";
	position: absolute;
	inset: 0;
	border: 1px solid transparent;
	pointer-events: none;
	z-index: 2;
	transition: border-color var(--hm-ease, 220ms ease);
}

.hm-ncard:hover {
	border-color: #e5e5e8;
	transform: translateY(-3px);
}

.hm-ncard:hover::after {
	border-color: #200c80;
}

.hm-ncard__media {
	position: relative;
	display: block;
	overflow: hidden;
	background: var(--hm-paper, #f3f3f5);
	aspect-ratio: 16 / 10;
}

.hm-ncard__index {
	position: absolute;
	left: 0.85rem;
	bottom: 0.75rem;
	z-index: 1;
	font-family: var(--hm-font-display, "Montserrat", sans-serif);
	font-size: clamp(2rem, 4vw, 2.75rem);
	font-weight: 700;
	letter-spacing: -0.06em;
	line-height: 1;
	color: #fff;
	text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
	pointer-events: none;
}

.hm-ncard--featured .hm-ncard__media,
.hm-ncard--home-lead .hm-ncard__media,
.hm-ncard--related-lead .hm-ncard__media {
	aspect-ratio: 21 / 10;
}

.hm-ncard--featured {
	display: grid;
	grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
	min-height: 340px;
}

.hm-ncard--featured .hm-ncard__media {
	aspect-ratio: auto;
	min-height: 320px;
	height: 100%;
}

.hm-ncard--featured .hm-ncard__index {
	font-size: clamp(3.5rem, 8vw, 6rem);
	left: 1.15rem;
	bottom: 1rem;
	opacity: 0.92;
}

.hm-ncard--mosaic .hm-ncard__media {
	aspect-ratio: 4 / 3;
}

.hm-ncard--mosaic .hm-ncard__title {
	font-size: clamp(1.2rem, 2.2vw, 1.55rem);
	letter-spacing: -0.03em;
}

.hm-ncard__media img,
.hm-ncard__ph {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 480ms cubic-bezier(0.22, 1, 0.36, 1);
}

.hm-ncard:hover .hm-ncard__media img {
	transform: scale(1.035);
}

.hm-ncard__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 1.2rem 1.25rem 1.4rem;
	gap: 0.4rem;
}

.hm-ncard--featured .hm-ncard__body {
	justify-content: center;
	padding: clamp(1.5rem, 3.5vw, 2.75rem);
	background: #fff;
}

.hm-ncard__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.45rem 0.75rem;
	font-size: 0.76rem;
	font-weight: 400;
	color: var(--hm-muted, #5c5c68);
}

.hm-ncard__tag {
	display: inline-block;
	padding: 0.15rem 0.5rem;
	border: 1px solid #e5e5e8;
	background: var(--hm-paper, #f3f3f5);
	font-size: 0.66rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #200c80;
}

.hm-ncard__title {
	margin: 0;
	font-family: var(--hm-font-display, "Montserrat", sans-serif);
	font-size: clamp(1.08rem, 1.9vw, 1.32rem);
	font-weight: 600;
	letter-spacing: -0.03em;
	line-height: 1.18;
}

.hm-ncard--featured .hm-ncard__title,
.hm-ncard--home-lead .hm-ncard__title,
.hm-ncard--related-lead .hm-ncard__title {
	font-size: clamp(1.65rem, 3.6vw, 2.45rem);
	font-weight: 700;
	letter-spacing: -0.04em;
	line-height: 1.05;
}

.hm-ncard__title a {
	color: var(--hm-ink, #12121a);
	text-decoration: none !important;
}

.hm-ncard__title a:hover {
	color: #200c80;
}

.hm-ncard__excerpt {
	margin: 0.2rem 0 0.55rem;
	font-weight: 300;
	font-size: 0.94rem;
	line-height: 1.55;
	color: var(--hm-muted, #5c5c68);
	flex: 1;
}

.hm-ncard__more {
	align-self: flex-start;
	margin-top: auto;
	font-size: 0.88rem;
	font-weight: 600;
	color: #200c80;
	text-decoration: none !important;
	letter-spacing: 0.02em;
}

.hm-ncard__more:hover {
	text-decoration: underline !important;
}

/* —— Pagination —— */
.hm-news-pagination {
	display: flex;
	justify-content: center;
}

.hm-news-pagination .nav-links,
.hm-news-pagination .pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	justify-content: center;
}

.hm-news-pagination .page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 42px;
	min-height: 42px;
	padding: 0 0.65rem;
	border: 1px solid #e5e5e8;
	background: #fff;
	color: var(--hm-ink, #12121a);
	font-weight: 400;
	font-size: 0.9rem;
	text-decoration: none !important;
	border-radius: 0;
	transition:
		border-color var(--hm-ease, 220ms ease),
		background var(--hm-ease, 220ms ease),
		color var(--hm-ease, 220ms ease);
}

.hm-news-pagination .page-numbers:hover {
	border-color: #200c80;
	color: #200c80;
}

.hm-news-pagination .page-numbers.current {
	background: #200c80;
	border-color: #200c80;
	color: #fff;
	font-weight: 500;
}

.hm-news-pagination .page-numbers.dots {
	border-color: transparent;
	background: transparent;
}

/* —— Empty —— */
.hm-news-empty {
	padding: clamp(2.5rem, 5vw, 4rem) 1.5rem;
	text-align: center;
	border: 1px dashed #e5e5e8;
	background: var(--hm-paper, #f3f3f5);
}

.hm-news-empty__eyebrow {
	margin: 0 0 0.5rem;
	font-size: 0.72rem;
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #200c80;
}

.hm-news-empty__title {
	margin: 0 0 0.65rem;
	font-size: clamp(1.35rem, 3vw, 1.85rem);
	font-weight: 600;
	letter-spacing: -0.03em;
	color: var(--hm-ink, #12121a);
}

.hm-news-empty__text {
	margin: 0 auto 1.35rem;
	max-width: 40ch;
	font-weight: 300;
	color: var(--hm-muted, #5c5c68);
}

.hm-news-empty__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem;
	justify-content: center;
}

/* —— Home partial —— */
.hm-news-home__eyebrow {
	margin: 0 0 0.35rem;
	font-size: 0.72rem;
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #200c80;
}

.hm-news-home__layout {
	display: grid;
	grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
	gap: 1.15rem;
	align-items: stretch;
}

.hm-news-home__lead,
.hm-news-home__stack {
	min-width: 0;
	min-height: 0;
}

.hm-news-home__lead .hm-ncard--home-lead {
	min-height: 100%;
}

.hm-news-home__stack {
	display: grid;
	grid-template-rows: 1fr 1fr;
	gap: 1.15rem;
	list-style: none;
	margin: 0;
	padding: 0;
	height: 100%;
}

.hm-news-home__stack > li {
	min-width: 0;
	min-height: 0;
	display: flex;
}

.hm-news-home__stack > li > .hm-ncard {
	flex: 1 1 auto;
	width: 100%;
	min-width: 0;
}

/* Side posts: media strip fills card height without aspect-ratio widening past the column. */
.hm-news-home .hm-ncard--home {
	display: grid;
	grid-template-columns: 128px minmax(0, 1fr);
	align-items: stretch;
	min-width: 0;
	min-height: 148px;
	height: 100%;
}

.hm-news-home .hm-ncard--home .hm-ncard__media {
	position: relative;
	aspect-ratio: auto;
	width: 100%;
	max-width: 100%;
	height: auto;
	min-height: 100%;
	align-self: stretch;
	overflow: hidden;
}

.hm-news-home .hm-ncard--home .hm-ncard__media img,
.hm-news-home .hm-ncard--home .hm-ncard__ph {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}

.hm-news-home .hm-ncard--home .hm-ncard__body {
	min-width: 0;
	padding: 0.85rem 1rem 1rem;
	overflow: hidden;
}

.hm-news-home .hm-ncard--home .hm-ncard__meta {
	min-width: 0;
}

.hm-news-home .hm-ncard--home .hm-ncard__title {
	font-size: 0.98rem;
	line-height: 1.22;
	overflow-wrap: anywhere;
	word-break: normal;
	hyphens: auto;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.hm-news-home .hm-ncard--home .hm-ncard__excerpt {
	font-size: 0.84rem;
	overflow-wrap: anywhere;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.hm-news-home .hm-ncard__index {
	display: none;
}

/* —— Single article —— */
.hm-article-hero {
	/* Height / navy / trama: .hm-page-hero in contemporaneo.css */
	color: #fff;
}

.hm-article__meta-bar {
	background: #fff;
	border-bottom: 1px solid #e5e5e8;
}

.hm-article__meta-bar-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem 1.75rem;
	padding: 0.95rem 0;
}

.hm-article-hero__meta-block {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	margin: 0;
	font-weight: 300;
	font-size: 0.92rem;
	color: var(--hm-ink, #14141c);
}

.hm-article-hero__meta-label {
	font-size: 0.68rem;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--hm-muted, #5c5c6a);
}

.hm-article-hero__back {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	margin-left: auto;
	font-size: 0.9rem;
	font-weight: 500;
	color: var(--hm-brand, #200c80);
	text-decoration: none !important;
}

.hm-article-hero__back:hover {
	text-decoration: underline !important;
}

.hm-article__stage {
	background: #fff;
}

.hm-article__media {
	margin: 0;
	width: 100%;
	max-height: min(68vh, 620px);
	overflow: hidden;
	border-bottom: 1px solid #e5e5e8;
	background: var(--hm-paper, #f3f3f5);
}

.hm-article__media img,
.hm-article__img {
	display: block;
	width: 100%;
	height: min(68vh, 620px);
	object-fit: cover;
}

.hm-article__layout {
	display: grid;
	grid-template-columns: 72px minmax(0, 1fr);
	gap: clamp(1rem, 3vw, 2.5rem);
	padding: clamp(2rem, 4.5vw, 3.25rem) 0 3rem;
	align-items: start;
}

.hm-article__rail {
	position: sticky;
	top: calc(var(--hm-header-h, 76px) + 1.25rem);
	padding-top: 0.35rem;
}

.hm-article__mark {
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border: 1px solid #e5e5e8;
	background: var(--hm-paper, #f3f3f5);
	font-family: var(--hm-font-display, "Montserrat", sans-serif);
	font-size: 1.15rem;
	font-weight: 700;
	letter-spacing: -0.04em;
	color: #200c80;
}

.hm-article__content {
	max-width: 720px;
}

.hm-prose--article {
	max-width: 62ch;
	font-weight: 300;
	font-size: clamp(1.05rem, 1.5vw, 1.125rem);
	line-height: 1.8;
	color: var(--hm-ink, #12121a);
}

.hm-prose--article > *:first-child {
	margin-top: 0;
}

.hm-prose--article > p:first-of-type::first-letter {
	float: left;
	margin: 0.08em 0.12em 0 0;
	font-family: var(--hm-font-display, "Montserrat", sans-serif);
	font-size: 3.4em;
	font-weight: 700;
	line-height: 0.82;
	letter-spacing: -0.05em;
	color: #200c80;
}

.hm-prose--article p {
	margin: 0 0 1.25em;
}

.hm-prose--article h2,
.hm-prose--article h3 {
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1.15;
	margin: 1.85em 0 0.55em;
	color: var(--hm-ink, #12121a);
}

.hm-prose--article h2 {
	font-size: clamp(1.45rem, 2.5vw, 1.85rem);
}

.hm-prose--article h3 {
	font-size: clamp(1.2rem, 2vw, 1.4rem);
}

.hm-prose--article a {
	color: #200c80;
	font-weight: 500;
}

.hm-prose--article img {
	border: 1px solid #e5e5e8;
}

.hm-prose--article blockquote {
	margin: 1.75em 0;
	padding: 0.35em 0 0.35em 1.25rem;
	border-left: 3px solid #200c80;
	font-size: 1.15em;
	font-weight: 400;
	letter-spacing: -0.015em;
	line-height: 1.45;
	color: var(--hm-ink, #12121a);
}

.hm-article__back {
	margin: 2.25rem 0 0;
	padding-top: 1.35rem;
	border-top: 1px solid #e5e5e8;
}

/* —— Related (asimétrico) —— */
.hm-related-news {
	padding: clamp(2.5rem, 5vw, 4rem) 0;
	background: var(--hm-paper, #f3f3f5);
	border-top: 1px solid #e5e5e8;
}

.hm-related-news__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1rem 1.5rem;
	margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

.hm-related-news__eyebrow {
	margin: 0 0 0.35rem;
	font-size: 0.7rem;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #200c80;
}

.hm-related-news__title {
	margin: 0;
	font-family: var(--hm-font-display, "Montserrat", sans-serif);
	font-size: clamp(1.75rem, 3.5vw, 2.55rem);
	font-weight: 700;
	letter-spacing: -0.04em;
	line-height: 1;
	color: var(--hm-ink, #12121a);
}

.hm-related-news__grid {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 1.15rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.hm-related-news__lead {
	grid-column: 1 / -1;
}

.hm-related-news__item {
	grid-column: span 4;
}

.hm-related-news .hm-ncard--related-lead {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
	min-height: 100%;
}

.hm-related-news .hm-ncard--related-lead .hm-ncard__media {
	aspect-ratio: auto;
	min-height: 260px;
	height: 100%;
}

.hm-related-news .hm-ncard--related-lead .hm-ncard__body {
	justify-content: center;
	padding: clamp(1.35rem, 3vw, 2.25rem);
}

.hm-related-news .hm-ncard--related .hm-ncard__media {
	aspect-ratio: 16 / 11;
}

.hm-related-news .hm-ncard--related .hm-ncard__title {
	font-size: 1.02rem;
}

.hm-related-news .hm-ncard--related .hm-ncard__excerpt {
	font-size: 0.84rem;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.hm-related-news .hm-ncard--related-lead .hm-ncard__excerpt {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* —— Responsive —— */
@media (max-width: 1100px) {
	.hm-news-board__mosaic--1,
	.hm-news-board__mosaic--2 {
		grid-column: span 6;
	}

	.hm-news-board__item {
		grid-column: span 6;
	}

	.hm-related-news__lead,
	.hm-related-news__item {
		grid-column: span 6;
	}

	.hm-related-news .hm-ncard--related-lead {
		grid-template-columns: 1fr;
	}

	.hm-related-news .hm-ncard--related-lead .hm-ncard__media {
		aspect-ratio: 16 / 10;
		min-height: 200px;
	}
}

@media (max-width: 960px) {
	.hm-news-toolbar {
		flex-direction: column;
		align-items: stretch;
	}

	.hm-ncard--featured {
		grid-template-columns: 1fr;
		min-height: 0;
	}

	.hm-ncard--featured .hm-ncard__media {
		min-height: 220px;
		aspect-ratio: 16 / 10;
	}

	.hm-news-home__layout {
		grid-template-columns: 1fr;
	}

	.hm-article__layout {
		grid-template-columns: 1fr;
	}

	.hm-article__rail {
		display: none;
	}

	.hm-article__meta-bar-inner {
		flex-direction: column;
		align-items: flex-start;
	}

	.hm-article-hero__back {
		margin-left: 0;
	}
}

@media (max-width: 700px) {
	.hm-news-board__list,
	.hm-related-news__grid {
		grid-template-columns: 1fr;
	}

	.hm-news-board__featured,
	.hm-news-board__mosaic--1,
	.hm-news-board__mosaic--2,
	.hm-news-board__item,
	.hm-related-news__lead,
	.hm-related-news__item {
		grid-column: 1 / -1;
	}

	.hm-related-news .hm-ncard--related-lead {
		grid-template-columns: 1fr;
	}

	.hm-news-search {
		grid-template-columns: auto minmax(0, 1fr);
	}

	.hm-news-search__btn {
		grid-column: 1 / -1;
	}

	.hm-news-home__stack {
		grid-template-rows: none;
		height: auto;
	}

	.hm-news-home .hm-ncard--home {
		grid-template-columns: 1fr;
		min-height: 0;
		height: auto;
	}

	.hm-news-home .hm-ncard--home .hm-ncard__media {
		aspect-ratio: 16 / 10;
		min-height: 0;
		height: auto;
	}

	.hm-news-home .hm-ncard--home .hm-ncard__media img,
	.hm-news-home .hm-ncard--home .hm-ncard__ph {
		position: absolute;
		inset: 0;
	}

	.hm-prose--article > p:first-of-type::first-letter {
		font-size: 2.8em;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hm-ncard,
	.hm-ncard::after,
	.hm-ncard__media img,
	.hm-news-chips__item,
	.hm-news-pagination .page-numbers {
		transition: none !important;
	}

	.hm-ncard:hover {
		transform: none;
	}

	.hm-ncard:hover .hm-ncard__media img {
		transform: none;
	}
}
