/* ==========================================================================
   El Perro Mestizo — «Cuaderno de campo / Vidas con perro»
   Tokens · base · composición · componentes · secciones · plantillas
   ========================================================================== */

/* ---------- Tipografía (Archivo variable, autoalojada) ---------- */
@font-face {
	font-family: "Archivo";
	src: url("../fonts/archivo-latin-wdth-normal.woff2") format("woff2");
	font-weight: 100 900;
	font-stretch: 62% 125%;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Archivo";
	src: url("../fonts/archivo-latin-ext-wdth-normal.woff2") format("woff2");
	font-weight: 100 900;
	font-stretch: 62% 125%;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Instrument Serif cursiva (SIL Open Font License 1.1): solo para una palabra destacada en algunos titulares. */
@font-face {
	font-family: "Instrument Serif";
	src: url("../fonts/instrument-serif-italic-latin.woff2") format("woff2");
	font-weight: 400;
	font-style: italic;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Instrument Serif";
	src: url("../fonts/instrument-serif-italic-latin-ext.woff2") format("woff2");
	font-weight: 400;
	font-style: italic;
	font-display: swap;
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */
:root {
	/* Paleta «Noche cálida» (2026-10-28): base tinta cinematográfica, crema para respirar, terracota como luz. */
	--color-crema: #F3F0E8;
	--color-papel: #FBF9F4;
	--color-hueso: #E8E3D8;
	--color-linea: #D8D2C6;
	--color-salvia: #999E8B;
	--color-salvia-claro: #D2D5C8;
	--color-salvia-suave: #E6E8DF;
	--color-salvia-osc: #5E6353;
	--color-terracota: #DC7150;
	--color-terracota-osc: #A84B2B;
	--color-terracota-claro: #F2C9B8;
	--color-terracota-luz: #F0A387;
	--color-gris: #869399;
	--color-gris-osc: #5C6A70;
	--color-tinta: #1D1C19;
	--color-tinta-2: #2A2925;
	--color-tinta-3: #38362F;
	--color-blanco: #FFFFFF;
	--c-terracota: var(--color-terracota);

	/* Tipografía: Archivo (base) + Instrument Serif cursiva (una palabra por titular, como mucho) */
	--font: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji";
	--font-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
	--type-body: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
	--type-small: 0.9rem;
	--type-label: 0.72rem;
	--type-lead: clamp(1.1rem, 1.02rem + 0.4vw, 1.35rem);
	--type-h4: clamp(1.15rem, 1.06rem + 0.4vw, 1.4rem);
	--type-h3: clamp(1.5rem, 1.2rem + 1.1vw, 2.25rem);
	--type-h2: clamp(2.4rem, 1.5rem + 3.4vw, 5.5rem);
	--type-h1: clamp(3rem, 1.4rem + 6vw, 7.5rem);
	--type-hero: clamp(3.4rem, 1rem + 9.4vw, 10.5rem);
	--type-display: clamp(3rem, 1.2rem + 7.6vw, 9.5rem);
	--type-num: clamp(2.2rem, 1.7rem + 2.2vw, 4rem);

	/* Espacios */
	--space-1: 0.25rem;
	--space-2: 0.5rem;
	--space-3: 0.75rem;
	--space-4: 1rem;
	--space-5: 1.5rem;
	--space-6: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem);
	--space-7: clamp(2.25rem, 1.6rem + 2.6vw, 4rem);
	--space-8: clamp(3rem, 2rem + 4vw, 6rem);
	--space-section: clamp(4.5rem, 2.4rem + 6.5vw, 10.5rem);
	--gutter: clamp(1.25rem, 0.6rem + 2.6vw, 4rem);

	/* Contenedores */
	--container-max: 90rem;
	--container-wide: 75rem;
	--container-narrow: 46rem;
	--container-article: 44rem;

	/* Radios: fotos suaves, paneles suaves, botones en píldora */
	--radius-sm: 0.3rem;
	--radius-md: 0.6rem;
	--radius-lg: 0.9rem;
	--radius-xl: 1rem;
	--radius-photo: 0.9rem;
	--radius-btn: 999px;
	--radius-pill: 999px;

	/* Capas */
	--z-base: 1;
	--z-header: 50;
	--z-panel: 60;
	--z-sticky: 40;

	/* Movimiento */
	--motion-ease: cubic-bezier(0.2, 0.7, 0.15, 1);
	--motion-ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
	--motion-fast: 200ms;
	--motion-med: 420ms;
	--motion-slow: 700ms;

	--header-h: 4.75rem;
	--shadow-print: none;
	--shadow-photo: 0 30px 60px -30px rgb(0 0 0 / 0.6);
	--shadow-card: none;
	--grain: 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='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Tonos de sección: cada bloque declara su fondo y hereda colores accesibles */
[data-tone="tinta"] {
	--bg: var(--color-tinta);
	--fg: var(--color-crema);
	--muted: #BDB8AC;
	--line: rgb(243 240 232 / 0.16);
	--line-strong: rgb(243 240 232 / 0.45);
	--accent: var(--color-terracota-luz);
	--deco: var(--color-terracota);
	--surface: var(--color-tinta-2);
	--glow: rgb(220 113 80 / 0.22);
	--btn-bg: var(--color-terracota);
	--btn-fg: var(--color-tinta);
	--focus: var(--color-crema);
}
:root,
[data-tone="crema"] {
	--bg: var(--color-crema);
	--fg: var(--color-tinta);
	--muted: #57554D;
	--line: var(--color-linea);
	--line-strong: rgb(29 28 25 / 0.5);
	--accent: var(--color-terracota-osc);
	--deco: var(--color-terracota);
	--surface: var(--color-papel);
	--glow: transparent;
	--btn-bg: var(--color-terracota-osc);
	--btn-fg: var(--color-blanco);
	--focus: var(--color-terracota-osc);
}
[data-tone="papel"] {
	--bg: var(--color-papel);
	--fg: var(--color-tinta);
	--muted: #57554D;
	--line: var(--color-linea);
	--line-strong: rgb(29 28 25 / 0.5);
	--accent: var(--color-terracota-osc);
	--deco: var(--color-terracota);
	--surface: var(--color-crema);
	--glow: transparent;
	--btn-bg: var(--color-terracota-osc);
	--btn-fg: var(--color-blanco);
	--focus: var(--color-terracota-osc);
}
[data-tone="salvia"] {
	--bg: var(--color-salvia-claro);
	--fg: var(--color-tinta);
	--muted: #3F3E38;
	--line: rgb(29 28 25 / 0.22);
	--line-strong: rgb(29 28 25 / 0.55);
	--accent: #8A3A1C;
	--deco: var(--color-terracota);
	--surface: var(--color-papel);
	--glow: transparent;
	--btn-bg: var(--color-tinta);
	--btn-fg: var(--color-crema);
	--focus: var(--color-tinta);
}
/* Cierre: terracota de marca con texto tinta (9:1 en el titular) */
[data-tone="terracota"] {
	--bg: var(--color-terracota);
	--fg: var(--color-tinta);
	--muted: #2E211C;
	--line: rgb(29 28 25 / 0.28);
	--line-strong: rgb(29 28 25 / 0.6);
	--accent: var(--color-tinta);
	--deco: var(--color-tinta);
	--surface: #E48A6E;
	--glow: transparent;
	--btn-bg: var(--color-tinta);
	--btn-fg: var(--color-crema);
	--focus: var(--color-tinta);
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}
html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + 1rem);
}
body {
	margin: 0;
	font-family: var(--font);
	font-size: var(--type-body);
	font-stretch: 100%;
	line-height: 1.6;
	color: var(--fg);
	background: var(--color-crema);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	overflow-x: clip;
}
img,
svg,
video {
	display: block;
	max-width: 100%;
	height: auto;
}
a {
	color: inherit;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}
p,
ul,
ol,
dl,
figure,
blockquote,
h1,
h2,
h3,
h4 {
	margin: 0;
}
ul[role="list"],
ol[role="list"] {
	list-style: none;
	padding: 0;
}
button,
input,
select,
textarea {
	font: inherit;
	color: inherit;
}
button {
	cursor: pointer;
}
:focus-visible {
	outline: 2px solid var(--focus);
	outline-offset: 4px;
	border-radius: 2px;
}
::selection {
	background: var(--color-terracota-claro);
	color: var(--color-tinta);
}
[hidden] {
	display: none !important;
}
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
.epm-skip {
	position: absolute;
	left: 1rem;
	top: -4rem;
	z-index: 100;
	padding: 0.75rem 1.1rem;
	background: var(--color-tinta);
	color: var(--color-crema);
	border-radius: var(--radius-sm);
	font-weight: 650;
	text-decoration: none;
}
.epm-skip:focus {
	top: 1rem;
}
.epm-main {
	display: block;
}
.epm-main:focus {
	outline: none;
}

/* ---------- Composición ---------- */
.epm-wrap {
	width: min(100% - 2 * var(--gutter), var(--container-max));
	margin-inline: auto;
}
.epm-wrap--narrow {
	width: min(100% - 2 * var(--gutter), var(--container-narrow));
}
.epm-wrap--article {
	width: min(100% - 2 * var(--gutter), var(--container-article));
}
.epm-wrap--wide {
	width: min(100% - 2 * var(--gutter), var(--container-wide));
}
.epm-s {
	position: relative;
	padding-block: var(--space-section);
	background-color: var(--bg);
	color: var(--fg);
	isolation: isolate;
}
.epm-s::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image: var(--grain);
	opacity: 0.03;
	pointer-events: none;
}
.epm-s + .epm-s[data-tone="crema"] {
	border-top: 1px solid transparent;
}
.epm-s__head {
	display: grid;
	gap: var(--space-4);
	max-width: 44rem;
	margin-bottom: var(--space-7);
}

/* Las columnas de las rejillas pueden encogerse (sin esto, un hijo ancho desborda en móvil). */
.epm-wrap > *,
[class*="__grid"] > *,
.epm-cards > *,
.epm-steps__list > *,
.epm-programmes__grid > * {
	min-width: 0;
}

/* ---------- Tipos ---------- */
.epm-h1,
.epm-h2,
.epm-h3,
.epm-h4,
.epm-hero__title,
.epm-cta__title {
	font-weight: 640;
	font-stretch: 100%;
	letter-spacing: -0.045em;
	line-height: 0.98;
	text-wrap: balance;
}
.epm-h1 {
	font-size: var(--type-h1);
	line-height: 0.96;
}
.epm-h2 {
	font-size: var(--type-h2);
}
.epm-h3 {
	font-size: var(--type-h3);
	letter-spacing: -0.025em;
	line-height: 1.08;
}
.epm-h4 {
	font-size: var(--type-h4);
	font-weight: 640;
	letter-spacing: -0.012em;
	line-height: 1.2;
}
/* Palabra destacada: serif cursiva, un poco mayor para igualar la altura de x; en terracota profunda sobre claro */
.epm-serif {
	font-family: var(--font-serif);
	font-style: italic;
	font-weight: 400;
	font-stretch: 100%;
	font-size: 1.12em;
	letter-spacing: -0.01em;
	line-height: 0.8;
	color: var(--accent);
}
.epm-heading__kicker {
	display: block;
	margin-bottom: 0.9em;
	font-size: clamp(0.92rem, 0.86rem + 0.3vw, 1.1rem);
	font-weight: 560;
	font-stretch: 100%;
	letter-spacing: 0;
	line-height: 1.3;
	color: var(--muted);
}
.epm-heading__main {
	display: block;
}
.epm-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.75em;
	font-size: var(--type-label);
	font-weight: 560;
	font-stretch: 104%;
	letter-spacing: 0.12em;
	line-height: 1.3;
	text-transform: uppercase;
	color: var(--accent);
}
.epm-eyebrow::before {
	content: "";
	flex: none;
	width: 1.5em;
	height: 1px;
	background: currentColor;
}
.epm-lead {
	font-size: var(--type-lead);
	line-height: 1.5;
	color: var(--muted);
	max-width: 42ch;
	text-wrap: pretty;
}
.epm-caption {
	margin-top: var(--space-3);
	font-size: var(--type-small);
	color: var(--muted);
}

/* ---------- Iconos y trazos ---------- */
.epm-icon {
	width: 1.15em;
	height: 1.15em;
	flex: none;
}
.epm-trail {
	position: absolute;
	pointer-events: none;
	fill: none;
	stroke: var(--deco);
	stroke-width: 1.6;
	stroke-linecap: round;
	vector-effect: non-scaling-stroke;
	stroke-dasharray: 1;
	stroke-dashoffset: 0;
}
.epm-js .epm-trail path {
	stroke-dasharray: 1;
	stroke-dashoffset: 1;
	transition: stroke-dashoffset 2.2s var(--motion-ease-in-out) 0.2s;
}
.epm-js .is-in .epm-trail path,
.epm-js .epm-trail.is-in path {
	stroke-dashoffset: 0;
}

/* ---------- Botones y enlaces ---------- */
.epm-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.6em;
	min-height: 3.25rem;
	padding: 0.9em 1.6em;
	border: 1px solid transparent;
	border-radius: var(--radius-btn);
	font-size: 0.95rem;
	font-weight: 620;
	font-stretch: 100%;
	letter-spacing: 0;
	line-height: 1.15;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color var(--motion-fast) ease, color var(--motion-fast) ease, border-color var(--motion-fast) ease, transform var(--motion-fast) ease;
	-webkit-tap-highlight-color: transparent;
}
.epm-btn:hover {
	transform: translateY(-1px);
}
.epm-btn .epm-icon {
	transition: transform var(--motion-fast) ease;
}
.epm-btn:hover .epm-icon,
.epm-btn:focus-visible .epm-icon {
	transform: translateX(3px);
}
.epm-btn--solid {
	background: var(--btn-bg);
	color: var(--btn-fg);
}
.epm-btn--solid:hover,
.epm-btn--solid:focus-visible {
	background: var(--fg);
	color: var(--bg);
}
[data-tone="terracota"] .epm-btn--solid:hover,
[data-tone="terracota"] .epm-btn--solid:focus-visible,
[data-tone="salvia"] .epm-btn--solid:hover,
[data-tone="salvia"] .epm-btn--solid:focus-visible {
	background: var(--color-tinta-2);
	color: var(--color-crema);
}
/* Fantasma = «cristal»: fondo translúcido con borde fino */
.epm-btn--ghost {
	border-color: var(--line-strong);
	color: var(--fg);
	background: color-mix(in srgb, var(--fg) 8%, transparent);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}
.epm-btn--ghost:hover,
.epm-btn--ghost:focus-visible {
	border-color: var(--fg);
	background: var(--fg);
	color: var(--bg);
}
.epm-btn--light {
	background: var(--color-crema);
	color: var(--color-tinta);
}
.epm-btn--light:hover,
.epm-btn--light:focus-visible {
	background: var(--color-blanco);
}
.epm-btn--sm {
	min-height: 2.75rem;
	padding: 0.6em 1.15em;
	font-size: 0.9rem;
}
.epm-link {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	min-height: 2.75rem;
	padding: 0;
	border: 0;
	background: none;
	font-size: 0.95rem;
	font-weight: 620;
	color: var(--fg);
	text-decoration: underline;
	text-decoration-color: var(--line-strong);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.35em;
	transition: text-decoration-color var(--motion-fast) ease;
}
.epm-link:hover,
.epm-link:focus-visible {
	text-decoration-color: currentColor;
}
.epm-link .epm-icon {
	transition: transform var(--motion-fast) ease;
}
.epm-link:hover .epm-icon,
.epm-link:focus-visible .epm-icon {
	transform: translateX(3px);
}
.epm-link--light {
	color: var(--fg);
}
.epm-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-3) var(--space-4);
}
.epm-actions--stack {
	flex-direction: column;
	align-items: stretch;
}
.epm-round {
	display: inline-grid;
	place-items: center;
	width: 3rem;
	height: 3rem;
	border: 1px solid var(--line-strong);
	border-radius: 50%;
	background: transparent;
	color: var(--fg);
	transition: background-color var(--motion-fast) ease, color var(--motion-fast) ease, border-color var(--motion-fast) ease;
}
.epm-round:hover,
.epm-round:focus-visible {
	background: var(--fg);
	border-color: var(--fg);
	color: var(--bg);
}
.epm-round:disabled {
	opacity: 0.35;
	cursor: not-allowed;
	background: transparent;
	color: var(--fg);
	border-color: var(--line-strong);
}
.epm-tag {
	display: inline-flex;
	align-items: center;
	padding: 0.3em 0.75em;
	border-radius: var(--radius-pill);
	background: var(--color-salvia-claro);
	color: var(--color-tinta);
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.04em;
}

/* ---------- Marcos de foto «impresa» ---------- */
/* La fotografía manda: esquinas casi rectas, sin sombra ni inclinación. La imagen va un 6 % más grande que su
   marco solo cuando GSAP la mueve en parallax (dos fotos, en escritorio). */
.epm-frame {
	--rot: 0deg;
	position: relative;
	padding: 0;
	border-radius: var(--radius-photo);
	background: var(--color-hueso);
	overflow: hidden;
	isolation: isolate;
}
.epm-frame img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: var(--focal, 50% 50%);
	transform-origin: center;
}
.epm-frame--tilt,
.epm-frame--tilt-r,
.epm-frame--hero {
	--rot: 0deg;
}

/* ---------- Datos ---------- */
/* Ficha editorial: cada dato en una fila con línea, cifra a la izquierda y explicación a la derecha */
.epm-facts {
	display: grid;
	border-top: 1px solid var(--line-strong);
}
.epm-facts__item {
	display: grid;
	grid-template-columns: minmax(5.5rem, auto) 1fr;
	align-items: baseline;
	gap: var(--space-4);
	padding-block: 0.9rem;
	border-bottom: 1px solid var(--line);
}
.epm-facts dt {
	font-size: clamp(1.5rem, 1.3rem + 0.8vw, 2rem);
	font-weight: 560;
	letter-spacing: -0.03em;
	line-height: 1;
	color: var(--fg);
	font-variant-numeric: tabular-nums;
}
.epm-facts dd {
	margin: 0;
	font-size: var(--type-small);
	line-height: 1.35;
	color: var(--muted);
}
.epm-hero__facts {
	margin-top: var(--space-4);
}

/* ---------- Listas con marca ---------- */
.epm-checks {
	display: grid;
	gap: 0.7rem;
}
.epm-checks li {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 0.7rem;
	align-items: start;
	line-height: 1.45;
}
.epm-checks .epm-icon {
	margin-top: 0.12em;
	color: var(--accent);
	stroke-width: 2;
}

/* ---------- Cita ---------- */
.epm-quote {
	position: relative;
	margin-top: var(--space-7);
	padding-left: clamp(1.25rem, 0.8rem + 2vw, 2.5rem);
	border-left: 3px solid var(--deco);
	max-width: 42rem;
}
.epm-quote p {
	font-size: clamp(1.3rem, 1.05rem + 1vw, 2rem);
	font-weight: 520;
	font-stretch: 100%;
	letter-spacing: -0.015em;
	line-height: 1.3;
	text-wrap: balance;
}
.epm-quote--wide {
	max-width: 56rem;
	margin-inline: auto;
}

/* ==========================================================================
   Cabecera
   ========================================================================== */
.epm-header {
	position: sticky;
	top: 0;
	z-index: var(--z-header);
	border-bottom: 1px solid transparent;
	transition: border-color var(--motion-med) ease, background-color var(--motion-med) ease;
	--fg: var(--color-tinta);
	color: var(--fg);
}
/* El desenfoque va en una capa propia: puesto en la cabecera, encerraría el panel fijo del menú móvil. */
.epm-header::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: color-mix(in srgb, var(--color-crema) 90%, transparent);
	-webkit-backdrop-filter: saturate(1.4) blur(12px);
	backdrop-filter: saturate(1.4) blur(12px);
}
.epm-menu-open .epm-header::before {
	background: var(--color-crema);
}
.admin-bar .epm-header {
	top: var(--wp-admin--admin-bar--height, 0);
}
.epm-header.is-scrolled {
	border-bottom-color: rgb(38 37 33 / 0.12);
}
.epm-header__inner {
	display: flex;
	align-items: center;
	gap: var(--space-5);
	min-height: var(--header-h);
}
.epm-brand {
	display: inline-flex;
	align-items: center;
	gap: 0.65rem;
	margin-right: auto;
	color: var(--color-tinta);
	text-decoration: none;
}
.epm-brand__mark {
	width: 2.5rem;
	height: 2.5rem;
}
.epm-brand__name {
	display: grid;
	font-size: 0.92rem;
	font-weight: 820;
	font-stretch: 122%;
	letter-spacing: 0.045em;
	line-height: 0.98;
	text-transform: uppercase;
}
.epm-brand__logo {
	max-height: 3rem;
	width: auto;
}
.epm-header__actions {
	display: flex;
	align-items: center;
	gap: var(--space-3);
}
.epm-menu-toggle {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	min-height: 2.75rem;
	padding: 0.5rem 0.9rem;
	border: 1.5px solid rgb(38 37 33 / 0.3);
	border-radius: var(--radius-pill);
	background: transparent;
	font-size: 0.92rem;
	font-weight: 650;
}
.epm-menu-toggle__lines {
	display: grid;
	gap: 5px;
	width: 1.1rem;
}
.epm-menu-toggle__lines span {
	display: block;
	height: 1.6px;
	background: currentColor;
	transition: transform var(--motion-med) var(--motion-ease);
}
.epm-menu-open .epm-menu-toggle__lines span:first-child {
	transform: translateY(3.3px) rotate(45deg);
}
.epm-menu-open .epm-menu-toggle__lines span:last-child {
	transform: translateY(-3.3px) rotate(-45deg);
}

