/*
 * FerchoMoc — estilos del tema.
 * Mobile-first. Colores en propiedades personalizadas; el modo lo fija data-theme en <html>.
 */

/* --------------------------------------------------------------------------
 * Fuentes (auto-hospedadas)
 * ----------------------------------------------------------------------- */
@font-face {
	font-family: "FM Bricolage";
	src: url("../fonts/bricolage-latin.woff2") format("woff2");
	font-weight: 200 800;
	font-stretch: 75% 100%;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "FM Bricolage";
	src: url("../fonts/bricolage-latin-ext.woff2") format("woff2");
	font-weight: 200 800;
	font-stretch: 75% 100%;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "FM Inter";
	src: url("../fonts/inter-latin.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "FM Inter";
	src: url("../fonts/inter-latin-ext.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --------------------------------------------------------------------------
 * Tokens
 * ----------------------------------------------------------------------- */
:root {
	--primary: #056efe;
	--primary-fill: #0568f0; /* azul de marca para fondos con texto blanco (contraste AA ≥ 4.5) */
	--primary-hover: #0460e0;
	--on-primary: #ffffff;

	--font-head: "FM Bricolage", "FM Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--font-body: "FM Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

	--gutter: 16px;
	--maxw: 1280px;
	--text-col: 720px;
	--r-img: 10px;
	--r-panel: 16px;
	--header-h: 60px;

	/* Claro */
	color-scheme: light;
	--bg: #f4f6fb;
	--surface: #ffffff;
	--surface-2: #e9edf5;
	--text: #0b0d15;
	--text-2: #2a3143;
	--muted: #5b6478;
	--line: rgba(11, 13, 21, 0.08);
	--line-2: rgba(11, 13, 21, 0.15);
	--link: #0055d4;
	--focus: #056efe;
	--dot: rgba(11, 13, 21, 0.13);
	--glow: rgba(5, 110, 254, 0.1);
	--header-bg: rgba(244, 246, 251, 0.84);
	--img-edge: rgba(11, 13, 21, 0.06);
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		color-scheme: dark;
		--bg: #0a0c14;
		--surface: #141823;
		--surface-2: #1c2130;
		--text: #ffffff;
		--text-2: #c9cfdf;
		--muted: #8e97b3;
		--line: rgba(255, 255, 255, 0.08);
		--line-2: rgba(255, 255, 255, 0.15);
		--link: #6aa6ff;
		--focus: #5c9dff;
		--dot: rgba(255, 255, 255, 0.085);
		--glow: rgba(5, 110, 254, 0.26);
		--header-bg: rgba(10, 12, 20, 0.8);
		--img-edge: rgba(255, 255, 255, 0.06);
	}
}

:root[data-theme="dark"] {
	color-scheme: dark;
	--bg: #0a0c14;
	--surface: #141823;
	--surface-2: #1c2130;
	--text: #ffffff;
	--text-2: #c9cfdf;
	--muted: #8e97b3;
	--line: rgba(255, 255, 255, 0.08);
	--line-2: rgba(255, 255, 255, 0.15);
	--link: #6aa6ff;
	--focus: #5c9dff;
	--dot: rgba(255, 255, 255, 0.085);
	--glow: rgba(5, 110, 254, 0.26);
	--header-bg: rgba(10, 12, 20, 0.8);
	--img-edge: rgba(255, 255, 255, 0.06);
}

@media (min-width: 640px) {
	:root { --gutter: 24px; --header-h: 64px; }
}
@media (min-width: 1024px) {
	:root { --gutter: 40px; --r-img: 12px; }
}

/* Logos e imágenes por modo */
.fm-on-dark { display: none; }
:root[data-theme="dark"] .fm-on-light { display: none; }
:root[data-theme="dark"] .fm-on-dark { display: block; }
@media (prefers-color-scheme: dark) {
	:root:not([data-theme]) .fm-on-light { display: none; }
	:root:not([data-theme]) .fm-on-dark { display: block; }
}

/* --------------------------------------------------------------------------
 * 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);
}
@media (prefers-reduced-motion: no-preference) {
	html { scroll-behavior: smooth; }
}

body {
	margin: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-body);
	font-size: 1rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: clip;
}

img,
svg,
video { max-width: 100%; }
img { height: auto; }

a { color: inherit; }

h1, h2, h3, h4 {
	margin: 0;
	font-family: var(--font-head);
	font-weight: 700;
	line-height: 1.1;
	color: var(--text);
	text-wrap: balance;
}

p { margin: 0; }

button,
input,
select,
textarea { font: inherit; color: inherit; }

button { cursor: pointer; }

:focus-visible {
	outline: 2px solid var(--focus);
	outline-offset: 3px;
	border-radius: 6px;
}

::selection { background: rgba(5, 110, 254, 0.28); }

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}
.screen-reader-text:focus {
	clip: auto;
	clip-path: none;
	width: auto;
	height: auto;
	margin: 0;
	white-space: normal;
}

.fm-skip {
	position: absolute;
	left: 12px;
	top: -100px;
	z-index: 200;
	padding: 10px 16px;
	border-radius: 8px;
	background: var(--primary-fill);
	color: var(--on-primary);
	font-weight: 600;
	text-decoration: none;
}
.fm-skip:focus { top: 12px; }

.fm-wrap {
	width: min(100% - 2 * var(--gutter), var(--maxw));
	margin-inline: auto;
}
.fm-wrap--narrow { --maxw: 880px; }
.fm-wrap--text { --maxw: 720px; }

.fm-main { flex: 1 0 auto; outline: none; }

.fm-icon { width: 20px; height: 20px; flex: none; display: block; }

/* Fondo técnico: retícula de puntos + resplandor azul, sólo arriba de cada página */
.fm-backdrop {
	position: absolute;
	inset: 0 0 auto;
	height: min(560px, 100%);
	z-index: -1;
	pointer-events: none;
	background-image: radial-gradient(circle at 1px 1px, var(--dot) 1px, transparent 1.4px);
	background-size: 22px 22px;
	-webkit-mask-image: radial-gradient(120% 90% at 70% 0%, #000 0%, rgba(0, 0, 0, 0.35) 45%, transparent 75%);
	mask-image: radial-gradient(120% 90% at 70% 0%, #000 0%, rgba(0, 0, 0, 0.35) 45%, transparent 75%);
}
.fm-backdrop::after {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(48% 70% at 72% 0%, var(--glow), transparent 72%);
}

/* --------------------------------------------------------------------------
 * Marca de señal (tres barras) y etiqueta de categoría
 * ----------------------------------------------------------------------- */
.fm-sig {
	display: inline-block;
	width: 0.5em;
	height: 0.5em;
	min-width: 7px;
	min-height: 7px;
	border-radius: 50%;
	background: var(--cat, var(--primary));
	flex: none;
}

.fm-cat {
	position: relative;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	gap: 0.45em;
	font-family: var(--font-head);
	font-stretch: 94%;
	font-weight: 650;
	font-size: 0.875rem;
	line-height: 1.2;
	color: var(--text);
	text-decoration: none;
}
a.fm-cat:hover span { text-decoration: underline; text-decoration-color: var(--cat, var(--primary)); text-decoration-thickness: 2px; text-underline-offset: 0.2em; }

.fm-kicker {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 14px;
	font-size: 0.8125rem;
	color: var(--muted);
}
.fm-kicker time { font-variant-numeric: tabular-nums; }

.fm-sep {
	display: inline-block;
	width: 1px;
	height: 0.9em;
	background: var(--line-2);
	vertical-align: -0.1em;
}

/* --------------------------------------------------------------------------
 * Botones
 * ----------------------------------------------------------------------- */
.fm-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 20px;
	border: 1px solid transparent;
	border-radius: 999px;
	font-family: var(--font-body);
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}
.fm-btn--primary { background: var(--primary-fill); color: var(--on-primary); }
.fm-btn--primary:hover { background: var(--primary-hover); }
.fm-btn--ghost { border-color: var(--line-2); color: var(--text); background: transparent; }
.fm-btn--ghost:hover { background: var(--surface-2); }

.fm-iconbtn {
	display: inline-grid;
	place-items: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 10px;
	background: transparent;
	color: var(--text);
}
.fm-iconbtn:hover { background: var(--surface-2); }

/* --------------------------------------------------------------------------
 * Cabecera
 * ----------------------------------------------------------------------- */
.fm-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--header-bg);
	-webkit-backdrop-filter: saturate(1.5) blur(14px);
	backdrop-filter: saturate(1.5) blur(14px);
	border-bottom: 1px solid var(--line);
}
@media (min-width: 601px) {
	.admin-bar .fm-header { top: 46px; }
}
@media (min-width: 783px) {
	.admin-bar .fm-header { top: 32px; }
}

.fm-header__bar {
	display: flex;
	align-items: center;
	gap: 12px;
	height: var(--header-h);
}

.fm-brand {
	display: flex;
	align-items: center;
	flex: none;
	margin-right: auto;
	border-radius: 8px;
}
.fm-brand__img {
	height: 28px;
	width: auto;
}
@media (min-width: 640px) {
	.fm-brand__img { height: 32px; }
}

.fm-nav { display: none; }

.fm-nav__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.fm-tools {
	display: flex;
	align-items: center;
	gap: 6px;
	flex: none;
}

.fm-search-toggle { display: none; }
@media (min-width: 640px) {
	.fm-search-toggle { display: inline-grid; }
	.fm-tools { gap: 8px; }
}

/* Selector de modo: Claro / Oscuro / Sistema */
.fm-mode {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	padding: 3px;
	border: 1px solid var(--line-2);
	border-radius: 999px;
}
.fm-mode__opt {
	display: inline-grid;
	place-items: center;
	width: 30px;
	height: 30px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--muted);
	transition: background-color 0.15s ease, color 0.15s ease;
}
.fm-mode__opt .fm-icon { width: 17px; height: 17px; }
.fm-mode__opt:hover { color: var(--text); }
.fm-mode__opt:focus-visible { outline-offset: 1px; border-radius: 999px; }
:root:not([data-theme-pref]) .fm-mode__opt[data-mode="system"],
:root[data-theme-pref="system"] .fm-mode__opt[data-mode="system"],
:root[data-theme-pref="light"] .fm-mode__opt[data-mode="light"],
:root[data-theme-pref="dark"] .fm-mode__opt[data-mode="dark"] {
	background: var(--primary-fill);
	color: var(--on-primary);
}

