/* lima-landing.css — Dirección A aplicada como sitio.
   Paleta: negro carbón, blanco humo, gris técnico, azul eléctrico.
   Inter (800/600/500/400/300) + JetBrains Mono. */

:root {
  --ink: #111111;
  --ink-2: #444;
  --ink-3: #8a8a8a;
  --paper: #F5F5F5;
  --paper-2: #ECECEA;
  --rule: rgba(17,17,17,0.12);
  --accent: #2563EB;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

.mono { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); }

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

/* ─── Top nav ─────────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 36px;
  background: rgba(245,245,245,0.78);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, background .25s, color .25s;
}
.nav[data-dark="true"] {
  background: rgba(17,17,17,0.85);
  color: #fff;
  border-bottom-color: rgba(255,255,255,0.08);
}
.nav[data-dark="true"] .nav-links a { color: rgba(255,255,255,0.8); }
.nav[data-dark="true"] .nav-cta { color: #fff; border-color: rgba(255,255,255,0.25); }
.nav[data-dark="true"] .nav-cta:hover { background: rgba(255,255,255,0.08); }

.nav-mark {
  font-family: var(--sans); font-weight: 800;
  font-size: 20px; letter-spacing: -0.035em;
  color: inherit; text-decoration: none;
  display: inline-flex; align-items: center; gap: 0;
  position: relative;
}
.nav-mark i { color: var(--accent); font-style: normal; padding: 0 1px; }
.nav-mark-mini { position: absolute; left: 0; opacity: 0; transition: opacity .25s; }
.nav[data-mini="true"] .nav-mark-text { opacity: 0; }
.nav[data-mini="true"] .nav-mark-mini { opacity: 1; }

.nav-links {
  display: flex; gap: 32px;
  font-size: 14px; font-weight: 500;
}
.nav-links a {
  color: var(--ink-2); text-decoration: none;
  transition: color .15s;
}
.nav-links a:hover { color: var(--ink); }
.nav[data-dark="true"] .nav-links a:hover { color: #fff; }

.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 500; color: var(--ink);
  text-decoration: none;
  border: 1px solid rgba(17,17,17,0.18);
  padding: 9px 16px;
  border-radius: 999px;
  transition: background .15s, border-color .15s;
}
.nav-cta:hover { background: rgba(17,17,17,0.06); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
  flex-shrink: 0;
}
.nav-actions .nav-links { margin-right: 4px; }

.nav-menu-btn {
  display: none;
  align-items: center; justify-content: center;
  width: 40px; height: 40px;
  padding: 0;
  border: 1px solid rgba(17,17,17,0.18);
  border-radius: 999px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .15s, border-color .15s;
}
.nav-menu-btn:hover { background: rgba(17,17,17,0.06); }
.nav-menu-icon {
  display: block;
  width: 16px; height: 2px;
  background: currentColor;
  border-radius: 1px;
  position: relative;
  transition: background .2s;
}
.nav-menu-icon::before,
.nav-menu-icon::after {
  content: '';
  position: absolute; left: 0;
  width: 16px; height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform .2s, top .2s, opacity .2s;
}
.nav-menu-icon::before { top: -5px; }
.nav-menu-icon::after  { top: 5px; }
.nav.is-open .nav-menu-icon { background: transparent; }
.nav.is-open .nav-menu-icon::before { top: 0; transform: rotate(45deg); }
.nav.is-open .nav-menu-icon::after  { top: 0; transform: rotate(-45deg); }
.nav[data-dark="true"] .nav-menu-btn {
  border-color: rgba(255,255,255,0.25);
}
.nav[data-dark="true"] .nav-menu-btn:hover { background: rgba(255,255,255,0.08); }

/* ─── Mono ticker ─────────────────────────────────────────────────── */
.ticker {
  position: fixed; top: 0; left: 0; right: 0; z-index: 99;
  background: var(--ink);
  color: rgba(255,255,255,0.6);
  font-family: var(--mono);
  font-size: 10px; letter-spacing: 0.16em;
  padding: 6px 0;
  overflow: hidden;
  white-space: nowrap;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.ticker-track {
  display: inline-flex; gap: 64px;
  animation: ticker 60s linear infinite;
  padding-left: 64px;
}
.ticker span:not(:last-child)::after { content: '·'; margin-left: 64px; color: rgba(255,255,255,0.3); }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Body offset for ticker + nav */
body { padding-top: 0; }
.nav { top: 24px; }

/* ─── HERO ─────────────────────────────────────────────────────────── */
.hero {
  height: 160vh;
  position: relative;
  background: var(--paper);
}
.hero-pin {
  position: sticky; top: 0;
  height: 100vh; width: 100%;
  display: flex; flex-direction: column;
  padding: 100px 36px 36px;
  overflow: hidden;
  isolation: isolate;
  background: var(--paper);
}

.hero-pin {
  background-color: var(--paper);
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='28' height='28'><path d='M1 14 V1 H14' fill='none' stroke='%232563EB' stroke-width='1.25' opacity='0.32'/></svg>"),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='28' height='28'><path d='M14 1 H27 V14' fill='none' stroke='%232563EB' stroke-width='1.25' opacity='0.32'/></svg>"),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='28' height='28'><path d='M1 14 V27 H14' fill='none' stroke='%232563EB' stroke-width='1.25' opacity='0.32'/></svg>"),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='28' height='28'><path d='M14 27 H27 V14' fill='none' stroke='%232563EB' stroke-width='1.25' opacity='0.32'/></svg>"),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.4 0'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.32'/></svg>");
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, repeat;
  background-position:
    top 28px left 28px,
    top 28px right 28px,
    bottom 28px left 28px,
    bottom 28px right 28px,
    0 0;
  background-size: 28px 28px, 28px 28px, 28px 28px, 28px 28px, 240px 240px;
}

