/* ─────────────────────────────────────────────────────────────
   SAUCES & LARQ. · hoja de estilos del sitio
   Paleta del portafolio: negro cálido, maderas y arena.
   Firma gráfica: el arco del logotipo de Sauces.
   ───────────────────────────────────────────────────────────── */

@font-face { font-family: "DM Sans"; src: url("../fonts/dm-sans.woff2") format("woff2"); font-weight: 100 1000; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("../fonts/dm-sans-italic.woff2") format("woff2"); font-weight: 100 1000; font-style: italic; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("../fonts/instrument-serif.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("../fonts/instrument-serif-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --ink: #15130f;
  --ink-2: #211d18;
  --ink-3: #2d2822;
  --paper: #f4f0e8;
  --paper-2: #ebe4d7;
  --paper-3: #e1d8c8;
  --stone: #6b6256;
  --wood: #7e5737;
  --sand: #cdb48f;
  --sand-l: #e2d2b8;
  --line: rgba(21, 19, 15, .14);
  --line-l: rgba(244, 240, 232, .16);
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --serif: "Instrument Serif", "Times New Roman", serif;
  --gut: clamp(16px, 4.2vw, 56px);
  --max: 1400px;
  --r: 4px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --hdr: 74px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr) + 16px); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p, figure, dl, dd, fieldset { margin: 0; }
fieldset { border: 0; padding: 0; min-width: 0; }
::selection { background: var(--sand); color: var(--ink); }
:focus-visible { outline: 2px solid var(--wood); outline-offset: 3px; border-radius: 2px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 300; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: var(--r); transition: top .2s; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gut); }
.i { width: 18px; height: 18px; flex: none; }

/* ── Tipografía ── */
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
.h2 { font-size: clamp(2.1rem, 4.6vw, 3.9rem); line-height: 1.02; font-weight: 400; letter-spacing: -.035em; }
.h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); line-height: 1.08; font-weight: 400; letter-spacing: -.03em; }
.h2 .serif, .h3 .serif { color: var(--wood); }
.lead { font-size: clamp(1.08rem, 1.5vw, 1.28rem); line-height: 1.55; color: var(--ink-3); max-width: 40ch; }
[data-split] .l { display: block; }

/* ── Botones y enlaces ── */
.btn, .btn-line { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 0 26px; border-radius: 999px; font-size: 15px; font-weight: 500; position: relative; isolation: isolate; overflow: hidden; white-space: nowrap; transition: color .45s var(--ease), border-color .45s var(--ease); }
.btn { background: var(--sand); color: var(--ink); }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink); transform: translateY(101%); border-radius: inherit; transition: transform .55s var(--ease); }
.btn:hover { color: var(--paper); }
.btn:hover::before { transform: none; }
.btn .i, .btn-line .i, .link .i { width: 16px; height: 16px; transition: transform .45s var(--ease); }
.btn:hover .i, .btn-line:hover .i, .link:hover .i { transform: translateX(4px); }
.btn--sm { min-height: 42px; padding: 0 20px; font-size: 14px; }
.btn--full { width: 100%; }
.btn--light::before { background: var(--paper); }
.btn--light:hover { color: var(--ink); }
.btn-line { border: 1px solid currentColor; }
.btn-line::before { content: ""; position: absolute; inset: 0; z-index: -1; background: currentColor; opacity: .08; transform: scaleX(0); transform-origin: left; transition: transform .55s var(--ease); }
.btn-line:hover::before { transform: none; }
.btn-line--light { color: var(--paper); border-color: rgba(244, 240, 232, .4); }
.link { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; padding: 6px 0; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; transition: background-size .45s var(--ease); }
.link:hover { background-size: 0 1px; background-position: 100% 100%; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-size: 12.5px; line-height: 1; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-3); }
.tags--sm li { font-size: 11.5px; padding: 6px 10px; }

/* ── Encabezado ── */
.progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 120; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--sand); transform: scaleX(0); transform-origin: left; }
.hdr { position: fixed; inset: 0 0 auto; z-index: 100; height: var(--hdr); color: var(--ink); transition: transform .5s var(--ease), background-color .4s, color .4s, box-shadow .4s; }
body[data-tone="dark"] .hdr:not(.is-solid) { color: var(--paper); }
.hdr__in { height: 100%; display: flex; align-items: center; gap: 24px; }
.hdr.is-solid { background: rgba(244, 240, 232, .92); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 var(--line); }
.hdr.is-hidden { transform: translateY(-100%); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; line-height: 1; letter-spacing: -.01em; white-space: nowrap; flex: none; }
.arch-mark { display: inline-block; flex: none; aspect-ratio: 190 / 198; background-color: currentColor; -webkit-mask: url("../img/sauces-arcos.png") center / contain no-repeat; mask: url("../img/sauces-arcos.png") center / contain no-repeat; }
.brand__arch { width: 27px; height: 28px; color: var(--sand); transition: color .4s; }
.hdr.is-solid .brand__arch, body[data-tone="light"] .brand__arch { color: var(--wood); }
.amp { font-family: var(--serif); font-style: italic; font-weight: 400; margin: 0 .16em; font-size: 1.15em; color: var(--sand); }
.hdr.is-solid .amp, body[data-tone="light"] .hdr .amp { color: var(--wood); }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { position: relative; padding: 10px 14px; font-size: 15px; }
.nav a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 5px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.hdr__act { display: flex; align-items: center; gap: 14px; }
.hdr__share { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; padding: 8px 6px; opacity: .85; transition: opacity .3s; }
.hdr__share:hover { opacity: 1; }
.hdr__share .i { width: 16px; height: 16px; }
.burger { display: none; width: 44px; height: 44px; position: relative; border-radius: 50%; border: 1px solid currentColor; }
.burger span:not(.sr) { position: absolute; left: 13px; right: 13px; height: 1.5px; background: currentColor; transition: transform .45s var(--ease), top .45s var(--ease); }
.burger span:nth-child(1) { top: 18px; }
.burger span:nth-child(2) { top: 25px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

.menu { position: fixed; inset: 0; z-index: 90; background: var(--ink); color: var(--paper); padding: calc(var(--hdr) + 24px) var(--gut) calc(28px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; justify-content: space-between; clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--ease-io); overflow-y: auto; }
.menu.is-open { clip-path: inset(0); }
.menu nav { display: flex; flex-direction: column; }
.menu nav a { font-size: clamp(2.2rem, 11vw, 3.4rem); letter-spacing: -.03em; line-height: 1.15; padding: 8px 0; border-bottom: 1px solid var(--line-l); opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease), color .3s; }
.menu nav a[aria-current="page"] { font-family: var(--serif); font-style: italic; color: var(--sand); }
.menu.is-open nav a { opacity: 1; transform: none; }
.menu.is-open nav a:nth-child(2) { transition-delay: .05s; }
.menu.is-open nav a:nth-child(3) { transition-delay: .1s; }
.menu.is-open nav a:nth-child(4) { transition-delay: .15s; }
.menu.is-open nav a:nth-child(5) { transition-delay: .2s; }
.menu__foot { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; margin-top: 32px; }
.menu__share { display: inline-flex; gap: 10px; align-items: center; color: var(--paper); }
body.menu-open { overflow: hidden; }
body.menu-open .hdr { background: transparent; color: var(--paper); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; transform: none; }
body.menu-open .hdr .btn--sm, body.menu-open .hdr .hdr__share { visibility: hidden; }

