/* ==========================================================================
   El Silencio Music — estilos del front
   Dirección artística «Callas / Gritas»
   --------------------------------------------------------------------------
   01 Tokens          07 Hero              13 Contacto y formularios
   02 Base            08 Manifiesto        14 Pie
   03 Tipografía      09 Proyectos         15 Interiores
   04 Utilidades      10 Interludio        16 Prosa (editor de bloques)
   05 Botones         11 Agenda            17 Movimiento
   06 Cabecera        12 Secciones comunes 18 Impresión
   ========================================================================== */

/* 01 · Tokens ------------------------------------------------------------- */
:root {
	--ink: #0b0b0b;
	--ink-2: #161514;
	--paper: #ece8e1;
	--paper-2: #ddd7cd;
	--red: #e00012;          /* Rojo del logotipo: formas y textos grandes. */
	--red-on-ink: #ff4747;   /* Textos rojos pequeños sobre negro (5,8:1). */
	--red-on-paper: #b5000f; /* Textos rojos pequeños sobre papel (5,8:1). */
	--ash: #9a958d;          /* Texto secundario sobre negro (6,6:1). */
	--ash-on-paper: #5d5850; /* Texto secundario sobre papel (5,8:1). */

	--f-sans: var(--wp--preset--font-family--archivo, "Archivo ESM", "Arial Narrow", Arial, sans-serif);
	--f-serif: var(--wp--preset--font-family--fraunces, Georgia, serif);
	--f-mono: var(--wp--preset--font-family--mono, ui-monospace, Menlo, Consolas, monospace);

	--gutter: clamp(16px, 4vw, 56px);
	--wrap: 1680px;
	--header-h: 72px;
	--ease: cubic-bezier(.2, .7, .1, 1);
	--ease-in-out: cubic-bezier(.7, 0, .2, 1);

	/* Colores contextuales (cambian en secciones claras). */
	--bg: var(--ink);
	--fg: var(--paper);
	--muted: var(--ash);
	--accent: var(--red-on-ink);
	--line: rgba(236, 232, 225, .16);
	--focus: var(--red-on-ink);
	--esm-glyph-cut: var(--bg);
}

@media (min-width: 960px) {
	:root { --header-h: 84px; }
}

/* 02 · Base --------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

@media (prefers-reduced-motion: no-preference) {
	html { scroll-behavior: smooth; }
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--fg);
	font-family: var(--f-sans);
	font-size: clamp(1rem, .94rem + .22vw, 1.1875rem);
	font-weight: 400;
	font-stretch: 100%;
	line-height: 1.55;
	font-synthesis: none;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: clip;
}

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

a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1px; }

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

button { cursor: pointer; }

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

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

:focus-visible {
	outline: 3px solid var(--focus);
	outline-offset: 3px;
}

.esm-main { display: block; outline: none; }

body:not(.has-hero) .esm-main { padding-top: var(--header-h); }

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

.screen-reader-text:focus {
	clip: auto !important;
	clip-path: none;
	height: auto;
	width: auto;
	z-index: 100000;
}

.esm-skip {
	position: absolute;
	left: var(--gutter);
	top: -100px;
	z-index: 1000;
	padding: .9rem 1.2rem;
	background: var(--paper);
	color: var(--ink);
	font: 700 .8rem/1 var(--f-mono);
	text-transform: uppercase;
	letter-spacing: .1em;
	text-decoration: none;
}

.esm-skip:focus { top: 12px; }

/* 03 · Tipografía --------------------------------------------------------- */
/* La voz alta: condensada, mayúsculas, apretada. */
.esm-shout {
	font-family: var(--f-sans);
	font-weight: 800;
	font-stretch: 62%;
	text-transform: uppercase;
	line-height: .86;
	letter-spacing: -.012em;
}

/* La voz baja: cursiva serif, minúsculas, susurrada. */
.esm-whisper {
	font-family: var(--f-serif);
	font-style: italic;
	font-weight: 300;
	text-transform: none;
	letter-spacing: -.01em;
	line-height: 1.02;
}

/* Etiquetas de sección «✕ 01 SOBRE NOSOTROS». */
.esm-label {
	display: inline-flex;
	align-items: center;
	gap: .7em;
	font-family: var(--f-mono);
	font-size: .75rem;
	font-weight: 400;
	line-height: 1.2;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--fg);
}

.esm-label .esm-glyph { width: 1.05em; height: 1.05em; color: var(--red); flex: none; }
.esm-label__num { color: var(--muted); }
.esm-label__num::after { content: " —"; }
.esm-label a { text-decoration: none; }
.esm-label a:hover { color: var(--accent); }

.esm-glyph { display: inline-block; width: 1em; height: 1em; vertical-align: -.125em; }

.esm-meta {
	font-family: var(--f-mono);
	font-size: .75rem;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--muted);
	display: flex;
	flex-wrap: wrap;
	gap: .6em;
}

.esm-meta a { text-decoration: none; color: var(--fg); }
.esm-meta a:hover { color: var(--accent); }

/* 04 · Utilidades --------------------------------------------------------- */
.esm-wrap {
	width: 100%;
	max-width: var(--wrap);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.esm-section { position: relative; padding-block: clamp(5rem, 11vw, 11rem); }

.esm-section--paper,
.esm-404,
.esm-legal,
.esm-page-head--search {
	--bg: var(--paper);
	--fg: var(--ink);
	--muted: var(--ash-on-paper);
	--accent: var(--red-on-paper);
	--line: rgba(11, 11, 11, .18);
	--focus: var(--red-on-paper);
	--esm-glyph-cut: var(--paper);
	background: var(--bg);
	color: var(--fg);
}

.esm-arrow { width: 1.15em; height: 1.15em; flex: none; transition: transform .45s var(--ease); }

.esm-admin-hint { padding-block: 2rem; background: #2a1013; font-family: var(--f-mono); font-size: .85rem; }

/* 05 · Botones ------------------------------------------------------------ */
.esm-button {
	display: inline-flex;
	align-items: center;
	gap: .9em;
	min-height: 48px;
	padding: .95rem 1.35rem;
	border: 1px solid currentColor;
	background: transparent;
	color: var(--fg);
	font-family: var(--f-mono);
	font-size: .8rem;
	font-weight: 700;
	line-height: 1;
	letter-spacing: .12em;
	text-transform: uppercase;
	text-decoration: none;
	transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}

.esm-button:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.esm-button:hover .esm-arrow--east { transform: translateX(4px); }
.esm-button:hover .esm-arrow--northeast { transform: translate(3px, -3px); }

.esm-button--solid { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.esm-button--solid:hover { background: var(--red); border-color: var(--red); color: var(--paper); }

.esm-button--xl { font-size: .95rem; padding: 1.3rem 1.8rem; }

/* 06 · Cabecera ----------------------------------------------------------- */
.esm-header {
	position: fixed;
	inset: 0 0 auto;
	z-index: 50;
	height: var(--header-h);
	color: var(--paper);
	transition: transform .5s var(--ease);
}

/* El fondo va en un pseudo-elemento: así la capa del menú móvil (fixed) no
   queda atrapada por backdrop-filter. */
.esm-header::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(11, 11, 11, .88);
	border-bottom: 1px solid rgba(236, 232, 225, .12);
	-webkit-backdrop-filter: blur(12px) saturate(1.2);
	backdrop-filter: blur(12px) saturate(1.2);
	transition: opacity .4s var(--ease);
	pointer-events: none;
}

html.js .has-hero .esm-header:not(.is-scrolled)::before { opacity: 0; }
.esm-header.is-hidden { transform: translateY(-100%); }

.esm-header__inner {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
	height: 100%;
	max-width: var(--wrap);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

/* Logotipo. */
.esm-logo { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--fg); position: relative; z-index: 2; }
.esm-header .esm-logo { color: var(--paper); }
.esm-logo__img { width: auto; height: 44px; max-width: 160px; object-fit: contain; }
.esm-logo--footer .esm-logo__img { height: 64px; max-width: 220px; }

.esm-logo__mark {
	display: inline-grid;
	gap: 2px;
	padding: 5px;
	background: var(--red);
	color: var(--paper);
	--esm-glyph-cut: var(--red);
}

.esm-logo__mark .esm-glyph { width: 11px; height: 11px; }

.esm-logo__name {
	font-weight: 800;
	font-stretch: 62%;
	font-size: 1.25rem;
	line-height: .9;
	text-transform: uppercase;
	max-width: 6ch;
}

/* Navegación de escritorio. */
.esm-nav { display: flex; align-items: center; gap: clamp(1.25rem, 2.6vw, 2.75rem); }

.esm-nav__list {
	display: flex;
	gap: clamp(1.25rem, 2.6vw, 2.5rem);
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: nav;
}

.esm-nav__list a {
	position: relative;
	display: inline-block;
	padding-block: .5rem;
	font-family: var(--f-mono);
	font-size: .78rem;
	letter-spacing: .12em;
	text-transform: uppercase;
	text-decoration: none;
}

.esm-nav__list a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: .2rem;
	height: 1px;
	background: currentColor;
	transform: scaleX(0);
	transform-origin: right;
	transition: transform .45s var(--ease);
}

.esm-nav__list a:hover::after,
.esm-nav__list .current-menu-item > a::after,
.esm-nav__list a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }

