/* =========================================================
   ARCOCINA — rediseño 2026 · «Nogal nocturno»
   Nogal oscuro + crema + cobre · Cinzel / Josefin Sans
   ========================================================= */

/* Fuentes alojadas en local (subconjunto latino: cubre ñ, tildes, ¿ y ¡) */
@font-face {
  font-family: "Cinzel"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/cinzel-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Josefin Sans"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url("../fonts/josefin-sans-latin.woff2") format("woff2");
}

:root {
  color-scheme: dark;

  /* color */
  --bg: #12100D;
  --bg-2: #1D1915;
  --surface: #1A1611;
  --ink: #EDE5D8;
  --ink-2: #D2C7B7;
  --muted: #A89C8D;
  --line: rgba(237, 229, 216, .13);
  --brass: #C9894B;
  --brass-light: #DDA56C;
  --on-accent: #12100D;
  --dark: #1B1713;
  --dark-2: #241E19;
  --on-dark: #EDE5D8;
  --on-dark-muted: #A89C8D;
  --line-dark: rgba(237, 229, 216, .14);
  --error-dark: #FFB4AB;

  /* tipo */
  --serif: "Cinzel", "Trajan Pro", Georgia, serif;
  --sans: "Josefin Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-display: clamp(2.2rem, 5.4vw, 5.6rem);
  --fs-h2: clamp(1.9rem, 4.2vw, 3.9rem);
  --fs-h3: clamp(1.15rem, 1.7vw, 1.45rem);
  --fs-lead: clamp(1.08rem, 1.3vw, 1.22rem);

  /* espacio (densidad baja) */
  --gutter: clamp(1rem, 4vw, 3.5rem);
  --section: clamp(5.5rem, 12vw, 11rem);
  --radius: 0;

  /* movimiento */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --t-fast: .2s;
  --t-med: .45s;

  /* capas */
  --z-nav: 40;
  --z-menu: 39;
  --z-progress: 50;
  --z-loader: 100;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  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; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }
em { font-style: italic; }
/* Cinzel no tiene cursiva: el énfasis va en cobre */
h1 em, h2 em, .hero__title em { color: var(--brass); font-style: normal; }
svg { width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 2px; }

.skip {
  position: fixed; top: .75rem; left: .75rem; z-index: 200;
  background: var(--brass); color: var(--on-accent); padding: .75rem 1rem;
  transform: translateY(-200%); transition: transform var(--t-fast);
}
.skip:focus { transform: none; }

/* ---------- utilidades ---------- */
.label {
  display: inline-flex; align-items: center; gap: .75rem;
  font-size: .75rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted);
}
.label::before { content: ""; width: 2rem; height: 1px; background: currentColor; }
.label--light { color: var(--on-dark-muted); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .8rem; font-weight: 600; letter-spacing: .08em; color: var(--muted);
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brass); box-shadow: 0 0 0 4px rgba(201, 137, 75, .2); }

.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .7rem;
  min-height: 52px; padding: .15rem 1.7rem 0;
  font-size: .82rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  border-radius: 0; overflow: hidden; isolation: isolate;
  transition: color var(--t-med) var(--ease-out), transform var(--t-fast);
  touch-action: manipulation;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  border-radius: inherit; transform: translateY(101%);
  transition: transform var(--t-med) var(--ease-out);
}
.btn:hover::before { transform: none; }
.btn:active { transform: scale(.97); }
.btn svg { transition: transform var(--t-med) var(--ease-out); }
.btn:hover svg { transform: translateX(4px); }
.btn--small { min-height: 44px; padding: .15rem 1.2rem 0; font-size: .74rem; }
/* contorno cobre que se rellena al pasar el cursor */
.btn--dark { color: var(--brass); box-shadow: inset 0 0 0 1px var(--brass); }
.btn--dark::before { background: var(--brass); }
.btn--dark:hover { color: var(--on-accent); }
.btn--brass { background: var(--brass); color: var(--on-accent); }
.btn--brass::before { background: var(--ink); }
.btn--light { background: var(--ink); color: var(--on-accent); }
.btn--light::before { background: var(--brass); }
.btn[disabled] { opacity: .5; cursor: progress; }

