/* =========================================================
   GORGON CREATIVE — Sistema de diseño
   Dirección: brutalismo editorial + precisión arquitectónica
   ========================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  --ink: #07080a;
  --ink-2: #0d0f12;
  --ink-3: #14161a;
  --paper: #f4f2ed;
  --muted: #8d8f97;
  --muted-2: #5f626a;
  --gold: #c8a35c;
  --gold-lt: #e8cd93;
  --gold-dp: #8a6d34;
  --line: rgba(244, 242, 237, .09);
  --line-2: rgba(244, 242, 237, .16);

  --font-display: 'Archivo', 'Inter Tight', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', monospace;
  --font-serif: 'Instrument Serif', 'Times New Roman', serif;

  --gut: clamp(20px, 4.4vw, 68px);
  --pad-y: clamp(90px, 12vh, 180px);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, .05, .36, 1);
  --nav-h: 76px;
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 300;
  overflow-x: clip; /* clip en lugar de hidden: no rompe position:sticky */
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-locked { overflow: hidden; }

img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }

::selection { background: var(--gold); color: var(--ink); }

/* Scrollbar */
::-webkit-scrollbar { width: 9px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: #23262c; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-dp); }

/* ---------- 3. Tipografía ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 800;
  font-variation-settings: 'wdth' 112;
  text-transform: uppercase;
  letter-spacing: -.035em;
  line-height: .9;
}

h1, h2, h3, h4 { font-weight: 400; }

.h-giant { font-size: clamp(3.2rem, 12.2vw, 13rem); }
.h-xl { font-size: clamp(2.4rem, 6.6vw, 6.2rem); }
.h-lg { font-size: clamp(1.9rem, 3.6vw, 3.4rem); }

em.accent {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  letter-spacing: -.01em;
  color: var(--gold-lt);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: clamp(9.5px, .72vw, 11.5px);
  font-weight: 400;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--muted);
}

.lead {
  font-size: clamp(1rem, 1.28vw, 1.22rem);
  line-height: 1.66;
  color: #c9c7c2;
  max-width: 52ch;
}

.muted { color: var(--muted); }

/* ---------- 4. Grano y textura ---------- */
.grain {
  position: fixed;
  inset: -50%;
  z-index: 900;
  pointer-events: none;
  opacity: .32;
  mix-blend-mode: overlay;
  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='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.42'/%3E%3C/svg%3E");
  animation: grainShift 6s steps(6) infinite;
}
@keyframes grainShift {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-4%, 3%); }
  40% { transform: translate(3%, -4%); }
  60% { transform: translate(-3%, -2%); }
  80% { transform: translate(4%, 2%); }
  100% { transform: translate(0, 0); }
}

/* ---------- 5. Cursor ---------- */
.cursor, .cursor-dot {
  position: fixed;
  top: 0; left: 0;
  z-index: 1000;
  pointer-events: none;
  border-radius: 50%;
  mix-blend-mode: difference;
  opacity: 0;
  transition: opacity .4s ease;
}
.cursor {
  width: 42px; height: 42px;
  border: 1px solid #fff;
  margin: -21px 0 0 -21px;
  transition: opacity .4s ease, transform .45s var(--ease), background .3s ease;
}
.cursor-dot {
  width: 5px; height: 5px;
  background: #fff;
  margin: -2.5px 0 0 -2.5px;
  transition: opacity .4s ease;
}
.cursor.is-on { transform: scale(1.55); background: rgba(255, 255, 255, .1); }
body.has-cursor .cursor, body.has-cursor .cursor-dot { opacity: 1; }
@media (hover: none), (max-width: 900px) { .cursor, .cursor-dot { display: none; } }

