/* =====================================================================
   ARKSTRUCT · Design Evolution v1.0
   Sistema "Architectural Editorial Experience"
   - Tokens → Base → Tipografía → Componentes → Secciones → Movimiento
   - Estados iniciales de animación solo bajo html.js (sin JS todo es visible)
   ===================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --copper: #9B603C;
  --copper-ink: #84502F;          /* cobre para texto pequeño sobre marfil (AA) */
  --copper-soft: #B57A54;
  --graphite: #252525;
  --graphite-2: #1C1C1B;
  --graphite-3: #2F2E2C;
  --ivory: #F4F1EC;
  --stone: #E9E3DA;
  --white: #FFFFFF;
  --sand: #C3A78E;
  --ink: #252525;
  --muted: #5E5952;
  --muted-dark: #A9A399;
  --line: rgba(37, 37, 37, .14);
  --line-strong: rgba(37, 37, 37, .32);
  --line-dark: rgba(244, 241, 236, .14);

  --f-sans: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --f-serif: "Instrument Serif", Georgia, serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --fs-hero: clamp(2.75rem, 1.1rem + 5.3vw, 6.75rem);
  --fs-h1: clamp(2.6rem, 1.4rem + 4.6vw, 6rem);
  --fs-h2: clamp(2.05rem, 1.25rem + 3vw, 4.4rem);
  --fs-h3: clamp(1.3rem, 1.05rem + .85vw, 1.85rem);
  --fs-lead: clamp(1.2rem, 1rem + .9vw, 1.75rem);
  --fs-body: 1.0625rem;
  --fs-small: .9375rem;
  --fs-label: .72rem;

  --gutter: clamp(20px, 4.2vw, 64px);
  --maxw: 1440px;
  --header-h: 76px;
  --section: clamp(96px, 12vw, 184px);

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-arch: cubic-bezier(.77, 0, .18, 1);   /* apertura de planos */
  --ease-soft: cubic-bezier(.33, 0, .2, 1);
  --t-fast: .35s;
  --t-med: .7s;
  --t-slow: 1.2s;
}
@media (max-width: 767px) { :root { --header-h: 64px; --fs-body: 1rem; } }

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--ivory); color: var(--ink);
  font-family: var(--f-sans); font-size: var(--fs-body); line-height: 1.65;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: clip; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, figure, dl, dd, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--sand); color: var(--graphite); }
:focus-visible { outline: 2px solid var(--copper); outline-offset: 4px; border-radius: 1px; }
.on-dark :focus-visible, .is-dark :focus-visible { outline-color: var(--sand); }
.skip-link {
  position: fixed; left: 16px; top: 12px; z-index: 200; padding: 12px 18px;
  background: var(--graphite); color: var(--ivory); font-size: var(--fs-small);
  transform: translateY(-160%); transition: transform var(--t-fast) var(--ease-out);
}
.skip-link:focus { transform: none; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: min(100% - var(--gutter) * 2, var(--maxw)); margin-inline: auto; }
.grid-12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); }

/* ---------- 3. Tipografía ---------- */
.display, h1, h2, h3 {
  font-family: var(--f-sans); font-weight: 500; letter-spacing: -.032em; line-height: 1.02;
  font-variation-settings: "wdth" 92; text-wrap: balance;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); line-height: 1.04; }
h3 { font-size: var(--fs-h3); letter-spacing: -.02em; line-height: 1.15; font-variation-settings: "wdth" 96; }
em, .serif { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
h1 em, h2 em, .display em { color: var(--copper); }
.is-dark h1 em, .is-dark h2 em, .on-dark h1 em, .on-dark h2 em { color: var(--copper-soft); }
p { text-wrap: pretty; }
.ln-mask { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.ln-in { display: block; }
.lead { font-size: var(--fs-lead); line-height: 1.35; letter-spacing: -.015em; font-weight: 400; }
.muted { color: var(--muted); }
.label {
  font-family: var(--f-mono); font-size: var(--fs-label); font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase; line-height: 1.4;
}
.label--copper { color: var(--copper-ink); }
.is-dark .label--copper { color: var(--sand); }
.index-num { font-family: var(--f-mono); font-size: var(--fs-label); letter-spacing: .08em; color: var(--copper-ink); }
.is-dark .index-num { color: var(--sand); }

/* ---------- 4. Componentes ---------- */
/* Botones · Precision hover: el borde se dibuja y la flecha avanza 4px */
.btn {
  --b: var(--graphite); --fg: var(--ivory);
  position: relative; display: inline-flex; align-items: center; gap: 14px;
  min-height: 52px; padding: 0 22px 0 24px;
  background: var(--b); color: var(--fg); border: 1px solid var(--b);
  font-size: .875rem; font-weight: 600; letter-spacing: .01em;
  transition: background-color var(--t-fast) var(--ease-soft), color var(--t-fast) var(--ease-soft), border-color var(--t-fast);
  isolation: isolate; overflow: hidden;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--copper);
  transform: scaleX(0); transform-origin: right; transition: transform .55s var(--ease-arch);
}
.btn:hover::before, .btn:focus-visible::before { transform: scaleX(1); transform-origin: left; }
.btn:hover, .btn:focus-visible { border-color: var(--copper); color: var(--white); }
.btn .arr { width: 16px; height: 16px; transition: transform var(--t-fast) var(--ease-out); flex: none; }
.btn:hover .arr, .btn:focus-visible .arr { transform: translateX(4px); }
.btn--ghost { --b: transparent; --fg: var(--ink); border-color: var(--line-strong); }
.is-dark .btn--ghost, .on-dark .btn--ghost { --fg: var(--ivory); border-color: rgba(244, 241, 236, .38); }
.btn--light { --b: var(--ivory); --fg: var(--graphite); }
.btn--copper { --b: var(--copper); --fg: var(--white); }
.btn--copper::before { background: var(--graphite); }
.btn--wa .wa-ico { width: 18px; height: 18px; flex: none; }

.link-u {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: var(--fs-small); padding-block: 6px;
}
.link-u::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform: scaleX(.28); transform-origin: left; transition: transform .6s var(--ease-arch);
}
.link-u:hover::after, .link-u:focus-visible::after, a:hover > .link-u::after { transform: scaleX(1); }
.link-u .arr { width: 14px; height: 14px; transition: transform var(--t-fast) var(--ease-out); }
.link-u:hover .arr, a:hover .link-u .arr { transform: translate(3px, -3px); }

/* Encabezado de capítulo: número + línea de cota que se dibuja */
.chapter { display: flex; align-items: center; gap: 18px; margin-bottom: clamp(36px, 5vw, 72px); }
.chapter .index-num { flex: none; }
.chapter .label { flex: none; }
.chapter__rule { position: relative; flex: 1; height: 1px; background: var(--line-strong); transform-origin: left; }
.chapter__rule::before, .chapter__rule::after { content: ""; position: absolute; top: -5px; width: 1px; height: 11px; background: inherit; }
.chapter__rule::before { left: 0; } .chapter__rule::after { right: 0; }
.is-dark .chapter__rule { background: rgba(244, 241, 236, .3); }

/* Figura conceptual: etiqueta obligatoria de "concepto" */
.concept-tag {
  position: absolute; z-index: 3; left: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 10px; background: rgba(28, 28, 27, .72); color: var(--ivory);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.concept-tag::before { content: ""; width: 6px; height: 6px; border: 1px solid var(--sand); transform: rotate(45deg); }
.frame { position: relative; overflow: hidden; background: var(--stone); }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.grain::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: url("../img/grano.png") repeat; background-size: 160px; opacity: .06; mix-blend-mode: overlay;
}
.plan { width: 100%; height: 100%; }
.plan .ln { stroke-width: 2.2; }
.plan .thin { stroke-width: 1.1; }
.plan .ax { stroke-width: 1; opacity: .7; }
.plan .lbl { fill: currentColor; stroke: none; font-family: var(--f-mono); letter-spacing: .06em; }

/* ---------- 5. Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  color: var(--ink);
  transition: transform .5s var(--ease-out), color var(--t-fast) var(--ease-soft);
}
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(244, 241, 236, .9); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line); opacity: 0; transition: opacity .45s var(--ease-soft);
}
.site-header.is-solid::before { opacity: 1; }
.site-header.is-hidden { transform: translateY(-100%); }
body[data-hero="dark"] .site-header:not(.is-solid) { color: var(--ivory); }
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.brand__sym { width: auto; height: 34px; }
.brand__word { width: auto; height: 11px; }
@media (max-width: 767px) { .brand__sym { height: 30px; } .brand__word { height: 10px; } }
body[data-hero="dark"] .site-header:not(.is-solid) .brand img { filter: brightness(0) invert(1); }
.brand img { transition: filter var(--t-fast) var(--ease-soft); }

.nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 40px); }
.nav__list { display: flex; gap: clamp(18px, 2.2vw, 34px); }
.nav__link { position: relative; font-size: .875rem; font-weight: 500; padding-block: 8px; }
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease-arch);
}
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav__cta { min-height: 42px; padding: 0 16px 0 18px; font-size: .8125rem; }
body[data-hero="dark"] .site-header:not(.is-solid) .nav__cta { --b: transparent; --fg: var(--ivory); border-color: rgba(244, 241, 236, .45); }

.menu-toggle { display: none; width: 44px; height: 44px; position: relative; margin-right: -10px; }
.menu-toggle span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: currentColor; transition: transform .5s var(--ease-arch), top .5s var(--ease-arch); }
.menu-toggle span:nth-child(1) { top: 17px; } .menu-toggle span:nth-child(2) { top: 26px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { top: 21.5px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { top: 21.5px; transform: rotate(-45deg); }

/* Panel móvil */
.menu-panel {
  position: fixed; inset: 0; z-index: 90; background: var(--graphite-2); color: var(--ivory);
  padding: calc(var(--header-h) + 28px) var(--gutter) 32px; display: flex; flex-direction: column;
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path .7s var(--ease-arch), visibility 0s linear .7s;
}
.menu-panel.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .7s var(--ease-arch), visibility 0s; }
.menu-panel__grid { position: absolute; inset: 0; pointer-events: none; display: grid; grid-template-columns: repeat(4, 1fr); padding-inline: var(--gutter); }
.menu-panel__grid i { border-left: 1px solid var(--line-dark); }
.menu-panel__grid i:last-child { border-right: 1px solid var(--line-dark); }
.menu-panel ol { position: relative; display: grid; gap: 4px; counter-reset: m; }
.menu-panel ol a {
  display: flex; align-items: baseline; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line-dark);
  font-size: clamp(1.9rem, 8vw, 2.6rem); letter-spacing: -.03em; font-weight: 500; line-height: 1.1;
}
.menu-panel ol a::before { counter-increment: m; content: "0" counter(m); font-family: var(--f-mono); font-size: .72rem; letter-spacing: .08em; color: var(--sand); transform: translateY(-.9em); }
.menu-panel ol a[aria-current="page"] { color: var(--sand); }
.menu-panel__foot { position: relative; margin-top: auto; display: grid; gap: 18px; padding-top: 28px; }
.menu-panel__foot .label { color: var(--muted-dark); }
.menu-panel li, .menu-panel__foot { opacity: 0; transform: translateY(18px); transition: opacity .5s var(--ease-out), transform .7s var(--ease-out); }
.menu-panel.is-open li, .menu-panel.is-open .menu-panel__foot { opacity: 1; transform: none; }
.menu-panel.is-open li:nth-child(1) { transition-delay: .18s; } .menu-panel.is-open li:nth-child(2) { transition-delay: .24s; }
.menu-panel.is-open li:nth-child(3) { transition-delay: .3s; } .menu-panel.is-open li:nth-child(4) { transition-delay: .36s; }
.menu-panel.is-open li:nth-child(5) { transition-delay: .42s; } .menu-panel.is-open li:nth-child(6) { transition-delay: .48s; } .menu-panel.is-open li:nth-child(7) { transition-delay: .54s; } .menu-panel.is-open .menu-panel__foot { transition-delay: .58s; }
body.menu-open { overflow: hidden; }
body.menu-open .site-header { color: var(--ivory); }
body.menu-open .site-header::before { opacity: 0; }
body.menu-open .site-header .brand img { filter: brightness(0) invert(1); }

