/* ===================================
   DEMO B v2 — Manque Consultores
   CONCEPTO: El territorio como interfaz
   Stack: GSAP + Draggable + Lenis
   Fuente: Archivo (100→900 + italic)
   =================================== */

@import url('https://fonts.googleapis.com/css2?family=Archivo:ital,wght@0,100..900;1,100..900&display=swap');

:root {
  --ink:        #21261D;
  --ink-2:      #3A4232;
  --ink-3:      #2D3226;
  --ink-earth:  #252920;
  --cream:      #EFEFE7;
  --cream-2:    #C8CEBE;
  --cream-3:    #A3AD93;
  --teal:       #96A47F;
  --teal-d:     #5A6149;
  --moss:       #96A47F;
  --olive:      #5A6149;
  --sand:       #A3AD93;
  --beige:      #C8CEBE;
  --font:       'Archivo', system-ui, sans-serif;
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io:    cubic-bezier(0.76, 0, 0.24, 1);
  --max:        1440px;
  --hh:         68px;
  --bar-h: 0px; /* (sin barra) */
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  overflow-x: clip;
  scroll-behavior: auto; /* Lenis maneja el smooth */
}

body {
  font-family: var(--font);
  background: var(--ink);
  color: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { max-width: 100%; display: block; object-fit: cover; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

button {
  -webkit-appearance: none; appearance: none;
  background: transparent; border: 0; border-radius: 0;
  box-shadow: none; font-family: var(--font);
  cursor: pointer; color: inherit;
}

/* ─── GRAIN ─── */
#grain-canvas {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 9000;
  opacity: 0.035;
  mix-blend-mode: screen;
}

/* ─── TOPO CANVAS — fondo permanente ─── */
#topo-canvas {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.12;
}

/* ─── LOADER ─── */
#loader {
  position: fixed; inset: 0;
  z-index: 20000;
  background: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: all;
}
#loader-svg {
  width: min(700px, 90vw);
  height: auto;
  overflow: visible;
}
#loader-counter {
  font-size: clamp(80px, 12vw, 160px);
  font-weight: 900;
  letter-spacing: -0.06em;
  color: var(--cream);
  line-height: 1;
  margin-top: 32px;
  font-variant-numeric: tabular-nums;
}
#loader-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--moss);
  margin-top: 16px;
}
#loader.done {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s var(--ease-out);
}

/* ─── CURSOR ─── (custom cursor desactivado — se usa el cursor nativo) */
#cursor-dot, #cursor-ring, .cursor, .cursor-ring { display: none !important; }
#cursor-dot-disabled {
  position: fixed; top: 0; left: 0;
  width: 8px; height: 8px;
  background: var(--moss); border-radius: 50%;
  pointer-events: none; z-index: 10001;
  transform: translate(-50%, -50%);
  transition: width 0.3s var(--ease-out), height 0.3s var(--ease-out),
              background 0.3s ease, border-radius 0.3s ease;
}
#cursor-ring {
  position: fixed; top: 0; left: 0;
  width: 40px; height: 40px;
  border: 1px solid rgba(122,135,106,0.4);
  border-radius: 50%;
  pointer-events: none; z-index: 10000;
  transform: translate(-50%, -50%);
  transition: width 0.4s var(--ease-out), height 0.4s var(--ease-out),
              border-color 0.3s ease, border-radius 0.4s var(--ease-out);
}
body.cu-link #cursor-dot { width: 20px; height: 20px; background: var(--cream); }
body.cu-link #cursor-ring { width: 56px; height: 56px; opacity: 0.4; }
body.cu-drag #cursor-dot { width: 48px; height: 48px; background: var(--moss); opacity: 0.15; border-radius: 4px; }
body.cu-drag #cursor-ring { width: 52px; height: 52px; border-color: var(--moss); border-radius: 4px; }
@media (pointer: coarse) {
  #cursor-dot, #cursor-ring { display: none; }
  body { cursor: auto; }
  button { cursor: pointer; }
}

/* ─── IMAGE TRAIL ─── */
#trail-container {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 500;
  overflow: hidden;
}
.trail-img {
  position: absolute;
  width: 200px; height: 140px;
  object-fit: cover;
  border-radius: 1px;
  opacity: 0;
  transform: scale(0.85) rotate(0deg);
  pointer-events: none;
  will-change: transform, opacity;
  filter: brightness(0.8) saturate(0.7);
}

/* ─── SCROLL PROGRESS ─── */
.scroll-bar {
  position: fixed; top: 0; left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--moss), var(--teal-d));
  width: 0%; z-index: 9999;
  pointer-events: none;
}

/* ─── PROPUESTA BAR ─── */
.propuesta-bar {
  background: var(--teal-d);
  color: var(--cream);
  text-align: center;
  padding: 9px 16px;
  font-size: 12.5px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  gap: 10px; flex-wrap: wrap;
  position: relative; z-index: 200;
}
.propuesta-bar a { color: var(--cream); text-decoration: underline; font-weight: 900; }
.pb-tag {
  background: rgba(0,0,0,0.15);
  padding: 2px 9px; border-radius: 3px;
  font-size: 10.5px; font-weight: 900;
  letter-spacing: 0.08em; text-transform: uppercase;
}

/* ─── ÍNDICE LATERAL ─── */
.side-index {
  position: fixed;
  right: 28px; top: 50%;
  transform: translateY(-50%);
  z-index: 300;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0;
}
.si-line {
  position: absolute;
  right: 3px; top: 0; bottom: 0;
  width: 1px;
  background: rgba(239,239,231,0.08);
}
.si-item {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 10px 16px 10px 0;
  position: relative;
  cursor: pointer;
}
.si-item::after {
  content: '';
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(239,239,231,0.2);
  transition: background 0.3s ease, transform 0.3s ease;
}
.si-item.active::after,
.si-item:hover::after {
  background: var(--moss);
  transform: translateY(-50%) scale(1.4);
}
.si-coord {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: rgba(239,239,231,0.25);
  transition: color 0.3s ease;
  font-variant-numeric: tabular-nums;
}
.si-name {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(239,239,231,0.0);
  transition: color 0.3s ease;
  white-space: nowrap;
}
.si-item:hover .si-coord,
.si-item.active .si-coord { color: var(--moss); }
.si-item:hover .si-name,
.si-item.active .si-name { color: rgba(239,239,231,0.5); }