/* Menú: móvil primero (panel) */
.epm-nav-panel {
	position: fixed;
	inset: var(--header-h) 0 0 0;
	z-index: var(--z-panel);
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: var(--space-6);
	padding: var(--space-6) var(--gutter) calc(var(--space-6) + env(safe-area-inset-bottom));
	background: var(--color-crema);
	overflow-y: auto;
	visibility: hidden;
	opacity: 0;
	transform: translateY(-0.75rem);
	transition: opacity var(--motion-med) var(--motion-ease), transform var(--motion-med) var(--motion-ease), visibility 0s linear var(--motion-med);
}
.admin-bar .epm-nav-panel {
	inset-block-start: calc(var(--header-h) + var(--wp-admin--admin-bar--height, 0px));
}
.epm-menu-open .epm-nav-panel {
	visibility: visible;
	opacity: 1;
	transform: none;
	transition: opacity var(--motion-med) var(--motion-ease), transform var(--motion-med) var(--motion-ease);
}
.epm-menu-open {
	overflow: hidden;
}
.epm-menu {
	display: grid;
	gap: 0.15rem;
}
.epm-menu__link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	width: 100%;
	min-height: 3.25rem;
	padding: 0.5rem 0;
	border: 0;
	border-bottom: 1px solid rgb(38 37 33 / 0.12);
	background: none;
	font-size: clamp(1.6rem, 1.3rem + 1.5vw, 2rem);
	font-weight: 720;
	font-stretch: 108%;
	letter-spacing: -0.025em;
	text-align: left;
	text-decoration: none;
	color: var(--color-tinta);
}
.epm-menu__link .epm-icon {
	transition: transform var(--motion-med) var(--motion-ease);
}
.epm-menu__toggle[aria-expanded="true"] .epm-icon {
	transform: rotate(180deg);
}
.epm-menu__item.is-current > .epm-menu__link,
.epm-menu__link[aria-current="page"] {
	color: var(--color-terracota-osc);
}
.epm-submenu {
	display: grid;
	gap: 0.1rem;
	padding: 0.5rem 0 0.75rem 1rem;
}
.epm-submenu[hidden] {
	display: none;
}
.epm-submenu__link {
	display: flex;
	align-items: center;
	min-height: 2.9rem;
	font-size: 1.25rem;
	font-weight: 600;
	text-decoration: none;
	color: var(--color-tinta);
}
.epm-submenu__link.is-current {
	color: var(--color-terracota-osc);
}
.epm-nav-panel__foot {
	display: grid;
	gap: var(--space-3);
}
.epm-nav-panel__area {
	font-size: var(--type-small);
	color: #5A584F;
}
.epm-header__cta {
	display: none;
}

@media (min-width: 40em) {
	.epm-header__cta {
		display: inline-flex;
	}
}

@media (min-width: 64em) {
	:root {
		--header-h: 5.25rem;
	}
	.epm-menu-toggle {
		display: none;
	}
	.epm-nav-panel {
		position: static;
		inset: auto;
		flex-direction: row;
		align-items: center;
		padding: 0;
		background: none;
		overflow: visible;
		visibility: visible;
		opacity: 1;
		transform: none;
		transition: none;
	}
	.epm-nav-panel__foot {
		display: none;
	}
	.epm-menu {
		display: flex;
		align-items: center;
		gap: clamp(0.75rem, 0.2rem + 1.4vw, 2rem);
	}
	.epm-menu__item {
		position: relative;
	}
	.epm-menu__link {
		min-height: 2.75rem;
		padding: 0;
		border: 0;
		font-size: 0.98rem;
		font-weight: 600;
		font-stretch: 100%;
		letter-spacing: 0;
		gap: 0.3rem;
		position: relative;
	}
	.epm-menu__link::after {
		content: "";
		position: absolute;
		left: 0;
		right: 0;
		bottom: 0.45rem;
		height: 1.5px;
		background: var(--color-terracota);
		transform: scaleX(0);
		transform-origin: left;
		transition: transform var(--motion-med) var(--motion-ease);
	}
	.epm-menu__link:hover::after,
	.epm-menu__link[aria-current="page"]::after,
	.epm-menu__item.is-current > .epm-menu__link::after {
		transform: scaleX(1);
	}
	.epm-menu__toggle::after {
		right: 1.3rem;
	}
	.epm-submenu {
		position: absolute;
		top: calc(100% + 0.5rem);
		left: -1.25rem;
		min-width: 16rem;
		padding: 0.6rem;
		border-radius: var(--radius-md);
		background: var(--color-papel);
		box-shadow: 0 24px 48px -24px rgb(38 37 33 / 0.4), 0 0 0 1px rgb(38 37 33 / 0.08);
	}
	.epm-submenu__link {
		min-height: 2.75rem;
		padding: 0.4rem 0.75rem;
		border-radius: var(--radius-sm);
		font-size: 0.98rem;
	}
	.epm-submenu__link:hover {
		background: var(--color-crema);
	}
}

/* Barra fija de móvil */
.epm-sticky {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: var(--z-sticky);
	padding: 0.65rem var(--gutter) calc(0.65rem + env(safe-area-inset-bottom));
	background: color-mix(in srgb, var(--color-crema) 94%, transparent);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	border-top: 1px solid rgb(38 37 33 / 0.12);
	transform: translateY(110%);
	transition: transform var(--motion-med) var(--motion-ease);
}
.epm-sticky.is-visible {
	transform: none;
}
.epm-sticky__btn {
	width: 100%;
}
/* Con la barra fija visible, el botón de preferencias de cookies sube para no taparla. */
.epm-sticky-on .wsch-root .wsch-floating {
	bottom: calc(5rem + env(safe-area-inset-bottom));
	transition: bottom var(--motion-med) var(--motion-ease);
}
@media (min-width: 64em) {
	.epm-sticky {
		display: none;
	}
}

/* ==========================================================================
   Secciones
   ========================================================================== */

/* ---------- Portada ---------- */
/* «Noche cálida»: la foto llena la pantalla, un velo oscuro de abajo arriba y el titular enorme en crema. */
.epm-hero {
	position: relative;
	display: grid;
	align-items: end;
	min-height: 100svh;
	padding-block: calc(var(--header-h) + var(--space-7)) clamp(2rem, 1rem + 3vw, 3.5rem);
	overflow: clip;
	isolation: isolate;
}
.epm-hero--service,
.epm-hero--about,
.epm-hero--simple {
	min-height: min(88svh, 60rem);
}
.epm-hero__bg {
	position: absolute;
	inset: 0;
	z-index: -2;
	margin: 0;
}
.epm-hero__bg img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: var(--focal, 60% 40%);
	animation: epm-ken 16s ease-out both;
}
/* Vídeo de fondo: aparece al empezar a reproducirse; la foto (su primer fotograma) queda debajo, quieta y con el
   mismo encuadre, para que el cambio no se note. */
.epm-hero__video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 85% 50%;
	opacity: 0;
	transition: opacity 0.6s ease;
}
.epm-hero__video.is-playing {
	opacity: 1;
}
.epm-hero__bg:has(.epm-hero__video) img {
	animation: none;
	object-position: 85% 50%;
}
@media (max-width: 63.99em) and (orientation: portrait) {
	.epm-hero__video {
		object-position: 50% 50%;
	}
	.epm-hero__bg:has(.epm-hero__video) img {
		object-position: 58% 50%;
	}
}
.epm-hero__veil {
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(180deg, rgb(29 28 25 / 0.42) 0%, rgb(29 28 25 / 0.06) 32%, rgb(29 28 25 / 0.58) 68%, rgb(29 28 25 / 0.94) 100%),
		linear-gradient(90deg, rgb(29 28 25 / 0.55), transparent 55%);
}
.epm-hero:not(.has-image) {
	background: var(--color-tinta);
}
.epm-hero:not(.has-image)::before {
	content: "";
	position: absolute;
	z-index: -1;
	right: -15%;
	top: -30%;
	width: 60%;
	aspect-ratio: 1;
	background: radial-gradient(closest-side, var(--glow), transparent 70%);
	pointer-events: none;
}
.epm-hero__grid {
	position: relative;
	z-index: 1;
	display: grid;
	gap: var(--space-6);
}
.epm-hero__text {
	display: grid;
	gap: var(--space-6);
}
.epm-hero__text > * {
	animation: epm-rise-in 0.8s cubic-bezier(0.33, 1, 0.68, 1) both;
	animation-delay: calc(var(--n, 0) * 80ms);
}
.epm-hero__text > :nth-child(1) { --n: 0; }
.epm-hero__text > :nth-child(2) { --n: 1; }
.epm-hero__text > :nth-child(3) { --n: 2; }
.epm-hero__text > :nth-child(4) { --n: 3; }
.epm-hero__text > :nth-child(5) { --n: 4; }
.epm-hero__text > :nth-child(6) { --n: 5; }
/* El titular es el LCP: no espera a nada (solo sube, sin cambiar de opacidad). */
.epm-hero__title {
	animation-name: epm-rise;
	font-size: var(--type-hero);
	font-weight: 640;
	letter-spacing: -0.05em;
	line-height: 0.92;
	max-width: 11ch;
	text-shadow: 0 2px 30px rgb(0 0 0 / 0.25);
}
.epm-hero__title .epm-serif {
	font-size: 1.08em;
	color: var(--color-terracota-luz);
}
.epm-hero--service .epm-hero__title,
.epm-hero--about .epm-hero__title,
.epm-hero--simple .epm-hero__title {
	font-size: var(--type-h1);
	line-height: 0.94;
	max-width: 14ch;
}
.epm-hero__title .epm-heading__kicker {
	margin-bottom: 1.1em;
	font-size: clamp(0.92rem, 0.86rem + 0.3vw, 1.05rem);
	font-weight: 540;
	color: var(--muted);
}
.epm-hero__eyebrow {
	color: var(--color-terracota-luz);
}
.epm-hero__foot {
	display: grid;
	gap: var(--space-6);
	align-items: end;
}
.epm-hero__intro {
	font-size: var(--type-lead);
	line-height: 1.5;
	color: #D9D4C8;
	max-width: 34ch;
	text-wrap: pretty;
}
.epm-hero__actions {
	gap: var(--space-3) var(--space-4);
}
.epm-hero__note {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-size: var(--type-small);
	font-weight: 560;
	color: var(--muted);
}
.epm-hero__note .epm-icon {
	color: var(--accent);
}
/* Datos de la portada: una línea de cifras sobre el borde inferior */
.epm-hero__facts {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-5) var(--space-8);
	margin-top: var(--space-4);
	padding-top: var(--space-5);
	border-top: 1px solid var(--line);
}
.epm-hero__facts .epm-facts__item {
	display: grid;
	gap: 0.2rem;
	padding: 0;
	border: 0;
	grid-template-columns: none;
}
.epm-hero__facts dt {
	font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.9rem);
	font-weight: 560;
	letter-spacing: -0.03em;
	line-height: 1;
	color: var(--fg);
	font-variant-numeric: tabular-nums;
}
.epm-hero__facts dd {
	margin: 0;
	font-size: 0.84rem;
	color: var(--muted);
}
.epm-hero__caption {
	position: absolute;
	right: var(--gutter);
	bottom: clamp(2rem, 1rem + 3vw, 3.5rem);
	z-index: 2;
	margin: 0;
	font-size: 0.68rem;
	font-weight: 560;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--muted);
	writing-mode: vertical-rl;
	transform: rotate(180deg);
}
.epm-hero__trail {
	display: none;
}
/* Portada de la home encajada en la pantalla («Paseo», orden de Sergio): nunca más alta que la ventana. Los tamaños
   dependen también del alto (svh); en móvil se quedan dos cifras, y en pantallas bajas se quitan cifras y entradilla. */
.epm-hero--home.epm-hero--s-noche {
	height: 100svh;
	min-height: 30rem;
	padding-block: max(6.25rem, 12svh) clamp(1.25rem, 4svh, 3.5rem);
}
.epm-hero--home .epm-hero__text,
.epm-hero--home .epm-hero__foot {
	gap: clamp(0.9rem, 2.4svh, 2rem);
}
.epm-hero--home .epm-hero__title {
	font-size: clamp(2.4rem, min(1rem + 9.4vw, 14.5svh), 10.5rem);
}
.epm-hero--home .epm-hero__intro {
	font-size: clamp(1rem, 0.7rem + 1.1svh, 1.3rem);
}
.epm-hero--home .epm-hero__facts {
	margin-top: 0;
	padding-top: clamp(0.75rem, 2svh, 1.5rem);
	gap: clamp(0.75rem, 2svh, 1.5rem) 3rem;
}
.epm-hero--home .epm-hero__facts dt {
	font-size: clamp(1.15rem, 0.6rem + 1.6svh, 1.6rem);
}
.epm-hero--home .epm-hero__note {
	display: none;
}
@media (max-width: 63.99em) {
	.epm-hero--home .epm-hero__eyebrow {
		font-size: 0.66rem;
	}
	.epm-hero--home .epm-hero__actions {
		flex-wrap: nowrap;
		gap: 0.6rem 1rem;
	}
	.epm-hero--home .epm-hero__actions .epm-btn {
		min-height: 2.9rem;
		padding: 0.75em 1.1em;
		font-size: 0.88rem;
		white-space: nowrap;
	}
	.epm-hero--home .epm-hero__facts {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 0.75rem 1rem;
	}
	.epm-hero--home .epm-hero__facts .epm-facts__item:nth-child(n + 3) {
		display: none;
	}
}
@media (max-height: 44em) {
	.epm-hero--home .epm-hero__facts {
		display: none;
	}
}
@media (max-height: 34em) {
	.epm-hero--home .epm-hero__intro {
		display: none;
	}
}
/* Portadas oscuras de las páginas interiores: el mismo encaje, con titular algo menor */
.epm-hero--s-noche:not(.epm-hero--home) {
	min-height: min(88svh, 60rem);
	padding-block: max(6.25rem, 12svh) clamp(1.25rem, 4svh, 3.5rem);
}
.epm-hero--s-noche:not(.epm-hero--home) .epm-hero__text,
.epm-hero--s-noche:not(.epm-hero--home) .epm-hero__foot {
	gap: clamp(0.8rem, 2.2svh, 1.75rem);
}
.epm-hero--s-noche:not(.epm-hero--home) .epm-hero__title {
	font-size: clamp(2.2rem, min(1rem + 6vw, 10.5svh), 7.5rem);
}
.epm-hero--s-noche:not(.epm-hero--home) .epm-hero__intro {
	font-size: clamp(1rem, 0.7rem + 1.1svh, 1.3rem);
}
.epm-hero--s-noche:not(.epm-hero--home) .epm-hero__facts {
	margin-top: 0;
	padding-top: clamp(0.75rem, 2svh, 1.5rem);
	gap: clamp(0.75rem, 2svh, 1.5rem) 3rem;
}
.epm-hero--s-noche:not(.epm-hero--home) .epm-hero__facts dt {
	font-size: clamp(1.15rem, 0.6rem + 1.6svh, 1.6rem);
}
@media (max-width: 63.99em) {
	.epm-hero--s-noche:not(.epm-hero--home) .epm-hero__facts {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 0.75rem 1rem;
	}
	.epm-hero--s-noche:not(.epm-hero--home) .epm-hero__facts .epm-facts__item:nth-child(n + 3) {
		display: none;
	}
	.epm-hero--s-noche:not(.epm-hero--home) .epm-hero__note {
		display: none;
	}
}
@media (max-height: 50em) {
	.epm-hero--s-noche:not(.epm-hero--home) .epm-hero__facts {
		display: none;
	}
}
@media (max-height: 40em) {
	.epm-hero--s-noche:not(.epm-hero--home) .epm-hero__note,
	.epm-hero--s-noche:not(.epm-hero--home) .epm-heading__kicker {
		display: none;
	}
}
@keyframes epm-ken {
	from { transform: scale(1.08); }
	to { transform: none; }
}

@media (max-width: 63.99em) {
	.epm-hero__caption {
		display: none;
	}
	.epm-hero__veil {
		background: linear-gradient(180deg, rgb(29 28 25 / 0.55) 0%, rgb(29 28 25 / 0.35) 30%, rgb(29 28 25 / 0.75) 60%, rgb(29 28 25 / 0.96) 100%);
	}
}
@media (min-width: 64em) {
	.epm-hero__foot {
		grid-template-columns: 1.15fr 1fr;
	}
	.epm-hero__foot .epm-hero__actions {
		justify-self: end;
	}
	.epm-hero__facts {
		grid-column: 1 / -1;
	}
	.epm-hero--about .epm-hero__bg img {
		object-position: var(--focal, 30% 40%);
	}
}
@media (prefers-reduced-motion: reduce) {
	.epm-hero__bg img {
		animation: none;
	}
}

/* ---- Estilos alternativos de portada (campo «style»). Los claros nacen bajo la cabecera fija. ---- */
.epm-hero--s-revista,
.epm-hero--s-vinculo,
.epm-hero--s-calido,
.epm-hero--s-cuaderno {
	min-height: 0;
	align-items: start;
	padding-block: calc(var(--header-h) + var(--space-6)) var(--space-section);
}
.epm-hero--s-revista .epm-hero__title,
.epm-hero--s-vinculo .epm-hero__title,
.epm-hero--s-calido .epm-hero__title,
.epm-hero--s-cuaderno .epm-hero__title,
.epm-hero--s-terracota .epm-hero__title {
	text-shadow: none;
}
.epm-hero--s-revista .epm-hero__title .epm-serif,
.epm-hero--s-vinculo .epm-hero__title .epm-serif,
.epm-hero--s-calido .epm-hero__title .epm-serif,
.epm-hero--s-cuaderno .epm-hero__title .epm-serif {
	color: var(--color-terracota-osc);
}
.epm-hero--s-revista .epm-hero__eyebrow,
.epm-hero--s-vinculo .epm-hero__eyebrow,
.epm-hero--s-calido .epm-hero__eyebrow,
.epm-hero--s-cuaderno .epm-hero__eyebrow {
	color: var(--color-terracota-osc);
}
.epm-hero--s-revista .epm-hero__intro,
.epm-hero--s-vinculo .epm-hero__intro,
.epm-hero--s-calido .epm-hero__intro,
.epm-hero--s-cuaderno .epm-hero__intro {
	color: var(--muted);
	max-width: 36ch;
}
.epm-hero--s-vinculo .epm-hero__text,
.epm-hero--s-calido .epm-hero__text,
.epm-hero--s-cuaderno .epm-hero__text {
	gap: var(--space-5);
	position: relative;
	z-index: 2;
}
.epm-hero--s-vinculo .epm-hero__media,
.epm-hero--s-calido .epm-hero__media,
.epm-hero--s-cuaderno .epm-hero__media {
	position: relative;
	margin: 0;
	animation: epm-photo-in 1.4s var(--motion-ease) 0.15s both;
}
.epm-hero--s-vinculo .epm-hero__media .epm-frame,
.epm-hero--s-calido .epm-hero__media .epm-frame,
.epm-hero--s-cuaderno .epm-hero__media .epm-frame {
	aspect-ratio: 4 / 3.4;
}