@media (max-width: 1023px) {
  .nav { display: none; }
  .menu-toggle { display: block; }
}
@media (min-width: 1024px) { .menu-panel { display: none; } }

/* ---------- 6. Hero de inicio ---------- */
.hero {
  position: relative; min-height: max(640px, 100svh); background: var(--graphite-2); color: var(--ivory);
  overflow: hidden; isolation: isolate;
}
.hero__grid { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero__grid .container { height: 100%; display: grid; grid-template-columns: repeat(6, 1fr); }
.hero__grid i { border-left: 1px solid rgba(244, 241, 236, .08); transform-origin: top; }
.hero__grid i:last-child { border-right: 1px solid rgba(244, 241, 236, .08); }
.hero__media { position: absolute; z-index: 0; inset: 0 0 0 38%; }
.hero__img { position: absolute; inset: 0; overflow: hidden; }
.hero__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; transform-origin: 60% 60%; }
/* el plano usa preserveAspectRatio="xMidYMid slice": la imagen debe permanecer centrada para coincidir */
.hero__plan { position: absolute; inset: 0; z-index: 1; color: var(--sand); opacity: .16; pointer-events: none; }
.js .hero__plan { opacity: .6; }
.hero__plan svg { width: 100%; height: 100%; }
.hero__shade {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    linear-gradient(90deg, var(--graphite-2) 0%, rgba(28, 28, 27, .75) 14%, rgba(28, 28, 27, 0) 46%),
    linear-gradient(0deg, rgba(28, 28, 27, .85) 0%, rgba(28, 28, 27, 0) 32%);
}
.hero__content {
  position: relative; z-index: 3; min-height: inherit; display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: calc(var(--header-h) + 48px); padding-bottom: clamp(28px, 4vw, 48px);
}
.hero__eyebrow { display: flex; align-items: center; gap: 14px; color: var(--sand); margin-bottom: clamp(20px, 3vw, 36px); }
.hero__eyebrow .tick { width: 36px; height: 1px; background: currentColor; transform-origin: left; }
.hero h1 { font-size: var(--fs-hero); line-height: .98; letter-spacing: -.04em; max-width: 12ch; }
.hero h1 .ln-mask { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.hero h1 .ln-in { display: block; }
.hero__sub { margin-top: clamp(22px, 2.6vw, 32px); max-width: 36ch; font-size: clamp(1.05rem, .95rem + .4vw, 1.25rem); color: rgba(244, 241, 236, .78); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(28px, 3.4vw, 44px); }
.hero__meta {
  position: relative; display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; gap: 20px;
  margin-top: clamp(48px, 7vh, 96px); padding-top: 18px; color: rgba(244, 241, 236, .62);
}
.hero__meta::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: rgba(244, 241, 236, .2); transform-origin: left; }
.hero__meta .label { display: flex; gap: 10px; align-items: center; }
.scroll-cue { display: inline-flex; align-items: center; gap: 10px; }
.scroll-cue i { position: relative; width: 1px; height: 28px; background: rgba(244, 241, 236, .25); overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; inset: 0; background: var(--sand); transform: translateY(-100%); animation: cue 2.4s var(--ease-arch) infinite 2.6s; }
@keyframes cue { 0% { transform: translateY(-100%); } 50% { transform: translateY(0); } 100% { transform: translateY(100%); } }

@media (max-width: 1023px) {
  .hero__media { inset: 0; }
  .hero__shade { background: linear-gradient(0deg, var(--graphite-2) 10%, rgba(28, 28, 27, .9) 52%, rgba(28, 28, 27, .15) 78%, rgba(28, 28, 27, .45) 100%); }
  .hero__meta { grid-template-columns: 1fr 1fr; row-gap: 12px; }
  .hero__meta .hide-sm { display: none; }
}
@media (max-width: 767px) {
  .hero { min-height: 0; }
  .hero__media { inset: 0 0 auto 0; height: min(52svh, 460px); }
  .hero__content { padding-top: calc(min(52svh, 460px) - 36px); }
  .hero__shade { background: linear-gradient(0deg, var(--graphite-2) 0%, rgba(28, 28, 27, .55) 34%, rgba(28, 28, 27, 0) 62%, rgba(28, 28, 27, .55) 100%); }
  .hero__grid .container { grid-template-columns: repeat(3, 1fr); }
  .hero h1 { letter-spacing: -.035em; }
  .hero__ctas .btn { flex: 1 1 auto; justify-content: space-between; }
}

/* ---------- 7. Secciones ---------- */
.section { position: relative; padding-block: var(--section); }
.section--stone { background: var(--stone); }
.section--dark, .is-dark { background: var(--graphite); color: var(--ivory); }
.section--dark .muted, .is-dark .muted { color: var(--muted-dark); }

/* 02 · El despacho */
.studio__grid { align-items: start; row-gap: 56px; }
.studio__head { grid-column: 1 / span 7; }
.studio__head h2 { max-width: 13ch; }
.studio__fig { grid-column: 9 / span 4; grid-row: 1 / span 2; aspect-ratio: 4 / 5; margin-top: 12px; }
.studio__body { grid-column: 1 / span 6; display: grid; grid-template-columns: 1fr 1fr; gap: 32px 40px; padding-top: 8px; }
.studio__body .lead { grid-column: 1 / -1; max-width: 30ch; }
.studio__principles { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); margin-top: 16px; }
.studio__principles li { padding: 22px 20px 0 0; }
.studio__principles li + li { padding-left: 20px; border-left: 1px solid var(--line); }
.studio__principles h3 { font-size: 1.15rem; margin: 14px 0 8px; }
.studio__principles p { font-size: var(--fs-small); color: var(--muted); }
.studio__fig-cap { position: absolute; right: -1px; top: 100%; padding-top: 10px; color: var(--muted); }
@media (max-width: 1023px) {
  .studio__head { grid-column: 1 / -1; }
  .studio__fig { grid-column: 7 / -1; grid-row: auto; margin-top: 0; }
  .studio__body { grid-column: 1 / span 6; grid-row: 2; grid-template-columns: 1fr; }
  .studio__principles { grid-template-columns: 1fr; }
  .studio__principles li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .studio__principles li { padding: 18px 0; }
}
@media (max-width: 767px) {
  .studio__fig { grid-column: 1 / -1; aspect-ratio: 4 / 4.4; }
  .studio__body { grid-column: 1 / -1; grid-row: auto; }
}

/* 03 · Servicios */
.services__head { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: clamp(44px, 6vw, 88px); }
.services__head p { max-width: 34ch; }
.svc-feature { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(16px, 2vw, 32px); row-gap: 28px; }
.card {
  position: relative; display: flex; flex-direction: column; background: var(--graphite-3); color: var(--ivory);
  isolation: isolate;
}
.card__media { position: relative; overflow: hidden; aspect-ratio: 16 / 11; background: var(--graphite-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.card__media .plan { color: var(--sand); padding: 6%; }
.card__body { display: grid; grid-template-columns: auto 1fr; gap: 6px 20px; padding: clamp(24px, 2.6vw, 40px); flex: 1; align-content: start; }
.card__body .index-num { grid-row: span 3; padding-top: .55em; }
.card__body h3 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.5rem); letter-spacing: -.03em; font-variation-settings: "wdth" 90; }
.card__body p { color: var(--muted-dark); font-size: var(--fs-small); max-width: 46ch; margin-top: 10px; }
.card__body .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.card__body .tags li { padding: 6px 10px; border: 1px solid var(--line-dark); color: rgba(244, 241, 236, .75); }
.card__foot { grid-column: 2; margin-top: 26px; color: var(--sand); }
.card--a { grid-column: 1 / span 7; }
.card--b { grid-column: 8 / span 5; margin-top: clamp(0px, 10vw, 160px); }
.card--b .card__media { aspect-ratio: 5 / 4; }
/* borde que se dibuja (precision hover) */
.card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 4;
  background:
    linear-gradient(var(--sand), var(--sand)) left top / 0 1px no-repeat,
    linear-gradient(var(--sand), var(--sand)) right top / 1px 0 no-repeat,
    linear-gradient(var(--sand), var(--sand)) right bottom / 0 1px no-repeat,
    linear-gradient(var(--sand), var(--sand)) left bottom / 1px 0 no-repeat;
  transition: background-size .9s var(--ease-arch);
}
.card:hover::after, .card:focus-within::after { background-size: 100% 1px, 1px 100%, 100% 1px, 1px 100%; }
.card:hover .card__media img { transform: scale(1.035); }
.card:hover .link-u::after { transform: scaleX(1); }
.card:hover .link-u .arr { transform: translate(3px, -3px); }
.card__link::before { content: ""; position: absolute; inset: 0; z-index: 5; }

.svc-more { margin-top: clamp(56px, 7vw, 112px); display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-dark); }
.svc-more li { position: relative; padding: 28px 24px 8px 0; }
.svc-more li + li { padding-left: 24px; border-left: 1px solid var(--line-dark); }
.svc-more h3 { font-size: 1.2rem; margin: 18px 0 10px; }
.svc-more p { font-size: var(--fs-small); color: var(--muted-dark); }
.svc-more .note { display: inline-block; margin-top: 14px; color: var(--sand); }
@media (max-width: 1023px) {
  .card--a, .card--b { grid-column: 1 / -1; margin-top: 0; }
  .card--b { grid-column: 3 / -1; }
  .svc-more { grid-template-columns: 1fr 1fr; }
  .svc-more li:nth-child(3) { padding-left: 0; border-left: 0; }
  .svc-more li:nth-child(n+3) { border-top: 1px solid var(--line-dark); }
}
@media (max-width: 767px) {
  .services__head { display: block; } .services__head p { margin-top: 20px; }
  .card--b { grid-column: 1 / -1; }
  .svc-more { grid-template-columns: 1fr; }
  .svc-more li, .svc-more li + li { padding: 24px 0 20px; border-left: 0; border-top: 1px solid var(--line-dark); }
  .svc-more li:first-child { border-top: 0; }
}