.esm-header__cta {
	display: inline-flex;
	align-items: center;
	gap: .65rem;
	min-height: 44px;
	padding: .7rem 1.1rem;
	border: 1px solid rgba(236, 232, 225, .5);
	font-family: var(--f-mono);
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	text-decoration: none;
	transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}

.esm-header__cta:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

.esm-header__cta-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--red);
	box-shadow: 0 0 0 0 rgba(224, 0, 18, .6);
	animation: esm-live 2s infinite;
}

.esm-nav__extra { display: none; }

/* Botón de menú (móvil). */
.esm-burger {
	display: none;
	position: relative;
	z-index: 2;
	align-items: center;
	gap: .7rem;
	min-height: 44px;
	padding: .5rem 0 .5rem .5rem;
	border: 0;
	background: none;
	color: var(--paper);
	font-family: var(--f-mono);
	font-size: .78rem;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.esm-burger__lines,
.esm-burger__lines::before {
	display: block;
	width: 26px;
	height: 2px;
	background: currentColor;
	transition: transform .45s var(--ease);
}

.esm-burger__lines { position: relative; transform: translateY(-4px); }
.esm-burger__lines::before { content: ""; position: absolute; top: 8px; left: 0; }

.esm-burger[aria-expanded="true"] .esm-burger__lines { transform: translateY(4px) rotate(45deg); }
.esm-burger[aria-expanded="true"] .esm-burger__lines::before { transform: translateY(-8px) rotate(-90deg); }

@media (max-width: 959.98px) {
	.esm-burger { display: inline-flex; }

	.esm-nav {
		position: fixed;
		inset: 0;
		z-index: 1;
		flex-direction: column;
		align-items: stretch;
		justify-content: flex-end;
		gap: 2rem;
		padding: calc(var(--header-h) + 2rem) var(--gutter) max(2rem, env(safe-area-inset-bottom));
		background: var(--ink);
		overflow-y: auto;
		visibility: hidden;
		clip-path: inset(0 0 100% 0);
		transition: clip-path .7s var(--ease-in-out), visibility 0s linear .7s;
	}

	.esm-nav.is-open {
		visibility: visible;
		clip-path: inset(0 0 0 0);
		transition: clip-path .7s var(--ease-in-out), visibility 0s;
	}

	.esm-nav__list { flex-direction: column; gap: 0; border-top: 1px solid var(--line); }

	.esm-nav__list li { border-bottom: 1px solid var(--line); counter-increment: nav; }

	.esm-nav__list a {
		display: flex;
		align-items: baseline;
		gap: 1rem;
		padding-block: .55rem .35rem;
		font-family: var(--f-sans);
		font-size: clamp(3rem, 15vw, 6rem);
		font-weight: 800;
		font-stretch: 62%;
		line-height: .9;
		letter-spacing: -.01em;
	}

	.esm-nav__list a::before {
		content: counter(nav, decimal-leading-zero);
		font-family: var(--f-mono);
		font-size: .75rem;
		font-weight: 400;
		letter-spacing: .12em;
		color: var(--ash);
		transform: translateY(-1.4em);
	}

	.esm-nav__list a::after { display: none; }
	.esm-nav__list a:hover,
	.esm-nav__list .current-menu-item > a { color: var(--red-on-ink); }

	.esm-nav.is-open .esm-nav__list li { animation: esm-rise .7s var(--ease) both; }
	.esm-nav.is-open .esm-nav__list li:nth-child(2) { animation-delay: .06s; }
	.esm-nav.is-open .esm-nav__list li:nth-child(3) { animation-delay: .12s; }
	.esm-nav.is-open .esm-nav__list li:nth-child(4) { animation-delay: .18s; }
	.esm-nav.is-open .esm-nav__list li:nth-child(5) { animation-delay: .24s; }

	.esm-header__cta { align-self: flex-start; }
	.esm-nav__extra { display: block; }

	html.esm-menu-open { overflow: hidden; }
	html.esm-menu-open .esm-header::before { opacity: 0; }

	/* Sin JavaScript: el menú se muestra como una fila desplazable. */
	html:not(.js) .esm-burger,
	html:not(.js) .esm-header__cta,
	html:not(.js) .esm-nav__extra { display: none; }

	html:not(.js) .esm-nav {
		position: static;
		visibility: visible;
		clip-path: none;
		flex-direction: row;
		padding: 0;
		background: none;
		overflow-x: auto;
	}

	html:not(.js) .esm-nav__list { flex-direction: row; gap: 1rem; border: 0; }
	html:not(.js) .esm-nav__list li { border: 0; }
	html:not(.js) .esm-nav__list a { font-family: var(--f-mono); font-size: .72rem; font-weight: 400; letter-spacing: .1em; padding-block: .75rem; }
	html:not(.js) .esm-nav__list a::before { display: none; }
}

/* 07 · Hero --------------------------------------------------------------- */
.esm-hero {
	position: relative;
	isolation: isolate;
	display: grid;
	grid-template-rows: 1fr auto;
	min-height: 100vh;
	min-height: 100svh;
	padding-top: var(--header-h);
	overflow: hidden;
	background: var(--ink);
	color: var(--paper);
}

.esm-hero__media { position: absolute; inset: 0; z-index: -1; }

.esm-hero__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: grayscale(1) contrast(1.2) brightness(.78);
	transform: scale(1.04);
}

/* Luz de escenario: un foco rojo desde arriba, sombra hacia el público. */
.esm-hero__light {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(ellipse 55% 60% at 72% 12%, rgba(224, 0, 18, .62), rgba(224, 0, 18, 0) 70%),
		linear-gradient(180deg, rgba(11, 11, 11, .6) 0%, rgba(11, 11, 11, 0) 30%, rgba(11, 11, 11, .25) 55%, rgba(11, 11, 11, .92) 100%);
	mix-blend-mode: normal;
}

.esm-hero:not(.has-image) .esm-hero__light {
	background:
		radial-gradient(ellipse 40% 70% at 70% 0%, rgba(224, 0, 18, .75), rgba(224, 0, 18, 0) 72%),
		radial-gradient(ellipse 30% 50% at 18% 0%, rgba(236, 232, 225, .12), rgba(236, 232, 225, 0) 70%),
		var(--ink);
}

