/*
Theme Name: Deivy Hernandez
Theme URI: https://deivyhernandez.com/
Author: Deivy Hernandez
Author URI: https://deivyhernandez.com/
Description: Tema editorial a medida para deivyhernandez.com. Una sola superficie de papel, una tinta y un acento; la estructura nace de filetes de 1 px y espacio en blanco, nunca de sombras o degradados. Incluye portada, indice de articulos, plantilla de articulo, pagina Acerca de y captura de suscriptores.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 7.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: deivyhernandez
Tags: blog, one-column, custom-menu, custom-logo, featured-images, translation-ready, editor-style
*/

/* ==========================================================================
   00  Fuentes (self-hosted)
   ========================================================================== */

@font-face {
	font-family: 'Instrument Sans';
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url('assets/fonts/instrument-sans-latin-ext.woff2') format('woff2');
	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: 'Instrument Sans';
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url('assets/fonts/instrument-sans-latin.woff2') format('woff2');
	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: 'JetBrains Mono';
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url('assets/fonts/jetbrains-mono-latin-ext.woff2') format('woff2');
	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: 'JetBrains Mono';
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url('assets/fonts/jetbrains-mono-latin.woff2') format('woff2');
	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;
}

/* ==========================================================================
   01  Tokens
   ========================================================================== */

:root {
	/* Color */
	--dh-paper: #fbfaf8;
	--dh-surface: #ffffff;
	--dh-ink: #121212;
	--dh-body: #2b2926;
	--dh-muted: #55534e;
	--dh-faint: #85817a;
	--dh-hairline: #e6e3dd;
	--dh-line-strong: #d8d4cc;
	--dh-accent: #ff5a1f;

	/* Color sobre tinta */
	--dh-on-ink: #f4f2ee;
	--dh-on-ink-muted: #b3afa8;
	--dh-on-ink-faint: #8c8880;
	--dh-on-ink-hairline: #2a2a28;
	--dh-on-ink-field: #1b1b19;
	--dh-on-ink-field-border: #3a3a37;
	--dh-on-ink-copyright: #5e5b55;

	/* Tipografia */
	--dh-sans: 'Instrument Sans', Helvetica, Arial, sans-serif;
	--dh-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

	/* Rejilla */
	--dh-margin: 80px;
	--dh-content: 1280px;
	--dh-article: 720px;
	--dh-header-h: 72px;

	/* Espaciado: 4 8 12 16 24 32 44 52 72 104 */
	--dh-s1: 4px;
	--dh-s2: 8px;
	--dh-s3: 12px;
	--dh-s4: 16px;
	--dh-s5: 24px;
	--dh-s6: 32px;
	--dh-s7: 44px;
	--dh-s8: 52px;
	--dh-s9: 72px;
	--dh-s10: 104px;

	/* Movimiento */
	--dh-motion: 160ms;
	--dh-ease: ease;

	/* Marcador de imagen ausente */
	--dh-hatch: repeating-linear-gradient(135deg, #eeeae2 0 9px, #f5f2ec 9px 18px);
}

@media (max-width: 1024px) {
	:root {
		--dh-margin: 40px;
	}
}

@media (max-width: 768px) {
	:root {
		--dh-margin: 20px;
		--dh-header-h: 60px;
	}
}

/* ==========================================================================
   02  Base
   ========================================================================== */

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--dh-paper);
	color: var(--dh-ink);
	font-family: var(--dh-sans);
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

body.dh-menu-open {
	overflow: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote {
	margin: 0;
}

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

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

::selection {
	background: var(--dh-ink);
	color: var(--dh-paper);
}

:focus-visible {
	outline: 2px solid var(--dh-ink);
	outline-offset: 2px;
}

.dh-band--ink :focus-visible {
	outline-color: var(--dh-on-ink);
}

.screen-reader-text {
	border: 0;
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.dh-skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 100;
	background: var(--dh-ink);
	color: var(--dh-paper);
	font-size: 14px;
	padding: 12px 20px;
}

.dh-skip-link:focus {
	left: 0;
}

/* ==========================================================================
   03  Tipografia
   ========================================================================== */

.dh-d1 {
	font-size: 92px;
	line-height: 0.92;
	font-weight: 600;
	letter-spacing: -0.045em;
}

.dh-h1 {
	font-size: 56px;
	line-height: 1.05;
	font-weight: 600;
	letter-spacing: -0.035em;
	text-wrap: pretty;
}

.dh-h2 {
	font-size: 30px;
	line-height: 1.15;
	font-weight: 600;
	letter-spacing: -0.03em;
}

.dh-h3 {
	font-size: 22px;
	line-height: 1.2;
	font-weight: 500;
	letter-spacing: -0.02em;
}

.dh-lead {
	font-size: 21px;
	line-height: 1.45;
	font-weight: 400;
	color: var(--dh-body);
	text-wrap: pretty;
	max-width: 30em;
}

.dh-mono {
	font-family: var(--dh-mono);
	font-size: 10.5px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.dh-eyebrow {
	font-family: var(--dh-mono);
	font-size: 10.5px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--dh-faint);
}

.dh-category {
	font-family: var(--dh-mono);
	font-size: 10px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--dh-accent);
}