/* ---------- 6. Loader ---------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 950;
  background: var(--ink);
  display: grid;
  place-items: center;
  transition: transform 1.1s var(--ease), opacity .6s ease .5s;
}
.loader__inner { width: min(78vw, 560px); text-align: center; }
.loader__mark {
  font-family: var(--font-display);
  font-weight: 800;
  font-variation-settings: 'wdth' 120;
  font-size: clamp(1.4rem, 4.4vw, 3rem);
  letter-spacing: .34em;
  text-transform: uppercase;
  text-indent: .34em;
  overflow: hidden;
}
.loader__mark span { display: inline-block; transform: translateY(110%); animation: markUp .9s var(--ease) .15s forwards; }
@keyframes markUp { to { transform: translateY(0); } }

.loader__bar { margin-top: 26px; height: 1px; background: var(--line-2); position: relative; overflow: hidden; }
.loader__bar i { position: absolute; inset: 0 100% 0 0; background: var(--gold); }
.loader__num {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .3em;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
}
.loader.is-done { transform: translateY(-101%); opacity: 0; }

/* ---------- 7. Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 800;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 var(--gut);
  transition: background .5s ease, border-color .5s ease, transform .6s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-solid {
  background: rgba(7, 8, 10, .72);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav.is-hidden { transform: translateY(-102%); }

.nav__logo { display: flex; align-items: center; gap: 11px; margin-right: auto; }
.nav__logo img { height: 30px; width: auto; object-fit: contain; }
.nav__logo-fallback {
  font-family: var(--font-display);
  font-weight: 800;
  font-variation-settings: 'wdth' 118;
  letter-spacing: .02em;
  font-size: 1.06rem;
  text-transform: uppercase;
}
.nav__logo-fallback b { font-weight: 800; color: var(--gold); }

.nav__links { display: flex; gap: clamp(14px, 1.9vw, 34px); }
.nav__links a {
  position: relative;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #b7b5b0;
  padding: 6px 0;
  transition: color .35s ease;
}
.nav__links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .5s var(--ease);
}
.nav__links a:hover { color: var(--paper); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }

.nav__cta {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  border: 1px solid var(--line-2);
  padding: 11px 20px;
  border-radius: 100px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: color .4s ease, border-color .4s ease;
}
.nav__cta::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--gold);
  transform: translateY(101%);
  transition: transform .55s var(--ease);
  z-index: -1;
}
.nav__cta:hover { color: var(--ink); border-color: var(--gold); }
.nav__cta:hover::before { transform: translateY(0); }

.burger { display: none; width: 34px; height: 20px; position: relative; }
.burger span {
  position: absolute; left: 0;
  width: 100%; height: 1px;
  background: var(--paper);
  transition: transform .5s var(--ease), opacity .3s ease;
}
.burger span:nth-child(1) { top: 0; }
.burger span:nth-child(2) { top: 9px; width: 70%; }
.burger span:nth-child(3) { top: 18px; }
.burger.is-open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

.menu {
  position: fixed;
  inset: 0;
  z-index: 790;
  background: var(--ink-2);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 0 var(--gut);
  clip-path: inset(0 0 100% 0);
  transition: clip-path .9s var(--ease);
  pointer-events: none;
}
.menu.is-open { clip-path: inset(0 0 0 0); pointer-events: auto; }
.menu a {
  font-family: var(--font-display);
  font-weight: 800;
  font-variation-settings: 'wdth' 112;
  text-transform: uppercase;
  font-size: clamp(2rem, 11vw, 4.4rem);
  line-height: 1.06;
  letter-spacing: -.03em;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s var(--ease), color .3s ease;
}
.menu.is-open a { opacity: 1; transform: none; }
.menu a:hover { color: var(--gold); }
.menu__foot { margin-top: 30px; opacity: 0; transition: opacity .6s ease .3s; }
.menu.is-open .menu__foot { opacity: 1; }

/* ---------- 8. Layout / secciones ---------- */
.section { padding: var(--pad-y) var(--gut); position: relative; }
.section--tight { padding-top: clamp(50px, 7vh, 90px); }

.sec-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  padding-bottom: clamp(38px, 5vw, 70px);
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(38px, 5vw, 70px);
}
.sec-head__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.sec-head .idx { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .3em; color: var(--gold); }
.sec-head h2 { margin-top: 14px; }

/* ---------- 9. Reveals ---------- */
[data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }

.word { display: inline-block; overflow: hidden; vertical-align: top; }
.word > i {
  display: inline-block;
  font-style: inherit;
  transition: transform 1s var(--ease);
  transition-delay: calc(var(--i, 0) * 45ms);
}
.is-split .word > i { transform: translateY(110%); }
.is-split.is-in .word > i { transform: translateY(0); }