.esm-hero__grain {
	position: absolute;
	inset: -50%;
	opacity: .14;
	mix-blend-mode: overlay;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
	pointer-events: none;
}

.esm-hero__content {
	align-self: end;
	display: grid;
	gap: clamp(1rem, 2.5vw, 2rem);
	padding-bottom: clamp(1.5rem, 4vw, 3rem);
}

.esm-hero__kicker { color: var(--paper); }
.esm-hero__kicker .esm-glyph { color: var(--red); }
.esm-glyph.is-live { animation: esm-blink 1.6s steps(1) infinite; }

.esm-hero__title { display: grid; }

.esm-hero__title .esm-shout {
	font-size: clamp(3.1rem, 17.5vw, 19rem);
	max-width: 11ch;
	text-wrap: balance;
}

.esm-hero__title .esm-whisper {
	justify-self: end;
	margin-top: -.18em;
	padding-right: clamp(0rem, 4vw, 4rem);
	font-size: clamp(2.4rem, 7.4vw, 8rem);
	color: var(--red-on-ink);
	text-shadow: 0 2px 30px rgba(11, 11, 11, .5);
}

.esm-hero__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
	padding-block: 1.25rem calc(1.25rem + env(safe-area-inset-bottom));
	border-top: 1px solid rgba(236, 232, 225, .22);
}

.esm-hero__cta {
	display: inline-flex;
	align-items: center;
	gap: .8rem;
	min-height: 44px;
	font-family: var(--f-mono);
	font-size: .78rem;
	letter-spacing: .12em;
	text-transform: uppercase;
	text-decoration: none;
}

.esm-hero__cta .esm-arrow { animation: esm-nudge 2.4s var(--ease) infinite; }
.esm-hero__cta:hover { color: var(--red-on-ink); }

/* Vúmetro decorativo. */
.esm-meter { display: flex; align-items: flex-end; gap: 3px; height: 28px; }

.esm-meter span {
	width: 3px;
	height: 100%;
	background: var(--paper);
	opacity: .85;
	transform-origin: bottom;
	transform: scaleY(.25);
	animation: esm-eq 1.2s ease-in-out infinite alternate;
	animation-delay: calc(var(--i) * -97ms);
}

.esm-meter span:nth-child(3n) { animation-duration: .9s; }
.esm-meter span:nth-child(4n + 1) { animation-duration: 1.5s; background: var(--red); opacity: 1; }

@media (max-width: 420px) {
	.esm-meter span:nth-child(n + 13) { display: none; }
	.esm-hero__foot { gap: 1rem; }
}

/* 08 · Manifiesto --------------------------------------------------------- */
.esm-manifesto__grid {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	column-gap: clamp(1rem, 2.4vw, 2.5rem);
	row-gap: clamp(2.5rem, 6vw, 6rem);
}

.esm-manifesto__aside { grid-column: 1 / -1; }

.esm-manifesto__lead {
	grid-column: 1 / -1;
	font-size: clamp(2.5rem, 7vw, 7.6rem);
}

.esm-manifesto__lead-shout {
	display: block;
	font-weight: 800;
	font-stretch: 62%;
	line-height: .88;
	text-transform: uppercase;
	letter-spacing: -.01em;
	text-wrap: balance;
}

.esm-manifesto__lead .esm-whisper {
	display: block;
	margin-top: .35em;
	font-size: .62em;
	color: var(--red-on-paper);
	max-width: 22ch;
}

.esm-manifesto__figure { grid-column: 1 / -1; position: relative; isolation: isolate; max-width: 560px; }

.esm-manifesto__figure::after {
	content: "";
	position: absolute;
	inset: auto auto -14px -14px;
	width: 38%;
	height: 38%;
	background: var(--red);
	z-index: -1;
}

.esm-manifesto__img {
	width: 100%;
	aspect-ratio: 3 / 4;
	object-fit: cover;
	filter: grayscale(1) contrast(1.1);
}

.esm-manifesto__body { grid-column: 1 / -1; }

.esm-manifesto__body p { max-width: 58ch; }

.esm-manifesto__body p:first-child {
	font-size: clamp(1.2rem, 1rem + .6vw, 1.55rem);
	line-height: 1.35;
	font-weight: 500;
}

.esm-manifesto__body p + p { margin-top: 1.25em; }

@media (min-width: 900px) {
	.esm-manifesto__aside { grid-column: 1 / 4; grid-row: 1 / 3; }
	.esm-manifesto__aside .esm-label { position: sticky; top: calc(var(--header-h) + 2rem); }
	.esm-manifesto__lead { grid-column: 4 / -1; }
	.esm-manifesto__figure { grid-column: 4 / 8; align-self: start; }
	.esm-manifesto__body { grid-column: 8 / -1; align-self: center; padding-left: clamp(0rem, 3vw, 3rem); }
}

/* «Entre lo que callas… y lo que gritas bailando». */
.esm-callas {
	margin: clamp(5rem, 12vw, 12rem) 0 0;
	padding-inline: var(--gutter);
	overflow: hidden;
}

.esm-callas p { display: grid; max-width: var(--wrap); margin-inline: auto; }

.esm-callas__whisper {
	font-family: var(--f-serif);
	font-style: italic;
	font-weight: 300;
	font-size: clamp(1.6rem, 3.6vw, 3.6rem);
	color: var(--ash-on-paper);
	padding-left: clamp(0rem, 8vw, 10rem);
}

.esm-callas__shout {
	justify-self: end;
	text-align: right;
	font-weight: 900;
	font-stretch: 62%;
	font-size: clamp(3.4rem, 14.5vw, 17rem);
	line-height: .8;
	letter-spacing: -.015em;
	text-transform: uppercase;
	text-wrap: balance;
}

/* 09 · Proyectos ---------------------------------------------------------- */
.esm-section__head {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: end;
	gap: 1.25rem 2rem;
	margin-bottom: clamp(2.5rem, 6vw, 5rem);
}

.esm-section__head .esm-label { grid-column: 1 / -1; }
.esm-section__head > * { min-width: 0; }

.esm-section__title {
	font-weight: 800;
	font-stretch: 62%;
	font-size: clamp(3rem, 13vw, 13rem);
	line-height: .82;
	min-width: 0;
	text-transform: uppercase;
	letter-spacing: -.015em;
}

.esm-section__count,
.esm-section__aside {
	font-family: var(--f-serif);
	font-style: italic;
	font-weight: 300;
	font-size: clamp(1.4rem, 3vw, 2.8rem);
	line-height: 1;
	color: var(--accent);
	padding-bottom: .35em;
}

.esm-pidx {
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--line);
}

.esm-pidx__item { border-bottom: 1px solid var(--line); }

.esm-pidx__link {
	position: relative;
	display: grid;
	grid-template-columns: 2.25rem minmax(0, 1fr) auto;
	grid-template-areas:
		"num name thumb"
		"num meta thumb";
	align-items: center;
	column-gap: 1rem;
	row-gap: .5rem;
	padding-block: clamp(1.25rem, 2.6vw, 2.25rem);
	text-decoration: none;
	color: var(--fg);
}

.esm-pidx__link::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	height: 2px;
	background: var(--red);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .7s var(--ease);
}

.esm-pidx__num {
	grid-area: num;
	align-self: start;
	padding-top: .6em;
	font-family: var(--f-mono);
	font-size: .75rem;
	letter-spacing: .1em;
	color: var(--muted);
}