.fm-menu-toggle__close { display: none; }
.fm-menu-toggle[aria-expanded="true"] .fm-menu-toggle__open { display: none; }
.fm-menu-toggle[aria-expanded="true"] .fm-menu-toggle__close { display: block; }

/* Paneles desplegables (búsqueda y secciones) */
.fm-drop {
	border-top: 1px solid var(--line);
	padding: 16px 0 20px;
}
.fm-drop[hidden] { display: none; }

.fm-menu__nav { margin-top: 12px; }
.fm-menu .fm-nav__list {
	display: grid;
	grid-template-columns: 1fr 1fr;
	column-gap: 20px;
}
.fm-menu .fm-nav__list a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 0;
	border-bottom: 1px solid var(--line);
	font-family: var(--font-head);
	font-stretch: 92%;
	font-weight: 650;
	font-size: 1.0625rem;
	text-decoration: none;
	color: var(--text);
}
.fm-menu .fm-nav__list a::before {
	content: "";
	width: 3px;
	height: 0.95em;
	border-radius: 2px;
	background: var(--cat, var(--primary));
}

/* Barra de lectura (señal de progreso) */
.fm-progress {
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	height: 2px;
	pointer-events: none;
}
.fm-progress span {
	display: block;
	height: 100%;
	background: var(--primary);
	transform-origin: 0 50%;
	transform: scaleX(var(--progress, 0));
}

