/* ═════════════════════════════════════════════════════════
   GRUPO VORTEX — Spatial UI · carbón profundo + dorado solar
   ═════════════════════════════════════════════════════════ */

@font-face { font-family: 'Clash Display'; src: url('../assets/fonts/ClashDisplay-Medium.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Clash Display'; src: url('../assets/fonts/ClashDisplay-Semibold.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Clash Display'; src: url('../assets/fonts/ClashDisplay-Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Satoshi'; src: url('../assets/fonts/Satoshi-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Satoshi'; src: url('../assets/fonts/Satoshi-Medium.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Satoshi'; src: url('../assets/fonts/Satoshi-Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'JBMono'; src: url('../assets/fonts/JetBrainsMono-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'JBMono'; src: url('../assets/fonts/JetBrainsMono-Medium.woff2') format('woff2'); font-weight: 500; font-display: swap; }

:root {
  --bg: #0A0A0C;
  --carbon: #131316;
  --ink: #F5F2EA;
  --ink-dim: rgba(245, 242, 234, .58);
  --ink-faint: rgba(245, 242, 234, .34);
  --gold: #E8A33D;
  --gold-hi: #FFD98A;
  --gold-12: rgba(232, 163, 61, .12);
  --gold-25: rgba(232, 163, 61, .25);
  --gold-50: rgba(232, 163, 61, .5);
  --line: rgba(245, 242, 234, .09);
  --display: 'Clash Display', 'Avenir Next', sans-serif;
  --body: 'Satoshi', 'Helvetica Neue', sans-serif;
  --mono: 'JBMono', 'SF Mono', monospace;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { background: var(--bg); }
body {
  font-family: var(--body);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overscroll-behavior-y: none;
  line-height: 1.5;
}
::selection { background: var(--gold); color: #0A0A0C; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(232, 163, 61, .4); border-radius: 2px; }

/* ── layers ─────────────────────────────── */
#gl { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; }
#veil {
  position: fixed; inset: 0; z-index: 4; pointer-events: none;
  background: var(--bg); opacity: 0;
}
#grain {
  position: fixed; inset: -120px; z-index: 300; pointer-events: none; opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 900ms steps(3) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  33% { transform: translate(-40px, 25px); }
  66% { transform: translate(30px, -35px); }
  100% { transform: translate(0, 0); }
}
main { position: relative; z-index: 10; }

/* ── loader ─────────────────────────────── */
#loader {
  position: fixed; inset: 0; z-index: 400;
  background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
  transition: opacity .9s ease .15s, visibility .9s ease .15s;
}
body.is-live #loader { opacity: 0; visibility: hidden; }
.loader-mark { animation: spin 7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.loader-word { font-family: var(--mono); font-size: 12px; letter-spacing: .55em; color: var(--ink); padding-left: .55em; }
.loader-bar { width: 168px; height: 1px; background: var(--line); overflow: hidden; }
.loader-bar i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-hi)); transform-origin: left; transform: scaleX(0); transition: transform .25s ease-out; }
.loader-hint { font-family: var(--mono); font-size: 9px; letter-spacing: .3em; color: var(--ink-faint); padding-left: .3em; }
.loader-hint span { color: var(--gold-hi); font-variant-numeric: tabular-nums; }

/* ── header ─────────────────────────────── */
.hdr {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 44px;
  transition: background .5s ease, backdrop-filter .5s ease, padding .5s ease;
}
.hdr.is-solid {
  padding: 14px 44px;
  background: rgba(10, 10, 12, .55);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 13px; }
.brand-mark { transition: transform .8s var(--ease-out); }
.brand:hover .brand-mark { transform: rotate(140deg); }
.brand-name { font-family: var(--display); font-weight: 600; font-size: 14.5px; letter-spacing: .22em; }
.nav { position: absolute; left: 50%; transform: translateX(-50%); display: flex; gap: 42px; }
.nav a {
  font-family: var(--mono); font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--ink-dim); position: relative; padding: 6px 0; transition: color .35s ease;
}
.nav a::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: var(--gold); transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease-out);
}
.nav a:hover, .nav a.is-active { color: var(--ink); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); transform-origin: left; }
.hdr-right { display: flex; align-items: center; gap: 14px; }
.hdr-cta {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold-hi); border: 1px solid var(--gold-25); border-radius: 999px;
  padding: 11px 22px; display: inline-block;
  transition: border-color .4s ease, background .4s ease, box-shadow .4s ease;
  box-shadow: 0 0 0 rgba(232, 163, 61, 0);
}
.burger {
  display: none; width: 44px; height: 44px; border-radius: 50%; position: relative;
  border: 1px solid var(--gold-25); background: transparent; cursor: pointer;
  transition: border-color .4s ease, background .4s ease;
}
.burger span {
  position: absolute; left: 13px; width: 18px; height: 1px; background: var(--ink);
  transition: transform .5s var(--ease-out), top .5s var(--ease-out);
}
.burger span:first-child { top: 18px; }
.burger span:last-child { top: 25px; }
.burger:hover { border-color: var(--gold-50); background: var(--gold-12); }
body.menu-open .burger span:first-child { top: 21px; transform: rotate(45deg); }
body.menu-open .burger span:last-child { top: 21px; transform: rotate(-45deg); }
.hdr-cta:hover { border-color: var(--gold-50); background: var(--gold-12); box-shadow: 0 0 26px rgba(232, 163, 61, .22); }

