/*
 * SPCCCyMF — Noticias.
 * Misma paleta y tipografías que el resto de los plugins de la Sociedad.
 */

.spc-not {
	--spc-rojo: #ce1126;
	--spc-rojo-oscuro: #ae0e20;
	--spc-rojo-tenue: #fdf2f3;
	--spc-grafito: #1f1f21;
	--spc-texto: #16161a;
	--spc-medio: #46464a;
	--spc-suave: #6b6b70;
	--spc-linea: #e6e6e9;
	--spc-fondo: #f7f7f8;
	--spc-radio: 14px;
	--spc-radio-s: 10px;

	box-sizing: border-box;
	margin: 36px 0;
	color: var(--spc-texto);
	font-family: "Public Sans", "Segoe UI", system-ui, sans-serif;
	line-height: 1.6;
}

.spc-not *,
.spc-not *::before,
.spc-not *::after {
	box-sizing: inherit;
}

.spc-not :focus-visible {
	outline: 2px solid var(--spc-rojo-oscuro);
	outline-offset: 2px;
}

/* El tema subraya todos los enlaces; dentro del plugin se decide caso por caso. */
.spc-not a {
	text-decoration: none;
}

.spc-not__oculto {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* --- Nota destacada --- */

.spc-not__destacada {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
	gap: 40px;
	align-items: center;
	margin-bottom: 40px;
	padding-bottom: 40px;
	border-bottom: 1px solid var(--spc-linea);
}

.spc-not__destacadaimg {
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	border-radius: var(--spc-radio);
	background: var(--spc-fondo);
}

.spc-not__destacadaimg img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.spc-not__destacadatitulo {
	margin: 0 0 12px;
	font-family: "Newsreader", Georgia, serif;
	font-size: 34px;
	font-weight: 500;
	line-height: 1.2;
}

.spc-not__destacadatitulo a {
	color: var(--spc-texto);
	text-decoration: none;
}

.spc-not__destacadatitulo a:hover {
	color: var(--spc-rojo-oscuro);
}

.spc-not__bajada {
	margin: 0 0 18px;
	color: var(--spc-medio);
	font-size: 17px;
	line-height: 1.65;
}

.spc-not__enlace {
	color: var(--spc-rojo-oscuro);
	font-size: 16px;
	font-weight: 600;
	text-decoration: none;
}

.spc-not__enlace:hover {
	text-decoration: underline;
}

/* --- Barra de filtros --- */

.spc-not__barra {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 26px;
}

.spc-not__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 9px;
}

.spc-not__chip {
	min-height: 42px;
	padding: 10px 19px;
	border: 1px solid var(--spc-linea);
	border-radius: 40px;
	background: #fff;
	color: var(--spc-medio);
	font: inherit;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}

.spc-not__chip:hover {
	border-color: var(--spc-rojo);
	color: var(--spc-rojo-oscuro);
}

.spc-not__chip.is-activo {
	border-color: var(--spc-rojo);
	background: var(--spc-rojo);
	color: #fff;
	font-weight: 600;
}

.spc-not__buscador input {
	min-width: 260px;
	min-height: 42px;
	padding: 0 15px;
	border: 1px solid var(--spc-linea);
	border-radius: var(--spc-radio-s);
	background: #fff;
	color: var(--spc-texto);
	font: inherit;
	font-size: 15px;
	transition: border-color .15s ease, box-shadow .15s ease;
}

.spc-not__buscador input:focus {
	border-color: var(--spc-rojo);
	box-shadow: 0 0 0 3px rgba(206, 17, 38, .12);
	outline: none;
}

/* --- Grilla --- */

.spc-not__grilla {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
	gap: 26px;
}

.spc-not__grilla.is-cargando {
	opacity: .5;
	pointer-events: none;
}

.spc-not__sinnada {
	grid-column: 1 / -1;
	margin: 0;
	padding: 48px 24px;
	border: 1px dashed #d2d2d7;
	border-radius: var(--spc-radio);
	background: var(--spc-fondo);
	color: var(--spc-medio);
	text-align: center;
}

/* --- Tarjeta --- */

