:root {
	--lm-news-bg: #080706;
	--lm-news-panel: rgba(17, 13, 11, 0.88);
	--lm-news-panel-solid: #110d0b;
	--lm-news-soft: #18110f;
	--lm-news-line: rgba(240, 232, 219, 0.1);
	--lm-news-red-line: rgba(237, 42, 28, 0.28);
}

body.lm-news-page,
body.lm-newsdetails-page {
	background: var(--lm-news-bg);
	overflow-x: clip;
}

.lm-news-page #main-content,
.lm-newsdetails-page #main-content {
	display: block;
	overflow: visible;
}

.lm-news-page .footer,
.lm-newsdetails-page .footer {
	position: relative;
	border-top: 1px solid rgba(237, 42, 28, 0.16);
	background: #070605;
	z-index: 2;
}

/* ============ Sección raíz ============ */
.lm-news {
	position: relative;
	width: 100%;
	min-height: 100vh;
	padding: clamp(132px, 10vw, 164px) clamp(22px, 5vw, 86px) 140px;
	background:
		radial-gradient(circle at 84% 9%, rgba(181, 25, 17, 0.16), transparent 27%),
		radial-gradient(circle at 10% 46%, rgba(112, 14, 10, 0.1), transparent 30%),
		linear-gradient(180deg, #0d0908 0%, var(--lm-news-bg) 34%, #090706 100%);
	color: var(--lm-ivory);
	isolation: isolate;
}

.lm-news::before {
	content: '';
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
	background-size: 88px 88px;
	mask-image: linear-gradient(to bottom, #000, transparent 76%);
	pointer-events: none;
	z-index: -2;
}

.lm-news::after {
	content: '';
	position: absolute;
	left: clamp(22px, 5vw, 86px);
	right: clamp(22px, 5vw, 86px);
	top: 0;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(237, 42, 28, 0.72), transparent);
	pointer-events: none;
}

/* ============ Ambient ============ */
.lm-news__ambient {
	position: absolute;
	right: -8vw;
	top: 96px;
	width: min(620px, 46vw);
	aspect-ratio: 1;
	border: 1px solid rgba(237, 42, 28, 0.07);
	border-radius: 50%;
	box-shadow:
		0 0 0 76px rgba(237, 42, 28, 0.023),
		0 0 0 152px rgba(237, 42, 28, 0.014);
	pointer-events: none;
	z-index: -1;
}

.lm-news__ambient::before {
	content: '';
	position: absolute;
	inset: 13%;
	background: url('../img/logo.webp') center / contain no-repeat;
	background: image-set(url('../img/logo.avif') type('image/avif') 1x, url('../img/logo.webp') type('image/webp') 1x) center / contain no-repeat;
	filter: grayscale(1) brightness(1.18) contrast(0.88);
	mix-blend-mode: luminosity;
	opacity: 0.06;
}

/* ============ Layout ============ */
.lm-news__layout {
	width: min(1480px, 100%);
	margin-inline: auto;
}

.lm-news--article .lm-news__layout {
	width: min(1080px, 100%);
}

/* ============ Cabecera de la sección ============ */
.lm-news__head {
	position: relative;
	max-width: 720px;
}

.lm-news__kicker {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	color: var(--lm-red-bright);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

.lm-news__kicker::before {
	content: '';
	width: 34px;
	height: 2px;
	background: var(--lm-red-bright);
	box-shadow: 0 0 15px rgba(237, 42, 28, 0.38);
}

.lm-news__title {
	margin: 14px 0 0;
	color: var(--lm-ivory);
	font-family: var(--lm-serif);
	font-size: clamp(38px, 5vw, 72px);
	font-weight: 600;
	letter-spacing: -0.035em;
	line-height: 1;
}

.lm-news__subtitle {
	margin: 18px 0 0;
	color: rgba(240, 232, 219, 0.5);
	font-family: 'Montserrat', sans-serif;
	font-size: 12px;
	line-height: 1.75;
}

/* ============ Grid de noticias ============ */
.news-container {
	display: grid;
	width: 100%;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(24px, 3vw, 34px);
	margin-top: clamp(40px, 5vw, 64px);
}

.card-slide {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: auto;
	min-height: 380px;
	border: 1px solid var(--lm-news-line);
	border-radius: 16px;
	overflow: hidden;
	background: var(--lm-news-panel);
	transition:
		border-color 220ms ease,
		transform 220ms ease,
		box-shadow 220ms ease;
}

.card-slide::before {
	content: '';
	position: absolute;
	top: -1px;
	left: -1px;
	width: 58px;
	height: 2px;
	background: var(--lm-red-bright);
	z-index: 12;
}

.card-slide:hover {
	border-color: rgba(237, 42, 28, 0.42);
	transform: translateY(-6px);
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

.card-background {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	transform: scale(1.01);
	transition: transform 600ms cubic-bezier(0.22, 0.75, 0.2, 1);
}

.card-slide:hover .card-background {
	transform: scale(1.06);
}

/* Degradado permanente en la parte inferior (legibilidad del título) */
.card-slide .dynamic-overlay {
	position: absolute;
	inset: auto 0 0 0;
	height: 62%;
	background: linear-gradient(to top,
		rgba(8, 7, 6, 0.94) 0%,
		rgba(8, 7, 6, 0.55) 55%,
		rgba(8, 7, 6, 0) 100%);
	transition: opacity 300ms ease;
	z-index: 2;
}

.card-header {
	position: absolute;
	top: 18px;
	left: 20px;
	right: 20px;
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 12px;
	background: transparent;
	border-bottom: none;
	z-index: 10;
}

/* Pill del tipo: kicker con indicador rojo */
.category-badge {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 7px 13px;
	border: 1px solid rgba(237, 42, 28, 0.45);
	background: rgba(11, 8, 7, 0.72);
	backdrop-filter: blur(8px);
	color: #f5c1bb;
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	margin-bottom: 0;
}

.category-badge::before {
	content: '';
	width: 6px;
	height: 6px;
	background: var(--lm-red-bright);
	box-shadow: 0 0 10px rgba(237, 42, 28, 0.7);
}

/* Título: siempre visible, anclado abajo, fuera del flujo */
.card-title-visible {
	position: absolute;
	left: 22px;
	right: 22px;
	bottom: 24px;
	margin: 0;
	color: var(--lm-ivory);
	font-family: var(--lm-serif);
	font-size: clamp(22px, 2.2vw, 28px);
	font-weight: 600;
	letter-spacing: -0.02em;
	line-height: 1.1;
	text-shadow: 0 2px 20px rgba(0, 0, 0, 0.9);
	z-index: 5;
}

/* Panel de hover: sube desde abajo y cubre toda la card */
.dynamic-content {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: 26px 24px 22px;
	background:
		linear-gradient(145deg, rgba(255, 255, 255, 0.03), transparent 40%),
		rgba(17, 13, 11, 0.97);
	backdrop-filter: blur(8px);
	opacity: 0;
	transform: translateY(100%);
	transition: transform 420ms cubic-bezier(0.22, 0.75, 0.2, 1), opacity 300ms ease;
	z-index: 8;
}

.card-slide:hover .dynamic-content {
	opacity: 1;
	transform: translateY(0);
}

.card-description {
	margin: 0;
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 5;
	color: rgba(240, 232, 219, 0.88);
	font-family: 'Montserrat', sans-serif;
	font-size: 12px;
	line-height: 1.65;
}

.card-description p {
	margin: 0 0 8px;
}

.card-description p:last-child {
	margin-bottom: 0;
}

.card-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 18px;
	padding-top: 16px;
	border-top: 1px solid rgba(240, 232, 219, 0.09);
}

.card-date {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: rgba(240, 232, 219, 0.6);
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.card-date i {
	color: var(--lm-red-bright);
	font-size: 11px;
}

.read-more-btn {
	appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 38px;
	padding: 0 18px;
	border: 1px solid rgba(237, 42, 28, 0.55);
	border-radius: 9999px;
	background: rgba(183, 25, 18, 0.16);
	color: var(--lm-ivory);
	font-family: var(--lm-display);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	cursor: pointer;
	white-space: nowrap;
	transform: none;
	transition: border-color 200ms ease, background-color 200ms ease, color 200ms ease;
}

.read-more-btn:hover {
	border-color: var(--lm-red-bright);
	background: rgba(183, 25, 18, 0.32);
	color: #fff;
}

/* ============ Estado vacío / error (lista) ============ */
.lm-news-empty {
	max-width: 720px;
	margin: clamp(48px, 6vw, 80px) auto 0;
	padding: clamp(40px, 5vw, 64px);
	border: 1px solid rgba(237, 42, 28, 0.24);
	background:
		radial-gradient(circle at 90% 12%, rgba(183, 25, 18, 0.2), transparent 40%),
		linear-gradient(145deg, #18100d, #0f0c0a);
	text-align: center;
}

.lm-news-empty__icon {
	display: grid;
	width: 64px;
	height: 64px;
	margin: 0 auto 26px;
	place-items: center;
	border: 1px solid rgba(237, 42, 28, 0.34);
	color: var(--lm-red-bright);
	font-size: 22px;
}

.lm-news-empty h2 {
	margin: 0 0 14px;
	color: var(--lm-ivory);
	font-family: var(--lm-serif);
	font-size: clamp(30px, 4vw, 48px);
	font-weight: 600;
	letter-spacing: -0.03em;
	line-height: 1;
}

.lm-news-empty p {
	max-width: 520px;
	margin: 0 auto;
	color: rgba(240, 232, 219, 0.52);
	font-family: 'Montserrat', sans-serif;
	font-size: 13px;
	line-height: 1.8;
}

/* ============ Artículo (detalle) ============ */
.news-article {
	position: relative;
	width: 100%;
	margin: clamp(36px, 5vw, 56px) auto 0;
	border: 1px solid var(--lm-news-line);
	border-radius: 18px;
	overflow: hidden;
	background:
		linear-gradient(145deg, rgba(255, 255, 255, 0.024), transparent 42%),
		var(--lm-news-panel);
	box-shadow: 0 28px 70px rgba(0, 0, 0, 0.3);
}

.news-article::before {
	content: '';
	position: absolute;
	top: -1px;
	left: -1px;
	right: -1px;
	height: 2px;
	background: linear-gradient(90deg, var(--lm-red-bright) 0%, rgba(237, 42, 28, 0.12) 55%, transparent 100%);
	z-index: 12;
}

.news-header {
	padding: clamp(40px, 6vw, 72px) clamp(24px, 6vw, 72px) 34px;
	text-align: center;
	background:
		radial-gradient(circle at 50% 0%, rgba(183, 25, 18, 0.14), transparent 55%),
		rgba(7, 6, 5, 0.5);
	border-bottom: 1px solid var(--lm-news-line);
}

.news-category {
	display: inline-block;
	padding: 7px 16px;
	border: 1px solid rgba(237, 42, 28, 0.45);
	border-radius: 9999px;
	background: rgba(183, 25, 18, 0.14);
	color: #ffd9d3;
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	margin-bottom: 20px;
}

.news-title {
	margin: 0;
	color: var(--lm-ivory);
	font-family: var(--lm-serif);
	font-size: clamp(30px, 4.6vw, 54px);
	font-weight: 600;
	letter-spacing: -0.035em;
	line-height: 1.05;
	text-shadow: 0 2px 24px rgba(0, 0, 0, 0.6);
}

.news-meta {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 14px 34px;
	margin-top: 26px;
	color: rgba(240, 232, 219, 0.62);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.meta-item {
	display: flex;
	align-items: center;
	gap: 9px;
}

.meta-item span:first-child {
	color: var(--lm-red-bright);
	font-size: 13px;
}

.news-content {
	padding: clamp(28px, 6vw, 72px);
}

.news-description {
	margin-bottom: 36px;
	padding: 22px 26px;
	border-left: 3px solid var(--lm-red-bright);
	background: rgba(183, 25, 18, 0.07);
	border-radius: 0 12px 12px 0;
	color: rgba(240, 232, 219, 0.92);
	font-family: 'Montserrat', sans-serif;
	font-size: 15px;
	line-height: 1.8;
}

.news-description p {
	margin: 0 0 12px;
}

.news-description p:last-child {
	margin-bottom: 0;
}

.news-image-container {
	margin-bottom: 36px;
	padding: 0;
}

.news-hero-image {
	width: 100%;
	height: auto;
	aspect-ratio: auto;
	object-fit: cover;
	border: 1px solid rgba(240, 232, 219, 0.12);
	border-radius: 14px;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.news-detailed-content {
	color: rgba(240, 232, 219, 0.86);
	font-family: 'Montserrat', sans-serif;
	font-size: 14px;
	line-height: 1.9;
}

.news-detailed-content p {
	margin: 0 0 20px;
}

.author-section {
	margin: 0 clamp(24px, 6vw, 72px);
	padding: 22px 28px;
	border: 1px solid var(--lm-news-line);
	background: rgba(183, 25, 18, 0.06);
	border-radius: 12px;
	text-align: center;
}

.author-title {
	color: rgba(240, 232, 219, 0.5);
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	margin-bottom: 8px;
}

.author-name {
	color: var(--lm-ivory);
	font-family: var(--lm-serif);
	font-size: 16px;
	font-weight: 600;
}

.share-section {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 14px;
	padding: 30px clamp(24px, 6vw, 72px) clamp(34px, 6vw, 56px);
	border-top: 1px solid rgba(240, 232, 219, 0.07);
	margin-top: 34px;
}

.share-btn,
.viewmore-btn {
	appearance: none;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 48px;
	padding: 0 24px;
	border: 1px solid rgba(240, 232, 219, 0.2);
	border-radius: 9999px;
	background: transparent;
	color: var(--lm-ivory);
	font-family: var(--lm-display);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	transition: border-color 200ms ease, background-color 200ms ease, color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}

.share-btn:hover,
.viewmore-btn:hover {
	border-color: var(--lm-red-bright);
	background: rgba(183, 25, 18, 0.16);
	color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
}

.share-icon,
.viewmore-icon {
	fill: currentColor;
	width: 1.1em;
}

/* ============ Error (detalle) ============ */
.error-message {
	margin-top: clamp(40px, 5vw, 56px);
	padding: clamp(28px, 4vw, 44px);
	border: 1px solid rgba(237, 42, 28, 0.24);
	border-radius: 14px;
	background: rgba(183, 25, 18, 0.08);
	color: rgba(240, 232, 219, 0.78);
	font-family: 'Montserrat', sans-serif;
	font-size: 13px;
	line-height: 1.7;
	text-align: center;
}

/* ============ Reveal ============ */
html.js .lm-news [data-news-reveal] {
	transition:
		opacity 700ms cubic-bezier(0.22, 0.75, 0.2, 1),
		transform 700ms cubic-bezier(0.22, 0.75, 0.2, 1);
}

html.js body.lm-news-entering .lm-news [data-news-reveal] {
	opacity: 0;
	transform: translateY(26px);
}

html.js .news-container [data-news-reveal]:nth-child(2) {
	transition-delay: 80ms;
}

html.js .news-container [data-news-reveal]:nth-child(3) {
	transition-delay: 160ms;
}

html.js .news-container [data-news-reveal]:nth-child(4) {
	transition-delay: 240ms;
}

html.js .news-container [data-news-reveal]:nth-child(5) {
	transition-delay: 320ms;
}

html.js .news-container [data-news-reveal]:nth-child(6) {
	transition-delay: 400ms;
}

@media (prefers-reduced-motion: reduce) {
	html.js .lm-news [data-news-reveal] {
		transition: none;
	}

	html.js body.lm-news-entering .lm-news [data-news-reveal] {
		opacity: 1;
		transform: none;
	}
}

/* ============ Responsive ============ */
@media (max-width: 1220px) {
	.lm-news {
		padding-inline: 36px;
	}

	.news-container {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 960px) {
	.lm-news {
		padding-top: 135px;
		padding-inline: 26px;
	}

	.news-container {
		grid-template-columns: 1fr;
	}

	.card-slide {
		min-height: 340px;
	}
}

@media (max-width: 768px) {
	.lm-inner-page .lm-brand-orbit {
		left: 50%;
		top: 47px;
		width: 86px;
	}

	.lm-news {
		padding-top: 124px;
		padding-bottom: 92px;
	}

	.news-content {
		padding: 24px 20px;
	}

	.news-header {
		padding: 36px 20px 26px;
	}

	.news-meta {
		flex-direction: column;
		align-items: center;
		gap: 10px;
	}

	.share-btn,
	.viewmore-btn {
		width: 100%;
	}
}