@media (min-width: 1240px) {
	.fm-nav {
		display: block;
		flex: 1 1 auto;
		min-width: 0;
		margin-left: 8px;
	}
	.fm-brand { margin-right: 20px; }
	.fm-nav__list {
		display: flex;
		align-items: center;
		gap: 0;
	}
	.fm-nav .fm-nav__list a {
		position: relative;
		display: block;
		padding: 8px 10px;
		font-family: var(--font-head);
		font-stretch: 92%;
		font-weight: 600;
		font-size: 0.9375rem;
		color: var(--text-2);
		text-decoration: none;
		white-space: nowrap;
		border-radius: 6px;
	}
	.fm-nav .fm-nav__list a::after {
		content: "";
		position: absolute;
		left: 10px;
		right: 10px;
		bottom: 1px;
		height: 2px;
		border-radius: 2px;
		background: var(--cat, var(--primary));
		transform: scaleX(0);
		transform-origin: 0 50%;
		transition: transform 0.2s ease;
	}
	.fm-nav .fm-nav__list a:hover,
	.fm-nav .fm-nav__list a[aria-current],
	.fm-nav .fm-nav__list a.is-current { color: var(--text); }
	.fm-nav .fm-nav__list a:hover::after,
	.fm-nav .fm-nav__list a[aria-current]::after,
	.fm-nav .fm-nav__list a.is-current::after { transform: scaleX(1); }
	.fm-menu-toggle,
	.fm-menu { display: none !important; }
}

/* --------------------------------------------------------------------------
 * Buscador
 * ----------------------------------------------------------------------- */
.fm-searchform {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 5px 5px 5px 14px;
	border: 1px solid var(--line-2);
	border-radius: 12px;
	background: var(--surface);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.fm-searchform:focus-within {
	border-color: var(--primary);
	box-shadow: 0 0 0 3px rgba(5, 110, 254, 0.22);
}
.fm-searchform__icon { color: var(--muted); display: flex; }
.fm-searchform__input {
	flex: 1 1 auto;
	min-width: 0;
	height: 40px;
	padding: 0;
	border: 0;
	background: transparent;
	font-size: 1rem;
	color: var(--text);
	outline: none;
}
.fm-searchform__input::placeholder { color: var(--muted); opacity: 1; }
.fm-searchform__input::-webkit-search-cancel-button { filter: grayscale(1); }
.fm-searchform__submit {
	min-height: 40px;
	padding: 0 16px;
	border-radius: 8px;
}

/* --------------------------------------------------------------------------
 * Imagen 16:9
 * ----------------------------------------------------------------------- */
.fm-media {
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: var(--r-img);
	background: var(--surface-2);
}
.fm-media::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	box-shadow: inset 0 0 0 1px var(--img-edge);
	pointer-events: none;
}
.fm-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.fm-media__empty {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	padding: 8%;
	background: var(--surface);
	border-top: 3px solid var(--cat, var(--primary));
	color: var(--muted);
	font-family: var(--font-head);
	font-weight: 650;
	font-size: clamp(0.95rem, 2.2vw, 1.25rem);
	text-align: center;
}

/* --------------------------------------------------------------------------
 * Tarjetas
 * ----------------------------------------------------------------------- */
.fm-card { position: relative; min-width: 0; }

.fm-card__link {
	color: inherit;
	text-decoration: none;
	text-decoration-thickness: 2px;
	text-underline-offset: 0.16em;
}
.fm-card__link::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	border-radius: var(--r-img);
}
.fm-card__link:focus-visible { outline: none; }
.fm-card__link:focus-visible::after {
	outline: 2px solid var(--focus);
	outline-offset: 6px;
}
.fm-card:hover .fm-card__link,
.fm-lead:hover .fm-card__link {
	text-decoration-line: underline;
	text-decoration-color: var(--cat, var(--primary));
}
.fm-card:hover .fm-media img,
.fm-lead:hover .fm-media img { filter: brightness(1.06); }

.fm-card__body { min-width: 0; }

.fm-card__title {
	margin-top: 8px;
	font-size: 1.0625rem;
	font-stretch: 92%;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.005em;
}

.fm-card__excerpt {
	margin-top: 8px;
	color: var(--muted);
	font-size: 0.9375rem;
	line-height: 1.55;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Móvil: filas compactas (texto a la izquierda, imagen a la derecha) */
.fm-card--grid,
.fm-card--side,
.fm-card--row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 116px;
	gap: 14px;
	align-items: start;
}
.fm-card--grid .fm-media,
.fm-card--side .fm-media,
.fm-card--row .fm-media {
	grid-column: 2;
	grid-row: 1;
	border-radius: 8px;
}
.fm-card--grid .fm-card__body,
.fm-card--side .fm-card__body,
.fm-card--row .fm-card__body { grid-column: 1; grid-row: 1; }

.fm-grid { display: grid; gap: 0; }
.fm-grid > .fm-card { padding: 18px 0; border-top: 1px solid var(--line); }
.fm-grid > .fm-card:first-child { border-top: 0; padding-top: 0; }

@media (min-width: 640px) {
	.fm-card--grid,
	.fm-card--side {
		display: block;
	}
	.fm-card--grid .fm-media,
	.fm-card--side .fm-media { border-radius: var(--r-img); }
	.fm-card--grid .fm-card__body,
	.fm-card--side .fm-card__body { padding-top: 14px; }
	.fm-card__title { font-size: 1.1875rem; line-height: 1.18; }

	.fm-grid--3 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: 28px;
		row-gap: 44px;
	}
	.fm-grid > .fm-card,
	.fm-grid > .fm-card:first-child { padding: 0; border: 0; }

	.fm-card--row { grid-template-columns: 240px minmax(0, 1fr); gap: 24px; }
	.fm-card--row .fm-media { grid-column: 1; border-radius: var(--r-img); }
	.fm-card--row .fm-card__body { grid-column: 2; }
	.fm-card--row .fm-card__title { font-size: 1.375rem; }
}