.dh-meta {
	font-family: var(--dh-mono);
	font-size: 10.5px;
	color: var(--dh-faint);
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

@media (max-width: 768px) {
	.dh-d1 {
		font-size: 44px;
		line-height: 0.98;
		letter-spacing: -0.035em;
	}

	.dh-h1 {
		font-size: 34px;
		line-height: 1.1;
		letter-spacing: -0.03em;
	}

	.dh-h2 {
		font-size: 24px;
		line-height: 1.2;
	}

	.dh-h3 {
		font-size: 20px;
	}

	.dh-lead {
		font-size: 18px;
		line-height: 1.5;
	}
}

/* ==========================================================================
   04  Estructura
   ========================================================================== */

.dh-wrap {
	padding-left: var(--dh-margin);
	padding-right: var(--dh-margin);
}

.dh-band {
	border-bottom: 1px solid var(--dh-hairline);
}

.dh-band--ink {
	background: var(--dh-ink);
	color: var(--dh-on-ink);
	border-bottom: 0;
}

.dh-band--ink .dh-eyebrow,
.dh-band--ink .dh-meta {
	color: var(--dh-on-ink-faint);
}

/* ==========================================================================
   05  Cabecera
   ========================================================================== */

.dh-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--dh-paper);
	border-bottom: 1px solid transparent;
	transition: border-color var(--dh-motion) var(--dh-ease);
}

.dh-header.is-stuck,
.dh-header--bordered {
	border-bottom-color: var(--dh-hairline);
}

.dh-header__inner {
	height: var(--dh-header-h);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--dh-s5);
}

.dh-wordmark {
	font-size: 14px;
	font-weight: 600;
	letter-spacing: -0.02em;
}

.dh-wordmark img {
	max-height: 28px;
	width: auto;
}

.dh-nav {
	display: flex;
	align-items: center;
	gap: var(--dh-s5);
	font-size: 13px;
	color: var(--dh-muted);
}

.dh-nav ul {
	display: flex;
	align-items: center;
	gap: var(--dh-s5);
	list-style: none;
	margin: 0;
	padding: 0;
}

.dh-nav a {
	transition: color var(--dh-motion) var(--dh-ease);
}

.dh-nav a:hover,
.dh-nav .current-menu-item > a,
.dh-nav .current_page_item > a,
.dh-nav .current-menu-ancestor > a {
	color: var(--dh-ink);
}

.dh-nav .current-menu-item > a,
.dh-nav .current_page_item > a {
	font-weight: 500;
}

.dh-toggle {
	display: none;
	width: 44px;
	height: 44px;
	margin-right: -10px;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
	flex-direction: column;
	justify-content: center;
	align-items: flex-end;
	gap: 6px;
}

.dh-toggle span {
	display: block;
	width: 22px;
	height: 1.5px;
	background: var(--dh-ink);
}

@media (max-width: 768px) {
	.dh-wordmark {
		font-size: 15px;
	}

	.dh-nav {
		display: none;
	}

	.dh-toggle {
		display: flex;
	}
}

/* Menu movil a pantalla completa */
.dh-menu {
	position: fixed;
	inset: 0;
	z-index: 60;
	background: var(--dh-paper);
	display: none;
	flex-direction: column;
}

.dh-menu.is-open {
	display: flex;
	animation: dh-rise 200ms var(--dh-ease) both;
}

.dh-menu__top {
	height: var(--dh-header-h);
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 var(--dh-margin);
	flex: 0 0 auto;
}

.dh-menu__close {
	width: 44px;
	height: 44px;
	margin-right: -10px;
	border: 0;
	background: none;
	color: var(--dh-ink);
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: flex-end;
}

.dh-menu__links {
	flex: 1;
	padding: var(--dh-s6) var(--dh-margin);
	display: flex;
	flex-direction: column;
	gap: var(--dh-s5);
	overflow-y: auto;
}

.dh-menu__links ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: var(--dh-s5);
}

.dh-menu__links a {
	font-size: 28px;
	font-weight: 500;
	letter-spacing: -0.03em;
}

.dh-menu__links .current-menu-item > a {
	color: var(--dh-ink);
}

.dh-menu__foot {
	flex: 0 0 auto;
	padding: var(--dh-s5) var(--dh-margin) calc(var(--dh-s6) + env(safe-area-inset-bottom));
	border-top: 1px solid var(--dh-hairline);
	display: flex;
	flex-direction: column;
	gap: 10px;
}

/* ==========================================================================
   06  Botones, pildoras y campos
   ========================================================================== */

.dh-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-family: var(--dh-sans);
	font-size: 14px;
	font-weight: 500;
	line-height: 1;
	padding: 15px 24px;
	border: 0;
	border-radius: 999px;
	cursor: pointer;
	text-align: center;
	transition: transform var(--dh-motion) var(--dh-ease), border-color var(--dh-motion) var(--dh-ease), background-color var(--dh-motion) var(--dh-ease);
}