/* Revista: titular de cartel a todo el ancho, línea, texto y botones, tira de fotos y cinta de datos */
.epm-hero--s-revista .epm-hero__text {
	gap: var(--space-5);
}
.epm-hero--s-revista .epm-hero__kick {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: var(--space-3) var(--space-5);
	align-items: baseline;
}
.epm-hero--s-revista .epm-hero__meta {
	font-size: 0.72rem;
	font-weight: 560;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--muted);
}
.epm-hero--s-revista .epm-hero__title {
	font-size: clamp(3.6rem, -0.4rem + 13.2vw, 15rem);
	font-weight: 600;
	letter-spacing: -0.06em;
	line-height: 0.86;
	max-width: none;
	text-wrap: balance;
}
.epm-hero--s-revista .epm-hero__title .epm-serif {
	font-size: 1.1em;
	line-height: 0.8;
}
.epm-hero--s-revista .epm-hero__row {
	display: grid;
	gap: var(--space-6);
	margin-top: var(--space-4);
	padding-top: var(--space-5);
	border-top: 1px solid var(--color-tinta);
}
.epm-hero--s-revista .epm-hero__intro {
	font-size: clamp(1.1rem, 1.02rem + 0.5vw, 1.4rem);
	line-height: 1.45;
	max-width: 30ch;
	color: var(--fg);
}
.epm-hero--s-revista .epm-hero__strip {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: var(--space-4);
	margin-top: clamp(2.5rem, 4vw, 4rem);
}
.epm-hero--s-revista .epm-hero__shot {
	position: relative;
	margin: 0;
	overflow: hidden;
	border-radius: var(--radius-photo);
	background: var(--color-hueso);
}
.epm-hero--s-revista .epm-hero__shot img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: var(--focal, 50% 40%);
}
.epm-hero--s-revista .epm-hero__shot--1 {
	grid-column: 1 / span 12;
	aspect-ratio: 16 / 8;
}
.epm-hero--s-revista .epm-hero__shot--2,
.epm-hero--s-revista .epm-hero__shot--3 {
	display: none;
}
.epm-hero--s-revista .epm-hero__caption {
	position: absolute;
	left: var(--space-4);
	bottom: var(--space-4);
	right: auto;
	top: auto;
	z-index: 2;
	margin: 0;
	padding: 0.4em 0.8em;
	border-radius: var(--radius-pill);
	background: rgb(29 28 25 / 0.6);
	color: var(--color-crema);
	font-size: 0.68rem;
	font-weight: 560;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	writing-mode: horizontal-tb;
	transform: none;
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}
.epm-hero--s-revista .epm-hero__ticker {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem 0;
	margin-top: clamp(3rem, 5vw, 6rem);
	padding: 1rem var(--gutter);
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
	font-size: 0.78rem;
	font-weight: 560;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--muted);
}
.epm-hero--s-revista .epm-hero__ticker span {
	display: inline-flex;
	align-items: center;
}
.epm-hero--s-revista .epm-hero__ticker span:not(:last-child)::after {
	content: "·";
	padding-inline: 1.5rem;
	color: var(--color-terracota);
}
.epm-hero--s-revista {
	padding-bottom: 0;
}

/* Terracota: pantalla partida, bloque de marca a la izquierda y foto a toda altura a la derecha */
.epm-hero--s-terracota {
	--fg: var(--color-crema);
	--muted: #FBE9DF;
	--line: rgb(243 240 232 / 0.3);
	--line-strong: rgb(243 240 232 / 0.6);
	--accent: #FBE3D8;
	--btn-bg: var(--color-crema);
	--btn-fg: var(--color-tinta);
	--focus: var(--color-crema);
	display: grid;
	align-items: stretch;
	padding: 0;
	color: var(--color-crema);
}
.epm-hero--s-terracota::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	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");
	opacity: 0.06;
	mix-blend-mode: multiply;
	pointer-events: none;
}
.epm-hero--s-terracota .epm-hero__panel {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-rows: 1fr auto;
	gap: var(--space-6);
	padding: calc(var(--header-h) + var(--space-6)) var(--gutter) clamp(2rem, 3vw, 3rem) max(var(--gutter), (100vw - var(--container-max)) / 2);
}
.epm-hero--s-terracota .epm-hero__text {
	align-content: center;
	gap: var(--space-5);
	padding-block: clamp(2rem, 4vw, 4rem);
}
.epm-hero--s-terracota .epm-hero__eyebrow {
	color: #FBE3D8;
}
.epm-hero--s-terracota .epm-hero__title {
	font-size: clamp(3rem, 0.8rem + 6.2vw, 6.75rem);
	font-weight: 680;
	letter-spacing: -0.055em;
	line-height: 0.9;
	max-width: 14ch;
	text-wrap: balance;
}
.epm-hero--s-terracota .epm-hero__title .epm-serif {
	font-size: 1.1em;
	line-height: 0.8;
	color: #FFE1D2;
}
.epm-hero--s-terracota .epm-hero__intro {
	font-size: clamp(1.05rem, 1rem + 0.4vw, 1.3rem);
	max-width: 32ch;
	color: #FBE9DF;
}
.epm-hero--s-terracota .epm-link {
	min-height: 3.25rem;
	padding: 0.9em 1.6em;
	border: 1px solid rgb(243 240 232 / 0.6);
	border-radius: var(--radius-btn);
	text-decoration: none;
	color: var(--color-crema);
}
.epm-hero--s-terracota .epm-link:hover,
.epm-hero--s-terracota .epm-link:focus-visible {
	background: rgb(243 240 232 / 0.14);
}
.epm-hero--s-terracota .epm-btn--solid:hover,
.epm-hero--s-terracota .epm-btn--solid:focus-visible {
	background: var(--color-tinta);
	color: var(--color-crema);
}
.epm-hero--s-terracota .epm-hero__foot {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.6rem 1.5rem;
	padding-top: 1.25rem;
	border-top: 1px solid rgb(243 240 232 / 0.3);
	font-size: 0.74rem;
	font-weight: 560;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #FBE3D8;
	animation: epm-rise-in 0.8s cubic-bezier(0.33, 1, 0.68, 1) 0.4s both;
}
.epm-hero--s-terracota .epm-hero__media {
	position: relative;
	z-index: 1;
	margin: 0;
	min-height: 60vh;
}
.epm-hero--s-terracota .epm-hero__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: var(--focal, 50% 35%);
}
.epm-hero--s-terracota .epm-hero__badge {
	position: absolute;
	left: var(--gutter);
	bottom: clamp(1.25rem, 0.6rem + 2.6vw, 3rem);
	display: grid;
	gap: 0.2rem;
	max-width: 18rem;
	padding: 1rem 1.25rem;
	border-radius: var(--radius-md);
	background: var(--color-crema);
	color: var(--color-tinta);
}
.epm-hero--s-terracota .epm-hero__badge strong {
	font-size: 2rem;
	font-weight: 620;
	letter-spacing: -0.04em;
	line-height: 1;
	font-variant-numeric: tabular-nums;
}
.epm-hero--s-terracota .epm-hero__badge span {
	font-size: 0.82rem;
	color: #57554D;
}

/* Vínculo: clara, titular grande con la palabra en serif, foto a sangre por la derecha y trazo entre ambos */
.epm-hero--s-vinculo .epm-hero__title {
	font-size: var(--type-hero);
	font-weight: 640;
	letter-spacing: -0.05em;
	line-height: 0.92;
	max-width: 11ch;
}
.epm-hero--s-vinculo .epm-hero__title .epm-serif {
	font-size: 1.08em;
}
.epm-hero--s-vinculo .epm-hero__trail {
	display: block;
	position: absolute;
	right: -8%;
	bottom: 6rem;
	left: auto;
	width: 42%;
	height: 7rem;
	opacity: 0.85;
	z-index: 0;
}
.epm-hero--s-vinculo .epm-hero__media .epm-frame {
	border-radius: 0;
}
.epm-hero--s-vinculo .epm-hero__caption {
	position: static;
	display: block;
	margin-top: var(--space-4);
	font-size: 0.7rem;
	font-weight: 560;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--muted);
	writing-mode: horizontal-tb;
	transform: none;
}

/* Cálido: brillo detrás del titular, chip de contexto, foto redondeada a sangre con pie en píldora */
.epm-hero--s-calido::before {
	content: "";
	position: absolute;
	z-index: -1;
	left: -10%;
	top: -20%;
	width: 60%;
	height: 80%;
	background: radial-gradient(closest-side, rgb(220 113 80 / 0.22), transparent 70%);
	opacity: 0.9;
	pointer-events: none;
}
.epm-hero--s-calido .epm-hero__title {
	font-size: var(--type-h1);
	font-weight: 760;
	font-stretch: 108%;
	letter-spacing: -0.05em;
	line-height: 0.9;
	max-width: none;
}
.epm-hero--s-calido .epm-hero__title .epm-heading__kicker {
	display: inline-flex;
	align-items: center;
	gap: 0.6em;
	margin-bottom: 1em;
	padding: 0.45em 0.95em 0.45em 0.6em;
	border: 1px solid var(--line);
	border-radius: var(--radius-pill);
	background: color-mix(in srgb, var(--surface) 80%, transparent);
	font-size: clamp(0.82rem, 0.78rem + 0.2vw, 0.95rem);
	font-weight: 620;
	font-stretch: 102%;
	letter-spacing: 0;
	line-height: 1.2;
	color: var(--fg);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}
.epm-hero--s-calido .epm-hero__title .epm-heading__kicker::before {
	content: "";
	width: 0.5em;
	height: 0.5em;
	border-radius: 50%;
	background: var(--deco);
	box-shadow: 0 0 0 0.3em color-mix(in srgb, var(--deco) 25%, transparent);
}
.epm-hero--s-calido .epm-hero__media .epm-frame {
	border-radius: var(--radius-lg, 1.25rem);
}
.epm-hero--s-calido .epm-hero__caption {
	position: absolute;
	z-index: 3;
	left: clamp(0.9rem, 0.6rem + 1vw, 1.5rem);
	bottom: clamp(0.9rem, 0.6rem + 1vw, 1.5rem);
	right: auto;
	top: auto;
	display: inline-flex;
	align-items: center;
	gap: 0.6em;
	margin: 0;
	padding: 0.55em 1em 0.55em 0.8em;
	border-radius: var(--radius-pill);
	background: rgb(38 37 33 / 0.55);
	color: var(--color-crema);
	font-size: 0.74rem;
	font-weight: 640;
	font-stretch: 110%;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	writing-mode: horizontal-tb;
	transform: none;
	-webkit-backdrop-filter: blur(10px) saturate(140%);
	backdrop-filter: blur(10px) saturate(140%);
}
.epm-hero--s-calido .epm-hero__caption::before {
	content: "";
	width: 0.45em;
	height: 0.45em;
	border-radius: 50%;
	background: var(--color-terracota);
}

/* Cuaderno: la primera versión, foto «impresa» con cinta e inclinación, trazo y pie a mano */
.epm-hero--s-cuaderno .epm-hero__title {
	font-size: var(--type-h1);
	font-weight: 760;
	font-stretch: 108%;
	letter-spacing: -0.045em;
	line-height: 0.93;
	max-width: none;
}
.epm-hero--s-cuaderno .epm-hero__title .epm-heading__kicker {
	display: block;
	margin-bottom: 0.6em;
	font-size: clamp(1rem, 0.9rem + 0.4vw, 1.25rem);
	font-weight: 640;
	font-stretch: 100%;
	letter-spacing: -0.01em;
	color: var(--color-terracota-osc);
}
.epm-hero--s-cuaderno .epm-hero__media {
	animation: epm-settle 1.3s var(--motion-ease) 0.1s both;
}
.epm-hero--s-cuaderno .epm-hero__media .epm-frame {
	--rot: -2deg;
	padding: clamp(0.4rem, 0.3rem + 0.4vw, 0.7rem);
	padding-bottom: clamp(1.4rem, 1rem + 1.4vw, 2.6rem);
	border-radius: 0;
	background: var(--color-papel);
	box-shadow: 0 30px 60px -30px rgb(29 28 25 / 0.35), 0 2px 6px rgb(29 28 25 / 0.08);
	overflow: visible;
	transform: rotate(var(--rot));
}
.epm-hero--s-cuaderno .epm-hero__media .epm-frame::before {
	content: "";
	position: absolute;
	z-index: 2;
	top: -0.9rem;
	left: 50%;
	width: clamp(4.5rem, 3rem + 4vw, 7rem);
	height: 1.7rem;
	background: color-mix(in srgb, var(--color-terracota) 55%, transparent);
	transform: translateX(-50%) rotate(3deg);
	mix-blend-mode: multiply;
}
.epm-hero--s-cuaderno .epm-hero__caption {
	position: relative;
	z-index: 2;
	right: auto;
	bottom: auto;
	margin-top: var(--space-4);
	padding-left: var(--space-3);
	font-size: 0.78rem;
	font-weight: 600;
	font-stretch: 112%;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #5A584F;
	writing-mode: horizontal-tb;
	transform: rotate(-1.2deg);
}
.epm-hero--s-cuaderno .epm-hero__trail {
	display: block;
	left: -12%;
	right: -12%;
	bottom: -8%;
	width: 124%;
	height: 34%;
	z-index: 3;
}

@media (min-width: 64em) {
	.epm-hero--s-revista .epm-hero__row {
		grid-template-columns: 1.1fr 0.9fr;
	}
	.epm-hero--s-revista .epm-hero__strip {
		gap: var(--space-5);
	}
	.epm-hero--s-revista .epm-hero__shot--1 {
		grid-column: 1 / span 7;
		aspect-ratio: 4 / 3;
	}
	.epm-hero--s-revista .epm-hero__shot--2 {
		display: block;
		grid-column: 8 / span 3;
		aspect-ratio: 3 / 4;
		margin-top: 4rem;
	}
	.epm-hero--s-revista .epm-hero__shot--3 {
		display: block;
		grid-column: 11 / span 2;
		aspect-ratio: 2 / 3;
		margin-top: -2rem;
	}
	.epm-hero--s-terracota {
		grid-template-columns: 52fr 48fr;
		min-height: 100svh;
	}
	.epm-hero--s-terracota .epm-hero__media {
		min-height: 100svh;
	}
	.epm-hero--s-vinculo .epm-hero__grid,
	.epm-hero--s-calido .epm-hero__grid,
	.epm-hero--s-cuaderno .epm-hero__grid {
		grid-template-columns: repeat(12, minmax(0, 1fr));
		gap: var(--space-6);
		align-items: center;
	}
	.epm-hero--s-vinculo .epm-hero__text,
	.epm-hero--s-calido .epm-hero__text {
		grid-column: 1 / span 7;
	}
	.epm-hero--s-cuaderno .epm-hero__text {
		grid-column: 1 / span 6;
	}
	.epm-hero--s-vinculo .epm-hero__media,
	.epm-hero--s-calido .epm-hero__media {
		grid-column: 8 / span 5;
		margin-right: calc(-1 * max(var(--gutter), (100vw - var(--container-max)) / 2));
	}
	.epm-hero--s-vinculo .epm-hero__media .epm-frame,
	.epm-hero--s-calido .epm-hero__media .epm-frame {
		aspect-ratio: 4 / 4.6;
		border-top-right-radius: 0;
		border-bottom-right-radius: 0;
	}
	.epm-hero--s-cuaderno .epm-hero__media {
		grid-column: 8 / span 5;
	}
	.epm-hero--s-cuaderno .epm-hero__media .epm-frame {
		aspect-ratio: 4 / 5;
	}
}

/* ---------- Situaciones ---------- */
/* «Paseo»: foto fija con contador a un lado; la situación que se lee se ve entera y las demás se atenúan */
.epm-pain__grid {
	display: grid;
	gap: var(--space-7);
}
.epm-pain__aside {
	position: relative;
}
.epm-pain__media {
	position: relative;
	aspect-ratio: 4 / 5;
	border-radius: var(--radius-lg);
}
.epm-pain__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	transform: scale(1.06);
	transition: opacity 0.7s var(--motion-ease), transform 1.2s var(--motion-ease);
}
.epm-pain__media img.is-on {
	opacity: 1;
	transform: none;
}
.epm-pain__count {
	position: absolute;
	left: 1.25rem;
	bottom: 1.25rem;
	display: inline-flex;
	gap: 0.4em;
	padding: 0.5em 0.9em;
	border-radius: var(--radius-pill);
	background: rgb(29 28 25 / 0.6);
	color: var(--color-crema);
	font-size: 0.74rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	font-variant-numeric: tabular-nums;
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}
.epm-pain__items {
	display: grid;
	margin: 0;
	padding: 0;
	list-style: none;
}
.epm-pain__item {
	display: grid;
	grid-template-columns: 3.5rem 1fr;
	gap: 1.25rem;
	padding-block: clamp(2rem, 1.5rem + 1.5vw, 3rem);
	border-top: 1px solid var(--line);
	transition: opacity 0.4s ease;
}
.epm-pain.is-live .epm-pain__item {
	opacity: 0.35;
}
.epm-pain.is-live .epm-pain__item.is-on {
	opacity: 1;
}
.epm-pain__num {
	padding-top: 0.5rem;
	font-size: 0.8rem;
	font-weight: 560;
	letter-spacing: 0.08em;
	color: var(--accent);
	font-variant-numeric: tabular-nums;
}
.epm-pain__title {
	margin-bottom: 0.6rem;
	font-size: clamp(1.7rem, 1.2rem + 1.8vw, 3rem);
	font-weight: 620;
	letter-spacing: -0.035em;
	line-height: 1.02;
}
.epm-pain__item p {
	color: var(--muted);
	max-width: 44ch;
	font-size: 1.05rem;
}
.epm-pain__closing {
	margin-top: 2rem;
	padding-top: 2rem;
	border-top: 1px solid var(--fg);
	font-size: clamp(1.3rem, 1rem + 1.2vw, 2rem);
	font-weight: 560;
	letter-spacing: -0.02em;
	line-height: 1.3;
	max-width: 28ch;
}
@media (min-width: 64em) {
	.epm-pain__grid {
		grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
		gap: clamp(3rem, 1rem + 5vw, 7rem);
		align-items: start;
	}
	.epm-pain__aside {
		position: sticky;
		top: calc(var(--header-h) + 1.5rem);
	}
	.epm-pain__media {
		max-height: calc(100svh - var(--header-h) - 3rem);
		aspect-ratio: auto;
		height: min(46rem, calc(100svh - var(--header-h) - 3rem));
	}
	.epm-pain__item {
		padding-block: clamp(2.5rem, 5vh, 4rem);
	}
	.epm-pain .epm-s__head + .epm-pain__items .epm-pain__item:first-child {
		border-top: 0;
	}
}

/* ---------- Texto con foto ---------- */
/* Foto grande hasta el borde de la ventana (siete columnas) y texto en las otras cinco */
.epm-story__grid {
	display: grid;
	gap: var(--space-7);
	align-items: center;
}
.epm-story__body {
	max-width: 38rem;
}
.epm-story__facts {
	margin-top: var(--space-6);
	max-width: 38rem;
}
.epm-story .epm-actions {
	margin-top: var(--space-6);
}
.epm-story__media {
	margin: 0;
}
.epm-story__media .epm-frame {
	aspect-ratio: 4 / 3;
}
@media (min-width: 64em) {
	.epm-story__grid {
		grid-template-columns: repeat(12, minmax(0, 1fr));
	}
	.epm-story__text {
		grid-column: 1 / span 5;
	}
	.epm-story__media {
		grid-column: 7 / span 6;
		margin-right: calc(-1 * max(var(--gutter), (100vw - var(--container-max)) / 2));
	}
	.epm-story__media .epm-frame {
		aspect-ratio: 5 / 4;
		border-top-right-radius: 0;
		border-bottom-right-radius: 0;
	}
	.epm-story--img-left .epm-story__text {
		grid-column: 8 / span 5;
		grid-row: 1;
	}
	.epm-story--img-left .epm-story__media {
		grid-column: 1 / span 6;
		grid-row: 1;
		margin-right: 0;
		margin-left: calc(-1 * max(var(--gutter), (100vw - var(--container-max)) / 2));
	}
	.epm-story--img-left .epm-story__media,
	.epm-story__media {
		align-self: stretch;
	}
	.epm-story__media .epm-frame,
	.epm-story--img-left .epm-story__media .epm-frame {
		aspect-ratio: auto;
		height: 100%;
		min-height: 36rem;
		border-radius: 0;
	}
	.epm-story__grid {
		align-items: stretch;
	}
	.epm-story__text {
		align-self: center;
	}
	.epm-story.no-image .epm-story__headcol {
		grid-column: 1 / span 5;
		position: sticky;
		top: calc(var(--header-h) + 2rem);
		align-self: start;
	}
	.epm-story.no-image .epm-story__text {
		grid-column: 7 / span 6;
	}
}

/* Sin foto: el texto sube de tamaño y los datos se vuelven tarjetas (la primera en tinta, la segunda en terracota) */
.epm-story.no-image .epm-story__grid {
	align-items: start;
}
.epm-story.no-image .epm-story__headcol .epm-s__head {
	margin-bottom: 0;
}
.epm-story.no-image .epm-story__body {
	max-width: 36rem;
	font-size: clamp(1.1rem, 1rem + 0.45vw, 1.35rem);
	line-height: 1.55;
}
.epm-story__cards {
	display: grid;
	gap: 1rem;
	margin: var(--space-7) 0 0;
	padding: 0;
	list-style: none;
}
.epm-story__card {
	display: grid;
	gap: 0.6rem;
	align-content: end;
	min-height: 9rem;
	padding: clamp(1.4rem, 1rem + 1.5vw, 2rem);
	border-radius: var(--radius-lg);
	background: var(--color-tinta);
	color: var(--color-crema);
}
.epm-story__card:nth-child(2n) {
	background: var(--color-terracota);
	color: var(--color-tinta);
}
.epm-story__card:nth-child(3n) {
	background: var(--color-salvia-claro);
	color: var(--color-tinta);
}
.epm-story__card-name {
	font-family: var(--font-serif);
	font-style: italic;
	font-size: clamp(2.6rem, 1.8rem + 2.6vw, 4rem);
	line-height: 0.9;
	letter-spacing: -0.01em;
	color: var(--color-terracota-luz);
}
.epm-story__card:nth-child(2n) .epm-story__card-name,
.epm-story__card:nth-child(3n) .epm-story__card-name {
	color: var(--color-tinta);
}
.epm-story__card-text {
	font-size: 0.95rem;
	line-height: 1.45;
	max-width: 26ch;
	color: #D9D4C8;
}
.epm-story__card:nth-child(2n) .epm-story__card-text,
.epm-story__card:nth-child(3n) .epm-story__card-text {
	color: #2E211C;
}
@media (min-width: 40em) {
	.epm-story__card {
		min-height: 13rem;
	}
	.epm-story__cards {
		grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
	}
}
/* Tarjetas junto a una foto: la columna de texto es estrecha, así que bajan de alto y de cuerpo */
.epm-story.has-image .epm-story__cards {
	margin-top: var(--space-6);
}
.epm-story.has-image .epm-story__card {
	min-height: 0;
}
.epm-story.has-image .epm-story__card-name {
	font-size: clamp(2.2rem, 1.7rem + 1.6vw, 3rem);
}
@media (min-width: 64em) {
	.epm-story.has-image .epm-story__cards {
		grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
	}
}