.line-mask { display: block; overflow: hidden; }

/* ---------- 10. Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh; /* evita el salto con la barra del navegador móvil */
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: calc(var(--nav-h) + 30px) var(--gut) clamp(26px, 4vh, 46px);
  overflow: hidden;
  isolation: isolate;
}
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  z-index: -2;
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  z-index: -1;
  background:
    radial-gradient(120% 80% at 50% 100%, rgba(7, 8, 10, .96) 0%, rgba(7, 8, 10, .45) 42%, rgba(7, 8, 10, 0) 70%),
    linear-gradient(180deg, rgba(7, 8, 10, .85) 0%, rgba(7, 8, 10, .1) 32%, rgba(7, 8, 10, .55) 100%);
  pointer-events: none;
}
.hero__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: auto; flex-wrap: wrap; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid var(--line-2);
  border-radius: 100px;
  padding: 8px 16px;
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: .22em; text-transform: uppercase;
  background: rgba(7, 8, 10, .35);
  backdrop-filter: blur(6px);
}
.hero__badge i { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 rgba(200, 163, 92, .6); animation: pulse 2.4s infinite; }
@keyframes pulse {
  70% { box-shadow: 0 0 0 9px rgba(200, 163, 92, 0); }
  100% { box-shadow: 0 0 0 0 rgba(200, 163, 92, 0); }
}

.hero__title { margin: 0 0 clamp(22px, 3vw, 38px); }
.hero__title .line { display: block; overflow: hidden; }
.hero__title .line > span { display: block; }
.hero__title .word > i { transition-delay: calc(var(--i) * 55ms); }
.hero__title .l3 .word > i { transition-delay: calc(220ms + var(--i) * 55ms); }

.hero__bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(24px, 4vw, 60px);
  align-items: end;
}
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }

.btn {
  --bg: var(--paper);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 17px 30px;
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: .18em;
  text-transform: uppercase;
  overflow: hidden;
  isolation: isolate;
  transition: color .45s ease, border-color .45s ease;
  border: 1px solid var(--line-2);
  will-change: transform;
}
.btn::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--bg);
  transform: translateY(101%);
  transition: transform .6s var(--ease);
  z-index: -1;
}
.btn:hover { color: var(--ink); border-color: var(--bg); }
.btn:hover::before { transform: translateY(0); }
.btn--gold { --bg: var(--gold); border-color: rgba(200, 163, 92, .45); color: var(--gold-lt); }
.btn--gold:hover { color: var(--ink); }
.btn svg { width: 14px; height: 14px; transition: transform .5s var(--ease); }
.btn:hover svg { transform: translateX(4px); }

.hero__scroll {
  position: absolute;
  left: var(--gut); bottom: clamp(26px, 4vh, 46px);
  font-family: var(--font-mono);
  font-size: 9.5px; letter-spacing: .3em; text-transform: uppercase;
  color: var(--muted);
  display: flex; align-items: center; gap: 12px;
}
.hero__scroll i { display: block; width: 1px; height: 42px; background: linear-gradient(var(--gold), transparent); animation: scrollLine 2.2s var(--ease-io) infinite; transform-origin: top; }
@keyframes scrollLine { 0% { transform: scaleY(0); opacity: 0; } 40% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1) translateY(42px); opacity: 0; } }

/* Capa base del hero: se ve al instante, incluso antes de que cargue el 3D */
.hero__fallback {
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(45% 45% at 50% 45%, rgba(200, 163, 92, .28) 0%, transparent 62%),
    radial-gradient(70% 60% at 78% 20%, rgba(120, 150, 190, .12) 0%, transparent 60%),
    var(--ink);
}
.no-webgl #hero-canvas { display: none; }
.no-webgl .hero__fallback {
  z-index: -2;
  animation: fbFloat 12s ease-in-out infinite alternate;
}
@keyframes fbFloat { to { transform: scale(1.08) translateY(-2%); } }

/* ---------- 11. Marquee ---------- */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 26px 0;
  overflow: hidden;
  display: flex;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track { display: flex; gap: clamp(40px, 7vw, 110px); flex: none; align-items: center; padding-right: clamp(40px, 7vw, 110px); animation: slide 34s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-100%); } }