@media (min-width: 1024px) {
	.fm-grid--3 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		column-gap: 32px;
		row-gap: 52px;
	}
	.fm-card__title { font-size: 1.25rem; }
}

/* --------------------------------------------------------------------------
 * Portada: nota principal + 2 destacadas
 * ----------------------------------------------------------------------- */
.fm-top {
	position: relative;
	isolation: isolate;
	padding: 20px 0 40px;
}

.fm-lead { position: relative; min-width: 0; }
.fm-lead .fm-media { border-radius: var(--r-img); }
:root[data-theme="dark"] .fm-lead .fm-media {
	box-shadow: 0 40px 90px -40px rgba(5, 110, 254, 0.55);
}
.fm-lead__body { padding-top: 18px; }
.fm-lead__title {
	margin-top: 10px;
	font-size: clamp(1.875rem, 1.05rem + 3.1vw, 3.5rem);
	font-stretch: 80%;
	font-weight: 780;
	line-height: 1;
	letter-spacing: -0.022em;
}
.fm-lead__dek {
	margin-top: 14px;
	max-width: 62ch;
	font-size: clamp(1rem, 0.95rem + 0.3vw, 1.1875rem);
	line-height: 1.5;
	color: var(--text-2);
}

.fm-byline {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 0;
	margin-top: 16px;
	font-size: 0.875rem;
	color: var(--muted);
}
.fm-byline > span + span::before {
	content: "";
	display: inline-block;
	width: 1px;
	height: 0.9em;
	margin: 0 12px;
	background: var(--line-2);
	vertical-align: -0.1em;
}
.fm-byline > span:first-child { color: var(--text); font-weight: 600; }

.fm-top__side {
	display: grid;
	gap: 0;
	margin-top: 28px;
}
.fm-top__side .fm-card { padding: 16px 0; border-top: 1px solid var(--line); }
.fm-top__side .fm-card__title { font-size: 1.0625rem; }

@media (min-width: 640px) {
	.fm-top { padding: 32px 0 56px; }
	.fm-top__side {
		grid-template-columns: 1fr 1fr;
		gap: 28px;
		margin-top: 40px;
	}
	.fm-top__side .fm-card { padding: 0; border: 0; }
	.fm-top__side .fm-card__title { font-size: 1.3125rem; }
}

@media (min-width: 1024px) {
	.fm-top { padding: 40px 0 72px; }
	.fm-top__grid {
		display: grid;
		grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
		gap: 40px;
		align-items: start;
	}
	.fm-top__side {
		grid-template-columns: 1fr;
		gap: 0;
		margin-top: 0;
		padding-left: 40px;
		margin-left: -40px;
		border-left: 1px solid var(--line);
		height: 100%;
		align-content: start;
	}
	.fm-top__side .fm-card + .fm-card {
		margin-top: 28px;
		padding-top: 28px;
		border-top: 1px solid var(--line);
	}
	.fm-top__side .fm-card__title { font-size: 1.375rem; line-height: 1.14; }
	.fm-lead__body { padding-top: 22px; }
}

/* --------------------------------------------------------------------------
 * Encabezados de sección
 * ----------------------------------------------------------------------- */
.fm-section-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px 24px;
	margin-bottom: 20px;
	padding-top: 20px;
	border-top: 2px solid var(--text);
}
.fm-section-head--chips {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	justify-content: stretch;
	gap: 16px;
	margin-bottom: 28px;
}
.fm-section-title {
	font-size: clamp(1.5rem, 1.25rem + 0.9vw, 2rem);
	font-stretch: 88%;
	font-weight: 760;
	letter-spacing: -0.015em;
}
.fm-more {
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--link);
	text-decoration: underline;
	text-decoration-thickness: 1.5px;
	text-underline-offset: 0.2em;
}
.fm-more:hover { color: var(--text); }

@media (min-width: 640px) {
	.fm-section-head { margin-bottom: 28px; }
	.fm-section-head--chips { margin-bottom: 36px; }
}

/* Fila de temas */
.fm-chips {
	min-width: 0;
	max-width: 100vw;
	margin-inline: calc(var(--gutter) * -1);
	overflow-x: auto;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
	-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--gutter), #000 calc(100% - 40px), transparent);
	mask-image: linear-gradient(90deg, transparent 0, #000 var(--gutter), #000 calc(100% - 40px), transparent);
}
.fm-chips::-webkit-scrollbar { display: none; }
.fm-chips__list {
	display: flex;
	gap: 8px;
	width: max-content;
	margin: 0;
	padding: 2px var(--gutter);
	list-style: none;
}
.fm-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 36px;
	padding: 0 14px;
	border: 1px solid var(--line-2);
	border-radius: 999px;
	font-size: 0.875rem;
	font-weight: 550;
	color: var(--text-2);
	text-decoration: none;
	white-space: nowrap;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}
.fm-chip:hover { border-color: var(--cat, var(--primary)); color: var(--text); }
.fm-chip__n {
	font-size: 0.75rem;
	font-variant-numeric: tabular-nums;
	color: var(--muted);
}
.fm-chip[aria-current] {
	background: var(--text);
	border-color: var(--text);
	color: var(--bg);
}
.fm-chip[aria-current] .fm-chip__n { color: inherit; opacity: 0.7; }

@media (min-width: 1024px) {
	.fm-chips {
		margin-inline: 0;
		overflow: visible;
		-webkit-mask-image: none;
		mask-image: none;
	}
	.fm-chips__list { flex-wrap: wrap; width: auto; padding: 0; }
}

/* --------------------------------------------------------------------------
 * Encabezados de archivo, búsqueda y portada paginada
 * ----------------------------------------------------------------------- */