/* ---------- Selector ---------- */
/* Fondo salvia a todo el ancho, sin tarjeta: título a la izquierda, preguntas como filas a la derecha */
.epm-selector-s__grid {
	display: grid;
	gap: var(--space-7);
}
.epm-selector-s__head {
	position: relative;
}
.epm-selector-s__head .epm-s__head {
	margin-bottom: 0;
}
.epm-selector__card {
	position: relative;
	display: grid;
	gap: var(--space-6);
}
.epm-selector__progress {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-4);
	padding-bottom: var(--space-4);
	border-bottom: 1px solid var(--line);
}
.epm-selector__count {
	font-size: var(--type-label);
	font-weight: 560;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--muted);
	font-variant-numeric: tabular-nums;
}
.epm-selector__bar {
	display: flex;
	gap: 0.35rem;
}
.epm-selector__seg {
	display: block;
	width: 2rem;
	height: 2px;
	background: rgb(38 37 33 / 0.25);
	transition: background-color var(--motion-fast) ease;
}
.epm-selector__seg.is-on {
	background: var(--color-tinta);
}
.epm-selector__q {
	margin-bottom: var(--space-5);
	font-size: var(--type-h3);
	font-weight: 620;
	letter-spacing: -0.03em;
	line-height: 1.08;
	text-wrap: balance;
}
.epm-selector__q:focus {
	outline: none;
}
.epm-selector__options {
	display: grid;
	border-top: 1px solid var(--line-strong);
}
.epm-option {
	display: grid;
	grid-template-columns: 2.25rem 1fr auto;
	align-items: center;
	gap: var(--space-4);
	width: 100%;
	min-height: 4.25rem;
	padding: 1rem 0.25rem;
	border: 0;
	border-bottom: 1px solid var(--line-strong);
	border-radius: 0;
	background: transparent;
	font-size: 1.05rem;
	font-weight: 560;
	line-height: 1.3;
	text-align: left;
	transition: background-color var(--motion-fast) ease, color var(--motion-fast) ease;
}
.epm-option__n {
	display: inline-grid;
	place-items: center;
	width: 2rem;
	height: 2rem;
	border: 1px solid var(--line-strong);
	border-radius: 50%;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	font-variant-numeric: tabular-nums;
	transition: background-color var(--motion-fast) ease, color var(--motion-fast) ease, border-color var(--motion-fast) ease;
}
.epm-option .epm-icon {
	color: var(--fg);
	opacity: 0.55;
	transition: transform var(--motion-fast) ease, opacity var(--motion-fast) ease;
}
.epm-option:hover,
.epm-option:focus-visible {
	background: rgb(255 255 255 / 0.28);
}
.epm-option:focus-visible {
	outline-offset: -3px;
}
.epm-option:hover .epm-icon,
.epm-option:focus-visible .epm-icon {
	transform: translateX(3px);
	opacity: 1;
}
.epm-option[aria-pressed="true"] {
	background: rgb(255 255 255 / 0.4);
}
.epm-option[aria-pressed="true"] .epm-option__n {
	background: var(--color-tinta);
	border-color: var(--color-tinta);
	color: var(--color-crema);
}
.epm-selector__step.is-entering,
.epm-selector__result.is-entering {
	animation: epm-step-in 240ms var(--motion-ease) both;
}
.epm-selector__result {
	display: grid;
	gap: var(--space-4);
}
.epm-selector__service {
	font-size: var(--type-h2);
	font-weight: 640;
	letter-spacing: -0.045em;
	line-height: 0.96;
}
.epm-selector__service:focus {
	outline: none;
}
.epm-selector__reason {
	font-size: var(--type-lead);
	line-height: 1.45;
	max-width: 42ch;
}
.epm-selector__modality {
	font-size: var(--type-small);
	font-weight: 560;
	color: var(--muted);
}
.epm-selector__nav {
	display: flex;
	justify-content: space-between;
	gap: var(--space-4);
}
.epm-selector__nav:empty,
.epm-selector__nav:not(:has(> :not([hidden]))) {
	display: none;
}
.epm-selector__direct {
	margin-top: var(--space-5);
}
.epm-selector__disclaimer {
	margin-top: var(--space-3);
	font-size: var(--type-small);
	color: var(--muted);
	max-width: 48ch;
}
@media (min-width: 64em) {
	.epm-selector-s__grid {
		grid-template-columns: repeat(12, minmax(0, 1fr));
		align-items: start;
	}
	.epm-selector-s__head {
		grid-column: 1 / span 5;
		position: sticky;
		top: calc(var(--header-h) + 2rem);
	}
	.epm-selector {
		grid-column: 6 / span 7;
	}
}

/* ---------- Método ---------- */
/* «Paseo»: foto con la frase de Ana montada en la esquina y los pasos como recorrido de círculos numerados */
.epm-method .epm-s__head {
	max-width: none;
}
.epm-method__grid {
	display: grid;
	gap: clamp(2.5rem, 1.5rem + 3vw, 4.5rem);
}
.epm-method__media {
	position: relative;
	display: grid;
}
.epm-method__photo {
	aspect-ratio: 4 / 3;
	border-radius: var(--radius-lg);
}
.epm-method__photo img {
	position: absolute;
	inset: 0;
}
.epm-method__quote {
	position: relative;
	display: grid;
	gap: 1rem;
	margin: -3.5rem 1rem 0;
	padding: clamp(1.5rem, 1rem + 1.5vw, 2.25rem);
	border-radius: var(--radius-lg);
	background: var(--color-terracota);
	color: var(--color-tinta);
	box-shadow: 0 30px 60px -30px rgb(29 28 25 / 0.45);
}
.epm-method__media:not(:has(.epm-method__photo)) .epm-method__quote {
	margin: 0;
}
.epm-method__quote blockquote p {
	font-size: clamp(1.35rem, 1.05rem + 1vw, 2rem);
	font-weight: 560;
	letter-spacing: -0.03em;
	line-height: 1.15;
	text-wrap: balance;
}
.epm-method__quote .epm-serif {
	color: #3A1A0E;
}
.epm-method__quote figcaption {
	font-size: 0.78rem;
	font-weight: 560;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #3A1A0E;
}
.epm-method__steps {
	display: grid;
	align-content: center;
	margin: 0;
	padding: 0;
	list-style: none;
}
.epm-method__step {
	position: relative;
	display: grid;
	grid-template-columns: 3.2rem 1fr;
	gap: 1.25rem;
	align-items: start;
	padding-block: 1.4rem;
}
.epm-method__step + .epm-method__step {
	border-top: 1px solid var(--line);
}
.epm-method__step:not(:last-child)::after {
	content: "";
	position: absolute;
	left: 1.6rem;
	top: calc(1.4rem + 3.2rem);
	bottom: -1.4rem;
	border-left: 1px dashed var(--accent);
	opacity: 0.45;
}
.epm-method__num {
	position: relative;
	z-index: 1;
	display: grid;
	place-items: center;
	width: 3.2rem;
	height: 3.2rem;
	border-radius: 50%;
	background: var(--bg);
	border: 1px solid var(--accent);
	color: var(--accent);
	font-size: 0.95rem;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}
.epm-method__step:last-child .epm-method__num {
	background: var(--accent);
	color: var(--color-crema);
}
.epm-method__title {
	margin: 0.55rem 0 0.4rem;
	font-size: clamp(1.2rem, 1rem + 0.6vw, 1.5rem);
	font-weight: 620;
	letter-spacing: -0.025em;
	line-height: 1.15;
}
.epm-method__step p {
	color: var(--muted);
	font-size: 0.98rem;
	max-width: 40ch;
}
@media (min-width: 64em) {
	.epm-method .epm-s__head {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		column-gap: var(--space-8);
		align-items: end;
	}
	.epm-method .epm-s__head > :not(.epm-lead) {
		grid-column: 1;
	}
	.epm-method .epm-s__head > .epm-lead {
		grid-column: 2;
		grid-row: 1 / span 3;
		align-self: end;
	}
	.epm-method__grid {
		grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
		align-items: stretch;
	}
	.epm-method__grid.no-media {
		grid-template-columns: minmax(0, 1fr);
		max-width: 44rem;
	}
	.epm-method__photo {
		aspect-ratio: auto;
		height: 100%;
		min-height: 30rem;
	}
	.epm-method__quote {
		position: absolute;
		right: -1.5rem;
		bottom: -1.5rem;
		margin: 0;
		max-width: 24rem;
	}
	.epm-method__media:not(:has(.epm-method__photo)) .epm-method__quote {
		position: relative;
		right: auto;
		bottom: auto;
		align-self: center;
	}
}

/* ---------- Programas ---------- */
/* «Paseo»: fichas iguales y anchas, foto con el mismo alto, dos columnas dentro (nombre y precio | lo que incluye).
   Con tres o más servicios: carril horizontal fijado en escritorio (GSAP) y deslizable en móvil. */
.epm-programmes {
	overflow: clip;
}
.epm-programmes .epm-s__head {
	margin-bottom: var(--space-6);
}
.epm-programmes__bar {
	display: flex;
	align-items: center;
	gap: 1.25rem;
	margin-bottom: 1.5rem;
	font-size: 0.78rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--muted);
	font-variant-numeric: tabular-nums;
}
.epm-programmes__count b {
	color: var(--fg);
	font-weight: 600;
}
.epm-programmes__line {
	position: relative;
	flex: 1;
	max-width: 24rem;
	height: 2px;
	border-radius: 2px;
	background: var(--line);
	overflow: hidden;
}
.epm-programmes__line span {
	position: absolute;
	inset: 0;
	background: var(--deco);
	transform-origin: left;
	transform: scaleX(0.25);
	transition: transform 0.3s ease;
}
.epm-programmes__swipe {
	margin-left: auto;
}
.epm-programmes__track {
	display: grid;
	gap: 1.25rem;
}
.epm-programmes.is-rail .epm-programmes__track {
	display: flex;
	gap: 1.25rem;
	padding-inline: max(var(--gutter), (100vw - var(--container-max)) / 2);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-padding-inline: max(var(--gutter), (100vw - var(--container-max)) / 2);
	scrollbar-width: none;
}
.epm-programmes.is-rail .epm-programmes__track::-webkit-scrollbar {
	display: none;
}
.epm-programmes.is-rail .epm-programmes__track::after {
	content: "";
	flex: none;
	width: 1px;
}
.epm-programme {
	--img-h: 12.5rem;
	position: relative;
	display: grid;
	grid-template-rows: auto 1fr;
	border-radius: var(--radius-lg);
	overflow: hidden;
	background: var(--bg);
	color: var(--fg);
	border: 1px solid transparent;
}
.epm-programme--tinta {
	background: var(--color-tinta-2);
	border-color: rgb(243 240 232 / 0.1);
}
.epm-programmes.is-rail .epm-programme {
	flex: none;
	width: min(86vw, 27rem);
	scroll-snap-align: start;
}
.epm-programme__img {
	position: relative;
	height: var(--img-h);
	overflow: hidden;
	background: var(--color-hueso);
}
.epm-programme__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 1.2s var(--motion-ease);
}
.epm-programme:hover .epm-programme__img img {
	transform: scale(1.04);
}
.epm-programme__num,
.epm-programme__tag {
	position: absolute;
	top: 1rem;
	padding: 0.4em 0.75em;
	border-radius: var(--radius-pill);
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	line-height: 1;
}
.epm-programme__num {
	left: 1rem;
	background: rgb(29 28 25 / 0.72);
	color: var(--color-crema);
	font-variant-numeric: tabular-nums;
}
.epm-programme__tag {
	right: 1rem;
	background: var(--color-terracota);
	color: var(--color-tinta);
}
.epm-programme__body {
	display: grid;
	grid-template-areas: "main" "list" "foot";
	grid-template-rows: auto 1fr auto;
	gap: 1.5rem;
	padding: 1.5rem;
}
.epm-programme__main {
	grid-area: main;
	display: grid;
	gap: 0.7rem;
	align-content: start;
}
.epm-programme__eyebrow {
	font-size: 0.72rem;
	font-weight: 560;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--accent);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.epm-programme--terracota .epm-programme__eyebrow {
	color: #3A1A0E;
}
.epm-programme__name {
	font-size: clamp(1.7rem, 1rem + 1.3vw, 2.3rem);
	font-weight: 640;
	letter-spacing: -0.035em;
	line-height: 1;
}
.epm-programme__price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.15rem 0.55rem;
}
.epm-programme__amount {
	font-size: 1.9rem;
	font-weight: 560;
	letter-spacing: -0.04em;
	line-height: 1.05;
	font-variant-numeric: tabular-nums;
}
.epm-programme__price.is-pending .epm-programme__amount {
	font-size: 1.6rem;
}
.epm-programme__per {
	font-size: 0.82rem;
	font-weight: 500;
	color: var(--muted);
}
.epm-programme__note {
	font-size: 0.8rem;
	line-height: 1.4;
	color: var(--muted);
	max-width: 32ch;
}
.epm-programme__list {
	grid-area: list;
	display: grid;
	gap: 0.9rem;
	align-content: start;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 0.92rem;
	line-height: 1.45;
	color: var(--muted);
}
.epm-programme__list li {
	display: flex;
	gap: 0.7rem;
}
.epm-programme__list li::before {
	content: "";
	flex: none;
	width: 0.45rem;
	height: 0.45rem;
	margin-top: 0.5em;
	border-radius: 50%;
	background: var(--color-terracota);
}
.epm-programme--terracota .epm-programme__list li::before {
	background: var(--color-tinta);
}
.epm-programme__foot {
	grid-area: foot;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 1.25rem;
	align-self: end;
}
.epm-btn--terra {
	background: var(--color-terracota);
	color: var(--color-tinta);
}
.epm-btn--terra:hover,
.epm-btn--terra:focus-visible {
	background: var(--color-crema);
	color: var(--color-tinta);
}
.epm-btn--ink {
	background: var(--color-tinta);
	color: var(--color-crema);
}
.epm-btn--ink:hover,
.epm-btn--ink:focus-visible {
	background: var(--color-tinta-3);
	color: var(--color-crema);
}
.epm-programmes__bridge {
	display: grid;
	gap: 1.25rem;
	justify-items: start;
	margin-top: var(--space-7);
	padding-top: 2.5rem;
	border-top: 1px solid var(--line);
}
.epm-programmes__bridge p {
	font-size: clamp(1.05rem, 1rem + 0.3vw, 1.15rem);
	color: var(--muted);
	max-width: 48ch;
}
@media (min-width: 48em) {
	.epm-programmes:not(.is-rail) .epm-programmes__track {
		grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
	}
}
@media (min-width: 64em) {
	.epm-programme {
		--img-h: clamp(12rem, 30svh, 19rem);
	}
	.epm-programmes.is-pinned .epm-programmes__track {
		width: max-content;
		overflow: visible;
		scroll-snap-type: none;
	}
	.epm-programmes.is-rail .epm-programme {
		width: clamp(34rem, 44vw, 46rem);
	}
	.epm-programmes:not(.is-rail) .epm-programmes__track {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.epm-programmes.is-rail .epm-programme__body,
	.epm-programmes:not(.is-rail) .epm-programme__body {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
		grid-template-areas: "main list" "foot list";
		grid-template-rows: 1fr auto;
		column-gap: 2.25rem;
		row-gap: 1.5rem;
		padding: 2rem 2.25rem 2.25rem;
	}
	.epm-programme__list {
		padding-top: 0.35rem;
	}
	.epm-programmes__bridge {
		grid-template-columns: 1fr auto;
		align-items: center;
	}
}

/* ---------- Qué incluye y precio ---------- */
.epm-price__grid {
	display: grid;
	gap: var(--space-7);
}
.epm-price__list {
	display: grid;
	counter-reset: inc;
}
.epm-price__list li {
	display: grid;
	grid-template-columns: 3rem 1fr;
	gap: var(--space-4);
	padding-block: var(--space-5);
	border-top: 1px solid var(--line);
	font-size: clamp(1.05rem, 1rem + 0.3vw, 1.25rem);
	line-height: 1.4;
}
.epm-price__list li:last-child {
	border-bottom: 1px solid var(--line);
}
.epm-price__n {
	font-size: 1.4rem;
	font-weight: 300;
	font-stretch: 70%;
	color: var(--accent);
	font-variant-numeric: tabular-nums;
}
.epm-price__card {
	position: relative;
	display: grid;
	gap: var(--space-4);
	align-self: start;
	padding: clamp(1.75rem, 1.2rem + 2vw, 3rem);
	border-radius: var(--radius-xl);
	background: var(--bg);
	color: var(--fg);
	overflow: hidden;
}
.epm-price__label {
	font-size: var(--type-label);
	font-weight: 650;
	font-stretch: 112%;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--accent);
}
.epm-price__amount {
	font-size: clamp(3.4rem, 2.6rem + 3.4vw, 5.6rem);
	font-weight: 260;
	font-stretch: 68%;
	letter-spacing: -0.02em;
	line-height: 0.9;
	font-variant-numeric: tabular-nums;
}
.epm-price__amount.is-pending {
	font-size: 1.3rem;
	font-weight: 640;
	font-stretch: 100%;
	line-height: 1.35;
}
.epm-price__note {
	color: var(--muted);
}
.epm-price__plan {
	display: grid;
	gap: var(--space-3);
	padding-top: var(--space-4);
	border-top: 1px solid var(--line);
}
.epm-price__plan-title {
	font-weight: 640;
}
.epm-price__plan-list {
	display: grid;
	gap: var(--space-2);
	counter-reset: plazo;
}
.epm-price__plan-list li {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0 var(--space-3);
	counter-increment: plazo;
	color: var(--muted);
}
.epm-price__plan-list li::before {
	content: counter(plazo) ".";
	flex: 0 0 1.5rem;
	color: var(--accent);
	font-variant-numeric: tabular-nums;
}
.epm-price__plan-list li > span:first-of-type {
	flex: 1 1 0;
	min-width: 0;
}
.epm-price__plan-amount {
	color: var(--fg);
	font-weight: 640;
	font-variant-numeric: tabular-nums;
}
.epm-price__travel {
	padding-top: var(--space-4);
	border-top: 1px solid var(--line);
	color: var(--muted);
	font-size: 0.95rem;
}
.epm-price__card .epm-actions {
	margin-top: var(--space-4);
}
.epm-price__trail {
	left: 0;
	right: 0;
	bottom: -1rem;
	width: 100%;
	height: 5rem;
	opacity: 0.6;
}
@media (min-width: 64em) {
	.epm-price__grid {
		grid-template-columns: repeat(12, minmax(0, 1fr));
	}
	.epm-price__main {
		grid-column: 1 / span 7;
	}
	.epm-price__card {
		grid-column: 9 / span 4;
		position: sticky;
		top: calc(var(--header-h) + 2rem);
	}
}

/* ---------- Manifiesto ---------- */
/* Gemelo cinematográfico de la portada: foto a pantalla completa con velo y la frase enorme. */
.epm-manifesto {
	position: relative;
	display: grid;
	align-items: center;
	min-height: 92svh;
	padding-block: var(--space-section);
	overflow: clip;
	isolation: isolate;
}
.epm-manifesto__bg {
	position: absolute;
	inset: 0;
	z-index: -2;
	margin: 0;
}
.epm-manifesto__bg img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: var(--focal, 50% 50%);
	filter: saturate(0.9);
}
.epm-manifesto__veil {
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(180deg, rgb(29 28 25 / 0.75) 0%, rgb(29 28 25 / 0.25) 35%, rgb(29 28 25 / 0.3) 70%, rgb(29 28 25 / 0.85) 100%),
		linear-gradient(90deg, rgb(29 28 25 / 0.72) 0%, rgb(29 28 25 / 0.35) 45%, rgb(29 28 25 / 0) 100%);
}
.epm-manifesto__grid {
	position: relative;
	z-index: 1;
	display: grid;
	gap: var(--space-7);
	align-items: center;
}
.epm-manifesto__quote {
	font-size: var(--type-display);
	font-weight: 640;
	letter-spacing: -0.05em;
	line-height: 0.92;
	text-wrap: balance;
	max-width: 12ch;
	text-shadow: 0 2px 30px rgb(0 0 0 / 0.3);
}
.epm-manifesto__quote .epm-serif {
	color: var(--color-terracota-luz);
}
.epm-manifesto__quote .epm-word {
	display: inline-block;
	white-space: pre;
}
.epm-manifesto__text {
	margin-top: var(--space-6);
	font-size: var(--type-lead);
	line-height: 1.5;
	color: #D9D4C8;
	max-width: 36ch;
}
.epm-manifesto__by {
	margin-top: var(--space-5);
	font-size: var(--type-label);
	font-weight: 560;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--accent);
}
@media (min-width: 64em) {
	.epm-manifesto__grid {
		grid-template-columns: repeat(12, minmax(0, 1fr));
	}
	.epm-manifesto__body {
		grid-column: 1 / span 9;
	}
}