.link-arrow {
  position: relative; display: inline-flex; align-items: center; min-height: 44px;
  font-weight: 600; font-size: .95rem;
}
.link-arrow::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 10px; height: 1px;
  background: currentColor; transform-origin: right; transition: transform var(--t-med) var(--ease-out);
}
.link-arrow:hover::after { transform: scaleX(0); }

/* ---------- loader ---------- */
.loader { display: none; }
.js .loader {
  position: fixed; inset: 0; z-index: var(--z-loader);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: var(--gutter); background: var(--bg); color: var(--on-dark);
  animation: loaderFailsafe .01s 4s forwards;
}
@keyframes loaderFailsafe { to { visibility: hidden; } }
.loader__brand { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; }
.loader__word { font-family: var(--serif); font-size: clamp(2.2rem, 8vw, 6rem); line-height: 1; letter-spacing: .08em; }
.loader__count { font-family: var(--serif); font-size: clamp(1.25rem, 3vw, 2rem); color: var(--brass-light); font-variant-numeric: tabular-nums; }
.loader__bar { height: 1px; margin-top: 1.5rem; background: var(--line-dark); }
.loader__bar span { display: block; height: 100%; background: var(--brass-light); transform: scaleX(0); transform-origin: left; }

.progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: var(--z-progress); pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--brass); transform: scaleX(0); transform-origin: left; }

/* ---------- navegación ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: var(--z-nav);
  transition: transform var(--t-med) var(--ease-out), background var(--t-med), box-shadow var(--t-med);
}
.nav.is-solid { background: rgba(18, 16, 13, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__inner {
  display: flex; align-items: center; gap: 2rem;
  max-width: 1600px; margin: 0 auto; padding: 1rem var(--gutter);
}
.nav__logo { font-family: var(--serif); font-size: 1.25rem; letter-spacing: .2em; font-weight: 500; margin-right: auto; }
.nav__logo em { color: var(--brass); font-style: normal; }
.nav__links { display: flex; gap: 2.2rem; }
.nav__links a { position: relative; font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; padding: .7rem 0 .5rem; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .35rem; height: 1px; background: var(--brass);
  transform: scaleX(0); transform-origin: left; transition: transform var(--t-med) var(--ease-out);
}
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); }
.nav__toggle { display: none; width: 48px; height: 48px; position: relative; }
.nav__toggle span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--ink); transition: transform var(--t-med) var(--ease-out); }
.nav__toggle span:first-child { top: 19px; }
.nav__toggle span:last-child { top: 28px; }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: var(--z-menu);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 6.5rem var(--gutter) 2rem; background: var(--bg);
}
.menu[hidden] { display: none; }
.menu nav { display: flex; flex-direction: column; }
.menu nav a {
  display: flex; align-items: baseline; gap: 1rem; padding: .6rem 0;
  font-family: var(--serif); font-size: clamp(2rem, 9vw, 3rem); line-height: 1.2;
  border-bottom: 1px solid var(--line);
}
.menu nav small { font-family: var(--sans); font-size: .75rem; color: var(--muted); }
.menu__foot { display: flex; flex-direction: column; gap: .25rem; color: var(--muted); }
.menu__foot a { min-height: 44px; display: flex; align-items: center; }

/* ---------- hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end; gap: clamp(2rem, 5vh, 3.5rem);
  min-height: 100svh; padding: 8rem var(--gutter) 1.75rem;
}
.hero__slides { position: absolute; inset: 0; z-index: -2; background: var(--bg-2); }
.hero__slides img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; will-change: transform, opacity;
}
.hero__slides img.is-active { opacity: 1; }
/* velo para que el texto crema se lea sobre fotos claras */
.hero__veil {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(18, 16, 13, .5) 0%, rgba(18, 16, 13, .38) 28%, rgba(18, 16, 13, .78) 60%, var(--bg) 100%),
    linear-gradient(90deg, rgba(18, 16, 13, .55) 0%, transparent 70%);
}
.hero__copy { display: flex; flex-direction: column; gap: 1.75rem; max-width: 1600px; width: 100%; margin: 0 auto; }
.hero__title {
  font-family: var(--serif); font-size: clamp(2.3rem, 7.4vw, 9rem); line-height: 1.02; letter-spacing: .01em;
}
.line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.line > span { display: block; }
[data-chars] .word { display: inline-block; white-space: nowrap; }
[data-chars] .char { display: inline-block; transform-origin: 50% 100%; }
.hero__row { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem 4rem; flex-wrap: wrap; }
.hero__lead { max-width: 32rem; font-size: var(--fs-lead); color: var(--ink-2); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2rem; }