/* ══════════ INICIO ══════════ */
.hero { background: var(--ink); color: var(--paper); min-height: 100svh; display: flex; flex-direction: column; padding-top: calc(var(--hdr) + clamp(16px, 4vh, 48px)); position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(55% 65% at 78% 35%, rgba(126, 87, 55, .38), transparent 70%); pointer-events: none; }
.hero__grid { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); align-items: center; position: relative; }
.hero__kicker { color: var(--sand); font-size: 14px; letter-spacing: .04em; margin-bottom: clamp(18px, 3vh, 28px); }
.hero__title { font-size: clamp(3rem, 7.6vw, 7rem); line-height: .94; font-weight: 400; letter-spacing: -.045em; }
.hero__title .serif { color: var(--sand-l); padding-right: .08em; }
.hero__text { margin-top: clamp(20px, 3.4vh, 32px); max-width: 34ch; font-size: clamp(1.05rem, 1.4vw, 1.22rem); color: rgba(244, 240, 232, .78); }
.hero__cta { margin-top: clamp(26px, 4.4vh, 40px); display: flex; flex-wrap: wrap; gap: 12px; }
.hero .btn::before { background: var(--paper); }
.hero .btn:hover { color: var(--ink); }
.hero .btn-line { color: var(--paper); border-color: rgba(244, 240, 232, .4); }

/* Collage de la portada */
.stage { position: relative; height: min(76svh, 720px); min-height: 480px; }
.stage__fig { position: absolute; overflow: hidden; background: var(--ink-2); will-change: transform; }
.stage__fig--arch { left: 50%; top: 0; width: min(78%, 540px); translate: -50% 0; height: 84%; border-radius: 999px 999px 6px 6px; z-index: 2; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .7); }
.stage__slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1.1s var(--ease), visibility 0s 1.1s; }
.stage__slide.is-on { opacity: 1; visibility: visible; transition: opacity 1.1s var(--ease), visibility 0s; z-index: 1; }
.stage__slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 7s linear; }
.stage__slide.is-on img { transform: scale(1.02); }
.stage__cap { position: absolute; left: 50%; width: min(78%, 540px); translate: -50% 0; bottom: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 8px 18px; }
.stage__name { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.stage__name b { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: 1.1; color: var(--paper); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stage__name span { font-size: 13px; color: rgba(244, 240, 232, .62); }
.stage__name:hover b { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.stage__ctl { display: flex; align-items: center; gap: 6px; }
.stage__count { font-size: 13px; color: rgba(244, 240, 232, .62); font-variant-numeric: tabular-nums; margin-right: 6px; }
.stage__count b { color: var(--paper); font-weight: 500; }
.stage__ctl button { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(244, 240, 232, .25); display: grid; place-items: center; transition: background-color .3s, border-color .3s; }
.stage__ctl button:hover { background: rgba(244, 240, 232, .1); border-color: rgba(244, 240, 232, .6); }
.stage__ctl .i { width: 15px; height: 15px; }
.stage .i-play { display: none; }
.stage.is-paused .i-play { display: block; }
.stage.is-paused .i-pause { display: none; }
.stage__bar { grid-column: 1 / -1; height: 1px; background: rgba(244, 240, 232, .16); overflow: hidden; }
.stage__bar i { display: block; height: 100%; background: var(--sand); transform: scaleX(0); transform-origin: left; }
.stage__bar i.run { animation: bar var(--slide, 6s) linear forwards; }
.stage.is-paused .stage__bar i { animation-play-state: paused; }
@keyframes bar { to { transform: scaleX(1); } }

.ticker { position: relative; margin-top: clamp(24px, 4vh, 44px); border-top: 1px solid var(--line-l); overflow: hidden; padding: 16px 0 18px; }
.ticker__track { display: flex; gap: 44px; width: max-content; animation: marquee 80s linear infinite; white-space: nowrap; }
.ticker:hover .ticker__track, .ticker:focus-within .ticker__track { animation-play-state: paused; }
.ticker a { font-size: 15px; color: rgba(244, 240, 232, .82); transition: color .3s; display: inline-flex; align-items: baseline; gap: 10px; }
.ticker a::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--sand); align-self: center; opacity: .6; }
.ticker a small { font-size: 12.5px; color: rgba(244, 240, 232, .45); }
.ticker a:hover { color: var(--sand); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Franja de logos LArq. + Sauces */
.lede { padding-block: clamp(56px, 8vw, 110px); }
.lede__logos { display: flex; align-items: center; justify-content: center; gap: clamp(28px, 5vw, 72px); }
.lede__logos img { filter: brightness(0); opacity: .88; }
.lede__logos img:first-child { height: clamp(40px, 5vw, 64px); width: auto; }
.lede__logos img:last-child { height: clamp(62px, 7.6vw, 100px); width: auto; }
.lede__logos span { color: var(--wood); font-family: var(--serif); font-style: italic; font-size: clamp(1.8rem, 3vw, 2.8rem); line-height: 1; }

/* Carrusel horizontal que avanza con el scroll */
.rail { background: var(--paper-2); position: relative; }
.rail__sticky { padding-block: clamp(72px, 9vw, 120px) 48px; overflow: hidden; }
.rail.is-pinned .rail__sticky { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-block: calc(var(--hdr) + 12px) 32px; }
.rail__head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: end; gap: 12px 40px; margin-bottom: clamp(28px, 4vh, 48px); }
.rail__head p { color: var(--stone); max-width: 42ch; }
.rail__view { overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gut); }
.rail__view::-webkit-scrollbar { display: none; }
.rail.is-pinned .rail__view { overflow: visible; }
.rail__track { display: flex; gap: clamp(16px, 2vw, 28px); padding-inline: max(var(--gut), calc((100vw - var(--max)) / 2 + var(--gut))); width: max-content; will-change: transform; }
.card--rail { width: clamp(240px, 24vw, 360px); scroll-snap-align: start; }
.rail.is-pinned .card--rail .card__media { aspect-ratio: auto; height: min(52svh, 480px); }
.rail__end { width: clamp(220px, 20vw, 300px); scroll-snap-align: start; }
.rail__end a { height: 100%; min-height: 300px; border: 1px solid var(--line); border-radius: var(--r); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 18px; padding: 32px; font-size: 1.5rem; letter-spacing: -.02em; line-height: 1.15; transition: background-color .4s, color .4s; }
.rail__end a:hover { background: var(--ink); color: var(--paper); }
.rail__arch { width: 44px; height: 52px; color: var(--wood); }
.rail__progress { margin-top: 28px; }
.rail__progress span { display: block; height: 1px; background: var(--line); }
.rail__progress i { display: block; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left; }