/* Apertura «cine» (la prepara GSAP; sin script, o con «reducir movimiento», el manifiesto se ve a pantalla completa) */
.epm-manifesto.is-cine {
	min-height: 100svh;
	height: 100svh;
	padding-block: clamp(2rem, 6vh, 4rem);
	align-items: end;
	background: var(--color-crema);
}
.epm-manifesto.is-cine .epm-manifesto__bg,
.epm-manifesto.is-cine .epm-manifesto__veil {
	overflow: hidden;
	transform-origin: center;
	will-change: transform;
}
.epm-manifesto.is-cine .epm-manifesto__veil {
	background: linear-gradient(180deg, rgb(29 28 25 / 0.2), rgb(29 28 25 / 0.78));
}
.epm-manifesto.is-cine .epm-manifesto__quote {
	font-size: clamp(3rem, 1.5rem + 7vw, 9rem);
	line-height: 0.9;
}

/* ---------- Opiniones ---------- */
/* «Paseo»: una voz grande cada vez y, al lado, la lista de familias (pestañas con barrita de tiempo). */
.epm-voices__box {
	display: grid;
	gap: var(--space-6);
}
.epm-voices__stage {
	position: relative;
	display: grid;
	padding-top: clamp(3.25rem, 2rem + 3vw, 5rem);
}
.epm-voices__stage::before {
	content: "\201C";
	position: absolute;
	top: 0;
	left: -0.15rem;
	font-family: var(--font-serif);
	font-style: italic;
	font-size: clamp(6rem, 4rem + 6vw, 10rem);
	line-height: 0.8;
	color: var(--deco);
	opacity: 0.55;
}
.epm-voice {
	grid-area: 1 / 1;
}
.epm-voice__fig {
	display: grid;
	gap: clamp(1.5rem, 1rem + 2vw, 2.5rem);
	align-content: start;
	margin: 0;
}
.epm-js .epm-voices__box.has-list .epm-voice {
	opacity: 0;
	visibility: hidden;
	transform: translateY(14px);
	transition: opacity 0.6s ease, transform 0.6s ease, visibility 0s linear 0.6s;
}
.epm-js .epm-voices__box.has-list .epm-voice.is-on {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition: opacity 0.7s ease 0.1s, transform 0.7s var(--motion-ease) 0.1s, visibility 0s;
}
.epm-voice__text p {
	font-size: clamp(1.45rem, 0.95rem + 1.9vw, 2.6rem);
	font-weight: 520;
	letter-spacing: -0.03em;
	line-height: 1.18;
	text-wrap: pretty;
	max-width: 30ch;
}
.epm-voice.is-long .epm-voice__text p {
	font-size: clamp(1.3rem, 0.95rem + 1.4vw, 2.1rem);
	max-width: 34ch;
}
.epm-voice.is-xlong .epm-voice__text p {
	font-size: clamp(1.2rem, 0.95rem + 1vw, 1.75rem);
	max-width: 40ch;
}
.epm-voice__by {
	display: flex;
	align-items: center;
	gap: 0.9rem;
}
.epm-voice__av {
	display: grid;
	place-items: center;
	flex: none;
	width: 3rem;
	height: 3rem;
	border-radius: 50%;
	background: var(--color-terracota);
	color: var(--color-tinta);
	font-weight: 640;
	font-size: 1.05rem;
}
.epm-voice__who {
	display: grid;
	gap: 0.1rem;
}
.epm-voice__name {
	font-weight: 620;
}
.epm-voice__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.15rem 0.6rem;
	font-size: 0.88rem;
	color: var(--muted);
}
.epm-voice__dog {
	font-family: var(--font-serif);
	font-style: italic;
	font-size: 1.2em;
	color: var(--accent);
}
.epm-voices__side {
	display: grid;
	gap: 0.75rem;
	justify-items: start;
}
.epm-voices__list {
	display: flex;
	gap: 0.5rem;
	width: calc(100% + 2 * var(--gutter));
	margin-inline: calc(-1 * var(--gutter));
	padding-inline: var(--gutter);
	overflow-x: auto;
	scrollbar-width: none;
}
.epm-voices__list::-webkit-scrollbar {
	display: none;
}
.epm-voices__tab {
	position: relative;
	flex: none;
	display: grid;
	grid-template-columns: auto 1fr;
	align-items: center;
	gap: 0.25rem 0.85rem;
	min-height: 2.9rem;
	padding: 0.6rem 1.1rem;
	border: 1px solid var(--line);
	border-radius: var(--radius-pill);
	background: var(--surface);
	color: var(--muted);
	text-align: left;
	overflow: hidden;
}
.epm-voices__n {
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	color: var(--accent);
	font-variant-numeric: tabular-nums;
}
.epm-voices__tabwho {
	display: grid;
}
.epm-voices__tabname {
	font-weight: 600;
	color: var(--fg);
	white-space: nowrap;
}
.epm-voices__tabdog {
	display: none;
	font-size: 0.84rem;
}
.epm-voices__tab[aria-selected="true"] {
	border-color: var(--fg);
	color: var(--fg);
}
.epm-voices__bar {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 2px;
	pointer-events: none;
}
.epm-voices__bar span {
	display: block;
	height: 100%;
	background: var(--deco);
	transform: scaleX(0);
	transform-origin: left;
}
.epm-voices__pause {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	min-height: 2.75rem;
	padding: 0 0.25rem;
	border: 0;
	background: none;
	font-size: 0.84rem;
	font-weight: 600;
	color: var(--muted);
}
.epm-voices__pause:hover {
	color: var(--fg);
}
.epm-voices__pause-ico {
	position: relative;
	width: 0.7rem;
	height: 0.8rem;
	border-inline: 3px solid currentColor;
}
.epm-voices__pause[aria-pressed="true"] .epm-voices__pause-ico {
	border: 0;
	border-left: 0.7rem solid currentColor;
	border-block: 0.4rem solid transparent;
	width: 0;
	height: 0;
}
@media (min-width: 64em) {
	.epm-voices .epm-s__head {
		max-width: 52rem;
	}
	.epm-voices__box.has-list {
		grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
		gap: clamp(3rem, 1rem + 5vw, 8rem);
		align-items: center;
	}
	.epm-voices__side {
		justify-items: stretch;
	}
	.epm-voices__list {
		display: grid;
		gap: 0;
		width: auto;
		margin: 0;
		padding: 0;
		overflow: visible;
		border-top: 1px solid var(--line);
	}
	.epm-voices__tab {
		grid-template-columns: 2.75rem 1fr;
		min-height: 0;
		padding: 1.05rem 0.25rem;
		border: 0;
		border-bottom: 1px solid var(--line);
		border-radius: 0;
		background: none;
		transition: padding var(--motion-med) ease;
	}
	.epm-voices__tab:hover,
	.epm-voices__tab[aria-selected="true"] {
		padding-left: 0.75rem;
	}
	.epm-voices__tabdog {
		display: block;
	}
	.epm-voices__bar {
		bottom: -1px;
	}
	.epm-voices__pause {
		justify-self: start;
	}
}

/* ---------- Preguntas frecuentes ---------- */
.epm-faq__grid {
	display: grid;
	gap: var(--space-6);
}
.epm-faq__item {
	border-top: 1px solid var(--line);
}
.epm-faq__item:last-child {
	border-bottom: 1px solid var(--line);
}
.epm-faq__item summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-4);
	min-height: 3.5rem;
	padding-block: var(--space-5);
	list-style: none;
	cursor: pointer;
	font-size: clamp(1.08rem, 1rem + 0.35vw, 1.3rem);
	font-weight: 650;
	letter-spacing: -0.01em;
	line-height: 1.3;
}
.epm-faq__item summary::-webkit-details-marker {
	display: none;
}
.epm-faq__icon {
	display: inline-grid;
	place-items: center;
	flex: none;
	width: 2.4rem;
	height: 2.4rem;
	border: 1.5px solid var(--line-strong);
	border-radius: 50%;
	transition: transform var(--motion-med) var(--motion-ease), background-color var(--motion-fast) ease;
}
.epm-faq__item[open] .epm-faq__icon {
	transform: rotate(45deg);
	background: var(--fg);
	color: var(--bg);
	border-color: var(--fg);
}
.epm-faq__answer {
	padding-bottom: var(--space-6);
	color: var(--muted);
	max-width: 62ch;
}
.epm-faq__item[open] .epm-faq__answer {
	animation: epm-step-in var(--motion-med) var(--motion-ease) both;
}
@media (min-width: 64em) {
	.epm-faq__grid {
		grid-template-columns: repeat(12, minmax(0, 1fr));
	}
	.epm-faq__head {
		grid-column: 1 / span 4;
		position: sticky;
		top: calc(var(--header-h) + 2rem);
		align-self: start;
	}
	.epm-faq__list {
		grid-column: 6 / span 7;
	}
	.epm-faq__head .epm-h2 {
		font-size: clamp(2rem, 1.2rem + 2vw, 3.4rem);
	}
}

/* ---------- Encaje (grupos) ---------- */
.epm-fit__contrast {
	margin-bottom: var(--space-7);
}
.epm-fit__contrast .epm-h4 {
	margin-bottom: var(--space-4);
}
.epm-fit__table {
	width: 100%;
	border-collapse: collapse;
}
.epm-fit__table th {
	padding: 0 0 var(--space-3);
	text-align: left;
	font-size: var(--type-label);
	font-weight: 650;
	font-stretch: 112%;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--muted);
}
.epm-fit__table td {
	padding: var(--space-4) var(--space-4) var(--space-4) 0;
	border-top: 1px solid var(--line);
	vertical-align: top;
	line-height: 1.4;
}
.epm-fit__table td:last-child {
	font-weight: 600;
}
.epm-fit__yes {
	display: flex;
	gap: 0.6rem;
}
.epm-fit__table td:last-child .epm-icon {
	color: var(--accent);
	margin-top: 0.15em;
	stroke-width: 2;
}
.epm-fit__no {
	color: var(--muted);
	text-decoration: line-through;
	text-decoration-color: var(--deco);
	text-decoration-thickness: 1.5px;
}
.epm-fit__lists {
	display: grid;
	gap: var(--space-5);
}
.epm-fit__list {
	display: grid;
	gap: var(--space-4);
	padding: clamp(1.4rem, 1rem + 1.6vw, 2.5rem);
	border-radius: var(--radius-lg);
	background: var(--bg);
	color: var(--fg);
}
.epm-fit__note {
	margin-top: var(--space-6);
	font-size: var(--type-lead);
	max-width: 52ch;
}
@media (min-width: 56em) {
	.epm-fit__lists {
		grid-template-columns: 1fr 1fr;
	}
}

/* ---------- Comparativa ---------- */
.epm-compare__scroll {
	overflow-x: auto;
	border-radius: var(--radius-lg);
	border: 1px solid var(--line);
	background: var(--surface);
}
.epm-compare__table {
	width: 100%;
	min-width: 34rem;
	border-collapse: collapse;
}
.epm-compare__table th,
.epm-compare__table td {
	padding: var(--space-4) var(--space-5);
	border-bottom: 1px solid var(--line);
	text-align: left;
	vertical-align: top;
	line-height: 1.4;
}
.epm-compare__table tr:last-child > * {
	border-bottom: 0;
}
.epm-compare__table thead th {
	font-size: var(--type-h4);
	font-weight: 740;
	font-stretch: 104%;
	letter-spacing: -0.02em;
}
.epm-compare__table tbody th {
	font-size: var(--type-small);
	font-weight: 650;
	color: var(--muted);
	width: 32%;
}
.epm-compare__mark {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
}
.epm-compare__table td.is-yes .epm-icon {
	color: var(--accent);
	stroke-width: 2;
}
.epm-compare__table td.is-no {
	color: var(--muted);
}
.epm-compare__hint {
	caption-side: top;
	padding: var(--space-3) var(--space-5) 0;
	font-size: var(--type-small);
	color: var(--muted);
	text-align: left;
}
@media (min-width: 40em) {
	.epm-compare__hint {
		position: absolute !important;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
	}
}
.epm-compare__note {
	margin-top: var(--space-5);
	color: var(--muted);
}

/* ---------- Llamada a la acción ---------- */
/* Cierre «Paseo»: siempre terracota, sin foto. Titular a la izquierda; texto, botones y disponibilidad a la derecha.
   Si es la última sección, el pie terracota la continúa (una línea fina las separa). */
.epm-cta {
	overflow: clip;
	padding-block: clamp(4rem, 2rem + 6vw, 7rem) clamp(3rem, 1.5rem + 4vw, 5rem);
}
.epm-cta__grid {
	display: grid;
	gap: var(--space-6);
}
.epm-cta__text {
	display: grid;
	gap: var(--space-4);
	justify-items: start;
}
.epm-cta__title {
	font-size: clamp(2.3rem, 1.3rem + 3.6vw, 4.8rem);
	font-weight: 640;
	letter-spacing: -0.045em;
	line-height: 0.95;
	max-width: 14ch;
}
.epm-cta__title .epm-serif {
	color: var(--color-tinta);
}
.epm-cta__side {
	display: grid;
	gap: var(--space-5);
	justify-items: start;
	align-content: end;
}
.epm-cta .epm-lead {
	color: var(--muted);
	max-width: 40ch;
	font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem);
}
@media (min-width: 64em) {
	.epm-cta__grid {
		grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
		align-items: end;
		gap: var(--space-8);
	}
}
.epm-availability {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.45em 0.95em;
	border: 1px solid var(--line-strong);
	border-radius: var(--radius-pill);
	font-size: 0.82rem;
	font-weight: 560;
}
.epm-availability__dot {
	width: 0.5rem;
	height: 0.5rem;
	border-radius: 50%;
	background: var(--deco);
}
.epm-avail-s {
	padding-block: var(--space-6);
}

/* ---------- Descuentos ---------- */
.epm-deals__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
	gap: var(--space-5);
}
.epm-deal {
	display: flex;
	flex-direction: column;
	border-radius: var(--radius-lg);
	background: var(--surface);
	border: 1px solid var(--line);
	overflow: hidden;
}
.epm-deal__media {
	aspect-ratio: 16 / 10;
	background: var(--color-hueso);
}
.epm-deal__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.epm-deal__body {
	display: grid;
	gap: var(--space-3);
	padding: var(--space-5);
	flex: 1;
	align-content: start;
}
.epm-deal__brand {
	font-size: var(--type-h4);
	font-weight: 740;
	letter-spacing: -0.02em;
}
.epm-deal__cat {
	color: var(--muted);
	font-size: var(--type-small);
}
.epm-deal__code {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 0.75rem;
	padding: 0.6rem 0.6rem 0.6rem 0.9rem;
	border: 1.5px dashed var(--line-strong);
	border-radius: var(--radius-md);
	background: var(--bg);
}
.epm-deal__code-label {
	font-size: 0.72rem;
	font-weight: 650;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--muted);
}
.epm-deal__code code {
	font-family: var(--font);
	font-size: 1.05rem;
	font-weight: 700;
	font-stretch: 112%;
	letter-spacing: 0.02em;
}
.epm-deal__copy {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	min-height: 2.75rem;
	margin-left: auto;
	padding: 0.4rem 0.9rem;
	border: 0;
	border-radius: var(--radius-pill);
	background: var(--color-tinta);
	color: var(--color-crema);
	font-size: 0.88rem;
	font-weight: 650;
}
.epm-deal__copy.is-done {
	background: var(--color-salvia-osc);
}
.epm-deal__note,
.epm-deals__note {
	font-size: var(--type-small);
	color: var(--muted);
}
.epm-deals__note {
	margin-top: var(--space-6);
	max-width: 60ch;
}

/* ---------- Contacto y formularios ---------- */
.epm-contact__grid {
	display: grid;
	gap: var(--space-7);
}
.epm-contact__aside {
	display: grid;
	gap: var(--space-4);
	align-content: start;
	justify-items: start;
	padding: clamp(1.6rem, 1.2rem + 1.6vw, 2.75rem);
	border-radius: var(--radius-xl);
	background: var(--bg);
	color: var(--fg);
}
.epm-contact__aside-title {
	font-size: var(--type-h3);
	font-weight: 720;
	letter-spacing: -0.03em;
	line-height: 1.05;
}
.epm-contact__aside p {
	color: var(--muted);
}
.epm-contact__area {
	display: inline-flex;
	gap: 0.5rem;
	align-items: center;
	font-size: var(--type-small);
}
@media (min-width: 64em) {
	.epm-contact__grid {
		grid-template-columns: repeat(12, minmax(0, 1fr));
	}
	.epm-contact__main {
		grid-column: 1 / span 7;
	}
	.epm-contact__aside {
		grid-column: 9 / span 4;
		position: sticky;
		top: calc(var(--header-h) + 2rem);
		align-self: start;
	}
}
.epm-form form,
form.epm-form {
	display: grid;
	gap: var(--space-5);
}
.epm-form__grid {
	display: grid;
	gap: var(--space-5);
}
@media (min-width: 40em) {
	.epm-form__grid {
		grid-template-columns: 1fr 1fr;
	}
}
.epm-field {
	display: grid;
	gap: 0.45rem;
}
.epm-field label,
.epm-field__label {
	font-size: 0.95rem;
	font-weight: 640;
}
.epm-field .epm-req {
	color: var(--accent);
}
.epm-form input[type="text"],
.epm-form input[type="email"],
.epm-form input[type="tel"],
.epm-form input[type="number"],
.epm-form textarea,
.epm-search input[type="search"] {
	width: 100%;
	min-height: 3.25rem;
	padding: 0.8rem 1rem;
	border: 1.5px solid var(--line-strong);
	border-radius: var(--radius-md);
	background: var(--color-blanco);
	color: var(--color-tinta);
	font-size: 1rem;
	line-height: 1.4;
	transition: border-color var(--motion-fast) ease, box-shadow var(--motion-fast) ease;
}
.epm-form textarea {
	min-height: 8.5rem;
	resize: vertical;
}
.epm-form input:focus,
.epm-form textarea:focus,
.epm-search input:focus {
	outline: none;
	border-color: var(--color-terracota-osc);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-terracota) 35%, transparent);
}
.epm-field--check .wpcf7-list-item {
	margin: 0;
}
.epm-field--check label {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 0.7rem;
	align-items: start;
	font-weight: 500;
	line-height: 1.45;
}
.epm-form input[type="checkbox"] {
	width: 1.35rem;
	height: 1.35rem;
	margin: 0.1rem 0 0;
	accent-color: var(--color-terracota-osc);
}
.epm-form .wpcf7-not-valid-tip {
	display: block;
	margin-top: 0.35rem;
	font-size: 0.9rem;
	font-weight: 600;
	color: #9E2B12;
}
.epm-form .wpcf7-not-valid {
	border-color: #9E2B12 !important;
}
.epm-form .wpcf7-response-output {
	margin: 0 !important;
	padding: 0.9rem 1.1rem !important;
	border: 1.5px solid var(--line-strong) !important;
	border-radius: var(--radius-md);
	font-weight: 600;
}
.epm-form.sent .wpcf7-response-output {
	border-color: var(--color-salvia-osc) !important;
	background: var(--color-salvia-claro);
}
.epm-form.invalid .wpcf7-response-output,
.epm-form.failed .wpcf7-response-output,
.epm-form.spam .wpcf7-response-output {
	border-color: #9E2B12 !important;
	color: #7E220E;
	background: #FBEAE4;
}
.epm-form .wpcf7-spinner {
	margin: 0 0 0 0.75rem;
}
.epm-form input[type="submit"] {
	justify-self: start;
	min-height: 3.15rem;
	padding: 0.85em 1.6em;
	border: 0;
	border-radius: var(--radius-pill);
	background: var(--btn-bg);
	color: var(--btn-fg);
	font-weight: 650;
	cursor: pointer;
}
.epm-form input[type="submit"]:hover {
	background: var(--color-tinta);
	color: var(--color-crema);
}
/* Casilla opcional de consejos y ofertas de la guía, destacada para que se vea (nunca marcada de serie). */
.epm-field--destacado {
	padding: 0.95rem 1.1rem;
	border: 1.5px solid var(--color-terracota-claro);
	border-radius: var(--radius-md);
	background: var(--color-blanco);
}
.epm-field--destacado strong {
	color: var(--color-terracota-osc);
	font-weight: 700;
}
.epm-form__privacy {
	font-size: var(--type-small);
	color: var(--muted);
}
.epm-form__privacy a,
.epm-field--check a {
	color: inherit;
	font-weight: 650;
}
.cf-turnstile,
.cf7-cf-turnstile {
	min-height: 65px;
}