.marquee__track img { height: clamp(26px, 3vw, 42px); width: auto; object-fit: contain; filter: grayscale(1) brightness(2.2); opacity: .5; transition: filter .5s ease, opacity .5s ease; }
.marquee__track img:hover { filter: none; opacity: 1; }
.marquee__txt { font-family: var(--font-mono); font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted-2); white-space: nowrap; }

/* ---------- 12. Servicios ---------- */
.svc-list { border-top: 1px solid var(--line); }
.svc {
  display: grid;
  grid-template-columns: 68px minmax(0, 1.05fr) minmax(0, 1.15fr) 46px;
  gap: clamp(16px, 3vw, 50px);
  align-items: center;
  padding: clamp(26px, 3.4vw, 44px) 0;
  border-bottom: 1px solid var(--line);
  position: relative;
  isolation: isolate;
  transition: padding-left .6s var(--ease);
}
.svc::before {
  content: '';
  position: absolute; inset: 0 -20px;
  background: linear-gradient(90deg, rgba(200, 163, 92, .10), transparent 65%);
  opacity: 0;
  transition: opacity .6s ease;
  z-index: -1;
}
.svc:hover { padding-left: 20px; }
.svc:hover::before { opacity: 1; }
.svc__n { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .2em; color: var(--muted-2); }
.svc__t {
  font-family: var(--font-display);
  font-weight: 700;
  font-variation-settings: 'wdth' 108;
  text-transform: uppercase;
  font-size: clamp(1.15rem, 2.3vw, 2rem);
  letter-spacing: -.02em;
  line-height: 1.04;
  transition: color .45s ease;
}
.svc:hover .svc__t { color: var(--gold-lt); }
.svc__d { color: var(--muted); font-size: .95rem; line-height: 1.62; }
.svc__arrow { justify-self: end; color: var(--muted-2); transition: transform .6s var(--ease), color .4s ease; }
.svc:hover .svc__arrow { transform: translate(6px, -6px); color: var(--gold); }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(34px, 4vw, 56px); }
.chip {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: .16em; text-transform: uppercase;
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 9px 16px;
  color: var(--muted);
  transition: border-color .4s ease, color .4s ease, background .4s ease;
}
.chip:hover { border-color: var(--gold); color: var(--gold-lt); background: rgba(200, 163, 92, .07); }

/* ---------- 13. Método / 3D arquitectura ---------- */
.method {
  position: relative;
  background: linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 30%, var(--ink) 100%);
  border-top: 1px solid var(--line);
}
.method__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(30px, 5vw, 80px); align-items: start; }
.method__sticky { position: sticky; top: calc(var(--nav-h) + 22px); }
.method__canvas-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(200, 163, 92, .05), transparent 60%),
    radial-gradient(70% 60% at 50% 100%, rgba(200, 163, 92, .07), transparent 70%);
  overflow: hidden;
}
#vault-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.method__hud {
  position: absolute;
  left: 16px; right: 16px; bottom: 14px;
  display: flex; justify-content: space-between; gap: 12px;
  font-family: var(--font-mono);
  font-size: 9px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted-2);
  pointer-events: none;
}
.method__hud b { color: var(--gold); font-weight: 400; }
.method__grid-lines {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(90deg, var(--line) 1px, transparent 1px),
    linear-gradient(180deg, var(--line) 1px, transparent 1px);
  background-size: 12.5% 12.5%;
  opacity: .5;
}

.steps { counter-reset: step; }
.step {
  padding: clamp(20px, 2.6vw, 32px) 0;
  border-bottom: 1px solid var(--line);
  opacity: .34;
  transition: opacity .7s ease;
}
.step:first-child { border-top: 1px solid var(--line); }
.step.is-active { opacity: 1; }
.step__n { font-family: var(--font-mono); font-size: 10px; letter-spacing: .26em; color: var(--gold); }
.step h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-variation-settings: 'wdth' 106;
  text-transform: uppercase;
  font-size: clamp(1.1rem, 2vw, 1.7rem);
  letter-spacing: -.02em;
  margin: 8px 0 10px;
  line-height: 1.05;
}
.step p { color: var(--muted); font-size: .95rem; max-width: 46ch; }