/* Servicios en filas */
.svcs { padding-block: clamp(96px, 12vw, 168px); }
.svcs__head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 20px 48px; align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.svcs__head p { color: var(--stone); max-width: 40ch; }
.svc-rows { border-top: 1px solid var(--line); }
.svc-rows li { border-bottom: 1px solid var(--line); }
.svc-row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) 130px 24px; gap: 24px; align-items: center; padding: 26px 0; position: relative; transition: padding .5s var(--ease), color .4s; }
.svc-row::before { content: ""; position: absolute; inset: 0 calc(var(--gut) * -1); background: var(--ink); z-index: -1; clip-path: inset(50% 0 50% 0); transition: clip-path .55s var(--ease-io); }
.svc-row:hover, .svc-row:focus-visible { color: var(--paper); padding-left: 18px; }
.svc-row:hover::before, .svc-row:focus-visible::before { clip-path: inset(0); }
.svc-row__t { font-size: clamp(1.4rem, 2.4vw, 2.1rem); letter-spacing: -.03em; line-height: 1.1; }
.svc-row:hover .svc-row__t { font-family: var(--serif); font-style: italic; color: var(--sand); }
.svc-row__d { color: var(--stone); transition: color .4s; }
.svc-row:hover .svc-row__d { color: rgba(244, 240, 232, .72); }
.svc-row__n { font-size: 13.5px; color: var(--stone); text-align: right; transition: color .4s; }
.svc-row:hover .svc-row__n { color: var(--sand); }
.svcs { isolation: isolate; }

.peek { position: fixed; left: 0; top: 0; z-index: 85; width: 220px; aspect-ratio: 4 / 5; border-radius: 999px 999px 4px 4px; overflow: hidden; pointer-events: none; opacity: 0; transform: translate(-50%, -50%) scale(.6); transition: opacity .35s var(--ease), transform .45s var(--ease); background: var(--ink-2); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .5); }
.peek.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.peek img { width: 100%; height: 100%; object-fit: cover; }

/* Tipos de proyecto */
.types { padding-block: 0 clamp(96px, 12vw, 168px); }
.types__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px 48px; align-items: end; margin-bottom: clamp(32px, 4vw, 56px); }
.types__clients { display: flex; flex-wrap: wrap; gap: 8px; }
.types__clients li { padding: 9px 14px; border-radius: 999px; background: var(--paper-2); font-size: 14px; }
.types__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 22px); }
.type { display: grid; gap: 4px; }
.type__img { display: block; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 999px 999px 4px 4px; background: var(--paper-3); margin-bottom: 12px; }
.type__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.type:hover .type__img img { transform: scale(1.06); }
.type__t { font-size: 1.3rem; letter-spacing: -.02em; }
.type__n { font-size: 14px; color: var(--stone); }

/* Dúo / cifras */
.duo { background: var(--ink); color: var(--paper); padding-block: clamp(84px, 11vw, 150px); }
.duo .h2 .serif { color: var(--sand); }
.duo__grid { display: grid; gap: clamp(40px, 6vw, 72px); justify-items: start; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; border-top: 1px solid var(--line-l); }
.stats > div { padding: 26px 24px 4px 0; display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 10px; }
.stats > div + div { padding-left: 24px; border-left: 1px solid var(--line-l); }
.stats dd { font-size: clamp(2.4rem, 4.4vw, 3.8rem); letter-spacing: -.045em; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stats dd small { font-size: .36em; letter-spacing: 0; margin-left: .3em; color: var(--sand); }
.stats dt { font-size: 14px; color: rgba(244, 240, 232, .62); max-width: 26ch; line-height: 1.45; }

/* ══════════ PÁGINAS INTERIORES ══════════ */
.phead { padding-top: calc(var(--hdr) + clamp(48px, 8vw, 110px)); padding-bottom: clamp(40px, 6vw, 80px); display: grid; gap: 24px; }
.phead--row { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: end; gap: 24px 48px; }
.phead__t { font-size: clamp(2.8rem, 7vw, 6.2rem); line-height: .96; font-weight: 400; letter-spacing: -.045em; }
.phead__t .serif { color: var(--wood); }
.phead__d { color: var(--stone); font-size: 1.1rem; max-width: 44ch; }

/* Servicios */
.svx > * { min-width: 0; }
.svx { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; padding-bottom: clamp(80px, 10vw, 140px); }
.svx__nav { position: sticky; top: calc(var(--hdr) + 24px); display: grid; gap: 24px; justify-items: start; }
.svx__nav ul { border-left: 1px solid var(--line); display: grid; }
.svx__nav ul a { display: block; padding: 9px 0 9px 18px; margin-left: -1px; border-left: 2px solid transparent; color: var(--stone); font-size: 15px; transition: color .3s, border-color .3s; }
.svx__nav ul a:hover { color: var(--ink); }
.svx__nav ul a.is-here { color: var(--ink); border-color: var(--wood); font-weight: 500; }
.svx__list { display: grid; }
.svx__sec { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 28px clamp(28px, 4vw, 56px); padding-block: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line); scroll-margin-top: calc(var(--hdr) + 16px); }
.svx__sec:first-child { border-top: 0; padding-top: 0; }
.svx__intro { display: grid; gap: 14px; align-content: start; }
.svx__short { font-size: 1.15rem; color: var(--ink); }
.svx__intro p:not(.svx__short) { color: var(--stone); }
.svx__label { font-size: 14px; color: var(--stone); display: flex; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.svx__label span { color: var(--wood); }
.svx__work { display: grid; gap: 4px; justify-items: start; }
.minis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; width: 100%; margin-bottom: 10px; }
.mini { display: grid; gap: 2px; }
.mini__img { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r); background: var(--paper-3); margin-bottom: 8px; }
.mini__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.mini:hover .mini__img img { transform: scale(1.06); }
.mini__t { font-size: 15.5px; font-weight: 500; }
.mini__l { font-size: 13px; color: var(--stone); }
.svx__cta { background: var(--paper-2); border-radius: var(--r); padding: clamp(24px, 3vw, 36px); display: grid; gap: 18px; align-content: center; justify-items: start; }
.svx__cta p { color: var(--ink-3); max-width: 36ch; }

.process { background: var(--paper-2); padding-block: clamp(84px, 11vw, 150px); }
.process__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 48px; align-items: end; margin-bottom: clamp(44px, 6vw, 80px); }
.process__head p { color: var(--stone); max-width: 42ch; }
.process__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(40px, 5vw, 64px); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); position: relative; counter-reset: step; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line); }
.steps::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--wood); transform: scaleX(0); transform-origin: left; transition: transform 1.8s var(--ease-io) .2s; }
.steps.in::after { transform: scaleX(1); }
.step { padding: 36px 32px 0 0; position: relative; }
.step::before { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--paper-2); border: 1px solid var(--wood); }
.step__n { font-family: var(--serif); font-style: italic; font-size: 3.4rem; line-height: 1; color: var(--wood); display: block; margin-bottom: 22px; }
.step h3 { font-size: 1.4rem; font-weight: 500; letter-spacing: -.02em; }
.step p { color: var(--stone); margin-top: 8px; max-width: 30ch; }