.esm-pidx__name {
	grid-area: name;
	font-weight: 800;
	font-stretch: 62%;
	font-size: clamp(2.5rem, 8vw, 8.4rem);
	line-height: .86;
	text-transform: uppercase;
	letter-spacing: -.01em;
	overflow-wrap: anywhere;
	transition: font-stretch .7s var(--ease), color .4s var(--ease), font-weight .7s var(--ease);
}

.esm-pidx__meta {
	grid-area: meta;
	display: flex;
	flex-wrap: wrap;
	gap: .35rem 1.25rem;
	font-family: var(--f-mono);
	font-size: .75rem;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--muted);
}

.esm-pidx__place::before { content: "● "; color: var(--red); }

.esm-pidx__thumb { grid-area: thumb; width: clamp(64px, 20vw, 120px); }

.esm-pidx__thumb img {
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	filter: grayscale(1);
}

.esm-pidx__go { display: none; }

@media (min-width: 900px) {
	.esm-pidx__link {
		grid-template-columns: 4.5rem minmax(0, 1fr) minmax(12rem, 22rem) 3rem;
		grid-template-areas: "num name meta go";
	}

	.esm-pidx__num { padding-top: 0; align-self: center; }
	.esm-pidx__meta { flex-direction: column; gap: .35rem; }
	.esm-pidx__go { display: block; grid-area: go; justify-self: end; }
	.esm-pidx__go .esm-arrow { width: 2rem; height: 2rem; }
}

/* Con ratón: la miniatura se convierte en un cartel flotante que sigue al cursor. */
@media (hover: hover) and (pointer: fine) and (min-width: 900px) {
	.esm-pidx__thumb { display: none; }

	.esm-pidx__link:hover .esm-pidx__name,
	.esm-pidx__link:focus-visible .esm-pidx__name { font-stretch: 78%; font-weight: 900; color: var(--red-on-ink); }
	.esm-section--paper .esm-pidx__link:hover .esm-pidx__name { color: var(--red-on-paper); }
	.esm-pidx__link:hover::after,
	.esm-pidx__link:focus-visible::after { transform: scaleX(1); }
	.esm-pidx__link:hover .esm-pidx__go .esm-arrow { transform: rotate(-45deg); color: var(--red); }

	.esm-pidx:hover .esm-pidx__link:not(:hover) { opacity: .45; }
	.esm-pidx__link { transition: opacity .4s var(--ease); }
}

.esm-pidx__preview {
	position: fixed;
	left: 0;
	top: 0;
	z-index: 40;
	width: clamp(220px, 22vw, 380px);
	margin: 0;
	pointer-events: none;
	opacity: 0;
	transform: translate3d(var(--x, 50vw), var(--y, 50vh), 0) translate(-50%, -50%) scale(.85) rotate(var(--r, 0deg));
	transition: opacity .35s var(--ease), transform .35s var(--ease);
	display: none;
}

.esm-pidx__preview img { width: 100%; aspect-ratio: 1; object-fit: cover; box-shadow: 0 30px 80px rgba(0, 0, 0, .55); }
.esm-pidx__preview--poster img { aspect-ratio: 800 / 1131; }

@media (hover: hover) and (pointer: fine) and (min-width: 900px) {
	.esm-pidx__preview { display: block; }
	.esm-pidx__preview.is-active { opacity: 1; transform: translate3d(var(--x, 50vw), var(--y, 50vh), 0) translate(-50%, -50%) scale(1) rotate(var(--r, 0deg)); }
}

/* 10 · Interludio --------------------------------------------------------- */
.esm-interlude {
	--amp: 1;
	--p: 0;
	position: relative;
	height: 280vh;
	background: var(--ink);
	color: var(--paper);
}

.esm-interlude__stage {
	position: sticky;
	top: 0;
	display: grid;
	place-items: center;
	align-content: center;
	gap: clamp(1.5rem, 4vw, 3rem);
	height: 100vh;
	height: 100svh;
	padding: var(--header-h) var(--gutter) 2rem;
	overflow: hidden;
	text-align: center;
}

.esm-interlude__words { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }

.esm-interlude__noise,
.esm-interlude__silence { grid-area: 1 / 1; line-height: .8; }

.esm-interlude__noise {
	font-weight: 900;
	font-stretch: 62%;
	font-size: clamp(6rem, 30vw, 34rem);
	text-transform: uppercase;
	color: transparent;
	-webkit-text-stroke: 1px rgba(236, 232, 225, .22);
	opacity: calc(1 - var(--p) * 1.4);
	transform: scale(calc(1 + var(--p) * .25));
	letter-spacing: calc(var(--p) * .2em);
}

.esm-interlude__silence {
	font-family: var(--f-serif);
	font-style: italic;
	font-weight: 200;
	font-size: clamp(4rem, 17vw, 18rem);
	color: rgba(236, 232, 225, .1);
	opacity: clamp(0, calc((var(--p) - .45) * 2.5), 1);
}

.esm-wave {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: clamp(2px, .45vw, 6px);
	width: min(100%, 1200px);
	height: clamp(140px, 34vh, 340px);
}

/* La línea del silencio: aparece cuando la onda se apaga. */
.esm-wave::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 50%;
	height: 2px;
	margin-top: -1px;
	background: var(--red);
	transform: scaleX(clamp(.02, calc(1 - var(--amp)), 1));
	transition: transform .2s linear;
}

.esm-wave span {
	position: relative;
	flex: 1 1 0;
	max-width: 10px;
	height: calc(var(--h) * 1%);
	transform: scaleY(var(--amp));
	transition: transform .25s linear;
}

.esm-wave span::before {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--paper);
	animation: esm-wave 1.1s ease-in-out infinite alternate;
	animation-delay: calc(var(--i) * -71ms);
}

.esm-wave span:nth-child(7n + 3)::before { background: var(--red); }

.esm-interlude__text {
	position: absolute;
	left: var(--gutter);
	right: var(--gutter);
	bottom: clamp(2.5rem, 11vh, 7rem);
	margin-inline: auto;
	max-width: 24ch;
	font-weight: 500;
	font-size: clamp(1.35rem, 1rem + 1.6vw, 2.6rem);
	line-height: 1.2;
	text-wrap: balance;
	opacity: clamp(0, calc((var(--p) - .55) * 3), 1);
	transform: translateY(calc((1 - clamp(0, calc((var(--p) - .55) * 3), 1)) * 24px));
}

/* Sin JS o con movimiento reducido: estado final, sin desplazamiento largo. */
html:not(.js) .esm-interlude,
.esm-interlude.is-static { height: auto; --amp: .06; --p: 1; }
html:not(.js) .esm-interlude__stage,
.esm-interlude.is-static .esm-interlude__stage { position: relative; height: auto; min-height: 80vh; padding-bottom: 14rem; }

/* Estados intermedios: los navegadores sin clamp() calculado muestran el final. */
@supports not (opacity: clamp(0, 1, 1)) {
	.esm-interlude__text { opacity: 1; transform: none; }
}

/* 11 · Agenda ------------------------------------------------------------- */
.esm-agenda { background: var(--ink-2); --esm-glyph-cut: var(--ink-2); }

.esm-gigs { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); counter-reset: gig; }

.esm-gig { border-bottom: 1px solid var(--line); }

.esm-gig__link {
	display: grid;
	grid-template-columns: 4.25rem minmax(0, 1fr);
	grid-template-areas:
		"date body"
		"date cta";
	gap: .6rem 1.25rem;
	padding: clamp(1.1rem, 2.4vw, 1.9rem) clamp(.5rem, 1.5vw, 1.5rem);
	margin-inline: calc(-1 * clamp(.5rem, 1.5vw, 1.5rem));
	text-decoration: none;
	color: var(--fg);
	transition: background-color .35s var(--ease), color .35s var(--ease);
}

