/* ==================================================
	01. VARIABLES Y BASE
	Modificar aquí los colores y el ancho del proyecto.
================================================== */
:root {
	--ink: #101e32;
	--red: #bd302d;
	--muted: #606775;
	--line: #d6d8d9;
	--paper: #fbfaf7;
	--serif: Georgia, 'Times New Roman', serif;
	--sans: Arial, Helvetica, sans-serif;
	--width: 1320px;
}
* {
	box-sizing: border-box;
}
html {
	scroll-behavior: smooth;
	scroll-padding-top: 24px;
}
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--sans);
	-webkit-font-smoothing: antialiased;
}
a {
	color: inherit;
	text-decoration: none;
}
button {
	font: inherit;
}
a:focus-visible,
button:focus-visible {
	outline: 2px solid var(--red);
	outline-offset: 5px;
}
a:hover h3,
h2 a:hover,
h3 a:hover {
	color: var(--red);
}
img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.wrap {
	width: min(var(--width), calc(100% - 96px));
	margin-inline: auto;
}
.skip-link {
	position: absolute;
	top: -100px;
	left: 16px;
	z-index: 10;
	padding: 16px;
	background: white;
}
.skip-link:focus {
	top: 10px;
}
.red {
	color: var(--red);
}
.muted {
	color: var(--muted);
}
/* 02. CABECERA Y APERTURA */
.header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 92px;
	border-bottom: 1px solid var(--line);
}
.publisher {
	display: flex;
	align-items: center;
	gap: 9px;
	font-size: 17px;
	font-weight: 900;
	line-height: .95;
	letter-spacing: -.7px;
}
.publisher-mark {
	font-size: 20px;
	line-height: .52;
}
.header-label,
.header-link,
.edition,
.eyebrow,
.reading,
.story-bottom,
.voice-end {
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 1.2px;
	line-height: 1.6;
}
.header-label {
	color: var(--muted);
	font-size: 9px;
}
.header-link {
	letter-spacing: 0;
	font-size: 12px;
}

.masthead {
	padding-block: 32px 36px;
}
.edition {
	display: flex;
	justify-content: space-between;
	font-size: 9px;
	color: var(--muted);
}
h1 {
	margin: 36px 0 30px;
	font: 400 clamp(48px, 6.7vw, 102px)/1.01 var(--serif);
	letter-spacing: -5px;
}
h1 > span {
	display: block;
}
h1 i {
	font-weight: 400;
}
.intro {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 32px;
}
.intro p {
	margin: 0;
	font: 22px/1.4 var(--serif);
}
.intro p + p {
	max-width: 335px;
	font: 13px/1.7 var(--sans);
	color: var(--muted);
}
.topic-nav {
	border-block: 1px solid var(--line);
}
.topic-list {
	display: flex;
	justify-content: space-between;
	gap: 22px;
	overflow-x: auto;
	padding-block: 20px;
	font-size: 11px;
	white-space: nowrap;
}
.topic-list a:hover {
	color: var(--red);
}
.topic-list a:first-child {
	font-weight: bold;
}

.lead {
	display: grid;
	grid-template-columns: 1.45fr 1fr;
	gap: 52px;
	padding-block: 45px 60px;
}
.image-link {
	display: block;
	position: relative;
	overflow: hidden;
	background: #e6e5e1;
}
.lead-image {
	min-height: 420px;
}
.image-note {
	position: absolute;
	bottom: 12px;
	left: 14px;
	font-size: 8px;
	letter-spacing: 1px;
	background: rgba(251, 250, 247, .9);
	padding: 5px 8px;
}
.lead-copy {
	align-self: center;
}
.eyebrow {
	margin: 0 0 17px;
	font-size: 9px;
}
.dot {
	display: inline-block;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--red);
	margin-right: 5px;
}
.lead h2 {
	font: 400 clamp(32px, 3.2vw, 47px)/1.1 var(--serif);
	letter-spacing: -1.5px;
	margin: 0 0 22px;
}
.lead-copy > p:not(.eyebrow) {
	color: var(--muted);
	font-size: 14px;
	line-height: 1.8;
	max-width: 390px;
}
.text-link {
	display: inline-flex;
	align-items: center;
	gap: 30px;
	font-size: 12px;
	font-weight: bold;
	padding-bottom: 9px;
	border-bottom: 1px solid currentColor;
	margin-top: 19px;
}