/* ---------- 14. Paquetes ---------- */
.packs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); }
.pack {
  padding: clamp(26px, 3vw, 44px) clamp(22px, 2.4vw, 36px);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: background .6s ease;
}
.pack:last-child { border-right: 0; }
.pack:hover { background: rgba(244, 242, 237, .022); }
.pack.is-featured { background: linear-gradient(180deg, rgba(200, 163, 92, .09), rgba(200, 163, 92, .015)); }
.pack__tag {
  position: absolute; top: 0; right: 0;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 9px; letter-spacing: .2em; text-transform: uppercase;
  padding: 6px 12px;
}
.pack__k { font-family: var(--font-mono); font-size: 10px; letter-spacing: .26em; color: var(--gold); }
.pack__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-variation-settings: 'wdth' 110;
  text-transform: uppercase;
  font-size: clamp(1.35rem, 2.4vw, 2.1rem);
  letter-spacing: -.03em;
  line-height: 1;
  margin: 12px 0 6px;
}
.pack__desc { color: var(--muted); font-size: .88rem; min-height: 2.6em; }
.pack__price { display: flex; align-items: baseline; gap: 10px; margin: 22px 0 6px; }
.pack__price s { color: var(--muted-2); font-size: .95rem; }
.pack__price b {
  font-family: var(--font-display);
  font-weight: 800;
  font-variation-settings: 'wdth' 108;
  font-size: clamp(2rem, 3.4vw, 3rem);
  letter-spacing: -.04em;
  line-height: 1;
}
.pack__price span { font-family: var(--font-mono); font-size: 10px; letter-spacing: .2em; color: var(--muted); }
.pack__off {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold-lt);
  border: 1px solid rgba(200, 163, 92, .35);
  background: rgba(200, 163, 92, .08);
  border-radius: 100px;
  padding: 5px 12px;
  margin-bottom: 20px;
}
.pack__feat { display: grid; gap: 11px; margin-bottom: 28px; }
.pack__feat li { display: flex; gap: 11px; align-items: flex-start; font-size: .89rem; color: #c6c4bf; }
.pack__feat li.off { color: var(--muted-2); text-decoration: line-through; text-decoration-color: rgba(244, 242, 237, .2); }
.pack__feat svg { flex: none; width: 13px; height: 13px; margin-top: 5px; color: var(--gold); }
.pack__feat li.off svg { color: var(--muted-2); }
.pack .btn { margin-top: auto; justify-content: center; }

.cmp { margin-top: clamp(28px, 3vw, 46px); border: 1px solid var(--line); }
.cmp summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted);
  transition: color .4s ease, background .4s ease;
}
.cmp summary::-webkit-details-marker { display: none; }
.cmp summary:hover { color: var(--paper); background: rgba(244, 242, 237, .02); }
.cmp[open] summary { border-bottom: 1px solid var(--line); }
.cmp__body { overflow-x: auto; }
.cmp table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: .87rem; }
.cmp th, .cmp td { padding: 13px 20px; text-align: left; border-bottom: 1px solid var(--line); }
.cmp thead th { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); font-weight: 400; }
.cmp td:not(:first-child), .cmp th:not(:first-child) { text-align: center; }
.cmp .grp td { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); background: rgba(244, 242, 237, .022); }
.cmp .hl { color: var(--gold-lt); }
.cmp tbody tr:hover td { background: rgba(244, 242, 237, .015); }