.hero__bottom {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; align-items: center; gap: 1.5rem 3rem;
  max-width: 1600px; width: 100%; margin: 0 auto; padding-top: 1.25rem; border-top: 1px solid var(--line);
}
.slider-ui { display: flex; align-items: center; gap: 1rem; min-width: 0; }
.slider-ui__count { font-family: var(--serif); font-size: .95rem; color: var(--brass); font-variant-numeric: tabular-nums; white-space: nowrap; }
.slider-ui__bar { flex: 0 0 64px; height: 1px; background: var(--line); }
.slider-ui__bar span { display: block; height: 100%; background: var(--brass); transform: scaleX(0); transform-origin: left; }
.slider-ui__cap { font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slider-ui__toggle { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; margin-left: auto; color: var(--muted); border: 1px solid var(--line); border-radius: 50%; transition: color var(--t-fast), border-color var(--t-fast); }
.slider-ui__toggle:hover { color: var(--brass); border-color: var(--brass); }
.slider-ui__toggle svg { width: 16px; height: 16px; }
.slider-ui__toggle .i-play, .slider-ui__toggle[aria-pressed="true"] .i-pause { display: none; }
.slider-ui__toggle[aria-pressed="true"] .i-play { display: block; }

.scroll-cue { position: relative; display: block; width: 26px; height: 44px; border: 1px solid var(--line); border-radius: 14px; }
.scroll-cue span { position: absolute; left: 50%; top: 9px; width: 2px; height: 8px; margin-left: -1px; border-radius: 2px; background: var(--brass); animation: cue 1.8s var(--ease-in-out) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

.badge {
  position: absolute; right: var(--gutter); top: 7.5rem; width: 128px; height: 128px;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--brass); color: var(--on-accent);
}
.badge svg { position: absolute; inset: 0; width: 100%; height: 100%; stroke: none; fill: currentColor; animation: spin 18s linear infinite; }
.badge text { font-size: 10.5px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; font-family: var(--sans); }
.badge__core { font-family: var(--serif); font-size: 1.6rem; }
@keyframes spin { to { transform: rotate(360deg); } }

.hero__facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 2.5rem; margin: 0; }
.hero__facts dt { font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.hero__facts dd { margin: .2rem 0 0; font-family: var(--serif); font-size: clamp(1.05rem, 1.5vw, 1.35rem); }

/* ---------- marquee ---------- */
.marquee {
  overflow: hidden; padding: clamp(1.4rem, 3vw, 2.4rem) 0;
  border-block: 1px solid var(--line); background: var(--surface);
}
.marquee__track { display: flex; width: max-content; }
.marquee__track span {
  display: flex; align-items: center; gap: 2.2rem; padding-right: 2.2rem; white-space: nowrap;
  font-family: var(--serif); font-size: clamp(1.7rem, 4vw, 3.6rem); letter-spacing: .06em; line-height: 1;
}
.marquee__track i { font-style: normal; font-size: .4em; color: var(--brass); }

/* ---------- manifiesto ---------- */
.manifesto { max-width: 1280px; margin: 0 auto; padding: var(--section) var(--gutter); }
.manifesto__text {
  margin-top: 2.5rem;
  font-family: var(--serif); font-size: clamp(1.35rem, 3vw, 2.7rem); line-height: 1.35; letter-spacing: .01em;
  text-wrap: pretty;
}
.manifesto__text .word { display: inline; }

/* ---------- cabecera de sección ---------- */
.section-head { display: flex; flex-direction: column; gap: 1.5rem; max-width: 1600px; margin: 0 auto 4rem; padding: 0 var(--gutter); }
.section-head h2 { font-family: var(--serif); font-size: var(--fs-h2); line-height: 1.1; max-width: 18ch; text-wrap: balance; }
.section-head--row { flex-direction: row; justify-content: space-between; align-items: flex-end; gap: 2rem; }
.section-head--row > div { display: flex; flex-direction: column; gap: 1.5rem; }
.section-head__aside { max-width: 22rem; color: var(--muted); }

[data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
[data-split] .w > span { display: inline-block; }

/* ---------- servicios ---------- */
.services { position: relative; padding-bottom: var(--section); }
.svc-list { list-style: none; margin: 0 auto; padding: 0 var(--gutter); max-width: 1600px; border-top: 1px solid var(--line); }
.svc {
  position: relative; display: grid; grid-template-columns: 5rem minmax(0, 1fr) 3rem; align-items: center; gap: 1.5rem;
  padding: clamp(1.8rem, 3.5vw, 2.8rem) 0; border-bottom: 1px solid var(--line);
  transition: padding var(--t-med) var(--ease-out);
}
.svc::before {
  content: ""; position: absolute; inset: 0 calc(var(--gutter) * -1); z-index: -1;
  background: var(--surface); transform: scaleY(0); transform-origin: bottom;
  transition: transform var(--t-med) var(--ease-out);
}
.svc__num { font-family: var(--serif); font-size: 1rem; color: var(--brass); }
.svc__body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; align-items: center; }
.svc h3 { font-family: var(--serif); font-size: clamp(1.4rem, 2.6vw, 2.3rem); line-height: 1.15; transition: transform var(--t-med) var(--ease-out); }
.svc p { color: var(--muted); max-width: 34rem; }
.svc__thumb { display: none; }
.svc__arrow { width: 2rem; height: 2rem; justify-self: end; color: var(--muted); transition: transform var(--t-med) var(--ease-out), color var(--t-med); }
@media (hover: hover) {
  .svc:hover::before { transform: scaleY(1); }
  .svc:hover h3 { transform: translateX(.6rem); }
  .svc:hover .svc__arrow { transform: rotate(45deg); color: var(--brass); }
}
.svc-preview {
  position: fixed; left: 0; top: 0; z-index: 5; width: 300px; aspect-ratio: 4 / 5;
  pointer-events: none; overflow: hidden; border-radius: var(--radius);
  opacity: 0; transform: translate(-50%, -50%) scale(.6);
}
.svc-preview img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- proceso ---------- */
.process { background: var(--dark); color: var(--on-dark); }
.process__pin { padding: var(--section) var(--gutter); max-width: 1600px; margin: 0 auto; }
.process__head { display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 4rem; }
.process__head h2 { font-family: var(--serif); font-size: var(--fs-h2); line-height: 1.1; max-width: 14ch; }
.process__head h2 em { color: var(--brass-light); }
.process__bar { display: none; height: 1px; background: var(--line-dark); max-width: 22rem; }
.process__bar span { display: block; height: 100%; background: var(--brass-light); transform: scaleX(0); transform-origin: left; }
.process__track { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.step {
  display: flex; flex-direction: column; gap: 1rem;
  padding: 2rem; border: 1px solid var(--line-dark); border-radius: var(--radius); background: var(--dark-2);
}
.step figure { margin: -2rem -2rem 1rem; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; }
.step figure img { width: 100%; height: 100%; object-fit: cover; }
.step__num { font-family: var(--serif); font-size: clamp(2.6rem, 5vw, 4.5rem); line-height: 1; color: var(--brass-light); }
.step h3 { font-family: var(--serif); font-size: var(--fs-h3); }
.step p { color: var(--on-dark-muted); }

.process.is-horizontal { overflow: hidden; }
.process.is-horizontal .process__pin { max-width: none; height: 100svh; display: flex; align-items: center; gap: 5vw; padding-block: 0; }
.process.is-horizontal .process__head {
  position: relative; z-index: 2; align-self: stretch; justify-content: center;
  flex: 0 0 calc(min(30vw, 440px) + var(--gutter)); margin: 0 0 0 calc(var(--gutter) * -1); padding-left: var(--gutter);
  background: var(--dark); box-shadow: 4vw 0 3vw -1vw var(--dark);
}
.process.is-horizontal .process__bar { display: block; }
.process.is-horizontal .process__track { display: flex; gap: 2rem; width: max-content; padding-right: var(--gutter); }
.process.is-horizontal .step { width: clamp(300px, 28vw, 420px); min-height: min(64svh, 560px); justify-content: flex-end; }
.process.is-horizontal .step--img { justify-content: flex-start; }
.process.is-horizontal .step:not(.step--img) .step__num { margin-bottom: auto; }

/* ---------- proyectos ---------- */
.projects { padding: var(--section) 0; }
/* cada tarjeta se queda pegada arriba y la siguiente la tapa */
.stack { display: flex; flex-direction: column; gap: 8vh; max-width: 1600px; margin: 0 auto; padding: 0 var(--gutter); }
.work {
  --i: 0;
  position: sticky; top: calc(9vh + var(--i) * 14px);
  display: block; width: 100%; height: min(78svh, 780px); text-align: left;
  border: 1px solid var(--line); background: var(--bg-2); transform-origin: 50% 0;
}
.work:nth-child(2) { --i: 1; }
.work:nth-child(3) { --i: 2; }
.work:nth-child(4) { --i: 3; }
.work:nth-child(5) { --i: 4; }
.work__media { position: absolute; inset: 0; overflow: hidden; }
.work__media img { width: 100%; height: 100%; object-fit: cover; transition: scale 1.2s var(--ease-out); }
.work:hover .work__media img { scale: 1.04; }
.work__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(18, 16, 13, .88) 100%); }
.work__cap {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: end; gap: 1rem 2rem;
  padding: clamp(1.25rem, 3vw, 2.5rem);
}
.work__num { font-family: var(--serif); font-size: clamp(3rem, 7vw, 6.5rem); line-height: .8; color: var(--brass); }
.work__cap strong { font-family: var(--serif); font-weight: 400; font-size: clamp(1.35rem, 3vw, 2.6rem); line-height: 1.1; }
.work__cap small { font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); padding-bottom: .4rem; }