.reading {
	display: block;
	font-size: 8px;
	margin-top: 36px;
	color: var(--muted);
}
/* 03. LISTADO FLEXIBLE DE ARTÍCULOS */
.stories {
	padding-bottom: 75px;
}
.section-heading {
	display: flex;
	align-items: flex-end;
	gap: 38px;
	border-top: 2px solid var(--ink);
	padding-top: 24px;
	margin-bottom: 28px;
}
.section-heading .eyebrow {
	margin-bottom: 7px;
}
.section-heading h2 {
	font: 400 58px/1 var(--serif);
	letter-spacing: -2px;
	margin: 0;
}
.section-heading > p {
	font: 14px/1.6 var(--serif);
	margin: 0 0 5px;
	color: var(--muted);
}
.year {
	margin-left: auto;
	font: italic 62px/.9 var(--serif);
	letter-spacing: -3px;
	color: #aeb3bb;
}
.filters {
	display: flex;
	gap: 7px;
	flex-wrap: wrap;
	margin-bottom: 28px;
}
.filters button {
	border: 1px solid transparent;
	padding: 8px 12px;
	background: transparent;
	color: var(--muted);
	font-size: 11px;
	cursor: pointer;
	border-radius: 0;
}
.filters .active {
	border-color: var(--ink);
	color: var(--ink);
}
.filters button:hover {
	color: var(--red);
}
.article-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 30px;
}
.story {
	display: flex;
	flex-direction: column;
}
.story .image-link {
	aspect-ratio: 1.55;
	margin-bottom: 22px;
}
.story .eyebrow {
	color: var(--red);
	margin-bottom: 12px;
}
.story .eyebrow span {
	color: var(--muted);
}
.story h3 {
	font: 400 29px/1.16 var(--serif);
	letter-spacing: -.6px;
	margin: 0;
}
.story > p:not(.eyebrow) {
	font-size: 12px;
	line-height: 1.8;
	color: var(--muted);
	margin-bottom: 25px;
}
.story-bottom {
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-top: 1px solid var(--line);
	padding-top: 14px;
	margin-top: auto;
	font-size: 8px;
}

.text-story {
	padding: 27px 30px 0;
	border: 1px solid var(--line);
}
.large-number {
	font: 110px/.95 var(--serif);
	letter-spacing: -7px;
	padding: 8px 0 27px;
}
.large-number span {
	display: block;
	color: var(--red);
	font-style: italic;
	font-size: 63px;
	letter-spacing: -3px;
	margin-top: 6px;
}
.text-story .story-bottom {
	padding-bottom: 10px;
}
[hidden] {
	display: none !important;
}
.empty-state {
	border-block: 1px solid var(--line);
	padding-block: 40px;
	color: var(--muted);
	font-size: 14px;
	line-height: 1.7;
}
/* 04. VOCES Y CIERRE */
.voices {
	background: var(--ink);
	color: var(--paper);
	padding-block: 48px 60px;
}
.voices .section-heading {
	border-top-color: #7a8493;
}
.voices .section-heading > p {
	color: #bfc5ce;
}
.voices .year {
	color: #a2aab8;
}
.voice-grid {
	display: grid;
	grid-template-columns: 1.1fr 1fr 1fr;
	gap: 46px;
	margin-top: 40px;
}
.quote-mark {
	font: 82px/.6 var(--serif);
	color: #ea7066;
}
.voice-intro h3 {
	font: 400 36px/1.1 var(--serif);
	margin: 12px 0 18px;
	max-width: 300px;
}
.voice-intro p {
	font-size: 12px;
	line-height: 1.8;
	color: #bfc5ce;
	max-width: 280px;
}
.voice-intro .text-link {
	margin-top: 7px;
}
.voice-item {
	display: flex;
	flex-direction: column;
	border-left: 1px solid #455062;
	padding: 6px 0 0 34px;
}
.voice-item .eyebrow {
	color: #e6a39d;
}
.voice-item h3 {
	font: 400 33px/1.2 var(--serif);
	margin: 34px 0;
}
.voice-item:hover h3 {
	color: #efaaa3;
}
.voice-end {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: auto;
	font-size: 8px;
}