.clients { padding-block: clamp(84px, 11vw, 150px); }
.clients__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 36px 64px; align-items: start; }
.clients__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.clients__list li { border-bottom: 1px solid var(--line); padding: 20px 20px 20px 0; font-size: 1.12rem; display: flex; align-items: center; gap: 14px; }
.clients__list li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; border: 1px solid var(--wood); flex: none; }

/* Portafolio */
.workbar { position: sticky; top: 0; z-index: 50; background: rgba(244, 240, 232, .92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-block: 1px solid var(--line); transition: top .5s var(--ease); }
body.hdr-shown .workbar { top: var(--hdr); }
.workbar__in { display: flex; gap: 16px; align-items: center; justify-content: space-between; padding-block: 12px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters .chip { flex: none; }
.chip { min-height: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); font-size: 14.5px; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; transition: background-color .35s var(--ease), color .35s, border-color .35s; }
.chip sup { font-size: 10.5px; color: var(--stone); top: -.5em; position: relative; vertical-align: baseline; }
.chip:hover { border-color: var(--ink); }
.chip.is-on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip.is-on sup { color: var(--sand); }
.views { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; flex: none; }
.views button { width: 38px; height: 36px; border-radius: 999px; display: grid; place-items: center; color: var(--stone); transition: background-color .3s, color .3s; }
.views button.is-on { background: var(--ink); color: var(--paper); }
.work { padding-top: 28px; padding-bottom: clamp(80px, 10vw, 140px); }
.work__count { color: var(--stone); font-size: 14px; margin-bottom: clamp(24px, 3vw, 40px); }
.work__count b { color: var(--ink); font-weight: 500; }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(36px, 4vw, 56px) clamp(16px, 2.2vw, 30px); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { display: flex; flex-direction: column; gap: 12px; }
.card__link { display: flex; flex-direction: column; gap: 14px; }
.card__media { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r); background: var(--paper-3); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.card__link:hover .card__media img { transform: scale(1.05); }
.card__n { position: absolute; top: 12px; right: 12px; font-size: 11.5px; background: rgba(21, 19, 15, .65); color: var(--paper); padding: 5px 10px; border-radius: 999px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.card__badge { position: absolute; top: 12px; left: 12px; z-index: 1; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; background: var(--sand); color: var(--ink); padding: 5px 10px; border-radius: 999px; }
.card__body { display: flex; flex-direction: column; gap: 2px; }
.card__name { font-size: 1.45rem; letter-spacing: -.025em; line-height: 1.15; transition: color .3s; }
.card__link:hover .card__name { color: var(--wood); }
.card__loc { font-size: 14px; color: var(--stone); }

/* Vista de lista */
.grid.is-list { display: block; border-top: 1px solid var(--line); }
.grid.is-list .card { flex-direction: row; align-items: center; gap: 24px; border-bottom: 1px solid var(--line); position: relative; }
.grid.is-list .card__link { flex: 1; flex-direction: row; align-items: center; gap: 24px; padding: 18px 0; min-width: 0; }
.grid.is-list .card__media { width: 72px; flex: none; aspect-ratio: 1; border-radius: 999px 999px 3px 3px; }
.grid.is-list .card__n, .grid.is-list .card__badge { display: none; }
.grid.is-list .card__body { flex-direction: row; align-items: baseline; gap: 24px; flex: 1; min-width: 0; }
.grid.is-list .card__name { flex: 0 1 46%; font-size: clamp(1.3rem, 2.2vw, 1.8rem); }
.grid.is-list .card__loc { flex: 1; }
.grid.is-list .tags { justify-content: flex-end; max-width: 40%; }
.grid.is-list .card__link:hover .card__name { font-family: var(--serif); font-style: italic; }

.empty { display: flex; align-items: center; justify-content: space-between; gap: 28px 48px; flex-wrap: wrap; padding: clamp(32px, 5vw, 64px); border-radius: var(--r); background: var(--paper-2); }
.empty p { color: var(--stone); margin-top: 12px; max-width: 52ch; }

/* Página de proyecto */
.pj__wrap { padding-top: clamp(32px, 4vw, 56px); }
.crumbs { display: flex; gap: 10px; font-size: 14px; color: var(--stone); margin-bottom: 22px; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.pj__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px 32px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 48px); }
.pj__t { font-size: clamp(2.6rem, 6.6vw, 5.8rem); line-height: .98; font-weight: 400; letter-spacing: -.045em; }
.pj__loc { font-family: var(--serif); font-style: italic; font-size: clamp(1.3rem, 2.2vw, 1.9rem); color: var(--wood); }
.pj__body > * { min-width: 0; }
.pj__body { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, .75fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.pj__main { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3.4; max-height: 78svh; border-radius: var(--r); overflow: hidden; background: var(--ink-2); cursor: zoom-in; }
.pj__slide { position: absolute; inset: 0; opacity: 0; transition: opacity .6s var(--ease); }
.pj__slide.is-on { opacity: 1; }
.pj__slide img { width: 100%; height: 100%; object-fit: contain; position: relative; z-index: 1; }
.pj__slide::before { content: ""; position: absolute; inset: -40px; background: var(--bg) center / cover; filter: blur(34px) brightness(.55); }
.pj__expand { position: absolute; right: 14px; bottom: 14px; z-index: 2; width: 42px; height: 42px; border-radius: 50%; background: rgba(244, 240, 232, .9); display: grid; place-items: center; transition: transform .3s var(--ease); }
.pj__main:hover .pj__expand { transform: scale(1.1); }
.pj__thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; }
.pj__thumbs button { flex: none; width: 84px; height: 84px; border-radius: var(--r); overflow: hidden; opacity: .5; transition: opacity .3s; outline-offset: 2px; }
.pj__thumbs button.is-on, .pj__thumbs button:hover { opacity: 1; }
.pj__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pj__info { position: sticky; top: calc(var(--hdr) + 24px); display: grid; gap: 20px; }
.pj__desc { font-size: 1.08rem; color: var(--ink-3); }
.pj__facts { border-top: 1px solid var(--line); }
.pj__facts div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.pj__facts dt { color: var(--stone); font-size: 14px; }
.pj__h { font-size: 14px; font-weight: 500; color: var(--stone); margin-bottom: -8px; }
.pj__cta { display: grid; gap: 10px; margin-top: 6px; }
.pj__share { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; justify-self: start; padding: 8px 0; }
.pj__share:hover { color: var(--wood); }
.pj__pn { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: clamp(56px, 7vw, 96px); border-top: 1px solid var(--line); padding-top: 28px; }
.pn { display: flex; align-items: center; gap: 18px; }
.pn--next { justify-content: flex-end; text-align: right; }
.pn__img { width: 84px; height: 84px; flex: none; border-radius: 999px 999px 3px 3px; overflow: hidden; background: var(--paper-3); }
.pn__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.pn:hover .pn__img img { transform: scale(1.08); }
.pn small { display: block; font-size: 13px; color: var(--stone); }
.pn b { font-weight: 400; font-size: clamp(1.2rem, 2vw, 1.6rem); letter-spacing: -.02em; }
.pn:hover b { font-family: var(--serif); font-style: italic; color: var(--wood); }
.related { background: var(--paper-2); padding-block: clamp(72px, 9vw, 120px); margin-top: clamp(56px, 7vw, 96px); }
.related__head { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin-bottom: 36px; }

.lb { position: fixed; inset: 0; z-index: 160; background: rgba(15, 13, 10, .96); display: grid; place-items: center; opacity: 0; transition: opacity .4s var(--ease); }
.lb.is-open { opacity: 1; }
.lb__img { position: absolute; inset: 64px 72px 56px; }
.lb__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .45s var(--ease); }
.lb__img img.is-on { opacity: 1; }
.lb__count { position: absolute; left: 0; right: 0; bottom: 18px; text-align: center; color: rgba(244, 240, 232, .7); font-size: 14px; font-variant-numeric: tabular-nums; }
.lb__arr, .lb__close { position: absolute; width: 48px; height: 48px; border-radius: 50%; background: rgba(244, 240, 232, .92); color: var(--ink); display: grid; place-items: center; z-index: 2; transition: transform .3s var(--ease); }
.lb__arr { top: 50%; margin-top: -24px; }
.lb__arr--prev { left: 14px; }
.lb__arr--next { right: 14px; }
.lb__close { top: 14px; right: 14px; }
.lb__close:hover { transform: rotate(90deg); }
body.lb-open { overflow: hidden; }