.fm-pagehead {
	position: relative;
	isolation: isolate;
	padding: 36px 0 28px;
}
.fm-pagehead__title {
	display: flex;
	align-items: center;
	gap: 0.28em;
	font-size: clamp(2.25rem, 1.3rem + 4.2vw, 4.75rem);
	font-stretch: 78%;
	font-weight: 800;
	line-height: 0.98;
	letter-spacing: -0.025em;
}
.fm-pagehead--search .fm-pagehead__title,
.fm-pagehead:not(.fm-pagehead--archive) .fm-pagehead__title {
	display: block;
	font-size: clamp(2rem, 1.3rem + 3vw, 3.5rem);
}
.fm-pagehead__title .fm-sig {
	height: 0.66em;
	gap: 0.06em;
}

.fm-pagehead__hash { color: var(--primary); font-weight: 600; }
.fm-pagehead__desc {
	max-width: 60ch;
	margin-top: 14px;
	font-size: clamp(1rem, 0.95rem + 0.3vw, 1.1875rem);
	line-height: 1.5;
	color: var(--text-2);
}
.fm-pagehead__desc p { margin: 0; }
.fm-pagehead__meta {
	margin-top: 12px;
	font-size: 0.875rem;
	color: var(--muted);
}
.fm-pagehead__meta .fm-sep { margin: 0 10px; }
.fm-pagehead .fm-chips { margin-top: 24px; }
.fm-pagehead__search { margin-top: 24px; max-width: 640px; }

.fm-listing { padding: 12px 0 24px; }

@media (min-width: 640px) {
	.fm-pagehead { padding: 56px 0 40px; }
	.fm-pagehead .fm-chips { margin-top: 32px; }
	.fm-listing { padding-top: 24px; }
}

/* Lista de resultados */
.fm-list { display: grid; }
.fm-list > .fm-card { padding: 20px 0; border-top: 1px solid var(--line); }
.fm-list > .fm-card:first-child { border-top: 0; padding-top: 0; }
@media (min-width: 640px) {
	.fm-list > .fm-card { padding: 28px 0; }
}

/* Paginación */
.fm-pagination { margin-top: 48px; }
.fm-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px;
}
.fm-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-width: 44px;
	height: 44px;
	padding: 0 14px;
	border: 1px solid var(--line-2);
	border-radius: 999px;
	font-weight: 600;
	font-size: 0.9375rem;
	font-variant-numeric: tabular-nums;
	color: var(--text-2);
	text-decoration: none;
}
.fm-pagination a.page-numbers:hover { background: var(--surface-2); color: var(--text); }
.fm-pagination .page-numbers.current {
	background: var(--primary-fill);
	border-color: var(--primary-fill);
	color: var(--on-primary);
}
.fm-pagination .page-numbers.dots { border-color: transparent; min-width: 24px; padding: 0; }
.fm-pagination .fm-icon { width: 18px; height: 18px; }
@media (max-width: 479px) {
	.fm-pagination .prev span:not(.screen-reader-text),
	.fm-pagination .next span:not(.screen-reader-text) { display: none; }
}
@media (min-width: 640px) {
	.fm-pagination { margin-top: 64px; }
}

/* Vacío */
.fm-empty { padding: 32px 0 16px; }
.fm-empty__title {
	font-size: clamp(1.75rem, 1.3rem + 2vw, 2.75rem);
	font-stretch: 84%;
	font-weight: 780;
	margin-bottom: 12px;
}
.fm-empty__lead { color: var(--text-2); margin-bottom: 20px; max-width: 60ch; }
.fm-empty .fm-chips { margin-top: 8px; }

/* --------------------------------------------------------------------------
 * Nota individual
 * ----------------------------------------------------------------------- */
.fm-article__head {
	position: relative;
	isolation: isolate;
	padding: 28px 0 24px;
}
.fm-article__headin { max-width: 920px; }
.fm-article__title {
	margin-top: 14px;
	font-size: clamp(2rem, 1.2rem + 3.3vw, 3.75rem);
	font-stretch: 80%;
	font-weight: 790;
	line-height: 1.01;
	letter-spacing: -0.024em;
}
.fm-article--page .fm-article__title { margin-top: 0; }
.fm-article__dek {
	margin-top: 16px;
	max-width: 58ch;
	font-size: clamp(1.0625rem, 0.98rem + 0.45vw, 1.375rem);
	line-height: 1.45;
	color: var(--text-2);
}
.fm-article__byline {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 22px;
}
.fm-avatar {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	flex: none;
	border-radius: 50%;
	background: var(--surface);
	border: 1px solid var(--line-2);
}
.fm-avatar img { width: 30px; height: auto; }
.fm-article__who { display: grid; gap: 1px; line-height: 1.35; }
.fm-article__author { font-weight: 650; font-size: 0.9375rem; }
.fm-article__when {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0 10px;
	font-size: 0.875rem;
	color: var(--muted);
}

.fm-article__figure { margin-top: 4px; margin-bottom: 0; }
.fm-article__figure .fm-media { border-radius: var(--r-img); }
:root[data-theme="dark"] .fm-article__figure .fm-media {
	box-shadow: 0 50px 100px -50px rgba(5, 110, 254, 0.5);
}
.fm-article__figure figcaption {
	margin-top: 10px;
	font-size: 0.8125rem;
	color: var(--muted);
}

.fm-article__layout { padding-top: 28px; }
.fm-article__rail { display: none; }
.fm-article__main { min-width: 0; max-width: var(--text-col); }

@media (min-width: 640px) {
	.fm-article__head { padding: 48px 0 32px; }
	.fm-article__byline { margin-top: 28px; }
	.fm-article__layout { padding-top: 40px; }
}

