/*
Theme Name: Caliche Noticias
Theme URI: https://noticias.caliche.es
Author: Departamento de Marketing · Grupo Caliche
Description: Tema para el sitio de comunicación interna de Grupo Caliche. Portada con la noticia destacada y todas las noticias agrupadas por día, filtros por empresa del grupo, por tipo de noticia y por especiales como Navidad, buscador y diseño corporativo con el logo y el isotipo de Caliche presentes en toda la web.
Version: 1.3.1
Requires at least: 6.3
Requires PHP: 7.4
License: Uso interno de Grupo Caliche
Text Domain: caliche-noticias
*/

/* ==========================================================================
   1. Variables
   ========================================================================== */

:root {
	--rojo: #E42328;            /* Rojo del logo. Se puede cambiar en el Personalizador */
	--rojo-rgb: 228, 35, 40;
	--rojo-oscuro: color-mix(in srgb, var(--rojo) 78%, #000);
	--ink: #1a1a1a;
	--ink-2: #5c5c5c;
	--ink-3: #8a8a8a;
	--bg: #ffffff;
	--bg-2: #f4f4f4;
	--line: #e2e2e2;
	--radius-s: 4px;
	--radius: 8px;
	--radius-l: 12px;
	--wrap: 1200px;
	--narrow: 720px;
	--gutter: clamp(20px, 4vw, 40px);
	--ease: cubic-bezier(0.25, 0.8, 0.25, 1);
	--font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--header-h: 112px;
}

/* ==========================================================================
   2. Base
   ========================================================================== */

*,
*::before,
*::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font);
	font-size: 1.0625rem;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

:focus-visible {
	outline: 3px solid rgba(var(--rojo-rgb), 0.55);
	outline-offset: 3px;
}