/* ── spatial HUD ────────────────────────── */
.rail {
  position: fixed; right: 38px; top: 50%; transform: translateY(-50%); z-index: 90;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .18em; color: var(--ink-faint);
}
.rail-idx b { color: var(--gold-hi); font-weight: 500; }
.rail-track { width: 1px; height: 148px; background: var(--line); position: relative; overflow: hidden; }
.rail-fill { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(180deg, var(--gold-hi), var(--gold)); transform-origin: top; transform: scaleY(0); }
.rail-lbl { writing-mode: vertical-rl; letter-spacing: .34em; color: var(--ink-dim); }
.coords {
  position: fixed; left: 44px; bottom: 30px; z-index: 90;
  display: flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .22em; color: var(--ink-faint);
}
.coords-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 8px var(--gold); animation: pulse 2.4s ease infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

/* ── shared ─────────────────────────────── */
.sec { position: relative; }
.sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.kicker {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .34em; text-transform: uppercase;
  color: var(--ink-dim); display: flex; align-items: center; gap: 12px;
}
.kdot { width: 6px; height: 6px; background: var(--gold); border-radius: 50%; box-shadow: 0 0 10px var(--gold); flex: none; }

.glass {
  background: linear-gradient(155deg, rgba(255, 255, 255, .065), rgba(255, 255, 255, .014) 58%);
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 24px;
  backdrop-filter: blur(18px) saturate(1.25);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
  box-shadow: 0 28px 70px rgba(0, 0, 0, .42), inset 0 1px 0 rgba(255, 255, 255, .09);
}