@media (max-width: 1100px) {
  .side-index { display: none; }
}

/* ─── HEADER ─── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--hh);
  display: flex; align-items: center;
  background: rgba(33,38,29,0);
  transition: background 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(33,38,29,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: rgba(239,239,231,0.05);
}
.header-inner {
  max-width: var(--max); margin: 0 auto;
  padding: 0 48px;
  display: flex; align-items: center; justify-content: space-between;
  width: 100%;
}
.logo-link { display: flex; align-items: center; gap: 10px; }
.logo-img { height: 28px; width: auto; display: none; }
.logo-wordmark {
  font-size: 13px; font-weight: 900;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--cream);
}
.logo-dot { color: var(--moss); }
/* Guiño a la marca completa junto al logo MNQ */
.logo-sub {
  font-size: 9.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--cream-3); white-space: nowrap;
  padding-left: 11px; border-left: 1px solid rgba(240,237,228,0.18);
}
@media (max-width: 560px) { .logo-sub { display: none; } }
.nav-main { display: flex; align-items: center; gap: 44px; }
.nav-main a {
  font-size: 10px; font-weight: 800;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--cream-3);
  position: relative;
  transition: color 0.3s ease;
}
.nav-main a::after {
  content: ''; position: absolute; bottom: -3px; left: 0;
  width: 0; height: 1px; background: var(--moss);
  transition: width 0.3s var(--ease-out);
}
.nav-main a:hover { color: var(--cream); }
.nav-main a:hover::after { width: 100%; }
.nav-cta {
  color: var(--ink) !important;
  background: var(--moss);
  padding: 10px 24px; border-radius: 1px;
  font-size: 10px !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--cream) !important; }
.hamburger { display: none; flex-direction: column; gap: 6px; padding: 8px; }
.hamburger span { display: block; width: 22px; height: 1.5px; background: var(--cream); transition: all 0.3s ease; }

/* ─── MOBILE DRAWER ─── */
.mobile-drawer { display: none; position: fixed; inset: 0; z-index: 999; }
.mobile-drawer.open { display: block; }
.drawer-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.7); }
.drawer-panel {
  position: absolute; top: 0; right: 0;
  width: min(320px, 85vw); height: 100%;
  background: var(--ink-2); padding: 32px 28px;
  display: flex; flex-direction: column;
  border-left: 1px solid rgba(239,239,231,0.06);
}
.drawer-close {
  -webkit-appearance: none; appearance: none;
  background: transparent; border: 0;
  font-size: 24px; color: var(--cream);
  cursor: pointer; margin-left: auto; margin-bottom: 56px;
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
}
.drawer-nav { display: flex; flex-direction: column; }
.drawer-nav a {
  font-size: 14px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--cream-2); padding: 20px 0;
  border-bottom: 1px solid rgba(239,239,231,0.06);
  transition: color 0.3s ease;
}
.drawer-nav a:hover { color: var(--moss); }
.drawer-cta { color: var(--moss) !important; border-bottom: 0 !important; margin-top: 32px; }

/* ─── HERO ─── */
.hero {
  position: relative;
  height: calc(100dvh - var(--hh) - var(--bar-h));
  min-height: 580px;
  max-height: 1100px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  z-index: 2;
}

/* Gradiente oscuro que garantiza legibilidad */
.hero::before {
  content: '';
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(170deg,
      rgba(33,38,29,0.55) 0%,
      rgba(33,38,29,0.35) 40%,
      rgba(33,38,29,0.88) 100%),
    radial-gradient(ellipse 80% 60% at 20% 80%, rgba(90,97,73,0.22) 0%, transparent 60%),
    radial-gradient(ellipse 60% 70% at 80% 20%, rgba(122,135,106,0.18) 0%, transparent 55%);
  pointer-events: none;
}

/* Coordenada vertical — sangra fuera del box */
.hero-coord-left {
  position: absolute;
  left: -18px; bottom: 40%;
  z-index: 3;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(163,173,147,0.45);
  white-space: nowrap;
  user-select: none;
}

/* Número gigante de fondo — cruza sobre la imagen */
.hero-bg-num {
  position: absolute;
  right: -0.05em; bottom: -0.08em;
  z-index: 2;
  font-size: clamp(140px, 22vw, 360px);
  font-weight: 900;
  letter-spacing: -0.06em;
  color: rgba(239,239,231,0.03);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

/* Línea diagonal decorativa */
.hero-diag {
  position: absolute;
  left: 0; top: 0;
  width: 1px;
  height: 40%;
  background: linear-gradient(to bottom, transparent, rgba(122,135,106,0.3), transparent);
  z-index: 3;
  transform: translateX(72px) rotate(12deg);
  transform-origin: top left;
}

.hero-content {
  position: relative; z-index: 4;
  /* padding-bottom deja libre la franja de stats (~98px) para que nada quede tapado */
  padding: 0 88px 108px 88px;
  max-width: var(--max);
  width: 100%;
  /* Offset intencional — no centrado */
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-eyebrow {
  font-size: 9px; font-weight: 800;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--moss);
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 16px;
  opacity: 0; transform: translateY(12px);
  transition: opacity 0.7s ease, transform 0.7s var(--ease-out);
}
.hero-eyebrow.in { opacity: 1; transform: translateY(0); }
.eyebrow-line {
  display: block; width: 0; height: 1px;
  background: var(--moss); flex-shrink: 0;
  transition: width 1.1s var(--ease-out) 0.5s;
}
.hero-eyebrow.in .eyebrow-line { width: 44px; }

/* TÍTULO PRINCIPAL — líneas que se pueden posicionar independientemente */
.hero-title {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 0;
  width: 100%;
}
.ht-line {
  display: block;
  font-size: clamp(30px, 4.8vw, 72px);
  font-weight: 900;
  line-height: 0.94;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: var(--cream);
  overflow: hidden;
}
/* Línea 1 — alineada izquierda */
.ht-line-1 { align-self: flex-start; }
/* Línea 2 — desplazada, en italic, color musgo */
.ht-line-2 {
  align-self: flex-start;
  margin-left: clamp(40px, 6vw, 120px);
  color: var(--moss);
}
.ht-line-2 em { font-style: italic; font-weight: 200; color: var(--cream); }
/* Línea 3 — sangra a la derecha, más grande */
.ht-line-3 {
  align-self: flex-end;
  font-size: clamp(30px, 4.8vw, 74px);
  color: rgba(239,239,231,0.55);
  font-style: italic;
  font-weight: 900;
  margin-right: -0.02em;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 9px; font-weight: 800;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(239,239,231,0.6);
  border: 1px solid rgba(239,239,231,0.08);
  padding: 6px 14px; border-radius: 2px;
  margin-top: 18px;
  align-self: flex-start;
  opacity: 0;
  transition: opacity 0.8s ease 0.6s;
}
.hero-badge.in { opacity: 1; }
.hb-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--moss);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