/* ---------- Pasos ---------- */
.epm-steps__grid {
	display: grid;
	gap: var(--space-7);
}
.epm-steps__head .epm-s__head {
	margin-bottom: var(--space-6);
}
.epm-steps__media {
	max-width: 22rem;
	aspect-ratio: 4 / 5;
}
.epm-steps__list {
	position: relative;
	display: grid;
	gap: 0;
}
.epm-steps--lista .epm-steps__list::before {
	content: "";
	position: absolute;
	left: 1.55rem;
	top: 1.5rem;
	bottom: 1.5rem;
	border-left: 1.5px dashed var(--line-strong);
}
.epm-steps__item {
	position: relative;
	display: grid;
	grid-template-columns: 3.1rem 1fr;
	gap: var(--space-5);
	padding-block: var(--space-5);
}
.epm-steps__marker {
	position: relative;
	display: grid;
	place-items: center;
	width: 3.1rem;
	height: 3.1rem;
	border-radius: 50%;
	background: var(--bg);
	border: 1.5px solid var(--deco);
	font-size: 1.05rem;
	font-weight: 600;
	font-stretch: 75%;
	color: var(--accent);
	font-variant-numeric: tabular-nums;
}
.epm-steps__label {
	margin-bottom: 0.3rem;
	font-size: var(--type-label);
	font-weight: 650;
	font-stretch: 112%;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--accent);
}
.epm-steps__title {
	margin-bottom: 0.4rem;
	font-size: var(--type-h4);
	font-weight: 700;
	letter-spacing: -0.015em;
	line-height: 1.2;
}
.epm-steps__content p:not(.epm-steps__label) {
	color: var(--muted);
	max-width: 52ch;
}
.epm-steps--tarjetas .epm-steps__list {
	gap: var(--space-4);
}
.epm-steps--tarjetas .epm-steps__item {
	padding: var(--space-5);
	border-radius: var(--radius-lg);
	background: var(--surface);
	border: 1px solid var(--line);
}
.epm-steps__note {
	margin-top: var(--space-6);
	padding: var(--space-5);
	border-left: 3px solid var(--deco);
	background: color-mix(in srgb, var(--surface) 70%, transparent);
	max-width: 56ch;
}
.epm-steps .epm-actions {
	margin-top: var(--space-6);
}
@media (min-width: 48em) {
	.epm-steps--tarjetas .epm-steps__list {
		grid-template-columns: 1fr 1fr;
	}
}
@media (min-width: 72em) {
	.epm-steps--tarjetas .epm-steps__list {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}
.epm-steps--tarjetas .epm-steps__item {
	grid-template-columns: 1fr;
	align-content: start;
	gap: var(--space-4);
}
@media (min-width: 64em) {
	.epm-steps__grid {
		grid-template-columns: repeat(12, minmax(0, 1fr));
	}
	.epm-steps--tarjetas .epm-steps__head,
	.epm-steps--tarjetas .epm-steps__body {
		grid-column: 1 / -1;
		position: static;
	}
	.epm-steps__head {
		grid-column: 1 / span 5;
		align-self: start;
		position: sticky;
		top: calc(var(--header-h) + 2rem);
	}
	.epm-steps__body {
		grid-column: 7 / span 6;
	}
}

/* ---------- Galería, ebook, texto ---------- */
.epm-gallery__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
	gap: var(--space-5);
}
.epm-gallery__item img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: var(--radius-md);
}
/* Guía descargable (2026-11-04): foto grande hasta el borde a la izquierda y, al lado, el titular, la entradilla y
   el formulario en una tarjeta crema. En móvil y tableta, la foto a todo el ancho arriba. */
.epm-ebook {
	overflow-x: clip;
}
.epm-ebook__grid {
	display: grid;
	gap: var(--space-7);
}
.epm-ebook__media {
	position: relative;
	margin: 0 calc(-1 * var(--gutter));
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--color-hueso);
}
.epm-ebook__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: var(--focal, 50% 40%);
}
.epm-ebook__text {
	align-self: center;
}
.epm-ebook .epm-h2 {
	font-size: clamp(2.2rem, 1.3rem + 2.4vw, 3.9rem);
}
.epm-ebook .epm-s__head {
	max-width: 36rem;
	margin-bottom: var(--space-5);
}
.epm-ebook__text > p {
	max-width: 34rem;
	font-size: clamp(1.05rem, 1rem + 0.3vw, 1.25rem);
	line-height: 1.55;
}
.epm-ebook__form {
	margin-top: var(--space-6);
	padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
	border-radius: 1.25rem;
	background: var(--color-crema);
	box-shadow: 0 40px 70px -45px rgb(29 28 25 / 0.45);
}
.epm-ebook__form .epm-form__privacy {
	font-size: 0.85rem;
}
@media (min-width: 64em) {
	.epm-ebook__grid {
		grid-template-columns: repeat(12, minmax(0, 1fr));
		align-items: stretch;
	}
	.epm-ebook__media {
		grid-column: 1 / span 6;
		margin: 0 0 0 calc(-1 * max(var(--gutter), (100vw - var(--container-max)) / 2));
		aspect-ratio: auto;
		min-height: 40rem;
		border-radius: 0 var(--radius-xl) var(--radius-xl) 0;
	}
	.epm-ebook__text {
		grid-column: 7 / span 6;
		padding-left: var(--space-6);
	}
	.epm-ebook__grid.no-image .epm-ebook__text {
		grid-column: 1 / span 8;
		padding-left: 0;
	}
}

/* ---------- Prosa (artículos, legales, textos) ---------- */
.epm-prose {
	font-size: clamp(1.05rem, 1rem + 0.2vw, 1.15rem);
	line-height: 1.72;
}
.epm-prose > * + * {
	margin-top: 1.05em;
}
.epm-prose h2 {
	margin-top: 2.2em;
	font-size: clamp(1.55rem, 1.3rem + 1.1vw, 2.2rem);
	font-weight: 720;
	font-stretch: 104%;
	letter-spacing: -0.03em;
	line-height: 1.12;
	text-wrap: balance;
}
.epm-prose h3 {
	margin-top: 1.8em;
	font-size: clamp(1.2rem, 1.1rem + 0.5vw, 1.45rem);
	font-weight: 700;
	letter-spacing: -0.015em;
	line-height: 1.25;
}
.epm-prose h4 {
	margin-top: 1.5em;
	font-size: 1.08rem;
	font-weight: 700;
}
.epm-prose h2 + *,
.epm-prose h3 + *,
.epm-prose h4 + * {
	margin-top: 0.6em;
}
.epm-prose ul,
.epm-prose ol {
	padding-left: 1.3em;
}
.epm-prose ul {
	list-style: none;
	padding-left: 0;
}
.epm-prose ul > li {
	position: relative;
	padding-left: 1.35em;
}
.epm-prose ul > li::before {
	content: "";
	position: absolute;
	left: 0.2em;
	top: 0.72em;
	width: 0.42em;
	height: 0.42em;
	border-radius: 50%;
	background: var(--deco);
}
.epm-prose li + li {
	margin-top: 0.45em;
}
.epm-prose li > p {
	margin: 0;
}
.epm-prose a {
	color: var(--accent);
	font-weight: 600;
	text-decoration-thickness: 1.5px;
}
.epm-prose a:hover {
	color: var(--fg);
}
.epm-prose strong {
	font-weight: 700;
}
.epm-prose blockquote {
	padding-left: 1.25em;
	border-left: 3px solid var(--deco);
	font-size: 1.15em;
	font-weight: 520;
}
.epm-prose img {
	border-radius: var(--radius-md);
}
.epm-prose table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.95em;
}
.epm-prose th,
.epm-prose td {
	padding: 0.6em 0.8em;
	border: 1px solid var(--line);
	text-align: left;
	vertical-align: top;
}

/* ---------- Blog ---------- */
.epm-blog-head {
	padding-bottom: var(--space-7);
	overflow: clip;
}
.epm-blog-head .epm-wrap {
	position: relative;
	display: grid;
	gap: var(--space-5);
}
.epm-blog-head .epm-h1 {
	max-width: 16ch;
}
.epm-blog-head__trail {
	position: relative;
	width: min(100%, 36rem);
	height: 4.5rem;
}
.epm-blog-list {
	padding-top: 0;
}
.epm-cards {
	display: grid;
	gap: var(--space-7) var(--space-6);
}
@media (min-width: 40em) {
	.epm-cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (min-width: 64em) {
	.epm-cards {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
	.epm-card--featured {
		grid-column: 1 / -1;
	}
	.epm-card--featured .epm-card__link {
		grid-template-columns: 7fr 5fr;
		align-items: center;
		gap: var(--space-7);
	}
	.epm-card--featured .epm-card__title {
		font-size: var(--type-h3);
	}
}
.epm-card__link {
	display: grid;
	gap: var(--space-5);
	text-decoration: none;
	color: inherit;
}
.epm-card__media {
	display: block;
	aspect-ratio: 3 / 2;
	border-radius: var(--radius-lg);
	overflow: hidden;
	background: var(--color-hueso);
}
.epm-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform var(--motion-slow) var(--motion-ease);
}
.epm-card__link:hover .epm-card__img {
	transform: scale(1.04);
}
.epm-card__body {
	display: grid;
	gap: var(--space-3);
	align-content: start;
}
.epm-card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-3);
	font-size: 0.85rem;
	color: var(--muted);
}
.epm-card__title {
	font-size: clamp(1.3rem, 1.15rem + 0.6vw, 1.65rem);
	font-weight: 720;
	letter-spacing: -0.025em;
	line-height: 1.12;
	text-wrap: balance;
}
.epm-card__excerpt {
	color: var(--muted);
}
.epm-card__more {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	font-weight: 650;
	color: var(--accent);
}
.epm-card__link:hover .epm-card__more .epm-icon {
	transform: translateX(3px);
}
.epm-card__more .epm-icon {
	transition: transform var(--motion-med) var(--motion-ease);
}
.nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-3);
	margin-top: var(--space-7);
}
.nav-links .page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 2.9rem;
	min-height: 2.9rem;
	padding: 0 0.8rem;
	border: 1.5px solid var(--line-strong);
	border-radius: var(--radius-pill);
	text-decoration: none;
	font-weight: 650;
}
.nav-links .page-numbers.current {
	background: var(--fg);
	color: var(--bg);
	border-color: var(--fg);
}

/* Artículo */
.epm-article__head {
	padding-block: clamp(2.5rem, 1.5rem + 4vw, 5rem) var(--space-7);
	background: var(--bg);
}
.epm-article__head .epm-wrap {
	display: grid;
	gap: var(--space-5);
}
.epm-article__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-4);
}
.epm-article__back {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	min-height: 2.75rem;
	font-weight: 650;
	text-decoration: none;
}
.epm-article__title {
	font-size: clamp(2.2rem, 1.4rem + 3.4vw, 4.4rem);
	font-weight: 740;
	font-stretch: 104%;
	letter-spacing: -0.04em;
	line-height: 1;
	text-wrap: balance;
}
.epm-article__byline {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	font-size: var(--type-small);
	color: var(--muted);
}
.epm-article__figure {
	margin-block: 0 var(--space-7);
}
.epm-article__img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border-radius: var(--radius-lg);
}
.epm-article__body {
	padding-bottom: var(--space-7);
}
.epm-article__body > p:first-child {
	font-size: 1.2em;
	line-height: 1.6;
}
.epm-article__aside {
	display: grid;
	gap: var(--space-5);
	padding-bottom: var(--space-section);
}
.epm-author {
	display: grid;
	gap: var(--space-3);
	padding-top: var(--space-6);
	border-top: 1px solid var(--line);
}
.epm-author__name {
	font-size: var(--type-h4);
	font-weight: 720;
}
.epm-author p:not(.epm-eyebrow):not(.epm-author__name) {
	color: var(--muted);
}
.epm-article__cta {
	display: grid;
	gap: var(--space-4);
	padding: clamp(1.5rem, 1rem + 2vw, 2.75rem);
	border-radius: var(--radius-xl);
	background: var(--bg);
	color: var(--fg);
}
.epm-article__cta-title {
	font-size: var(--type-h3);
	font-weight: 720;
	letter-spacing: -0.03em;
	line-height: 1.05;
}
.epm-cards--three {
	margin-top: var(--space-6);
}
.epm-related .epm-card--featured {
	grid-column: auto;
}

/* Páginas clásicas (legales) */
.epm-classic__head {
	padding-block: clamp(2.5rem, 1.5rem + 4vw, 5rem) var(--space-6);
	background: var(--bg);
}
.epm-classic__head .epm-wrap {
	display: grid;
	gap: var(--space-4);
}
.epm-classic__date {
	font-size: var(--type-small);
	color: var(--muted);
}
.epm-classic__body {
	padding-block: var(--space-7) var(--space-section);
}

/* 404 y búsqueda */
.epm-404 {
	overflow: clip;
	min-height: 70vh;
}
.epm-404__grid {
	display: grid;
	gap: var(--space-7);
}
.epm-404__grid > div {
	display: grid;
	gap: var(--space-5);
	justify-items: start;
}
.epm-404__search {
	width: min(100%, 30rem);
	margin-top: var(--space-4);
}
.epm-404__list {
	display: grid;
	gap: 0;
	list-style: none;
	padding: 0;
	margin-top: var(--space-4);
}
.epm-404__list a {
	display: flex;
	min-height: 3rem;
	align-items: center;
	border-bottom: 1px solid var(--line);
	font-weight: 650;
	text-decoration: none;
}
.epm-404__trail {
	left: 0;
	right: 0;
	bottom: 2rem;
	width: 100%;
	height: 7rem;
	opacity: 0.6;
}
@media (min-width: 64em) {
	.epm-404__grid {
		grid-template-columns: 7fr 4fr;
		gap: var(--space-8);
	}
}
.epm-search {
	display: grid;
	gap: 0.5rem;
}
.epm-search label {
	font-weight: 640;
	font-size: 0.95rem;
}
.epm-search__row {
	display: flex;
	gap: var(--space-2);
}
.epm-results {
	display: grid;
}
.epm-results a {
	display: grid;
	gap: 0.3rem;
	padding-block: var(--space-5);
	border-top: 1px solid var(--line);
	text-decoration: none;
}
.epm-results__title {
	font-size: var(--type-h4);
	font-weight: 700;
}
.epm-results__excerpt {
	color: var(--muted);
}

/* ==========================================================================
   Pie «Paseo» (2026-10-28): clásico, en terracota. Llamada arriba solo si la página no cierra ya con una.
   ========================================================================== */
.epm-footer {
	position: relative;
	background: var(--bg);
	color: var(--fg);
	overflow: clip;
	padding-bottom: calc(1.5rem + 5rem);
}
@media (min-width: 64em) {
	.epm-footer {
		padding-bottom: 0;
	}
}
.epm-footer a:not(.epm-btn) {
	color: inherit;
	text-decoration: none;
}
.epm-footer__band {
	display: grid;
	gap: var(--space-6);
	padding-block: clamp(4rem, 2rem + 6vw, 7rem) clamp(3rem, 1.5rem + 4vw, 5rem);
}
.epm-footer__statement {
	font-size: clamp(2.3rem, 1.3rem + 3.6vw, 4.8rem);
	font-weight: 640;
	font-stretch: 100%;
	letter-spacing: -0.045em;
	line-height: 0.95;
	max-width: 14ch;
	text-wrap: balance;
}
.epm-footer__statement .epm-serif {
	color: var(--color-tinta);
}
.epm-footer__cta {
	display: grid;
	gap: var(--space-5);
	justify-items: start;
	align-content: end;
}
.epm-footer__cta p {
	max-width: 40ch;
	color: var(--muted);
	font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem);
}
.epm-footer__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2.5rem 2rem;
	padding-block: clamp(3rem, 2rem + 3vw, 4.5rem);
	border-top: 1px solid var(--line);
}
.epm-footer__about {
	grid-column: 1 / -1;
	display: grid;
	gap: 1rem;
	align-content: start;
	max-width: 30rem;
}
.epm-footer__about p {
	color: var(--muted);
	font-size: 0.95rem;
}
.epm-footer__brand {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	justify-self: start;
	font-size: 1.15rem;
	font-weight: 660;
	letter-spacing: -0.02em;
}
.epm-footer__brand svg {
	width: 2.6rem;
	height: 2.6rem;
}
.epm-footer__area {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.84rem;
	font-weight: 560;
	color: var(--fg) !important;
}
.epm-footer__title {
	margin-bottom: 1rem;
	font-size: 0.74rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #3A1A0E;
}
.epm-footer__list {
	display: grid;
	gap: 0.65rem;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 0.95rem;
}
.epm-footer__list a {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	min-height: 1.75rem;
	padding-bottom: 1px;
	background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
	transition: background-size 0.35s ease;
}
.epm-footer__list a:hover,
.epm-footer__list a:focus-visible {
	background-size: 100% 1px;
}
.epm-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 1rem 2rem;
	padding-block: 1.5rem 2rem;
	border-top: 1px solid var(--line);
	font-size: 0.8rem;
	color: var(--muted);
}
.epm-footer__legalnav {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem 1.25rem;
}
.epm-footer__inline {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem 1.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
.epm-footer__inline a {
	display: inline-flex;
	align-items: center;
	min-height: 1.75rem;
}
.epm-footer__inline a:hover,
.epm-footer__inline a:focus-visible {
	text-decoration: underline;
	text-underline-offset: 0.2em;
}
/* La llamada de la última sección y el pie forman un solo cierre */
.epm-s--cta + .epm-footer,
.epm-main:has(> .epm-s--cta:last-child) + .epm-footer {
	margin-top: 0;
}
@media (min-width: 48em) {
	.epm-footer__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}
@media (min-width: 64em) {
	.epm-footer__band {
		grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
		align-items: end;
		gap: var(--space-8);
	}
	.epm-footer__grid {
		grid-template-columns: 1.4fr 1.6fr 1fr;
		gap: 3rem;
	}
	.epm-footer__col--nav .epm-footer__list {
		display: block;
		columns: 2;
		column-gap: 2rem;
	}
	.epm-footer__col--nav .epm-footer__list li {
		break-inside: avoid;
		margin-bottom: 0.65rem;
	}
	.epm-footer__about {
		grid-column: auto;
	}
}

/* ==========================================================================
   Movimiento
   ========================================================================== */
@keyframes epm-rise {
	from {
		transform: translateY(18px);
	}
	to {
		transform: none;
	}
}
@keyframes epm-settle {
	from {
		opacity: 0;
		transform: translateY(24px) rotate(1deg);
	}
	to {
		opacity: 1;
		transform: none;
	}
}
@keyframes epm-step-in {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}
.epm-js [data-reveal] {
	opacity: 0;
	transform: translateY(26px);
	transition: opacity var(--motion-slow) var(--motion-ease), transform var(--motion-slow) var(--motion-ease);
	transition-delay: calc(var(--i, 0) * 90ms);
}
.epm-js [data-reveal].is-in {
	opacity: 1;
	transform: none;
}
.epm-js .epm-frame[data-reveal],
.epm-js [data-reveal] .epm-frame {
	transition-property: opacity, transform;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
	*,
	*::before,
	*::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
		transition-delay: 0s !important;
	}
	.epm-js [data-reveal] {
		opacity: 1;
		transform: none;
	}
	.epm-js .epm-trail path,
	.epm-method__line-fg {
		stroke-dashoffset: 0 !important;
	}
	.epm-method__steps::after {
		transform: none;
	}
}

@media print {
	.epm-header,
	.epm-sticky,
	.epm-footer__cta,
	.epm-trail {
		display: none !important;
	}
	.epm-s::after {
		display: none;
	}
}

/* Con el menú móvil abierto, el botón de preferencias de cookies no estorba. */
.epm-menu-open .wsch-root .wsch-floating {
	display: none;
}

/* ==========================================================================
   Capa «Noche cálida» (2026-10-28): cabecera flotante, menú, barra móvil, pie y movimiento con GSAP
   ========================================================================== */

html,
body {
	background: var(--color-crema);
}
body {
	color: var(--color-tinta);
}
.epm-s::after {
	opacity: 0.04;
}

/* Cabecera «Paseo» (2026-10-28): pastilla flotante. Oscura y translúcida sobre la portada oscura; clara al salir de
   ella (o desde el principio en páginas sin portada oscura). Se esconde al bajar y vuelve al subir (GSAP).
   El fondo y el desenfoque van en una capa propia de la pastilla: puestos en la cabecera, encerrarían el panel fijo
   del menú móvil. */