/* ── 01 · hero ──────────────────────────── */
.sec-hero { height: 280vh; }
.hero-sticky {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 30px; padding: 0 20px;
}
.hero-kicker { justify-content: center; }
.title {
  font-family: var(--display); text-transform: uppercase; line-height: .96;
  perspective: 1100px; display: flex; flex-direction: column; align-items: center; gap: 1.2vw;
}
.title .line { display: block; transform-style: preserve-3d; white-space: nowrap; }
.line-grupo { font-weight: 500; font-size: clamp(1.5rem, 4.4vw, 3.6rem); letter-spacing: .52em; padding-left: .52em; color: var(--ink-dim); }
.line-vortex { font-weight: 600; font-size: clamp(4.6rem, 16.5vw, 15rem); letter-spacing: .015em; }
/* gradiente por letra: background-clip en el padre se rompe cuando los hijos animan transform */
.line-vortex, .line-vortex .ltr {
  background: linear-gradient(178deg, #FFFFFF 8%, var(--ink) 42%, var(--gold-hi) 82%, var(--gold) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.title .ltr { display: inline-block; will-change: transform, opacity, filter; }
body.is-live .title .ltr {
  opacity: 0;
  transform: rotateY(38deg) translateZ(-340px) translateY(.18em);
  filter: blur(14px);
  animation: ltr-in 1.25s var(--ease-out) forwards;
  animation-delay: calc(var(--i) * 72ms + 380ms);
}
@keyframes ltr-in {
  to { opacity: 1; transform: rotateY(0) translateZ(0) translateY(0); filter: blur(0); }
}
.sub {
  font-family: var(--body); font-weight: 400; font-size: clamp(.95rem, 1.35vw, 1.2rem);
  color: var(--ink-dim); letter-spacing: .04em; max-width: 560px;
  opacity: 0; transition: opacity 1.2s ease 1.6s;
}
body.is-live .sub { opacity: 1; }
.scroll-cue {
  position: absolute; bottom: 42px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 9px; letter-spacing: .42em; color: var(--ink-faint);
  opacity: 0; transition: opacity 1.2s ease 2.2s;
}
body.is-live .scroll-cue { opacity: 1; }
.scroll-cue i { width: 1px; height: 52px; background: var(--line); position: relative; overflow: hidden; display: block; }
.scroll-cue i::after {
  content: ''; position: absolute; left: 0; top: -40%; width: 100%; height: 40%;
  background: var(--gold-hi); animation: cue 2s var(--ease-out) infinite;
}
@keyframes cue { to { top: 120%; } }

/* ── stats ──────────────────────────────── */
.sec-stats { min-height: 130vh; display: grid; place-items: center; padding: 18vh 6vw; }
.stats-grid {
  width: min(1240px, 100%);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 3.4vw;
}
.stat { border-top: 1px solid var(--line); padding-top: 26px; position: relative; }
.stat::before {
  content: ''; position: absolute; top: -1px; left: 0; height: 1px; width: 46px;
  background: linear-gradient(90deg, var(--gold-hi), transparent);
}
.stat-num { font-family: var(--display); font-weight: 600; font-size: clamp(3rem, 5.4vw, 5.2rem); line-height: 1; display: flex; align-items: baseline; }
.stat-num .sfx { color: var(--gold); font-size: .62em; margin-left: .06em; }
.stat-num .unit { font-family: var(--mono); font-size: .28em; letter-spacing: .2em; color: var(--ink-dim); margin-left: 14px; }
.stat-lbl { margin-top: 14px; font-size: .86rem; color: var(--ink-dim); max-width: 230px; }

/* ── 02 · pilares ───────────────────────── */
.sec-pilares { height: 330vh; }
.pilares-sticky { display: flex; flex-direction: column; justify-content: center; gap: 5.4vh; padding: 12vh 6vw 8vh; }
.sec-head { display: flex; flex-direction: column; gap: 22px; opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); }
.sec-head.is-in { opacity: 1; transform: none; }
.sec-head h2, .panel-intro h2 {
  font-family: var(--display); font-weight: 600; text-transform: uppercase;
  font-size: clamp(2rem, 4.6vw, 4rem); line-height: 1.02; letter-spacing: .01em;
}
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 30px); perspective: 1200px; }
.card {
  padding: clamp(26px, 2.6vw, 40px);
  display: flex; flex-direction: column; gap: 18px; position: relative;
  opacity: 0; transform: translateY(56px) rotateX(9deg);
  transition: opacity 1s var(--ease-out) var(--d), transform 1s var(--ease-out) var(--d),
              border-color .5s ease, box-shadow .5s ease;
}
.card.is-in { opacity: 1; transform: none; }
.card.is-settled { transition-property: border-color, box-shadow; }
.card:hover { border-color: var(--gold-25); box-shadow: 0 30px 80px rgba(0, 0, 0, .5), 0 0 44px rgba(232, 163, 61, .09), inset 0 1px 0 rgba(255, 255, 255, .12); }
.card-idx { font-family: var(--mono); font-size: 11px; color: var(--gold); letter-spacing: .3em; }
.card-tag-top {
  position: absolute; top: clamp(26px, 2.6vw, 40px); right: clamp(26px, 2.6vw, 40px);
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .26em; color: var(--ink-faint);
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px;
}
.card h3 { font-family: var(--display); font-weight: 600; font-size: clamp(1.25rem, 1.65vw, 1.6rem); line-height: 1.14; padding-right: 60px; }
.card > p:not(.card-tag-top) { font-size: .92rem; color: var(--ink-dim); line-height: 1.65; }
.card-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 10px; }
.card-tags li {
  font-family: var(--mono); font-size: 8.5px; letter-spacing: .18em; color: var(--gold-hi);
  background: var(--gold-12); border-radius: 999px; padding: 6px 11px;
}