/* 04 · Proyectos (Blueprint → Reality) */
.projects__head { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(16px, 2vw, 32px); align-items: end; margin-bottom: clamp(40px, 5vw, 72px); }
.projects__head h2 { grid-column: 1 / span 7; }
.projects__head p { grid-column: 9 / span 4; }
.b2r { position: relative; height: 220vh; }
.b2r__sticky { position: sticky; top: 0; height: 100svh; display: flex; align-items: center; }
.b2r__stage {
  position: relative; width: 100%; aspect-ratio: 16 / 10; max-height: calc(100svh - var(--header-h) - 96px);
  background: var(--ivory); overflow: hidden; border: 1px solid var(--line);
}
.b2r__plan { position: absolute; inset: 0; color: var(--graphite); }
.b2r__plan .plan { opacity: .85; }
.b2r__real { position: absolute; inset: 0; clip-path: inset(0 calc((1 - var(--p, 0)) * 100%) 0 0); }
.b2r__real img { width: 100%; height: 100%; object-fit: cover; }
.b2r__seam {
  position: absolute; top: 0; bottom: 0; left: calc(var(--p, 0) * 100%); width: 1px; background: var(--copper); z-index: 4;
  transform: translateX(-.5px);
}
.b2r__seam::before, .b2r__seam::after { position: absolute; top: 16px; font-family: var(--f-mono); font-size: var(--fs-label); letter-spacing: .1em; padding: 5px 8px; white-space: nowrap; }
.b2r__seam::before { content: "ESPACIO"; right: 10px; background: rgba(28, 28, 27, .7); color: var(--ivory); }
.b2r__seam::after { content: "PLANO"; left: 10px; background: var(--ivory); color: var(--graphite); border: 1px solid var(--line); }
.b2r__caption { position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; display: flex; justify-content: space-between; gap: 16px; padding: 14px 16px; }
.b2r__caption .label { padding: 6px 10px; background: rgba(244, 241, 236, .92); color: var(--graphite); }
.b2r__steps { position: absolute; z-index: 5; top: 16px; left: 16px; display: none; }

.pgrid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(16px, 2vw, 32px); margin-top: clamp(64px, 8vw, 128px); align-items: start; }
.pcard { position: relative; }
.pcard .frame { aspect-ratio: 4 / 5; }
.pcard--1 { grid-column: 1 / span 5; }
.pcard--2 { grid-column: 7 / span 6; margin-top: clamp(80px, 14vw, 220px); }
.pcard--2 .frame { aspect-ratio: 3 / 4; }
.pcard__meta { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; padding-top: 18px; border-top: 1px solid var(--line); margin-top: 18px; }
.pcard__meta h3 { font-size: 1.35rem; }
.pcard__meta p { color: var(--muted); font-size: var(--fs-small); margin-top: 4px; }
.pcard .frame img { transition: transform 1.4s var(--ease-out); }
.pcard:hover .frame img { transform: scale(1.03); }
.pcard__plan { position: absolute; inset: 0; z-index: 1; color: var(--ivory); opacity: 0; transition: opacity .8s var(--ease-soft); pointer-events: none; mix-blend-mode: normal; }
.pcard__plan::before { content: ""; position: absolute; inset: 0; background: rgba(28, 28, 27, .55); }
.pcard__plan svg { position: relative; }
.pcard:hover .pcard__plan { opacity: 1; }
.disclaimer { margin-top: clamp(40px, 5vw, 64px); display: flex; gap: 12px; align-items: flex-start; color: var(--muted); font-size: .875rem; max-width: 70ch; }
.disclaimer::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: .5em; border: 1px solid var(--copper); transform: rotate(45deg); }
@media (max-width: 1023px) {
  .projects__head h2, .projects__head p { grid-column: 1 / -1; }
  .projects__head p { margin-top: 20px; }
  .b2r { height: 170vh; }
  .b2r__stage { aspect-ratio: 4 / 3; }
}
@media (max-width: 767px) {
  .b2r { height: 150vh; }
  .b2r__stage { aspect-ratio: 4 / 5; }
  .b2r__caption .label + .label { display: none; }
  .pcard--1, .pcard--2 { grid-column: 1 / -1; margin-top: 0; }
  .pcard--2 { margin-top: 56px; }
  .pcard__plan { display: none; }
}

/* 05 · Respaldo profesional — cartela técnica */
.trust__grid { align-items: start; row-gap: 48px; }
.trust__head { grid-column: 1 / span 5; position: sticky; top: calc(var(--header-h) + 40px); }
.trust__head p { margin-top: 28px; max-width: 40ch; }
.titleblock { grid-column: 7 / span 6; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .45); }
.titleblock__top { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 20px; border-bottom: 1px solid var(--line-strong); }
.titleblock__top img { height: 28px; width: auto; }
.tb-row { display: grid; grid-template-columns: minmax(120px, 34%) 1fr; border-bottom: 1px solid var(--line); }
.tb-row:last-of-type { border-bottom: 0; }
.tb-row > * { padding: 18px 20px; }
.tb-row dt { color: var(--muted); border-right: 1px solid var(--line); }
.tb-row dd { font-size: .95rem; display: flex; justify-content: space-between; gap: 14px; align-items: center; font-weight: 500; }
.status { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: var(--fs-label); letter-spacing: .08em; text-transform: uppercase; color: var(--copper-ink); white-space: nowrap; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; border: 1px solid currentColor; }
.titleblock__foot { padding: 16px 20px; border-top: 1px solid var(--line-strong); font-size: .8125rem; color: var(--muted); }
@media (max-width: 1023px) {
  .trust__head { grid-column: 1 / -1; position: static; }
  .titleblock { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .tb-row { grid-template-columns: 1fr; }
  .tb-row dt { border-right: 0; padding-bottom: 0; }
  .tb-row dd { padding-top: 6px; flex-wrap: wrap; }
}

/* 06 · Proceso */
.process__track { --p: 0; position: relative; display: grid; grid-template-columns: repeat(4, 1fr); column-gap: clamp(16px, 2vw, 32px); padding-top: 56px; }
.process__track::before, .process__track::after { content: ""; position: absolute; top: 18px; left: 0; right: 0; height: 1px; background: var(--line); }
.process__track::after { background: var(--copper); transform: scaleX(var(--p)); transform-origin: left; }
.step { position: relative; padding-right: 12px; }
.step__node { position: absolute; top: -45px; left: 0; width: 13px; height: 13px; border: 1px solid var(--line-strong); background: var(--ivory); transform: rotate(45deg); transition: background-color .5s, border-color .5s; }
.step.is-active .step__node { background: var(--copper); border-color: var(--copper); }
.step__num { font-family: var(--f-serif); font-style: italic; font-size: clamp(3rem, 2rem + 3vw, 5rem); line-height: 1; color: var(--line-strong); transition: color .8s var(--ease-soft); }
.step.is-active .step__num { color: var(--copper); }
.step h3 { margin: 18px 0 10px; font-size: 1.4rem; }
.step p { color: var(--muted); font-size: var(--fs-small); max-width: 30ch; }
.step .label { display: block; margin-top: 12px; color: var(--muted); }
@media (max-width: 1023px) {
  .process__track { grid-template-columns: 1fr 1fr; row-gap: 56px; }
  .process__track::before, .process__track::after { display: none; }
  .step__node { top: -26px; }
  .step { padding-top: 0; border-top: 1px solid var(--line); padding-top: 28px; }
  .step__node { top: -7px; }
}
@media (max-width: 600px) {
  .process__track { grid-template-columns: 1fr; padding-top: 0; row-gap: 0; padding-left: 32px; }
  .process__track::before, .process__track::after { display: block; left: 6px; right: auto; top: 6px; bottom: 6px; width: 1px; height: auto; }
  .process__track::after { transform: scaleY(var(--p)); transform-origin: top; }
  .step { border-top: 0; padding: 0 0 44px; }
  .step__node { top: 8px; left: -32px; }
  .step__num { font-size: 2.6rem; }
}

/* 07 · Contacto */
.contact { position: relative; overflow: hidden; background: var(--graphite-2); color: var(--ivory); padding-block: clamp(110px, 14vw, 200px) clamp(64px, 8vw, 110px); }
.contact__grid-lines { position: absolute; inset: 0; pointer-events: none; }
.contact__grid-lines .container { height: 100%; display: grid; grid-template-columns: repeat(6, 1fr); }
.contact__grid-lines i { border-left: 1px solid rgba(244, 241, 236, .06); transform-origin: bottom; }
.contact__grid-lines i:last-child { border-right: 1px solid rgba(244, 241, 236, .06); }
.contact__inner { position: relative; }
.contact h2 { font-size: clamp(2.6rem, 1.3rem + 5.4vw, 7rem); line-height: .98; letter-spacing: -.04em; max-width: 13ch; }
.contact__row { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(16px, 2vw, 32px); margin-top: clamp(48px, 6vw, 88px); padding-top: 28px; border-top: 1px solid var(--line-dark); align-items: start; row-gap: 36px; }
.contact__lead { grid-column: 1 / span 5; color: rgba(244, 241, 236, .75); font-size: 1.125rem; max-width: 38ch; }
.contact__actions { grid-column: 1 / span 5; display: flex; flex-wrap: wrap; gap: 12px; }
.contact__data { grid-column: 8 / span 5; grid-row: 1 / span 2; display: grid; gap: 0; }
.contact__data > div { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line-dark); }
.contact__data dt { color: var(--muted-dark); }
.contact__data dd a { border-bottom: 1px solid rgba(244, 241, 236, .3); transition: border-color .3s; }
.contact__data dd a:hover { border-color: var(--sand); }
.contact__data .note { color: var(--muted-dark); font-size: .8125rem; }
@media (max-width: 1023px) {
  .contact__lead, .contact__actions, .contact__data { grid-column: 1 / -1; grid-row: auto; }
}
@media (max-width: 767px) {
  .contact__actions .btn { flex: 1 1 100%; justify-content: space-between; }
  .contact__data > div { grid-template-columns: 1fr; gap: 4px; }
}

/* Footer */
.site-footer { background: var(--graphite-2); color: var(--muted-dark); padding-block: 56px 32px; border-top: 1px solid var(--line-dark); font-size: .875rem; }
.site-footer__grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(16px, 2vw, 32px); row-gap: 40px; }
.site-footer__brand { grid-column: 1 / span 4; }
.site-footer__brand img { width: 150px; height: auto; filter: brightness(0) invert(1); opacity: .92; }
.site-footer__brand p { margin-top: 18px; max-width: 30ch; }
.site-footer nav { grid-column: 6 / span 3; }
.site-footer nav ul, .site-footer address ul { display: grid; gap: 10px; }
.site-footer address { grid-column: 10 / span 3; font-style: normal; }
.site-footer .label { color: var(--sand); display: block; margin-bottom: 16px; }
.site-footer a:hover { color: var(--ivory); }
.site-footer__base { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--line-dark); font-size: .8125rem; }
@media (max-width: 1023px) {
  .site-footer__brand { grid-column: 1 / -1; }
  .site-footer nav { grid-column: 1 / span 6; }
  .site-footer address { grid-column: 7 / span 6; }
}
@media (max-width: 520px) { .site-footer nav, .site-footer address { grid-column: 1 / -1; } }