/* Descripción + CTAs — en flujo, alineada a la derecha (echo del título) */
.hero-desc {
  align-self: flex-end;
  width: min(460px, 100%);
  margin-top: 20px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s ease 0.9s, transform 0.9s var(--ease-out) 0.9s;
}
.hero-desc.in { opacity: 1; transform: translateY(0); }
.hero-desc p {
  font-size: 13px; color: var(--cream-2);
  line-height: 1.7; margin-bottom: 28px;
}
.hero-actions {
  display: flex; gap: 12px; flex-wrap: wrap;
}

/* Stats en el hero — franja horizontal encima del fold */
.hero-stats {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 5;
  display: flex;
  background: rgba(33,38,29,0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(239,239,231,0.06);
  pointer-events: none;
}
.hs-item {
  flex: 1;
  padding: 20px 32px;
  display: flex; flex-direction: column;
  align-items: center;
}
.hs-num {
  font-size: 36px; font-weight: 900;
  letter-spacing: -0.04em; color: var(--cream);
  line-height: 1; height: 40px;
  display: flex; align-items: center;
}
.hs-num sup { font-size: 16px; color: var(--moss); align-self: flex-start; margin-top: 4px; }
.hs-lbl {
  font-size: 8px; font-weight: 800;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--cream-3); margin-top: 4px;
}
.hs-sep {
  width: 1px;
  background: rgba(239,239,231,0.07);
  margin: 16px 0;
  align-self: stretch;
}

/* Scroll hint */
.scroll-hint {
  position: absolute; bottom: 80px; right: 88px;
  z-index: 5;
  display: flex; align-items: center; gap: 10px;
  opacity: 0;
  transition: opacity 0.8s ease 1.8s;
}
.scroll-hint.in { opacity: 1; }
.sh-track {
  width: 1px; height: 48px;
  background: rgba(239,239,231,0.15);
  position: relative; overflow: hidden;
}
.sh-thumb {
  position: absolute;
  width: 100%; height: 50%;
  background: var(--moss);
  top: 0;
  animation: sh-drop 2s var(--ease-io) infinite 2s;
}
@keyframes sh-drop {
  0% { top: -50%; } 100% { top: 150%; }
}
.scroll-hint span {
  font-size: 8px; font-weight: 800;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--cream-3);
  writing-mode: vertical-rl; text-orientation: mixed;
}

/* ─── BOTONES ─── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 10px; font-weight: 800;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink); background: var(--moss);
  padding: 14px 28px; border-radius: 1px;
  transition: background 0.3s ease, transform 0.3s ease;
  white-space: nowrap;
}
.btn-primary:hover { background: var(--cream); transform: translateY(-2px); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 10px; font-weight: 800;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--cream);
  padding: 14px 28px;
  border: 1px solid rgba(239,239,231,0.18); border-radius: 1px;
  transition: border-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
  white-space: nowrap;
}
.btn-ghost:hover { border-color: var(--moss); color: var(--moss); transform: translateY(-2px); }

/* ─── MANIFESTO ─── */
.manifesto {
  position: relative;
  background: var(--ink);
  overflow: hidden;
}

.mf-vert {
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  font-size: 9px; font-weight: 800;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: rgba(239,239,231,0.04);
  white-space: nowrap; user-select: none;
}

/* Cada panel es un bloque independiente */
.mf-panel {
  max-width: 1440px; margin: 0 auto;
  padding: 120px 88px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 80px;
  align-items: center;
  border-bottom: 1px solid rgba(239,239,231,0.05);
}
.mf-panel:last-child { border-bottom: 0; }

/* Panel alternado — imagen a la izquierda */
.mf-panel-alt {
  background: var(--ink-2);
}

.mf-chapter-tag {
  display: flex; align-items: baseline; gap: 16px;
  margin-bottom: 48px;
}
.mf-ch-num {
  font-size: clamp(64px, 8vw, 110px);
  font-weight: 900;
  color: rgba(122,135,106,0.10);
  line-height: 1;
  letter-spacing: -0.06em;
}
.mf-ch-lbl {
  font-size: 9px; font-weight: 800;
  letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--moss);
}

/* Título con 3 líneas de tamaño/peso distintos */
.mf-title {
  display: flex; flex-direction: column; gap: 0;
  margin-bottom: 56px;
}
.mf-t1 {
  font-size: clamp(42px, 5.5vw, 88px);
  font-weight: 900;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: var(--cream);
  line-height: 0.9;
}
.mf-t2 {
  font-size: clamp(36px, 4.5vw, 72px);
  font-weight: 200;
  font-style: italic;
  letter-spacing: -0.03em;
  color: var(--moss);
  line-height: 1.0;
  margin-left: 10%;
}
.mf-t3 {
  font-size: clamp(32px, 4vw, 60px);
  font-weight: 900;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: rgba(239,239,231,0.45);
  line-height: 0.9;
  align-self: flex-end;
}

.mf-body { }
.mf-lead {
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 200; font-style: italic;
  color: var(--cream);
  line-height: 1.45;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}