.wrap {
	width: 100%;
	max-width: calc(var(--wrap) + var(--gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.narrow {
	width: 100%;
	max-width: calc(var(--narrow) + var(--gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.skip {
	position: absolute;
	left: 16px; top: -60px;
	z-index: 100;
	padding: 10px 16px;
	background: #fff;
	color: var(--rojo);
	font-weight: 700;
	border-radius: var(--radius-s);
	transition: top 0.2s var(--ease);
}
.skip:focus { top: 12px; }

/* ==========================================================================
   3. Marca: isotipo y logo
   El isotipo y el logo se pintan con máscara CSS: toman el color del texto
   (currentColor). Así un solo archivo sirve en rojo y en blanco.
   ========================================================================== */

.iso {
	position: relative;
	display: inline-block;
	flex: none;
	width: 1em;
	height: 1em;
	background-color: currentColor;
	-webkit-mask: var(--iso) center / contain no-repeat;
	mask: var(--iso) center / contain no-repeat;
}

.iso--inline {
	margin-right: 0.45em;
	font-size: 0.95em;
	vertical-align: -0.12em;
}

.logo-mask {
	display: block;
	height: 34px;
	width: calc(34px * var(--logo-ratio, 4.5872));
	background-color: currentColor;
	-webkit-mask: var(--logo) left center / contain no-repeat;
	mask: var(--logo) left center / contain no-repeat;
}

/* ==========================================================================
   4. Cabecera roja
   ========================================================================== */

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	overflow: hidden;
	background: var(--rojo);
	color: #fff;
	transition: box-shadow 0.3s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 2px 14px rgba(0, 0, 0, 0.14); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }

.bar {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	height: 72px;
}

/* Isotipo grande de fondo en la barra roja */
.bar__iso {
	position: absolute;
	z-index: 1;
	top: -26px;
	right: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + 320px));
	font-size: 130px;
	line-height: 0;
	color: rgba(255, 255, 255, 0.1);
	pointer-events: none;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	min-width: 0;
	color: #fff;
}
.brand__sep { width: 1px; height: 26px; background: rgba(255, 255, 255, 0.45); }
.brand__label {
	font-weight: 600;
	font-size: 1.0625rem;
	letter-spacing: 0.01em;
}

/* Buscador sobre rojo */
.search {
	position: relative;
	display: flex;
	align-items: center;
}
.search__icon {
	position: absolute;
	left: 12px;
	width: 15px; height: 15px;
	color: rgba(255, 255, 255, 0.85);
	pointer-events: none;
}
.search__input {
	width: 230px;
	height: 38px;
	padding: 0 14px 0 36px;
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: var(--radius-s);
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	font: inherit;
	font-size: 0.9375rem;
	transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
	-webkit-appearance: none;
	appearance: none;
}
.search__input::placeholder { color: rgba(255, 255, 255, 0.8); }
.search__input:focus {
	outline: none;
	background: #fff;
	border-color: #fff;
	color: var(--ink);
}
.search__input:focus::placeholder { color: var(--ink-3); }
.search:focus-within .search__icon { color: var(--rojo); }

/* Formulario de búsqueda dentro del contenido */
.search--block .search__icon { color: var(--ink-3); }
.search--block .search__input {
	width: 100%;
	height: 48px;
	border-color: var(--line);
	background: #fff;
	color: var(--ink);
	font-size: 1.0625rem;
}
.search--block .search__input::placeholder { color: var(--ink-3); }

/* Navegación por tipo (franja blanca bajo la roja) */
.localnav {
	position: relative;
	z-index: 3;
	background: #fff;
	color: var(--ink);
	border-bottom: 1px solid var(--line);
}
.localnav__list {
	display: flex;
	gap: 30px;
	margin: 0;
	padding: 0;
	list-style: none;
	overflow-x: auto;
	scrollbar-width: none;
	-webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
	mask-image: linear-gradient(90deg, #000 85%, transparent);
}
@media (min-width: 720px) {
	.localnav__list { -webkit-mask-image: none; mask-image: none; }
}
.localnav__list::-webkit-scrollbar { display: none; }
.localnav__list a {
	position: relative;
	display: block;
	padding: 13px 0 12px;
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--ink-2);
	white-space: nowrap;
	transition: color 0.2s var(--ease);
}
.localnav__list a:hover { color: var(--rojo); }
.localnav__list a[aria-current="page"],
.localnav__list .current-menu-item > a { color: var(--ink); }
.localnav__list a[aria-current="page"]::after,
.localnav__list .current-menu-item > a::after {
	content: "";
	position: absolute;
	left: 0; right: 0; bottom: -1px;
	height: 3px;
	background: var(--rojo);
}

/* Especiales activos en la barra */
.localnav__especial a,
.localnav__especial a[aria-current="page"] { color: var(--rojo); }
.localnav__especial a::before {
	content: "";
	display: inline-block;
	width: 7px;
	height: 7px;
	margin-right: 7px;
	border-radius: 50%;
	background: currentColor;
	vertical-align: 1px;
}

/* ==========================================================================
   5. Cabecera de página (portada y archivos)
   ========================================================================== */

.hero {
	position: relative;
	padding-top: clamp(44px, 7vw, 84px);
	padding-bottom: clamp(20px, 3vw, 32px);
}
.hero__watermark {
	position: absolute;
	z-index: -1;
	top: 50%;
	right: var(--gutter);
	transform: translateY(-46%);
	font-size: clamp(180px, 26vw, 340px);
	color: rgba(var(--rojo-rgb), 0.07);
	pointer-events: none;
}
.hero__date {
	display: flex;
	align-items: center;
	margin: 0 0 12px;
	font-size: 0.9375rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--rojo);
}
.hero__date .iso--inline { font-size: 1.15em; }
.hero__title {
	margin: 0;
	font-size: clamp(2.5rem, 6.5vw, 4.75rem);
	line-height: 1.03;
	font-weight: 800;
	letter-spacing: -0.03em;
}
.hero__title .dot { color: var(--rojo); }
.hero__lead {
	margin: 16px 0 0;
	max-width: 38ch;
	text-wrap: balance;
	font-size: clamp(1.125rem, 2vw, 1.4375rem);
	line-height: 1.35;
	font-weight: 500;
	color: var(--ink-2);
}
.hero__count {
	display: inline-block;
	margin: 18px 0 0;
	padding: 4px 10px;
	border-radius: var(--radius-s);
	background: rgba(var(--rojo-rgb), 0.08);
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--rojo);
}
.hero--archive .hero__title { font-size: clamp(2.25rem, 5.5vw, 4rem); }
.hero--404 .btn { margin-top: 24px; }

/* Filtros (chips) */
.chips {
	display: flex;
	gap: 8px;
	padding-top: 8px;
	padding-bottom: 8px;
	overflow-x: auto;
	scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .chips { flex-wrap: wrap; } }

.chip {
	flex: none;
	display: inline-flex;
	align-items: center;
	height: 36px;
	padding: 0 14px;
	border: 1px solid var(--line);
	border-radius: var(--radius-s);
	background: #fff;
	color: var(--ink);
	font-size: 0.875rem;
	font-weight: 600;
	white-space: nowrap;
	transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background 0.2s var(--ease);
}
.chip:hover { border-color: var(--rojo); color: var(--rojo); }
.chip.is-active {
	border-color: var(--rojo);
	background: var(--rojo);
	color: #fff;
}

/* ==========================================================================
   6. Noticia destacada
   ========================================================================== */

.featured { padding-top: clamp(24px, 4vw, 40px); }
.featured__card {
	position: relative;
	display: grid;
	grid-template-columns: 1.3fr 1fr;
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: var(--radius-l);
	background: #fff;
}
.featured__card::before {
	content: "";
	position: absolute;
	z-index: 2;
	top: 0; left: 0; right: 0;
	height: 6px;
	background: var(--rojo);
}
.featured__media {
	position: relative;
	min-height: 420px;
	overflow: hidden;
}
.featured__media .media__img,
.featured__media .media__placeholder {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.featured__seal {
	position: absolute;
	z-index: 1;
	left: 22px;
	bottom: 22px;
	display: grid;
	place-items: center;
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background: #fff;
	color: var(--rojo);
	font-size: 32px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}
.featured__body {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: clamp(28px, 4vw, 52px);
}
.featured__flag {
	display: flex;
	align-items: center;
	margin: 0 0 16px;
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--rojo);
}
.featured__title {
	margin: 0;
	font-size: clamp(1.75rem, 3vw, 2.5rem);
	line-height: 1.1;
	font-weight: 800;
	letter-spacing: -0.02em;
}
.featured__title a:hover { color: var(--rojo); }
.featured__excerpt {
	margin-top: 14px;
	font-size: 1.125rem;
	line-height: 1.5;
	color: var(--ink-2);
}
.featured__excerpt p { margin: 0; }
.featured__body .meta { margin-top: 18px; }
.featured__body .btn { align-self: flex-start; margin-top: 26px; }

@media (max-width: 860px) {
	.featured__card { grid-template-columns: 1fr; }
	.featured__media { min-height: 0; aspect-ratio: 16 / 10; }
	.featured__seal { width: 48px; height: 48px; font-size: 26px; left: 16px; bottom: 16px; }
}

/* ==========================================================================
   7. Especiales (Navidad...) en portada
   ========================================================================== */

.especial { padding-top: 24px; }
.especial__box {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	align-items: center;
	gap: 32px 56px;
	overflow: hidden;
	padding: clamp(28px, 4.5vw, 52px);
	border-radius: var(--radius-l);
	background: var(--rojo);
	color: #fff;
}
.especial__watermark {
	position: absolute;
	left: -40px;
	bottom: -90px;
	font-size: 340px;
	color: rgba(255, 255, 255, 0.08);
	pointer-events: none;
}
.especial__intro,
.especial__list { position: relative; }
.especial__kicker {
	display: flex;
	align-items: center;
	margin: 0 0 8px;
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	opacity: 0.9;
}
.especial__title {
	margin: 0;
	font-size: clamp(2.25rem, 5vw, 3.5rem);
	line-height: 1;
	font-weight: 800;
	letter-spacing: -0.03em;
}
.especial__title .dot { color: rgba(255, 255, 255, 0.55); }
.especial__desc {
	margin: 14px 0 0;
	max-width: 36ch;
	font-size: 1.0625rem;
	line-height: 1.45;
	opacity: 0.9;
}
.especial__intro .btn { margin-top: 24px; }
.especial__list {
	margin: 0;
	padding: 0;
	list-style: none;
}
.especial__list li + li { border-top: 1px solid rgba(255, 255, 255, 0.22); }
.especial__list a {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 2px 16px;
	padding: 16px 4px;
	transition: opacity 0.2s var(--ease);
}
.especial__list a:hover { opacity: 0.8; }
.especial__when { grid-column: 1; font-size: 0.8125rem; opacity: 0.75; }
.especial__name {
	grid-column: 1;
	font-size: 1.125rem;
	line-height: 1.3;
	font-weight: 700;
}
.especial__arrow {
	grid-column: 2;
	grid-row: 1 / span 2;
	align-self: center;
	font-size: 1.25rem;
	opacity: 0.8;
}
@media (max-width: 860px) {
	.especial__box { grid-template-columns: 1fr; }
}

/* ==========================================================================
   8. Listado por días y tarjetas
   ========================================================================== */

.day { padding-top: clamp(44px, 6vw, 72px); }
.day__title {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 22px;
	font-size: clamp(1.375rem, 2.4vw, 1.75rem);
	font-weight: 800;
	letter-spacing: -0.015em;
}
.day__iso { font-size: 0.85em; color: var(--rojo); }
.day__title::after {
	content: "";
	flex: 1;
	height: 2px;
	background: linear-gradient(90deg, var(--rojo) 0 48px, var(--line) 48px);
}

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

.card { height: 100%; }
.card__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: #fff;
	transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.card__link:hover {
	border-color: rgba(var(--rojo-rgb), 0.45);
	box-shadow: 0 10px 28px -14px rgba(0, 0, 0, 0.25);
}
.card__media {
	position: relative;
	aspect-ratio: 16 / 10;
	overflow: hidden;
}
/* Franja roja que se dibuja al pasar el ratón */
.card__media::after {
	content: "";
	position: absolute;
	left: 0; right: 0; bottom: 0;
	height: 4px;
	background: var(--rojo);
	transform: scaleX(0);
	transform-origin: 0 50%;
	transition: transform 0.35s var(--ease);
}
.card__link:hover .card__media::after { transform: scaleX(1); }
.card__media .media__img,
.card__media .media__placeholder {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 20px 22px 22px;
}
.card__title {
	margin: 0;
	font-size: 1.25rem;
	line-height: 1.25;
	font-weight: 800;
	letter-spacing: -0.01em;
	transition: color 0.2s var(--ease);
}
.card__link:hover .card__title { color: var(--rojo); }
.card__excerpt {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin: 10px 0 0;
	font-size: 0.9375rem;
	line-height: 1.5;
	color: var(--ink-2);
}
.card .meta { margin-top: auto; padding-top: 16px; }

/* Fondo de marca cuando la noticia no tiene foto */
.media__placeholder {
	position: relative;
	display: flex;
	align-items: flex-end;
	overflow: hidden;
	padding: 18px 22px;
	background: var(--rojo);
	color: #fff;
}
.media__placeholder--personas { background: var(--rojo-oscuro); }
.media__placeholder--eventos { background: linear-gradient(135deg, var(--rojo) 0%, var(--rojo-oscuro) 100%); }
.media__placeholder--operativa { background: #2b2b2b; }
.media__mark {
	position: absolute;
	right: -8%;
	top: 50%;
	transform: translateY(-50%);
	font-size: 15rem;
	color: rgba(255, 255, 255, 0.16);
	pointer-events: none;
}
.media__placeholder--operativa .media__mark { color: rgba(var(--rojo-rgb), 0.55); }
.media__name {
	position: relative;
	font-size: 0.9375rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}
.featured .media__placeholder { padding: 30px 34px 30px 100px; }
.featured .media__mark { font-size: 26rem; right: -4%; }
.featured .media__name { font-size: 1.125rem; }
@media (max-width: 860px) {
	.featured .media__placeholder { padding: 20px 22px 20px 80px; }
	.featured .media__mark { font-size: 15rem; }
}

/* Etiqueta del especial sobre la imagen */
.badge {
	position: absolute;
	top: 14px;
	left: 14px;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 10px;
	border-radius: var(--radius-s);
	background: #fff;
	color: var(--rojo);
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

/* Antetítulo y metadatos */
.eyebrow {
	margin: 0 0 8px;
	font-size: 0.75rem;
	line-height: 1.3;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--rojo);
}
.eyebrow a:hover { text-decoration: underline; text-underline-offset: 3px; }
.meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0;
	font-size: 0.8125rem;
	color: var(--ink-3);
}

/* ==========================================================================
   9. Botones, paginación, bloque de envío, vacío
   ========================================================================== */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 46px;
	padding: 0 24px;
	border: 0;
	border-radius: var(--radius-s);
	background: var(--rojo);
	color: #fff;
	font: inherit;
	font-size: 0.9375rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	cursor: pointer;
	transition: background 0.2s var(--ease);
}
.btn:hover { background: var(--rojo-oscuro); }
.btn--ghost {
	background: #fff;
	color: var(--ink);
	box-shadow: inset 0 0 0 1px var(--line);
}
.btn--ghost:hover { background: #fff; color: var(--rojo); box-shadow: inset 0 0 0 1px var(--rojo); }
.btn--light { background: #fff; color: var(--rojo); }
.btn--light:hover { background: rgba(255, 255, 255, 0.9); }

.pager {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	max-width: calc(var(--wrap) + var(--gutter) * 2);
	margin: 56px auto 0;
	padding-inline: var(--gutter);
}
.pager a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 46px;
	padding: 0 20px;
	border: 1px solid var(--line);
	border-radius: var(--radius-s);
	font-weight: 700;
	font-size: 0.9375rem;
	transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.pager a:hover { border-color: var(--rojo); color: var(--rojo); }

.empty {
	padding-top: 64px;
	padding-bottom: 32px;
	text-align: center;
}
.empty h2 { margin: 0 0 8px; font-size: 1.75rem; }
.empty p { margin: 0; color: var(--ink-2); }
.empty a { color: var(--rojo); font-weight: 700; }

/* ==========================================================================
   10. Noticia individual
   ========================================================================== */

.progress {
	position: fixed;
	top: 0; left: 0; right: 0;
	z-index: 60;
	height: 4px;
	pointer-events: none;
}
.progress span {
	display: block;
	height: 100%;
	background: #fff;
	transform-origin: 0 50%;
	transform: scaleX(0);
}

.post__header { padding-top: clamp(40px, 6vw, 68px); }
.back {
	display: inline-flex;
	gap: 6px;
	margin-bottom: 26px;
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: var(--ink-2);
	transition: color 0.2s var(--ease);
}
.back:hover { color: var(--rojo); }
.post__header .eyebrow { font-size: 0.8125rem; margin-bottom: 12px; }
.post__title {
	margin: 0;
	font-size: clamp(2.125rem, 4.8vw, 3.375rem);
	line-height: 1.08;
	font-weight: 800;
	letter-spacing: -0.025em;
	text-wrap: balance;
}
.post__deck {
	margin: 18px 0 0;
	padding-left: 18px;
	border-left: 4px solid var(--rojo);
	font-size: clamp(1.1875rem, 2vw, 1.375rem);
	line-height: 1.4;
	font-weight: 500;
	color: var(--ink-2);
}
.post__header .meta { margin-top: 22px; font-size: 0.9375rem; }

.post__hero { margin: clamp(32px, 5vw, 52px) auto 0; }
.post__hero img {
	width: 100%;
	border-radius: var(--radius-l);
	aspect-ratio: 2 / 1;
	object-fit: cover;
}
.post__hero figcaption {
	margin-top: 10px;
	font-size: 0.8125rem;
	color: var(--ink-3);
	text-align: center;
}

.post__content { padding-top: clamp(32px, 5vw, 44px); }

.prose {
	font-size: 1.125rem;
	line-height: 1.7;
}
.prose > * { margin-top: 0; margin-bottom: 1.15em; }
.prose h2 {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 1.8em;
	margin-bottom: 0.5em;
	font-size: 1.625rem;
	line-height: 1.2;
	font-weight: 800;
}
.prose h2::before {
	content: "";
	flex: none;
	width: 6px;
	height: 1em;
	background: var(--rojo);
}
.prose h3 {
	margin-top: 1.6em;
	margin-bottom: 0.4em;
	font-size: 1.3125rem;
	line-height: 1.25;
	font-weight: 800;
}
.prose a {
	color: var(--rojo);
	font-weight: 600;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}
.prose strong { font-weight: 700; }
.prose ul,
.prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 0.4em; }
.prose li::marker { color: var(--rojo); font-weight: 800; }
.prose blockquote {
	position: relative;
	margin-left: 0;
	margin-right: 0;
	padding: 22px 26px 22px 30px;
	border-left: 5px solid var(--rojo);
	border-radius: 0 var(--radius) var(--radius) 0;
	background: rgba(var(--rojo-rgb), 0.05);
	font-size: 1.3125rem;
	line-height: 1.4;
	font-weight: 700;
}
.prose blockquote p { margin: 0; }
.prose blockquote cite {
	display: block;
	margin-top: 10px;
	font-size: 0.875rem;
	font-style: normal;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--rojo);
}
.prose img,
.prose figure img { border-radius: var(--radius); }
.prose figure { margin-left: 0; margin-right: 0; }
.prose figcaption,
.prose .wp-element-caption {
	margin-top: 8px;
	font-size: 0.8125rem;
	color: var(--ink-3);
	text-align: center;
}
.prose hr {
	border: 0;
	height: 2px;
	margin: 2.4em 0;
	background: linear-gradient(90deg, var(--rojo) 0 48px, var(--line) 48px);
}
.prose table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.prose th { background: var(--rojo); color: #fff; }
.prose th,
.prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.prose .alignwide {
	width: min(100vw - var(--gutter) * 2, 1000px);
	max-width: none;
	margin-left: 50%;
	transform: translateX(-50%);
}
.prose .alignfull {
	width: 100vw;
	max-width: none;
	margin-left: 50%;
	transform: translateX(-50%);
}
.prose .alignfull img { border-radius: 0; }
.prose .aligncenter { margin-left: auto; margin-right: auto; }
.prose .wp-block-button__link {
	display: inline-flex;
	padding: 12px 22px;
	border-radius: var(--radius-s);
	background: var(--rojo);
	color: #fff;
	font-weight: 700;
	text-decoration: none;
}

/* Isotipo de cierre al final de cada noticia */
.prose .post__end {
	display: flex;
	align-items: center;
	gap: 16px;
	margin: 2.4em 0 0;
	font-size: 26px;
	color: var(--rojo);
}
.prose .post__end::before,
.prose .post__end::after {
	content: "";
	flex: 1;
	height: 1px;
	background: var(--line);
}

.post__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 16px;
	margin-top: 28px;
}
.post__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.btn.is-copied { color: var(--rojo); box-shadow: inset 0 0 0 1px var(--rojo); }