/* El equipo */
.thead { background: var(--ink); color: var(--paper); }
.thead__grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 24px 48px; align-items: end; margin-bottom: clamp(56px, 7vw, 96px); }
.thead__t { font-size: clamp(2.8rem, 7vw, 6.2rem); line-height: .96; font-weight: 400; letter-spacing: -.045em; }
.thead__t .serif { color: var(--sand); }
.thead__d { color: rgba(244, 240, 232, .7); font-size: 1.1rem; max-width: 34ch; }
.firms { display: grid; grid-template-columns: 1fr auto 1fr; gap: clamp(16px, 3vw, 40px); align-items: stretch; }
.firm { border: 1px solid var(--line-l); border-radius: var(--r); padding: clamp(28px, 4vw, 52px); display: flex; flex-direction: column; gap: 14px; transition: border-color .5s, background-color .5s; }
.firm:hover { border-color: rgba(205, 180, 143, .5); background: rgba(244, 240, 232, .03); }
.firm__logo { height: 50px; width: auto; align-self: flex-start; margin-bottom: 24px; }
.firm__logo--s { height: 76px; margin-bottom: 10px; }
.firm h2 { font-size: 1rem; letter-spacing: .12em; font-weight: 600; color: var(--sand); }
.firm p { font-size: 1.3rem; letter-spacing: -.02em; line-height: 1.35; }
.firm .firm__more { font-size: 15.5px; letter-spacing: 0; color: rgba(244, 240, 232, .62); margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line-l); }
.firms__plus { align-self: center; font-family: var(--serif); font-style: italic; font-size: 3.4rem; color: var(--sand); line-height: 1; }
.firms:has(.firm--one) { grid-template-columns: 1fr; }
.firm--one { display: grid; grid-template-columns: auto 1fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.firm__logos { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 32px); }
.firm--one .firm__logo { margin: 0; align-self: center; }
.firm--one .firms__plus { font-size: 2.6rem; }
.firm__txt { display: flex; flex-direction: column; gap: 14px; padding-left: clamp(0px, 4vw, 64px); border-left: 1px solid var(--line-l); }