/* ---------- zoom fijado ---------- */
.zoom__stage { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2rem; padding: 0 var(--gutter) var(--section); text-align: center; }
.zoom__words { display: flex; flex-direction: column; align-items: center; font-family: var(--serif); font-size: clamp(2.3rem, 8vw, 8.5rem); line-height: 1; }
.zoom__words span { display: block; }
.zoom__r { color: var(--brass); }
.zoom__frame { margin: 0; width: min(100%, 1100px); aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-2); }
.zoom__frame img { width: 100%; height: 100%; object-fit: cover; }
.zoom__caption { max-width: 34rem; color: var(--muted); font-size: var(--fs-lead); }
.zoom.is-pinned .zoom__stage { height: 100svh; padding: 0; justify-content: center; overflow: hidden; }
.zoom.is-pinned .zoom__frame { position: absolute; inset: 0; width: 100%; aspect-ratio: auto; z-index: 0; }
.zoom.is-pinned .zoom__frame::after { content: ""; position: absolute; inset: 0; background: rgba(18, 16, 13, .5); }
.zoom.is-pinned .zoom__words { position: relative; z-index: 1; }
.zoom.is-pinned .zoom__caption { position: absolute; z-index: 1; left: 50%; bottom: 9vh; width: min(34rem, calc(100% - 2 * var(--gutter))); transform: translateX(-50%); color: var(--ink); }