/* ==========================================================================
   11. Pie rojo
   ========================================================================== */

.site-footer {
	position: relative;
	overflow: hidden;
	margin-top: clamp(72px, 9vw, 112px);
	padding: 56px 0 40px;
	background: var(--rojo);
	color: #fff;
	font-size: 0.875rem;
}
.site-footer__watermark {
	position: absolute;
	right: -60px;
	bottom: -120px;
	font-size: 460px;
	color: rgba(255, 255, 255, 0.08);
	pointer-events: none;
}
.site-footer__inner { position: relative; }
.site-footer__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 16px 24px;
	padding-bottom: 28px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}
.brand--footer .logo-mask { height: 52px; width: calc(52px * var(--logo-ratio, 4.5872)); }
.site-footer__claim {
	margin: 0;
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	opacity: 0.85;
}
.site-footer__list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
	gap: 12px 24px;
	margin: 28px 0 0;
	padding: 0;
	list-style: none;
}
.site-footer__list a {
	display: inline-flex;
	align-items: center;
	font-weight: 600;
	opacity: 0.9;
	transition: opacity 0.2s var(--ease);
}
.site-footer__list a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.site-footer__legal { margin: 36px 0 0; font-size: 0.75rem; opacity: 0.75; }

/* ==========================================================================
   12. Aparición suave
   ========================================================================== */