.spc-not__tarjeta {
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	border: 1px solid var(--spc-linea);
	border-radius: var(--spc-radio);
	background: #fff;
	transition: border-color .15s ease, box-shadow .15s ease;
}

.spc-not__tarjeta:hover {
	border-color: #d2d2d7;
	box-shadow: 0 2px 14px rgba(20, 20, 25, .06);
}

.spc-not__img {
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: var(--spc-fondo);
}

.spc-not__img img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .35s ease;
}

.spc-not__tarjeta:hover .spc-not__img img {
	transform: scale(1.03);
}

.spc-not__vacia {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 160px;
	background: repeating-linear-gradient(135deg, #ededef, #ededef 12px, #e4e4e7 12px, #e4e4e7 24px);
}

.spc-not__cuerpo {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 10px;
	padding: 24px;
}

.spc-not__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin: 0;
	color: var(--spc-suave);
	font-size: 13px;
}

.spc-not__cat {
	color: var(--spc-rojo-oscuro);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.spc-not__chapa {
	padding: 4px 11px;
	border-radius: 20px;
	background: var(--spc-rojo);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .05em;
	text-transform: uppercase;
}

.spc-not__titulo {
	margin: 0;
	font-size: 19px;
	font-weight: 600;
	line-height: 1.35;
}

.spc-not__titulo a {
	color: var(--spc-texto);
	text-decoration: none;
}

.spc-not__titulo a:hover {
	color: var(--spc-rojo-oscuro);
}

.spc-not__resumen {
	margin: 0;
	color: var(--spc-suave);
	font-size: 15px;
	line-height: 1.6;
}

/* --- Botones --- */

.spc-not__boton {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 13px 28px;
	border: 1px solid var(--spc-rojo);
	border-radius: var(--spc-radio-s);
	background: var(--spc-rojo);
	color: #fff;
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
}

.spc-not__boton:hover {
	border-color: var(--spc-rojo-oscuro);
	background: var(--spc-rojo-oscuro);
	color: #fff;
}

.spc-not__boton--linea {
	border-color: var(--spc-linea);
	background: transparent;
	color: var(--spc-medio);
}

.spc-not__boton--linea:hover {
	border-color: var(--spc-rojo);
	background: var(--spc-rojo-tenue);
	color: var(--spc-rojo-oscuro);
}

.spc-not__mas {
	margin-top: 32px;
	text-align: center;
}

/* --- Bloque de portada --- */

.spc-not__seccion {
	margin: 0 0 24px;
	font-family: "Newsreader", Georgia, serif;
	font-size: 32px;
	font-weight: 500;
	line-height: 1.2;
}

/* --- Pantallas angostas --- */

@media (max-width: 860px) {
	.spc-not__destacada {
		grid-template-columns: 1fr;
		gap: 22px;
		margin-bottom: 30px;
		padding-bottom: 30px;
	}

	.spc-not__destacadatitulo {
		font-size: 26px;
	}

	.spc-not__barra {
		flex-direction: column;
		align-items: stretch;
	}

	.spc-not__buscador input {
		width: 100%;
		min-width: 0;
	}

	.spc-not__grilla {
		grid-template-columns: 1fr;
	}

	.spc-not__seccion {
		font-size: 26px;
	}
}

/* ============================================================
   La noticia: vista de lectura
   ============================================================ */

/*
 * La noticia ocupa 1290 px, pero el texto no: la línea larga cansa al leer.
 * El ancho sobrante se aprovecha con una columna lateral fija.
 */
.spc-art,
.spc-art__relacionadas {
	width: min(1290px, calc(100vw - 48px));
	max-width: none;
	margin-inline: auto;
}

.spc-art__rejilla {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 40px;
}

.spc-art__principal {
	min-width: 0;
	max-width: 820px;
}

.spc-art__lateral {
	min-width: 0;
}

.spc-art__pegado {
	position: sticky;
	top: 28px;
}

.spc-art__lateralnota {
	margin: 18px 0 0;
	padding-top: 16px;
	border-top: 1px solid var(--spc-linea);
	color: var(--spc-suave);
	font-size: 13px;
}

.spc-art__lateralnota a {
	color: var(--spc-rojo-oscuro);
	font-weight: 600;
}

/* Compartir en vertical, dentro de la columna lateral. */
.spc-art__compartir--lateral {
	flex-direction: column;
	align-items: stretch;
	gap: 8px;
}

.spc-art__compartir--lateral .spc-art__via {
	justify-content: flex-start;
	min-height: 42px;
}

.spc-art__compartir--lateral .spc-art__compartirrotulo {
	margin-bottom: 4px;
}

/* En pantallas angostas no hay lateral: el compartir va arriba. */
.spc-art__lateral {
	display: none;
}

@media (min-width: 1100px) {
	.spc-art__rejilla {
		grid-template-columns: minmax(0, 1fr) 260px;
		gap: 64px;
	}

	.spc-art__lateral {
		display: block;
	}

	.spc-art__compartir--arriba {
		display: none;
	}
}

.spc-art__cabecera {
	padding-bottom: 26px;
	border-bottom: 1px solid var(--spc-linea);
}

.spc-art__volver {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 18px;
	color: var(--spc-suave);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
}

.spc-art__volver:hover {
	color: var(--spc-rojo-oscuro);
}

.spc-art__datos {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
	margin: 0 0 18px;
	color: var(--spc-suave);
	font-size: 14px;
}

.spc-art__cat {
	padding: 5px 13px;
	border-radius: 20px;
	background: var(--spc-rojo-tenue);
	color: var(--spc-rojo-oscuro);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .05em;
	text-decoration: none;
	text-transform: uppercase;
}

.spc-art__cat:hover {
	background: var(--spc-rojo);
	color: #fff;
}

.spc-art__lectura::before {
	content: "·";
	margin-right: 14px;
}

.spc-art__bajada {
	margin: 0 0 22px;
	color: var(--spc-medio);
	font-family: "Newsreader", Georgia, serif;
	font-size: 21px;
	font-style: italic;
	line-height: 1.55;
}

/* --- Compartir --- */

.spc-art__compartir {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 9px;
}

.spc-art__compartirrotulo {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin-right: 4px;
	color: var(--spc-suave);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .07em;
	text-transform: uppercase;
}

.spc-art__via {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 38px;
	padding: 8px 15px;
	border: 1px solid var(--spc-linea);
	border-radius: 40px;
	background: #fff;
	color: var(--spc-medio);
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}

.spc-art__via:hover {
	border-color: var(--spc-rojo);
	background: var(--spc-rojo-tenue);
	color: var(--spc-rojo-oscuro);
}

.spc-art__via.is-copiado {
	border-color: #0b6b4f;
	background: #e7f4ee;
	color: #0b6b4f;
}

.spc-art__compartir--grande .spc-art__via {
	min-height: 44px;
	padding: 11px 20px;
	font-size: 14px;
}

/* --- Imagen --- */

.spc-art__imagen {
	margin: 30px 0;
}

.spc-art__imagen img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--spc-radio);
}