.epm-header {
	position: fixed;
	left: var(--gutter);
	right: var(--gutter);
	top: clamp(0.6rem, 1.4vw, 1.1rem);
	border: 0;
	--fg: var(--color-crema);
	color: var(--color-crema);
	transition: transform 450ms var(--motion-ease);
}
.admin-bar .epm-header {
	top: calc(var(--wp-admin--admin-bar--height, 0px) + 0.75rem);
}
.epm-header::before {
	content: none;
}
.epm-header.is-hidden {
	transform: translateY(calc(-100% - 1.5rem));
}
.epm-header__inner {
	position: relative;
	width: auto;
	max-width: 78rem;
	min-height: 0;
	margin-inline: auto;
	padding: 0.45rem 0.45rem 0.45rem 1rem;
	gap: 1rem;
	border-radius: var(--radius-pill);
	isolation: isolate;
}
.epm-header__inner::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	border-radius: inherit;
	background: rgb(29 28 25 / 0.38);
	border: 1px solid rgb(243 240 232 / 0.18);
	-webkit-backdrop-filter: blur(14px) saturate(1.2);
	backdrop-filter: blur(14px) saturate(1.2);
	transition: background-color var(--motion-med) ease, border-color var(--motion-med) ease, box-shadow var(--motion-med) ease;
}
.epm-brand {
	flex: none;
	margin-right: 0;
	color: inherit;
}
.epm-brand__mark {
	width: 2.25rem;
	height: 2.25rem;
}
.epm-brand__name {
	font-size: 0.78rem;
}
.epm-header__actions {
	margin-left: auto;
	gap: 0.4rem;
}
.epm-header__cta,
.epm-header .epm-header__cta {
	display: inline-flex;
	min-height: 2.85rem;
	padding: 0.6em 1.25em;
	font-size: 0.9rem;
	white-space: nowrap;
	background: var(--color-terracota);
	border-color: var(--color-terracota);
	color: var(--color-tinta);
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
}
.epm-header__cta:hover,
.epm-header__cta:focus-visible {
	background: var(--color-crema);
	border-color: var(--color-crema);
	color: var(--color-tinta);
}
.epm-menu-toggle {
	justify-content: center;
	width: 2.85rem;
	min-height: 2.85rem;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgb(243 240 232 / 0.14);
	color: inherit;
}
.epm-menu-toggle__label {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
}
/* Estado claro: al salir de la portada oscura, o páginas sin ella */
.epm-header.is-scrolled,
body:not(:has(.epm-main > .epm-hero--s-noche:first-child)) .epm-header {
	--fg: var(--color-tinta);
	color: var(--color-tinta);
}
.epm-header.is-scrolled .epm-header__inner::before,
body:not(:has(.epm-main > .epm-hero--s-noche:first-child)) .epm-header .epm-header__inner::before,
.epm-menu-open .epm-header .epm-header__inner::before {
	background: rgb(251 249 244 / 0.92);
	border-color: var(--color-linea);
	box-shadow: 0 18px 40px -24px rgb(29 28 25 / 0.35);
}
.epm-menu-open .epm-header {
	--fg: var(--color-tinta);
	color: var(--color-tinta);
}
.epm-header.is-scrolled .epm-menu-toggle,
body:not(:has(.epm-main > .epm-hero--s-noche:first-child)) .epm-header .epm-menu-toggle,
.epm-menu-open .epm-menu-toggle {
	background: var(--color-hueso);
}
.epm-header.is-scrolled .epm-header__cta:hover,
.epm-header.is-scrolled .epm-header__cta:focus-visible,
body:not(:has(.epm-main > .epm-hero--s-noche:first-child)) .epm-header .epm-header__cta:hover {
	background: var(--color-tinta);
	border-color: var(--color-tinta);
	color: var(--color-crema);
}

/* Menú móvil: tarjeta clara que cae bajo la pastilla */
@media (max-width: 63.99em) {
	.epm-nav-panel {
		inset: calc(var(--header-h) + 0.5rem) var(--gutter) auto var(--gutter);
		max-height: calc(100svh - var(--header-h) - 1.5rem);
		padding: 0.6rem 0.6rem 1rem;
		gap: 1rem;
		border-radius: 1.25rem;
		background: var(--color-papel);
		color: var(--color-tinta);
		box-shadow: 0 30px 60px -30px rgb(29 28 25 / 0.5), 0 0 0 1px var(--color-linea);
		justify-content: flex-start;
	}
	.admin-bar .epm-nav-panel {
		inset-block-start: calc(var(--header-h) + 0.5rem + var(--wp-admin--admin-bar--height, 0px));
	}
	.epm-menu__link,
	.epm-submenu__link {
		color: var(--color-tinta);
		border-color: transparent;
	}
	.epm-menu__link {
		min-height: 3.1rem;
		padding: 0.5rem 1rem;
		border-radius: 0.75rem;
		font-size: 1.1rem;
		font-weight: 600;
		font-stretch: 100%;
		letter-spacing: -0.01em;
	}
	.epm-menu__link:hover,
	.epm-submenu__link:hover {
		background: var(--color-hueso);
	}
	.epm-submenu {
		padding: 0 0 0.4rem 1rem;
	}
	.epm-submenu__link {
		min-height: 2.75rem;
		padding: 0.4rem 1rem;
		border-radius: 0.75rem;
		font-size: 1rem;
		font-weight: 560;
	}
	.epm-menu__item.is-current > .epm-menu__link,
	.epm-menu__link[aria-current="page"],
	.epm-submenu__link.is-current {
		color: var(--color-terracota-osc);
	}
	.epm-nav-panel__foot {
		padding: 0.25rem 1rem 0;
		border-top: 1px solid var(--color-linea);
		padding-top: 1rem;
	}
	.epm-nav-panel__area {
		color: var(--color-gris-osc);
	}
}
@media (max-width: 29.99em) {
	.epm-header__cta .epm-icon {
		display: none;
	}
	.epm-header__cta,
	.epm-header .epm-header__cta {
		padding: 0.6em 1.05em;
		font-size: 0.86rem;
	}
}
@media (max-width: 23.9em) {
	.epm-brand__name {
		display: none;
	}
	.epm-header__cta,
	.epm-header .epm-header__cta {
		padding: 0.6em 1em;
		font-size: 0.84rem;
	}
}

/* Escritorio: marca a la izquierda, menú centrado con pastillas al pasar, botón a la derecha */
@media (min-width: 64em) {
	:root {
		--header-h: 5rem;
	}
	.epm-header__inner {
		padding-left: 1.1rem;
	}
	.epm-nav-panel {
		flex: 1;
		justify-content: center;
	}
	.epm-header__actions {
		margin-left: 0;
	}
	.epm-menu {
		gap: 0.15rem;
		margin-right: 0;
	}
	.epm-menu__link {
		min-height: 2.6rem;
		padding: 0.5em 0.95em;
		border-radius: var(--radius-pill);
		font-size: 0.94rem;
		font-weight: 560;
		color: inherit;
		transition: background-color var(--motion-fast) ease;
	}
	.epm-menu__link::after {
		content: none;
	}
	.epm-menu__link:hover,
	.epm-menu__toggle[aria-expanded="true"] {
		background: rgb(243 240 232 / 0.14);
	}
	.epm-menu__item.is-current > .epm-menu__link,
	.epm-menu__link[aria-current="page"] {
		color: var(--color-terracota-luz);
	}
	.epm-header.is-scrolled .epm-menu__link:hover,
	.epm-header.is-scrolled .epm-menu__toggle[aria-expanded="true"],
	body:not(:has(.epm-main > .epm-hero--s-noche:first-child)) .epm-header .epm-menu__link:hover {
		background: var(--color-hueso);
	}
	.epm-header.is-scrolled .epm-menu__item.is-current > .epm-menu__link,
	.epm-header.is-scrolled .epm-menu__link[aria-current="page"],
	body:not(:has(.epm-main > .epm-hero--s-noche:first-child)) .epm-header .epm-menu__item.is-current > .epm-menu__link,
	body:not(:has(.epm-main > .epm-hero--s-noche:first-child)) .epm-header .epm-menu__link[aria-current="page"] {
		color: var(--color-terracota-osc);
	}
	.epm-submenu {
		top: calc(100% + 0.9rem);
		left: -0.5rem;
		padding: 0.5rem;
		border-radius: 1rem;
		background: var(--color-papel);
		box-shadow: 0 30px 60px -30px rgb(29 28 25 / 0.5), 0 0 0 1px var(--color-linea);
	}
	.epm-submenu__link {
		color: var(--color-tinta);
		border-radius: 0.6rem;
		padding: 0.4rem 0.8rem;
	}
	.epm-submenu__link:hover {
		background: var(--color-hueso);
	}
	.epm-submenu__link.is-current {
		color: var(--color-terracota-osc);
	}
}

/* Barra fija de móvil */
.epm-sticky {
	background: rgb(243 240 232 / 0.9);
	border-top-color: var(--color-linea);
}

/* Movimiento con GSAP: lo que se prepara con JS no se esconde en CSS (sin script se ve todo) */
.epm-js.epm-gsap [data-reveal] {
	opacity: 1;
	transform: none;
	transition: none;
}
.epm-gsap .epm-method__line-fg {
	transition: none;
}