@media (min-width: 1100px) {
	.fm-article__head .fm-wrap,
	.fm-article__layout {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, var(--text-col)) minmax(0, 1fr);
		column-gap: 48px;
	}
	.fm-article__headin { grid-column: 2 / 4; }
	.fm-article__head { padding: 64px 0 40px; }
	.fm-article__figure { max-width: 1120px; }
	.fm-article__rail {
		display: block;
		grid-column: 1;
		justify-self: end;
	}
	.fm-article__main { grid-column: 2; }
	.fm-article__layout { padding-top: 56px; }
	.fm-article__layout--page { padding-top: 24px; }
}

/* Tipografía del artículo */
.fm-prose {
	font-size: 1.0625rem;
	line-height: 1.72;
	color: var(--text-2);
	overflow-wrap: break-word;
}
@media (min-width: 640px) {
	.fm-prose { font-size: 1.125rem; line-height: 1.75; }
}
.fm-prose > * { margin-top: 0; margin-bottom: 1.25em; }
.fm-prose > *:last-child { margin-bottom: 0; }
.fm-prose strong { color: var(--text); font-weight: 650; }
.fm-prose h2 {
	margin: 2.1em 0 0.6em;
	font-size: clamp(1.4375rem, 1.25rem + 0.7vw, 1.8125rem);
	font-stretch: 88%;
	font-weight: 740;
	line-height: 1.15;
	letter-spacing: -0.012em;
}
.fm-prose h3 {
	margin: 1.8em 0 0.5em;
	font-size: clamp(1.1875rem, 1.1rem + 0.4vw, 1.375rem);
	font-stretch: 92%;
	font-weight: 700;
	line-height: 1.2;
}
.fm-prose h4 { margin: 1.6em 0 0.4em; font-size: 1.0625rem; font-weight: 700; }
.fm-prose a {
	color: var(--link);
	text-decoration: underline;
	text-decoration-color: color-mix(in srgb, var(--cat, var(--primary)) 70%, transparent);
	text-decoration-thickness: 1.5px;
	text-underline-offset: 0.2em;
	overflow-wrap: anywhere;
	transition: text-decoration-color 0.15s ease;
}
.fm-prose a:hover { text-decoration-color: currentColor; }
.fm-prose ul,
.fm-prose ol { padding-left: 1.3em; }
.fm-prose li { margin: 0.4em 0; padding-left: 0.2em; }
.fm-prose ul li::marker { color: var(--cat, var(--primary)); }
.fm-prose ol li::marker {
	color: var(--muted);
	font-family: var(--font-head);
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}
.fm-prose blockquote {
	margin: 1.9em 0;
	padding: 0.1em 0 0.1em 1.1em;
	border-left: 3px solid var(--cat, var(--primary));
	font-family: var(--font-head);
	font-stretch: 92%;
	font-size: 1.3125rem;
	font-weight: 560;
	line-height: 1.38;
	color: var(--text);
}
.fm-prose blockquote p { margin: 0 0 0.5em; }
.fm-prose blockquote p:last-child { margin-bottom: 0; }
.fm-prose blockquote cite {
	display: block;
	margin-top: 0.7em;
	font-family: var(--font-body);
	font-size: 0.875rem;
	font-style: normal;
	font-weight: 500;
	color: var(--muted);
}
.fm-prose figure,
.fm-prose .wp-caption { margin: 2em 0; max-width: 100%; }
.fm-prose img { display: block; max-width: 100%; height: auto; border-radius: var(--r-img); }
.fm-prose figcaption,
.fm-prose .wp-caption-text {
	margin-top: 10px;
	font-size: 0.8125rem;
	line-height: 1.5;
	color: var(--muted);
}
.fm-prose video,
.fm-prose iframe,
.fm-prose embed,
.fm-prose object {
	display: block;
	width: 100%;
	max-width: 100%;
	border: 0;
	border-radius: var(--r-img);
	background: #000;
}
.fm-prose video { height: auto; }
.fm-prose iframe[src*="youtube"],
.fm-prose iframe[src*="youtu.be"],
.fm-prose iframe[src*="vimeo"],
.fm-prose iframe[src*="player"] { aspect-ratio: 16 / 9; height: auto; }
.fm-prose .wp-block-embed__wrapper iframe { position: static; }
.fm-prose .wp-embed-responsive .wp-has-aspect-ratio iframe { position: absolute; }
.fm-prose hr {
	height: 1px;
	margin: 2.5em 0;
	border: 0;
	background: var(--line-2);
}
.fm-prose code,
.fm-prose kbd {
	padding: 0.12em 0.35em;
	border-radius: 5px;
	background: var(--surface-2);
	font-family: var(--font-mono);
	font-size: 0.86em;
	color: var(--text);
}
.fm-prose pre {
	overflow-x: auto;
	padding: 16px 18px;
	border-radius: var(--r-img);
	background: var(--surface);
	border: 1px solid var(--line);
	font-size: 0.875rem;
	line-height: 1.6;
}
.fm-prose pre code { padding: 0; background: none; }
.fm-prose table {
	display: block;
	max-width: 100%;
	overflow-x: auto;
	border-collapse: collapse;
	font-size: 0.9375rem;
}
.fm-prose th,
.fm-prose td {
	padding: 10px 14px;
	border-bottom: 1px solid var(--line-2);
	text-align: left;
	vertical-align: top;
}
.fm-prose th { color: var(--text); font-weight: 650; }