.dh-btn--accent {
	background: var(--dh-accent);
	color: #fff;
}

.dh-btn--ink {
	background: var(--dh-ink);
	color: var(--dh-paper);
}

.dh-btn--paper {
	background: var(--dh-on-ink);
	color: var(--dh-ink);
}

.dh-btn--ghost {
	background: transparent;
	color: var(--dh-ink);
	border: 1px solid var(--dh-line-strong);
	padding: 14px 23px;
}

.dh-btn--accent:hover,
.dh-btn--ink:hover,
.dh-btn--paper:hover {
	transform: translateY(-1px);
}

.dh-btn--ghost:hover {
	border-color: var(--dh-ink);
}

.dh-btn--nav {
	padding: 10px 18px;
	font-size: 13px;
	background: var(--dh-ink);
	color: var(--dh-paper);
}

.dh-field {
	font-family: var(--dh-sans);
	font-size: 15px;
	padding: 14px 16px;
	border: 1px solid var(--dh-line-strong);
	border-radius: 999px;
	background: var(--dh-surface);
	color: var(--dh-ink);
	outline: none;
	transition: border-color var(--dh-motion) var(--dh-ease);
}

.dh-field:focus {
	border-color: var(--dh-ink);
}

.dh-band--ink .dh-field {
	background: var(--dh-on-ink-field);
	border-color: var(--dh-on-ink-field-border);
	color: var(--dh-on-ink);
}

.dh-band--ink .dh-field:focus {
	border-color: var(--dh-on-ink);
}

.dh-field::placeholder {
	color: var(--dh-faint);
}

.dh-band--ink .dh-field::placeholder {
	color: var(--dh-on-ink-faint);
}

/* Pildoras de filtro */
.dh-chips {
	display: flex;
	gap: 10px;
	padding-top: 28px;
	padding-bottom: 28px;
}

.dh-chip {
	font-family: var(--dh-mono);
	font-size: 11px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 9px 16px;
	min-height: 36px;
	display: inline-flex;
	align-items: center;
	border-radius: 999px;
	border: 1px solid var(--dh-line-strong);
	color: var(--dh-muted);
	white-space: nowrap;
	transition: border-color var(--dh-motion) var(--dh-ease), color var(--dh-motion) var(--dh-ease);
}

.dh-chip:hover {
	border-color: var(--dh-ink);
	color: var(--dh-ink);
}

.dh-chip.is-active {
	background: var(--dh-ink);
	border-color: var(--dh-ink);
	color: var(--dh-paper);
}

@media (max-width: 768px) {
	.dh-chips {
		padding-top: 0;
		padding-bottom: 20px;
		overflow-x: auto;
		scrollbar-width: none;
		gap: var(--dh-s2);
		margin-right: calc(var(--dh-margin) * -1);
		padding-right: var(--dh-margin);
	}

	.dh-chips::-webkit-scrollbar {
		display: none;
	}

	.dh-chip {
		font-size: 10.5px;
		padding: 9px 14px;
	}
}

/* ==========================================================================
   07  Captura de correo
   ========================================================================== */

.dh-capture {
	display: flex;
	flex-direction: column;
	gap: 10px;
	max-width: 400px;
}

.dh-capture--wide {
	max-width: none;
}

.dh-capture__row {
	display: flex;
	gap: var(--dh-s2);
}

.dh-capture__row .dh-field {
	flex: 1;
	min-width: 0;
}

.dh-capture__note {
	font-family: var(--dh-mono);
	font-size: 10.5px;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: var(--dh-faint);
}

.dh-band--ink .dh-capture__note {
	color: var(--dh-on-ink-faint);
}

.dh-capture__message {
	font-size: 15px;
	font-weight: 500;
	line-height: 1.5;
}

.dh-capture__message[data-state='error'] {
	color: var(--dh-accent);
}

.dh-capture.is-done .dh-capture__row,
.dh-capture.is-done .dh-capture__note {
	display: none;
}

@media (max-width: 768px) {
	.dh-capture {
		max-width: none;
	}

	.dh-capture__row {
		flex-direction: column;
		gap: 10px;
	}

	.dh-capture .dh-field {
		font-size: 16px;
		padding: 15px 18px;
	}

	.dh-capture .dh-btn {
		font-size: 15px;
		padding: 16px;
		width: 100%;
	}

	.dh-capture__note {
		font-size: 10px;
	}
}

/* ==========================================================================
   08  Portada
   ========================================================================== */

.dh-hero {
	padding-top: var(--dh-s9);
	padding-bottom: var(--dh-s8);
}

.dh-hero__title {
	max-width: 14ch;
}

.dh-heroband {
	display: grid;
	grid-template-columns: 1fr 620px;
	border-top: 1px solid var(--dh-hairline);
	border-bottom: 1px solid var(--dh-hairline);
}

.dh-heroband__copy {
	padding: var(--dh-s8) var(--dh-s8) var(--dh-s8) var(--dh-margin);
	display: flex;
	flex-direction: column;
	gap: var(--dh-s6);
	justify-content: space-between;
}

.dh-heroband__copy .dh-lead {
	max-width: 28em;
}