@keyframes epm-rise-in {
	from {
		opacity: 0;
		transform: translateY(18px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}
@keyframes epm-photo-in {
	from {
		opacity: 0;
		transform: translateY(14px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.epm-gsap .epm-frame img,
	.epm-gsap .epm-manifesto__img {
		transform: none;
	}
	.epm-hero__text > *,
	.epm-hero__media {
		animation: none;
	}
}

/* Páginas que no empiezan por una portada oscura (blog, legales, buscador, 404): la primera sección deja sitio a la
   cabecera fija. (El color claro de la cabecera está en su bloque.) */
.epm-main > :first-child:not(.epm-hero) {
	padding-top: calc(var(--header-h) + var(--space-7));
}

/* Logotipo de la marca (29-oct-2026, kit de Lemon Mi): SVG en línea en el color del texto, así se lee igual en la
   cabecera oscura sobre la portada, en la clara y en el pie terracota. */
.epm-brand__wordmark {
	display: block;
	height: 2.4rem;
	width: auto;
	aspect-ratio: 808 / 318;
}
.epm-footer__brand--logo {
	gap: 0;
}
.epm-footer__brand .epm-footer__logo {
	--epm-logo-knock: var(--bg);
	display: block;
	width: clamp(8.5rem, 22vw, 11rem);
	height: auto;
	aspect-ratio: 908 / 653;
}
@media (max-width: 29.99em) {
	.epm-brand__wordmark {
		height: 2.1rem;
	}
}
@media (max-width: 23.9em) {
	.epm-brand__wordmark {
		height: 1.85rem;
	}
}

/* ==========================================================================
   Menú «Paseo» v2 (2026-11-04): panel del móvil a pantalla completa y desplegable de programas con fichas
   ========================================================================== */

/* Cada ancho pinta su menú: el de escritorio (con desplegable) o el del móvil (programas a la vista). */
.epm-mnav {
	display: none;
}

@media (max-width: 63.99em) {
	.epm-nav {
		display: none;
	}
	.epm-mnav {
		display: grid;
		gap: clamp(1rem, 3svh, 1.75rem);
		align-content: start;
	}

	/* Panel: noche cálida a pantalla completa, abierto desde el botón del menú. La pastilla queda encima. */
	.epm-nav-panel {
		inset: 0;
		z-index: -2;
		max-height: none;
		height: 100dvh;
		padding: calc(var(--header-h) + clamp(1rem, 3svh, 2rem)) var(--gutter) calc(1rem + env(safe-area-inset-bottom));
		gap: clamp(1.25rem, 3svh, 2rem);
		justify-content: space-between;
		border-radius: 0;
		box-shadow: none;
		color: var(--color-crema);
		background:
			radial-gradient(90% 45% at 100% 100%, rgb(220 113 80 / 0.24), transparent 70%),
			radial-gradient(70% 40% at 0% 0%, rgb(243 240 232 / 0.06), transparent 70%),
			var(--color-tinta);
		overscroll-behavior: contain;
		opacity: 1;
		transform: none;
		clip-path: circle(0 at calc(100% - 2.6rem) 2.35rem);
		transition: clip-path 0.55s cubic-bezier(0.65, 0, 0.35, 1), visibility 0s linear 0.55s;
	}
	.epm-menu-open .epm-nav-panel {
		clip-path: circle(150% at calc(100% - 2.6rem) 2.35rem);
		transition: clip-path 0.6s cubic-bezier(0.65, 0, 0.35, 1);
	}
	.epm-menu-open .epm-header {
		transform: none;
	}

	/* La pastilla, oscura mientras el menú está abierto; su botón de contacto se aparta (el panel trae el suyo). */
	.epm-menu-open:root body .epm-header[data-epm-header] {
		--fg: var(--color-crema);
		color: var(--color-crema);
	}
	.epm-menu-open:root body .epm-header[data-epm-header] .epm-header__inner::before {
		background: rgb(243 240 232 / 0.07);
		border-color: rgb(243 240 232 / 0.16);
		box-shadow: none;
	}
	.epm-menu-open:root body .epm-header[data-epm-header] .epm-menu-toggle {
		background: rgb(243 240 232 / 0.14);
	}
	.epm-header__cta {
		transition: opacity var(--motion-fast) ease, visibility 0s linear 0s;
	}
	.epm-menu-open .epm-header__cta {
		opacity: 0;
		visibility: hidden;
		transition: opacity var(--motion-fast) ease, visibility 0s linear var(--motion-fast);
	}

	/* Rótulo del grupo de programas */
	.epm-mnav__label {
		display: flex;
		align-items: center;
		gap: 0.75rem;
		margin: 0 0 0.75rem;
		font-size: 0.72rem;
		font-weight: 600;
		letter-spacing: 0.16em;
		text-transform: uppercase;
		color: var(--color-terracota-luz);
	}
	.epm-mnav__label::before {
		content: "";
		width: 1.25rem;
		height: 1px;
		background: currentColor;
	}
	.epm-mnav__cards {
		display: grid;
		gap: 0.5rem;
	}

	/* Ficha de programa: foto, nombre, duración y precio */
	.epm-mcard {
		display: grid;
		grid-template-columns: 4.25rem 1fr auto;
		align-items: center;
		gap: 0.9rem;
		min-height: 4.5rem;
		padding: 0.45rem 1rem 0.45rem 0.45rem;
		border: 1px solid rgb(243 240 232 / 0.1);
		border-radius: 1.1rem;
		background: rgb(243 240 232 / 0.05);
		color: var(--color-crema);
		text-decoration: none;
		transition: background-color var(--motion-fast) ease, border-color var(--motion-fast) ease;
	}
	.epm-mcard:not(:has(.epm-mcard__media)) {
		grid-template-columns: 1fr auto;
		padding-left: 1rem;
	}
	.epm-mcard:hover,
	.epm-mcard:active {
		background: rgb(243 240 232 / 0.1);
	}
	.epm-mcard.is-current {
		border-color: rgb(240 163 135 / 0.6);
	}
	.epm-mcard__media {
		display: block;
		aspect-ratio: 1;
		overflow: hidden;
		border-radius: 0.75rem;
		background: rgb(243 240 232 / 0.08);
	}
	.epm-mcard__img {
		display: block;
		width: 100%;
		height: 100%;
		object-fit: cover;
	}
	.epm-mcard__text {
		display: grid;
		gap: 0.2rem;
		min-width: 0;
	}
	.epm-mcard__name {
		font-size: 1.12rem;
		font-weight: 640;
		letter-spacing: -0.02em;
		line-height: 1.15;
	}
	.epm-mcard__meta {
		font-size: 0.84rem;
		line-height: 1.3;
		color: rgb(243 240 232 / 0.72);
		font-variant-numeric: tabular-nums;
	}
	.epm-mcard .epm-icon {
		width: 1.15rem;
		height: 1.15rem;
		color: var(--color-terracota-luz);
		transition: transform var(--motion-fast) ease;
	}
	.epm-mcard:hover .epm-icon {
		transform: translateX(3px);
	}

	/* Resto del menú: grande y numerado */
	.epm-mnav__links {
		display: grid;
	}
	.epm-mnav__link {
		display: flex;
		align-items: baseline;
		gap: 0.9rem;
		padding: 0.5rem 0;
		border-bottom: 1px solid rgb(243 240 232 / 0.12);
		color: var(--color-crema);
		text-decoration: none;
	}
	.epm-mnav__links li:first-child .epm-mnav__link {
		border-top: 1px solid rgb(243 240 232 / 0.12);
	}
	.epm-mnav__num {
		min-width: 1.5rem;
		font-size: 0.72rem;
		font-weight: 600;
		letter-spacing: 0.08em;
		color: var(--color-terracota-luz);
		font-variant-numeric: tabular-nums;
		transform: translateY(-0.2em);
	}
	.epm-mnav__title {
		font-size: clamp(1.85rem, 1.2rem + 3.2vw, 2.6rem);
		font-weight: 640;
		letter-spacing: -0.045em;
		line-height: 1.05;
		transition: transform var(--motion-med) var(--motion-ease);
	}
	.epm-mnav__link:hover .epm-mnav__title {
		transform: translateX(0.35rem);
	}
	.epm-mnav__link.is-current .epm-mnav__title {
		font-family: var(--font-serif);
		font-style: italic;
		font-weight: 400;
		letter-spacing: -0.01em;
		color: var(--color-terracota-luz);
	}

	/* Pie del panel: contacto */
	.epm-nav-panel__foot {
		display: grid;
		gap: 0.7rem;
		padding: 0;
		border-top: 0;
	}
	.epm-nav-panel .epm-nav-panel__cta {
		width: 100%;
		justify-content: center;
		background: var(--color-terracota);
		border-color: var(--color-terracota);
		color: var(--color-tinta);
	}
	.epm-nav-panel .epm-nav-panel__cta:hover,
	.epm-nav-panel .epm-nav-panel__cta:focus-visible {
		background: var(--color-crema);
		border-color: var(--color-crema);
	}
	.epm-nav-panel__note {
		margin: 0;
		font-size: 0.86rem;
		text-align: center;
		color: rgb(243 240 232 / 0.72);
	}
	.epm-nav-panel__meta {
		display: flex;
		flex-wrap: wrap;
		justify-content: space-between;
		gap: 0.5rem 1rem;
		padding-top: 0.85rem;
		border-top: 1px solid rgb(243 240 232 / 0.12);
		font-size: 0.82rem;
		color: rgb(243 240 232 / 0.72);
	}
	.epm-nav-panel .epm-nav-panel__area {
		display: inline-flex;
		align-items: center;
		gap: 0.4rem;
		margin: 0;
		color: inherit;
	}
	.epm-nav-panel__ig {
		display: inline-flex;
		align-items: center;
		gap: 0.4rem;
		min-height: 2.75rem;
		margin-block: -0.75rem;
		color: var(--color-crema);
		text-decoration: none;
	}
	.epm-nav-panel__meta .epm-icon {
		width: 1rem;
		height: 1rem;
		flex: none;
	}

	/* Entrada escalonada al abrir */
	.epm-mnav__group,
	.epm-mnav li,
	.epm-nav-panel__foot {
		opacity: 0;
		transform: translateY(14px);
		transition: opacity 0.2s ease, transform 0.2s ease;
	}
	.epm-menu-open .epm-mnav__group,
	.epm-menu-open .epm-mnav li,
	.epm-menu-open .epm-nav-panel__foot {
		opacity: 1;
		transform: none;
		transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
		transition-delay: calc(0.18s + var(--i, 0) * 0.05s);
	}
	.epm-menu-open .epm-nav-panel__foot {
		transition-delay: 0.5s;
	}
}

@media (max-width: 63.99em) and (prefers-reduced-motion: reduce) {
	.epm-nav-panel,
	.epm-menu-open .epm-nav-panel {
		clip-path: none;
		opacity: 0;
		transition: opacity 0.2s ease, visibility 0s linear 0.2s;
	}
	.epm-menu-open .epm-nav-panel {
		opacity: 1;
		transition: opacity 0.2s ease;
	}
	.epm-mnav__group,
	.epm-mnav li,
	.epm-nav-panel__foot,
	.epm-menu-open .epm-mnav__group,
	.epm-menu-open .epm-mnav li,
	.epm-menu-open .epm-nav-panel__foot {
		opacity: 1;
		transform: none;
		transition: none;
	}
}

/* Pantallas bajas: las fichas pierden la foto para que todo quepa sin desplazar */
@media (max-width: 63.99em) and (max-height: 42em) {
	.epm-mcard {
		grid-template-columns: 1fr auto;
		min-height: 3.5rem;
		padding-left: 1rem;
	}
	.epm-mcard__media {
		display: none;
	}
	.epm-mnav__title {
		font-size: 1.6rem;
	}
	.epm-nav-panel__note {
		display: none;
	}
}

/* Escritorio: el desplegable de programas, con fichas y enlace a la comparativa */
@media (min-width: 64em) {
	.epm-submenu {
		width: 27rem;
		min-width: 0;
		padding: 0.5rem;
		border-radius: 1.25rem;
	}
	.epm-submenu:not([hidden]) {
		animation: epm-drop 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
	}
	.epm-submenu__list {
		display: grid;
		gap: 0.15rem;
	}
	.epm-pcard {
		display: grid;
		grid-template-columns: 4.5rem 1fr auto;
		align-items: center;
		gap: 1rem;
		padding: 0.45rem 1rem 0.45rem 0.45rem;
		border-radius: 0.9rem;
		color: var(--color-tinta);
		text-decoration: none;
		transition: background-color var(--motion-fast) ease;
	}
	.epm-pcard:not(:has(.epm-pcard__media)) {
		grid-template-columns: 1fr auto;
		padding-left: 1rem;
	}
	.epm-pcard:hover,
	.epm-pcard:focus-visible {
		background: var(--color-hueso);
	}
	.epm-pcard__media {
		display: block;
		aspect-ratio: 4 / 3;
		overflow: hidden;
		border-radius: 0.6rem;
		background: var(--color-hueso);
	}
	.epm-pcard__img {
		display: block;
		width: 100%;
		height: 100%;
		object-fit: cover;
		transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
	}
	.epm-pcard:hover .epm-pcard__img {
		transform: scale(1.06);
	}
	.epm-pcard__text {
		display: grid;
		gap: 0.15rem;
	}
	.epm-pcard__name {
		font-size: 1rem;
		font-weight: 640;
		letter-spacing: -0.015em;
		line-height: 1.2;
	}
	.epm-pcard__meta {
		font-size: 0.84rem;
		color: #5A584F;
		font-variant-numeric: tabular-nums;
	}
	.epm-pcard.is-current .epm-pcard__name {
		color: var(--color-terracota-osc);
	}
	.epm-pcard .epm-icon {
		width: 1.1rem;
		height: 1.1rem;
		color: var(--color-terracota-osc);
		opacity: 0.55;
		transition: transform var(--motion-fast) ease, opacity var(--motion-fast) ease;
	}
	.epm-pcard:hover .epm-icon,
	.epm-pcard:focus-visible .epm-icon {
		opacity: 1;
		transform: translateX(3px);
	}
	.epm-submenu__all {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 1rem;
		margin-top: 0.4rem;
		padding: 0.8rem 1rem;
		border-radius: 0.9rem;
		background: var(--color-tinta);
		color: var(--color-crema);
		font-size: 0.9rem;
		font-weight: 600;
		text-decoration: none;
		transition: background-color var(--motion-fast) ease;
	}
	.epm-submenu__all .epm-icon {
		width: 1.05rem;
		height: 1.05rem;
		color: var(--color-terracota-luz);
		transition: transform var(--motion-fast) ease;
	}
	.epm-submenu__all:hover {
		background: #33312C;
	}
	.epm-submenu__all:hover .epm-icon {
		transform: translateX(3px);
	}
}
@keyframes epm-drop {
	from {
		opacity: 0;
		transform: translateY(-6px) scale(0.985);
	}
	to {
		opacity: 1;
		transform: none;
	}
}
@media (prefers-reduced-motion: reduce) {
	.epm-submenu:not([hidden]) {
		animation: none;
	}
}

/* ==========================================================================
   Ajustes de móvil (2026-11-04)
   ========================================================================== */
@media (max-width: 63.99em) {
	/* El botón de preferencias de cookies no tapa el contenido: vive en la barra fija, a la izquierda del botón de
	   WhatsApp. Sin barra (arriba del todo y en el pie) se configura desde «Configurar cookies» del pie. */
	.wsch-root .wsch-floating {
		display: none;
	}
	.epm-sticky-on:not(.epm-menu-open) .wsch-root .wsch-floating:not(.is-hidden):not([hidden]) {
		display: inline-flex;
		left: var(--gutter);
		bottom: calc(0.65rem + 4px + env(safe-area-inset-bottom));
	}
	.epm-sticky-on:has(.wsch-floating:not(.is-hidden):not([hidden])) .epm-sticky {
		padding-left: calc(var(--gutter) + 44px + 0.6rem);
	}

	/* Portadas sin foto (contacto, legales…): sin hueco oscuro encima del titular */
	.epm-hero:not(.has-image) {
		min-height: 0;
		padding-top: calc(var(--header-h) + clamp(3rem, 9svh, 5rem));
	}

	/* Portadas de servicio: el rótulo de encima del titular se lee también sobre un cielo claro */
	.epm-hero.has-image .epm-hero__veil {
		background: linear-gradient(180deg, rgb(29 28 25 / 0.62) 0%, rgb(29 28 25 / 0.42) 30%, rgb(29 28 25 / 0.75) 60%, rgb(29 28 25 / 0.96) 100%);
	}
	.epm-hero--s-noche .epm-hero__title .epm-heading__kicker {
		color: rgb(243 240 232 / 0.82);
	}
}

/* Formularios: la verificación de Cloudflare reserva su alto (65 px) y nada más; el salto de línea que añade el
   plugin dejaba unos 150 px vacíos encima del botón. */
.cf-turnstile-br {
	display: none;
}
.cf7-cf-turnstile {
	margin-block: 0.25rem 0.75rem;
}

/* Portada con foto de espera propia para el móvil: tiene el encuadre del vídeo de móvil, así que va centrada igual. */
.epm-hero__bg picture {
	display: contents;
}
@media (max-width: 63.99em) and (orientation: portrait) {
	.epm-hero__bg.has-mobile-poster img {
		object-position: 50% 50%;
	}
}

/* La frase final de las situaciones fuera de la cuadrícula solo se usa en móvil (ver abajo). */
.epm-pain__after {
	display: none;
}

/* Situaciones en móvil (2026-11-04): primero el título; después la foto, que se queda arriba mientras pasan las
   situaciones y cambia con cada una (antes quedaba encima del título y se perdía al bajar). */
@media (max-width: 63.99em) {
	.epm-pain__grid {
		gap: 0;
	}
	.epm-pain__list {
		display: contents;
	}
	.epm-pain__list > .epm-s__head {
		order: 1;
		margin-bottom: var(--space-5);
	}
	.epm-pain__aside {
		order: 2;
		position: sticky;
		top: 0;
		z-index: 2;
		margin-inline: calc(var(--gutter) * -1);
		padding: 0.75rem var(--gutter) 0;
		background: var(--bg);
	}
	.epm-pain__aside::after {
		content: "";
		position: absolute;
		left: 0;
		right: 0;
		top: 100%;
		height: 2.25rem;
		background: linear-gradient(var(--bg), transparent);
		pointer-events: none;
	}
	/* Las fotos son verticales: el hueco no pasa de 4:3 (en tableta se centra en vez de hacerse panorámico) y cada
	   foto se recorta por su encuadre (campo «Encuadre de la foto» de cada situación). */
	.epm-pain__media {
		aspect-ratio: 4 / 3;
		width: auto;
		max-width: 100%;
		height: clamp(13rem, 36svh, 24rem);
		margin-inline: auto;
	}
	/* La cabecera se esconde al bajar y vuelve al subir: mientras se ve, la foto fija se coloca debajo de ella en vez
	   de quedar tapada. */
	.epm-pain__aside {
		transition: top 0.35s cubic-bezier(0.22, 1, 0.36, 1);
	}
	body:has(.epm-header:not(.is-hidden)) .epm-pain__aside {
		top: calc(var(--wp-admin--admin-bar--height, 0px) + 4.75rem);
	}
	.epm-pain__items {
		order: 3;
		padding-top: 0.75rem;
	}
	.epm-pain__closing--in {
		display: none;
	}
	.epm-pain__after {
		display: block;
		margin-top: 2.75rem;
	}
	.epm-pain__after .epm-pain__closing {
		margin-top: 0;
	}
	.epm-pain__item {
		grid-template-columns: 2.25rem 1fr;
		gap: 0.75rem;
		padding-block: 1.75rem;
	}
	.epm-pain__item:first-child {
		border-top: 0;
	}
	.epm-pain__title {
		font-size: clamp(1.55rem, 1.2rem + 1.8vw, 2.1rem);
	}
}

/* ==========================================================================
   Texto con foto · composición «destacado» (2026-11-04, bloque de grupos de la portada): foto grande hasta el borde,
   las cifras en una tarjeta oscura sobre su pie y el botón relleno
   ========================================================================== */
.epm-story--feature {
	overflow-x: clip;
}
.epm-sfeat {
	display: grid;
}
.epm-story--feature .epm-h2 {
	font-size: clamp(2.2rem, 1.3rem + 2.4vw, 3.9rem);
}
.epm-sfeat__media {
	position: relative;
	margin: 0;
	overflow: hidden;
	background: var(--color-hueso);
}
.epm-sfeat__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: var(--focal, 50% 50%);
}
.epm-sfeat__caption {
	position: absolute;
	left: 1.25rem;
	top: 1.25rem;
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	padding: 0.5em 0.95em;
	border-radius: var(--radius-pill);
	background: rgb(29 28 25 / 0.6);
	color: var(--color-crema);
	font-size: 0.78rem;
	font-weight: 560;
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}
.epm-sfeat__caption .epm-icon {
	width: 1em;
	height: 1em;
}
.epm-sfeat__stats {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin: 0;
	border-radius: 1.25rem;
	background:
		radial-gradient(80% 120% at 100% 0%, rgb(220 113 80 / 0.22), transparent 60%),
		var(--color-tinta);
	color: var(--color-crema);
	box-shadow: 0 40px 70px -40px rgb(29 28 25 / 0.6);
}
.epm-sfeat__stat {
	display: grid;
	align-content: start;
	gap: 0.45rem;
	min-width: 0;
}
.epm-sfeat__stat + .epm-sfeat__stat {
	border-left: 1px solid rgb(243 240 232 / 0.14);
}
.epm-sfeat__stat dt {
	font-weight: 640;
	letter-spacing: -0.045em;
	line-height: 1;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}
.epm-sfeat__stat:last-child dt {
	color: var(--color-terracota-luz);
}
.epm-sfeat__stat dd {
	margin: 0;
	line-height: 1.3;
	color: rgb(243 240 232 / 0.74);
}
.epm-sfeat__body {
	font-size: 1.08rem;
}
.epm-sfeat__body p {
	color: var(--muted);
}
.epm-sfeat__actions {
	margin-top: 1.75rem;
}

@media (max-width: 63.99em) {
	.epm-sfeat__head {
		margin-bottom: var(--space-6);
	}
	.epm-sfeat__media {
		margin-inline: calc(var(--gutter) * -1);
		height: min(125vw, 72svh);
	}
	.epm-sfeat__stats {
		margin: -3.25rem 0.25rem 0;
		padding: 1.25rem 0.25rem;
	}
	.epm-sfeat__stat {
		padding-inline: 0.85rem;
	}
	.epm-sfeat__stat dt {
		font-size: clamp(1.8rem, 1.3rem + 2.4vw, 2.4rem);
	}
	.epm-sfeat__stat dd {
		font-size: 0.8rem;
	}
	.epm-sfeat__text {
		margin-top: var(--space-6);
	}
	.epm-sfeat__actions .epm-btn {
		width: 100%;
		justify-content: center;
	}
}

@media (min-width: 64em) {
	.epm-sfeat {
		grid-template-columns: repeat(12, minmax(0, 1fr));
		grid-template-rows: auto auto 1fr auto;
		column-gap: clamp(1.5rem, 3vw, 3rem);
	}
	.epm-sfeat__media {
		grid-column: 1 / 8;
		grid-row: 1 / 4;
		margin-left: calc(-1 * max(var(--gutter), (100vw - var(--container-max)) / 2));
		min-height: clamp(30rem, 72svh, 46rem);
		border-radius: 0 var(--radius-photo) var(--radius-photo) 0;
	}
	.epm-story--feature.epm-story--img-right .epm-sfeat__media {
		grid-column: 6 / 13;
		margin-left: 0;
		margin-right: calc(-1 * max(var(--gutter), (100vw - var(--container-max)) / 2));
		border-radius: var(--radius-photo) 0 0 var(--radius-photo);
	}
	.epm-sfeat__head {
		grid-column: 9 / 13;
		grid-row: 1;
		align-self: end;
		padding-top: clamp(1rem, 4vh, 3rem);
		margin-bottom: var(--space-5);
	}
	.epm-sfeat__text {
		grid-column: 9 / 13;
		grid-row: 2;
	}
	.epm-story--feature.epm-story--img-right .epm-sfeat__head,
	.epm-story--feature.epm-story--img-right .epm-sfeat__text {
		grid-column: 1 / 5;
	}
	/* La tarjeta monta sobre el pie de la foto y asoma por su borde, sin entrar en la columna del texto. */
	.epm-sfeat__stats {
		grid-column: 2 / 8;
		grid-row: 4;
		margin-top: -5.5rem;
		margin-right: calc(clamp(1.5rem, 3vw, 3rem) * -1);
		padding: clamp(1.5rem, 2.4vw, 2.25rem) 0.5rem;
	}
	.epm-story--feature.epm-story--img-right .epm-sfeat__stats {
		grid-column: 7 / 13;
		margin-right: 0;
		margin-left: calc(clamp(1.5rem, 3vw, 3rem) * -1);
	}
	.epm-sfeat__stat {
		padding-inline: clamp(1.25rem, 2vw, 2rem);
	}
	.epm-sfeat__stat dt {
		font-size: clamp(2.4rem, 1.4rem + 2.2vw, 3.6rem);
	}
	.epm-sfeat__stat dd {
		font-size: 0.92rem;
	}
}

/* ==========================================================================
   Texto con foto · composición normal (2026-11-04): titular a la escala del «destacado» para que quepa en su columna
   en tres o cuatro líneas (antes salía casi una palabra por línea) y menos aire entre titular y texto.
   ========================================================================== */
.epm-story .epm-h2 {
	font-size: clamp(2.2rem, 1.3rem + 2.4vw, 3.9rem);
}
.epm-story.has-image:not(.epm-story--feature) .epm-s__head {
	margin-bottom: var(--space-5);
}
/* La foto ya no marca el alto del bloque (una foto vertical lo estiraba a más de 1.000 px en escritorio): llena su
   columna con un mínimo de 38 rem y se recorta por su punto de interés. */
@media (min-width: 64em) {
	.epm-story.has-image:not(.epm-story--feature) .epm-story__media .epm-frame {
		min-height: 38rem;
	}
	.epm-story.has-image:not(.epm-story--feature) .epm-story__media .epm-frame img {
		position: absolute;
		inset: 0;
	}
}

/* «Destacado» adaptado al resto de bloques de texto con foto (2026-11-04): sin cifras, la tarjeta oscura lleva la frase
   destacada en serif; con nombres y frase (Hércules y Nilo), los nombres a menor tamaño y la frase debajo. */
.epm-sfeat__quote {
	position: relative;
	z-index: 1;
	margin: 0;
	border-radius: 1.25rem;
	background:
		radial-gradient(80% 120% at 100% 0%, rgb(220 113 80 / 0.22), transparent 60%),
		var(--color-tinta);
	color: var(--color-crema);
	box-shadow: 0 40px 70px -40px rgb(29 28 25 / 0.6);
}
.epm-sfeat__quote p {
	margin: 0;
	font-family: var(--font-serif);
	font-style: italic;
	font-weight: 400;
	line-height: 1.12;
	letter-spacing: -0.01em;
	text-wrap: balance;
}
.epm-sfeat__quote p::before {
	content: "“";
	display: block;
	height: 0.55em;
	color: var(--color-terracota-luz);
	font-size: 1.6em;
	line-height: 1;
}
/* Columnas según el número de datos (clase y no estilo en línea: la animación de entrada limpia el atributo style). */
.epm-sfeat__stats--n2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}
.epm-sfeat__stats--n1 {
	grid-template-columns: minmax(0, 1fr);
}
.epm-sfeat__stats--cards .epm-sfeat__stat dt {
	white-space: normal;
	letter-spacing: -0.03em;
}
@media (max-width: 63.99em) {
	.epm-sfeat__quote {
		margin: -3.25rem 0.25rem 0;
		padding: 1.5rem 1.35rem;
	}
	.epm-sfeat__quote p {
		font-size: clamp(1.45rem, 1.1rem + 1.6vw, 1.9rem);
	}
	.epm-sfeat__stats--cards .epm-sfeat__stat dt {
		font-size: 1.45rem;
	}
}
@media (min-width: 64em) {
	.epm-sfeat__quote {
		grid-column: 2 / 8;
		grid-row: 4;
		margin-top: -5.5rem;
		margin-right: calc(clamp(1.5rem, 3vw, 3rem) * -1);
		padding: clamp(1.75rem, 2.6vw, 2.5rem) clamp(1.75rem, 3vw, 2.75rem);
	}
	.epm-story--feature.epm-story--img-right .epm-sfeat__quote {
		grid-column: 7 / 13;
		margin-right: 0;
		margin-left: calc(clamp(1.5rem, 3vw, 3rem) * -1);
	}
	.epm-sfeat__quote p {
		font-size: clamp(1.8rem, 1.1rem + 1.4vw, 2.6rem);
	}
	.epm-sfeat__stats--cards .epm-sfeat__stat dt {
		font-size: clamp(1.7rem, 1.2rem + 1vw, 2.3rem);
	}
}

/* Destacado con titulares largos (páginas de servicio y Sobre mí): la columna del texto toma una columna más, la que
   queda junto a la foto, con un margen interior para que no se pegue a ella. */
@media (min-width: 64em) {
	.epm-story--feature .epm-sfeat__head,
	.epm-story--feature .epm-sfeat__text {
		grid-column: 8 / 13;
		padding-left: clamp(1rem, 2.5vw, 2.5rem);
	}
	.epm-story--feature.epm-story--img-right .epm-sfeat__head,
	.epm-story--feature.epm-story--img-right .epm-sfeat__text {
		grid-column: 1 / 6;
		padding-left: 0;
		padding-right: clamp(1rem, 2.5vw, 2.5rem);
	}
}

/* Pasos con foto (2026-11-04): la foto deja de ser una miniatura bajo el titular; en escritorio llena la columna hasta el
   borde de la ventana, con alto limitado para que el bloque fijo quepa en pantalla, y en móvil va a todo el ancho. El
   titular baja a la escala del «destacado». */
.epm-steps .epm-h2 {
	font-size: clamp(2.2rem, 1.3rem + 2.4vw, 3.9rem);
}
.epm-steps.has-image .epm-steps__media {
	max-width: none;
	margin-inline: calc(-1 * var(--gutter));
	aspect-ratio: 4 / 3;
	border-radius: 0;
}
.epm-steps.has-image .epm-steps__media img {
	position: absolute;
	inset: 0;
}
@media (min-width: 64em) {
	.epm-steps.has-image .epm-steps__head {
		grid-column: 1 / span 6;
	}
	.epm-steps.has-image .epm-steps__media {
		margin: 0 0 0 calc(-1 * max(var(--gutter), (100vw - var(--container-max)) / 2));
		aspect-ratio: auto;
		height: clamp(22rem, 52svh, 34rem);
		border-radius: 0 var(--radius-photo) var(--radius-photo) 0;
	}
}

/* Desplegable de programas al pasar el ratón (2026-11-04): un puente invisible entre el botón y el panel para que no se
   cierre al bajar hasta él. */
@media (min-width: 64em) {
	.epm-submenu::before {
		content: "";
		position: absolute;
		left: 0;
		right: 0;
		bottom: 100%;
		height: 1rem;
	}
}

/* Encuadre de una foto que se recorta (clase epm-focal--*): fija qué parte se conserva. */
.epm-frame img.epm-focal--arriba { object-position: 50% 18%; }
.epm-frame img.epm-focal--abajo { object-position: 50% 85%; }
.epm-frame img.epm-focal--izquierda { object-position: 20% 50%; }
.epm-frame img.epm-focal--derecha { object-position: 80% 50%; }
.epm-frame img.epm-focal--arriba-izquierda { object-position: 20% 18%; }
.epm-frame img.epm-focal--arriba-derecha { object-position: 80% 18%; }
.epm-frame img.epm-focal--abajo-izquierda { object-position: 20% 85%; }
.epm-frame img.epm-focal--abajo-derecha { object-position: 80% 85%; }

/* Formularios: el indicador de envío y la caja de respuesta de CF7 no ocupan fila (dejaban hueco al pie). */
.epm-form form {
	position: relative;
}
.epm-form .wpcf7-spinner {
	position: absolute;
	right: 0;
	bottom: 1.1rem;
	margin: 0;
}
.epm-form form.init .wpcf7-response-output {
	display: none;
}

/* Formularios: la verificación de Cloudflare es invisible salvo que pida interacción; no se le reserva alto (dejaba un
   hueco vacío encima del botón) y se quita el salto de línea que añade el plugin detrás. */
.cf-turnstile,
.cf7-cf-turnstile {
	min-height: 0;
}
.epm-form .cf7-cf-turnstile + br {
	display: none;
}