.js [data-reveal] {
	opacity: 0;
	transition: opacity 0.5s var(--ease);
	transition-delay: var(--delay, 0ms);
}
.js [data-reveal].is-in { opacity: 1; }

/* ==========================================================================
   13. Responsive y accesibilidad
   ========================================================================== */

@media (max-width: 640px) {
	:root { --header-h: 106px; }
	.bar { height: 62px; }
	.logo-mask { height: 26px; width: calc(26px * var(--logo-ratio, 4.5872)); }
	.brand { gap: 10px; }
	.brand__label { font-size: 0.9375rem; }
	.bar__iso { display: none; }
	.search__input { width: 120px; }
	.search__input:focus { width: 170px; }
	.localnav__list { gap: 22px; }
	.grid { gap: 16px; }
	.card__body { padding: 18px 20px 20px; }
	.hero__watermark { font-size: 200px; right: -50px; }
	.post__footer { flex-direction: column; align-items: flex-start; }
	.site-footer__list { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
	}
	.js [data-reveal] { opacity: 1; }
}

@media (prefers-contrast: more) {
	:root { --ink-2: #333; --ink-3: #444; --line: #8e8e93; }
}

@media print {
	.site-header,
	.site-footer,
	.progress,
	.related,
	.post__footer .btn { display: none !important; }
	.js [data-reveal] { opacity: 1; }
}