/* WhatsApp flotante */
.wa-float {
  position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 80;
  display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 18px 0 16px;
  background: var(--graphite); color: var(--ivory); border: 1px solid rgba(244, 241, 236, .18);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .45); font-size: .875rem; font-weight: 600;
  transition: transform .6s var(--ease-out), opacity .4s var(--ease-soft), background-color .3s;
}
.wa-float:hover { background: var(--copper); }
.wa-float svg { width: 20px; height: 20px; color: #6fd39b; flex: none; }
.wa-float.is-away { transform: translateY(140%); opacity: 0; pointer-events: none; }
@media (max-width: 520px) { .wa-float span { display: none; } .wa-float { width: 52px; padding: 0; justify-content: center; } }

/* ---------- 8. Páginas interiores ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.crumbs li + li::before { content: "/"; margin-right: 10px; opacity: .5; }
.crumbs a { border-bottom: 1px solid transparent; transition: border-color .3s; }
.crumbs a:hover { border-color: currentColor; }

.phero { position: relative; overflow: hidden; isolation: isolate; }
.phero__content { position: relative; z-index: 3; }
.phero h1 { font-size: var(--fs-h1); letter-spacing: -.038em; line-height: 1; }
.phero h1 .ln-mask { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.phero h1 .ln-in { display: block; }
.phero__sub { margin-top: 28px; max-width: 46ch; font-size: clamp(1.05rem, .95rem + .4vw, 1.25rem); }
.phero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* Diseño arquitectónico: hero fotográfico */
.phero--design { background: var(--graphite-2); color: var(--ivory); min-height: max(640px, 100svh); display: grid; }
.phero--design .phero__media { position: absolute; inset: 0 0 0 46%; }
.phero--design .phero__media img { width: 100%; height: 100%; object-fit: cover; }
.phero--design .phero__media .plan-wrap svg { width: 100%; height: 100%; }
.phero--design .phero__media::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 200px; z-index: 3; pointer-events: none; background: linear-gradient(180deg, rgba(28, 28, 27, .62), rgba(28, 28, 27, 0)); }
.phero--design .concept-tag { top: calc(var(--header-h) + 16px); bottom: auto; left: auto; right: 16px; }
.phero--design .phero__media .plan-wrap { position: absolute; inset: 0; color: var(--graphite); opacity: .5; }
.phero--design .phero__shade { position: absolute; inset: 0; z-index: 2; background: linear-gradient(90deg, var(--graphite-2) 0%, rgba(28, 28, 27, .6) 12%, rgba(28, 28, 27, 0) 40%); pointer-events: none; }
.phero--design .phero__content { display: flex; flex-direction: column; justify-content: flex-end; padding-top: calc(var(--header-h) + 56px); padding-bottom: clamp(40px, 6vw, 80px); }
.phero--design .phero__sub { color: rgba(244, 241, 236, .78); }
.phero--design .crumbs { color: var(--sand); margin-bottom: clamp(28px, 4vw, 56px); }
.phero--design .phero__text { max-width: 44%; }
@media (max-width: 1023px) {
  .phero--design .phero__media { inset: 0; }
  .phero--design .phero__shade { background: linear-gradient(0deg, var(--graphite-2) 10%, rgba(28, 28, 27, .85) 46%, rgba(28, 28, 27, .15) 80%); }
  .phero--design .phero__text { max-width: none; }
}
@media (max-width: 767px) {
  .phero--design { min-height: 0; }
  .phero--design .phero__media { inset: 0 0 auto 0; height: min(56svh, 480px); }
  .phero--design .phero__shade { background: linear-gradient(0deg, var(--graphite-2) 0%, rgba(28, 28, 27, .4) 30%, rgba(28, 28, 27, 0) 55%); }
  .phero--design .phero__content { padding-top: calc(min(56svh, 480px) - 24px); }
}

/* Perito de obra: hero técnico, documental */
.phero--tech { background: var(--ivory); padding-top: calc(var(--header-h) + clamp(48px, 7vw, 104px)); padding-bottom: clamp(56px, 7vw, 112px); }
.phero--tech::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px; background-position: -1px -1px; opacity: .55;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 30%, transparent 85%); mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 30%, transparent 85%);
}
.phero--tech .grid-12 { position: relative; z-index: 2; align-items: center; row-gap: 48px; }
.phero--tech .phero__text { grid-column: 1 / span 6; }
.phero--tech .crumbs { color: var(--copper-ink); margin-bottom: clamp(28px, 4vw, 48px); }
.phero--tech .phero__sub { color: var(--muted); }
.tech-sheet { grid-column: 8 / span 5; position: relative; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .55); }
.tech-sheet__hd, .tech-sheet__ft { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; color: var(--muted); }
.tech-sheet__hd { border-bottom: 1px solid var(--line-strong); }
.tech-sheet__ft { border-top: 1px solid var(--line-strong); }
.tech-sheet__draw { aspect-ratio: 12 / 13; color: var(--graphite); padding: 4%; }
.tech-sheet__draw .plan .lbl { font-size: 15px; }
@media (max-width: 1023px) {
  .phero--tech .phero__text, .tech-sheet { grid-column: 1 / -1; }
  .tech-sheet { max-width: 560px; }
}

/* Índice de alcances (lista editorial) */
.scope__head { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(16px, 2vw, 32px); align-items: end; margin-bottom: clamp(40px, 5vw, 72px); }
.scope__head h2 { grid-column: 1 / span 7; }
.scope__head p { grid-column: 9 / span 4; }
.scope-list { border-top: 1px solid var(--line-strong); }
.scope-item {
  position: relative; display: grid; grid-template-columns: 132px minmax(0, 5fr) minmax(0, 6fr) 40px; gap: 24px; align-items: baseline;
  padding: clamp(22px, 2.6vw, 34px) 0; border-bottom: 1px solid var(--line);
}
.scope-item::before { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--copper); transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease-arch); }
.scope-item:hover::before { transform: scaleX(1); }
.scope-item h3 { font-size: clamp(1.35rem, 1.1rem + 1vw, 2.1rem); letter-spacing: -.025em; transition: transform .5s var(--ease-out); }
.scope-item:hover h3 { transform: translateX(6px); }
.scope-item p { color: var(--muted); font-size: var(--fs-small); max-width: 52ch; }
.scope-item .tick { justify-self: end; width: 14px; height: 14px; border-right: 1px solid var(--copper); border-top: 1px solid var(--copper); transform: rotate(45deg) scale(.8); opacity: .5; transition: opacity .4s, transform .5s var(--ease-out); }
.scope-item:hover .tick { opacity: 1; transform: rotate(45deg) scale(1) translate(2px, -2px); }
.is-dark .scope-list { border-color: rgba(244, 241, 236, .3); }
.is-dark .scope-item { border-color: var(--line-dark); }
@media (max-width: 767px) {
  .scope__head h2, .scope__head p { grid-column: 1 / -1; }
  .scope__head p { margin-top: 18px; }
  .scope-item { grid-template-columns: 44px 1fr; gap: 6px 14px; }
  .scope-item p { grid-column: 2; }
  .scope-item .tick { display: none; }
}

/* Split editorial */
.split { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(16px, 2vw, 32px); row-gap: 36px; align-items: start; }
.split__a { grid-column: 1 / span 5; }
.split__b { grid-column: 7 / span 6; display: grid; gap: 22px; }
.split__b p { color: var(--muted); }
.is-dark .split__b p { color: var(--muted-dark); }
@media (max-width: 1023px) { .split__a, .split__b { grid-column: 1 / -1; } }

/* Composición editorial con imagen (diseño) */
.creative { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(16px, 2vw, 32px); row-gap: 40px; align-items: end; }
.creative__fig { grid-column: 1 / span 6; aspect-ratio: 3 / 4; }
.creative__text { grid-column: 8 / span 5; padding-bottom: 24px; }
.creative__text h2 { margin-bottom: 28px; }
.creative__text p + p { margin-top: 16px; }
@media (max-width: 1023px) { .creative__fig { grid-column: 1 / span 8; } .creative__text { grid-column: 1 / -1; } }
@media (max-width: 600px) { .creative__fig { grid-column: 1 / -1; } }

/* Documento / checklist (perito) */
.docflow { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line-strong); }
.docflow li { padding: clamp(24px, 2.6vw, 36px); position: relative; }
.docflow li + li { border-left: 1px solid var(--line-strong); }
.docflow h3 { font-size: 1.3rem; margin: 22px 0 10px; }
.docflow p { color: var(--muted); font-size: var(--fs-small); }
.docflow .label { display: flex; justify-content: space-between; color: var(--copper-ink); }
@media (max-width: 900px) {
  .docflow { grid-template-columns: 1fr; }
  .docflow li + li { border-left: 0; border-top: 1px solid var(--line-strong); }
}

/* FAQ */
.faq { border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 24px 0; font-size: clamp(1.1rem, 1rem + .35vw, 1.3rem); font-weight: 500; letter-spacing: -.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { position: relative; flex: none; width: 14px; height: 14px; }
.faq summary .pm::before, .faq summary .pm::after { content: ""; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: var(--copper); transition: transform .5s var(--ease-arch); }
.faq summary .pm::after { transform: rotate(90deg); }
.faq details[open] summary .pm::after { transform: rotate(0); }
.faq details p { padding: 0 48px 26px 0; color: var(--muted); max-width: 64ch; }
@supports (interpolate-size: allow-keywords) {
  .faq { interpolate-size: allow-keywords; }
  .faq details::details-content { height: 0; overflow: clip; transition: height .55s var(--ease-arch), content-visibility .55s allow-discrete; }
  .faq details[open]::details-content { height: auto; }
}

/* Nota de validación */
.validation { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border: 1px dashed var(--line-strong); color: var(--muted); font-size: .875rem; }
.validation strong { color: var(--ink); font-weight: 600; }


/* Proceso creativo: texto + escenario vertical */
.b2r-section { padding-bottom: 0; }
.b2r--split { height: 260vh; }
.b2r__layout { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(16px, 2vw, 32px); align-items: center; width: min(100% - var(--gutter) * 2, var(--maxw)); }
.b2r__text { grid-column: 1 / span 5; }
.b2r__text h2 { margin-bottom: clamp(32px, 4vw, 56px); }
.b2r__phases { display: grid; border-top: 1px solid var(--line-dark); }
.b2r__phases li { display: grid; grid-template-columns: 48px 1fr; gap: 12px; padding: 20px 0; border-bottom: 1px solid var(--line-dark); opacity: .38; transition: opacity .6s var(--ease-soft); }
.b2r__phases li.is-active { opacity: 1; }
.b2r__phases h3 { font-size: 1.25rem; margin-bottom: 6px; }
.b2r__phases p { color: var(--muted-dark); font-size: var(--fs-small); }
.b2r__stage--portrait { grid-column: 7 / span 6; aspect-ratio: 3 / 4; width: auto; height: min(calc(100svh - var(--header-h) - 64px), 860px); max-height: none; justify-self: end; border-color: var(--line-dark); }
.b2r__stage--portrait .b2r__plan { color: var(--graphite); }
@media (max-width: 1023px) {
  .b2r--split { height: auto; }
  .b2r--split .b2r__sticky { position: relative; height: auto; padding-bottom: var(--section); }
  .b2r__text, .b2r__stage--portrait { grid-column: 1 / -1; }
  .b2r__stage--portrait { justify-self: stretch; height: auto; width: 100%; margin-top: 40px; --p: .56; }
  .b2r__phases li { opacity: 1; }
}
.no-motion .b2r--split .b2r__phases li { opacity: 1; }

/* Variante de 3 pasos */
.process__track--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1023px) { .process__track--3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .process__track--3 { grid-template-columns: 1fr; } }