/* ---------- banda CTA ---------- */
.cta-band { display: block; overflow: hidden; padding: clamp(2rem, 5vw, 4rem) 0; border-top: 1px solid var(--line); transition: background var(--t-med), color var(--t-med); }
.cta-band__track { display: flex; width: max-content; }
.cta-band__track > span { display: flex; align-items: center; gap: 2.5rem; padding-right: 2.5rem; white-space: nowrap; font-family: var(--serif); font-size: clamp(2.2rem, 7vw, 7rem); line-height: 1.05; }
.cta-band i { font-style: normal; font-size: .35em; color: var(--brass); transition: color var(--t-med); }
.cta-band:hover { background: var(--brass); color: var(--on-accent); }
.cta-band:hover i { color: var(--on-accent); }

/* ---------- cursor propio (solo ratón) ---------- */
.cursor { display: none; }
.has-cursor .cursor { display: block; position: fixed; left: 0; top: 0; z-index: 70; pointer-events: none; }
.cursor__dot, .cursor__ring { position: absolute; left: 0; top: 0; }
.cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--brass); transition: opacity var(--t-fast); }
.cursor__ring { width: 96px; height: 96px; margin: -48px 0 0 -48px; display: grid; place-items: center; }
.cursor__circle {
  position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(201, 137, 75, .55);
  transform: scale(.4); transition: transform .45s var(--ease-out), background .3s, border-color .3s;
}
.cursor__label { position: relative; font-size: .68rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--on-accent); opacity: 0; transition: opacity .2s; }
.cursor.is-link .cursor__circle { transform: scale(.62); background: rgba(201, 137, 75, .12); }
.cursor.is-label .cursor__circle { transform: scale(1); background: var(--brass); border-color: var(--brass); }
.cursor.is-label .cursor__label { opacity: 1; transition-delay: .1s; }
.cursor.is-label .cursor__dot, .cursor.is-hidden { opacity: 0; }