.hero-pin::before {
  content: '';
  position: absolute;
  inset: -3%;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right,  rgba(17,17,17,0.032) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(17,17,17,0.032) 1px, transparent 1px),
    linear-gradient(to right,  rgba(17,17,17,0.016) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(17,17,17,0.016) 1px, transparent 1px),
    radial-gradient(64vw 56vh at 28% 58%, rgba(37,99,235,0.07), transparent 62%);
  background-size: 96px 96px, 96px 96px, 24px 24px, 24px 24px, 100% 100%;
  transform: translate3d(calc(var(--mx, 0px) * -0.6), calc(var(--my, 0px) * -0.6), 0);
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
  will-change: transform;
}

.hero-pin::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  top: -34vh;
  height: 30vh;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(to bottom,
    rgba(37, 99, 235, 0)     0%,
    rgba(37, 99, 235, 0.02) 40%,
    rgba(37, 99, 235, 0.07) 48%,
    rgba(37, 99, 235, 0.15) 50%,
    rgba(37, 99, 235, 0.07) 52%,
    rgba(37, 99, 235, 0.02) 60%,
    rgba(37, 99, 235, 0)   100%);
  mix-blend-mode: multiply;
  animation: scanSweep 14s cubic-bezier(.4, 0, .2, 1) infinite;
  will-change: transform;
}

@keyframes scanSweep {
  0%   { transform: translateY(0);     opacity: 0; }
  6%   { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateY(140vh); opacity: 0; }
}

.hero-meta, .hero-mark, .hero-tagline { position: relative; z-index: 1; }

@media (prefers-reduced-motion: reduce) {
  .hero-pin::after { animation: none; opacity: 0; }
}
.hero-meta {
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.14em; color: var(--ink-2);
  text-transform: uppercase;
}
.hero-mark {
  margin: 0;
  flex: 1 1 auto;
  display: flex; flex-direction: column; justify-content: center;
  font-family: var(--sans);
  font-weight: 900;
  font-size: clamp(120px, 24vw, 380px);
  line-height: 0.82;
  letter-spacing: -0.06em;
  transform: scale(calc(1 - var(--hero-p, 0) * 0.25));
  transform-origin: left center;
  transition: transform .05s linear;
}
.hero-row { display: flex; align-items: center; }
.hero-row--two { padding-left: 0.06em; }
.hero-dot {
  color: var(--accent);
  font-size: 0.5em;
  margin-right: 0.06em;
  line-height: 1;
  transform: translateY(-0.18em);
  display: inline-block;
}
.hero-word { display: inline-flex; }
.hero-word span { display: inline-block; }