/* ---------- 15. Proyectos (scroll horizontal) ---------- */
.work { position: relative; background: var(--ink); }
.work__pin { height: 100svh; display: flex; align-items: center; overflow: hidden; }
.work__track { display: flex; gap: clamp(20px, 3vw, 46px); padding: 0 var(--gut); will-change: transform; }
.work-card { flex: none; width: clamp(280px, 42vw, 560px); }
.work-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--ink-3);
  border: 1px solid var(--line);
}
.work-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: grayscale(.55) contrast(1.06) brightness(.9);
  transform: scale(1.06);
  transition: transform 1.2s var(--ease), filter .8s ease;
}
.work-card:hover .work-card__media img { transform: scale(1); filter: none; }
.work-card__media::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(7, 8, 10, .7));
  opacity: 0; transition: opacity .6s ease;
}
.work-card:hover .work-card__media::after { opacity: 1; }
.work-card__meta { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding-top: 16px; }
.work-card__meta h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-variation-settings: 'wdth' 106;
  text-transform: uppercase;
  font-size: clamp(1.05rem, 1.7vw, 1.5rem);
  letter-spacing: -.02em;
  line-height: 1.05;
}
.work-card__meta p { color: var(--muted); font-size: .86rem; margin-top: 6px; max-width: 34ch; }
.work-card__n { font-family: var(--font-mono); font-size: 10px; letter-spacing: .2em; color: var(--muted-2); }
.work-card__link { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-family: var(--font-mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.work-card__link svg { width: 12px; height: 12px; transition: transform .5s var(--ease); }
.work-card:hover .work-card__link svg { transform: translate(4px, -4px); }

/* ---------- 16. Testimonios ---------- */
.quotes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.quote { background: var(--ink); padding: clamp(28px, 3.4vw, 52px); transition: background .6s ease; }
.quote:hover { background: var(--ink-2); }
.quote p {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2.1vw, 1.85rem);
  line-height: 1.34;
  letter-spacing: -.01em;
}
.quote footer { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.quote strong { display: block; font-weight: 500; font-size: .92rem; }
.quote span { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }

/* ---------- 17. Equipo ---------- */
.founder {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(26px, 4vw, 64px);
  align-items: center;
  border: 1px solid var(--line);
  padding: clamp(22px, 2.6vw, 40px);
  background: linear-gradient(120deg, rgba(200, 163, 92, .05), transparent 55%);
}
.founder__media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border: 1px solid var(--line); }
.founder__media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.08); transition: filter .8s ease, transform 1.2s var(--ease); }
.founder:hover .founder__media img { filter: grayscale(0); transform: scale(1.03); }
.founder__role {
  position: absolute; left: 0; bottom: 0;
  background: var(--ink);
  font-family: var(--font-mono);
  font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase;
  padding: 9px 14px;
  border-top: 1px solid var(--line); border-right: 1px solid var(--line);
  color: var(--gold);
}
.founder h3 { margin-bottom: 16px; }
.founder p { color: #c6c4bf; font-size: .95rem; }

.people { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: clamp(30px, 4vw, 56px); }
.person { background: var(--ink); padding: 18px 18px 22px; }
.person__img { aspect-ratio: 1 / 1; overflow: hidden; margin-bottom: 14px; background: var(--ink-3); }
.person__img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter .7s ease, transform 1s var(--ease); }
.person:hover .person__img img { filter: none; transform: scale(1.05); }
.person h4 { font-family: var(--font-display); font-weight: 700; font-variation-settings: 'wdth' 104; text-transform: uppercase; font-size: .98rem; letter-spacing: -.01em; }
.person p { font-family: var(--font-mono); font-size: 9px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-top: 5px; }

