/*
 * HORMA — Estudio de Arquitectura. Demo conceptual aislada.
 * FASE 2 — Dirección artística editorial-suiza: retícula arquitectónica
 * (ruled grid), marcas de registro y cotas tipo plano, escala tipográfica
 * expresiva, fotografía a gran formato, jerarquía y microinteracciones.
 * Cargado solo en páginas con template page-horma (ver functions.php).
 * Fuentes (Fraunces + Archivo) servidas por el tema.
 */
:root {
	/* mapa de tokens sobre la paleta */
	--horma-bg: #f7f5f0;          /* blanco cáido principal */
	--horma-ink: #19191b;          /* carbón profundo */
	--horma-text: #232326;         /* texto principal */
	--horma-muted: #5d5a54;        /* gris mineral (metadatos legibles) */
	--horma-faint: #8f8b83;        /* aún más bajo, solo decorativo */
	--horma-concrete: #cfccc5;     /* hormigón: acento */
	--horma-panel: #ece9e2;
	--horma-paper: #fdfcfa;
	--horma-line: rgba(25, 25, 27, 0.14);
	--horma-line-soft: rgba(25, 25, 27, 0.08);
	--horma-grid-line: rgba(25, 25, 27, 0.04);
	--horma-font-display: "Fraunces", Georgia, serif;
	--horma-font-sans: "Archivo", Helvetica, Arial, sans-serif;
	--horma-gutter: clamp(1.5rem, 5vw, 4rem);
	--horma-max: 1380px;
	--horma-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
	--horma-tick: 1px solid var(--horma-line);
}

body {
	background: var(--horma-bg);
	color: var(--horma-text);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

/* === base === */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--horma-font-sans); line-height: 1.7; }
::selection { background: var(--horma-ink); color: var(--horma-bg); }
img { max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--horma-ink); outline-offset: 2px; }
.wp-site-blocks { overflow: clip; }

/* === header === */
.horma-shell {
	position: relative;
	z-index: 60;
	background: var(--horma-bg);
	border-bottom: 1px solid var(--horma-line);
}
.horma-header {
	min-height: 88px;
	align-items: center;
	gap: 2rem;
}
.horma-brand { align-items: baseline; gap: 1rem; }
.horma-logo {
	margin: 0;
	font-family: var(--horma-font-display);
	font-size: clamp(1.9rem, 3vw, 2.4rem);
	font-weight: 560;
	letter-spacing: 0.14em;
	line-height: 1;
}
.horma-logo a { color: var(--horma-ink); text-decoration: none; }
.horma-logomark {
	width: 8px; height: 8px;
	background: var(--horma-ink);
	position: relative;
}
.horma-logomark::after {
	content: ""; position: absolute; inset: -3px;
	border: 1px solid var(--horma-ink); opacity: 0.5;
}
.horma-tagline {
	margin: 0;
	font-size: 0.6rem;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--horma-muted);
}
.horma-right { align-items: center; gap: 2rem; margin-left: auto; }
.horma-nav { display: flex; flex-wrap: wrap; gap: 1.7rem; }
.horma-nav-item { margin: 0; position: relative; }
.horma-nav-item a {
	font-size: 0.72rem;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--horma-text);
	text-decoration: none;
	padding: 0.5rem 0;
	background-image: linear-gradient(currentColor, currentColor);
	background-repeat: no-repeat;
	background-position: 0 100%;
	background-size: 0% 1px;
	transition: background-size 0.4s var(--horma-ease), color 0.3s ease;
}
.horma-nav-item a:hover,
.horma-nav-item a:focus-visible {
	background-size: 100% 1px;
	color: var(--horma-ink);
}
.horma-nav-item.is-active a {
	background-size: 100% 1px;
	color: var(--horma-ink);
}
.horma-catalog { margin: 0; }
.horma-catalog a {
	font-size: 0.62rem;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--horma-text);
	text-decoration: none;
	border: 1px solid var(--horma-ink);
	padding: 0.8rem 1.1rem;
	white-space: nowrap;
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	transition: background 0.3s ease, color 0.3s ease;
}
.horma-catalog a::before {
	content: "↳";
	font-size: 1em;
	line-height: 1;
}
.horma-catalog a:hover,
.horma-catalog a:focus-visible {
	color: var(--horma-bg);
	background: var(--horma-ink);
}
.horma-toggle { display: none; margin: 0; }
.horma-toggle-btn {
	font-size: 0.72rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--horma-ink);
	background: none;
	border: 1px solid var(--horma-ink);
	padding: 0.75rem 1.1rem;
	cursor: pointer;
	transition: background 0.3s ease, color 0.3s ease;
}
.horma-toggle-btn:hover { background: var(--horma-ink); color: var(--horma-bg); }