/* Cartela sobre fondo oscuro */
.is-dark .titleblock { border-color: rgba(244, 241, 236, .3); background: rgba(255, 255, 255, .02); }
.is-dark .titleblock__top, .is-dark .titleblock__foot { border-color: rgba(244, 241, 236, .3); }
.is-dark .tb-row { border-color: var(--line-dark); }
.is-dark .tb-row dt { color: var(--muted-dark); border-color: var(--line-dark); }
.is-dark .status { color: var(--sand); }
.is-dark .titleblock__foot { color: var(--muted-dark); }
.is-dark .titleblock__top img { filter: brightness(0) invert(1); opacity: .85; }
.trust__head .chapter { margin-bottom: 40px; }


/* Fotografía de referencia + trazo derivado de la propia foto (plano → espacio) */
.hero__plan img, .plan-wrap img, .b2r__plan img { width: 100%; height: 100%; object-fit: cover; display: block; }
.phero--design .phero__media .plan-wrap { opacity: .14; }
.js .phero--design .phero__media .plan-wrap { opacity: .6; transition: opacity 1.6s var(--ease-soft) 2.8s, clip-path 1.5s var(--ease-arch) 1.1s; }
.js .is-ready .phero--design .phero__media .plan-wrap { opacity: .14; }
.contact__bg { position: absolute; inset: 0; pointer-events: none; }
.contact__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .1; filter: grayscale(1) contrast(1.1); }
.contact__bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, var(--graphite-2) 0%, rgba(28, 28, 27, 0) 30%, rgba(28, 28, 27, 0) 70%, var(--graphite-2) 100%); }
.tech-media { grid-column: 7 / span 6; position: relative; padding-bottom: 14%; }
.tech-media__photo { aspect-ratio: 4 / 5; width: 74%; margin-left: auto; }
.tech-media .concept-tag { top: 12px; right: 12px; left: auto; bottom: auto; }
.tech-media .tech-sheet { position: absolute; left: 0; bottom: 0; width: min(54%, 340px); background: rgba(244, 241, 236, .95); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); box-shadow: 0 24px 60px -30px rgba(0, 0, 0, .35); }
.tech-media .tech-sheet__hd, .tech-media .tech-sheet__ft { padding: 9px 12px; font-size: .62rem; }
.split__fig { margin-top: clamp(32px, 4vw, 56px); aspect-ratio: 4 / 5; max-width: 420px; }
@media (max-width: 1023px) {
  .tech-media { grid-column: 1 / -1; max-width: 620px; padding-bottom: 22%; }
  .tech-media .tech-sheet { max-width: none; }
}
@media (max-width: 600px) {
  .tech-media { padding-bottom: 34%; }
  .tech-media__photo { width: 88%; }
  .tech-media .tech-sheet { width: 50%; }
  .tech-media .tech-sheet__hd span + span, .tech-media .tech-sheet__ft span + span { display: none; }
  .split__fig { max-width: none; aspect-ratio: 4 / 3.6; }
}

/* =====================================================================
   v1.1 · Portafolio original, filosofía y perfil del arquitecto
   ===================================================================== */

/* Distintivo de tipo de imagen (plano · fotografía de obra · render · visualización) */
.badge-type {
  position: absolute; z-index: 3; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 9px; background: rgba(28, 28, 27, .74); color: var(--ivory);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.badge-type::before { content: ""; width: 6px; height: 6px; border: 1px solid var(--sand); }
.hero__tag { left: auto; right: var(--gutter); top: calc(var(--header-h) + 14px); bottom: auto; z-index: 4; }
@media (max-width: 1023px) { .hero__meta .label:nth-child(3) { display: none; } }
.frame--paper { background: var(--white); outline: 1px solid var(--line); outline-offset: -1px; }
.frame--paper img { object-fit: contain !important; padding: 4%; }
.studio__links { display: flex; flex-wrap: wrap; gap: 10px 28px; }

/* ---------- Filosofía: capítulo editorial sobre grafito ---------- */
.philo { position: relative; overflow: hidden; background: var(--graphite-2); color: var(--ivory); padding-block: clamp(110px, 14vw, 210px); }
.philo__grid { position: absolute; inset: 0; pointer-events: none; }
.philo__grid .container { height: 100%; display: grid; grid-template-columns: repeat(6, 1fr); }
.philo__grid i { border-left: 1px solid rgba(244, 241, 236, .06); transform-origin: top; }
.philo__grid i:last-child { border-right: 1px solid rgba(244, 241, 236, .06); }
.philo__inner { position: relative; }
.philo__title { font-size: clamp(2.3rem, 1.1rem + 4.6vw, 6.2rem); line-height: 1; letter-spacing: -.04em; max-width: 15ch; }
.philo__title .ln-mask + .ln-mask { margin-top: .12em; color: rgba(244, 241, 236, .62); }
.philo__title em { color: var(--copper-soft); }
.philo__title em { color: var(--copper-soft); }
.philo__lead { margin-top: clamp(32px, 4vw, 56px); max-width: 52ch; font-size: clamp(1.05rem, .95rem + .45vw, 1.3rem); line-height: 1.6; color: rgba(244, 241, 236, .78); margin-left: auto; margin-right: 8%; }
.philo__list { margin-top: clamp(64px, 8vw, 120px); display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 2.4vw, 40px); counter-reset: none; }
.philo__list li { position: relative; padding-top: 28px; }
.philo__rule { position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--copper); transform-origin: left; }
.philo__rule::after { content: ""; position: absolute; left: 0; top: -4px; width: 9px; height: 9px; border: 1px solid var(--copper); background: var(--graphite-2); transform: rotate(45deg); }
.philo__num { display: block; font-family: var(--f-serif); font-style: italic; font-size: clamp(2.4rem, 1.6rem + 2vw, 3.6rem); line-height: 1; color: var(--copper-soft); margin-bottom: 18px; }
.philo__list h3 { font-size: 1.3rem; margin-bottom: 10px; }
.philo__list p { color: var(--muted-dark); font-size: var(--fs-small); max-width: 32ch; }
@media (max-width: 1023px) { .philo__list { grid-template-columns: 1fr 1fr; row-gap: 48px; } .philo__lead { margin-right: 0; } }
@media (max-width: 600px) { .philo__list { grid-template-columns: 1fr; row-gap: 40px; } .philo__title { font-size: 2.35rem; } }

/* ---------- Relato destacado: transición editorial plano ↔ visualización ----------
   Dos documentos distintos: los paneles cambian de proporción con el desplazamiento; nunca se superponen
   ni se alinean como si fueran la misma vista. */
.story-split { position: relative; height: 200vh; }
.story-split__sticky { position: sticky; top: 0; height: 100svh; display: flex; align-items: center; }
.story-split__stage { --p: 0; position: relative; display: grid; grid-template-columns: calc(66% - var(--p) * 34%) 1fr; grid-template-rows: minmax(0, 1fr) auto; column-gap: clamp(12px, 1.6vw, 24px); height: min(calc(100svh - var(--header-h) - 80px), 760px); margin: 0; }
.story-split__panel { position: relative; overflow: hidden; min-height: 0; }
.story-split__panel img { width: 100%; height: 100%; object-fit: cover; }
.story-split__panel--plan { background: var(--white); outline: 1px solid var(--line); outline-offset: -1px; }
.story-split__panel--plan img { object-fit: contain; padding: 4%; }
.story-split__cap { grid-column: 1 / -1; display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; gap: 16px 28px; align-items: start; padding-top: 22px; border-top: 1px solid var(--line-strong); margin-top: 18px; }
.story-split__cap > div:first-child { display: contents; }
.story-split__cap h3 { font-size: clamp(1.4rem, 1.1rem + 1vw, 2.2rem); letter-spacing: -.025em; }
.story-split__cap p { color: var(--muted); font-size: var(--fs-small); max-width: 48ch; }
.story-split__side { display: grid; gap: 10px; justify-items: end; text-align: right; max-width: 30ch; }
.story-split__side .label { color: var(--muted); }
.story-split__cap p.label { font-size: var(--fs-label); }
.story-split__cap h3 { white-space: nowrap; }
@media (max-width: 1023px) {
  .story-split { height: auto; }
  .story-split__sticky { position: relative; height: auto; padding-block: 8px 24px; }
  .story-split__stage { grid-template-columns: 1fr; grid-template-rows: auto auto auto; row-gap: 12px; height: auto; }
  .story-split__panel { aspect-ratio: 4 / 3; }
  .story-split__cap { grid-template-columns: auto 1fr; }
  .story-split__cap > div:first-child > p { grid-column: 2; }
  .story-split__side { grid-column: 1 / -1; justify-items: start; text-align: left; max-width: none; }
}

/* ---------- Galería asimétrica de relatos ---------- */
.stories { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(16px, 2vw, 32px); row-gap: clamp(56px, 7vw, 110px); margin-top: clamp(72px, 9vw, 140px); align-items: start; }
.story { position: relative; }
.story--1 { grid-column: 1 / span 7; }
.story--2 { grid-column: 9 / span 4; margin-top: clamp(80px, 12vw, 200px); }
.story--3 { grid-column: 2 / span 6; }
.story--4 { grid-column: 9 / span 4; margin-top: clamp(40px, 6vw, 100px); }
.story__open { display: block; width: 100%; text-align: left; cursor: pointer; }
.story__media { display: block; position: relative; aspect-ratio: 16 / 11; }
.story--2 .story__media { aspect-ratio: 4 / 5; }
.story--4 .story__media { aspect-ratio: 5 / 4.6; }
/* las fotografías de obra de Villa de Tabora llevan fecha impresa en la esquina inferior derecha: encuadre hacia la izquierda */
.story--2 .story__media img { object-position: 22% 50%; }
.story__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.story__open:hover .story__media img, .story__open:focus-visible .story__media img { transform: scale(1.03); }
.story__media::after { content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none;
  background: linear-gradient(var(--copper), var(--copper)) left top / 0 1px no-repeat, linear-gradient(var(--copper), var(--copper)) right top / 1px 0 no-repeat,
              linear-gradient(var(--copper), var(--copper)) right bottom / 0 1px no-repeat, linear-gradient(var(--copper), var(--copper)) left bottom / 1px 0 no-repeat;
  transition: background-size .9s var(--ease-arch); }