.closing {
	padding-block: 80px;
	text-align: center;
}
.closing .eyebrow {
	color: var(--red);
}
.closing h2 {
	font: 400 48px/1.1 var(--serif);
	letter-spacing: -1px;
	margin: 20px 0;
}
.closing p {
	max-width: 540px;
	margin: 0 auto;
	font-size: 13px;
	line-height: 1.9;
	color: var(--muted);
}
.footer {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 24px;
	padding-block: 28px;
	border-top: 1px solid var(--ink);
}
.footer-name {
	font: 22px var(--serif);
}
.footer-name span {
	color: var(--red);
}
.footer p {
	font-size: 10px;
	color: var(--muted);
}
.footer .prototype {
	font-size: 9px;
	margin-left: auto;
}
/* 05. ANIMACIÓN: contenido visible por defecto, incluso sin JavaScript. */
@media (prefers-reduced-motion: no-preference) {
	.reveal.is-pending {
		opacity: 0;
		transform: translateY(18px);
	}
	.reveal {
		transition: opacity .65s ease, transform .65s ease;
	}
}
/* 06. PÁGINA DE MUESTRA */
.sample-article {
	max-width: 800px;
	padding-block: 65px;
	min-height: 65vh;
}
.sample-article h1 {
	font-size: clamp(40px, 5vw, 65px);
	letter-spacing: -2px;
	line-height: 1.08;
}
.sample-article > p {
	font: 20px/1.7 var(--serif);
}
.sample-notice {
	padding: 22px;
	border: 1px solid var(--line);
	font-size: 13px !important;
	font-family: var(--sans) !important;
	color: var(--muted);
}
/* 07. RESPONSIVE */
@media (min-width: 1600px) {
	h1 {
		font-size: 110px;
	}
}
@media (max-width: 1000px) {
	.wrap {
		width: calc(100% - 48px);
	}
	h1 {
		letter-spacing: -3px;
	}
	.lead {
		gap: 28px;
		grid-template-columns: 1.2fr 1fr;
	}
	.lead-image {
		min-height: 370px;
	}
	.article-grid {
		gap: 22px;
	}
	.story h3 {
		font-size: 25px;
	}
	.text-story {
		padding-inline: 20px;
	}
	.voice-grid {
		gap: 26px;
	}
	.voice-item {
		padding-left: 24px;
	}
	.voice-item h3 {
		font-size: 27px;
	}
	.section-heading > p {
		max-width: 220px;
	}
	.footer .prototype {
		margin-left: 0;
	}
}
@media (max-width: 700px) {
	.wrap {
		width: calc(100% - 36px);
	}
	.header {
		min-height: 74px;
	}
	.header-label {
		display: none;
	}
	.publisher {
		font-size: 14px;
	}
	.header-link {
		font-size: 11px;
	}
	
	.edition {
		font-size: 7px;
		letter-spacing: .6px;
		gap: 20px;
	}
	.edition span:last-child {
		text-align: right;
	}
	.masthead {
		padding-block: 25px 30px;
	}
	h1 {
		font-size: clamp(35px, 8.6vw, 60px);
		letter-spacing: -1.8px;
		margin-block: 30px 25px;
		line-height: 1.08;
	}
	.intro {
		display: block;
	}
	.intro p {
		font-size: 20px;
	}
	.intro p + p {
		font-size: 12px;
		margin-top: 18px;
		max-width: 350px;
	}
	.topic-list {
		padding-block: 17px;
	}
	.lead {
		grid-template-columns: 1fr;
		gap: 25px;
		padding-block: 28px 45px;
	}
	.lead-image {
		min-height: 0;
		aspect-ratio: 1.35;
	}
	.lead h2 {
		font-size: 36px;
	}
	.lead-copy > p:not(.eyebrow) {
		max-width: none;
	}
	.reading {
		margin-top: 24px;
	}
	.section-heading {
		gap: 15px;
		flex-wrap: wrap;
		position: relative;
		padding-right: 75px;
	}
	.section-heading h2 {
		font-size: 44px;
	}
	.section-heading > p {
		font-size: 13px;
		max-width: none;
		width: 100%;
	}
	.section-heading .year {
		position: absolute;
		right: 0;
		top: 48px;
		font-size: 41px;
	}
	.filters {
		gap: 3px;
	}
	.filters button {
		padding: 9px 11px;
	}
	.article-grid {
		grid-template-columns: 1fr;
		gap: 34px;
	}
	.story h3 {
		font-size: 30px;
	}
	.story > p:not(.eyebrow) {
		font-size: 13px;
	}
	.text-story {
		padding: 25px 25px 0;
	}
	.large-number {
		font-size: 90px;
		padding-bottom: 22px;
	}
	.large-number span {
		display: inline;
		margin-left: 10px;
		font-size: 60px;
	}
	.stories {
		padding-bottom: 45px;
	}
	.voices {
		padding-block: 35px 40px;
	}
	.voice-grid {
		grid-template-columns: 1fr;
		gap: 32px;
	}
	.voice-intro h3,
	.voice-intro p {
		max-width: none;
	}
	.voice-item {
		border-left: 0;
		border-top: 1px solid #455062;
		padding: 26px 0 0;
	}
	.voice-item h3 {
		margin: 15px 0 24px;
		font-size: 30px;
	}
	.closing {
		padding-block: 55px;
	}
	.closing h2 {
		font-size: 35px;
	}
	.footer {
		gap: 10px 25px;
	}
	.footer > p {
		width: 100%;
		margin: 5px 0;
	}
}
@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}
/* Marca oficial extraída de la presentación de referencia. */
.publisher img {
	width: 110px;
	height: auto;
	filter: brightness(0);
}
/* 08. FILTROS DE ÁMBITO, TERRITORIO Y TEMA */
.filter-panel {
	border-top: 1px solid var(--line);
	margin-bottom: 22px;
}
.filter-row {
	display: flex;
	align-items: center;
	gap: 20px;
	padding-block: 15px;
	border-bottom: 1px solid var(--line);
}
.filter-label,
.territory-field label {
	font-size: 10px;
	letter-spacing: 1px;
	text-transform: uppercase;
	font-weight: bold;
}
.filter-label {
	min-width: 56px;
}
.filter-row .filters {
	margin-bottom: 0;
}
.territory-field {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-left: auto;
}
.territory-field select {
	font: 12px var(--sans);
	color: var(--ink);
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: 0;
	padding: 10px 12px;
	max-width: 100%;
}
.territory-field select:focus-visible {
	outline: 2px solid var(--red);
	outline-offset: 3px;
}
.filter-summary {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
	padding-top: 14px;
}
.filter-summary p {
	margin: 0;
	font-size: 11px;
	line-height: 1.6;
	color: var(--muted);
}
.reset-filters {
	border: 0;
	background: transparent;
	font-size: 11px;
	padding: 5px 0;
	color: var(--ink);
	text-decoration: underline;
	text-underline-offset: 4px;
	cursor: pointer;
}
.topic-context {
	font: 14px/1.7 var(--serif);
	color: var(--muted);
	max-width: 720px;
	margin: 0 0 30px;
}
.article-grid {
	row-gap: 42px;
}
.text-link:hover,
.story-bottom:hover,
.header-link:hover,
.footer > a:last-child:hover {
	color: var(--red);
}
/* Los enlaces .text-link ya tienen una línea inferior mediante border-bottom. */
.story-bottom:hover,
.header-link:hover,
.footer > a:last-child:hover {
	text-decoration: underline;
	text-underline-offset: 4px;
}
.footer > a:last-child {
	font-size: 11px;
}
@media (max-width: 1000px) {
	.filter-row {
		flex-wrap: wrap;
	}
	.territory-field {
		margin-left: 0;
	}
}
@media (max-width: 700px) {
	.filter-row {
		gap: 12px;
		align-items: flex-start;
	}
	.filter-label {
		width: 100%;
	}
	.territory-field {
		flex-wrap: wrap;
		width: 100%;
		padding-top: 6px;
	}
	.territory-field select {
		flex: 1;
		min-width: 0;
	}
	.filter-summary {
		align-items: flex-start;
		flex-wrap: wrap;
		gap: 8px;
	}
}
/* 09. CHEVRONS CSS: sin imágenes, fuentes de iconos ni JavaScript. */
.header-link,
.text-link,
.topic-list a:first-child,
.footer > a:last-child {
	display: inline-flex;
	align-items: center;
	gap: 14px;
}
.header-link,
.text-link,
.story-bottom,
.voice-end,
.topic-list a:first-child,
.footer > a:last-child {
	--chevron-rotation: -45deg;
	--chevron-x: 3px;
	--chevron-y: 0px;
}
/* El chevron apunta hacia abajo al explorar y hacia arriba al volver. */
.header-link[href="#temas"],
.topic-list a:first-child {
	--chevron-rotation: 45deg;
	--chevron-x: 0px;
	--chevron-y: 3px;
}
.text-link[href="#temas"],
.footer > a:last-child {
	--chevron-rotation: 225deg;
	--chevron-x: 0px;
	--chevron-y: -3px;
}
.header-link::after,
.text-link::after,
.story-bottom::after,
.voice-end::after,
.topic-list a:first-child::after,
.footer > a:last-child::after {
	content: '';
	display: inline-block;
	flex-shrink: 0;
	width: 6px;
	height: 6px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(var(--chevron-rotation));
	transition: transform .22s ease;
}
/* El foco de teclado recibe el mismo tratamiento que el cursor. */
.header-link:focus-visible::after,
.text-link:focus-visible::after,
.story-bottom:focus-visible::after,
.voice-item:focus-visible .voice-end::after,
.topic-list a:first-child:focus-visible::after,
.footer > a:last-child:focus-visible::after {
	transform: translate(var(--chevron-x), var(--chevron-y)) rotate(var(--chevron-rotation));
}
@media (hover: hover) {
	.header-link:hover::after,
	.text-link:hover::after,
	.story-bottom:hover::after,
	.voice-item:hover .voice-end::after,
	.topic-list a:first-child:hover::after,
	.footer > a:last-child:hover::after {
		transform: translate(var(--chevron-x), var(--chevron-y)) rotate(var(--chevron-rotation));
	}
}
@media (prefers-reduced-motion: reduce) {
	.header-link,
	.text-link,
	.story-bottom,
	.voice-end,
	.topic-list a:first-child,
	.footer > a:last-child {
		--chevron-x: 0px;
		--chevron-y: 0px;
	}
	.header-link::after,
	.text-link::after,
	.story-bottom::after,
	.voice-end::after,
	.topic-list a:first-child::after,
	.footer > a:last-child::after {
		transition: none;
	}
}