/* "Por qué importa": la marca de señal y una línea de acento que acompaña la sección */
.fm-prose h2.fm-why {
	display: flex;
	align-items: center;
	gap: 0.42em;
}
.fm-prose h2.fm-why::before {
	content: "";
	flex: none;
	width: 0.5em;
	height: 0.66em;
	background:
		linear-gradient(var(--cat, var(--primary)), var(--cat, var(--primary))) 0 100% / 26% 45% no-repeat,
		linear-gradient(var(--cat, var(--primary)), var(--cat, var(--primary))) 50% 100% / 26% 100% no-repeat,
		linear-gradient(var(--cat, var(--primary)), var(--cat, var(--primary))) 100% 100% / 26% 70% no-repeat;
}
.fm-prose .fm-why ~ :is(p, ul, ol):not(.fm-source) {
	margin-bottom: 0;
	padding: 0 0 1.25em 1.1em;
	border-left: 2px solid color-mix(in srgb, var(--cat, var(--primary)) 55%, transparent);
}
.fm-prose .fm-why ~ :is(p, ul, ol):not(.fm-source):has(+ :is(.fm-source, h2, h3, figure, blockquote)),
.fm-prose .fm-why ~ :is(p, ul, ol):not(.fm-source):last-child { padding-bottom: 0.25em; }
.fm-prose .fm-why ~ :is(ul, ol):not(.fm-source) { padding-left: 2.3em; }
.fm-prose .fm-why ~ h2:not(.fm-why) ~ :is(p, ul, ol) {
	padding: 0;
	margin-bottom: 1.25em;
	border-left: 0;
}
.fm-prose .fm-why ~ h2:not(.fm-why) ~ :is(ul, ol) { padding-left: 1.3em; }

/* Nota de fuente: "Con información de …" */
.fm-prose .fm-source {
	margin-top: 2.6em;
	padding-top: 1em;
	border-top: 1px solid var(--line-2);
	font-size: 0.9375rem;
	line-height: 1.55;
	color: var(--muted);
}
.fm-prose .fm-source a { color: var(--text); font-weight: 600; }

/* Alineaciones clásicas */
.alignleft { float: left; margin: 0.3em 1.5em 1em 0; }
.alignright { float: right; margin: 0.3em 0 1em 1.5em; }
.aligncenter { display: block; margin-inline: auto; }
@media (max-width: 639px) {
	.alignleft,
	.alignright { float: none; margin: 1.5em 0; }
}
.sticky,
.bypostauthor,
.gallery-caption { /* clases requeridas por WordPress */ }

/* Etiquetas */
.fm-tags { margin-top: 32px; }
.fm-tags ul {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.fm-tags a {
	display: inline-block;
	padding: 6px 12px;
	border: 1px solid var(--line-2);
	border-radius: 999px;
	font-size: 0.8125rem;
	font-weight: 550;
	color: var(--text-2);
	text-decoration: none;
}
.fm-tags a:hover { border-color: var(--primary); color: var(--text); }

/* Compartir */
.fm-share__list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.fm-share__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 42px;
	padding: 0 14px;
	border: 1px solid var(--line-2);
	border-radius: 999px;
	background: transparent;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--text);
	text-decoration: none;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}
.fm-share__btn:hover { background: var(--surface-2); }
.fm-share__btn .fm-icon { width: 18px; height: 18px; }
.fm-share__ico { display: flex; }
.fm-share__ico--ok { display: none; color: #1fbf86; }
.fm-share__btn[data-copied] .fm-share__ico--link { display: none; }
.fm-share__btn[data-copied] .fm-share__ico--ok { display: flex; }
.fm-share__btn[data-copied] { border-color: #1fbf86; }
.fm-share__copy { position: relative; }

.fm-share--row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px 24px;
	margin-top: 36px;
	padding: 20px 0;
	border-top: 1px solid var(--line-2);
	border-bottom: 1px solid var(--line-2);
}
.fm-share__title {
	font-family: var(--font-head);
	font-stretch: 92%;
	font-weight: 700;
	font-size: 1.0625rem;
}
.fm-share--row .fm-share__status { display: none; }

.fm-share--rail { position: sticky; top: calc(var(--header-h) + 40px); }
.admin-bar .fm-share--rail { top: calc(var(--header-h) + 72px); }
.fm-share--rail .fm-share__list { flex-direction: column; }
.fm-share--rail .fm-share__btn {
	width: 44px;
	height: 44px;
	padding: 0;
	color: var(--text-2);
}
.fm-share--rail .fm-share__btn:hover { color: var(--text); }
.fm-share--rail .fm-share__status {
	position: absolute;
	right: calc(100% + 10px);
	top: 50%;
	transform: translateY(-50%);
	white-space: nowrap;
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--text);
	background: var(--surface);
	border: 1px solid var(--line-2);
	border-radius: 999px;
	padding: 4px 10px;
}
.fm-share--rail .fm-share__status:empty { display: none; }

/* Sígueme */
.fm-follow {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 16px 18px;
	align-items: center;
	margin-top: 36px;
	padding: 22px;
	border: 1px solid var(--line);
	border-radius: var(--r-panel);
	background: var(--surface);
}
:root[data-theme="dark"] .fm-follow {
	box-shadow: 0 30px 70px -40px rgba(5, 110, 254, 0.45);
}
.fm-follow__bot img { width: 64px; height: auto; }
.fm-follow__title {
	font-size: 1.25rem;
	font-stretch: 90%;
	font-weight: 750;
	line-height: 1.15;
}
.fm-follow__text p { margin-top: 6px; font-size: 0.9375rem; line-height: 1.5; color: var(--muted); }
.fm-follow__list {
	grid-column: 1 / -1;
	display: grid;
	gap: 8px;
	margin: 4px 0 0;
	padding: 0;
	list-style: none;
}
.fm-follow__btn {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 48px;
	padding: 0 14px;
	border: 1px solid var(--line-2);
	border-radius: 12px;
	color: var(--text);
	text-decoration: none;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}
.fm-follow__btn:hover { border-color: var(--primary); background: var(--surface-2); }
.fm-follow__net { font-weight: 650; font-size: 0.9375rem; }
.fm-follow__handle { margin-left: auto; font-size: 0.875rem; color: var(--muted); }
@media (min-width: 640px) {
	.fm-follow { padding: 28px; gap: 18px 22px; }
	.fm-follow__bot img { width: 80px; }
	.fm-follow__title { font-size: 1.4375rem; }
	.fm-follow__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.fm-follow__btn { flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; padding: 12px 14px; }
	.fm-follow__btn .fm-icon { margin-bottom: 6px; }
	.fm-follow__handle { margin-left: 0; }
}