.story__open:hover .story__media::after, .story__open:focus-visible .story__media::after { background-size: 100% 1px, 1px 100%, 100% 1px, 1px 100%; }
.story__meta { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: baseline; padding-top: 18px; margin-top: 18px; border-top: 1px solid var(--line); }
.story__meta h3 { font-size: clamp(1.25rem, 1.05rem + .7vw, 1.7rem); letter-spacing: -.02em; }
.story__meta .label { color: var(--muted); margin-top: 6px; }
@media (max-width: 1023px) {
  .story--1, .story--3 { grid-column: 1 / span 8; }
  .story--2, .story--4 { grid-column: 5 / -1; margin-top: 0; }
}
@media (max-width: 600px) {
  .stories { row-gap: 52px; }
  .story--1, .story--2, .story--3, .story--4 { grid-column: 1 / -1; margin-top: 0; }
  .story--2 .story__media, .story--4 .story__media { aspect-ratio: 4 / 3.4; }
  .story__meta { grid-template-columns: auto 1fr; }
  .story__meta > .link-u { grid-column: 2; justify-self: start; }
}

/* ---------- Ficha de proyecto (diálogo) ---------- */
.ficha { width: min(100vw - 32px, 1320px); max-height: calc(100svh - 32px); padding: 0; border: 0; background: var(--ivory); color: var(--ink); overflow: hidden; }
.ficha::backdrop { background: rgba(20, 20, 19, .82); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.ficha__inner { max-height: calc(100svh - 32px); overflow: auto; overscroll-behavior: contain; }
.ficha__head { position: sticky; top: 0; z-index: 2; display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: end; padding: clamp(20px, 2.6vw, 34px) clamp(20px, 3vw, 48px) 18px; background: rgba(244, 241, 236, .96); border-bottom: 1px solid var(--line-strong); }
.ficha__head h2 { font-size: clamp(1.8rem, 1.2rem + 2.4vw, 3.4rem); letter-spacing: -.035em; line-height: 1; margin-top: 8px; }
.ficha__head .label { color: var(--muted); }
.ficha__close { position: relative; width: 44px; height: 44px; border: 1px solid var(--line-strong); }
.ficha__close span { position: absolute; left: 12px; right: 12px; top: 21px; height: 1px; background: currentColor; transform: rotate(45deg); }
.ficha__close span + span { transform: rotate(-45deg); }
.ficha__close:hover { border-color: var(--copper); color: var(--copper); }
.ficha__body { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 3vw, 56px); padding: clamp(24px, 3vw, 48px); }
.ficha__text { align-self: start; position: sticky; top: 120px; display: grid; gap: 18px; }
.ficha__text .lead { font-size: clamp(1.1rem, 1rem + .5vw, 1.4rem); }
.ficha__data { border-top: 1px solid var(--line-strong); }
.ficha__data > div { display: grid; grid-template-columns: 112px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: var(--fs-small); }
.ficha__data dt { color: var(--muted); }
.ficha__seq { display: grid; gap: clamp(24px, 3vw, 44px); }
.ficha__fig { margin: 0; }
.ficha__fig img { width: 100%; height: auto; display: block; background: var(--stone); }
.ficha__fig--paper img { background: var(--white); outline: 1px solid var(--line); outline-offset: -1px; padding: 3%; }
.ficha__fig--small img { width: auto; max-width: 100%; max-height: 520px; }
.ficha__fig figcaption { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; padding-top: 12px; color: var(--muted); }
.ficha__fig .badge-type { position: static; background: var(--graphite); }
@media (max-width: 860px) {
  .ficha { width: 100vw; max-width: 100vw; max-height: 100svh; height: 100svh; margin: 0; }
  .ficha__inner { max-height: 100svh; height: 100%; }
  .ficha__body { grid-template-columns: 1fr; padding: 20px; }
  .ficha__text { position: static; }
  .ficha__head { padding: 16px 20px 14px; gap: 14px; }
}
body.ficha-open { overflow: hidden; }

/* ---------- Perfil del arquitecto ---------- */
.arch { row-gap: clamp(40px, 5vw, 72px); align-items: start; }
.arch__photo { grid-column: 1 / span 4; aspect-ratio: 1 / 1; }
.arch__photo img { width: 100%; height: 100%; object-fit: cover; }
.arch__text { grid-column: 6 / span 7; }
.arch__text h2 { margin-bottom: 14px; }
.arch__role { color: var(--copper-ink); margin-bottom: 28px; }
.arch__text .lead { max-width: 34ch; margin-bottom: 20px; }
.arch__text .muted { max-width: 60ch; }
.arch__text .muted + .muted { margin-top: 14px; }
.arch__keys { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line-strong); }
.arch__keys li { padding: 22px 20px 6px 0; }
.arch__keys li + li { padding-left: 20px; border-left: 1px solid var(--line); }
.arch__keys h3 { font-size: 1.1rem; margin: 14px 0 8px; }
.arch__keys p { color: var(--muted); font-size: var(--fs-small); }
.arch__note { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; padding: 16px 18px; border: 1px dashed var(--line-strong); color: var(--muted); font-size: .9rem; }
@media (max-width: 1023px) {
  .arch__photo { grid-column: 1 / span 5; }
  .arch__text { grid-column: 7 / -1; }
  .arch__keys { grid-template-columns: 1fr 1fr; }
  .arch__keys li:nth-child(odd) { padding-left: 0; border-left: 0; }
  .arch__keys li:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 680px) {
  .arch__photo { grid-column: 1 / span 9; }
  .arch__text { grid-column: 1 / -1; }
  .arch__keys { grid-template-columns: 1fr; }
  .arch__keys li, .arch__keys li + li { padding: 18px 0 8px; border-left: 0; border-top: 1px solid var(--line); }
  .arch__keys li:first-child { border-top: 0; }
}

/* Proyectos relacionados (páginas interiores) */
.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 32px); margin-top: clamp(36px, 4vw, 56px); }
.related a { display: grid; gap: 14px; }
.related .frame { aspect-ratio: 4 / 3; }
.related .frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.related a:hover .frame img { transform: scale(1.03); }
.related .frame--paper img { object-fit: contain; }
.related h3 { font-size: 1.15rem; }
.related .label { color: var(--muted); }
@media (max-width: 760px) { .related { grid-template-columns: 1fr; } }

/* Coreografía v1.1 */
@media (prefers-reduced-motion: no-preference) {
  .ficha[open] .ficha__inner { animation: fichaIn .9s var(--ease-arch) both; }
  @keyframes fichaIn { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
  .ficha[open] .ficha__fig { animation: fichaFig 1.1s var(--ease-out) both; }
  .ficha[open] .ficha__fig:nth-of-type(1) { animation-delay: .25s; }
  .ficha[open] li:nth-child(2) .ficha__fig { animation-delay: .35s; }
  .ficha[open] li:nth-child(3) .ficha__fig { animation-delay: .45s; }
  .ficha[open] li:nth-child(4) .ficha__fig { animation-delay: .55s; }
  @keyframes fichaFig { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}

/* Diseño · "Del trazo al espacio": láminas superpuestas (plano y visualización son documentos distintos) */
.doc-stack { grid-column: 7 / span 6; position: relative; margin: 0; height: min(calc(100svh - var(--header-h) - 64px), 820px); }
.doc-stack__a, .doc-stack__b { position: absolute; overflow: hidden; }
.doc-stack__a { left: 0; top: 0; width: 76%; aspect-ratio: 676 / 552; background: var(--white); }
.doc-stack__a img { width: 100%; height: 100%; object-fit: contain; padding: 4%; }
.doc-stack__b { right: 0; bottom: 9%; width: 70%; aspect-ratio: 1219 / 736; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6);
  transform: translateY(calc((1 - var(--p, 0)) * 28%)); opacity: calc(.2 + var(--p, 0) * .8); }
.doc-stack__b img { width: 100%; height: 100%; object-fit: cover; }
.doc-stack__cap { position: absolute; left: 0; bottom: 0; color: var(--muted-dark); }
@media (max-width: 1023px) {
  .doc-stack { grid-column: 1 / -1; height: auto; display: grid; gap: 14px; margin-top: 36px; }
  .doc-stack__a, .doc-stack__b { position: relative; width: 100%; inset: auto; transform: none; opacity: 1; box-shadow: none; }
  .doc-stack__cap { position: static; }
}
.no-motion .doc-stack__b { transform: none; opacity: 1; }
@media (prefers-reduced-motion: reduce) { .doc-stack__b { transform: none !important; opacity: 1 !important; } }

/* =====================================================================
   v1.2 · Página Proyectos y enlaces al portafolio
   ===================================================================== */

/* Enlace al portafolio (Inicio y páginas interiores) */
.proj-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; margin-top: clamp(56px, 7vw, 104px); padding-top: 24px; border-top: 1px solid var(--line-strong); }
.proj-cta p { display: grid; gap: 8px; max-width: 62ch; color: var(--muted); font-size: var(--fs-small); }
.proj-cta p .label { color: var(--copper-ink); }
.proj-cta--wide { margin-top: 0; padding-top: 0; border-top: 0; align-items: end; }
.proj-cta--wide h2 { flex: 1 1 100%; margin-bottom: clamp(8px, 2vw, 24px); }

/* Hero editorial */
.prj-hero { background: var(--ivory); padding-top: calc(var(--header-h) + clamp(48px, 7vw, 112px)); padding-bottom: clamp(64px, 8vw, 128px); }
.prj-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px; background-position: -1px -1px; opacity: .5;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 80% 45%, #000 25%, transparent 80%); mask-image: radial-gradient(ellipse 70% 80% at 80% 45%, #000 25%, transparent 80%);
}
.prj-hero__grid { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.prj-hero__grid .container { height: 100%; display: grid; grid-template-columns: repeat(6, 1fr); }
.prj-hero__grid i { border-left: 1px solid var(--line); transform-origin: top; }
.prj-hero__grid i:last-child { border-right: 1px solid var(--line); }
.prj-hero__inner { position: relative; z-index: 2; align-items: end; row-gap: 56px; }
.prj-hero__text { grid-column: 1 / span 7; }
.prj-hero .crumbs { color: var(--copper-ink); margin-bottom: clamp(28px, 4vw, 48px); }
.prj-hero h1 { font-size: var(--fs-hero); }
.prj-hero .phero__sub { color: var(--muted); max-width: 52ch; margin-top: clamp(22px, 2.6vw, 34px); font-size: var(--fs-lead); line-height: 1.4; }
.prj-hero .phero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(28px, 3.4vw, 44px); }