/* ---------- 18. FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: clamp(20px, 2.4vw, 30px) 0;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 600;
  font-variation-settings: 'wdth' 102;
  font-size: clamp(1rem, 1.6vw, 1.3rem);
  letter-spacing: -.01em;
  transition: color .4s ease;
}
.faq__q:hover { color: var(--gold-lt); }
.faq__icon { flex: none; position: relative; width: 15px; height: 15px; }
.faq__icon::before, .faq__icon::after {
  content: ''; position: absolute; background: currentColor;
  transition: transform .5s var(--ease), opacity .4s ease;
}
.faq__icon::before { top: 7px; left: 0; width: 15px; height: 1px; }
.faq__icon::after { left: 7px; top: 0; width: 1px; height: 15px; }
.faq__item.is-open .faq__icon::after { transform: rotate(90deg); opacity: 0; }
.faq__a { overflow: hidden; height: 0; transition: height .6s var(--ease); }
.faq__a > div { padding: 0 0 26px; color: var(--muted); max-width: 68ch; font-size: .95rem; }

/* ---------- 19. Contacto ---------- */
.contact { border-top: 1px solid var(--line); background: radial-gradient(80% 60% at 50% 0%, rgba(200, 163, 92, .07), transparent 60%); }
.contact__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(30px, 5vw, 80px); align-items: start; }
.contact__main { display: flex; flex-direction: column; gap: 18px; }
.contact__title {
  font-weight: 800;
  font-variation-settings: 'wdth' 118;
  font-size: clamp(3.2rem, 13vw, 12rem);
  line-height: .88;
  letter-spacing: -.04em;
  text-transform: uppercase;
  margin-top: clamp(48px, 7vw, 96px);
  white-space: nowrap;
  overflow: hidden;
}
.contact__mail {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 800;
  font-variation-settings: 'wdth' 110;
  font-size: clamp(1.25rem, 3.1vw, 2.9rem);
  letter-spacing: -.03em;
  text-transform: none;
  margin-top: 20px;
  position: relative;
}
.contact__mail::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform .7s var(--ease);
}
.contact__mail:hover::after { transform: scaleX(1); transform-origin: left; }
.contact__list { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.contact__row { background: var(--ink); padding: 18px 22px; display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.contact__row b { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); font-weight: 400; }
.contact__row span, .contact__row a { font-size: .95rem; }
.contact__row a:hover { color: var(--gold-lt); }

.socials { display: flex; gap: 10px; margin-top: 24px; }
.socials a {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  transition: background .45s ease, color .45s ease, border-color .45s ease, transform .45s var(--ease);
}
.socials a svg { width: 16px; height: 16px; fill: currentColor; }
.socials a:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); transform: translateY(-3px); }

/* ---------- 20. Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: clamp(40px, 5vw, 70px) var(--gut) 30px; }
.footer__mark {
  font-family: var(--font-display);
  font-weight: 800;
  font-variation-settings: 'wdth' 118;
  text-transform: uppercase;
  font-size: clamp(2.2rem, 13.2vw, 10.5rem);
  line-height: .9;
  letter-spacing: -.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(244, 242, 237, .18);
  transition: -webkit-text-stroke-color .6s ease;
  display: flex;
  align-items: center;
  white-space: nowrap;
  width: 100%;
  overflow: hidden;
}
.footer__mark:hover { -webkit-text-stroke-color: rgba(200, 163, 92, .55); }
.footer__cols { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); }
.footer__cols nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer__cols a, .footer__cols p { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.footer__cols a:hover { color: var(--gold-lt); }

/* ---------- 21. FAB ---------- */
.fab { position: fixed; right: clamp(16px, 2vw, 30px); bottom: clamp(16px, 2vw, 30px); z-index: 700; display: grid; gap: 10px; justify-items: end; }
.fab__btn {
  width: 54px; height: 54px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--gold);
  color: var(--ink);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .5);
  transition: transform .5s var(--ease), background .4s ease;
}
.fab__btn:hover { transform: scale(1.08) rotate(-8deg); }
.fab__btn svg { width: 22px; height: 22px; fill: currentColor; }
.fab__btn--mini { width: 42px; height: 42px; background: var(--ink-3); color: var(--paper); border: 1px solid var(--line-2); box-shadow: none; }
.fab__btn--mini svg { width: 16px; height: 16px; }
.fab__stack { display: grid; gap: 10px; justify-items: end; opacity: 0; transform: translateY(14px); pointer-events: none; transition: opacity .5s ease, transform .5s var(--ease); }
.fab:hover .fab__stack { opacity: 1; transform: none; pointer-events: auto; }