.dh-heroband__media {
	height: 520px;
	background: var(--dh-hatch);
	overflow: hidden;
}

.dh-heroband__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.dh-section-head {
	padding-top: var(--dh-s8);
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--dh-s5);
}

.dh-section-head__link {
	font-size: 13px;
	color: var(--dh-muted);
	transition: color var(--dh-motion) var(--dh-ease);
}

.dh-section-head__link:hover {
	color: var(--dh-ink);
}

@media (max-width: 1024px) {
	.dh-heroband {
		grid-template-columns: 1fr;
	}

	.dh-heroband__copy {
		padding: var(--dh-s8) var(--dh-margin);
	}

	.dh-heroband__media {
		height: 420px;
		border-top: 1px solid var(--dh-hairline);
	}
}

@media (max-width: 768px) {
	.dh-hero {
		padding-top: 40px;
		padding-bottom: var(--dh-s6);
	}

	.dh-hero__title {
		max-width: none;
	}

	.dh-heroband {
		display: flex;
		flex-direction: column-reverse;
		border-top: 0;
	}

	.dh-heroband__media {
		height: 340px;
		border-top: 1px solid var(--dh-hairline);
		border-bottom: 1px solid var(--dh-hairline);
	}

	.dh-heroband__copy {
		padding: var(--dh-s6) var(--dh-margin);
		gap: var(--dh-s5);
	}

	.dh-section-head {
		padding-top: var(--dh-s6);
	}
}

/* ==========================================================================
   09  Tarjetas y filas de articulo
   ========================================================================== */

.dh-cards {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1px;
	background: var(--dh-hairline);
	border: 1px solid var(--dh-hairline);
	margin-top: var(--dh-s5);
}

.dh-card {
	background: var(--dh-paper);
	padding: 26px;
	min-height: 150px;
	display: flex;
	flex-direction: column;
	gap: 14px;
	justify-content: space-between;
	transition: background-color var(--dh-motion) var(--dh-ease);
}

.dh-card:hover {
	background: var(--dh-surface);
}

.dh-card__title {
	font-size: 22px;
	line-height: 1.2;
	font-weight: 500;
	letter-spacing: -0.02em;
	text-wrap: pretty;
}

.dh-rows {
	display: flex;
	flex-direction: column;
}

.dh-row {
	display: grid;
	grid-template-columns: 1fr 120px;
	gap: var(--dh-s6);
	align-items: baseline;
	padding: 28px 0;
	border-bottom: 1px solid var(--dh-hairline);
	transition: padding-left var(--dh-motion) var(--dh-ease);
}

.dh-row:hover {
	padding-left: var(--dh-s2);
}