/* Índice de láminas (cartela) */
.prj-index { grid-column: 8 / span 5; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .6); }
.prj-index__hd, .prj-index__ft { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 12px; padding: 12px 16px; color: var(--muted); }
.prj-index__hd { border-bottom: 1px solid var(--line-strong); }
.prj-index__ft { border-top: 1px solid var(--line-strong); }
.prj-index ol { margin: 0; padding: 0; list-style: none; }
.prj-index li + li { border-top: 1px solid var(--line); }
.prj-index a { position: relative; display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: baseline; padding: 14px 16px; transition: background-color .4s var(--ease-soft); }
.prj-index a::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--copper); transform: scaleY(0); transform-origin: top; transition: transform .6s var(--ease-arch); }
.prj-index a:hover, .prj-index a:focus-visible { background: rgba(155, 96, 60, .06); }
.prj-index a:hover::before, .prj-index a:focus-visible::before { transform: scaleY(1); }
.prj-index__name { font-size: 1.02rem; letter-spacing: -.01em; }
.prj-index a .label { color: var(--muted); }
@media (max-width: 1023px) {
  .prj-hero__text, .prj-index { grid-column: 1 / -1; }
  .prj-index { max-width: 560px; }
}

/* Galería asimétrica (5 relatos) */
.pgal { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(16px, 2vw, 32px); row-gap: clamp(56px, 7vw, 112px); margin-top: clamp(64px, 8vw, 128px); align-items: start; }
.pstory { position: relative; scroll-margin-top: calc(var(--header-h) + 24px); }
.pstory--1 { grid-column: 1 / span 7; }
.pstory--2 { grid-column: 9 / span 4; margin-top: clamp(80px, 12vw, 200px); }
.pstory--3 { grid-column: 2 / span 5; }
.pstory--4 { grid-column: 8 / span 5; margin-top: clamp(40px, 6vw, 110px); }
.pstory--5 { grid-column: 1 / span 8; }
.pstory__open { display: block; width: 100%; text-align: left; cursor: pointer; }
.pstory__media { display: block; position: relative; overflow: hidden; aspect-ratio: 16 / 11; }
.pstory--2 .pstory__media { aspect-ratio: 4 / 5; }
.pstory--3 .pstory__media, .pstory--4 .pstory__media { aspect-ratio: 5 / 4.4; }
.pstory--5 .pstory__media { aspect-ratio: 16 / 8; }
.pstory__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.pstory__open:hover .pstory__media img, .pstory__open:focus-visible .pstory__media img { transform: scale(1.03); }
.pstory__media::after { content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none;
  background: linear-gradient(var(--copper), var(--copper)) left top / 0 1px no-repeat, linear-gradient(var(--copper), var(--copper)) right top / 1px 0 no-repeat,
              linear-gradient(var(--copper), var(--copper)) right bottom / 0 1px no-repeat, linear-gradient(var(--copper), var(--copper)) left bottom / 1px 0 no-repeat;
  transition: background-size .9s var(--ease-arch); }
.pstory__open:hover .pstory__media::after, .pstory__open:focus-visible .pstory__media::after { background-size: 100% 1px, 1px 100%, 100% 1px, 1px 100%; }
.pstory__meta { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: baseline; padding-top: 18px; margin-top: 18px; border-top: 1px solid var(--line); }
.pstory__meta h3 { font-size: clamp(1.25rem, 1.05rem + .7vw, 1.7rem); letter-spacing: -.02em; }
.pstory__meta .label { color: var(--muted); margin-top: 6px; }
.pstory__types { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 10px 0 0; padding: 0; list-style: none; }
.pstory__types li { display: inline-flex; align-items: center; gap: 7px; }
.pstory__types li::before { content: ""; width: 5px; height: 5px; border: 1px solid var(--sand); }

/* Estado editorial «en preparación»: lámina vacía (convención de vano), sin imagen de proyecto */
.pstory__media--empty { background: var(--white); outline: 1px solid var(--line-strong); outline-offset: -1px; }
.pslot { position: absolute; inset: 0; display: block; color: var(--sand);
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 32px 32px; background-position: -1px -1px; }
.pslot .plan { position: absolute; inset: 0; }
.pslot .plan .ln { stroke-width: 1.2; color: var(--graphite); stroke: var(--line-strong); }
.pslot .plan .thin { stroke-width: 1; }
.pslot .plan .ax { stroke-dasharray: 4 6; }
.pslot__num { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: .1em .35em; background: var(--white);
  font-family: var(--f-serif); font-style: italic; font-size: clamp(3.2rem, 2rem + 4vw, 6.5rem); line-height: 1; color: var(--graphite); letter-spacing: -.02em; }
.pslot__note { position: absolute; right: 14px; bottom: 12px; color: var(--muted); }
.badge-state { position: absolute; z-index: 3; left: 12px; top: 12px; padding: 6px 10px; background: var(--ivory); border: 1px solid var(--line-strong); }
.pstory__open:hover .pslot__num, .pstory__open:focus-visible .pslot__num { color: var(--copper); transition: color .5s var(--ease-soft); }
.js [data-draw] .pslot__num { opacity: 0; transition: opacity 1s var(--ease-soft) .5s, color .5s var(--ease-soft); }
.js [data-draw].is-in .pslot__num { opacity: 1; }

@media (max-width: 1023px) {
  .pstory--1, .pstory--3, .pstory--5 { grid-column: 1 / span 8; }
  .pstory--2, .pstory--4 { grid-column: 5 / -1; margin-top: 0; }
}
@media (max-width: 600px) {
  .pgal { row-gap: 52px; }
  .pstory--1, .pstory--2, .pstory--3, .pstory--4, .pstory--5 { grid-column: 1 / -1; margin-top: 0; }
  .pstory__media, .pstory--2 .pstory__media, .pstory--3 .pstory__media, .pstory--4 .pstory__media, .pstory--5 .pstory__media { aspect-ratio: 4 / 3.2; }
  .pstory__meta { grid-template-columns: auto 1fr; }
  .pstory__meta > .link-u { grid-column: 2; justify-self: start; }
}