.mf-para {
  font-size: 14px; color: var(--cream-3);
  line-height: 1.85; margin-bottom: 36px;
}
.mf-cta {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 10px; font-weight: 800;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--moss);
  border-bottom: 1px solid rgba(122,135,106,0.3);
  padding-bottom: 4px;
  transition: color 0.3s ease, border-color 0.3s ease;
}
.mf-cta:hover { color: var(--cream); border-color: var(--cream); }

/* Imagen en panel */
.mf-img-wrap {
  position: relative; overflow: hidden;
  aspect-ratio: 4/3;
}
/* Panel 1: imagen sangra a la derecha */
.mf-panel:not(.mf-panel-alt) .mf-img-wrap {
  margin-right: -88px;
}
/* Panel 2: imagen sangra a la izquierda */
.mf-img-left {
  margin-left: -88px !important;
}
.mf-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(0.72) saturate(0.78);
  transform: scale(1.04);
  transition: transform 7s ease;
}
.mf-img-wrap:hover img { transform: scale(1.0); }
.mf-img-coord {
  position: absolute; bottom: 16px; right: 16px;
  font-size: 8px; font-weight: 800;
  letter-spacing: 0.18em;
  color: rgba(239,239,231,0.55);
  background: rgba(33,38,29,0.55);
  padding: 4px 10px;
}

/* ─── SEC EYEBROW ─── */
.sec-eyebrow {
  font-size: 9px; font-weight: 800;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--moss); margin-bottom: 16px;
}

/* ─── MARQUEE ─── */
.marquee-wrap {
  overflow: hidden;
  border-top: 1px solid rgba(239,239,231,0.05);
  border-bottom: 1px solid rgba(239,239,231,0.05);
  padding: 16px 0;
  background: var(--ink-2);
}
.marquee-track {
  display: flex; white-space: nowrap; will-change: transform;
}
.marquee-content {
  display: flex; gap: 0; flex-shrink: 0;
}
.marquee-content span {
  display: inline-block;
  padding: 0 40px;
  font-size: 10px; font-weight: 800;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--cream-3);
}
.msep { padding: 0 8px !important; color: var(--moss) !important; font-size: 14px !important; letter-spacing: 0 !important; }

/* ─── SERVICIOS ─── */
.servicios {
  background: var(--ink-2);
  position: relative;
  overflow: hidden;
}

.srv-header {
  max-width: var(--max); margin: 0 auto;
  padding: 100px 88px 64px;
  display: flex; align-items: flex-end;
  justify-content: space-between; gap: 40px;
  border-bottom: 1px solid rgba(239,239,231,0.05);
}
.srv-big-title {
  font-size: clamp(40px, 5.5vw, 80px);
  font-weight: 900; letter-spacing: -0.04em;
  text-transform: uppercase; line-height: 0.9;
  color: var(--cream);
}
.srv-big-title em { font-style: italic; font-weight: 200; color: rgba(239,239,231,0.58); text-transform: none; }

/* Imagen hover — aparece y sigue el cursor */
.srv-hover-img {
  position: fixed;
  width: 320px; height: 220px;
  pointer-events: none; z-index: 400;
  opacity: 0; transform: scale(0.9) rotate(-2deg);
  transition: opacity 0.3s ease, transform 0.3s var(--ease-out);
  overflow: hidden; border-radius: 1px;
}
.srv-hover-img img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.8); }
.servicios:hover .srv-hover-img { opacity: 1; transform: scale(1) rotate(0deg); }

.srv-list { max-width: var(--max); margin: 0 auto; }
.srv-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1.4fr) minmax(0, 1.8fr) 48px;
  gap: 40px; align-items: center;
  padding: 36px 88px;
  border-bottom: 1px solid rgba(239,239,231,0.05);
  position: relative; overflow: hidden;
  transition: color 0.4s ease;
}
.srv-row::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(122,135,106,0.06) 0%, transparent 60%);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.55s var(--ease-out);
  z-index: 0;
}
.srv-row:hover::before { transform: scaleX(1); }
.srv-row > * { position: relative; z-index: 1; }
.sr-num { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; color: var(--cream-3); }
.sr-name {
  font-size: 22px; font-weight: 800;
  color: var(--cream); letter-spacing: -0.02em; line-height: 1.1;
  transition: color 0.3s ease;
}
.srv-row:hover .sr-name { color: var(--moss); }
.sr-tags {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.sr-tags span {
  font-size: 9px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(239,239,231,0.62);
  border: 1px solid rgba(239,239,231,0.16);
  padding: 4px 10px; border-radius: 2px;
  transition: color 0.3s ease, border-color 0.3s ease;
}
.srv-row:hover .sr-tags span { color: rgba(163,173,147,0.6); border-color: rgba(163,173,147,0.15); }
.sr-arrow {
  font-size: 20px; color: var(--moss);
  text-align: right; opacity: 0;
  transform: translate(-8px, 4px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.srv-row:hover .sr-arrow { opacity: 1; transform: translate(0, 0); }

/* ─── PORTAFOLIO ─── */
.portafolio {
  background: var(--ink);
  position: relative;
}

.pf-header {
  max-width: var(--max); margin: 0 auto;
  padding: 100px 88px 64px;
  display: flex; align-items: flex-end;
  justify-content: space-between; gap: 40px;
}
.pf-big-title {
  font-size: clamp(40px, 5.5vw, 80px);
  font-weight: 900; letter-spacing: -0.04em;
  text-transform: uppercase; line-height: 0.9;
  color: var(--cream);
}
.pf-hd-right { display: flex; align-items: center; gap: 24px; }
.pf-drag-hint {
  display: flex; align-items: center; gap: 8px;
  font-size: 9px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(239,239,231,0.58);
}

/* STAGE — el canvas draggable */
.pf-stage-wrap {
  position: relative;
  height: 680px;
  overflow: hidden;
  cursor: grab;
  border-top: 1px solid rgba(239,239,231,0.05);
  border-bottom: 1px solid rgba(239,239,231,0.05);
}
.pf-stage-wrap:active { cursor: grabbing; }
.pf-stage {
  position: absolute;
  /* El stage es muy ancho — se arrastra horizontalmente */
  width: 2700px; height: 680px;
  left: 0; top: 0;
  will-change: transform;
}

.pf-card {
  position: absolute;
  left: var(--cx, 0); top: var(--cy, 0);
  width: 380px;
  background: var(--ink-2);
  overflow: hidden;
  border-radius: 1px;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s ease;
}
.pf-card-wide { width: 520px; }
.pf-card:hover {
  transform: translateY(-8px) scale(1.02) !important;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(122,135,106,0.1);
  z-index: 10;
}
.pfc-inner { display: flex; flex-direction: column; }
.pf-card img {
  width: 100%; aspect-ratio: 16/9;
  object-fit: cover;
  filter: brightness(0.65) saturate(0.7);
  transition: filter 0.5s ease, transform 0.5s var(--ease-out);
}
.pf-card:hover img { filter: brightness(0.9) saturate(1.0); transform: scale(1.03); }
.pfc-info {
  padding: 20px 24px 24px;
  display: flex; flex-direction: column; gap: 4px;
}
.pfc-coord {
  font-size: 8px; font-weight: 700;
  letter-spacing: 0.18em; color: rgba(163,173,147,0.5);
  font-variant-numeric: tabular-nums;
}
.pfc-cat {
  font-size: 9px; font-weight: 800;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--moss);
}
.pfc-name {
  font-size: 16px; font-weight: 800;
  color: var(--cream); letter-spacing: -0.01em; line-height: 1.2;
}

/* Fade edges del stage — indica que hay más */
.pf-stage-wrap::before,
.pf-stage-wrap::after {
  content: '';
  position: absolute; top: 0; bottom: 0; z-index: 10;
  width: 88px; pointer-events: none;
}
.pf-stage-wrap::before {
  left: 0;
  background: linear-gradient(to right, var(--ink) 0%, transparent 100%);
}
.pf-stage-wrap::after {
  right: 0;
  background: linear-gradient(to left, var(--ink) 0%, transparent 100%);
}

/* MOBILE portafolio */
.pf-mobile { display: none; padding: 0 20px 64px; }
.pfm-card {
  position: relative; overflow: hidden;
  aspect-ratio: 16/9; margin-bottom: 3px;
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s var(--ease-out);
}
.pfm-card.in { opacity: 1; transform: translateY(0); }
.pfm-card img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.65); }
.pfm-ov {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(33,38,29,0.9) 0%, transparent 60%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 20px;
}
.pfm-cat { font-size: 8px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: var(--moss); margin-bottom: 4px; }
.pfm-name { font-size: 16px; font-weight: 800; color: var(--cream); }