/* ── 03 · trabajo (horizontal) ──────────── */
.sec-trabajo { height: 380vh; }
.trabajo-sticky { display: flex; align-items: center; }
.track {
  display: flex; align-items: center; gap: clamp(24px, 3.4vw, 60px);
  padding-left: 8vw; width: max-content; will-change: transform;
}
.panel-intro { width: 34vw; min-width: 340px; display: flex; flex-direction: column; gap: 26px; }
.panel-intro h2 { font-size: clamp(2.2rem, 4.8vw, 4.4rem); }
.panel-note { font-family: var(--mono); font-size: 10.5px; letter-spacing: .3em; color: var(--gold-hi); }
.panel-end { width: 30vw; }
.work-card {
  width: clamp(420px, 44vw, 620px); flex: none;
  padding: clamp(30px, 3vw, 48px);
  display: flex; flex-direction: column; gap: 20px;
  position: relative; overflow: hidden;
  transform-style: preserve-3d;
  transition: border-color .5s ease, box-shadow .5s ease;
  --mx: 50%; --my: 50%;
}
.work-card:hover { border-color: var(--gold-25); box-shadow: 0 34px 90px rgba(0, 0, 0, .55), 0 0 60px rgba(232, 163, 61, .10), inset 0 1px 0 rgba(255, 255, 255, .12); }
.wc-glow {
  position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .5s ease;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(232, 163, 61, .13), transparent 65%);
}
.work-card:hover .wc-glow { opacity: 1; }
.wc-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 8vh; }
.wc-idx { font-family: var(--mono); font-size: 11px; letter-spacing: .3em; color: var(--gold); }
.wc-ico { width: 86px; height: 60px; color: var(--gold-hi); opacity: .8; }
.work-card h3 { font-family: var(--display); font-weight: 600; text-transform: uppercase; font-size: clamp(1.5rem, 2.2vw, 2.2rem); line-height: 1.06; }
.work-card > p { font-size: .95rem; color: var(--ink-dim); line-height: 1.65; max-width: 440px; }
.wc-meta { display: flex; gap: 10px; flex-wrap: wrap; padding-top: 8px; }
.wc-meta li {
  font-family: var(--mono); font-size: 9px; letter-spacing: .2em; color: var(--ink-dim);
  border: 1px solid var(--line); border-radius: 999px; padding: 7px 13px;
}

/* ── marquee ────────────────────────────── */
.marquee { position: relative; z-index: 10; padding: 9vh 0 4vh; overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(10, 10, 12, .4); }
.marquee-track { display: flex; white-space: nowrap; will-change: transform; }
.marquee-track span {
  font-family: var(--display); font-weight: 500; text-transform: uppercase;
  font-size: clamp(1.6rem, 3.2vw, 3rem); letter-spacing: .06em; color: transparent;
  -webkit-text-stroke: 1px rgba(245, 242, 234, .22); padding-right: 20px;
}