.split { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); gap: clamp(36px, 7vw, 110px); align-items: center; padding-block: clamp(84px, 11vw, 150px); }
.split--rev .split__media { order: 2; }
.split__media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r); max-height: 760px; }
.split__media img { width: 100%; height: 118%; object-fit: cover; }
.split__media figcaption { position: absolute; left: 14px; bottom: 14px; z-index: 1; background: rgba(21, 19, 15, .7); color: var(--paper); font-size: 12.5px; padding: 6px 12px; border-radius: 999px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.arch-mask { border-radius: 999px 999px 6px 6px; }
.split__copy { display: grid; gap: 26px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 12px; }
.pair div { border-top: 1px solid var(--line); padding-top: 18px; }
.pair h3 { font-size: 1.05rem; font-weight: 600; letter-spacing: -.01em; }
.pair p { color: var(--stone); margin-top: 8px; font-size: 15.5px; }
.numbers { background: var(--ink); color: var(--paper); padding-block: clamp(56px, 7vw, 96px); }

/* Contacto */
.contact { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(40px, 7vw, 110px); align-items: start; padding-top: clamp(48px, 6vw, 88px); padding-bottom: clamp(80px, 10vw, 140px); }
.contact__copy { display: grid; gap: 26px; }
.contact__list { border-top: 1px solid var(--line); }
.contact__list li { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.contact__list span { font-size: 14px; color: var(--stone); }
.contact__list a { font-size: 1.1rem; justify-self: start; overflow-wrap: anywhere; border-bottom: 1px solid transparent; transition: border-color .3s; }
.contact__list a:hover { border-color: currentColor; }
.next { background: var(--paper-2); border-radius: var(--r); padding: clamp(22px, 3vw, 32px); }
.next__t { font-size: 1rem; font-weight: 600; margin-bottom: 14px; }
.next__list { counter-reset: n; display: grid; gap: 12px; }
.next__list li { counter-increment: n; display: grid; grid-template-columns: 34px 1fr; gap: 2px 8px; }
.next__list li::before { content: counter(n); grid-row: span 2; font-family: var(--serif); font-style: italic; font-size: 1.7rem; line-height: 1; color: var(--wood); }
.next__list span { color: var(--stone); font-size: 15px; }
.form { background: #fffdf9; border: 1px solid var(--line); border-radius: 6px; padding: clamp(22px, 4vw, 44px); display: grid; gap: 20px; position: relative; position: sticky; top: calc(var(--hdr) + 24px); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field > span, .field legend { font-size: 14px; font-weight: 500; }
.field legend { margin-bottom: 10px; padding: 0; }
.field small { color: var(--stone); font-weight: 400; }
.field input, .field textarea { width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid rgba(21, 19, 15, .28); padding: 10px 0 12px; border-radius: 0; transition: border-color .3s; -webkit-appearance: none; appearance: none; }
.field textarea { resize: vertical; min-height: 110px; border: 1px solid rgba(21, 19, 15, .2); padding: 12px 14px; border-radius: var(--r); }
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--wood); }
.field em { font-style: normal; font-size: 13px; color: #a3361f; }
.field em:empty { display: none; }
.field.is-bad input { border-color: #a3361f; }
.pick { display: flex; flex-wrap: wrap; gap: 8px; }
.pick label { position: relative; }
.pick input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pick span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 15px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; transition: all .25s; cursor: pointer; }
.pick label:hover span { border-color: var(--ink); }
.pick input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pick input:focus-visible + span { outline: 2px solid var(--wood); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__ctx { font-size: 14.5px; background: var(--paper-2); padding: 12px 16px; border-radius: var(--r); display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.form__ctx button { font-size: 13px; color: var(--stone); text-decoration: underline; }
.form__note { font-size: 13px; color: var(--stone); text-align: center; }
.form button[type="submit"][disabled] { opacity: .6; pointer-events: none; }
.form__ok { position: absolute; inset: 0; background: #fffdf9; border-radius: 6px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 14px; padding: clamp(24px, 4vw, 48px); animation: fade .6s var(--ease); }
.form__arch { width: 58px; height: 60px; color: var(--wood); }
.form__ok-t { font-size: clamp(1.8rem, 3vw, 2.4rem); letter-spacing: -.03em; line-height: 1.1; }
@keyframes fade { from { opacity: 0; transform: translateY(10px); } }

/* 404 */
.nf { background: var(--ink); color: var(--paper); min-height: 100svh; display: grid; align-items: center; padding-block: calc(var(--hdr) + 40px) 80px; }
.nf__arch { width: 80px; height: 83px; color: var(--sand); margin-bottom: 28px; }
.nf__t { font-size: clamp(2.6rem, 7vw, 5.6rem); line-height: 1; letter-spacing: -.04em; font-weight: 400; max-width: 14ch; }
.nf__t .serif { color: var(--sand-l); }
.nf p { color: rgba(244, 240, 232, .7); margin-top: 20px; }
.nf__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ── Pie ── */
.foot { background: var(--ink); color: var(--paper); padding: clamp(64px, 9vw, 110px) 0 calc(24px + env(safe-area-inset-bottom)); }
.foot__cta { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding-bottom: clamp(48px, 6vw, 72px); border-bottom: 1px solid var(--line-l); }
.foot__q { font-family: var(--serif); font-style: italic; font-size: clamp(2.2rem, 5.4vw, 4.6rem); line-height: 1; letter-spacing: -.02em; color: var(--sand-l); max-width: 16ch; }
.foot__cols { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1.2fr; gap: 32px; padding-block: clamp(40px, 5vw, 64px); }
.foot__brand { display: grid; gap: 14px; align-content: start; font-weight: 700; font-size: 1.4rem; letter-spacing: -.02em; }
.foot__brand small { font-weight: 400; font-size: 14px; color: rgba(244, 240, 232, .55); letter-spacing: 0; }
.foot__arch { width: 46px; height: 48px; color: var(--sand); }
.foot__col { display: grid; gap: 10px; align-content: start; font-size: 15px; }
.foot__col h2 { font-size: 13px; font-weight: 500; color: rgba(244, 240, 232, .5); margin-bottom: 4px; }
.foot__col a, .foot__col p { color: rgba(244, 240, 232, .85); overflow-wrap: anywhere; }
.foot__col a:hover { color: var(--sand); }
.foot__bot { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; font-size: 13.5px; color: rgba(244, 240, 232, .55); padding-top: 22px; border-top: 1px solid var(--line-l); }
.foot__links { display: flex; gap: 22px; align-items: center; }
.foot__links a, .foot__links button { display: inline-flex; gap: 8px; align-items: center; color: var(--paper); }
.foot__links .i { width: 16px; height: 16px; }
.foot__links a:hover, .foot__links button:hover { color: var(--sand); }
.foot__copy { font-size: 12.5px; color: rgba(244, 240, 232, .4); margin-top: 18px; }

.wa { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 80; display: flex; align-items: center; gap: 10px; height: 54px; padding: 0 20px 0 16px; border-radius: 999px; background: #1f6f4a; color: #fff; font-size: 14.5px; font-weight: 500; box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .45); transform: translateY(140%); transition: transform .6s var(--ease), background-color .3s; }
.wa svg { width: 24px; height: 24px; }
.wa.is-on { transform: none; }
.wa:hover { background: #185a3c; }

.toast { position: fixed; left: 50%; bottom: 28px; z-index: 200; transform: translate(-50%, 140%); visibility: hidden; background: var(--ink); color: var(--paper); padding: 13px 20px; border-radius: 999px; font-size: 14px; transition: transform .5s var(--ease); pointer-events: none; max-width: calc(100% - 32px); text-align: center; }
.toast.is-on { transform: translate(-50%, 0); visibility: visible; }

/* ── Transición entre páginas ── */
.curtain { position: fixed; inset: 0; z-index: 250; background: var(--ink); display: grid; place-items: center; pointer-events: none; transform: translateY(101%); }
.curtain__logos { display: flex; align-items: center; gap: 20px; opacity: 0; }
.curtain__larq { height: 34px; width: auto; }
.curtain__logos i { font-family: var(--serif); font-style: italic; font-size: 1.6rem; color: var(--sand); }
.curtain__sauces { height: 54px; width: auto; }
.curtain.is-in { transform: none; transition: transform .55s var(--ease-io); }
.curtain.is-in .curtain__logos { opacity: 1; transition: opacity .3s .2s; }
.arriving .curtain { transform: none; }
.arriving .curtain__logos { opacity: 1; }
.curtain.is-out { transform: translateY(-101%); transition: transform .7s var(--ease-io); }
.curtain.is-out .curtain__logos { opacity: 0; transition: opacity .2s; }

/* ── Movimiento (solo con JavaScript) ── */
.js [data-rise] { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: .25s; }
.js [data-rise].in { opacity: 1; transform: none; }
.js [data-split] .l { overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.js [data-split] .l > .i2 { display: block; transform: translateY(108%); transition: transform 1.15s var(--ease); }
.js [data-split] .l:nth-child(2) > .i2 { transition-delay: .09s; }
.js [data-split].in .l > .i2 { transform: none; }
.js [data-curtain] { clip-path: inset(0 0 100% 0 round 999px 999px 6px 6px); transition: clip-path 1.3s var(--ease-io); }
.js .split__media:not(.arch-mask)[data-curtain] { clip-path: inset(0 0 100% 0); }
.js [data-curtain].in { clip-path: inset(0 round 999px 999px 6px 6px); }
.js .split__media:not(.arch-mask)[data-curtain].in { clip-path: inset(0); }
.js .stage__fig { opacity: 0; transition: opacity 1.2s var(--ease), clip-path 1.4s var(--ease-io); clip-path: inset(100% 0 0 0); }
.js .hero.in .stage__fig { opacity: 1; clip-path: inset(0); }
.js .stage__cap { opacity: 0; transition: opacity 1s var(--ease) .8s; }
.js .hero.in .stage__cap { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js [data-rise], .js .stage__fig, .js .stage__cap { opacity: 1; transform: none; clip-path: none; }
  .js [data-split] .l > .i2 { transform: none; }
  .js [data-curtain] { clip-path: none !important; }
  .ticker__track { animation: none; flex-wrap: wrap; width: auto; gap: 10px 28px; padding-inline: var(--gut); }
  .ticker__track a[aria-hidden] { display: none; }
  .curtain { display: none; }
}

/* ── Responsive ── */
@media (max-width: 1100px) {
  .grid, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .stats > div:nth-child(n+3) { border-top: 1px solid var(--line-l); }
  .svx { grid-template-columns: 1fr; }
  .svx__nav { position: sticky; top: 0; z-index: 30; background: rgba(244, 240, 232, .94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); margin-inline: calc(var(--gut) * -1); padding: 10px var(--gut); display: flex; align-items: center; border-bottom: 1px solid var(--line); transition: top .5s var(--ease); }
  body.hdr-shown .svx__nav { top: var(--hdr); }
  .svx__nav ul { display: flex; border: 0; overflow-x: auto; scrollbar-width: none; gap: 4px; flex: 1; min-width: 0; }
  .svx__nav ul::-webkit-scrollbar { display: none; }
  .svx__nav ul a { white-space: nowrap; border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; margin: 0; font-size: 14px; }
  .svx__nav ul a.is-here { background: var(--ink); color: var(--paper); border-color: var(--ink); }
  .svx__nav .btn { display: none; }
  .foot__cols { grid-template-columns: 1fr 1fr; }
  .types__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  :root { --hdr: 66px; }
  .nav, .hdr__share { display: none; }
  .burger { display: block; }
  .hdr__act { margin-left: auto; gap: 10px; }
  .hero__grid { grid-template-columns: 1fr; gap: 28px; }
  .stage { height: auto; min-height: 0; aspect-ratio: 1 / 1.02; max-height: 70svh; margin-inline: auto; width: min(100%, 560px); }
  .svcs__head, .types__head, .process__head, .clients__grid, .phead--row, .thead__grid, .split, .contact, .pj__body, .rail__head { grid-template-columns: 1fr; }
  .split--rev .split__media { order: 0; }
  .split__media { aspect-ratio: 5 / 4; }
  .svx__sec { grid-template-columns: 1fr; }
  .firms { grid-template-columns: 1fr; }
  .firms__plus { justify-self: center; font-size: 2.6rem; margin: -6px 0; }
  .firm--one { grid-template-columns: 1fr; }
  .firm__txt { padding-left: 0; border-left: 0; padding-top: 24px; border-top: 1px solid var(--line-l); }
  .steps { grid-template-columns: 1fr; }
  .steps::before, .steps::after { left: 4px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .steps::after { transform: scaleY(0); transform-origin: top; }
  .steps.in::after { transform: scaleY(1); }
  .step { padding: 0 0 40px 40px; }
  .step::before { top: 6px; }
  .step__n { font-size: 2.6rem; margin-bottom: 10px; }
  .svc-row { grid-template-columns: minmax(0, 1fr) 24px; gap: 6px 16px; }
  .svc-row__d { grid-column: 1; }
  .svc-row__n { grid-column: 1; text-align: left; }
  .svc-row .i { grid-row: 1 / span 3; grid-column: 2; }
  .pj__info, .form { position: static; }
  .pj__main { aspect-ratio: 4 / 3.6; }
  .grid.is-list .tags { display: none; }
  .grid.is-list .card__body { flex-direction: column; gap: 2px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hdr .btn--sm { display: none; }
  .brand { font-size: 16px; }
  .grid { grid-template-columns: 1fr; gap: 40px; }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; }
  .grid--4 .card__name { font-size: 1.1rem; }
  .grid--4 .tags { display: none; }
  .types__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
  .type__t { font-size: 1.1rem; }
  .stats { grid-template-columns: 1fr; }
  .stats > div, .stats > div + div { padding: 22px 0 2px; border-left: 0; }
  .stats > div + div { border-top: 1px solid var(--line-l); }
  .hero__title { font-size: clamp(2.9rem, 14vw, 4.2rem); }
  .hero__cta .btn, .hero__cta .btn-line { flex: 1 1 100%; }
  .stage__fig--arch, .stage__cap { width: 78%; }
  .stage__count { display: none; }
  .clients__list { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .contact__list li, .pj__facts div { grid-template-columns: 1fr; gap: 2px; }
  .pair { grid-template-columns: 1fr; }
  .minis { gap: 14px 10px; }
  .workbar__in { gap: 10px; padding-right: 0; }
  .filters { flex: 1; min-width: 0; flex-wrap: nowrap; overflow-x: auto; padding: 2px 0 4px; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .filters::-webkit-scrollbar { display: none; }
  .views { margin-right: var(--gut); }
  .pj__pn { grid-template-columns: 1fr; }
  .pn--next { justify-content: space-between; }
  .pn__img { width: 64px; height: 64px; }
  .foot__cols { grid-template-columns: 1fr; }
  .foot__links { flex-direction: column; align-items: flex-start; gap: 12px; }
  .wa { width: 54px; padding: 0; justify-content: center; }
  .wa span { display: none; }
  .lb__img { inset: 56px 8px 64px; }
  .lb__arr { top: auto; bottom: 8px; margin: 0; width: 44px; height: 44px; }
  .lb__arr--prev { left: 12px; }
  .lb__arr--next { right: 12px; }
  .peek { display: none; }
}

/* ── Guardar como PDF / imprimir ── */
@media print {
  @page { margin: 14mm; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .hdr, .progress, .menu, .ticker, .stage__ctl, .stage__bar, .hero__cta, .form, .wa, .lb, .toast, .curtain, .peek, .foot__links, .views, .filters, .card__n, .skip, .pj__cta, .pj__thumbs, .pj__expand, .svx__nav, .rail__progress, .rail__end, .burger, .foot__cta { display: none !important; }
  .js [data-rise], .js .stage__fig, .js .stage__cap { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .js [data-split] .l > .i2 { transform: none !important; }
  .js [data-curtain] { clip-path: none !important; }
  .parallax { transform: none !important; height: 100% !important; }
  .hero, .duo, .thead, .numbers, .foot, .nf { background: #fff !important; color: #000 !important; min-height: 0; }
  .hero::before { display: none; }
  .hero__title .serif, .stage__name b, .thead__t .serif, .duo .h2 .serif, .firm h2 { color: #6e4b2f !important; }
  .hero__text, .stage__name span, .thead__d, .firm .firm__more, .stats dt { color: #333 !important; }
  .firm__logo { filter: invert(1); }
  .rail__track { flex-wrap: wrap; width: auto; transform: none !important; padding: 0; }
  .rail.is-pinned .rail__sticky { position: static; height: auto; }
  .rail { height: auto !important; }
  .card--rail { width: 30%; }
  .grid, .grid--4 { grid-template-columns: repeat(3, 1fr); gap: 6mm; }
  .card, .svx__sec, .step, .stats { break-inside: avoid; }
  .card[hidden] { display: flex !important; }
  .empty { display: none !important; }
}

/* ══════════ ENCABEZADOS CON FONDO ══════════ */
.band { position: relative; isolation: isolate; overflow: hidden; background: var(--ink); color: var(--paper); padding-top: calc(var(--hdr) + clamp(56px, 9vw, 130px)); padding-bottom: clamp(56px, 8vw, 110px); }
.band--short { padding-bottom: clamp(48px, 6vw, 80px); }
.band__bg { position: absolute; inset: 0; z-index: -2; }
.band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(21, 19, 15, .96) 22%, rgba(21, 19, 15, .7) 58%, rgba(21, 19, 15, .45)), linear-gradient(0deg, rgba(21, 19, 15, .85), transparent 45%); }
.band__in { position: relative; display: grid; gap: 22px; }
.band__in--row { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: end; gap: 24px 48px; }
.band .phead__t .serif, .band .thead__t .serif { color: var(--sand); }
.band .phead__d { color: rgba(244, 240, 232, .78); }
.mosaic { position: absolute; inset: -18% -10%; display: grid; align-content: center; gap: 14px; transform: rotate(-6deg); opacity: .68; }
.mosaic__row { display: flex; gap: 14px; width: max-content; animation: marquee 120s linear infinite; }
.mosaic__row:nth-child(2) { animation-direction: reverse; animation-duration: 150s; margin-left: -120px; }
.mosaic__row:nth-child(3) { animation-duration: 100s; }
.mosaic img { height: clamp(130px, 15vw, 230px); width: clamp(104px, 12vw, 184px); object-fit: cover; border-radius: 4px; filter: saturate(.75); }
.mosaic__row:nth-child(2) img { border-radius: 999px 999px 4px 4px; }
.band__bg--photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); animation: kenburns 18s ease-out forwards; filter: saturate(.9); }
@keyframes kenburns { to { transform: scale(1); } }
.band--pj { padding-top: calc(var(--hdr) + clamp(80px, 16vw, 240px)); padding-bottom: clamp(36px, 5vw, 64px); }
.band--pj::after { background: linear-gradient(0deg, rgba(21, 19, 15, .92) 8%, rgba(21, 19, 15, .35) 60%, rgba(21, 19, 15, .55)); }
.band--pj .crumbs { color: rgba(244, 240, 232, .7); }
.band--pj .crumbs a:hover { color: var(--paper); }
.band--pj .pj__head { margin-bottom: 0; }
.band--pj .pj__loc { color: var(--sand); }
.thead.band .firm { background: rgba(21, 19, 15, .55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.svx--after-band { padding-top: clamp(48px, 6vw, 88px); }
@media (min-width: 1101px) { .svx--after-band .svx__nav { top: calc(var(--hdr) + 24px); } }

/* ══════════ PROYECTOS DESTACADOS (cajón) ══════════ */
.crate-sec { position: relative; overflow: hidden; background: var(--ink); color: var(--paper); padding-block: clamp(72px, 8vw, 120px) clamp(64px, 8vw, 100px); }
.crate-sec__glow { position: absolute; inset: 25% 15% auto; height: 55%; background: radial-gradient(closest-side, rgba(205, 180, 143, .28), transparent); filter: blur(40px); pointer-events: none; }
.crate-sec__head { position: relative; display: flex; justify-content: space-between; align-items: end; gap: 16px 40px; flex-wrap: wrap; margin-bottom: clamp(24px, 4vw, 48px); }
.crate-sec__head p { color: rgba(244, 240, 232, .62); margin-top: 10px; }
.crate-sec .link { color: var(--paper); }
.crate { position: relative; --cw: clamp(210px, 23vw, 330px); }
.crate__stage { position: relative; height: calc(var(--cw) * 1.25 + 60px); perspective: 1500px; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.crate__item { position: absolute; left: 50%; top: 20px; width: var(--cw); aspect-ratio: 4 / 5; margin-left: calc(var(--cw) / -2); transition: transform .75s cubic-bezier(.2, .8, .2, 1), opacity .5s, filter .5s; transform-style: preserve-3d; will-change: transform; -webkit-user-drag: none; }
.crate__front { position: relative; z-index: 2; display: block; width: 100%; height: 100%; border-radius: 4px; overflow: hidden; box-shadow: 0 30px 60px -10px rgba(0, 0, 0, .75); background: var(--ink-2); }
.crate__front img, .crate__back img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.crate__back { position: absolute; z-index: 1; top: 7%; bottom: 7%; left: 6%; width: 88%; border-radius: 999px 999px 4px 4px; overflow: hidden; transition: transform .85s cubic-bezier(.2, .8, .2, 1) .1s; box-shadow: 0 20px 40px -10px rgba(0, 0, 0, .7); }
.crate__item.is-active .crate__back { transform: translateX(52%) rotate(6deg); }
.crate__cap { position: relative; display: flex; align-items: center; justify-content: center; gap: clamp(14px, 4vw, 40px); margin-top: 8px; text-align: center; }
.crate__info { display: grid; justify-items: center; gap: 8px; min-width: 0; max-width: 560px; }
.crate__info.swap { animation: fade .45s var(--ease); }
.crate__loc { font-size: 14px; color: var(--sand); }
.crate__name { font-family: var(--serif); font-style: italic; font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1; letter-spacing: -.02em; }
.crate__meta { font-size: 13px; color: rgba(244, 240, 232, .55); font-variant-numeric: tabular-nums; }
.crate__meta b { color: var(--paper); font-weight: 500; }
.crate__btn { flex: none; width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(244, 240, 232, .3); display: grid; place-items: center; transition: background-color .3s, border-color .3s, transform .3s var(--ease); }
.crate__btn:hover { background: rgba(244, 240, 232, .1); border-color: var(--sand); }
.crate__btn:active { transform: scale(.94); }
.crate__go { display: flex; justify-content: center; margin-top: 26px; }
.tags--light li { color: rgba(244, 240, 232, .85); border-color: var(--line-l); }
html:not(.js) .crate__stage { height: auto; display: flex; overflow-x: auto; gap: 16px; padding: 0 var(--gut) 20px; perspective: none; }
html:not(.js) .crate__item { position: relative; left: auto; top: 0; margin: 0; flex: 0 0 240px; }
html:not(.js) .crate__back { display: none; }
@media (prefers-reduced-motion: reduce) {
  .mosaic__row, .band__bg--photo img { animation: none; }
}
@media (max-width: 960px) {
  .band__in--row { grid-template-columns: 1fr; }
  .crate { --cw: clamp(190px, 56vw, 300px); }
  .crate__item.is-active .crate__back { transform: translateX(30%) rotate(5deg); }
}
@media (max-width: 640px) {
  .crate__btn { width: 44px; height: 44px; }
  .crate__cap { gap: 10px; }
  .crate__info .tags { display: none; }
  .mosaic { opacity: .45; }
}
@media print {
  .band__bg, .crate__back, .crate__cap button { display: none !important; }
  .band, .crate-sec { background: #fff !important; color: #000 !important; padding-top: 10mm; }
  .band::after { display: none; }
  .crate__stage { height: auto !important; display: flex; flex-wrap: wrap; gap: 4mm; perspective: none; }
  .crate__item { position: relative !important; left: auto !important; margin: 0 !important; transform: none !important; width: 30% !important; opacity: 1 !important; filter: none !important; }
}