.pf-footer-cta { text-align: center; padding: 56px 20px 80px; }

/* ─── ESTUDIO ─── */
.estudio {
  background: var(--ink-2);
  padding: 160px 0 160px;
  position: relative;
  overflow: hidden;
}
.est-chapter {
  position: absolute;
  right: -0.05em; bottom: -0.1em;
  font-size: clamp(200px, 30vw, 480px);
  font-weight: 900; letter-spacing: -0.06em;
  color: rgba(239,239,231,0.018);
  line-height: 1; pointer-events: none; user-select: none;
}
.est-inner { max-width: var(--max); margin: 0 auto; padding: 0 88px; position: relative; z-index: 1; }
.est-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 40px; margin-bottom: 80px;
}
.est-title {
  font-size: clamp(36px, 5vw, 72px);
  font-weight: 900; letter-spacing: -0.04em;
  text-transform: uppercase; color: var(--cream); line-height: 0.92;
}
.est-title em { font-style: italic; font-weight: 200; color: var(--moss); text-transform: none; }

/* Equipo / asociados — retratos compactos, sin protagonismo (fotos chicas, caras visibles) */
.est-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 22px;
  max-width: 940px;
}
/* Uniforme: se anula el layout asimétrico anterior */
.eq-wide, .eq-card:not(.eq-wide) { grid-column: span 1; }

.eq-card {
  position: relative;
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.8s ease var(--delay, 0ms), transform 0.8s var(--ease-out) var(--delay, 0ms);
}
.eq-card.in { opacity: 1; transform: translateY(0); }
.eq-photo {
  position: relative; overflow: hidden; border-radius: 3px;
  aspect-ratio: 1/1;
}
.eq-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(122,135,106,0.35), transparent 55%);
  opacity: 0; transition: opacity 0.5s ease;
}
.eq-card:hover .eq-photo::after { opacity: 1; }
.eq-card img, .eq-wide img {
  width: 100%; height: 100%;
  aspect-ratio: 1/1; object-fit: cover; object-position: center top;
  display: block;
  filter: grayscale(72%) brightness(0.9);
  transition: filter 0.55s ease, transform 0.7s var(--ease-out);
}
.eq-card:hover img { filter: grayscale(0%) brightness(1.02); transform: scale(1.06); }
.eq-overlay {
  position: static; padding: 12px 0 0;
  display: flex; flex-direction: column; gap: 3px;
}
.eq-name { font-size: 13px; font-weight: 800; color: var(--cream); line-height: 1.2; transition: color 0.35s ease; }
.eq-card:hover .eq-name { color: var(--moss); }
.eq-role { font-size: 8px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--moss); }
.eq-edu { font-size: 10px; color: var(--cream-3); line-height: 1.35; }

/* Reveal utility */
.reveal-up {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.8s ease var(--delay, 0ms), transform 0.8s var(--ease-out) var(--delay, 0ms);
}
.reveal-up.in { opacity: 1; transform: translateY(0); }

/* ─── Reveal en scroll para páginas internas (.reveal + .visible vía IntersectionObserver) ─── */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
/* Stagger — retardos escalonados */
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }
.reveal-delay-5 { transition-delay: 0.40s; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-up { transition: opacity 0.4s ease !important; transform: none !important; filter: none !important; }
  .reveal.visible, .reveal-up.in { transform: none !important; }
}