.dh-row__body {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.dh-row__title {
	font-size: 30px;
	line-height: 1.18;
	font-weight: 500;
	letter-spacing: -0.025em;
	text-wrap: pretty;
}

.dh-row__dek {
	font-size: 17px;
	line-height: 1.5;
	color: var(--dh-muted);
	max-width: 62ch;
}

.dh-row__meta {
	font-family: var(--dh-mono);
	font-size: 10.5px;
	line-height: 1.8;
	color: var(--dh-faint);
	text-align: right;
	text-transform: uppercase;
}

@media (max-width: 768px) {
	.dh-cards {
		display: flex;
		flex-direction: column;
		gap: 0;
		background: none;
		border: 0;
		margin-top: var(--dh-s3);
	}

	.dh-card {
		padding: 20px 0;
		min-height: 0;
		border-top: 1px solid var(--dh-hairline);
		gap: 10px;
	}

	.dh-card:last-child {
		border-bottom: 1px solid var(--dh-hairline);
	}

	.dh-card:hover {
		background: var(--dh-paper);
	}

	.dh-card__title {
		font-size: 20px;
		line-height: 1.25;
	}

	.dh-row {
		grid-template-columns: 1fr;
		gap: 10px;
		padding: 22px 0;
		border-bottom: 0;
		border-top: 1px solid var(--dh-hairline);
	}

	.dh-rows .dh-row:last-of-type {
		border-bottom: 1px solid var(--dh-hairline);
	}

	.dh-row:hover {
		padding-left: 0;
	}

	.dh-row__title {
		font-size: 22px;
		line-height: 1.22;
	}

	.dh-row__dek {
		font-size: 16px;
	}

	.dh-row__meta {
		text-align: left;
		font-size: 10px;
	}

	.dh-row__meta br {
		display: none;
	}
}

/* ==========================================================================
   10  Encabezados de pagina y paginacion
   ========================================================================== */

.dh-pagehead {
	padding-top: var(--dh-s9);
	padding-bottom: 40px;
	display: grid;
	grid-template-columns: 1fr 400px;
	gap: var(--dh-s8);
	align-items: end;
	border-bottom: 1px solid var(--dh-hairline);
}

.dh-pagehead__copy {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.dh-pagination {
	display: flex;
	justify-content: center;
	gap: 10px;
	padding-top: 40px;
}

.dh-pagination .page-numbers {
	font-family: var(--dh-mono);
	font-size: 11px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 12px 18px;
	border: 1px solid var(--dh-line-strong);
	border-radius: 999px;
	color: var(--dh-muted);
	transition: border-color var(--dh-motion) var(--dh-ease), color var(--dh-motion) var(--dh-ease);
}

.dh-pagination .page-numbers:hover {
	border-color: var(--dh-ink);
	color: var(--dh-ink);
}

.dh-pagination .page-numbers.current {
	background: var(--dh-ink);
	border-color: var(--dh-ink);
	color: var(--dh-paper);
}

.dh-pagination .dots {
	border-color: transparent;
}

@media (max-width: 1024px) {
	.dh-pagehead {
		grid-template-columns: 1fr;
		gap: var(--dh-s6);
		align-items: start;
	}
}

@media (max-width: 768px) {
	.dh-pagehead {
		padding-top: 36px;
		padding-bottom: var(--dh-s5);
		border-bottom: 0;
		gap: 14px;
	}
}

/* ==========================================================================
   11  Articulo
   ========================================================================== */

.dh-progress {
	position: sticky;
	top: var(--dh-header-h);
	z-index: 40;
	height: 2px;
	background: var(--dh-hairline);
}

.dh-progress__bar {
	height: 2px;
	width: 0;
	background: var(--dh-accent);
	transform-origin: left center;
}

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

.dh-article > * {
	grid-column: 2;
}

.dh-article__head {
	padding-top: var(--dh-s9);
	display: flex;
	flex-direction: column;
	gap: var(--dh-s5);
}

.dh-article__back {
	font-family: var(--dh-mono);
	font-size: 10.5px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--dh-accent);
}

.dh-article__byline {
	display: flex;
	flex-wrap: wrap;
	gap: var(--dh-s5);
	align-items: center;
	padding: 20px 0;
	border-top: 1px solid var(--dh-hairline);
	border-bottom: 1px solid var(--dh-hairline);
	font-family: var(--dh-mono);
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	color: var(--dh-faint);
}

.dh-article__author {
	display: flex;
	align-items: center;
	gap: 10px;
}

.dh-article__avatar {
	width: 32px;
	height: 32px;
	border-radius: 999px;
	border: 1px solid var(--dh-hairline);
	background: var(--dh-hatch);
	overflow: hidden;
	flex: 0 0 auto;
}

.dh-article__avatar img {
	border-radius: 999px;
}

.dh-article__figure {
	margin-top: 40px;
}

.dh-article__figure img {
	width: 100%;
	height: auto;
}

.dh-article__body {
	padding-top: var(--dh-s5);
	padding-bottom: var(--dh-s9);
	font-size: 19px;
	line-height: 1.65;
	color: var(--dh-body);
}

.dh-article__body > * {
	margin-top: var(--dh-s5);
	margin-bottom: 0;
}

.dh-article__body > *:first-child {
	margin-top: 0;
}

.dh-article__body h2 {
	font-size: 30px;
	line-height: 1.15;
	font-weight: 600;
	letter-spacing: -0.03em;
	color: var(--dh-ink);
	margin-top: 40px;
}

.dh-article__body h3 {
	font-size: 22px;
	line-height: 1.25;
	font-weight: 600;
	letter-spacing: -0.02em;
	color: var(--dh-ink);
	margin-top: var(--dh-s6);
}

.dh-article__body h4,
.dh-article__body h5,
.dh-article__body h6 {
	font-size: 19px;
	font-weight: 600;
	color: var(--dh-ink);
	margin-top: var(--dh-s6);
}

.dh-article__body a {
	color: var(--dh-ink);
	border-bottom: 1px solid var(--dh-line-strong);
	transition: border-color var(--dh-motion) var(--dh-ease);
}

.dh-article__body a:hover {
	border-bottom-color: var(--dh-accent);
}

.dh-article__body ul,
.dh-article__body ol {
	padding-left: var(--dh-s5);
	line-height: 1.7;
}

.dh-article__body li + li {
	margin-top: var(--dh-s2);
}

.dh-article__body blockquote {
	border-left: 2px solid var(--dh-accent);
	padding: 4px 0 4px 20px;
	font-size: 21px;
	line-height: 1.45;
	color: var(--dh-ink);
}

.dh-article__body blockquote p {
	margin: 0;
}

.dh-article__body blockquote cite {
	display: block;
	margin-top: var(--dh-s3);
	font-family: var(--dh-mono);
	font-size: 11px;
	font-style: normal;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--dh-faint);
}

.dh-article__body pre {
	background: var(--dh-ink);
	color: var(--dh-on-ink);
	padding: 22px 24px;
	font-family: var(--dh-mono);
	font-size: 13px;
	line-height: 1.7;
	overflow-x: auto;
}

.dh-article__body code {
	font-family: var(--dh-mono);
	font-size: 0.85em;
	background: #f1eee8;
	padding: 2px 5px;
}

.dh-article__body pre code {
	background: none;
	padding: 0;
	font-size: 13px;
	color: inherit;
}

.dh-article__body img,
.dh-article__body figure {
	max-width: 100%;
}