/* === footer === */
.horma-footer {
	position: relative;
	background: var(--horma-ink);
	color: var(--horma-paper);
}
.horma-footer-grid {
	justify-content: space-between;
	align-items: flex-start;
	gap: 3rem;
	padding: 4rem 0 2.8rem;
}
.horma-foot-brand, .horma-foot-nav,
.horma-foot-contact, .horma-foot-cta { max-width: 380px; }
.horma-logo--foot { font-size: 2rem; }
.horma-logo--foot a { color: #fff; }
.horma-foot-tag {
	margin-top: 1rem;
	color: rgba(235, 231, 223, 0.75);
	line-height: 1.7;
	font-size: 0.95rem;
	max-width: 34ch;
}
.horma-foot-demo {
	margin-top: 1.2rem;
	font-size: 0.74rem;
	line-height: 1.7;
	color: rgba(244, 241, 234, 0.58);
	border-top: 1px solid rgba(244, 241, 234, 0.16);
	padding-top: 1rem;
	max-width: 42ch;
}
.horma-foot-title {
	font-family: var(--horma-font-sans);
	font-size: 0.66rem;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: rgba(244, 241, 234, 0.64);
	margin: 0 0 1rem;
}
.horma-footer ul { list-style: none; margin: 0; padding: 0; }
.horma-footer li { margin: 0.6rem 0; }
.horma-footer a {
	color: #dcd7cd;
	text-decoration: none;
	background-image: linear-gradient(#fff, #fff);
	background-repeat: no-repeat;
	background-position: 0 100%;
	background-size: 0% 1px;
	transition: background-size 0.35s var(--horma-ease), color 0.3s ease;
}
.horma-footer a:hover,
.horma-footer a:focus-visible {
	background-size: 100% 1px;
	color: #fff;
}
.horma-foot-contact p { margin: 0.5rem 0; color: #dcd7cd; font-size: 0.94rem; }
.horma-foot-catalog a {
	font-size: 0.7rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: #fff;
	border: 1px solid rgba(235, 231, 223, 0.4);
	padding: 0.8rem 1rem;
	display: inline-flex;
}
.horma-foot-catalog a:hover,
.horma-foot-catalog a:focus-visible {
	background: #fff;
	color: var(--horma-ink);
	border-color: #fff;
}
.horma-foot-note {
	margin-top: 1.6rem;
	font-size: 0.7rem;
	color: rgba(244, 241, 234, 0.5);
}
/* === header === */
/* === footer === */
/* === type scale === */
.horma-eyebrow {
	font-size: 0.68rem;
	font-weight: 500;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: var(--horma-muted);
	margin: 0 0 1rem;
}
.horma-h2 {
	font-family: var(--horma-font-display);
	font-size: clamp(2rem, 4vw, 3.4rem);
	font-weight: 480;
	line-height: 1.02;
	letter-spacing: -0.015em;
	text-wrap: balance;
	margin: 0;
	color: var(--horma-ink);
}
.horma-h3 {
	font-family: var(--horma-font-display);
	font-size: clamp(1.5rem, 2.6vw, 2.1rem);
	font-weight: 480;
	line-height: 1.15;
	letter-spacing: -0.01em;
	margin: 0 0 0.4rem;
}
.horma-lead {
	font-family: var(--horma-font-display);
	font-size: clamp(1.15rem, 1.8vw, 1.45rem);
	line-height: 1.6;
	color: var(--horma-text);
	font-weight: 440;
}
.horma-num {
	font-family: var(--horma-font-display);
	font-size: clamp(1.3rem, 2.4vw, 1.8rem);
	line-height: 1;
	font-weight: 400;
	color: var(--horma-muted);
	letter-spacing: 0;
}
.horma-body-xl { font-size: 1.1rem; line-height: 1.8; color: var(--horma-text); }
.horma-body { line-height: 1.85; color: var(--horma-text); max-width: 62ch; }
.horma-rule {
	border-top: 1px solid var(--horma-line);
	padding-top: 1.5rem;
}
.horma-center { text-align: center; }
.horma-muted { color: var(--horma-muted); }
.horma-indent {
	border-left: 1px solid var(--horma-line);
	padding-left: clamp(1rem, 3vw, 2.5rem);
}
.horma-caps {
	font-size: 0.68rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--horma-muted);
}

/* === hero / titleblock === */
.horma-hero {
	min-height: 86vh;
	align-items: flex-end;
	justify-content: flex-start;
	position: relative;
	isolation: isolate;
}
.horma-hero > .wp-block-cover__inner-container {
	width: 100%;
	padding-bottom: clamp(2.5rem, 6vw, 5.5rem);
}
.horma-hero .wp-block-cover__image-background { filter: grayscale(1) contrast(1.02) brightness(0.94); }
.horma-hero-title {
	font-family: var(--horma-font-display);
	font-size: clamp(3rem, 8vw, 6.2rem);
	font-weight: 420;
	line-height: 0.96;
	letter-spacing: -0.025em;
	text-wrap: balance;
	color: #fff;
	max-width: 13ch;
	margin: 0 0 1.3rem;
	text-shadow: 0 2px 34px rgba(0, 0, 0, 0.4);
}
.horma-hero-eyebrow { color: rgba(255, 255, 255, 0.85); }
.horma-hero-sub {
	color: rgba(255, 255, 255, 0.93);
	font-size: clamp(1.02rem, 1.6vw, 1.18rem);
	line-height: 1.7;
	max-width: 44ch;
	margin: 0;
}
.horma-hero-meta {
	margin: 1.5rem 0 0;
	font-size: 0.68rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.78);
	border-top: 1px solid rgba(255, 255, 255, 0.28);
	padding-top: 0.9rem;
	max-width: 42ch;
}
.horma-hero-ctas { gap: 1rem; margin-top: 2rem; }
.horma-hero-col {
	max-width: 600px;
	padding-right: 1rem;
}
.horma-titleblock {
	position: relative;
	padding-left: 1.2rem;
}
.horma-titleblock .horma-eyebrow { color: rgba(255, 255, 255, 0.82); margin-bottom: 1rem; }
/* === sections / editorial grid === */
.horma-section {
	position: relative;
	padding: clamp(3.5rem, 9vw, 7.5rem) 0;
}
.horma-section--tight { padding: clamp(2.6rem, 6vw, 5rem) 0; }
.horma-section--pad { padding: clamp(1.4rem, 3vw, 2.4rem) 0; }
.horma-panel { background: var(--horma-panel); }
.horma-paper { background: var(--horma-paper); }
.horma-invert { background: var(--horma-ink); color: #ebe7df; }
.horma-invert .horma-eyebrow { color: rgba(235, 231, 223, 0.62); }
.horma-invert .horma-eyebrow::before { background: rgba(255, 255, 255, 0.8); }
.horma-invert .horma-h2, .horma-invert .horma-h3 { color: #fff; }
.horma-invert .horma-lead, .horma-invert .horma-body { color: rgba(235, 231, 223, 0.9); }
.horma-invert .horma-num { color: rgba(201, 198, 191, 0.5); }
.horma-invert .horma-rule, .horma-invert { --horma-line: rgba(235,231,223,0.18); }

/* retÃ­cula de columnas visible (ruled grid) en secciones marcadas */
.horma-ruled {
	background-image: none;
}

/* cita editorial a gran escala */
.horma-quote,
.horma-blockquote {
	font-family: var(--horma-font-display);
	font-size: clamp(1.7rem, 3.6vw, 3rem);
	font-weight: 440;
	line-height: 1.12;
	letter-spacing: -0.015em;
	text-wrap: balance;
	color: var(--horma-ink);
	margin: 0;
}
.horma-quote p { margin: 0; }
.horma-invert .horma-quote,
.horma-invert .horma-blockquote { color: #fff; }
.horma-quote-mark {
	font-family: var(--horma-font-display);
	font-size: 4.5rem;
	line-height: 0;
	color: var(--horma-concrete);
}

/* === ledgers / lists === */
.horma-ledger { border-top: 1px solid var(--horma-line); }
.horma-ledger-row {
	display: grid;
	grid-template-columns: 3.5rem 1fr auto;
	gap: 1.5rem;
	align-items: center;
	padding: 1.6rem 0;
	border-bottom: 1px solid var(--horma-line);
	transition: padding 0.3s var(--horma-ease), background 0.3s ease;
}
.horma-ledger-row:hover { padding-left: 0.75rem; }
.horma-ledger-no {
	font-family: var(--horma-font-display);
	font-size: 1.2rem;
	color: var(--horma-concrete);
}
.horma-ledger-arrow {
	font-size: 1.1rem;
	transition: transform 0.35s var(--horma-ease);
}
.horma-ledger-row:hover .horma-ledger-arrow { transform: translateX(6px); }
/* === cards / project imagery === */
.horma-grid-col {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: clamp(1.2rem, 3vw, 2.4rem);
	align-items: start;
}
.horma-grid-col--2 { grid-template-columns: repeat(2, 1fr); }
.horma-grid-col--4 { grid-template-columns: repeat(4, 1fr); }
.horma-card { display: block; text-decoration: none; color: inherit; }
.horma-card figure {
	margin: 0 0 1.1rem;
	overflow: hidden;
	background: var(--horma-concrete);
}
.horma-card img {
	width: 100%;
	display: block;
	filter: grayscale(1);
	transition: transform 0.7s var(--horma-ease), filter 0.7s ease;
}
.horma-card:hover img,
.horma-card:focus-visible img { transform: scale(1.045); }
.horma-card-title {
	font-family: var(--horma-font-display);
	font-size: clamp(1.3rem, 2.2vw, 1.7rem);
	font-weight: 480;
	line-height: 1.12;
	margin: 0 0 0.5rem;
	color: var(--horma-ink);
}
.horma-card-title a {
	text-decoration: none;
	background-image: linear-gradient(currentColor, currentColor);
	background-repeat: no-repeat;
	background-position: 0 100%;
	background-size: 0% 1px;
	transition: background-size 0.4s var(--horma-ease);
}
.horma-card-title a:hover,
.horma-card-title a:focus-visible { background-size: 100% 1px; }
.horma-tag {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	font-size: 0.66rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--horma-muted);
	margin: 0 0 0.6rem;
}

/* === buttons === */
.wp-block-button__link {
	font-family: var(--horma-font-sans);
	font-size: 0.72rem;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	text-decoration: none;
	border-radius: 0;
	border: 1px solid var(--horma-ink);
	padding: 1rem 1.5rem;
	display: inline-flex;
	align-items: center;
	gap: 0.7rem;
	cursor: pointer;
	transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}
.horma-btn .wp-block-button__link { background: var(--horma-ink); color: var(--horma-bg); border-color: var(--horma-ink); }
.horma-btn .wp-block-button__link:hover, .horma-btn .wp-block-button__link:focus-visible {
	background: var(--horma-paper); color: var(--horma-ink);
	transform: translateY(-1px);
}
.horma-btn-ghost .wp-block-button__link { background: transparent; color: var(--horma-ink); }
.horma-btn-ghost .wp-block-button__link:hover, .horma-btn-ghost .wp-block-button__link:focus-visible {
	background: var(--horma-ink); color: var(--horma-bg);
	transform: translateY(-1px);
}
.horma-invert .horma-btn-ghost .wp-block-button__link { color: #fff; border-color: #fff; }
.horma-invert .horma-btn-ghost .wp-block-button__link:hover,
.horma-invert .horma-btn-ghost .wp-block-button__link:focus-visible { background: #fff; color: var(--horma-ink); }
.horma-btn-onimg .wp-block-button__link {
	background: transparent;
	color: #fff;
	border-color: rgba(255, 255, 255, 0.85);
}
.horma-btn-onimg .wp-block-button__link:hover,
.horma-btn-onimg .wp-block-button__link:focus-visible { background: #fff; color: var(--horma-ink); }
.horma-btn-onimg .wp-block-button__link::after { content: "\2192"; transition: transform 0.3s var(--horma-ease); }
.horma-btn-onimg .wp-block-button__link:hover::after { transform: translateX(4px); }
.horma-arrow a::after { content: "\2192"; margin-left: 0.5rem; }
/* === facts / meta === */
.horma-facts {
	border-top: 1px solid var(--horma-line);
	border-bottom: 1px solid var(--horma-line);
	padding: 0.4rem 0;
}
.horma-fact {
	position: relative;
	min-width: 130px;
}
.horma-fact::after {
	content: "";
	position: absolute;
	right: 0; top: 0.2rem; bottom: 0.2rem;
	width: 1px;
	background: var(--horma-line-soft);
}
.horma-fact:last-child::after { display: none; }
.horma-fact-label {
	font-size: 0.6rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--horma-muted);
	margin: 0 0 0.4rem;
}
.horma-fact-value {
	font-family: var(--horma-font-display);
	font-size: 1.25rem;
	font-weight: 460;
	line-height: 1.2;
	color: var(--horma-ink);
	margin: 0;
}
.horma-fact-note {
	font-size: 0.68rem;
	color: var(--horma-muted);
	margin-top: 0.25rem;
	font-style: italic;
}

/* servicios: lista editorial con numeraciÃ³n a gran escala */
.horma-service {
	border-top: 1px solid var(--horma-line);
	padding: 1.5rem 0;
}
.horma-service h3 {
	font-family: var(--horma-font-display);
	font-size: clamp(1.4rem, 2.6vw, 2rem);
	font-weight: 480;
	margin: 0 0 0.3rem;
	color: var(--horma-ink);
}
.horma-service h3 a { text-decoration: none; }
.horma-service p { margin: 0; color: var(--horma-muted); line-height: 1.8; max-width: 60ch; }
.horma-service-num {
	font-family: var(--horma-font-display);
	font-size: clamp(0.95rem, 1.6vw, 1.2rem);
	line-height: 1;
	font-weight: 400;
	color: var(--horma-muted);
}

/* === ficha: variantes editoriales por proyecto ===
   Diferencian la composición de cada ficha sin duplicar estructura, vía
   clase de página (body.page-id-*). Rejilla, orden y escala varían. */
.horma-gallery { grid-template-columns: repeat(2, 1fr); }
/* 01 Casa Umbral — galería equilibrada, plano estrecho */
.page-id-215 .horma-plan { max-width: 76%; margin-left: auto; }
/* 02 Patio de Hormigón — hechos a dos columnas, galería desigual */
.page-id-216 .horma-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.page-id-216 .horma-gallery { grid-template-columns: 1.35fr 1fr; align-items: start; }
.page-id-216 .horma-gallery .wp-block-image:nth-child(2) { margin-top: clamp(1rem, 4vw, 3rem); }
/* 03 Vivienda Ladera — imagen principal enmarcada y ancha */
.page-id-217 .horma-section:nth-of-type(3) .wp-block-image { max-width: 92%; }
.page-id-217 .horma-section:nth-of-type(3) .wp-block-image img { border: 1px solid var(--horma-line); }
/* 04 Centro Cívico — galería invertida, hechos compactos */
.page-id-218 .horma-gallery { grid-template-columns: 1fr 1.35fr; align-items: center; }
.page-id-218 .horma-facts { gap: 1rem; }
/* 05 Casa Silencio — hechos a dos columnas, plano a doble ancho */
.page-id-219 .horma-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.page-id-219 .horma-plan { max-width: 100%; }
/* 06 Reforma — galería desplazada y concepto al revés */
.page-id-220 .horma-gallery { grid-template-columns: 1fr 1.35fr; align-items: center; }
.page-id-220 .horma-gallery .wp-block-image:nth-child(2) { transform: translateY(clamp(1rem, 4vw, 3.2rem)); }
.page-id-220 .horma-facts { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 0.6rem; }
.page-id-220 .horma-facts .horma-fact { min-width: 0; }
.page-id-220 .wp-block-columns .wp-block-column:first-child { order: 2; }
.page-id-220 .wp-block-columns .wp-block-column:last-child { order: 1; }

/* === gallery / plans (drawing) === */
.horma-gallery {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: clamp(0.5rem, 2vw, 1rem);
}
.horma-gallery--stagger .wp-block-image:nth-child(odd) {
	transform: translateY(clamp(0.5rem, 3vw, 2.5rem));
}
.horma-gallery figure { margin: 0; background: var(--horma-concrete); overflow: hidden; }
.horma-gallery img { width: 100%; display: block; filter: grayscale(1); transition: transform 0.7s var(--horma-ease); }
.horma-gallery figure:hover img { transform: scale(1.03); }
.horma-gallery figcaption,
.horma-figcap {
	font-size: 0.68rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--horma-muted);
	margin-top: 0.6rem;
}

/* plano: lápida sobre fondo de papel con encuadre */
.horma-plan figure {
	margin: 0;
	background: var(--horma-paper);
	border: 1px solid var(--horma-line);
	padding: clamp(1rem, 3vw, 2rem);
}
.horma-plan img { width: 100%; display: block; mix-blend-mode: multiply; opacity: 0.94; }
.horma-plan .wp-element-caption,
.horma-plan figcaption {
	font-size: 0.68rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--horma-muted);
	margin-top: 1rem;
	border-top: 1px solid var(--horma-line);
	padding-top: 0.7rem;
}
.horma-sheet-title {
	font-size: 0.68rem;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--horma-muted);
	margin: 0;
}
/* === form === */
.horma-form-note {
	font-size: 0.74rem;
	color: var(--horma-muted);
	line-height: 1.7;
	border: 1px solid var(--horma-line);
	border-left-width: 3px;
	padding: 0.9rem 1.1rem;
	max-width: 66ch;
}
.horma-contact .wp-block-jetpack-contact-form,
.horma-form { max-width: 720px; }
.horma-contact .wp-block-jetpack-contact-form label {
	font-size: 0.66rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--horma-muted);
	font-weight: 500;
}
.horma-contact .wp-block-jetpack-contact-form input[type="text"],
.horma-contact .wp-block-jetpack-contact-form input[type="email"],
.horma-contact .wp-block-jetpack-contact-form select,
.horma-contact .wp-block-jetpack-contact-form textarea {
	width: 100%;
	font-family: var(--horma-font-sans);
	font-size: 0.98rem;
	color: var(--horma-text);
	background: var(--horma-paper);
	border: 1px solid var(--horma-line);
	border-radius: 0;
	padding: 0.9rem 1rem;
	margin-top: 0.4rem;
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.horma-contact .wp-block-jetpack-contact-form textarea { min-height: 140px; resize: vertical; }
.horma-contact .wp-block-jetpack-contact-form input:focus,
.horma-contact .wp-block-jetpack-contact-form select:focus,
.horma-contact .wp-block-jetpack-contact-form textarea:focus {
	border-color: var(--horma-ink);
	outline: none;
	box-shadow: 0 1px 0 0 var(--horma-ink);
}
.horma-contact .wp-block-jetpack-contact-form input:focus-visible,
.horma-contact .wp-block-jetpack-contact-form select:focus-visible,
.horma-contact .wp-block-jetpack-contact-form textarea:focus-visible {
	outline: 2px solid var(--horma-ink);
	outline-offset: 1px;
}
.horma-contact .wp-block-jetpack-contact-form button[data-wp-action],
.horma-contact .wp-block-jetpack-contact-form button[type="submit"],
.horma-contact .wp-block-jetpack-contact-form .wp-block-jetpack-contact-form__submit {
	font-family: var(--horma-font-sans);
	font-size: 0.72rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	background: var(--horma-ink);
	color: var(--horma-bg);
	border: 1px solid var(--horma-ink);
	padding: 1rem 1.6rem;
	cursor: pointer;
	transition: background 0.3s ease, color 0.3s ease;
}
.horma-contact .wp-block-jetpack-contact-form button[data-wp-action]:hover,
.horma-contact .wp-block-jetpack-contact-form button[type="submit"]:hover,
.horma-contact .wp-block-jetpack-contact-form .wp-block-jetpack-contact-form__submit:hover {
	background: var(--horma-paper);
	color: var(--horma-ink);
}

/* === article / contact === */
.horma-article p {
	font-family: var(--horma-font-display);
	font-size: clamp(1.02rem, 1.4vw, 1.15rem);
	line-height: 1.85;
	color: var(--horma-text);
}
.horma-article > .wp-block-column > p:first-of-type::first-letter {
	font-family: var(--horma-font-display);
	font-size: 3.4em;
	float: left;
	line-height: 0.8;
	padding-right: 0.15em;
	color: var(--horma-ink);
}
.horma-article blockquote,
.horma-article .wp-block-quote {
	margin: 2.5rem 0;
	border-left: 3px solid var(--horma-ink);
	padding-left: 1.5rem;
}
.horma-article blockquote p {
	font-family: var(--horma-font-display);
	font-size: clamp(1.5rem, 2.6vw, 2.1rem);
	font-weight: 460;
	line-height: 1.2;
	letter-spacing: -0.01em;
	color: var(--horma-ink);
}
.horma-byline {
	font-size: 0.7rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--horma-muted);
}
.horma-contact-notice {
	background: var(--horma-paper);
	border: 1px solid var(--horma-line);
	padding: 1.1rem 1.3rem;
	max-width: 720px;
}
.horma-contact-notice p { margin: 0; font-size: 0.9rem; line-height: 1.7; color: var(--horma-text); }
.horma-dim { color: var(--horma-muted); font-size: 0.88rem; }
.horma-foot-title { margin-bottom: 1rem; }

/* utilidades de espaciado */
.horma-mb { margin-bottom: 1.4rem; }
.horma-mt { margin-top: 1.2rem; }
.horma-padleft { padding-left: clamp(0.5rem, 2.5vw, 2rem); }
.horma-gap { gap: clamp(1rem, 3vw, 2.5rem); }
.horma-line-t { border-top: 1px solid var(--horma-line); padding-top: 0.5rem; }
.horma-facts-text { font-size: 0.9rem; line-height: 1.7; color: var(--horma-text); }

/* === motion / reveal === */
.horma-section { will-change: transform, opacity; }
html.horma-js .horma-section:not(.is-fixed) {
	opacity: 0;
	transform: translateY(26px);
	transition: opacity 0.8s var(--horma-ease), transform 0.8s var(--horma-ease);
}
html.horma-js .horma-section.is-in {
	opacity: 1;
	transform: none;
}
/* entrada escalonada del hero */
html.horma-js .horma-hero-title,
html.horma-js .horma-hero-sub,
html.horma-js .horma-hero-ctas,
html.horma-js .horma-hero-eyebrow,
html.horma-js .horma-hero-meta {
	opacity: 0;
	transform: translateY(22px);
	transition: opacity 0.8s var(--horma-ease), transform 0.8s var(--horma-ease);
}
html.horma-js.is-entered .horma-hero-title { opacity: 1; transform: none; transition-delay: 0.05s; }
html.horma-js.is-entered .horma-hero-sub { opacity: 1; transform: none; transition-delay: 0.18s; }
html.horma-js.is-entered .horma-hero-ctas { opacity: 1; transform: none; transition-delay: 0.3s; }
html.horma-js.is-entered .horma-hero-eyebrow { opacity: 1; transform: none; transition-delay: 0s; }
html.horma-js.is-entered .horma-hero-meta { opacity: 1; transform: none; transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	html.horma-js .horma-section,
	html.horma-js .horma-hero-title,
	html.horma-js .horma-hero-sub,
	html.horma-js .horma-hero-ctas,
	html.horma-js .horma-hero-eyebrow,
	html.horma-js .horma-hero-meta {
		opacity: 1 !important;
		transform: none !important;
		transition: none !important;
	}
	.horma-card img,
	.horma-gallery img { transition: none; }
}
/* === responsive === */
@media (max-width: 1080px) {
	.horma-grid-col--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
	.horma-grid-col { grid-template-columns: repeat(2, 1fr); }
	.horma-hero-title { max-width: 11ch; }
}
@media (max-width: 860px) {
	.horma-toggle { display: block; }
	.horma-nav {
		position: fixed;
		inset: 0;
		flex-direction: column;
		justify-content: center;
		gap: 0;
		background: var(--horma-bg);
		padding: 0 clamp(1.5rem, 8vw, 3.5rem);
		opacity: 0;
		visibility: hidden;
		transform: translateY(14px);
		z-index: 70;
		transition: opacity 0.35s var(--horma-ease), transform 0.35s var(--horma-ease), visibility 0.35s;
	}
	.horma-shell.is-menu-open .horma-nav {
		opacity: 1;
		visibility: visible;
		transform: none;
	}
	.horma-shell.is-menu-open .horma-toggle-btn {
		position: fixed;
		top: 1.25rem;
		right: var(--horma-gutter);
		z-index: 80;
		background: var(--horma-ink);
		color: var(--horma-bg);
	}
	.horma-nav-item a {
		font-size: clamp(1.6rem, 8vw, 2.6rem);
		letter-spacing: 0.06em;
		text-transform: none;
		line-height: 1.1;
		background-size: 0% 2px;
	}
	.horma-nav-item.is-active a,
	.horma-nav-item a:hover,
	.horma-nav-item a:focus-visible { background-size: 100% 2px; }
	.horma-catalog { display: none; }
	.horma-right { margin-left: auto; }
	.horma-hero { min-height: 72vh; }
	.horma-hero-title { font-size: clamp(2.7rem, 11vw, 4.6rem); max-width: 13ch; }
	.horma-gallery--stagger .wp-block-image:nth-child(odd) { transform: none; }
	.horma-gallery { grid-template-columns: 1fr; }
	.horma-footer-grid { flex-direction: column; }
	.horma-ledger-row { grid-template-columns: 2.6rem 1fr auto; gap: 1rem; }
	.horma-section::before, .horma-section::after { display: none; }
	.horma-grid-col--2 { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
	.horma-grid-col { grid-template-columns: 1fr; }
	.horma-grid-col--4 { grid-template-columns: 1fr; }
	.horma-tagline { display: none; }
	.horma-header { min-height: 76px; }
	.horma-facts { gap: 1rem; }
	.horma-quote, .horma-blockquote { font-size: clamp(1.4rem, 7vw, 2rem); }
	.horma-nav-item a { font-size: 1.9rem; }
	.wp-block-buttons .wp-block-button { width: 100%; }
	.horma-btn .wp-block-button__link,
	.horma-btn-ghost .wp-block-button__link,
	.horma-btn-onimg .wp-block-button__link {
		width: 100%;
		justify-content: center;
	}
}

/* ==========================================================================
   FASE 3 — Corrección de alineaciones y composición editorial
   ========================================================================== */

/* Los bloques `alignfull` anidados dentro de una sección recibían el margen
   negativo del padding global (-3rem) y se salían del contenedor: el eyebrow
   "Proyectos destacados" y el enlace "Ver todos" quedaban recortados. Se
   devuelven al ancho de la retícula (misma caja que las columnas). */
.horma-section > .alignfull:not(.wp-block-cover) {
	width: 100%;
	max-width: var(--horma-max);
	margin-left: auto !important;
	margin-right: auto !important;
}

/* Portada: título, subtítulo y botones comparten el mismo borde izquierdo
   (el layout "constrained" centraba título y subtítulo por separado). */
.horma-hero .horma-titleblock > * {
	margin-left: 0 !important;
	margin-right: auto !important;
}
.horma-hero .horma-hero-ctas {
	justify-content: flex-start;
}

/* Gutter lateral: en pantallas menores a la retícula (1380px) el texto de las
   secciones tocaba el borde del viewport. */
.horma-section:not(.horma-cta) {
	padding-left: clamp(1.25rem, 4vw, 2rem);
	padding-right: clamp(1.25rem, 4vw, 2rem);
}

/* El texto de la portada arranca en el mismo borde que el resto de secciones. */
.horma-hero .horma-titleblock {
	padding-left: 0 !important;
	padding-right: 0 !important;
}
.horma-hero .horma-titleblock {
	padding-left: max(calc(clamp(1.25rem, 4vw, 2rem) - 16px), calc((100% - var(--horma-max)) / 2)) !important;
}

/* Menú móvil: el logo queda visible sobre el panel, los enlaces respiran con
   la tipografía editorial y se separan con filetes de plano. */
@media (max-width: 860px) {
	.horma-shell.is-menu-open .horma-brand {
		position: relative;
		z-index: 80;
	}
	.horma-nav {
		align-items: stretch;
		counter-reset: hm;
	}
	.horma-nav-item {
		counter-increment: hm;
		border-top: 1px solid var(--horma-line);
	}
	.horma-nav-item:last-child { border-bottom: 1px solid var(--horma-line); }
	.horma-nav-item a {
		display: flex;
		align-items: baseline;
		gap: 1rem;
		padding: 1rem 0;
		font-family: var(--horma-font-display);
		font-weight: 420;
		letter-spacing: -0.01em;
		background-image: none;
	}
	.horma-nav-item a::before {
		content: "0" counter(hm);
		font-family: var(--horma-font-sans);
		font-size: 0.68rem;
		letter-spacing: 0.18em;
		color: var(--horma-muted);
	}
	.horma-nav-item.is-active a { font-style: italic; }
}
.horma-nav-item.is-active a::before { font-style: normal; }

/* Proyectos: la retícula contiene FILAS de 3 fichas (cada fila es un bloque
   de columnas). Como grid de 3 columnas cada fila quedaba en ~300px y las
   fichas se comprimían. Las filas ocupan todo el ancho. */
.horma-grid-col:has(> .wp-block-columns) {
	display: block;
}
.horma-grid-col > .wp-block-columns {
	gap: clamp(1.25rem, 3vw, 2.5rem);
	margin: 0 0 clamp(1.5rem, 4vw, 3rem);
}
@media (max-width: 781px) {
	.horma-grid-col > .wp-block-columns {
		flex-direction: column;
		flex-wrap: nowrap;
	}
	.horma-grid-col > .wp-block-columns > .wp-block-column {
		flex-basis: 100% !important;
		width: 100%;
	}
}
.horma-grid-col > .wp-block-columns figure,
.horma-grid-col > .wp-block-columns img {
	width: 100%;
	height: auto;
}

/* ==========================================================================
   REWORK "ESPACIO LENTO" — movimiento pausado de 900–1400 ms, láminas de
   gran formato, botones de placa y lightbox. Todo el movimiento va dentro de
   prefers-reduced-motion: no-preference o detrás de html.horma-js.
   ========================================================================== */

/* ---- Botones: la placa sube desde abajo (sin elevación) ---- */
.wp-block-button__link.wp-element-button {
	position: relative;
	min-height: 48px;
	background-repeat: no-repeat;
	background-position: 0 100%;
	background-size: 100% 0%;
	transform: none !important;
	transition: background-size 0.6s var(--horma-ease), color 0.45s ease, border-color 0.45s ease, translate 0.2s ease !important;
}
.wp-block-button__link.wp-element-button:hover,
.wp-block-button__link.wp-element-button:focus-visible { transform: none !important; background-size: 100% 100%; }
.wp-block-button__link.wp-element-button:active { translate: 0 1px; }
.wp-block-button__link.wp-element-button:focus-visible { outline: 2px solid var(--horma-ink); outline-offset: 3px; }
.wp-block-button__link.wp-element-button::after {
	content: "";
	flex: none;
	width: 1.4rem; height: 1px;
	background: currentColor;
	transform-origin: left center;
	transition: transform 0.6s var(--horma-ease);
}
.wp-block-button__link.wp-element-button:hover::after { transform: scaleX(1.5); }
.horma-btn .wp-block-button__link {
	background-color: var(--horma-ink);
	background-image: linear-gradient(var(--horma-paper), var(--horma-paper));
}
.horma-btn-ghost .wp-block-button__link {
	background-color: transparent;
	background-image: linear-gradient(var(--horma-ink), var(--horma-ink));
}
.horma-btn-ghost .wp-block-button__link:hover,
.horma-btn-ghost .wp-block-button__link:focus-visible { background-color: transparent; color: var(--horma-bg); }
.horma-btn-onimg .wp-block-button__link {
	background-color: transparent;
	background-image: linear-gradient(#fff, #fff);
}
.horma-btn-onimg .wp-block-button__link:hover,
.horma-btn-onimg .wp-block-button__link:focus-visible { background-color: transparent; color: var(--horma-ink); }
.horma-btn-onimg .wp-block-button__link:focus-visible { outline-color: #fff; }
.horma-btn-onimg .wp-block-button__link::after { content: ""; }
.horma-btn-onimg .wp-block-button__link:hover::after { transform: scaleX(1.5); }
.horma-invert .horma-btn-ghost .wp-block-button__link { background-image: linear-gradient(#fff, #fff); }
.horma-invert .horma-btn-ghost .wp-block-button__link:hover { background-color: transparent; color: var(--horma-ink); }

/* ---- Formulario demostrativo ---- */
.horma-demo-form { display: grid; gap: 1.4rem; max-width: 720px; }
.horma-field { display: grid; gap: 0.45rem; }
.horma-field label { font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--horma-muted); }
.horma-field input, .horma-field select, .horma-field textarea {
	font: inherit; font-size: 1rem; color: var(--horma-ink);
	background: transparent; border: 0; border-bottom: 1px solid var(--horma-ink);
	border-radius: 0; padding: 0.7rem 0; min-height: 48px; width: 100%;
	transition: border-color 0.4s ease, box-shadow 0.5s var(--horma-ease);
}
.horma-field textarea { min-height: 140px; resize: vertical; }
.horma-field input:focus, .horma-field select:focus, .horma-field textarea:focus {
	outline: none; box-shadow: 0 2px 0 0 var(--horma-ink);
}
.horma-field [aria-invalid="true"] { border-bottom-color: #8a2a1f; box-shadow: 0 2px 0 0 #8a2a1f; }
.horma-form-err { margin: 0; color: #8a2a1f; font-size: 0.92rem; }
.horma-form-ok { margin: 0; padding: 1rem 1.2rem; background: var(--horma-paper); border: 1px solid var(--horma-line); font-size: 0.95rem; }
.horma-demo-form [hidden] { display: none; }
.horma-form-submit {
	justify-self: start; cursor: pointer;
	font: 500 0.72rem/1 var(--horma-font-sans); letter-spacing: 0.16em; text-transform: uppercase;
	color: var(--horma-bg); background-color: var(--horma-ink); border: 1px solid var(--horma-ink); border-radius: 0;
	padding: 1rem 1.6rem; min-height: 48px;
	background-image: linear-gradient(var(--horma-paper), var(--horma-paper)); background-repeat: no-repeat; background-position: 0 100%; background-size: 100% 0%;
	transition: background-size 0.6s var(--horma-ease), color 0.45s ease;
}
.horma-form-submit:hover, .horma-form-submit:focus-visible { background-size: 100% 100%; color: var(--horma-ink); }
.horma-form-submit:focus-visible { outline: 2px solid var(--horma-ink); outline-offset: 3px; }

/* ---- Proceso y materiales ---- */
.horma-steps, .horma-mats {
	display: grid; grid-template-columns: repeat(4, 1fr);
	gap: clamp(1rem, 2.5vw, 2rem); max-width: var(--horma-max); margin-inline: auto;
}
.horma-step, .horma-mat { border-top: 1px solid var(--horma-ink); padding-top: 1.1rem; }
.horma-step-no { font-family: var(--horma-font-display); font-size: 2.2rem; line-height: 1; margin: 0 0 1.4rem; color: var(--horma-faint); }
.horma-step-title { font-family: var(--horma-font-display); font-weight: 420; font-size: 1.5rem; margin: 0 0 0.6rem; letter-spacing: -0.01em; }
.horma-mat .horma-body, .horma-step .horma-body { margin: 0; font-size: 0.95rem; line-height: 1.7; color: var(--horma-muted); }
.horma-swatch { display: block; aspect-ratio: 4 / 3; margin-bottom: 1.1rem; border: 1px solid var(--horma-line); }
.hm-sw--concrete { background: repeating-linear-gradient(90deg, rgba(0,0,0,0.05) 0 1px, transparent 1px 38px), linear-gradient(135deg, #bdbab3, #d6d3cc); }
.hm-sw--wood { background: repeating-linear-gradient(180deg, rgba(60,35,10,0.1) 0 1px, transparent 1px 7px), linear-gradient(90deg, #c3a57c, #d4ba95); }
.hm-sw--steel { background: linear-gradient(135deg, #1f2022, #3a3b3e); }
.hm-sw--glass { background: linear-gradient(135deg, rgba(196,214,216,0.55), rgba(240,246,246,0.9)); }
@media (max-width: 900px) { .horma-steps, .horma-mats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .horma-steps, .horma-mats { grid-template-columns: 1fr; } .horma-swatch { aspect-ratio: 16 / 9; } }

/* ---- Índice numerado de proyectos ---- */
.horma-grid-col { counter-reset: pj; }
.horma-grid-col .horma-card { counter-increment: pj; }
.horma-grid-col .horma-card .horma-tag::before { content: "0" counter(pj) "\00a0\2014\00a0"; color: var(--horma-ink); }

/* ---- Lightbox ---- */
html.hm-lock { overflow: hidden; }
.hm-lb { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: clamp(1rem, 4vw, 3rem); background: rgba(25,25,27,0.94); opacity: 0; transition: opacity 0.6s var(--horma-ease); }
.hm-lb[hidden] { display: none; }
.hm-lb.is-open { opacity: 1; }
.hm-lb-f { margin: 0; max-width: min(1400px, 100%); display: grid; gap: 0.8rem; justify-items: center; }
.hm-lb-f img { max-width: 100%; max-height: 78vh; width: auto; height: auto; object-fit: contain; }
.hm-lb-c { color: rgba(255,255,255,0.78); font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; text-align: center; }
.hm-lb button { position: absolute; cursor: pointer; color: #fff; background: transparent; border: 1px solid rgba(255,255,255,0.5); border-radius: 0; min-width: 48px; min-height: 48px; padding: 0 1rem; font: 500 0.72rem/1 var(--horma-font-sans); letter-spacing: 0.16em; text-transform: uppercase; transition: background 0.4s ease, color 0.4s ease; }
.hm-lb button:hover, .hm-lb button:focus-visible { background: #fff; color: var(--horma-ink); }
.hm-lb button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.hm-lb-x { top: 1rem; right: 1rem; }
.hm-lb-p { left: 1rem; top: 50%; translate: 0 -50%; font-size: 1.1rem !important; }
.hm-lb-n { right: 1rem; top: 50%; translate: 0 -50%; font-size: 1.1rem !important; }
.hm-zoomable { cursor: zoom-in; }
.hm-zoomable:focus-visible { outline: 2px solid var(--horma-ink); outline-offset: 4px; }
@media (max-width: 700px) {
	.hm-lb-p, .hm-lb-n { top: auto; bottom: 1rem; translate: none; }
	.hm-lb-f img { max-height: 70vh; }
}

/* ---- Cursor "VER" ---- */
.hm-cursor { position: fixed; left: 0; top: 0; z-index: 150; pointer-events: none; width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: var(--horma-ink); color: var(--horma-bg); font: 500 0.66rem/1 var(--horma-font-sans); letter-spacing: 0.18em; text-transform: uppercase; opacity: 0; scale: 0.4; transition: opacity 0.35s ease, scale 0.6s var(--horma-ease); will-change: transform; }
.hm-cursor.is-on { opacity: 1; scale: 1; }

/* ---- Movimiento (solo sin preferencia de reducción) ---- */
@media (prefers-reduced-motion: no-preference) {
	/* hero: zoom lento + parallax; título enmascarado por palabras */
	html.horma-js .horma-hero .wp-block-cover__image-background {
		animation: hm-zoom 22s var(--horma-ease) both;
		translate: 0 var(--hm-py, 0px);
	}
	@keyframes hm-zoom { from { scale: 1.14; } to { scale: 1.02; } }
	.horma-hero { overflow: hidden; }
	html.horma-js .horma-hero-title.hm-split { opacity: 1; transform: none; transition: none; }
	.hm-split .hm-w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.12em; margin-bottom: -0.12em; }
	html.horma-js .hm-split .hm-wi { display: inline-block; transform: translateY(108%); transition: transform 1.2s var(--horma-ease); transition-delay: calc(var(--i) * 110ms + 150ms); }
	html.horma-js.is-entered .hm-split .hm-wi { transform: none; }
	html.horma-js .horma-hero-title:not(.hm-split),
	html.horma-js .horma-hero-sub, html.horma-js .horma-hero-ctas, html.horma-js .horma-hero-meta { transition-duration: 1.1s; }
	html.horma-js.is-entered .horma-hero-sub { transition-delay: 0.7s; }
	html.horma-js.is-entered .horma-hero-ctas { transition-delay: 0.9s; }
	html.horma-js.is-entered .horma-hero-meta { transition-delay: 0.8s; }

	/* secciones: entrada más pausada */
	html.horma-js .horma-section:not(.is-fixed) { transition-duration: 1.1s; }

	/* láminas: máscara que se abre + asentado de la imagen + parallax */
	html.horma-js .hm-fig { overflow: hidden; clip-path: inset(0 0 calc(100% - .3px) 0); transition: clip-path 1.3s var(--horma-ease); }
	html.horma-js .hm-fig.is-in { clip-path: inset(0); }
	html.horma-js .hm-fig img { transform: scale(1.2); transition: transform 1.8s var(--horma-ease); translate: 0 calc(var(--hm-p, 0) * 3.2%); will-change: transform; }
	html.horma-js .hm-fig.is-in img { transform: scale(1.07); }
	html.horma-js .hm-fig.hm-expand.is-in { clip-path: inset(calc((1 - var(--hm-x, 1)) * 6%) calc((1 - var(--hm-x, 1)) * 9%)); transition: none; }

	/* elementos escalonados */
	html.horma-js .hm-st { opacity: 0; translate: 0 24px; transition: opacity 1s var(--horma-ease), translate 1.1s var(--horma-ease); transition-delay: calc(var(--i, 0) * 130ms); }
	html.horma-js .hm-st.is-in { opacity: 1; translate: 0 0; }

	/* hover solo con puntero fino */
	@media (hover: hover) and (pointer: fine) {
		html.horma-js .hm-fig.is-in:hover img { transform: scale(1.11); }
		.horma-service { transition: padding-left 0.7s var(--horma-ease); }
		.horma-service:hover { padding-left: 0.9rem; }
	}

	/* menú móvil: elementos escalonados */
	@media (max-width: 860px) {
		.horma-shell.is-menu-open .horma-nav-item { animation: hm-in 0.9s var(--horma-ease) both; animation-delay: calc(var(--i, 0) * 80ms + 140ms); }
		.horma-nav { transition-duration: 0.6s; }
	}
	@keyframes hm-in { from { opacity: 0; translate: 0 18px; } to { opacity: 1; translate: 0 0; } }
}
@media (prefers-reduced-motion: reduce) {
	.hm-cursor { display: none; }
	.hm-lb { transition: none; }
}

/* ---- Móvil: recortes verticales y sin dependencia de hover ---- */
@media (max-width: 781px) {
	.horma-hero { min-height: 78svh; }
	.horma-hero .wp-block-cover__image-background { object-position: 38% 50%; }
	.horma-card figure img, .horma-section--tight .wp-block-column .wp-block-image img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
	.hm-cursor { display: none; }
}
@media (hover: none) { .hm-cursor { display: none; } }

/* Fase 3 — objetivos táctiles: enlaces de cabecera, navegación, pie y títulos de tarjeta (mín. 36–44 px) */
body.page-template-page-horma header a, body.page-template-page-horma footer a, body.page-template-page-horma .wp-block-navigation-item__content { display: inline-flex; align-items: center; min-height: 36px; }
body.page-template-page-horma header .wp-block-navigation-item__content, body.page-template-page-horma header nav a { min-height: 44px; }
body.page-template-page-horma .wp-block-navigation__responsive-container-open, body.page-template-page-horma .wp-block-navigation__responsive-container-close { min-width: 44px; min-height: 44px; }
body.page-template-page-horma [class*="-card-name"] a, body.page-template-page-horma [class*="-card-title"] a, body.page-template-page-horma [class*="-card"] h3 a { display: inline-block; padding-block: .4rem; }
/* ==========================================================================
   HORMA — HERO "CORTE": la misma obra en fotografía y en plano; un corte
   arrastrable (como una línea de sección A–A′) revela una u otra. Original de HORMA.
   ========================================================================== */
.hx-wrap { padding: 0 !important; margin-block: 0 !important; }
.hx, .hx * { box-sizing: border-box; }
.hx { position: relative; background: #0e0e0f; color: #fff; }
.hx-stage { position: relative; height: clamp(560px, calc(100svh - 88px), 860px); overflow: hidden; isolation: isolate; }
.hx-photo, .hx-plan img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.hx-photo { filter: grayscale(1) contrast(1.05) brightness(.95); scale: 1.04; }
.hx-plan { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--p)); }
.hx-plan img { filter: grayscale(1) invert(1) contrast(1.55) brightness(.78) sepia(1) hue-rotate(185deg) saturate(4.5); scale: 1.04; }
.hx-lines { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.16) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.16) 1px, transparent 1px), linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px); background-size: 96px 96px, 96px 96px, 24px 24px, 24px 24px; }
.hx-shade { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(0deg, rgba(8,8,9,.82) 0%, rgba(8,8,9,.18) 55%, rgba(8,8,9,.35) 100%), linear-gradient(90deg, rgba(8,8,9,.55), transparent 65%); }
.hx-tag { position: absolute; z-index: 4; top: 1.4rem; padding: .45rem .7rem; font: 600 .66rem/1 var(--horma-font-sans, sans-serif); letter-spacing: .2em; text-transform: uppercase; border: 1px solid rgba(255,255,255,.5); background: rgba(14,14,15,.45); }
.hx-tag--l { left: clamp(1.2rem, 4vw, 3rem); } .hx-tag--r { right: clamp(1.2rem, 4vw, 3rem); }
.hx-range { position: absolute; inset: 0; z-index: 6; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; -webkit-appearance: none; appearance: none; }
.hx-range::-webkit-slider-thumb { -webkit-appearance: none; width: 60px; height: 100vh; }
.hx-range::-moz-range-thumb { width: 60px; height: 100vh; border: 0; }
.hx-cut { position: absolute; z-index: 5; top: 0; bottom: 0; left: var(--p); width: 0; pointer-events: none; }
.hx-cut::before { content: ""; position: absolute; top: 0; bottom: 0; left: -.5px; width: 1px; background: #fff; box-shadow: 0 0 0 1px rgba(14,14,15,.25); }
.hx-handle { position: absolute; top: 46%; left: -23px; width: 46px; height: 46px; display: grid; place-items: center; background: #fff; color: #0e0e0f; border-radius: 50%; box-shadow: 0 10px 30px -8px rgba(0,0,0,.6); }
.hx-handle i { width: 14px; height: 14px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; rotate: 45deg; opacity: 0; }
.hx-handle::before, .hx-handle::after { content: ""; position: absolute; top: 50%; width: 8px; height: 8px; border-top: 2px solid currentColor; border-left: 2px solid currentColor; }
.hx-handle::before { left: 9px; rotate: -45deg; translate: 0 -50%; margin-top: -1px; }
.hx-handle::after { right: 9px; rotate: 135deg; translate: 0 -50%; margin-top: -1px; }
.hx-range:focus-visible ~ .hx-cut .hx-handle { outline: 3px solid #fff; outline-offset: 4px; }
.hx-mk { position: absolute; left: -14px; width: 28px; height: 28px; display: grid; place-items: center; background: #0e0e0f; color: #fff; border: 1px solid #fff; border-radius: 50%; font: 600 .72rem/1 var(--horma-font-sans, sans-serif); }
.hx-mk--t { top: 5rem; } .hx-mk--b { bottom: 5.4rem; }
.hx-copy { position: absolute; z-index: 3; left: clamp(1.2rem, 4vw, 3rem); bottom: clamp(2.6rem, 6vw, 4.6rem); max-width: min(44rem, calc(100% - 2.4rem)); pointer-events: none; }
.hx-copy a { pointer-events: auto; }
.hx-eyebrow { display: flex; align-items: center; gap: .8rem; margin: 0 0 1rem; font: 600 .7rem/1 var(--horma-font-sans, sans-serif); letter-spacing: .22em; text-transform: uppercase; color: rgba(255,255,255,.85); }
.hx-eyebrow::before { content: ""; width: 2.4rem; height: 1px; background: currentColor; }
.hx-title { margin: 0 0 1rem; font: 420 clamp(2.7rem, 6.6vw, 6.2rem)/.96 var(--horma-font-display, serif); letter-spacing: -.028em; color: #fff; text-wrap: balance; }
.hx-sub { margin: 0 0 1.6rem; max-width: 34rem; font-size: clamp(1rem, 1.3vw, 1.12rem); line-height: 1.65; color: rgba(255,255,255,.9); }
.hx-ctas { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem 1.6rem; }
.hx .hx-btn { position: relative; display: inline-flex; align-items: center; gap: 1rem; min-height: 52px; padding: 0 1.5rem; color: #fff; text-decoration: none; border: 1px solid #fff; overflow: hidden; isolation: isolate; font: 500 .74rem/1 var(--horma-font-sans, sans-serif); letter-spacing: .18em; text-transform: uppercase; transition: color .5s ease; }
.hx-btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: #fff; transform: translateY(101%); transition: transform .6s cubic-bezier(.22,.61,.36,1); }
.hx-btn i { width: 1.6rem; height: 1px; background: currentColor; position: relative; transition: width .5s cubic-bezier(.22,.61,.36,1); }
.hx-btn i::after { content: ""; position: absolute; right: 0; top: -3px; width: 7px; height: 7px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; rotate: 45deg; }
.hx .hx-btn:hover, .hx .hx-btn:focus-visible { color: #0e0e0f; } .hx-btn:hover::before, .hx-btn:focus-visible::before { transform: none; } .hx-btn:hover i { width: 2.4rem; }
.hx .hx-link { display: inline-flex; align-items: center; min-height: 44px; color: #fff; text-decoration: none; font: 500 .74rem/1 var(--horma-font-sans, sans-serif); letter-spacing: .18em; text-transform: uppercase; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; padding-bottom: 3px; transition: background-size .5s ease; }
.hx-link:hover { background-size: 0 1px; background-position: 100% 100%; }
.hx a:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.hx-hint { position: absolute; z-index: 3; right: clamp(1.2rem, 4vw, 3rem); bottom: 1.4rem; margin: 0; font: 500 .66rem/1.4 var(--horma-font-sans, sans-serif); letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.7); text-align: right; max-width: 18rem; }
@media (max-width: 760px) {
	.hx-stage { height: clamp(580px, 88svh, 780px); }
	.hx-hint { display: none; }
	.hx-copy { bottom: 2rem; }
	.hx-mk--b { bottom: 1rem; } .hx-handle { top: 34%; }
}
@media (prefers-reduced-motion: no-preference) {
	.hx-w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
	html.hx-m .hx-wi { display: inline-block; transform: translateY(108%); transition: transform 1.2s cubic-bezier(.22,.61,.36,1); transition-delay: calc(var(--i, 0) * 110ms + 250ms); }
	html.hx-m.hx-in .hx-wi { transform: none; }
	html.hx-m .hx-eyebrow, html.hx-m .hx-sub, html.hx-m .hx-ctas, html.hx-m .hx-hint { opacity: 0; translate: 0 16px; transition: opacity 1s ease, translate 1.1s cubic-bezier(.22,.61,.36,1); }
	html.hx-m.hx-in .hx-eyebrow { opacity: 1; translate: 0 0; transition-delay: .15s; }
	html.hx-m.hx-in .hx-sub { opacity: 1; translate: 0 0; transition-delay: 1s; }
	html.hx-m.hx-in .hx-ctas { opacity: 1; translate: 0 0; transition-delay: 1.15s; }
	html.hx-m.hx-in .hx-hint { opacity: 1; translate: 0 0; transition-delay: 1.8s; }
	.hx-photo, .hx-plan img { animation: hx-zoom 18s cubic-bezier(.22,.61,.36,1) both; }
	@keyframes hx-zoom { from { scale: 1.12; } to { scale: 1.02; } }
	.hx-handle { animation: hx-pulse 2.4s ease-in-out 2.4s 3; }
	@keyframes hx-pulse { 0%, 100% { box-shadow: 0 10px 30px -8px rgba(0,0,0,.6), 0 0 0 0 rgba(255,255,255,.5); } 50% { box-shadow: 0 10px 30px -8px rgba(0,0,0,.6), 0 0 0 14px rgba(255,255,255,0); } }
}

/* ==========================================================================
   MÓVIL — DOCK INFERIOR, PROGRESO DE LECTURA Y FOCO TÁCTIL (HORMA)
   Pensado para el pulgar: navegación a una mano, indicador que se desliza entre
   páginas y tarjetas que se "encienden" al centrarse en pantalla (el equivalente
   táctil del hover). Solo se activa en pantallas estrechas.
   ========================================================================== */
.hrm-dock, .hrm-prog { display: none; }
@media (max-width: 820px) {
	body.hrm-has-dock { padding-bottom: calc(86px + env(safe-area-inset-bottom, 0px)); }
	.hrm-prog { display: block; position: fixed; z-index: 90; top: 0; left: 0; right: 0; height: 3px; background: transparent; pointer-events: none; }
	.hrm-prog i { display: block; height: 100%; background: #6f9bff; transform: scaleX(0); transform-origin: left; }
	.hrm-dock {
		display: flex; position: fixed; z-index: 90; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom, 0px));
		margin: 0; padding: 6px; gap: 2px; background: #19191b; border: 1px solid rgba(255,255,255,.1); border-radius: 3px;
		box-shadow: 0 14px 34px -10px rgba(0,0,0,.45), 0 2px 6px rgba(0,0,0,.18);
		font-family: var(--horma-font-body, sans-serif); -webkit-tap-highlight-color: transparent; isolation: isolate;
		transition: transform .45s cubic-bezier(.22,.61,.36,1), opacity .3s ease;
	}
	.hrm-dock.is-away { transform: translateY(calc(100% + 24px)); opacity: 0; pointer-events: none; }
	.hrm-dock a {
		position: relative; z-index: 1; flex: 1 1 0; min-width: 0; min-height: 52px; display: grid; justify-items: center; align-content: center; gap: 3px;
		padding: 4px 2px; border-radius: calc(3px - 6px); color: #a9a9b0; text-decoration: none; font-size: .64rem; font-weight: 600; letter-spacing: .02em; line-height: 1.1;
		text-transform: none; background: none; border: 0; transition: color .25s ease, scale .2s ease;
	}
	.hrm-dock a:active { scale: .92; }
	.hrm-dock a svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s cubic-bezier(.34,1.56,.64,1); }
	.hrm-dock a span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
	.hrm-dock a.is-on { color: #19191b; }
	.hrm-dock a.is-on svg { transform: translateY(-1px) scale(1.12); }
	.hrm-dock a.is-cta { background: #6f9bff; color: #0d1020; flex: 1.15 1 0; border-radius: calc(3px - 6px); }
	.hrm-dock a.is-cta.is-on { color: #0d1020; box-shadow: inset 0 0 0 2px rgba(255,255,255,.55); }
	.hrm-ind { position: absolute; z-index: 0; top: 6px; bottom: 6px; left: 0; width: 0; border-radius: calc(3px - 6px); background: #f7f5f0; opacity: 0; pointer-events: none; }
	.hrm-ind.is-go { opacity: 1; transition: transform .5s cubic-bezier(.34,1.3,.64,1), width .5s cubic-bezier(.34,1.3,.64,1); }
	.hrm-dock a:focus-visible { outline: 2px solid #19191b; outline-offset: -2px; }
	/* Foco táctil: la tarjeta más cercana al centro de la pantalla se enciende. */
	.horma-card { transition: translate .6s cubic-bezier(.22,.61,.36,1), box-shadow .6s ease; }
	.horma-card.hrm-live { translate: 0 -4px; box-shadow: 0 18px 30px -18px rgba(0,0,0,.45); }
	.horma-card img { transition: scale 1.2s cubic-bezier(.22,.61,.36,1); }
	.horma-card.hrm-live img { scale: 1.06; }
	@media (prefers-reduced-motion: reduce) { .hrm-dock, .hrm-ind.is-go, .hrm-dock a, .hrm-dock a svg { transition: none; } }
}
@media (hover: none) { .wp-element-button:active, [class*="-btn"]:active, [class*="-cta"]:active { scale: .97; } }


/* ==========================================================================
   ENTRADA — pantalla de carga propia de HORMA (motivo: plan)
   ========================================================================== */
html.hrm-intro-on { overflow: hidden; }
.hrm-intro { position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center; background: #19191b; color: #f7f5f0; font-family: var(--horma-font-body, sans-serif); overflow: hidden; }
.hrm-intro-in { position: relative; z-index: 2; display: grid; justify-items: center; gap: .9rem; padding: 2rem; text-align: center; transition: opacity .4s ease, transform .7s cubic-bezier(.76,0,.24,1); }
.hrm-intro-g { width: clamp(150px, 42vw, 260px); height: auto; color: #6f9bff; overflow: visible; }
.hrm-intro-g path, .hrm-intro-g circle[pathLength] { stroke-dasharray: 1; stroke-dashoffset: 1; animation: hrm-draw 1s cubic-bezier(.65,0,.35,1) .1s forwards; }
.hrm-intro-g path[stroke-dasharray="6 8"] { stroke-dasharray: 6 8; stroke-dashoffset: 0; animation: none; clip-path: inset(0 100% 0 0); animation: hrm-wipe 1s ease .1s forwards; }
@keyframes hrm-draw { to { stroke-dashoffset: 0; } }
@keyframes hrm-wipe { to { clip-path: inset(0 0 0 0); } }
@keyframes hrm-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.hrm-intro-name { display: block; font-family: var(--horma-font-display, serif); font-size: clamp(2.6rem, 13vw, 5rem); line-height: 1; letter-spacing: -.02em; opacity: 0; animation: hrm-in .8s ease .25s forwards; }
.hrm-intro-tag { display: block; font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; opacity: 0; color: #f7f5f0; animation: hrm-in .8s ease .45s forwards; }
.hrm-intro-tag { opacity: 0; }
.hrm-intro-by { display: block; margin-top: 1.4rem; font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; opacity: 0; animation: hrm-in .8s ease .65s forwards; }
.hrm-intro.is-out .hrm-intro-in { opacity: 0; transform: translateY(-10px); }
@media (prefers-reduced-motion: reduce) { .hrm-intro { display: none; } html.hrm-intro-on { overflow: auto; } }

.hrm-intro { background: none; }
.hrm-intro::before, .hrm-intro::after { content: ""; position: absolute; left: 0; right: 0; height: 50.5%; background: #19191b; transition: transform .95s cubic-bezier(.76,0,.24,1); z-index: 0; }
.hrm-intro::before { top: 0; } .hrm-intro::after { bottom: 0; }
.hrm-intro.is-out::before { transform: translateY(-101%); } .hrm-intro.is-out::after { transform: translateY(101%); }
.hrm-intro-name { letter-spacing: .12em; }


/* Móvil: con el menú abierto, el acceso al catálogo de V&J queda fijo al pie del panel. */
@media (max-width: 860px) {
	.horma-shell.is-menu-open .horma-catalog { display: block; position: fixed; z-index: 75; left: var(--horma-gutter); right: var(--horma-gutter); bottom: calc(1.4rem + env(safe-area-inset-bottom, 0px)); text-align: center; }
	.horma-shell.is-menu-open .horma-catalog a { display: flex; justify-content: center; min-height: 48px; align-items: center; }
}

/* Móvil: franja superior con el acceso al catálogo de V&J. */
.horma-catstrip { display: none; }
@media (max-width: 860px) {
	.horma-catstrip { display: block; margin: 0; background: var(--horma-ink); }
	.horma-catstrip a { display: flex; align-items: center; gap: .5rem; min-height: 38px; padding: 0 var(--horma-gutter); color: var(--horma-bg); text-decoration: none; font-size: .66rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
}