/* ─── CONTACTO ─── */
.contacto {
  background: var(--ink-earth);
  padding: 160px 0 160px;
  position: relative;
  overflow: hidden;
}
.ct-bg-text {
  position: absolute;
  bottom: -0.1em; right: -0.05em;
  font-size: clamp(160px, 26vw, 400px);
  font-weight: 900; letter-spacing: -0.06em;
  color: rgba(122,135,106,0.025);
  pointer-events: none; user-select: none; line-height: 1;
}
.ct-inner { max-width: var(--max); margin: 0 auto; padding: 0 88px; position: relative; z-index: 1; }
.ct-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 100px; align-items: start;
}
.ct-title {
  font-size: clamp(44px, 7vw, 100px);
  font-weight: 900; letter-spacing: -0.05em;
  text-transform: uppercase; line-height: 0.88;
  color: var(--cream); margin: 20px 0 40px;
}
.ct-title em { font-style: italic; font-weight: 200; color: var(--moss); text-transform: none; }
.ct-sub { font-size: 15px; color: var(--cream-3); line-height: 1.75; margin-bottom: 36px; }
.ct-email {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 17px; font-weight: 800;
  color: var(--cream); letter-spacing: -0.01em;
  border-bottom: 1px solid rgba(239,239,231,0.18);
  padding-bottom: 6px;
  transition: color 0.3s ease, border-color 0.3s ease;
}
.ct-email:hover { color: var(--moss); border-color: var(--moss); }
.ct-email-arrow { color: var(--moss); }
.ct-socials { display: flex; gap: 24px; margin-top: 36px; flex-wrap: wrap; }
.ct-socials a {
  font-size: 9px; font-weight: 800;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(239,239,231,0.55);
  transition: color 0.3s ease;
}
.ct-socials a:hover { color: var(--moss); }

.ct-form-wrap {
  background: rgba(37,41,32,0.85);
  border: 1px solid rgba(239,239,231,0.07);
  padding: 56px; backdrop-filter: blur(8px);
}
.form-row { margin-bottom: 22px; }
.f-label {
  display: block; font-size: 9px; font-weight: 800;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--cream-3); margin-bottom: 10px;
}
.f-input {
  -webkit-appearance: none; appearance: none;
  width: 100%; font-family: var(--font);
  font-size: 15px; color: var(--cream);
  background: rgba(239,239,231,0.04);
  border: 1px solid rgba(239,239,231,0.09);
  padding: 13px 15px; border-radius: 1px;
  outline: none; transition: border-color 0.3s ease, background 0.3s ease;
}
.f-input::placeholder { color: var(--cream-3); }
.f-input:focus { border-color: var(--moss); background: rgba(122,135,106,0.04); }
textarea.f-input { resize: vertical; min-height: 110px; }
.f-submit {
  -webkit-appearance: none; appearance: none;
  width: 100%; padding: 17px;
  font-family: var(--font); font-size: 10px; font-weight: 800;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink); background: var(--moss);
  border: 0; border-radius: 1px; cursor: pointer;
  transition: background 0.3s ease; margin-top: 8px;
}
.f-submit:hover { background: var(--cream); }
#formSuccessB { text-align: center; padding: 56px 24px; }
#formSuccessB .check-icon { font-size: 40px; color: var(--moss); margin-bottom: 16px; }
#formSuccessB h3 { font-size: 20px; font-weight: 800; color: var(--cream); margin-bottom: 8px; }
#formSuccessB p { font-size: 14px; color: var(--cream-3); }

/* ─── FOOTER ─── */
.site-footer {
  position: relative;
  background: var(--ink-earth);
  border-top: 1px solid rgba(122,135,106,0.25);
  padding: 88px 88px 40px;
  overflow: hidden;
}
/* Watermark gigante */
.site-footer::before {
  content: "MNQ";
  position: absolute; left: 40px; bottom: -42px;
  font-size: clamp(160px, 26vw, 380px); font-weight: 900;
  letter-spacing: -0.05em; line-height: 1;
  color: rgba(239,239,231,0.025); pointer-events: none; user-select: none;
}
.footer-inner { max-width: var(--max); margin: 0 auto; position: relative; z-index: 1; }
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 56px; padding-bottom: 56px;
  border-bottom: 1px solid rgba(239,239,231,0.08);
  margin-bottom: 36px;
}
.fb-name {
  font-size: clamp(26px, 3vw, 40px); font-weight: 900;
  letter-spacing: -0.03em; text-transform: none; color: var(--cream);
  line-height: 1; margin-bottom: 18px;
}
.fb-sub { font-size: 14px; color: var(--cream-3); line-height: 1.7; max-width: 300px; }
.footer-tagline { font-size: 14px; color: var(--cream-3); line-height: 1.7; max-width: 300px; }
.footer-col h4 { font-size: 10px; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; color: var(--moss); margin-bottom: 20px; }
.footer-col a, .footer-col p { display: block; font-size: 13.5px; color: rgba(239,239,231,0.6); margin-bottom: 11px; line-height: 1.4; transition: color 0.3s ease; }
.footer-col a:hover { color: var(--cream); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 8px; }
.footer-bottom span, .footer-legal { font-size: 11px; color: rgba(239,239,231,0.58); }
.footer-social { display: flex; gap: 22px; }
.footer-social a { font-size: 11px; font-weight: 600; color: rgba(239,239,231,0.45); letter-spacing: 0.08em; text-transform: uppercase; transition: color 0.3s ease; }
.footer-social a:hover { color: var(--moss); }

/* ─── EMAIL FLOTANTE ─── */
.email-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 500;
  display: flex; align-items: center; gap: 10px;
  background: var(--moss); color: var(--ink);
  font-size: 10px; font-weight: 800;
  padding: 12px 18px 12px 13px; border-radius: 1px;
  box-shadow: 0 4px 24px rgba(122,135,106,0.2);
  transition: transform 0.3s var(--ease-out), background 0.3s ease;
  letter-spacing: 0.08em; text-transform: uppercase;
  white-space: nowrap;
}
.email-float:hover { transform: translateY(-3px); background: var(--cream); }
.email-float svg { flex-shrink: 0; }