.dh-article__body figcaption,
.dh-article__body .wp-caption-text {
	font-family: var(--dh-mono);
	font-size: 12.5px;
	line-height: 1.6;
	color: var(--dh-faint);
	margin-top: var(--dh-s3);
}

.dh-article__body hr {
	border: 0;
	border-top: 1px solid var(--dh-hairline);
	margin-top: 40px;
}

.dh-article__body table {
	width: 100%;
	border-collapse: collapse;
	font-size: 17px;
}

.dh-article__body th,
.dh-article__body td {
	text-align: left;
	padding: 12px 0;
	border-bottom: 1px solid var(--dh-hairline);
}

.dh-article__body .alignleft {
	float: left;
	margin: 0 var(--dh-s5) var(--dh-s5) 0;
}

.dh-article__body .alignright {
	float: right;
	margin: 0 0 var(--dh-s5) var(--dh-s5);
}

.dh-article__body .aligncenter {
	margin-left: auto;
	margin-right: auto;
}

.dh-related {
	padding-top: var(--dh-s8);
	padding-bottom: var(--dh-s9);
	display: flex;
	flex-direction: column;
	gap: var(--dh-s5);
}

.dh-related .dh-cards {
	margin-top: 0;
}

.dh-tags {
	display: flex;
	flex-wrap: wrap;
	gap: var(--dh-s2);
	padding-top: var(--dh-s5);
}