/* ---------- 22. Progreso de scroll ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 850; pointer-events: none; }
.progress i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--gold-dp), var(--gold-lt)); transform: scaleX(0); transform-origin: left; }

/* ---------- 23. Base táctil y zonas seguras ---------- */
a, button, summary, [data-magnetic] {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
@media (hover: none) {
  .cursor, .cursor-dot { display: none !important; }
}
/* Defensa global: nada dentro de un grid/flex puede inflar la página por su contenido */
.hero__bottom > *,
.sec-head__row > *, .contact__grid > *, .work__track { min-width: 0; }
.lead, .footer__mark, .hero__badge, .nav__logo-fallback {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.nav, .section, .footer, .hero, .marquee {
  padding-left: max(var(--gut), env(safe-area-inset-left));
  padding-right: max(var(--gut), env(safe-area-inset-right));
}
.fab {
  right: max(clamp(16px, 2vw, 30px), env(safe-area-inset-right));
  bottom: max(clamp(16px, 2vw, 30px), env(safe-area-inset-bottom));
}
.footer { padding-bottom: max(30px, env(safe-area-inset-bottom)); }
.hero { padding-bottom: max(clamp(26px, 4vh, 46px), env(safe-area-inset-bottom)); }

/* ---------- 23b. Tablet / laptop pequeño ---------- */
@media (max-width: 1180px) {
  .packs { grid-template-columns: 1fr; }
  .pack { border-right: 0; border-bottom: 1px solid var(--line); }
  .pack:last-child { border-bottom: 0; }
}
@media (max-width: 1080px) {
  .method__grid { grid-template-columns: 1fr; }
  .method__sticky { position: relative; top: 0; }
  .method__canvas-wrap { max-width: 560px; }
  .founder { grid-template-columns: 1fr; }
  .founder__media { max-width: 420px; }
  .people { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quotes { grid-template-columns: 1fr; }
}

/* ---------- 23c. Móvil ---------- */
@media (max-width: 900px) {
  .nav__links, .nav__cta { display: none; }
  .burger { display: block; }
  .nav.is-solid { backdrop-filter: none; background: rgba(7, 8, 10, .94); }

  /* el grano animado cuesta GPU en móvil: fuera */
  .grain { display: none; }

  .svc { grid-template-columns: 40px 1fr; row-gap: 10px; }
  .svc__d { grid-column: 2; }
  .svc__arrow { display: none; }

  .hero__top .eyebrow { text-align: left; }
  .hero .lead { max-width: 100%; }
  .hero__scroll { display: none; }

  .menu { justify-content: flex-start; padding-top: calc(var(--nav-h) + 30px); overflow-y: auto; }

  .contact__grid { grid-template-columns: 1fr; }
  .contact__mail { font-size: clamp(1.1rem, 6.4vw, 2.4rem); word-break: break-word; }

  .cmp table { min-width: 560px; font-size: .84rem; }
  .cmp th, .cmp td { padding: 11px 14px; }

  .work__pin { height: auto; padding: 60px 0; }
  .work__track { flex-direction: column; transform: none !important; }
  .work-card { width: 100%; }
  .work-card__media img { filter: none; transform: none; }
}
@media (max-width: 560px) {
  .people { grid-template-columns: 1fr; }
  .hero__top { margin-bottom: 40px; }
  .h-giant { font-size: clamp(2.6rem, 11.4vw, 13rem); }
  .footer__mark { font-size: clamp(2rem, 11vw, 7.5rem); }

  .svc { grid-template-columns: 1fr; gap: 8px; }
  .svc__d { grid-column: 1; }
  .svc__n { color: var(--gold); }

  .btn { padding: 15px 24px; font-size: 10.5px; }
  .hero__actions .btn { flex: 1 1 auto; justify-content: center; }
  .quote p { font-size: clamp(1.12rem, 5.4vw, 1.5rem); }
  .pack__feat { font-size: .85rem; }
  .footer__cols { flex-direction: column; gap: 16px; }
}
@media (max-width: 380px) {
  .hero__badge { font-size: 9px; padding: 7px 13px; }
}

/* Pantallas bajas en horizontal (móvil girado) */
@media (max-height: 540px) and (orientation: landscape) {
  .hero { min-height: 520px; }
  .hero__title { font-size: clamp(2rem, 7vh, 4rem); }
  .menu a { font-size: clamp(1.2rem, 5.4vh, 2.2rem); padding: 5px 0; }
  .work__pin { height: auto; }
}

/* ---------- 24. Accesibilidad ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; }
  .word > i { transform: none; }
}

:focus-visible { outline: 1px solid var(--gold); outline-offset: 3px; }

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

/* Red de seguridad: si el JS no arranca, todo el contenido se muestra igual */
.no-gc [data-reveal],
.no-gc .word > i,
.no-gc .loader { opacity: 1 !important; transform: none !important; }
.no-gc .loader { display: none !important; }