.esm-gig__date {
	grid-area: date;
	display: grid;
	justify-items: start;
	align-content: start;
	font-family: var(--f-mono);
	font-size: .72rem;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--muted);
}

.esm-gig__day {
	font-family: var(--f-sans);
	font-size: 3rem;
	font-weight: 800;
	font-stretch: 62%;
	line-height: .9;
	letter-spacing: 0;
	color: var(--fg);
}

.esm-gig__body { grid-area: body; display: grid; gap: .45rem; align-content: center; }

.esm-gig__title {
	font-weight: 800;
	font-stretch: 62%;
	font-size: clamp(1.7rem, 4.4vw, 4rem);
	line-height: .92;
	text-transform: uppercase;
	overflow-wrap: anywhere;
}

.esm-gig__time {
	font-family: var(--f-mono);
	font-size: .75rem;
	letter-spacing: .12em;
	color: var(--muted);
}

.esm-gig__cta {
	grid-area: cta;
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	font-family: var(--f-mono);
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--accent);
}

.esm-gig__link:hover,
.esm-gig__link:focus-visible { background: var(--paper); color: var(--ink); }
.esm-gig__link:hover .esm-gig__day,
.esm-gig__link:hover .esm-gig__date,
.esm-gig__link:hover .esm-gig__time,
.esm-gig__link:focus-visible .esm-gig__date,
.esm-gig__link:focus-visible .esm-gig__day,
.esm-gig__link:focus-visible .esm-gig__time { color: var(--ink); }
.esm-gig__link:hover .esm-gig__cta,
.esm-gig__link:focus-visible .esm-gig__cta { color: var(--red-on-paper); }
.esm-gig__link:hover .esm-arrow { transform: translate(3px, -3px); }

@media (min-width: 900px) {
	.esm-gig__link {
		grid-template-columns: 9rem minmax(0, 1fr) auto;
		grid-template-areas: "date body cta";
		align-items: center;
	}

	.esm-gig__date { grid-template-columns: auto auto; column-gap: .6rem; align-items: end; }
	.esm-gig__dow { grid-column: 1 / -1; }
	.esm-gig__day { font-size: 4.2rem; grid-row: 2; }
	.esm-gig__month { grid-row: 2; padding-bottom: .55em; }
}

.esm-agenda__empty { max-width: 46ch; font-size: 1.25rem; color: var(--muted); }

.esm-agenda__more { margin-top: clamp(2rem, 5vw, 3.5rem); }

/* 12 · Secciones comunes -------------------------------------------------- */
.esm-home-content { background: var(--ink); }

/* 13 · Contacto y formularios -------------------------------------------- */
.esm-contact__grid {
	display: grid;
	gap: clamp(3rem, 7vw, 6rem);
}

@media (min-width: 960px) {
	.esm-contact__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; }
	.esm-contact__intro { position: sticky; top: calc(var(--header-h) + 2rem); }
}

.esm-contact__title {
	margin-top: 1.5rem;
	font-weight: 900;
	font-stretch: 62%;
	font-size: clamp(4rem, 19vw, 10rem);
	line-height: .8;
	text-transform: uppercase;
	letter-spacing: -.02em;
	overflow-wrap: break-word;
}

@media (min-width: 960px) {
	.esm-contact__title { font-size: clamp(6rem, 10.5vw, 13rem); }
}

.esm-contact__text { margin-top: 1.75rem; max-width: 36ch; font-size: clamp(1.15rem, 1rem + .6vw, 1.5rem); line-height: 1.35; }

.esm-contact__email { margin-top: 1.75rem; }

.esm-contact__email a {
	font-family: var(--f-serif);
	font-style: italic;
	font-weight: 300;
	font-size: clamp(1.3rem, .9rem + 1.5vw, 2.5rem);
	line-height: 1.1;
	text-decoration: none;
	background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
	transition: background-size .5s var(--ease), color .3s;
	overflow-wrap: anywhere;
}

.esm-contact__email a:hover { color: var(--accent); background-size: 0 1px; background-position: 100% 100%; }

.esm-contact__extra { margin-top: 2rem; }

.esm-socials { display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; margin: 1.75rem 0 0; padding: 0; list-style: none; }

.esm-socials a {
	display: inline-flex;
	align-items: center;
	gap: .35rem;
	min-height: 44px;
	font-family: var(--f-mono);
	font-size: .78rem;
	letter-spacing: .12em;
	text-transform: uppercase;
	text-decoration: none;
}

.esm-socials a:hover { color: var(--accent); }
.esm-socials a:hover .esm-arrow { transform: translate(2px, -2px); }
.esm-socials .esm-arrow { width: 1em; height: 1em; }

/* Formulario. */
.esm-form { display: grid; gap: 1.75rem; }

.esm-form__row { display: grid; gap: 1.75rem; }

@media (min-width: 640px) {
	.esm-form__row { grid-template-columns: 1fr 1fr; }
}

.esm-field { display: grid; gap: .5rem; }

.esm-field label,
.esm-form label {
	font-family: var(--f-mono);
	font-size: .72rem;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.esm-req { color: var(--accent); }

.esm-field input[type="text"],
.esm-field input[type="email"],
.esm-field textarea,
.esm-form input[type="text"],
.esm-form input[type="email"],
.esm-form input[type="tel"],
.esm-form textarea,
.esm-form select,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	min-height: 48px;
	padding: .65rem 0;
	border: 0;
	border-bottom: 2px solid var(--fg);
	border-radius: 0;
	background: transparent;
	color: var(--fg);
	font-size: 1.15rem;
	transition: border-color .3s var(--ease);
	-webkit-appearance: none;
	appearance: none;
}

.esm-field textarea,
.esm-form textarea { resize: vertical; min-height: 9rem; line-height: 1.5; }

.esm-field input:focus,
.esm-field textarea:focus,
.esm-form input:focus,
.esm-form textarea:focus { outline: none; border-bottom-color: var(--accent); box-shadow: 0 2px 0 0 var(--accent); }

.esm-field input:focus-visible,
.esm-field textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }

.esm-field--check { grid-template-columns: auto 1fr; align-items: start; gap: .9rem; }

.esm-field--check input {
	width: 22px;
	height: 22px;
	margin: .1rem 0 0;
	accent-color: var(--red);
}

.esm-field--check label { font-family: var(--f-sans); font-size: .95rem; letter-spacing: 0; text-transform: none; line-height: 1.45; }