@media (max-width: 1024px) {
	.dh-article {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.dh-article > * {
		grid-column: 1;
	}
}

@media (max-width: 768px) {
	.dh-article__head {
		padding-top: 28px;
		gap: var(--dh-s4);
	}

	.dh-article__byline {
		gap: 14px;
		padding: var(--dh-s4) 0;
		font-size: 10.5px;
	}

	.dh-article__avatar {
		width: 28px;
		height: 28px;
	}

	.dh-article__figure {
		margin-top: var(--dh-s5);
		margin-left: calc(var(--dh-margin) * -1);
		margin-right: calc(var(--dh-margin) * -1);
		border-top: 1px solid var(--dh-hairline);
		border-bottom: 1px solid var(--dh-hairline);
	}

	.dh-article__body {
		font-size: 17px;
		line-height: 1.7;
		padding-bottom: var(--dh-s6);
	}

	.dh-article__body > * {
		margin-top: 20px;
	}

	.dh-article__body h2 {
		font-size: 24px;
		line-height: 1.2;
		margin-top: var(--dh-s6);
	}

	.dh-article__body blockquote {
		font-size: 19px;
		padding-left: var(--dh-s4);
	}

	.dh-article__body pre {
		padding: 18px;
		font-size: 12px;
	}

	.dh-related {
		padding-top: var(--dh-s6);
		padding-bottom: var(--dh-s6);
	}
}

/* ==========================================================================
   11b  Bloques extractables (resumen, FAQ, fuentes)
   ========================================================================== */

.dh-tldr {
	margin-top: 40px;
	padding: 24px 26px;
	border: 1px solid var(--dh-hairline);
	background: var(--dh-surface);
	display: flex;
	flex-direction: column;
	gap: var(--dh-s3);
}

.dh-tldr__text {
	font-size: 19px;
	line-height: 1.55;
	color: var(--dh-ink);
	text-wrap: pretty;
}

.dh-tldr__list {
	margin: 0;
	padding-left: 20px;
	font-size: 17px;
	line-height: 1.6;
	color: var(--dh-body);
	display: flex;
	flex-direction: column;
	gap: var(--dh-s2);
}

.dh-tldr__list li::marker {
	color: var(--dh-accent);
}

.dh-faq {
	padding-bottom: var(--dh-s8);
	display: flex;
	flex-direction: column;
	gap: var(--dh-s5);
}

.dh-faq__rows {
	display: flex;
	flex-direction: column;
}

.dh-faq__row {
	padding: var(--dh-s5) 0;
	border-top: 1px solid var(--dh-hairline);
	display: flex;
	flex-direction: column;
	gap: var(--dh-s3);
}

.dh-faq__row:last-child {
	border-bottom: 1px solid var(--dh-hairline);
}

.dh-faq__q {
	margin: 0;
	font-size: 22px;
	line-height: 1.25;
	font-weight: 500;
	letter-spacing: -0.02em;
	color: var(--dh-ink);
}

.dh-faq__a {
	font-size: 17px;
	line-height: 1.6;
	color: var(--dh-body);
	max-width: 62ch;
}

.dh-faq__a p {
	margin: 0;
}

.dh-faq__a p + p {
	margin-top: var(--dh-s3);
}

.dh-sources {
	padding-bottom: var(--dh-s8);
	display: flex;
	flex-direction: column;
	gap: var(--dh-s3);
	border-top: 1px solid var(--dh-hairline);
	padding-top: var(--dh-s5);
}

.dh-sources__list {
	margin: 0;
	padding-left: 20px;
	font-size: 15px;
	line-height: 1.7;
	color: var(--dh-muted);
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.dh-sources__list a {
	border-bottom: 1px solid var(--dh-line-strong);
	transition: border-color var(--dh-motion) var(--dh-ease);
}

.dh-sources__list a:hover {
	border-bottom-color: var(--dh-accent);
}

@media (max-width: 768px) {
	.dh-tldr {
		margin-top: var(--dh-s5);
		padding: 20px;
	}

	.dh-tldr__text {
		font-size: 17px;
	}

	.dh-tldr__list {
		font-size: 16px;
	}

	.dh-faq {
		padding-bottom: var(--dh-s6);
	}

	.dh-faq__q {
		font-size: 20px;
	}

	.dh-faq__a {
		font-size: 16px;
	}
}

/* ==========================================================================
   12  Bandas oscuras (CTA, boletin, pie)
   ========================================================================== */

.dh-cta {
	padding-top: var(--dh-s9);
	padding-bottom: var(--dh-s9);
	display: grid;
	grid-template-columns: 1fr 300px;
	gap: var(--dh-s8);
	align-items: start;
	margin-top: var(--dh-s9);
}

.dh-cta__copy {
	display: flex;
	flex-direction: column;
	gap: var(--dh-s4);
}

.dh-cta__title {
	font-size: 34px;
	line-height: 1.1;
	font-weight: 600;
	letter-spacing: -0.03em;
}

.dh-cta__text {
	font-size: 17px;
	line-height: 1.55;
	color: var(--dh-on-ink-muted);
	max-width: 34em;
}

.dh-cta__btn {
	align-self: flex-start;
	margin-top: var(--dh-s2);
}

.dh-social {
	display: flex;
	flex-direction: column;
	gap: 10px;
	font-family: var(--dh-mono);
	font-size: 11.5px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--dh-on-ink-faint);
}

.dh-social ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.dh-social a {
	display: inline-flex;
	align-items: center;
	gap: var(--dh-s2);
	transition: color var(--dh-motion) var(--dh-ease);
}

.dh-social__icon {
	flex: 0 0 auto;
	opacity: 0.75;
	transition: opacity var(--dh-motion) var(--dh-ease);
}

.dh-social a:hover .dh-social__icon {
	opacity: 1;
}

/* En Acerca de los logos acompanan al enlace subrayado. */
.dh-fact__links a {
	display: inline-flex;
	align-items: center;
	gap: 10px;
}

.dh-fact__links .dh-social__icon {
	width: 17px;
	height: 17px;
	opacity: 0.7;
	transition: opacity var(--dh-motion) var(--dh-ease);
}

.dh-fact__links a:hover .dh-social__icon {
	opacity: 1;
	color: var(--dh-accent);
}

.dh-social a:hover {
	color: var(--dh-on-ink);
}

.dh-social__copyright {
	margin-top: var(--dh-s4);
	color: var(--dh-on-ink-copyright);
}

.dh-newsletter {
	padding-top: var(--dh-s8);
	padding-bottom: var(--dh-s8);
	display: grid;
	grid-template-columns: 1fr 400px;
	gap: var(--dh-s8);
	align-items: center;
}

.dh-newsletter__copy {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.dh-newsletter__text {
	font-size: 17px;
	line-height: 1.55;
	color: var(--dh-on-ink-muted);
	max-width: 40em;
}

@media (max-width: 1024px) {
	.dh-cta,
	.dh-newsletter {
		grid-template-columns: 1fr;
		gap: var(--dh-s6);
	}
}

@media (max-width: 768px) {
	.dh-cta {
		padding-top: 40px;
		padding-bottom: 40px;
		margin-top: var(--dh-s6);
		gap: var(--dh-s5);
	}

	.dh-cta__title {
		font-size: 26px;
		line-height: 1.12;
	}

	.dh-cta__text {
		font-size: 16px;
	}

	.dh-social {
		flex-direction: row;
		flex-wrap: wrap;
		gap: 20px;
		font-size: 11px;
	}

	.dh-social__copyright {
		flex-basis: 100%;
		margin-top: 0;
		font-size: 10px;
	}

	.dh-newsletter {
		padding-top: 36px;
		padding-bottom: 36px;
		gap: 14px;
	}

	.dh-newsletter__title {
		font-size: 24px;
		line-height: 1.15;
	}
}

/* ==========================================================================
   13  Pagina Acerca de
   ========================================================================== */

.dh-about-intro {
	display: grid;
	grid-template-columns: 1fr 520px;
	border-bottom: 1px solid var(--dh-hairline);
}

.dh-about-intro__copy {
	padding: var(--dh-s9) var(--dh-s8) var(--dh-s9) var(--dh-margin);
	display: flex;
	flex-direction: column;
	gap: var(--dh-s5);
}

.dh-about-intro__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: var(--dh-s2);
}

.dh-about-intro__media {
	height: 480px;
	background: var(--dh-hatch);
	overflow: hidden;
}

.dh-about-intro__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.dh-facts {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	border-bottom: 1px solid var(--dh-hairline);
}

.dh-fact {
	padding: var(--dh-s7) var(--dh-s6);
	border-right: 1px solid var(--dh-hairline);
	display: flex;
	flex-direction: column;
	gap: var(--dh-s3);
}

.dh-fact:first-child {
	padding-left: var(--dh-margin);
}

.dh-fact:last-child {
	padding-right: var(--dh-margin);
	border-right: 0;
}

.dh-fact__text {
	font-size: 17px;
	line-height: 1.6;
	color: var(--dh-body);
}

.dh-fact__links {
	display: flex;
	flex-direction: column;
	gap: var(--dh-s2);
	font-size: 17px;
}

.dh-fact__links a {
	align-self: flex-start;
	border-bottom: 1px solid var(--dh-line-strong);
	transition: border-color var(--dh-motion) var(--dh-ease);
}

.dh-fact__links a:hover {
	border-bottom-color: var(--dh-accent);
}

.dh-timeline {
	padding-top: var(--dh-s9);
	padding-bottom: var(--dh-s9);
	display: grid;
	grid-template-columns: 240px 1fr;
	gap: var(--dh-s8);
}

.dh-timeline__rows {
	display: flex;
	flex-direction: column;
}

.dh-timeline__row {
	display: grid;
	grid-template-columns: 100px 1fr;
	gap: var(--dh-s6);
	padding: 22px 0;
	border-top: 1px solid var(--dh-hairline);
}

.dh-timeline__row:last-child {
	border-bottom: 1px solid var(--dh-hairline);
}

.dh-timeline__year {
	font-family: var(--dh-mono);
	font-size: 11px;
	color: var(--dh-faint);
	text-transform: uppercase;
}

.dh-timeline__text {
	font-size: 19px;
	line-height: 1.6;
	color: var(--dh-body);
}

@media (max-width: 1024px) {
	.dh-about-intro,
	.dh-facts,
	.dh-timeline {
		grid-template-columns: 1fr;
	}

	.dh-about-intro__copy {
		padding: var(--dh-s9) var(--dh-margin);
	}

	.dh-fact {
		border-right: 0;
		border-bottom: 1px solid var(--dh-hairline);
		padding-left: var(--dh-margin);
		padding-right: var(--dh-margin);
	}

	.dh-facts .dh-fact:last-child {
		border-bottom: 0;
	}

	.dh-timeline {
		gap: var(--dh-s5);
	}
}

@media (max-width: 768px) {
	.dh-about-intro {
		display: flex;
		flex-direction: column;
	}

	.dh-about-intro__media {
		height: 300px;
		order: -1;
		border-bottom: 1px solid var(--dh-hairline);
	}

	.dh-about-intro__copy {
		padding: var(--dh-s6) var(--dh-margin);
		gap: 18px;
	}

	.dh-about-intro__actions .dh-btn {
		width: 100%;
	}

	.dh-fact {
		padding: 26px var(--dh-margin);
	}

	.dh-fact__links {
		flex-direction: row;
		flex-wrap: wrap;
		gap: 18px;
	}

	.dh-timeline {
		padding-top: var(--dh-s6);
		padding-bottom: var(--dh-s6);
		gap: 18px;
	}

	.dh-timeline__row {
		grid-template-columns: 62px 1fr;
		gap: var(--dh-s4);
		padding: 18px 0;
	}

	.dh-timeline__year {
		font-size: 10.5px;
	}

	.dh-timeline__text {
		font-size: 17px;
	}
}

/* ==========================================================================
   14  Paginas simples, busqueda, 404
   ========================================================================== */

.dh-page {
	padding-top: var(--dh-s9);
	padding-bottom: var(--dh-s9);
}

.dh-page__head {
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding-bottom: 40px;
	border-bottom: 1px solid var(--dh-hairline);
}

.dh-empty {
	padding: var(--dh-s9) 0;
	display: flex;
	flex-direction: column;
	gap: 20px;
	align-items: flex-start;
}

.dh-search {
	display: flex;
	gap: var(--dh-s2);
	max-width: 400px;
}

.dh-search .dh-field {
	flex: 1;
	min-width: 0;
}

/* ==========================================================================
   15  Movimiento
   ========================================================================== */

@keyframes dh-rise {
	from {
		opacity: 0;
		transform: translateY(8px);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

.dh-reveal {
	opacity: 0;
	transform: translateY(8px);
}

.dh-reveal.is-visible {
	animation: dh-rise 320ms var(--dh-ease) both;
	animation-delay: var(--dh-delay, 0ms);
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.001ms !important;
		animation-delay: 0ms !important;
		transition-duration: 0.001ms !important;
	}

	.dh-reveal {
		opacity: 1;
		transform: none;
	}
}

/* ==========================================================================
   16  Barra de administracion
   ========================================================================== */

.admin-bar .dh-header {
	top: 32px;
}

.admin-bar .dh-progress {
	top: calc(var(--dh-header-h) + 32px);
}

.admin-bar .dh-menu {
	top: 32px;
}

@media (max-width: 782px) {
	.admin-bar .dh-header {
		top: 46px;
	}

	.admin-bar .dh-progress {
		top: calc(var(--dh-header-h) + 46px);
	}

	.admin-bar .dh-menu {
		top: 46px;
	}
}