.spc-art__imagen figcaption {
	margin-top: 10px;
	color: var(--spc-suave);
	font-size: 13px;
	line-height: 1.5;
}

/* --- Cuerpo del texto --- */

.spc-art__texto {
	margin-top: 34px;
	font-size: 19px;
	line-height: 1.75;
	color: #26262b;
}

.spc-art__texto > *:first-child {
	margin-top: 0;
}

.spc-art__texto p {
	margin: 0 0 1.35em;
}

.spc-art__texto h2,
.spc-art__texto h3,
.spc-art__texto h4 {
	margin: 1.9em 0 .55em;
	font-family: "Newsreader", Georgia, serif;
	font-weight: 500;
	line-height: 1.25;
	color: var(--spc-texto);
}

.spc-art__texto h2 {
	font-size: 29px;
}

.spc-art__texto h3 {
	font-size: 24px;
}

.spc-art__texto h4 {
	font-size: 20px;
}

.spc-art__texto a {
	color: var(--spc-rojo-oscuro);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.spc-art__texto a:hover {
	text-decoration-thickness: 2px;
}

.spc-art__texto ul,
.spc-art__texto ol {
	margin: 0 0 1.35em;
	padding-left: 1.3em;
}

.spc-art__texto li {
	margin-bottom: .5em;
}

.spc-art__texto ul li::marker {
	color: var(--spc-rojo);
}

.spc-art__texto blockquote {
	margin: 1.9em 0;
	padding: 4px 0 4px 26px;
	border-left: 3px solid var(--spc-rojo);
	color: var(--spc-medio);
	font-family: "Newsreader", Georgia, serif;
	font-size: 22px;
	line-height: 1.55;
}

.spc-art__texto blockquote p:last-child {
	margin-bottom: 0;
}

.spc-art__texto img {
	max-width: 100%;
	height: auto;
	border-radius: var(--spc-radio-s);
}

.spc-art__texto figure {
	margin: 1.9em 0;
}

.spc-art__texto figcaption {
	margin-top: 9px;
	color: var(--spc-suave);
	font-size: 13px;
}

.spc-art__texto hr {
	margin: 2.4em 0;
	border: 0;
	border-top: 1px solid var(--spc-linea);
}

.spc-art__texto table {
	width: 100%;
	margin-bottom: 1.6em;
	border-collapse: collapse;
	font-size: 15px;
}

.spc-art__texto th,
.spc-art__texto td {
	padding: 11px 13px;
	border-bottom: 1px solid var(--spc-linea);
	text-align: left;
}

/* --- Pie y relacionadas --- */

.spc-art__pie {
	margin-top: 40px;
	padding: 26px 0;
	border-top: 1px solid var(--spc-linea);
	border-bottom: 1px solid var(--spc-linea);
}

.spc-art__relacionadas {
	margin-top: 46px;
}

.spc-art__relacionadastitulo {
	margin: 0 0 24px;
	font-family: "Newsreader", Georgia, serif;
	font-size: 28px;
	font-weight: 500;
	line-height: 1.2;
}

.spc-art__relacionadas .spc-not__grilla {
	grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
	gap: 24px;
}

@media (max-width: 860px) {
	.spc-art__texto {
		font-size: 17px;
	}

	.spc-art__bajada {
		font-size: 19px;
	}

	.spc-art__texto h2 {
		font-size: 25px;
	}

	.spc-art__compartirrotulo {
		width: 100%;
		margin-bottom: 2px;
	}

	.spc-art__relacionadas .spc-not__grilla {
		grid-template-columns: 1fr;
	}
}

/*
 * Las noticias relacionadas salen del ancho del contenedor del tema cuando hay
 * pantalla de sobra. Solo a partir de 1024 px: por debajo se quedan dentro.
 */


/* ============================================================
   El título de la noticia
   ------------------------------------------------------------
   Lo dibuja el tema, fuera del bloque del plugin, así que se le da
   estilo donde está en vez de reemplazarlo: si el tema cambia de
   marcado, estas reglas simplemente no aplican y no se rompe nada
   ni aparece el título duplicado.
   ============================================================ */

.single-post .entry-title,
.single-post .entry-header .entry-title,
.single-post .page-header .entry-title,
.single-post .site-main > article > header h1 {
	width: min(1290px, calc(100vw - 48px));
	max-width: none;
	margin: 52px auto 4px;
	padding: 0;
	color: #16161a;
	font-family: "Newsreader", Georgia, serif;
	font-size: clamp(33px, 3.9vw, 50px);
	font-weight: 500;
	letter-spacing: -.01em;
	line-height: 1.14;
	text-wrap: balance;
}

/* El bloque del plugin arranca pegado al título, no a media página. */
.single-post .spc-art {
	margin-top: 18px;
}

/* Muchos temas meten un subrayado en los enlaces de la cabecera de la entrada. */
.single-post .entry-title a {
	color: inherit;
	text-decoration: none;
}

/*
 * La imagen destacada se sale un poco de la columna de texto: da respiro a la
 * página sin estropear el ancho de lectura. Solo en pantallas grandes.
 */


/* En móvil, menos espacio sobre el título. */
@media (max-width: 860px) {
	.single-post .entry-title,
	.single-post .entry-header .entry-title,
	.single-post .page-header .entry-title,
	.single-post .site-main > article > header h1 {
		margin-top: 32px;
	}
}