/* ─── RESPONSIVE ─── */
@media (max-width: 1100px) {
  :root { --hh: 62px; }
  .hero-content { padding: 0 48px 120px; }
  .hero-desc { width: min(420px, 62vw); }
  .hero-coord-left { display: none; }
  .manifesto { padding: 120px 0 160px; }
  .mf-inner { padding: 0 48px; gap: 0 48px; }
  .mf-img-wrap { margin-right: -48px; }
  .srv-header, .pf-header { padding: 80px 48px 56px; }
  .srv-row { padding: 32px 48px; gap: 28px; }
  .est-inner, .ct-inner { padding: 0 48px; }
  .site-footer { padding: 64px 48px 32px; }
  .footer-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

@media (max-width: 900px) {
  .est-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
  .mf-panel {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
    padding: 80px 48px;
  }
  .mf-panel:not(.mf-panel-alt) .mf-img-wrap { margin-right: 0 !important; }
  .mf-img-wrap.mf-img-left { margin-left: 0 !important; margin-right: 0 !important; }
  /* Panel alt: imagen va abajo en mobile */
  .mf-panel-alt { direction: ltr; }
  .ct-grid { grid-template-columns: minmax(0, 1fr); gap: 64px; }
}

@media (max-width: 768px) {
  :root { --hh: 56px; --bar-h: 0px; }

  .header-inner { padding: 0 20px; }
  .nav-main { display: none; }
  .hamburger { display: flex; }

  /* Hero mobile — flujo natural desde arriba (sin aire forzado) */
  .hero {
    height: auto;
    min-height: 0;
    justify-content: flex-start;
    padding-top: 20px;
  }
  .hero-content { padding: 36px 20px 24px; }
  .ht-line { font-size: clamp(36px, 10vw, 60px); }
  .ht-line-3 { font-size: clamp(34px, 9vw, 56px); color: rgba(239,239,231,0.55); }
  .ht-line-2 { margin-left: 20px; }
  .hero-desc {
    position: static; width: 100%;
    margin-top: 24px; opacity: 1; transform: none;
    transition: none;
  }
  .hero-bg-num { display: none; }
  .hero-diag { display: none; }
  .hero-stats { position: static; margin-top: 30px; }
  .hs-item { padding: 14px 16px; }
  .hs-num { font-size: 26px; height: 30px; }
  .hs-lbl { font-size: 10px; letter-spacing: 0.1em; }

  /* Manifesto mobile */
  .manifesto { padding: 24px 0 8px; }
  .mf-panel { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 52px 20px 44px; }
  .mf-panel.mf-panel-alt { padding: 40px 20px 32px; }
  .mf-panel:not(.mf-panel-alt) .mf-img-wrap { margin-right: 0 !important; }
  .mf-img-wrap.mf-img-left { margin-left: 0 !important; margin-right: 0 !important; }
  .mf-vert { display: none; }
  .mf-t2 { margin-left: 16px; }
  .mf-ch-num { font-size: 40px; }
  .mf-chapter-tag { margin-bottom: 24px; }

  /* Servicios mobile */
  .srv-header { padding: 64px 20px 40px; flex-direction: column; align-items: flex-start; }
  .srv-row { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 28px 20px; }
  .sr-num, .sr-arrow { display: none; }
  .srv-hover-img { display: none !important; }

  /* Portafolio mobile */
  .pf-header { padding: 64px 20px 40px; flex-direction: column; align-items: flex-start; }
  .pf-stage-wrap { display: none; }
  .pf-mobile { display: flex; flex-direction: column; gap: 3px; }
  .pf-drag-hint { display: none; }

  /* Clientes / Noticias (home) mobile — faltaba breakpoint propio */
  .cl-inner { padding: 48px 20px; }
  .nt-inner { padding: 48px 20px 56px; }

  /* Estudio mobile */
  .estudio { padding: 64px 0 48px; }
  .est-inner { padding: 0 20px; }
  .est-header { flex-direction: column; align-items: flex-start; gap: 20px; margin-bottom: 28px; }
  .est-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .est-chapter { display: none; }

  /* Contacto mobile */
  .contacto { padding: 64px 0 48px; }
  .ct-inner { padding: 0 20px; }
  .ct-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .ct-email { font-size: 14px; word-break: break-all; }
  .ct-form-wrap { padding: 32px 20px; }

  /* Footer mobile */
  .site-footer { padding: 56px 20px 28px; }
  .footer-top { grid-template-columns: minmax(0, 1fr); gap: 36px; }

  /* Flotante mobile */
  .email-float .ef-label { display: none; }
  .email-float { padding: 14px; border-radius: 50%; }

  #grain-canvas { opacity: 0.02; }
  #topo-canvas { opacity: 0.08; }
}

/* ═══════════════════════════════════════════
   PORTAFOLIO — CATEGORÍAS VISUALES
   ═══════════════════════════════════════════ */
.cat-grid {
  max-width: var(--max); margin: 0 auto;
  padding: 0 88px;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.cat-card {
  position: relative; overflow: hidden;
  aspect-ratio: 16/10;
  border: 1px solid rgba(239,239,231,0.06);
  background: var(--ink-3);
}
.cat-card img {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(0.5) saturate(0.7);
  transition: filter 0.7s var(--ease-out), transform 0.9s var(--ease-out);
}
.cat-card:hover img { filter: brightness(0.72) saturate(1); transform: scale(1.05); }
.cat-ov {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 40px;
  background: linear-gradient(to top, rgba(33,38,29,0.92) 0%, rgba(33,38,29,0.25) 60%, transparent 100%);
}
.cat-idx {
  font-size: 11px; font-weight: 800; letter-spacing: 0.2em;
  color: var(--moss); margin-bottom: auto;
}
.cat-name {
  font-size: clamp(28px, 3.4vw, 46px); font-weight: 900;
  letter-spacing: -0.03em; text-transform: uppercase;
  line-height: 0.92; color: var(--cream); margin-bottom: 14px;
}
.cat-list {
  font-size: 13px; line-height: 1.5; color: var(--cream-3);
  max-width: 360px;
}

/* GALERÍA DE RENDERS */
.pf-renders { max-width: var(--max); margin: 0 auto; padding: 80px 88px 0; }
.pf-renders-head {
  max-width: var(--max); margin: 0 auto;
  padding: 96px 88px 40px;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 32px;
}
.renders-title {
  font-size: clamp(28px, 4vw, 52px); font-weight: 900;
  letter-spacing: -0.03em; text-transform: uppercase; line-height: 0.95;
  color: var(--cream); margin-top: 12px;
}
@media (max-width: 900px) {
  .pf-renders-head { padding: 64px 24px 28px; flex-direction: column; align-items: flex-start; gap: 16px; }
}
.renders-label {
  font-size: 10px; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: rgba(239,239,231,0.6);
  margin-bottom: 28px;
}
.renders-strip {
  display: flex; gap: 16px; overflow-x: auto;
  padding-bottom: 16px; scroll-snap-type: x mandatory;
  scrollbar-width: thin; scrollbar-color: var(--ink-2) transparent;
}
.renders-strip::-webkit-scrollbar { height: 6px; }
.renders-strip::-webkit-scrollbar-thumb { background: var(--ink-2); border-radius: 3px; }
.render-card {
  flex: 0 0 340px; scroll-snap-align: start;
  background: var(--ink-3); border: 1px solid rgba(239,239,231,0.06);
  overflow: hidden;
}
.render-card img {
  width: 100%; height: 230px; object-fit: cover;
  filter: brightness(0.7) saturate(0.85); transition: filter 0.6s, transform 0.6s;
}
.render-card:hover img { filter: brightness(0.9) saturate(1); transform: scale(1.04); }
.render-card figcaption {
  padding: 18px 20px 22px; font-size: 14px; font-weight: 700;
  color: var(--cream); line-height: 1.35;
}
.render-card figcaption span {
  display: block; font-size: 9px; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--moss); margin-bottom: 8px;
}

/* ═══════════════════════════════════════════
   CLIENTES — muro de marcas
   ═══════════════════════════════════════════ */
.clientes { background: var(--ink-2); border-top: 1px solid rgba(239,239,231,0.05); }
.cl-inner { max-width: var(--max); margin: 0 auto; padding: 110px 88px; }
.cl-header { margin-bottom: 24px; }
.cl-title {
  font-size: clamp(36px, 5vw, 72px); font-weight: 900;
  letter-spacing: -0.04em; text-transform: uppercase; line-height: 0.9;
  color: var(--cream);
}
.cl-title em { font-style: italic; font-weight: 300; color: var(--moss); }
.cl-sub { font-size: 16px; color: var(--cream-3); line-height: 1.7; max-width: 560px; margin-bottom: 48px; }
.cl-grid {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: rgba(33,38,29,0.12);
  border: 1px solid rgba(33,38,29,0.12);
  border-radius: 4px; overflow: hidden;
}
.cl-logo {
  display: flex; align-items: center; justify-content: center;
  min-height: 118px; padding: 22px 18px;
  background: var(--cream);
  transition: background 0.4s;
}
.cl-logo img {
  max-width: 100%; max-height: 52px; width: auto; object-fit: contain;
  filter: grayscale(100%); opacity: 0.68;
  mix-blend-mode: multiply; /* funde el fondo blanco del logo con la card crema — sin recuadro */
  transition: filter 0.45s ease, opacity 0.45s ease, transform 0.5s var(--ease-out);
}
.cl-logo:hover { background: #fbfbf7; }
.cl-logo:hover img { filter: grayscale(0%); opacity: 1; transform: scale(1.06); }
/* Marca con fondo oscuro propio (ej. Energy X) */
.cl-logo--dark { background: var(--ink); }
.cl-logo--dark img { filter: grayscale(100%) brightness(1.4); opacity: 0.7; mix-blend-mode: normal; }
.cl-logo--dark:hover { background: var(--ink-earth); }
.cl-logo--dark:hover img { filter: none; opacity: 1; }

/* ═══════════════════════════════════════════
   NOTICIAS — blog teaser
   ═══════════════════════════════════════════ */
.noticias { background: var(--ink); }
.nt-inner { max-width: var(--max); margin: 0 auto; padding: 110px 88px; }
.nt-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 56px; }
.nt-title {
  font-size: clamp(36px, 5vw, 72px); font-weight: 900;
  letter-spacing: -0.04em; text-transform: uppercase; line-height: 0.9; color: var(--cream);
}
.nt-title em { font-style: italic; font-weight: 300; color: var(--moss); }
.nt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.nt-card {
  display: flex; flex-direction: column;
  background: var(--ink-3); border: 1px solid rgba(239,239,231,0.06);
  padding: 36px 32px 32px; min-height: 280px;
  transition: border-color 0.4s, transform 0.4s var(--ease-out), background 0.4s;
}
.nt-card:hover { border-color: rgba(122,135,106,0.35); transform: translateY(-4px); background: var(--ink-2); }
.nt-tag {
  align-self: flex-start; font-size: 9px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--moss);
  padding: 6px 12px; border: 1px solid rgba(122,135,106,0.3); border-radius: 2px;
  margin-bottom: 24px;
}
.nt-card-title { font-size: 19px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.25; color: var(--cream); margin-bottom: 14px; }
.nt-card-ex { font-size: 14px; color: var(--cream-3); line-height: 1.6; margin-bottom: auto; }
.nt-meta { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(239,239,231,0.58); margin-top: 24px; }

/* ─── RESPONSIVE secciones nuevas ─── */
@media (max-width: 900px) {
  .cat-grid { padding: 0 24px; gap: 12px; }
  .cl-inner, .nt-inner { padding: 72px 24px; }
  .pf-renders { padding: 56px 24px 0; }
  .cl-grid { grid-template-columns: repeat(3, 1fr); }
  .nt-grid { grid-template-columns: 1fr; }
  .nt-header { flex-direction: column; align-items: flex-start; gap: 24px; }
}
@media (max-width: 600px) {
  .cat-grid { grid-template-columns: 1fr; }
  .cat-card { aspect-ratio: 16/11; }
  .cat-ov { padding: 28px; }
  .cl-grid { grid-template-columns: repeat(2, 1fr); }
  .render-card { flex: 0 0 80%; }
}

/* ─── REDUCED MOTION ─── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  #topo-canvas { display: none; }
}