/* ---------- grano de película ---------- */
.grain {
  position: fixed; inset: -50%; z-index: 65; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 7s steps(8) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); } 25% { transform: translate(-6%, 4%); }
  50% { transform: translate(5%, -7%); } 75% { transform: translate(-3%, 8%); }
}

/* ---------- página 404 ---------- */
.notfound {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: clamp(2.5rem, 6vw, 6rem);
  min-height: calc(100svh - 10rem); max-width: 1600px; margin: 0 auto; padding: clamp(3rem, 7vw, 6rem) var(--gutter);
}
.notfound__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 1.5rem; }
/* «404» gigante solo con el contorno en cobre */
.notfound__code {
  font-family: var(--serif); font-size: clamp(6rem, 18vw, 15rem); line-height: .8; letter-spacing: .02em;
  color: transparent; -webkit-text-stroke: 1px var(--brass); margin-bottom: .5rem;
}
.notfound h1 { font-family: var(--serif); font-size: var(--fs-h2); line-height: 1.1; }
.notfound__text { max-width: 32rem; color: var(--muted); font-size: var(--fs-lead); }
.notfound__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2rem; margin-top: .5rem; }
.notfound__links { width: 100%; max-width: 32rem; margin-top: 1.5rem; }
.notfound__links p { font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: .5rem; }
.notfound__links ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.notfound__links a {
  display: flex; align-items: baseline; gap: 1rem; min-height: 52px; padding: .9rem 0; border-bottom: 1px solid var(--line);
  font-family: var(--serif); font-size: 1.15rem; transition: color var(--t-fast), padding var(--t-med) var(--ease-out);
}
.notfound__links a span { font-size: .85rem; color: var(--brass); }
.notfound__links a:hover { color: var(--brass); padding-left: .5rem; }
.notfound__media { position: relative; margin: 0; aspect-ratio: 4 / 5; overflow: hidden; border: 1px solid var(--line); background: var(--bg-2); }
.notfound__media img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.7); }
.notfound__media figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 4rem 1.5rem 1.5rem;
  background: linear-gradient(180deg, transparent, rgba(18, 16, 13, .92)); color: var(--ink-2);
}
.notfound__media a { color: var(--brass-light); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 900px) {
  .notfound { grid-template-columns: 1fr; min-height: 0; }
  .notfound__media { aspect-ratio: 16 / 10; }
}
@media (max-width: 560px) {
  .legal-bar .btn--small { display: none; }
  .notfound__actions, .notfound__actions .btn { width: 100%; }
}