.hero-mark {
  letter-spacing: -0.06em;
  filter: blur(0);
}
.hero-mark.playing {
  animation: heroFocus 1.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes heroFocus {
  0% {
    letter-spacing: 0.5em;
    filter: blur(38px);
    opacity: 0;
  }
  35% { opacity: 1; }
  100% {
    letter-spacing: -0.06em;
    filter: blur(0);
    opacity: 1;
  }
}

.hero-dot {
  transform: translateY(-0.18em);
}
.hero-mark.playing .hero-dot {
  animation: heroDot 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.9s both;
}
@keyframes heroDot {
  from { transform: translateY(-0.18em) scale(0); }
  to   { transform: translateY(-0.18em) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-mark.playing,
  .hero-mark.playing .hero-dot { animation: none; }
}

.hero-tagline {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 36px;
  opacity: var(--tag-o, 0);
  transform: translateY(calc(20px - var(--tag-o, 0) * 20px));
  transition: opacity .2s, transform .2s;
}
.hero-tagline p {
  margin: 0;
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 500;
  line-height: 1.35;
  max-width: 540px;
  letter-spacing: -0.005em;
}
.hero-tagline p span { display: block; }
.hero-tagline p span:nth-child(2) { color: var(--ink-2); }
.hero-tagline-meta { text-align: right; flex-shrink: 0; }

/* ─── MANIFESTO ────────────────────────────────────────────────────── */
.manifesto {
  background: var(--ink);
  color: #fff;
  position: relative;
}
.manifesto-track {
  height: 220vh;
}
.manifesto-pin {
  position: sticky; top: 0;
  height: 100vh;
  display: flex; flex-direction: column;
  justify-content: space-between;
  padding: 100px 36px 36px;
}
.manifesto-meta {
  display: flex; justify-content: space-between;
}
.manifesto-meta .mono { color: rgba(255,255,255,0.5); }
.manifesto-text {
  margin: 0;
  font-size: clamp(48px, 8vw, 132px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.045em;
  max-width: 1400px;
}
.m-word {
  display: inline-block;
  margin-right: 0.18em;
  opacity: 0.18;
  transition: opacity .15s linear, color .3s;
}
.m-word.is-on { opacity: 1; }
.m-word--accent.is-on { color: var(--accent); }
.manifesto-foot {
  display: flex; justify-content: space-between;
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 18px;
}
.manifesto-foot .mono { color: rgba(255,255,255,0.5); }

/* ─── SERVICES ─────────────────────────────────────────────────────── */
.services {
  background: var(--paper);
  padding: 140px 36px 0;
}
.services-head {
  max-width: 1400px; margin: 0 auto 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: end;
}
.services-head .mono { display: block; margin-bottom: 18px; }
.services-head h2 {
  margin: 0;
  font-size: clamp(48px, 6vw, 96px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.035em;
}
.services-head h2 em {
  font-style: normal;
  color: var(--accent);
}
.services-sub {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 480px;
}

.services-list {
  list-style: none; margin: 0; padding: 0;
  max-width: 1400px; margin: 0 auto;
}
.srv {
  display: grid;
  grid-template-columns: 80px 1fr 1fr 320px;
  gap: 60px;
  align-items: start;
  padding: 60px 0;
  position: relative;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .8s, transform .8s;
}
.srv.is-on { opacity: 1; transform: translateY(0); }
.srv-rule {
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: var(--rule);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1) .1s;
}
.srv.is-on .srv-rule { transform: scaleX(1); }
.srv-num {
  font-size: 13px;
  color: var(--ink);
  font-weight: 500;
}
.srv-body h3 {
  margin: 0 0 16px;
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1;
}
.srv-body p {
  margin: 0 0 20px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 460px;
}
.srv-tags {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.srv-tags span {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  color: var(--ink-2);
}
.srv-vis {
  height: 200px;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 2px;
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.srv-vis-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 1px;
  width: 100%; height: 100%;
  background: var(--rule);
}
.srv-vis-grid .lf {
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--sans);
  font-weight: 800; font-size: 36px;
  letter-spacing: -0.05em;
}
.srv-vis-grid .lf i { color: var(--accent); font-style: normal; }
.srv-vis-grid .lf:nth-child(2) { background: var(--ink); color: #fff; }
.srv-vis-grid .lf:nth-child(2) i { color: #fff; }
.srv-vis-grid .lf:nth-child(3) { background: var(--ink); color: #fff; }
.srv-vis-grid .lf:nth-child(4) { background: var(--accent); color: #fff; }
.srv-vis-grid .lf:nth-child(4) i { color: #fff; }

.srv-vis-flow {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.flow-node {
  padding: 8px 12px;
  border: 1px solid var(--ink);
  background: #fff;
  border-radius: 2px;
  animation: nodeBlink 6.4s ease-in-out infinite;
}
.flow-node--hi {
  background: #fff; color: var(--ink); border-color: var(--ink);
}
.flow-arr { color: var(--ink-3); animation: arrPulse 6.4s ease-in-out infinite; }

.srv-vis-flow > :nth-child(1) { animation-delay: 0s;   }
.srv-vis-flow > :nth-child(2) { animation-delay: 0.6s; }
.srv-vis-flow > :nth-child(3) { animation-delay: 1.2s; }
.srv-vis-flow > :nth-child(4) { animation-delay: 1.8s; }
.srv-vis-flow > :nth-child(5) { animation-delay: 2.4s; }
.srv-vis-flow > :nth-child(6) { animation-delay: 3.0s; }
.srv-vis-flow > :nth-child(7) {
  animation: nodeFinal 6.4s ease-in-out infinite;
  animation-delay: 3.6s;
}

@keyframes nodeBlink {
  0%, 100%   { background: #fff; color: var(--ink); border-color: var(--ink); }
  3%, 18%    { background: var(--accent); color: #fff; border-color: var(--accent); }
  30%        { background: #fff; color: var(--ink); border-color: var(--ink); }
}
@keyframes nodeFinal {
  0%, 100%   { background: #fff;       color: var(--ink); border-color: var(--ink); transform: translateY(0); }
  3%, 38%    { background: var(--accent); color: #fff;     border-color: var(--accent); transform: translateY(0); }
  44%, 95%   { background: var(--ink);   color: #fff;     border-color: var(--ink);   transform: translateY(-2px); }
}
@keyframes arrPulse {
  0%, 100% { color: var(--ink-3); transform: translateX(0); }
  3%, 15%  { color: var(--accent); transform: translateX(3px); }
  25%      { color: var(--ink-3); transform: translateX(0); }
}

.srv-vis-stack {
  display: flex; flex-direction: column; gap: 4px;
  width: 60%;
}
.srv-vis-stack span {
  padding: 8px 14px;
  border: 1px solid var(--ink);
  background: #fff;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase;
  animation: stkCycle 20s cubic-bezier(.45, 0, .25, 1) infinite;
}
.srv-vis-stack .stk-hi {
  background: #fff; color: var(--ink);
}

.srv-vis-stack span:nth-child(1) { animation-delay: 0s;   }
.srv-vis-stack span:nth-child(2) { animation-delay: -15s; }
.srv-vis-stack span:nth-child(3) { animation-delay: -10s; }
.srv-vis-stack span:nth-child(4) { animation-delay: -5s;  }

@keyframes stkCycle {
  0%       { background: var(--ink); color: #fff;       border-color: var(--ink); transform: translateX(0);   }
  20%      { background: var(--ink); color: #fff;       border-color: var(--ink); transform: translateX(6px); }
  24%      { background: #fff;       color: var(--ink); border-color: var(--ink); transform: translateX(0);   }
  100%     { background: #fff;       color: var(--ink); border-color: var(--ink); transform: translateX(0);   }
}

.srv-vis-chart {
  display: flex; align-items: flex-end; gap: 12px;
  height: 70%; padding: 0 20px;
  position: relative;
}
.srv-vis-chart .bar { flex: 1; height: var(--h); background: var(--ink); }
.srv-vis-chart .bar-hi { background: var(--accent); }

.srv-okr {
  width: 88%;
  max-width: 320px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--ink);
  text-transform: uppercase;
  border-top: 1px solid var(--ink);
  padding-top: 14px;
}
.okr-head {
  display: flex; justify-content: space-between; align-items: center;
  color: var(--ink-2);
  margin-bottom: 14px;
}
.okr-stat { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); }
.okr-stat i {
  width: 7px; height: 7px; border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.18);
  display: inline-block;
}
.okr-obj {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  text-transform: none;
  line-height: 1.15;
  margin-bottom: 16px;
  color: var(--ink);
}
.okr-krs {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 8px;
}
.okr-krs li {
  display: grid;
  grid-template-columns: 28px 1fr 22px;
  align-items: center;
  gap: 10px;
  font-variant-numeric: tabular-nums;
}
.okr-label { color: var(--ink-2); }
.okr-track {
  height: 4px;
  background: var(--rule);
  position: relative;
}
.okr-fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  width: var(--p);
  background: var(--ink);
}
.okr-fill--hi { background: var(--accent); }
.okr-pct { color: var(--ink); text-align: right; }

/* ─── METRICS ─────────────────────────────────────────────────────── */
.metrics {
  background: var(--ink);
  color: #fff;
  padding: 140px 36px;
  margin-top: 140px;
}
.metrics-head {
  max-width: 1400px; margin: 0 auto 80px;
}
.metrics-head .mono { color: rgba(255,255,255,0.6); display: block; margin-bottom: 18px; }
.metrics-head h2 {
  margin: 0;
  font-size: clamp(48px, 6vw, 96px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.035em;
}
.metrics-grid {
  max-width: 1400px; margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.08);
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.metric {
  background: var(--ink);
  padding: 40px 24px 32px;
  display: flex; flex-direction: column;
  gap: 16px;
  min-height: 220px;
}
.metric-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: -10px;
}
.metric-num {
  font-size: clamp(64px, 7vw, 110px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.metric:nth-child(3) .metric-num { color: var(--accent); }
.metric-label {
  font-size: 14px;
  line-height: 1.4;
  color: rgba(255,255,255,0.6);
  margin-top: auto;
}

/* ─── LOGO CAROUSEL ─────────────────────────────────────────────────── */
.logo-carousel {
  max-width: 1400px; margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.logo-slot {
  background: var(--paper-3);
  min-height: 220px;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.logo-slot-inner {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
  padding: 28px;
  transition: opacity .8s cubic-bezier(.4,0,.2,1);
}
.logo-slot-inner.fading { opacity: 0; }
.logo-slot-inner img {
  max-width: 180px; max-height: 90px;
  width: auto; height: auto;
  object-fit: contain;
  display: block;
}
.logo-slot-inner.logo-cover {
  padding: 0;
}
.logo-slot-inner.logo-cover img {
  width: 100%; height: 100%;
  max-width: none; max-height: none;
  object-fit: cover;
}
.logo-slot--more {
  background: var(--ink);
  flex-direction: column; gap: 6px;
  cursor: default;
}

/* ─── CLIENTS / LOGO GRID ──────────────────────────────────────────── */
.clients {
  background: var(--paper);
  padding: 160px 36px 60px;
}
.clients-head {
  max-width: 1400px; margin: 0 auto 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: end;
}
.clients-head .mono { display: block; margin-bottom: 18px; }
.clients-head h2 {
  margin: 0;
  font-size: clamp(48px, 6vw, 96px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.035em;
}
.clients-head h2 em {
  font-style: normal;
  color: var(--accent);
}
.clients-sub {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 480px;
}

.logo-grid {
  max-width: 1400px; margin: 0 auto;
  list-style: none; padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.logo-tile {
  position: relative;
  background: #fff;
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity .8s cubic-bezier(0.22, 1, 0.36, 1),
    transform .8s cubic-bezier(0.22, 1, 0.36, 1),
    background .35s;
  transition-delay: calc(var(--i, 0) * 60ms);
  display: flex; flex-direction: column;
  align-items: center; justify-content: space-between;
  padding: 36px 28px 22px;
  min-height: 200px;
  overflow: hidden;
}
.logo-tile.is-on { opacity: 1; transform: translateY(0); }

.logo-mark {
  flex: 1 1 auto;
  display: flex; align-items: center; justify-content: center;
  width: 100%;
  color: var(--ink);
  transition: color .35s, transform .35s cubic-bezier(0.22, 1, 0.36, 1);
}
.logo-mark svg { width: 100%; max-width: 200px; height: auto; }
.logo-mark img {
  width: 100%; max-width: 180px;
  height: 72px;
  object-fit: contain;
  display: block;
  transition: transform .35s cubic-bezier(0.22, 1, 0.36, 1);
}

.logo-name { display: none; }

/* Hover: subtle tint, scale — no dark flip (logos tienen colores propios) */
.logo-tile:hover { background: var(--paper-2); }
.logo-tile:hover .logo-mark { transform: scale(1.06); }
.logo-tile:hover .logo-name { opacity: 1; transform: translateY(0); }

/* Tile oscuro — para logos con elementos blancos (Ej: Real Club de Lima) */
.logo-tile--dark { background: var(--ink); }
.logo-tile--dark:hover { background: #1c1c1c; }
.logo-tile--dark .logo-mark img { filter: brightness(1); }

/* Placeholder para logos pendientes */
.logo-pending {
  font-family: var(--sans); font-weight: 800;
  font-size: 18px; letter-spacing: -0.02em;
  color: var(--ink-3); text-align: center;
  line-height: 1.2;
}

.logo-tile--more {
  background: var(--ink);
  color: #fff;
}
.logo-tile--more .logo-mark {
  flex-direction: column;
  gap: 6px;
  color: #fff;
}
.logo-more {
  font-family: var(--sans); font-weight: 800;
  font-size: 28px; letter-spacing: -0.02em;
  color: var(--accent);
}
.logo-more-num {
  font-family: var(--sans); font-weight: 900;
  font-size: 54px; letter-spacing: -0.04em;
  line-height: 1;
  color: #fff;
}
.logo-tile--more:hover { background: var(--accent); }
.logo-tile--more:hover .logo-mark { color: #fff; transform: scale(1); }
.logo-tile--more:hover .logo-more { color: #fff; }
.logo-tile--more .logo-name { color: rgba(255,255,255,0.6); }
.logo-tile--more:hover .logo-name { color: rgba(255,255,255,0.85); }

.logo-marquee {
  max-width: 1400px; margin: 60px auto 0;
  overflow: hidden;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 22px 0;
}
.logo-marquee-track {
  display: inline-flex; gap: 22px; align-items: center;
  white-space: nowrap;
  font-family: var(--sans); font-weight: 700;
  font-size: clamp(28px, 3vw, 48px);
  letter-spacing: -0.025em;
  color: var(--ink);
  animation: logoMarquee 42s linear infinite;
  padding-left: 22px;
}
.logo-marquee-track i {
  color: var(--accent); font-style: normal;
  font-weight: 900;
}
@keyframes logoMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
  .logo-marquee-track { animation: none; }
  .logo-tile { transition: opacity .2s; transform: none !important; }
}

/* ─── MARQUEE ─────────────────────────────────────────────────────── */
.marquee {
  background: var(--ink);
  color: #fff;
  padding: 30px 0;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.marquee-track {
  display: inline-flex; gap: 48px;
  white-space: nowrap;
  font-size: clamp(40px, 6vw, 88px);
  font-weight: 800; letter-spacing: -0.035em;
  animation: marquee 28s linear infinite;
  padding-left: 48px;
}
.marquee-track i {
  color: var(--accent); font-style: normal;
  padding: 0 4px;
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ─── CTA ─────────────────────────────────────────────────────────── */
.cta {
  background: var(--paper);
  padding: 160px 36px 140px;
  position: relative;
}
.cta-inner {
  max-width: 1100px; margin: 0 auto;
  text-align: left;
}
.cta-inner > .mono { display: block; margin-bottom: 28px; }
.cta-h {
  margin: 0 0 36px;
  font-size: clamp(56px, 8vw, 140px);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.045em;
}
.cta-h em {
  font-style: normal;
  color: var(--accent);
  font-weight: 800;
}
.cta-sub {
  margin: 0 0 48px;
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 560px;
}
.cta-actions {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-bottom: 72px;
}
.btn-primary, .btn-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 24px;
  font-size: 15px; font-weight: 500;
  border-radius: 999px;
  text-decoration: none;
  transition: background .15s, transform .15s, border-color .15s;
}
.btn-primary {
  background: var(--ink);
  color: #fff;
}
.btn-primary:hover { transform: translateY(-2px); background: #000; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid rgba(17,17,17,0.18);
}
.btn-ghost:hover { background: rgba(17,17,17,0.04); }

.cta-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
}
.cta-meta div { display: flex; flex-direction: column; gap: 6px; }
.cta-meta span { color: var(--ink-3); }
.cta-meta b {
  font-family: var(--sans); font-weight: 600;
  font-size: 14px; letter-spacing: -0.005em;
  text-transform: none; color: var(--ink);
}

/* ─── FOOTER ──────────────────────────────────────────────────────── */
.foot {
  background: var(--ink);
  color: #fff;
  padding: 80px 36px 36px;
}
.foot-row {
  max-width: 1400px; margin: 0 auto;
}
.foot-row--top {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.foot-mark {
  font-family: var(--sans); font-weight: 800;
  font-size: clamp(64px, 12vw, 200px);
  letter-spacing: -0.05em;
  line-height: 1;
}
.foot-mark i { color: var(--accent); font-style: normal; padding: 0 2px; }
.foot-stamp { color: rgba(255,255,255,0.5); }

.foot-row--mid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  padding: 60px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.foot-col { display: flex; flex-direction: column; gap: 10px; }
.foot-col > .mono { color: rgba(255,255,255,0.5); margin-bottom: 10px; }
.foot-col a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color .15s;
}
.foot-col a:hover { color: var(--accent); }
.foot-col b {
  font-family: var(--sans); font-weight: 600;
  font-size: 15px; letter-spacing: -0.01em;
  color: #fff;
}

.cta-meta b a {
  color: inherit;
  text-decoration: none;
  transition: color .15s;
}
.cta-meta b a:hover { color: var(--accent); }

.foot-legal-link {
  color: inherit;
  text-decoration: none;
  transition: color .15s;
}
.foot-legal-link:hover { color: var(--accent); }

.foot-libro-icon {
  display: inline-block;
  width: 100px;
  height: 100px;
  margin: 0 8px;
  vertical-align: middle;
  object-fit: contain;
  opacity: 0.75;
}

.foot-row--bot {
  display: flex; justify-content: space-between;
  padding-top: 24px;
  color: rgba(255,255,255,0.5);
}

/* ─── Side rail ───────────────────────────────────────────────────── */
.rail {
  position: fixed; right: 24px; top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  display: flex; flex-direction: column;
  align-items: center; gap: 12px;
  pointer-events: none;
}
.rail-bar {
  width: 2px; height: 160px;
  background: rgba(17,17,17,0.12);
  position: relative;
  overflow: hidden;
}
.rail-fill {
  position: absolute; top: 0; left: 0; right: 0;
  height: calc(var(--scroll-p, 0) * 100%);
  background: var(--ink);
  transition: height .15s linear;
}
.rail-pct {
  font-family: var(--mono); font-size: 10px;
  color: var(--ink-2);
  letter-spacing: 0.08em;
}
.nav[data-dark="true"] ~ .rail .rail-bar { background: rgba(255,255,255,0.15); }
.nav[data-dark="true"] ~ .rail .rail-fill { background: #fff; }
.nav[data-dark="true"] ~ .rail .rail-pct { color: rgba(255,255,255,0.6); }

/* ─── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav {
    padding: 14px 20px;
    gap: 12px;
    flex-wrap: wrap;
  }
  .nav-actions {
    gap: 8px;
    flex: 1;
    justify-content: flex-end;
    flex-wrap: wrap;
  }
  .nav-actions .nav-links { margin-right: 0; }
  .nav-menu-btn { display: inline-flex; }
  .nav-cta span { display: none; }
  .nav-cta { padding: 9px 14px; }
  .nav-cta svg { margin: 0; }

  .nav.is-open .nav-actions {
    flex: 1 1 100%;
    align-items: stretch;
  }

  .nav-links {
    display: none;
    order: 3;
    flex: 1 1 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px 0 4px;
    border-top: 1px solid var(--rule);
  }
  .nav.is-open .nav-links { display: flex; }
  .nav-links a {
    padding: 14px 4px;
    font-size: 16px;
    border-radius: 8px;
  }
  .nav-links a:active { background: rgba(17,17,17,0.06); }
  .nav[data-dark="true"] .nav-links { border-top-color: rgba(255,255,255,0.12); }
  .nav[data-dark="true"] .nav-links a:active { background: rgba(255,255,255,0.08); }

  body.nav-open { overflow: hidden; }

  .hero-pin { padding: 88px 20px 28px; }
  .hero-mark {
    font-size: clamp(96px, 28vw, 168px);
    transform: scale(calc(1.1 - var(--hero-p, 0) * 0.32));
  }
  .hero-tagline {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .hero-tagline-meta { text-align: left; }

  .manifesto-pin { padding: 88px 20px 28px; }
  .manifesto-text { font-size: clamp(36px, 9vw, 72px); }

  .services { padding-left: 20px; padding-right: 20px; }
  .services-head, .clients-head { grid-template-columns: 1fr; gap: 28px; }
  .clients { padding: 120px 20px 48px; }
  .srv { grid-template-columns: 60px 1fr; gap: 24px; }
  .srv-vis { display: none; }
  .metrics { padding-left: 20px; padding-right: 20px; }
  .metrics-grid { grid-template-columns: 1fr 1fr; }
  .logo-carousel { grid-template-columns: repeat(2, 1fr); }
  .logo-slot { min-height: 160px; }
  .logo-grid { grid-template-columns: 1fr 1fr; }
  .cta { padding: 100px 20px 80px; }
  .cta-meta { grid-template-columns: 1fr; gap: 20px; }
  .foot { padding: 60px 20px 28px; }
  .foot-row--mid { grid-template-columns: 1fr 1fr; }
  .foot-row--bot {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .foot-row--bot > span:last-child {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
    line-height: 1.5;
  }
  .foot-libro-icon {
    width: 28px;
    height: 28px;
    margin: 0;
  }
  .rail { display: none; }
}

@media (max-width: 480px) {
  .hero-mark { font-size: clamp(64px, 21vw, 100px); }
  .hero-pin { padding-left: 20px; padding-right: 20px; }
  .hero-meta { font-size: 10px; }
  .metrics-grid { grid-template-columns: 1fr; }
  .metric-num { font-size: clamp(48px, 12vw, 72px); }
  .foot-row--mid { grid-template-columns: 1fr; }
  .nav-cta { font-size: 0; width: 40px; padding: 9px; justify-content: center; }
  .nav-cta span { display: none; }
}