.esm-field--trap { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.esm-form [aria-invalid="true"] { border-bottom-color: var(--accent) !important; }

.esm-field__error { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .08em; color: var(--accent); }

.esm-form .esm-button { justify-self: start; }

.esm-notice {
	padding: 1rem 1.2rem;
	border-left: 4px solid currentColor;
	font-weight: 500;
	outline: none;
}

.esm-notice--success { background: rgba(11, 11, 11, .06); }
.esm-notice--error { color: var(--accent); background: rgba(181, 0, 15, .06); }

/* Búsqueda. */
.esm-search {
	display: flex;
	align-items: stretch;
	max-width: 760px;
	margin-top: 2rem;
	border-bottom: 2px solid var(--fg);
}

.esm-search__input {
	flex: 1;
	min-width: 0;
	min-height: 56px;
	padding: .5rem 0;
	border: 0;
	background: transparent;
	color: var(--fg);
	font-size: clamp(1.25rem, 1rem + 1.2vw, 2rem);
	font-weight: 500;
}

.esm-search__input:focus { outline: none; }
.esm-search:focus-within { border-bottom-color: var(--accent); }
.esm-search__input:focus-visible { outline: none; }
.esm-search:has(.esm-search__input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 6px; }

.esm-search__submit {
	display: grid;
	place-items: center;
	width: 56px;
	border: 0;
	background: transparent;
	color: var(--fg);
}

.esm-search__submit .esm-arrow { width: 28px; height: 28px; }
.esm-search__submit:hover .esm-arrow { transform: translateX(4px); color: var(--accent); }

/* 14 · Pie ---------------------------------------------------------------- */
.esm-footer {
	position: relative;
	padding-top: clamp(4rem, 9vw, 8rem);
	background: var(--ink);
	color: var(--paper);
	overflow: hidden;
}

.esm-footer__grid {
	display: grid;
	gap: 3rem 2rem;
}

@media (min-width: 760px) {
	.esm-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

.esm-footer__tagline {
	margin-top: 1.5rem;
	max-width: 22ch;
	font-family: var(--f-serif);
	font-style: italic;
	font-weight: 300;
	font-size: clamp(1.4rem, 1rem + 1.4vw, 2.2rem);
	line-height: 1.1;
}

.esm-footer__head {
	margin-bottom: 1.25rem;
	font-family: var(--f-mono);
	font-size: .72rem;
	font-weight: 400;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--ash);
}

.esm-footer__list,
.esm-legal__list { margin: 0; padding: 0; list-style: none; }

.esm-footer__list a {
	display: inline-block;
	padding-block: .3rem;
	font-weight: 700;
	font-stretch: 75%;
	font-size: 1.35rem;
	text-transform: uppercase;
	text-decoration: none;
}

.esm-footer__list a:hover { color: var(--red-on-ink); }

.esm-footer__email { font-size: 1.1rem; text-decoration: none; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.esm-footer__email:hover { color: var(--red-on-ink); border-color: currentColor; }

.esm-footer .esm-socials { margin-top: 1rem; }

/* Palabra gigante, recortada: el silencio que queda al final. */
.esm-footer__word {
	display: flex;
	justify-content: space-between;
	margin: clamp(3rem, 8vw, 7rem) 0 0;
	padding-inline: var(--gutter);
	height: .62em;
	overflow: hidden;
	font-weight: 900;
	font-stretch: 62%;
	font-size: clamp(4rem, 18.2vw, 26rem);
	line-height: .8;
	text-transform: uppercase;
	letter-spacing: -.02em;
	color: transparent;
	-webkit-text-stroke: 1px rgba(236, 232, 225, .28);
	user-select: none;
}

.esm-footer__word span:first-child { color: var(--red); -webkit-text-stroke: 0; }

.esm-footer__funding { background: #fff; padding-block: 1.5rem; }
.esm-footer__funding img { margin-inline: auto; width: 100%; max-width: 1000px; }

.esm-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem 2rem;
	padding-block: 1.75rem calc(1.75rem + env(safe-area-inset-bottom));
	font-family: var(--f-mono);
	font-size: .72rem;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--ash);
}

.esm-legal__list { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }

.esm-footer__bottom a { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; text-decoration: none; }
.esm-footer__bottom a:hover { color: var(--paper); }
.esm-footer__top .esm-arrow { width: 1em; height: 1em; }

/* 15 · Interiores --------------------------------------------------------- */
.esm-page-head { padding-block: clamp(4rem, 10vw, 9rem) clamp(2.5rem, 6vw, 5rem); }

.esm-page-head__title {
	margin-top: 1.5rem;
	font-weight: 900;
	font-stretch: 62%;
	font-size: clamp(3.2rem, 11.5vw, 12rem);
	line-height: .84;
	text-transform: uppercase;
	letter-spacing: -.015em;
	overflow-wrap: anywhere;
	hyphens: auto;
	text-wrap: balance;
}

.esm-page-head__title--small { font-size: clamp(2.6rem, 8vw, 8rem); }
.esm-page-head__title--small .esm-whisper { text-transform: none; font-size: .8em; color: var(--accent); }

.esm-page-head__title--article { font-size: clamp(2.6rem, 7.5vw, 7.5rem); max-width: 16ch; }

.esm-page-head__intro {
	margin-top: 2rem;
	max-width: 40ch;
	font-family: var(--f-serif);
	font-style: italic;
	font-weight: 300;
	font-size: clamp(1.35rem, 1rem + 1.4vw, 2.2rem);
	line-height: 1.2;
	color: var(--fg);
}

.esm-page-head--article .esm-meta { color: var(--muted); }

.esm-page-head--search { padding-top: calc(var(--header-h) + clamp(3rem, 8vw, 6rem)); margin-top: calc(-1 * var(--header-h)); }

.esm-cover { margin: 0 0 clamp(3rem, 7vw, 6rem); }

.esm-cover__img { width: 100%; max-height: 82vh; object-fit: cover; }

.esm-cover__caption {
	margin-top: .8rem;
	font-family: var(--f-mono);
	font-size: .72rem;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--muted);
}

.esm-page .entry-content,
.esm-article .entry-content { padding-bottom: clamp(4rem, 10vw, 8rem); }

/* Listados. */
.esm-list { padding-bottom: clamp(4rem, 10vw, 8rem); border-top: 1px solid var(--line); }

.esm-row { border-bottom: 1px solid var(--line); }

.esm-row__link {
	display: grid;
	grid-template-columns: 2.5rem minmax(0, 1fr) auto;
	grid-template-areas:
		"num meta media"
		"num body media";
	gap: .5rem 1rem;
	padding-block: clamp(1.4rem, 3vw, 2.5rem);
	text-decoration: none;
	color: var(--fg);
}

.esm-row__num { grid-area: num; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em; color: var(--muted); padding-top: .2rem; }

.esm-row__meta { grid-area: meta; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

.esm-row__body { grid-area: body; display: grid; gap: .75rem; }

.esm-row__title {
	font-weight: 800;
	font-stretch: 62%;
	font-size: clamp(1.9rem, 4.6vw, 4.2rem);
	line-height: .9;
	text-transform: uppercase;
	overflow-wrap: anywhere;
	transition: color .3s var(--ease), font-stretch .6s var(--ease);
}

.esm-row__excerpt { max-width: 60ch; color: var(--muted); }

.esm-row__media { grid-area: media; width: clamp(72px, 22vw, 160px); }
.esm-row__media img { width: 100%; aspect-ratio: 1; object-fit: cover; filter: grayscale(1); transition: filter .5s var(--ease); }

.esm-row__link:hover .esm-row__title { color: var(--accent); font-stretch: 72%; }
.esm-row__link:hover .esm-row__media img { filter: none; }

@media (min-width: 900px) {
	.esm-row__link {
		grid-template-columns: 4rem 10rem minmax(0, 1fr) auto;
		grid-template-areas: "num meta body media";
		column-gap: 2rem;
	}
}

.esm-row--featured .esm-row__link {
	grid-template-columns: 1fr;
	grid-template-areas: "media" "meta" "body";
}

.esm-row--featured .esm-row__num { display: none; }
.esm-row--featured .esm-row__media { width: 100%; }
.esm-row--featured .esm-row__media img { aspect-ratio: 16 / 9; filter: none; }
.esm-row--featured .esm-row__title { font-size: clamp(2.6rem, 8vw, 8rem); max-width: 16ch; }

@media (min-width: 900px) {
	.esm-row--featured .esm-row__link {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
		grid-template-areas: "meta media" "body media";
		align-items: end;
		column-gap: 3rem;
	}
}

/* Paginación. */
.esm-pagination { margin-top: 3rem; }
.esm-pagination .nav-links { display: flex; flex-wrap: wrap; gap: .5rem; font-family: var(--f-mono); font-size: .85rem; }
.esm-pagination .page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 48px;
	min-height: 48px;
	padding: 0 .75rem;
	border: 1px solid var(--line);
	text-decoration: none;
}
.esm-pagination .page-numbers.current { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.esm-pagination a.page-numbers:hover { border-color: var(--fg); }

/* Ficha de proyecto. */
.esm-project__head { padding-block: clamp(3.5rem, 9vw, 8rem) clamp(3rem, 7vw, 6rem); }

.esm-project__grid { display: grid; gap: 2.5rem; }

.esm-project__title {
	margin-top: 1.5rem;
	font-weight: 900;
	font-stretch: 62%;
	font-size: clamp(3.4rem, 12vw, 13rem);
	line-height: .82;
	text-transform: uppercase;
	letter-spacing: -.015em;
	overflow-wrap: anywhere;
	text-wrap: balance;
}

.esm-project__tagline { margin-top: 1.25rem; font-size: clamp(1.5rem, 1rem + 2vw, 3rem); color: var(--accent); }

.esm-project__facts { display: grid; gap: 1rem; align-content: start; border-top: 1px solid var(--line); padding-top: 1.25rem; }
.esm-project__facts div { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; }
.esm-project__facts dt { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding-top: .2rem; }
.esm-project__facts dd { font-weight: 500; overflow-wrap: anywhere; }
.esm-project__facts a { text-decoration-color: var(--red); }
.esm-project__facts a:hover { color: var(--accent); }

.esm-project__poster img { width: 100%; aspect-ratio: 1; object-fit: cover; }

@media (min-width: 960px) {
	.esm-project__grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); grid-template-areas: "titles poster" "facts poster"; column-gap: clamp(2rem, 5vw, 6rem); }
	.esm-project__titles { grid-area: titles; }
	.esm-project__facts { grid-area: facts; align-self: end; }
	.esm-project__poster { grid-area: poster; align-self: start; position: sticky; top: calc(var(--header-h) + 1.5rem); }
}

