/*
 * LeyREP Suite · Páginas del sitio propio: noticias, categorías y el acabado común (bordes, degradados, espacios).
 * Radios concéntricos: el radio de fuera es el de dentro más el relleno, para que todo encaje.
 */

/* Radios algo más generosos en todo el sitio (botones, campos, tarjetas). */
:root {
	--lx-r-sm: 10px;
	--lx-r-md: 12px;
	--lx-r-lg: 14px;
	--lx-r-xl: 20px;
	--lx-r-2xl: 24px;
	--pg-gut: clamp(16px, 4vw, 32px);
	--pg-ease: cubic-bezier(.32, .72, 0, 1);
	--pg-line: rgb(16 24 40 / .07);
}

/* El contenido respira bajo la cabecera (el inicio trae su propia portada). */
.lrs-main { padding-top: clamp(16px, 2.4vw, 28px); }
.lrs-v-home .lrs-main { padding-top: 0; }

/* ───────── Noticias y categorías ───────── */
.lrs-page-news {
	box-sizing: border-box;
	max-width: calc(1180px + var(--pg-gut) * 2);
	margin-inline: auto;
	padding: 0 var(--pg-gut) clamp(56px, 7vw, 96px);
}
.lrs-ph {
	--ph-pad: clamp(20px, 4vw, 48px);
	position: relative;
	isolation: isolate;
	overflow: hidden;
	margin: 0 0 clamp(20px, 3vw, 32px);
	padding: clamp(26px, 4vw, 48px) var(--ph-pad) clamp(22px, 3vw, 36px);
	border-radius: 32px;
	background: #f5f7fa;
}
.lrs-ph .lrs-crumbs { margin: 0 0 14px; }
.lrs-ph__title {
	margin: 0 0 12px;
	color: #101828;
	font-size: clamp(2rem, 1.25rem + 2.6vw, 3.25rem);
	font-weight: 700;
	line-height: 1.05;
	letter-spacing: -.035em;
	text-wrap: balance;
}
.lrs-ph__lead {
	max-width: 62ch;
	margin: 0;
	color: #475467;
	font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem);
	line-height: 1.55;
	text-wrap: pretty;
}
.lrs-ph__lead a { color: #3b6890; font-weight: 600; }
.lrs-ph .lrs-filters { margin-top: clamp(18px, 2.4vw, 26px); }
@media (max-width: 899px) {
	.lrs-ph .lrs-filters { margin-right: calc(var(--ph-pad) * -1); }
	.lrs-ph .lrs-filters ul { padding-right: var(--ph-pad); }
}

/* Chips de categoría: pastillas claras; la activa con el verde de la marca. */
.lrs-site .lrs-chip {
	min-height: 36px;
	padding: 6px 14px;
	border: 0;
	background: rgb(255 255 255 / .86);
	box-shadow: 0 0 0 1px rgb(16 24 40 / .08), 0 1px 2px rgb(16 24 40 / .04);
	color: #344054;
	font-weight: 550;
}
@media (hover: hover) {
	.lrs-site .lrs-chip:hover { background: #fff; box-shadow: 0 0 0 1px rgb(59 104 144 / .24), 0 4px 12px -6px rgb(59 104 144 / .35); color: #2b557c; }
}
.lrs-site .lrs-chip.is-active {
	background: #3b6890;
	box-shadow: none;
	color: #fff;
}
.lrs-site .lrs-chip.is-active span { color: rgb(255 255 255 / .78); }

/* Rejilla */
.lrs-ng {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(14px, 2vw, 24px);
}
.lrs-nc {
	--nc-pad: 10px;
	--nc-r: 24px;
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding: var(--nc-pad);
	border-radius: var(--nc-r);
	background: #fff;
	box-shadow: 0 0 0 1px var(--pg-line), 0 1px 2px rgb(16 24 40 / .04);
	transition: transform .6s var(--pg-ease), box-shadow .6s var(--pg-ease);
}
@media (hover: hover) {
	.lrs-nc:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px rgb(59 104 144 / .14), 0 18px 36px -18px rgb(40 80 120 / .38); }
	.lrs-nc:hover .lrs-nc__media img { transform: scale(1.035); }
	.lrs-nc:hover .lrs-nc__more .lrs-i { transform: translateX(3px); }
}
.lrs-nc:active { transform: scale(.985); transition-duration: .12s; }
.lrs-nc__media {
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: 16 / 10;
	border-radius: calc(var(--nc-r) - var(--nc-pad));
	background: #eef2f5;
}
.lrs-nc__media::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgb(16 24 40 / .06); pointer-events: none; }
.lrs-nc__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--pg-ease); }
.lrs-nc__ph {
	display: block;
	width: 100%;
	height: 100%;
	background: #eef2f5;
}
.lrs-nc__body { display: flex; flex: 1; flex-direction: column; min-width: 0; padding: 14px 8px 8px; }
.lrs-nc__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 10px;
	margin: 0 0 10px;
	color: #667085;
	font-size: .8125rem;
	font-weight: 500;
	line-height: 1.3;
}
.lrs-nc__cat {
	position: relative;
	z-index: 2;
	padding: 4px 10px;
	border-radius: 999px;
	background: rgb(116 184 82 / .13);
	color: #3a6c22;
	font-weight: 600;
	text-decoration: none;
	transition: background-color .36s;
}
.lrs-nc__cat:hover { background: rgb(116 184 82 / .24); }
.lrs-nc__upd { color: #8a94a6; }
.lrs-nc__title {
	margin: 0 0 8px;
	color: #101828;
	font-size: 1.125rem;
	font-weight: 650;
	line-height: 1.32;
	letter-spacing: -.015em;
	text-wrap: balance;
}
.lrs-nc__title a { color: inherit; text-decoration: none; }
.lrs-nc__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: var(--nc-r); }
.lrs-nc__title a:focus-visible { outline: none; }
.lrs-nc__title a:focus-visible::after { outline: 2px solid #3b6890; outline-offset: 3px; }
.lrs-nc__sum {
	display: -webkit-box;
	overflow: hidden;
	margin: 0 0 14px;
	color: #475467;
	font-size: .9375rem;
	line-height: 1.55;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
}
.lrs-nc__more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; color: #3b6890; font-size: .875rem; font-weight: 600; }
.lrs-nc__more .lrs-i { width: 16px; height: 16px; transition: transform .54s var(--pg-ease); }

/* Destacada: a lo ancho, foto y texto lado a lado, con un velo verde-azul muy suave. */
.lrs-nc--lead {
	--nc-pad: 12px;
	--nc-r: 32px;
	grid-column: 1 / -1;
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
	align-items: center;
	gap: clamp(16px, 3vw, 40px);
	background: #fff;
}
.lrs-nc--lead .lrs-nc__media { aspect-ratio: 16 / 10; }
.lrs-nc--lead .lrs-nc__body { padding: 12px clamp(8px, 2.4vw, 28px) 12px 0; }
.lrs-nc--lead .lrs-nc__title { margin-bottom: 12px; font-size: clamp(1.5rem, 1.05rem + 1.5vw, 2.25rem); line-height: 1.12; letter-spacing: -.03em; }
.lrs-nc--lead .lrs-nc__sum { margin-bottom: 20px; font-size: clamp(1rem, .96rem + .2vw, 1.0625rem); -webkit-line-clamp: 4; }
.lrs-nc--lead .lrs-nc__more {
	align-self: flex-start;
	margin-top: 0;
	padding: 10px 16px 10px 18px;
	border-radius: 999px;
	background: #3b6890;
	box-shadow: none;
	color: #fff;
}

@media (max-width: 1023px) {
	.lrs-ng { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
	.lrs-nc--lead { grid-template-columns: minmax(0, 1fr); gap: 0; --nc-r: 28px; }
	.lrs-nc--lead .lrs-nc__body { padding: 16px 8px 8px; }
}
/* Teléfono: lista compacta (miniatura y título), como un lector de noticias. La destacada conserva su foto grande. */
@media (max-width: 639px) {
	.lrs-ng { grid-template-columns: minmax(0, 1fr); gap: 10px; }
	.lrs-nc:not(.lrs-nc--lead) {
		--nc-pad: 8px;
		--nc-r: 22px;
		display: grid;
		grid-template-columns: 104px minmax(0, 1fr);
		align-items: center;
		gap: 12px;
	}
	.lrs-nc:not(.lrs-nc--lead) .lrs-nc__media { aspect-ratio: auto; align-self: stretch; width: 104px; height: 100%; min-height: 104px; }
	.lrs-nc:not(.lrs-nc--lead) .lrs-nc__body { padding: 4px 6px 4px 0; }
	.lrs-nc:not(.lrs-nc--lead) .lrs-nc__meta { margin-bottom: 6px; font-size: .75rem; }
	.lrs-nc:not(.lrs-nc--lead) .lrs-nc__cat { padding: 2px 8px; }
	.lrs-nc:not(.lrs-nc--lead) .lrs-nc__title {
		display: -webkit-box;
		overflow: hidden;
		margin: 0;
		font-size: 1rem;
		line-height: 1.3;
		-webkit-line-clamp: 3;
		-webkit-box-orient: vertical;
	}
	.lrs-nc:not(.lrs-nc--lead) :is(.lrs-nc__sum, .lrs-nc__more) { display: none; }
	.lrs-nc--lead .lrs-nc__more { align-self: stretch; justify-content: center; }
}

/* Paginación: pastillas redondas. */
.lrs-site .lrs-pager { gap: 8px; margin-top: clamp(36px, 5vw, 60px); }
.lrs-site .lrs-pager .page-numbers {
	min-width: 44px;
	height: 44px;
	padding: 0 14px;
	border: 0;
	border-radius: 999px;
	background: #fff;
	box-shadow: 0 0 0 1px rgb(16 24 40 / .08), 0 1px 2px rgb(16 24 40 / .04);
	transition: box-shadow .36s, transform .27s var(--pg-ease), color .36s;
}
@media (hover: hover) { .lrs-site .lrs-pager a.page-numbers:hover { background: #fff; box-shadow: 0 0 0 1px rgb(59 104 144 / .24), 0 6px 14px -8px rgb(59 104 144 / .45); color: #2b557c; } }
.lrs-site .lrs-pager a.page-numbers:active { transform: scale(.95); }
.lrs-site .lrs-pager .current { background: #3b6890; box-shadow: none; color: #fff; }
.lrs-site .lrs-pager .dots { background: none; box-shadow: none; }
.lrs-site .lrs-pager :is(.prev, .next) { padding: 0 18px; }

/* ───────── Acabado común: nada de esquinas rectas ───────── */
.lrs-site :is(.lrs-content, .lrs-legacy) :is(figure img, .wp-block-image img, img.size-large, img.size-full, img.aligncenter, img.alignwide) { border-radius: 18px; }
.lrs-site :is(.lrs-content, .lrs-legacy, #rep-entry) iframe:not([src*="spotify"]) { border-radius: 18px; }
.lrs-site :is(.lrs-content, #rep-entry) .wp-block-table { overflow-x: auto; border-radius: 16px; box-shadow: 0 0 0 1px var(--pg-line); }
.lrs-site :is(.lrs-content, #rep-entry) .wp-block-table table { margin: 0; border: 0; }
.lrs-site :is(.lrs-content, #rep-entry) :is(pre, code:not(pre code)) { border-radius: 12px; }

/* Presentación del pie: mismo azul vivo del pie, con luz verde. */
html body .rep-foot-intro > .rep-hero-compact {
	border-color: rgb(255 255 255 / .06);
	background-color: #1f4870;
	background-image: linear-gradient(180deg, #26537f, #1f4870);
	box-shadow: none;
}

/* Pie (escritorio): tarjeta azul con luz verde y azul, separada de los bordes como la cabecera. */
@media (min-width: 1025px) {
	html body .rep-footer .rep-foot-main {
		margin: clamp(56px, 7vw, 96px) clamp(8px, 1.2vw, 16px) clamp(8px, 1.2vw, 16px);
		padding: 56px clamp(24px, 3vw, 40px) 16px;
		border-radius: 32px;
		background-color: #1d4469;
		background-image:
			radial-gradient(60% 70% at 10% 0%, rgb(132 205 92 / .12), transparent 60%),
			linear-gradient(180deg, #24507a, #1d4367) !important;
		box-shadow: inset 0 1px 0 rgb(255 255 255 / .08);
	}
	.rep-footer .rep-foot-post__more {
		padding: 7px 18px;
		background: rgb(255 255 255 / .12);
		box-shadow: inset 0 0 0 1px rgb(255 255 255 / .16);
		color: #fff;
	}
	.rep-footer .rep-foot-post__more:hover { background: rgb(255 255 255 / .2); color: #fff; }
	.rep-footer .rep-foot-copy { color: rgb(255 255 255 / .62); }
}

/* Botones principales: degradado azul de la marca con brillo superior (en vez de un bloque plano). */
.lrs-site .lrs-btn--primary,
.lrs-site .rep-404__btn {
	border-color: transparent;
	border-radius: 999px;
	background: #3b6890;
	box-shadow: none;
	color: #fff;
}
.lrs-site .lrs-btn--primary:hover,
.lrs-site .rep-404__btn:hover { background: #335b7e; color: #fff; }
.lrs-site .lrs-btn--secondary { border-radius: 999px; }

/* Contacto: rótulos de las tarjetas en tipo oración. */
.lrs-site .lrs-cf-page .bento-card h3 { font-size: .9375rem !important; font-weight: 600 !important; letter-spacing: 0 !important; text-transform: none !important; opacity: .92; }

/* Citas: tarjeta suave en vez de raya lateral. */
.lrs-v15 #rep-entry blockquote {
	padding: 18px 22px;
	border: 0;
	border-radius: 20px;
	background: #f4f7f9;
	color: #2c3a44;
}

@media (prefers-reduced-motion: reduce) {
	.lrs-nc, .lrs-nc__media img, .lrs-nc__more .lrs-i { transition: none; }
	.lrs-nc:hover, .lrs-nc:active { transform: none; }
	.lrs-nc:hover .lrs-nc__media img { transform: none; }
}
@media (prefers-contrast: more) {
	.lrs-nc, .lrs-ph { box-shadow: 0 0 0 1px #667085; }
}
@media print {
	.lrs-ph { background: none; box-shadow: none; }
	.lrs-nc { box-shadow: none; break-inside: avoid; }
	.lrs-pager, .lrs-filters { display: none; }
}