/* ---------- páginas legales ---------- */
.legal-bar {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  max-width: 1600px; margin: 0 auto; padding: 1.25rem var(--gutter); border-bottom: 1px solid var(--line);
}
.legal-bar .nav__logo { margin: 0; }
.legal { max-width: 46rem; margin: 0 auto; padding: clamp(3rem, 8vw, 6rem) var(--gutter) var(--section); }
.legal h1 { margin: 1.25rem 0 .75rem; font-family: var(--serif); font-size: var(--fs-h2); line-height: 1.1; }
.legal__date { color: var(--muted); font-size: .9rem; margin-bottom: 2.5rem; }
.legal section { padding-top: 2.25rem; margin-top: 2.25rem; border-top: 1px solid var(--line); }
.legal h2 { margin-bottom: 1rem; font-family: var(--serif); font-size: var(--fs-h3); color: var(--brass); }
.legal p, .legal li { color: var(--ink-2); }
.legal p + p, .legal ul + p, .legal p + ul, .legal p + .legal__data { margin-top: 1rem; }
.legal ul { padding-left: 1.2rem; display: grid; gap: .6rem; }
.legal li::marker { color: var(--brass); }
.legal a { color: var(--brass-light); text-decoration: underline; text-underline-offset: 3px; }
.legal a:hover { color: var(--ink); }
.legal strong { color: var(--ink); font-weight: 600; }
.legal__data { margin: 0; display: grid; }
.legal__data div { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: .25rem 1.5rem; padding: .85rem 0; border-bottom: 1px solid var(--line); }
.legal__data dt { font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding-top: .2rem; }
.legal__data dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.legal-footer {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem 2rem; flex-wrap: wrap;
  max-width: 1600px; margin: 0 auto; padding: 2rem var(--gutter); border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem;
}
.legal-footer nav, .footer__legal-nav { display: flex; gap: .5rem 1.75rem; flex-wrap: wrap; }
.legal-footer a, .footer__legal-nav a { min-height: 44px; display: inline-flex; align-items: center; }
.legal-footer a:hover, .footer__legal-nav a:hover, .legal-footer a[aria-current="page"] { color: var(--brass); }
@media (max-width: 560px) {
  .legal__data div { grid-template-columns: 1fr; }
}

/* aviso de privacidad bajo el formulario */
.form__privacy { grid-column: 1 / -1; font-size: .85rem; color: var(--on-dark-muted); }
.form__privacy a { color: var(--brass-light); text-decoration: underline; text-underline-offset: 3px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- valores ---------- */
.values {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(2rem, 6vw, 6rem);
  max-width: 1600px; margin: 0 auto; padding: 0 var(--gutter) var(--section);
}
.values__stat { position: sticky; top: 7rem; align-self: start; }
.values__num {
  font-family: var(--serif); font-size: clamp(5rem, 13vw, 11rem); line-height: .9;
  font-variant-numeric: tabular-nums;
}
.values__num sup { font-size: .4em; color: var(--brass); vertical-align: top; }
.values__stat > p:last-child { max-width: 18rem; margin-top: 1.5rem; color: var(--muted); }
.values__list { list-style: none; margin: 0; padding: 0; }
.values__list li {
  display: grid; grid-template-columns: 3rem minmax(0, 1fr); column-gap: 1.5rem; row-gap: .4rem;
  padding: 2.4rem 0; border-top: 1px solid var(--line);
}
.values__list li:last-child { border-bottom: 1px solid var(--line); }
.values__list svg { grid-row: span 2; width: 2rem; height: 2rem; color: var(--brass); stroke-width: 1.3; }
.values__list h3 { font-family: var(--serif); font-size: var(--fs-h3); }
.values__list p { color: var(--muted); max-width: 36rem; }

/* ---------- contacto ---------- */
.contact {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(3rem, 7vw, 7rem);
  padding: var(--section) var(--gutter); background: var(--dark); color: var(--on-dark);
  border-top: 1px solid var(--brass);
}
.contact__intro { display: flex; flex-direction: column; align-items: flex-start; gap: 1.75rem; }
.contact__title { font-family: var(--serif); font-size: clamp(2.3rem, 5vw, 4.8rem); line-height: 1.08; }
.contact__title em { color: var(--brass-light); }
.contact__lead { max-width: 28rem; color: var(--on-dark-muted); font-size: var(--fs-lead); }
.contact__info { list-style: none; margin: 1rem 0 0; padding: 0; width: 100%; display: grid; gap: 0; }
.contact__info li { display: grid; grid-template-columns: 6rem 1fr; column-gap: 1rem; padding: 1rem 0; border-top: 1px solid var(--line-dark); }
.contact__info span { grid-row: span 2; font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-muted); padding-top: .25rem; }
.contact__info a, .contact__info address { font-style: normal; min-height: 32px; display: flex; align-items: center; }
.contact__info a:hover { color: var(--brass-light); }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.75rem 1.5rem; align-content: start; align-self: end; }
.field { display: flex; flex-direction: column; gap: .5rem; }
.field--full, .form__submit, .form__status { grid-column: 1 / -1; }
.field label { font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--on-dark-muted); }
.field abbr { text-decoration: none; color: var(--brass-light); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: .8rem 0;
  font: inherit; font-size: 1.05rem; color: var(--on-dark);
  background: transparent; border: 0; border-bottom: 1px solid var(--line-dark); border-radius: 0;
  transition: border-color var(--t-fast);
}
.field select { appearance: none; cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 10px) 55%, calc(100% - 5px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.field select option { background: var(--bg-2); color: var(--ink); }
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brass-light); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { box-shadow: 0 2px 0 var(--brass-light); }
.field.has-error input, .field.has-error textarea { border-color: var(--error-dark); }
.field__help { font-size: .85rem; color: var(--on-dark-muted); }
.field__error { font-size: .85rem; color: var(--error-dark); min-height: 0; }
.field__error:empty { display: none; }
.form__submit { justify-self: start; }
.form__status { color: var(--brass-light); }
.form__status:empty { display: none; }