/* Relacionadas */
.fm-related { padding-top: 64px; }
@media (min-width: 640px) {
	.fm-related { padding-top: 88px; }
}

/* Comentarios */
.fm-comments-wrap { padding-top: 64px; }
.fm-comments__list { margin: 24px 0; padding: 0; list-style: none; }
.fm-comments__list .comment { padding: 16px 0; border-top: 1px solid var(--line); }
.fm-comments__list .children { list-style: none; padding-left: 24px; }
.fm-comments .comment-author { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.fm-comments .comment-author img { border-radius: 50%; }
.fm-comments .comment-metadata { font-size: 0.8125rem; color: var(--muted); }
.fm-comments .comment-metadata a { text-decoration: none; }
.fm-comments .comment-respond { margin-top: 32px; }
.fm-comments .comment-reply-title { font-size: 1.375rem; font-stretch: 90%; }
.fm-comments label { display: block; margin-bottom: 6px; font-size: 0.875rem; font-weight: 600; }
.fm-comments input[type="text"],
.fm-comments input[type="email"],
.fm-comments input[type="url"],
.fm-comments textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--line-2);
	border-radius: 10px;
	background: var(--surface);
	color: var(--text);
}
.fm-comments p { margin-bottom: 14px; }

/* --------------------------------------------------------------------------
 * 404
 * ----------------------------------------------------------------------- */
.fm-404 {
	position: relative;
	isolation: isolate;
	padding: 48px 0 24px;
	text-align: center;
}
.fm-404__bot {
	position: relative;
	width: 150px;
	margin: 0 auto 8px;
}
.fm-404__bot img { width: 100%; height: auto; margin: 0 auto; }
.fm-404__flat {
	display: block;
	width: 220px;
	max-width: 70vw;
	height: 28px;
	margin: 18px auto 0;
	margin-left: 50%;
	transform: translateX(-50%);
	overflow: visible;
}
.fm-404__flat path {
	fill: none;
	stroke: var(--primary);
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
	vector-effect: non-scaling-stroke;
}
@media (prefers-reduced-motion: no-preference) {
	.fm-404__flat path {
		stroke-dasharray: 560;
		stroke-dashoffset: 560;
		animation: fm-draw 1.6s 0.2s ease-out forwards;
	}
}
@keyframes fm-draw { to { stroke-dashoffset: 0; } }
.fm-404__code {
	margin-top: 20px;
	font-size: 0.875rem;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	color: var(--muted);
}
.fm-404__title {
	margin-top: 6px;
	font-size: clamp(2.25rem, 1.4rem + 3.6vw, 4.25rem);
	font-stretch: 78%;
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.024em;
}
.fm-404__text {
	max-width: 48ch;
	margin: 16px auto 0;
	font-size: 1.0625rem;
	color: var(--text-2);
}
.fm-404__search { max-width: 560px; margin: 28px auto 20px; text-align: left; }
@media (min-width: 640px) {
	.fm-404 { padding: 72px 0 32px; }
	.fm-404__bot { width: 180px; }
}

/* --------------------------------------------------------------------------
 * Pie
 * ----------------------------------------------------------------------- */
.fm-footer {
	margin-top: 80px;
	border-top: 1px solid var(--line);
	background: var(--bg);
}

.fm-footer__grid {
	display: grid;
	gap: 36px;
	padding: 36px 0 40px;
}
.fm-footer__logo { display: inline-block; border-radius: 8px; }
.fm-footer__logo img { width: 150px; height: auto; }
.fm-footer__tagline {
	margin-top: 18px;
	font-family: var(--font-head);
	font-stretch: 86%;
	font-weight: 760;
	font-size: 1.5rem;
	line-height: 1.1;
	letter-spacing: -0.012em;
}
.fm-footer__about {
	max-width: 42ch;
	margin-top: 8px;
	font-size: 0.9375rem;
	color: var(--muted);
}
.fm-footer__title {
	margin-bottom: 12px;
	font-size: 1rem;
	font-stretch: 94%;
	font-weight: 700;
}
.fm-footer__list { margin: 0; padding: 0; list-style: none; }
.fm-footer__list a {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	padding: 6px 0;
	font-size: 0.9375rem;
	color: var(--text-2);
	text-decoration: none;
}
.fm-footer__list a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 0.2em; }
.fm-footer__list--sections {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: 16px;
}
.fm-footer__list--sections .fm-sig { font-size: 0.9rem; }
.fm-footer__list--social .fm-icon { width: 18px; height: 18px; color: var(--text); }
.fm-footer__net { color: var(--text); font-weight: 600; }
.fm-footer__handle { color: var(--muted); }

.fm-footer__base {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px 24px;
	padding: 18px 0 28px;
	border-top: 1px solid var(--line);
	font-size: 0.8125rem;
	color: var(--muted);
}
.fm-footer__made::before {
	content: "";
	display: inline-block;
	width: 6px;
	height: 6px;
	margin-right: 8px;
	border-radius: 50%;
	background: var(--primary);
	vertical-align: 0.1em;
}

@media (min-width: 640px) {
	.fm-footer { margin-top: 112px; }
	.fm-footer__grid {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		gap: 40px 48px;
		padding: 48px 0 56px;
	}
	.fm-footer__brand { grid-column: 1 / -1; }
	.fm-footer__logo img { width: 170px; }
}
@media (min-width: 1024px) {
	.fm-footer__grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr); }
	.fm-footer__brand { grid-column: auto; }
}

/* --------------------------------------------------------------------------
 * Movimiento reducido
 * ----------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* Impresión */
@media print {
	.fm-header,
	.fm-footer,
	.fm-share,
	.fm-follow,
	.fm-related,
	.fm-backdrop { display: none !important; }
	body { background: #fff; color: #000; }
}