.esm-project .entry-content { padding-bottom: 2rem; }

.esm-project__cta { max-width: 720px; margin: 0 auto clamp(4rem, 9vw, 8rem); }

.esm-next { background: var(--paper); color: var(--ink); --muted: var(--ash-on-paper); --fg: var(--ink); --esm-glyph-cut: var(--paper); transition: background-color .5s var(--ease); }
.esm-next:hover { background: var(--red); --esm-glyph-cut: var(--red); }
.esm-next:hover .esm-label .esm-glyph { color: var(--ink); }

.esm-next__link {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: end;
	gap: 1rem 2rem;
	padding-block: clamp(3rem, 8vw, 6rem);
	text-decoration: none;
}

.esm-next__link .esm-label { grid-column: 1 / -1; color: var(--ink); }

.esm-next__title {
	font-weight: 900;
	font-stretch: 62%;
	font-size: clamp(3rem, 11vw, 11rem);
	line-height: .82;
	text-transform: uppercase;
	overflow-wrap: anywhere;
}

.esm-next__link > .esm-arrow { width: clamp(2.5rem, 6vw, 5rem); height: clamp(2.5rem, 6vw, 5rem); }
.esm-next__link:hover > .esm-arrow { transform: translateX(10px); }

/* Entrada: navegación anterior/siguiente. */
.esm-adjacent { display: grid; gap: 1px; padding-bottom: clamp(4rem, 9vw, 7rem); }
@media (min-width: 760px) { .esm-adjacent { grid-template-columns: 1fr 1fr; } }

.esm-adjacent__link { display: grid; gap: .75rem; padding: 2rem 0; border-top: 1px solid var(--line); text-decoration: none; }
.esm-adjacent__link--next { text-align: right; justify-items: end; }
.esm-adjacent__label { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.esm-adjacent__title { font-weight: 800; font-stretch: 70%; font-size: clamp(1.5rem, 3vw, 2.5rem); line-height: .95; text-transform: uppercase; }
.esm-adjacent__link:hover .esm-adjacent__title { color: var(--accent); }

.esm-tags { display: flex; flex-wrap: wrap; gap: .5rem; max-width: 720px; margin: 0 auto 3rem; padding: 0; list-style: none; }
.esm-tags a { display: inline-block; padding: .4rem .7rem; border: 1px solid var(--line); font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; }
.esm-tags a:hover { border-color: var(--fg); }

/* Texto legal. */
.esm-legal { padding-bottom: clamp(4rem, 10vw, 8rem); margin-top: calc(-1 * var(--header-h)); padding-top: var(--header-h); }
.esm-legal .esm-page-head__title { font-size: clamp(2.8rem, 8vw, 8rem); }
.esm-legal__grid { display: grid; gap: 2.5rem; }

@media (min-width: 960px) {
	.esm-legal__grid { grid-template-columns: 16rem minmax(0, 1fr); column-gap: 4rem; }
	.esm-legal__aside { position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; }
	.esm-legal .esm-prose > * { margin-left: 0; }
}

.esm-legal__updated { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); line-height: 1.7; }
.esm-legal__updated time { color: var(--fg); }

.esm-legal__toc { margin-top: 2rem; }
.esm-legal__toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; border-top: 1px solid var(--line); }
.esm-legal__toc li { counter-increment: toc; border-bottom: 1px solid var(--line); }
.esm-legal__toc a { display: grid; grid-template-columns: 2rem 1fr; padding: .65rem 0; font-size: .9rem; line-height: 1.3; text-decoration: none; }
.esm-legal__toc a::before { content: counter(toc, decimal-leading-zero); font-family: var(--f-mono); font-size: .72rem; color: var(--muted); padding-top: .1rem; }
.esm-legal__toc a:hover { color: var(--accent); }

/* 404 y vacíos. */
.esm-404 { min-height: 100svh; padding-block: calc(var(--header-h) + clamp(3rem, 8vw, 6rem)) clamp(4rem, 9vw, 7rem); margin-top: calc(-1 * var(--header-h)); }

.esm-404__title {
	margin-top: 1.5rem;
	font-weight: 900;
	font-stretch: 62%;
	font-size: clamp(5rem, 24vw, 26rem);
	line-height: .8;
	text-transform: uppercase;
	letter-spacing: -.02em;
}

.esm-404__whisper { margin-top: .5rem; font-size: clamp(2rem, 6vw, 5rem); color: var(--accent); }

.esm-404__text { margin-top: 2.5rem; max-width: 46ch; font-size: 1.15rem; }

.esm-404__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.5rem; }

.esm-wave--flat { height: 40px; width: 100%; margin-top: 2.5rem; }
.esm-wave--flat::after { transform: none; }
.esm-wave--flat span { display: none; }

.esm-empty { padding-block: 3rem 5rem; }
.esm-empty__text { margin-top: 2rem; font-size: 1.25rem; max-width: 46ch; }