/* ---------- pie ---------- */
.footer { background: var(--dark); color: var(--on-dark); padding: 0 var(--gutter) 1.5rem; overflow: hidden; }
.footer__top {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 2rem; flex-wrap: wrap;
  padding: 3rem 0; border-top: 1px solid var(--line-dark); color: var(--on-dark-muted);
}
.footer__top nav { display: flex; gap: 1.75rem; flex-wrap: wrap; }
.footer__top a { min-height: 44px; display: inline-flex; align-items: center; }
.footer__top a:hover { color: var(--on-dark); }
.footer__word {
  display: flex; justify-content: space-between;
  font-family: var(--serif); font-size: clamp(2.6rem, 12.5vw, 14rem); line-height: .9;
  overflow: hidden; padding-bottom: .05em;
}
.footer__word span { display: inline-block; }
.footer__word span:nth-child(n+5) { color: var(--brass); }
.footer__legal { margin-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; gap: .5rem 2rem; flex-wrap: wrap; font-size: .82rem; color: var(--on-dark-muted); }

/* ---------- visor ---------- */
.lightbox {
  width: min(92vw, 1200px); max-height: 88svh; padding: 0; border: 0; background: transparent; overflow: visible;
}
.lightbox::backdrop { background: rgba(10, 9, 7, .9); backdrop-filter: blur(6px); }
.lightbox img { width: 100%; max-height: 88svh; object-fit: contain; border-radius: var(--radius); }
.lightbox__close {
  position: absolute; top: -.5rem; right: -.5rem; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; background: var(--ink); color: var(--on-accent);
  transform: translate(25%, -25%);
}
.lightbox[open] { animation: zoomIn .45s var(--ease-out); }
@keyframes zoomIn { from { opacity: 0; transform: scale(.94); } }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .svc__body { grid-template-columns: 1fr; gap: .75rem; }
}

@media (max-width: 900px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: block; }

  .hero { padding-top: 7rem; }
  .hero__bottom { grid-template-columns: minmax(0, 1fr) auto; }
  .hero__facts { grid-column: 1 / -1; grid-row: 1; justify-content: space-between; }
  .badge { top: 6rem; width: 96px; height: 96px; }
  .badge__core { font-size: 1.2rem; }

  .section-head--row { flex-direction: column; align-items: flex-start; }

  .svc { grid-template-columns: 2.5rem minmax(0, 1fr); align-items: start; }
  .svc__arrow { display: none; }
  .svc__thumb {
    display: block; grid-column: 2; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius);
  }

  .process__track { grid-template-columns: 1fr; }

  .stack { gap: 5vh; }
  .work { top: calc(5.5rem + var(--i) * 10px); height: 64svh; }
  .work__cap { grid-template-columns: auto minmax(0, 1fr); }
  .work__cap small { grid-column: 2; padding: 0; }

  .values { grid-template-columns: 1fr; }
  .values__stat { position: static; }

  .contact { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .hero__title { font-size: clamp(2.2rem, 11vw, 3.4rem); }
  .hero__facts { gap: 1rem; }
  .hero__facts dd { font-size: 1rem; }
  .hero__actions, .hero__actions .btn { width: 100%; }
  .badge { display: none; }
  .form { grid-template-columns: 1fr; }
  .form__submit { width: 100%; }
  .contact__info li { grid-template-columns: 1fr; }
  .contact__info span { grid-row: auto; }
}

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