/* Ficha sin material publicado */
.ficha__pending { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(20px, 3vw, 40px); align-items: center; }
.pslot--ficha { position: relative; aspect-ratio: 4 / 3; background-color: var(--white); outline: 1px solid var(--line-strong); outline-offset: -1px; }
.ficha__pending-text { display: grid; gap: 14px; align-content: start; }
.ficha__pending-text p:not(.label) { color: var(--muted); }
.ficha__pending-text .label { color: var(--muted); }
.ficha__types { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ficha__types .badge-type { position: static; }
.status--ok { color: #3F6B4A; }
@media (max-width: 760px) { .ficha__pending { grid-template-columns: 1fr; } }

/* Leyenda de tipos de imagen */
.prj-legend { margin-top: clamp(72px, 9vw, 140px); padding-top: 22px; border-top: 1px solid var(--line-strong); }
.prj-legend > .label { color: var(--copper-ink); margin-bottom: 22px; }
.prj-legend dl { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px clamp(16px, 2vw, 32px); margin: 0; }
.prj-legend dt.badge-type { position: static; display: inline-flex; margin-bottom: 12px; }
.prj-legend dd { margin: 0; color: var(--muted); font-size: var(--fs-small); }
@media (max-width: 1023px) { .prj-legend dl { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .prj-legend dl { grid-template-columns: 1fr; } }

/* Criterio de publicación */
.prj-crit { align-items: start; row-gap: 40px; }
.prj-crit h2 { grid-column: 1 / span 6; }
.prj-crit__list { grid-column: 8 / span 5; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-strong); }
.prj-crit__list li { display: grid; grid-template-columns: 44px 1fr; gap: 4px 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.prj-crit__list h3 { font-size: 1.2rem; }
.prj-crit__list p { grid-column: 2; color: var(--muted); font-size: var(--fs-small); }
@media (max-width: 1023px) { .prj-crit h2, .prj-crit__list { grid-column: 1 / -1; } }

/* =====================================================================
   v1.2.1 · Filosofía: composición trazo + estructura + espacio construido
   ===================================================================== */
.philo__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); align-items: start; }
.philo__head .philo__title { grid-column: 1 / span 6; grid-row: 1; font-size: clamp(2.3rem, .8rem + 4.7vw, 6rem); max-width: 15ch; position: relative; z-index: 1; }
.philo__head .philo__lead { grid-column: 1 / span 6; grid-row: 2; margin: clamp(36px, 4vw, 60px) 0 0; max-width: 50ch; }
.philo__fig { grid-column: 7 / -1; grid-row: 1 / span 2; margin: 0 0 0 clamp(0px, 2vw, 32px); align-self: center; }

.philo__stage { position: relative; aspect-ratio: 600 / 720; }
/* fotografía en la cara frontal del volumen (x 150–470, y 230–640 en el viewBox 600×720) */
.philo__photo { position: absolute; left: 25%; top: 31.944%; width: 53.333%; height: 56.944%; overflow: hidden; background: var(--graphite-3); }
.philo__pan { position: absolute; inset: -5% 0; }
.philo__pan img { width: 100%; height: 100%; object-fit: cover; display: block; }
.philo__pan { transform: translateY(calc((.5 - var(--p, .5)) * 6%)); will-change: transform; }
.philo__draw { position: absolute; inset: 0; color: rgba(244, 241, 236, .58); pointer-events: none; }
.philo__draw svg { width: 100%; height: 100%; display: block; overflow: visible; }
.philo__draw .ln { stroke-width: 1.15; vector-effect: non-scaling-stroke; }
.philo__draw .thin { stroke-width: .8; vector-effect: non-scaling-stroke; opacity: .45; }
.philo__draw .ax { stroke-width: .8; vector-effect: non-scaling-stroke; opacity: .32; }
.philo__draw .cu { color: var(--copper-soft); stroke: var(--copper-soft); }
.philo__draw .node { fill: var(--graphite-2); }
.philo__draw .lbl { fill: var(--copper-soft); stroke: none; font-family: var(--f-mono); font-size: 15px; letter-spacing: .04em; text-anchor: middle; }
/* la retícula estructural se desplaza muy poco respecto del volumen: lectura de capas, no espectáculo */
.philo__axes { transform: translateY(calc((var(--p, .5) - .5) * 16px)); }
.philo__tag { white-space: nowrap; left: 25%; bottom: auto; top: calc(31.944% + 10px); margin-left: 10px; z-index: 3; }
.philo__cap { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; padding: 12px 0 0 25%; border-top: 1px solid rgba(244, 241, 236, .14); color: var(--muted-dark); }
.philo__cap span:first-child { color: var(--copper-soft); }

@media (max-width: 1023px) {
  .philo__head .philo__title, .philo__head .philo__lead, .philo__fig { grid-column: 1 / -1; grid-row: auto; }
  .philo__fig { margin-top: clamp(32px, 6vw, 48px); width: min(100%, calc(46svh * 600 / 720), 460px); justify-self: end; }
  .philo__head .philo__lead { margin-top: clamp(28px, 5vw, 44px); }
}
@media (max-width: 600px) {
  .philo__head .philo__title { font-size: 2.35rem; }
  .philo__fig { justify-self: center; }
  .philo__cap { padding-left: 0; }
  .philo__fig { width: min(100%, calc(42svh * 600 / 720), 340px); }
  .philo__tag { left: 0; top: auto; bottom: 0; margin: 0; white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  .philo__pan, .philo__axes { transform: none !important; }
}
.no-motion .philo__pan, .no-motion .philo__axes { transform: none; }

/* =====================================================================
   v1.3 · Identidad dual: ARKSTRUCT (marca institucional) + Rick Arq (identidad profesional)
   Los logotipos se muestran tal cual: escala proporcional (object-fit: contain), sin sombras,
   degradados ni recolor. La única variante es la monocroma blanca sobre fondos oscuros,
   la misma que el sitio ya aplica a ARKSTRUCT.
   ===================================================================== */
.brand-pair { display: inline-flex; align-items: center; gap: clamp(14px, 1.3vw, 20px); flex: none; }
.brand-rule { width: 1px; height: 26px; background: currentColor; opacity: .26; flex: none; }
.brand-rick { display: inline-flex; align-items: center; flex: none; padding-block: 6px; }
.brand-rick img { height: 28px; width: auto; aspect-ratio: 1519 / 1238; object-fit: contain; transition: filter var(--t-fast) var(--ease-soft); }
body[data-hero="dark"] .site-header:not(.is-solid) .brand-rick img,
body.menu-open .site-header .brand-rick img { filter: brightness(0) invert(1); }
@media (max-width: 767px) {
  .brand-pair { gap: 12px; }
  .brand-rule { height: 22px; }
  .brand-rick img { height: 26px; }
}

/* Firma profesional en «El arquitecto» */
.arch__sign { display: flex; align-items: center; gap: clamp(18px, 2vw, 28px); max-width: 60ch; margin-top: clamp(32px, 4vw, 48px); padding-top: clamp(24px, 3vw, 32px); border-top: 1px solid var(--line-strong); }
.arch__sign img { height: clamp(76px, 4.4rem + 2vw, 104px); width: auto; aspect-ratio: 1519 / 1238; object-fit: contain; flex: none; }
.arch__sign-rule { width: 1px; align-self: stretch; background: var(--line-strong); flex: none; }
.arch__sign-txt { display: grid; gap: 8px; }
.arch__sign-txt .label { color: var(--copper-ink); }
.arch__sign-name { font-family: var(--f-serif); font-size: clamp(1.35rem, 1.05rem + 1vw, 1.9rem); line-height: 1.1; letter-spacing: -.01em; color: var(--ink); }

/* Pie: franja marfil con ambos logotipos en sus colores originales */
.site-footer { padding-top: 0; }
.site-footer__marks { background: var(--ivory); color: var(--ink); border-bottom: 1px solid var(--line-dark); margin-bottom: 56px; padding-block: clamp(32px, 4vw, 52px); }
.marks { display: flex; align-items: center; gap: clamp(24px, 4vw, 56px); }
.marks__ark img { height: clamp(88px, 3.6rem + 4vw, 132px); width: auto; aspect-ratio: 850 / 792; object-fit: contain; }
.marks__rule { width: 1px; align-self: stretch; background: var(--line-strong); flex: none; }
.marks__rick { display: flex; align-items: center; gap: clamp(16px, 2vw, 24px); }
.marks__rick img { height: clamp(60px, 2.8rem + 2vw, 80px); width: auto; aspect-ratio: 1519 / 1238; object-fit: contain; flex: none; }
.marks__cap { display: grid; gap: 6px; color: var(--muted); font-size: .875rem; }
.marks__cap .label { color: var(--copper-ink); margin: 0; }
.marks a { transition: opacity var(--t-fast) var(--ease-soft); }
.marks a:hover { opacity: .82; }
@media (max-width: 560px) {
  .marks { gap: 22px; }
  .marks__rick { flex-direction: column; align-items: flex-start; gap: 12px; }
  .marks__cap { font-size: .8125rem; }
}

/* ---------- 9. Movimiento (solo con JS y sin reduced-motion) ---------- */
/* Revelado general */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal="fade"] { transform: none; }
/* Titulares por línea */
.js [data-lines] .ln-in { transform: translateY(105%); transition: transform 1.15s var(--ease-out); transition-delay: calc(var(--d, 0s) + var(--li, 0) * .11s); }
.js [data-lines].is-in .ln-in { transform: none; }
/* Architectural reveal: dos planos que se deslizan para descubrir la imagen */
.js [data-mask] { clip-path: inset(0 0 100% 0); transition: clip-path 1.3s var(--ease-arch); transition-delay: var(--d, 0s); }
.js [data-mask].is-in { clip-path: inset(0 0 0 0); }
.js [data-mask] img { transform: scale(1.12); transition: transform 2.2s var(--ease-out), opacity .3s; transition-delay: var(--d, 0s); }
.js [data-mask].is-in img { transform: scale(1); }
.js [data-mask="x"] { clip-path: inset(0 100% 0 0); }
.js [data-mask="x"].is-in { clip-path: inset(0 0 0 0); }
.js .frame[data-mask]::before { content: ""; position: absolute; inset: 0; z-index: 3; background: var(--copper); transform: scaleY(1); transform-origin: top; transition: transform 1.1s var(--ease-arch); transition-delay: calc(var(--d, 0s) + .35s); pointer-events: none; }
.js .frame[data-mask].is-in::before { transform: scaleY(0); }
/* Architectural line drawing */
.js [data-draw] .ln, .js [data-draw] .thin, .js [data-draw] .ax { stroke-dasharray: 1 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s var(--ease-soft); transition-delay: calc(var(--d, 0s) + var(--i, 0) * .07s); }
.js [data-draw] .lbl { opacity: 0; transition: opacity .8s var(--ease-soft); transition-delay: calc(var(--d, 0s) + .6s + var(--i, 0) * .07s); }
.js [data-draw].is-in .ln, .js [data-draw].is-in .thin, .js [data-draw].is-in .ax { stroke-dashoffset: 0; }
.js [data-draw].is-in .lbl { opacity: 1; }
/* Reglas de capítulo y retícula */
.js [data-rule] { transform: scaleX(0); transition: transform 1.4s var(--ease-arch); transition-delay: var(--d, 0s); }
.js [data-rule].is-in { transform: scaleX(1); }
.js [data-grid] i { transform: scaleY(0); transition: transform 1.6s var(--ease-arch); }
.js [data-grid].is-in i { transform: scaleY(1); }
.js [data-grid] i:nth-child(2) { transition-delay: .08s; } .js [data-grid] i:nth-child(3) { transition-delay: .16s; }
.js [data-grid] i:nth-child(4) { transition-delay: .24s; } .js [data-grid] i:nth-child(5) { transition-delay: .32s; }
.js [data-grid] i:nth-child(6) { transition-delay: .4s; }

/* Secuencia de entrada del hero (clase .is-ready en <body>) */
.js .hero__img { clip-path: inset(0 100% 0 0); transition: clip-path 1.6s var(--ease-arch) 1.15s; }
.js .hero__img img { transform: scale(1.1); transition: transform 2.8s var(--ease-out) 1.15s; }
.js .is-ready .hero__img { clip-path: inset(0 0 0 0); }
.js .is-ready .hero__img img { transform: scale(1); }
.js .hero__plan { transition: opacity 1.6s var(--ease-soft) 2.4s; }
.js .is-ready .hero__plan { opacity: .16; }
.js .hero__eyebrow .tick { transform: scaleX(0); transition: transform 1s var(--ease-arch) .3s; }
.js .is-ready .hero__eyebrow .tick { transform: scaleX(1); }
.js .hero__eyebrow .label, .js .hero__sub, .js .hero__ctas, .js .hero__meta .label, .js .scroll-cue { opacity: 0; transform: translateY(14px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); }
.js .is-ready .hero__eyebrow .label { opacity: 1; transform: none; transition-delay: .45s; }
.js .is-ready .hero__sub { opacity: 1; transform: none; transition-delay: 1.05s; }
.js .is-ready .hero__ctas { opacity: 1; transform: none; transition-delay: 1.2s; }
.js .is-ready .hero__meta .label, .js .is-ready .scroll-cue { opacity: 1; transform: none; transition-delay: 1.7s; }
.js .hero__meta::before { transform: scaleX(0); transition: transform 1.6s var(--ease-arch) 1.4s; }
.js .is-ready .hero__meta::before { transform: scaleX(1); }
.js .hero h1 .ln-in { transform: translateY(105%); transition: transform 1.2s var(--ease-out); transition-delay: calc(.55s + var(--li, 0) * .14s); }
.js .is-ready .hero h1 .ln-in, .js .is-ready .phero h1 .ln-in { transform: none; }
.js .is-trace { clip-path: inset(0 0 100% 0); transition: clip-path 1.5s var(--ease-arch) .15s, opacity 1.6s var(--ease-soft) 2.4s; }
.js .is-trace.is-in { clip-path: inset(0 0 0 0); }
.js .phero h1 .ln-in { transform: translateY(105%); transition: transform 1.2s var(--ease-out); transition-delay: calc(.35s + var(--li, 0) * .13s); }
.js .phero--design .phero__media { clip-path: inset(0 0 0 100%); transition: clip-path 1.6s var(--ease-arch) .7s; }
.js .is-ready .phero--design .phero__media { clip-path: inset(0 0 0 0); }
.js .phero .phero__sub, .js .phero .phero__ctas, .js .phero .crumbs { opacity: 0; transform: translateY(14px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); }
.js .is-ready .phero .crumbs { opacity: 1; transform: none; transition-delay: .2s; }
.js .is-ready .phero .phero__sub { opacity: 1; transform: none; transition-delay: .8s; }
.js .is-ready .phero .phero__ctas { opacity: 1; transform: none; transition-delay: .95s; }

/* Parallax discreto controlado por --sy (0..1) */
.hero__media, .phero--design .phero__media img { will-change: transform; }
.hero__media { transform: translate3d(0, calc(var(--sy, 0) * 9vh), 0); }
.hero__content { transform: translate3d(0, calc(var(--sy, 0) * -4vh), 0); }

/* ---------- 10. Movimiento reducido / sin JS ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .hero__media, .hero__content { transform: none !important; }
  .b2r, .story-split { height: auto; }
  .story-split__sticky { position: relative; height: auto; }
  .story-split__stage { --p: .5 !important; }
  .b2r__sticky { position: relative; height: auto; }
  .b2r__stage { --p: .56 !important; max-height: none; }
}
.no-motion .b2r { height: auto; }
.no-motion .b2r__sticky { position: relative; height: auto; }
.no-motion .b2r__stage { --p: .56 !important; }
.no-motion .story-split { height: auto; }
.no-motion .story-split__sticky { position: relative; height: auto; }
.no-motion .story-split__stage { --p: .5 !important; }

@media print {
  .site-header, .menu-panel, .wa-float, .hero__grid, .scroll-cue { display: none !important; }
  .js [data-reveal], .js [data-mask], .js [data-lines] .ln-in { opacity: 1 !important; transform: none !important; clip-path: none !important; }
}