/* Comentarios. */
.esm-comments { max-width: calc(720px + 2 * var(--gutter)); padding-bottom: clamp(4rem, 9vw, 7rem); }
.esm-comments__title,
.esm-comments__reply { font-weight: 800; font-stretch: 62%; font-size: clamp(2rem, 5vw, 3.5rem); text-transform: uppercase; line-height: .9; margin-bottom: 2rem; }
.esm-comments__list { margin: 0 0 3rem; padding: 0; list-style: none; }
.esm-comments__list .children { list-style: none; padding-left: clamp(1rem, 4vw, 3rem); border-left: 1px solid var(--line); }
.esm-comments .comment-body { padding-block: 1.5rem; border-bottom: 1px solid var(--line); }
.esm-comments .comment-author { display: flex; align-items: center; gap: .8rem; font-weight: 700; }
.esm-comments .comment-author img { border-radius: 50%; }
.esm-comments .comment-metadata { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: .4rem 0 1rem; }
.esm-comments .comment-metadata a { text-decoration: none; }
.comment-form { display: grid; gap: 1.25rem; }
.comment-form label { display: block; margin-bottom: .4rem; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.comment-form .comment-form-cookies-consent { display: flex; gap: .75rem; align-items: start; }
.comment-form .comment-form-cookies-consent label { text-transform: none; letter-spacing: 0; font-family: var(--f-sans); font-size: .95rem; }
.comment-form .submit { min-height: 48px; }

/* 16 · Prosa (contenido del editor de bloques) --------------------------- */
.esm-prose { font-size: clamp(1.0625rem, 1rem + .25vw, 1.25rem); line-height: 1.65; }

.entry-content.esm-prose > * { max-width: 720px; margin-inline: auto; }
.entry-content.esm-prose > .alignwide { max-width: 1240px; }
.entry-content.esm-prose > .alignfull { max-width: none; width: 100vw; margin-inline: calc(50% - 50vw); }
.entry-content.esm-prose > * + * { margin-top: 1.4em; }

.esm-prose h2 {
	margin-top: 2.2em;
	font-weight: 800;
	font-stretch: 62%;
	font-size: clamp(2.2rem, 4.5vw, 3.6rem);
	line-height: .92;
	text-transform: uppercase;
	letter-spacing: -.01em;
}

.esm-prose h3 { margin-top: 2em; font-weight: 700; font-stretch: 85%; font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.1; }
.esm-prose h4 { margin-top: 1.8em; font-family: var(--f-mono); font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; }
.esm-prose h2 + *,
.esm-prose h3 + *,
.esm-prose h4 + * { margin-top: .8em !important; }

.esm-prose a { text-decoration-color: var(--red); text-decoration-thickness: 2px; transition: color .2s; }
.esm-prose a:hover { color: var(--accent); }

.esm-prose strong { font-weight: 700; }

.esm-prose ul,
.esm-prose ol { padding-left: 1.3em; }
.esm-prose li + li { margin-top: .4em; }
.esm-prose ul li::marker { color: var(--red); }
.esm-prose ol li::marker { font-family: var(--f-mono); font-size: .85em; color: var(--muted); }

.esm-prose blockquote,
.esm-prose .wp-block-quote {
	position: relative;
	padding: 0 0 0 clamp(1.5rem, 4vw, 3rem);
	border: 0;
	font-family: var(--f-serif);
	font-style: italic;
	font-weight: 300;
	font-size: clamp(1.5rem, 1rem + 1.8vw, 2.4rem);
	line-height: 1.2;
}

.esm-prose blockquote::before {
	content: "";
	position: absolute;
	left: 0;
	top: .35em;
	width: .5em;
	height: .5em;
	background: var(--red);
}

.esm-prose blockquote cite { display: block; margin-top: 1rem; font-family: var(--f-mono); font-style: normal; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

.esm-prose .wp-block-pullquote { border-top: 2px solid var(--fg); border-bottom: 2px solid var(--fg); padding: 2rem 0; text-align: left; }
.esm-prose .wp-block-pullquote blockquote { padding: 0; }
.esm-prose .wp-block-pullquote blockquote::before { display: none; }

.esm-prose figcaption,
.esm-prose .wp-element-caption { margin-top: .7rem; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); text-align: left; }

.esm-prose hr,
.esm-prose .wp-block-separator { border: 0; border-top: 1px solid var(--line); margin-block: 3rem; opacity: 1; }

.esm-prose table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.esm-prose th,
.esm-prose td { padding: .75rem .5rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.esm-prose th { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }

.esm-prose code,
.esm-prose pre { font-family: var(--f-mono); font-size: .88em; }
.esm-prose pre { padding: 1.25rem; overflow-x: auto; background: rgba(127, 127, 127, .12); }

.esm-prose .wp-block-button__link { border-radius: 0; background: var(--fg); color: var(--bg); font-family: var(--f-mono); font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 1rem 1.4rem; text-decoration: none; }
.esm-prose .wp-block-button__link:hover { background: var(--red); color: var(--paper); }
.esm-prose .is-style-outline .wp-block-button__link { background: transparent; color: var(--fg); border: 1px solid currentColor; }

.esm-prose .wp-block-gallery.has-nested-images { gap: clamp(.5rem, 1.2vw, 1rem); }
.esm-prose .wp-block-image img { height: auto; }

.esm-prose .wp-block-embed iframe { width: 100%; }

.esm-prose .alignleft { float: left; margin: .3em 1.5em 1em 0; max-width: 50%; }
.esm-prose .alignright { float: right; margin: .3em 0 1em 1.5em; max-width: 50%; }
.esm-prose .aligncenter { margin-inline: auto; text-align: center; }

.esm-prose .has-ink-color { color: var(--ink); }
.esm-prose .has-paper-color { color: var(--paper); }
.esm-prose .has-red-color { color: var(--red); }

.esm-page-links { display: flex; gap: .5rem; margin-top: 2rem; font-family: var(--f-mono); }

/* 17 · Movimiento --------------------------------------------------------- */
html.js [data-reveal] {
	opacity: 0;
	transform: translateY(48px);
	transition: opacity 1s var(--ease), transform 1.2s var(--ease);
}

html.js [data-reveal].is-in { opacity: 1; transform: none; }

/* Titular del hero: entra palabra a palabra. */
html.js .esm-hero__title .esm-word {
	display: inline-block;
	transform: translateY(105%);
	animation: esm-rise 1.1s var(--ease) forwards;
	animation-delay: calc(.12s + var(--w) * .08s);
}

html.js .esm-hero__title .esm-mask { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .04em; margin-bottom: -.04em; }

html.js .esm-hero__title .esm-whisper { opacity: 0; animation: esm-fade 1.4s var(--ease) .75s forwards; }

@keyframes esm-rise { from { transform: translateY(105%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes esm-fade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes esm-eq { 0% { transform: scaleY(.15); } 100% { transform: scaleY(1); } }
@keyframes esm-wave { 0% { transform: scaleY(1); } 100% { transform: scaleY(.45); } }
@keyframes esm-live { 0% { box-shadow: 0 0 0 0 rgba(224, 0, 18, .6); } 70% { box-shadow: 0 0 0 10px rgba(224, 0, 18, 0); } 100% { box-shadow: 0 0 0 0 rgba(224, 0, 18, 0); } }
@keyframes esm-blink { 50% { opacity: .2; } }
@keyframes esm-nudge { 0%, 60%, 100% { transform: none; } 30% { transform: translateY(4px); } }
@keyframes esm-breathe { from { transform: scale(1.04); } to { transform: scale(1.1); } }

@media (prefers-reduced-motion: no-preference) {
	.esm-hero.has-image .esm-hero__img { animation: esm-breathe 22s ease-in-out infinite alternate; }
}

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

	html.js [data-reveal] { opacity: 1; transform: none; }
	html.js .esm-hero__title .esm-word,
	html.js .esm-hero__title .esm-whisper { animation: none; transform: none; opacity: 1; }
	.esm-meter span { transform: scaleY(.6); }
	.esm-wave span::before { animation: none; }
}

/* Clases estándar de WordPress. */
.sticky .esm-row__title::after { content: " ●"; color: var(--red); font-size: .5em; vertical-align: middle; }
.bypostauthor > .comment-body .comment-author b::after { content: " ✕"; color: var(--red); }
.wp-caption { max-width: 100%; }
.wp-caption-text,
.gallery-caption { margin-top: .7rem; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* 18 · Impresión ---------------------------------------------------------- */
@media print {
	.esm-header,
	.esm-footer__word,
	.esm-meter,
	.esm-interlude,
	.esm-form,
	.esm-pidx__preview { display: none !important; }

	body,
	.esm-section--paper { background: #fff; color: #000; }

	.esm-main { padding-top: 0 !important; }
	a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .8em; }
}