/* ── 04 · CTA ───────────────────────────── */
.sec-cta { min-height: 140vh; display: grid; place-items: center; padding: 22vh 6vw 16vh; }
.cta-inner { display: flex; flex-direction: column; align-items: center; gap: 44px; text-align: center; }
.giant { font-family: var(--display); font-weight: 600; text-transform: uppercase; line-height: .98; font-size: clamp(3rem, 10.5vw, 9.6rem); }
.wline { display: block; overflow: hidden; padding-bottom: .04em; }
.wline i { display: block; font-style: normal; transform: translateY(112%); transition: transform 1.15s var(--ease-out); }
.wline:nth-child(2) i { transition-delay: .12s; }
.wline:nth-child(3) i { transition-delay: .24s; }
.giant.is-in .wline i { transform: none; }
.giant b { color: var(--gold); }
.cta-btns { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
.btn {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .24em; text-transform: uppercase;
  padding: 20px 42px; border-radius: 999px; position: relative; display: inline-block;
  background: transparent; cursor: pointer;
  transition: border-color .45s ease, background .45s ease, box-shadow .45s ease, color .45s ease;
}
.btn-solar {
  color: var(--gold-hi); border: 1px solid var(--gold-50);
  box-shadow: 0 0 32px rgba(232, 163, 61, .16), inset 0 0 18px rgba(232, 163, 61, .07);
}
.btn-solar:hover {
  background: var(--gold-12); border-color: var(--gold-hi);
  box-shadow: 0 0 54px rgba(232, 163, 61, .34), inset 0 0 24px rgba(232, 163, 61, .12);
}
.btn-ghost { color: var(--ink); border: 1px solid rgba(245, 242, 234, .22); box-shadow: 0 0 24px rgba(245, 242, 234, .05); }
.btn-ghost:hover { border-color: rgba(245, 242, 234, .55); box-shadow: 0 0 40px rgba(245, 242, 234, .13); }

/* ── footer ─────────────────────────────── */
.ftr { position: relative; z-index: 10; border-top: 1px solid var(--line); background: rgba(10, 10, 12, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.ftr-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px;
  padding: 76px 6vw 60px; max-width: 1400px; margin: 0 auto;
}
.ftr-brand { display: flex; flex-direction: column; gap: 20px; }
.ftr-tag { color: var(--ink-dim); font-size: .92rem; line-height: 1.6; }
.ftr-coords { font-family: var(--mono); font-size: 9.5px; letter-spacing: .22em; color: var(--ink-faint); }
.ftr-col { display: flex; flex-direction: column; gap: 14px; }
.ftr-col h4 { font-family: var(--mono); font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); font-weight: 500; margin-bottom: 6px; }
.ftr-col a { color: var(--ink-dim); font-size: .92rem; transition: color .3s ease, transform .3s ease; width: fit-content; }
.ftr-col a:hover { color: var(--ink); transform: translateX(4px); }
.ftr-legal {
  display: flex; justify-content: space-between; gap: 20px;
  padding: 26px 6vw; border-top: 1px solid var(--line); max-width: 1400px; margin: 0 auto;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .2em; color: var(--ink-faint); text-transform: uppercase;
}

/* ── foco accesible ─────────────────────── */
:focus-visible { outline: 1px solid var(--gold-hi); outline-offset: 4px; border-radius: 4px; }
.field :focus-visible { outline: none; }

/* ── menú móvil ─────────────────────────── */
.menu {
  position: fixed; inset: 0; z-index: 95;
  background: rgba(10, 10, 12, .84);
  backdrop-filter: blur(26px) saturate(1.3); -webkit-backdrop-filter: blur(26px) saturate(1.3);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 120px 28px 44px;
  opacity: 0; visibility: hidden; transform: translateY(-2%);
  transition: opacity .55s ease, transform .65s var(--ease-out), visibility .55s;
}
body.menu-open .menu { opacity: 1; visibility: visible; transform: none; }
body.menu-open, body.modal-open { overflow: hidden; }
.menu-nav { display: flex; flex-direction: column; gap: 8px; }
.menu-nav a {
  font-family: var(--display); font-weight: 600; text-transform: uppercase;
  font-size: clamp(2.4rem, 10vw, 4.2rem); line-height: 1.1;
  display: flex; align-items: baseline; gap: 18px; color: var(--ink);
  opacity: 0; transform: translateY(26px);
  transition: opacity .6s ease, transform .75s var(--ease-out), color .3s ease;
}
body.menu-open .menu-nav a { opacity: 1; transform: none; }
body.menu-open .menu-nav a:nth-child(2) { transition-delay: .06s; }
body.menu-open .menu-nav a:nth-child(3) { transition-delay: .12s; }
body.menu-open .menu-nav a:nth-child(4) { transition-delay: .18s; }
.menu-nav a.is-active { color: var(--gold-hi); }
.menu-idx { font-family: var(--mono); font-size: 11px; letter-spacing: .3em; color: var(--gold); }
.menu-foot { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.menu-coords { font-family: var(--mono); font-size: 9.5px; letter-spacing: .22em; color: var(--ink-faint); }

/* ── cursor espacial ────────────────────── */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 600; pointer-events: none; display: none;
  width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%;
  border: 1px solid var(--gold-hi); will-change: transform;
  transition: width .35s var(--ease-out), height .35s var(--ease-out), margin .35s var(--ease-out),
              border-color .35s ease, background .35s ease, opacity .3s ease;
}
.cursor i {
  position: absolute; inset: -1px; border-radius: 50%; background: var(--gold-hi);
  transform: scale(.34); transition: transform .35s var(--ease-out);
}
body.has-cursor .cursor { display: block; opacity: 0; }   /* invisible hasta el primer movimiento */
.cursor.is-on { opacity: 1; }
body.has-cursor, body.has-cursor a, body.has-cursor button, body.has-cursor label,
body.has-cursor input, body.has-cursor select, body.has-cursor textarea { cursor: none; }
.cursor.is-hover { width: 46px; height: 46px; margin: -23px 0 0 -23px; border-color: var(--gold-50); background: rgba(232, 163, 61, .07); }
.cursor.is-hover i { transform: scale(.08); }
.cursor.is-down i { transform: scale(.7); }
.cursor.is-text { width: 2px; height: 26px; margin: -13px 0 0 -1px; border-radius: 1px; background: var(--gold-hi); border-color: transparent; }
.cursor.is-text i { transform: scale(0); }
.cursor.is-on.is-out { opacity: 0; }
.magnet { will-change: transform; }

/* ── modal de contacto ──────────────────── */
.modal {
  position: fixed; inset: 0; z-index: 700; display: grid; place-items: center; padding: 24px;
  opacity: 0; visibility: hidden; transition: opacity .45s ease, visibility .45s;
}
.modal.is-open { opacity: 1; visibility: visible; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(6, 6, 8, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.modal-panel {
  position: relative; width: min(660px, 100%); max-height: calc(100vh - 48px); overflow: auto;
  padding: clamp(28px, 3.4vw, 48px); display: flex; flex-direction: column; gap: 14px;
  border-color: var(--gold-25);
  transform: translateY(28px) scale(.985); transition: transform .65s var(--ease-out);
}
.modal.is-open .modal-panel { transform: none; }
.modal-close {
  position: absolute; top: 18px; right: 18px; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line); background: transparent; color: var(--ink-dim);
  font: 300 22px/1 var(--body); cursor: pointer; transition: color .35s ease, border-color .35s ease, transform .5s var(--ease-out);
}
.modal-close:hover { color: var(--ink); border-color: var(--gold-50); transform: rotate(90deg); }
.modal h3 { font-family: var(--display); font-weight: 600; text-transform: uppercase; font-size: clamp(1.7rem, 3vw, 2.6rem); line-height: 1.02; margin-top: 6px; padding-right: 48px; }
.modal-sub { color: var(--ink-dim); font-size: .95rem; max-width: 480px; }
.form { display: flex; flex-direction: column; gap: 14px; margin-top: 10px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field > span { font-family: var(--mono); font-size: 9.5px; letter-spacing: .26em; text-transform: uppercase; color: var(--ink-faint); }
.field input, .field select, .field textarea {
  font: 400 .95rem var(--body); color: var(--ink); width: 100%;
  background: rgba(255, 255, 255, .035); border: 1px solid var(--line); border-radius: 12px; padding: 13px 15px;
  appearance: none; -webkit-appearance: none;
  transition: border-color .35s ease, background .35s ease, box-shadow .35s ease;
}
.field select {
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23E8A33D' stroke-width='1.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 15px center; background-size: 11px;
}
.field select option { background: #131316; color: var(--ink); }
.field textarea { resize: vertical; min-height: 112px; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--gold-50); background: rgba(232, 163, 61, .05); box-shadow: 0 0 0 3px rgba(232, 163, 61, .10);
}
.field.is-invalid input { border-color: rgba(255, 120, 90, .75); }
.form-foot { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 8px; }
.form-note { font-family: var(--mono); font-size: 9.5px; letter-spacing: .14em; color: var(--ink-faint); max-width: 300px; line-height: 1.6; transition: color .3s ease; }
.form-note.is-ok { color: var(--gold-hi); }
.form-note.is-err { color: rgba(255, 150, 120, .9); }

/* ── progreso horizontal ────────────────── */
.hprog {
  position: absolute; left: 8vw; bottom: 84px; display: flex; align-items: center; gap: 14px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .3em; color: var(--ink-faint);
}
.hprog i { width: 180px; height: 1px; background: var(--line); position: relative; display: block; overflow: hidden; }
.hprog b { position: absolute; inset: 0; background: linear-gradient(90deg, var(--gold), var(--gold-hi)); transform-origin: left; transform: scaleX(0); }
.hprog #hprogIdx { color: var(--gold-hi); }

/* ── marca de agua + volver arriba ──────── */
.wc-bg {
  position: absolute; right: -.02em; bottom: -.26em; z-index: 0; pointer-events: none; user-select: none;
  font-family: var(--display); font-weight: 700; font-size: clamp(9rem, 15vw, 14rem); line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(245, 242, 234, .07);
}
.work-card > *:not(.wc-bg):not(.wc-glow) { position: relative; z-index: 1; }
.totop { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-dim); transition: color .3s ease; }
.totop i { font-style: normal; display: inline-block; transition: transform .4s var(--ease-out); }
.totop:hover { color: var(--gold-hi); }
.totop:hover i { transform: translateY(-4px); }

/* ── responsive ─────────────────────────── */
@media (max-width: 1080px) {
  .cards { grid-template-columns: 1fr; gap: 14px; }
  .card { flex-direction: column; }
  /* pilares en flujo normal: evita el scroll anidado dentro del sticky */
  .sec-pilares { height: auto; }
  .pilares-sticky { position: static; height: auto; overflow: visible; padding: 16vh 6vw 12vh; gap: 40px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 44px 6vw; }
  .wc-bg { font-size: 9rem; }
}
@media (max-width: 900px) {
  .rail, .coords, .nav { display: none; }
  .burger { display: block; }
  .hprog { left: 24px; bottom: 26px; }
  .hprog i { width: 110px; }
  .form-row { grid-template-columns: 1fr; }
  .hdr, .hdr.is-solid { padding: 16px 22px; }
  .panel-intro { width: 72vw; min-width: 0; }
  .work-card { width: 82vw; min-width: 0; padding: 28px; }
  .ftr-grid { grid-template-columns: 1fr 1fr; padding: 56px 24px 40px; }
  .ftr-brand { grid-column: 1 / -1; }
  .ftr-legal { padding: 22px 24px; flex-direction: column; gap: 8px; }
  .sec-stats { padding: 14vh 24px; }
  .track { padding-left: 24px; }
}

@media (max-width: 560px) {
  .hdr-cta { display: none; }
  .line-grupo { letter-spacing: .4em; padding-left: .4em; }
  .sub { padding: 0 24px; }
  .modal { padding: 12px; }
  .modal-panel { max-height: calc(100vh - 24px); }
}

/* ── reduced motion ─────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body.is-live .title .ltr { animation: none; opacity: 1; transform: none; filter: none; }
  .sub, .scroll-cue { transition: none; }
  #grain { animation: none; }
  .wline i { transition: none; transform: none; }
  .card, .sec-head { transition: none; opacity: 1; transform: none; }
  .menu, .menu-nav a, .modal, .modal-panel { transition: none; }
  .cursor { display: none !important; }
}
