/* ============================================================
   Grupo Dealcode — Forensic Lab × Modern
   ============================================================ */

:root {
  /* Palette — light editorial */
  --bg:        #f7f5ef;        /* warm off-white */
  --bg-2:      #ffffff;
  --surface:   #ffffff;
  --surface-2: #f1ede3;
  --line:      rgba(15, 28, 56, 0.09);
  --line-2:    rgba(15, 28, 56, 0.16);
  --text:      #0c1530;        /* deep navy ink */
  --text-dim:  #4b5575;
  --text-mute: #8590a8;

  --brand:     #1d4ed8;        /* deep blue, corporate-readable */
  --brand-2:   #2563eb;
  --brand-soft: rgba(29, 78, 216, 0.10);
  --phosphor:  #0f8c5e;        /* verification green */
  --amber:     #b45309;
  --rose:      #be123c;

  /* Dark terminal surfaces (used inside the code panel only) */
  --term-bg:   #0b1220;
  --term-line: rgba(255, 255, 255, 0.10);
  --term-text: #e8edf9;
  --term-dim:  #94a3b8;

  /* Type */
  --font-display: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body:    "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Radii */
  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;

  /* Layout */
  --container: 1520px;
  --gutter: clamp(20px, 3.5vw, 56px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Subtle dot grid + soft warm gradient background */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(1100px 600px at 85% -5%, rgba(29, 78, 216, 0.07), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(15, 140, 94, 0.04), transparent 60%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(rgba(15, 28, 56, 0.07) 1px, transparent 1px);
  background-size: 28px 28px;
  background-position: -14px -14px;
  mask-image: radial-gradient(ellipse at 50% 30%, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, black 0%, transparent 70%);
  opacity: 0.5;
}

main, header, footer, section { position: relative; z-index: 1; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ===== Layout helpers ===== */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--phosphor);
}
.eyebrow.alt { color: var(--text-dim); }
.eyebrow.alt::before { background: var(--brand); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.022em;
  margin: 0;
  text-wrap: balance;
  color: var(--text);
}

.h-display {
  font-size: clamp(40px, 6vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 500;
}
.h-section {
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.02;
  letter-spacing: -0.03em;
}
.h-card {
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 500;
}

.lede {
  color: var(--text-dim);
  font-size: clamp(16px, 1.2vw, 19px);
  line-height: 1.55;
  max-width: 60ch;
  text-wrap: pretty;
}

.mono { font-family: var(--font-mono); }

/* ===== Top utility bar ===== */
.utility-bar {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--text-mute);
}
.utility-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 32px;
}
.utility-bar .left,
.utility-bar .right {
  display: flex; gap: 18px; align-items: center;
}
.utility-bar .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--phosphor);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ===== Nav ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 245, 239, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav .container {
  display: flex;
  align-items: center;
  height: 72px;
  gap: 36px;
}

/* Hamburger button — hidden on desktop, shown <= 980px */
.nav-burger {
  display: none;
  background: transparent;
  border: 1px solid var(--line-2);
  color: var(--text);
  width: 40px; height: 40px;
  border-radius: var(--r-sm);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.nav-burger svg { width: 18px; height: 18px; }
.nav-burger:hover { border-color: var(--brand); }
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
}
.brand-img {
  height: auto;
  max-height: 40px;
  width: auto;
  max-width: 40px;
  display: none;
}
.brand-img.loaded { display: block; }
.brand-img.loaded ~ .brand-mark { display: none; }
.brand-mark {
  width: 30px; height: 30px;
  display: grid; place-items: center;
}
.brand-name {
  display: flex; flex-direction: column; line-height: 1; gap: 2px;
}
.brand-name b { font-size: 17px; letter-spacing: -0.02em; }
.brand-name small {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  color: var(--text-mute);
  text-transform: uppercase;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 20px;
}
.nav-item {
  position: relative;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text-dim);
  background: transparent;
  border: none;
  font-family: inherit;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: color .15s ease, background .15s ease;
  display: inline-flex; align-items: center; gap: 6px;
}
.nav-item:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.nav-item .chev {
  width: 10px; height: 10px;
  transition: transform .2s ease;
}
.nav-item[aria-expanded="true"] .chev { transform: rotate(180deg); }
.nav-spacer { flex: 1; }
.nav-cta {
  font-size: 13px;
  padding: 10px 16px;
  border-radius: var(--r-sm);
  border: 1px solid var(--text);
  background: var(--text);
  color: var(--bg-2);
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: all .15s ease;
}
.nav-cta:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.nav-cta:hover .dot { background: #fff !important; }

/* ===== Mega menu ===== */
.megamenu {
  position: absolute;
  left: 0; right: 0;
  top: calc(100% + 0px);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  box-shadow: 0 30px 60px rgba(15, 28, 56, 0.12);
  padding: 32px 0 40px;
  display: none;
}
.megamenu[aria-hidden="false"] { display: block; animation: dropIn .18s ease; }
.megamenu > .container { display: block; height: auto; }
@keyframes dropIn { from { opacity: 0; transform: translateY(-6px);} to{opacity:1; transform:none;} }
.megamenu .mega-grid {
  display: grid;
  grid-template-columns: 220px 1fr 280px;
  gap: 40px;
}
.mega-rail {
  border-right: 1px solid var(--line);
  padding-right: 24px;
}
.mega-rail-title {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 16px;
}
.mega-rail ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.mega-rail li {
  font-size: 13px;
  color: var(--text-dim);
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
  display: flex; align-items: center; justify-content: space-between;
}
.mega-rail li:last-child { border-bottom: none; }
.mega-rail li .count {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-mute);
}

.mega-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.mega-card {
  display: block;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg);
  transition: border-color .15s ease, transform .15s ease, background .15s ease;
}
.mega-card:hover {
  border-color: var(--brand);
  background: var(--surface-2);
  transform: translateY(-1px);
}
.mega-card .top {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 12px;
}
.mega-card .top .tag {
  padding: 2px 6px;
  border: 1px solid var(--line-2);
  border-radius: 3px;
  color: var(--brand-2);
}
.mega-card h4 {
  font-size: 17px;
  font-weight: 500;
  margin-bottom: 6px;
}
.mega-card p {
  font-size: 13px;
  color: var(--text-dim);
  margin: 0;
  line-height: 1.45;
}
.mega-card .arrow {
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--brand-2);
  letter-spacing: 0.04em;
}

.mega-cta {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 22px;
  background:
    radial-gradient(220px 130px at 80% 0%, rgba(29, 78, 216, 0.10), transparent 70%),
    var(--bg);
}
.mega-cta h5 {
  font-size: 16px; margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.mega-cta p {
  font-size: 13px;
  color: var(--text-dim);
  margin: 0 0 16px;
  line-height: 1.5;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: var(--r-sm);
  font-family: var(--font-body);
  font-size: 14px;
  letter-spacing: -0.005em;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
  text-decoration: none;
}
.btn-primary {
  background: var(--text);
  color: var(--bg-2);
}
.btn-primary:hover { background: var(--brand); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-2);
}
.btn-ghost:hover { border-color: var(--text); background: var(--surface); }
.btn .arr {
  display: inline-block;
  transition: transform .15s ease;
}
.btn:hover .arr { transform: translateX(3px); }

/* ===== Hero ===== */
.hero {
  padding: 80px 0 100px;
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
}
.hero-claim {
  display: flex; flex-direction: column; gap: 28px;
}
.hero-claim h1 .accent {
  color: var(--brand);
}
.hero-claim h1 .crossout {
  position: relative;
  color: var(--text-mute);
}
.hero-claim h1 .crossout::after {
  content: "";
  position: absolute;
  left: -4%; right: -4%;
  top: 52%;
  height: 3px;
  background: var(--rose);
  transform: skewY(-3deg);
}
.hero-cta-row {
  display: flex; gap: 12px; flex-wrap: wrap;
}
.hero-meta {
  display: flex; gap: 28px; flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.hero-meta .item {
  display: flex; flex-direction: column; gap: 4px;
}
.hero-meta .item .k {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.hero-meta .item .v {
  font-size: 14px;
  color: var(--text);
}

/* Terminal panel (kept dark for contrast) */
.terminal {
  border: 1px solid var(--term-line);
  border-radius: var(--r-md);
  background: var(--term-bg);
  overflow: hidden;
  box-shadow:
    0 24px 60px rgba(15, 28, 56, 0.20),
    0 1px 0 rgba(255,255,255,0.04) inset;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--term-text);
}
.terminal-head {
  display: flex; align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid var(--term-line);
  background: rgba(0,0,0,0.25);
  gap: 14px;
}
.terminal-dots {
  display: flex; gap: 6px;
}
.terminal-dots span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.10);
  border: 1px solid var(--term-line);
}
.terminal-tabs {
  display: flex; gap: 0;
  flex: 1;
  overflow: hidden;
}
.terminal-tabs button {
  font-family: var(--font-mono);
  font-size: 11px;
  background: transparent;
  border: none;
  color: var(--term-dim);
  padding: 6px 12px;
  cursor: pointer;
  border-right: 1px solid var(--term-line);
  transition: color .15s ease, background .15s ease;
  letter-spacing: 0.02em;
}
.terminal-tabs button.active {
  color: var(--term-text);
  background: rgba(255,255,255,0.04);
}
.terminal-tabs button:hover { color: var(--term-text); }
.terminal-meta {
  font-size: 10px;
  color: var(--term-dim);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.terminal-body {
  padding: 22px 22px 28px;
  min-height: 340px;
  line-height: 1.65;
  color: var(--term-text);
  overflow: hidden;
}
.terminal-body .line { display: block; white-space: pre; }
.terminal-body .line.dim { color: var(--term-dim); }
.terminal-body .line .kw { color: #93c5fd; }
.terminal-body .line .ok { color: #6ee7b7; }
.terminal-body .line .num { color: #fbbf24; }
.terminal-body .line .str { color: #d8c4ff; }
.terminal-body .line .err { color: #fda4af; }
.terminal-body .caret {
  display: inline-block;
  width: 8px; height: 14px;
  background: #6ee7b7;
  margin-left: 2px;
  vertical-align: middle;
  animation: blink 1s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ===== Credentials strip ===== */
.credentials {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  background: var(--surface);
}
.credentials .row {
  display: flex; align-items: center; gap: 40px; justify-content: space-between;
  flex-wrap: wrap;
}
.credentials .label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-mute);
}
.credentials .items {
  display: flex; gap: 36px; flex-wrap: wrap;
}
.credentials .items .item {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--text-dim);
  display: flex; align-items: center; gap: 10px;
}
.credentials .items .item .badge {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 3px 7px;
  border: 1px solid var(--line-2);
  border-radius: 3px;
  color: var(--brand);
  letter-spacing: 0.08em;
}

/* ===== Section ===== */
.section {
  padding: 110px 0;
  position: relative;
}
.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 60px;
}
.section-head .left { display: flex; flex-direction: column; gap: 18px; }
.section-head .right { color: var(--text-dim); font-size: 16px; line-height: 1.55; max-width: 48ch; }

/* ===== Services grid ===== */
.services {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.service-card {
  grid-column: span 2;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 360px;
  transition: border-color .2s ease, background .2s ease, transform .2s ease, box-shadow .2s ease;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}
.service-card.featured { grid-column: span 3; min-height: 420px; }
.service-card:nth-child(4) { grid-column: span 3; }
.service-card:nth-child(5) { grid-column: span 5; }
.service-card:hover {
  border-color: var(--text);
  background: var(--surface);
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(15, 28, 56, 0.08);
}
.service-card .num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.18em;
}
.service-card .glyph {
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-top: auto;
}
.service-card.featured .glyph { height: 160px; }
.service-card h3 { font-size: 24px; }
.service-card p {
  margin: 0;
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.55;
}
.service-card .link {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--brand);
  font-weight: 500;
  letter-spacing: -0.005em;
}
.service-card .link:hover { color: var(--text); }

/* Background glyph patterns (computational visuals) */
.glyph-grid {
  --c: rgba(140,166,210,0.16);
  width: 100%; height: 100%;
  background-image:
    linear-gradient(var(--c) 1px, transparent 1px),
    linear-gradient(90deg, var(--c) 1px, transparent 1px);
  background-size: 16px 16px;
  mask-image: radial-gradient(circle at 20% 60%, black 30%, transparent 80%);
}

/* ===== Pillars / methodology ===== */
.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.pillar {
  background: var(--surface);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 220px;
}.pillar .num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.18em;
}
.pillar h4 {
  font-size: 19px;
  font-weight: 500;
}
.pillar p { font-size: 13.5px; color: var(--text-dim); margin: 0; line-height: 1.55; }

/* ===== Big CTA ===== */
.bigcta {
  padding: 120px 0;
  position: relative;
}
.bigcta .panel {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 70px 60px;
  background:
    radial-gradient(700px 280px at 80% -20%, rgba(29, 78, 216, 0.10), transparent 60%),
    radial-gradient(500px 200px at 0% 120%, rgba(15, 140, 94, 0.06), transparent 60%),
    var(--surface);
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: start;
}
.bigcta h2 { font-size: clamp(32px, 4vw, 50px); line-height: 1.02; }
.bigcta p { color: var(--text-dim); font-size: 16px; line-height: 1.55; }
.bigcta .panel .right {
  display: flex; flex-direction: column; gap: 14px;
}

/* ===== Footer ===== */
.footer {
  border-top: 1px solid var(--line);
  padding: 70px 0 30px;
  background: var(--surface);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 60px;
}
.footer-col h6 {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin: 0 0 18px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a, .footer-col li { font-size: 13.5px; color: var(--text-dim); }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-mute);
  letter-spacing: 0.06em;
  flex-wrap: wrap;
  gap: 16px;
}

/* ===== Service page hero ===== */
.svc-hero {
  padding: 70px 0 80px;
}
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 28px;
}
.breadcrumb a { color: var(--text-dim); }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb .sep { color: var(--text-mute); }
.svc-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: end;
}
.svc-hero h1 {
  font-size: clamp(40px, 5vw, 70px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.svc-hero .summary {
  color: var(--text-dim);
  font-size: 17px;
  line-height: 1.55;
  margin-bottom: 30px;
}
.svc-spec-card {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  padding: 26px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.6;
}
.svc-spec-card .row {
  display: grid;
  grid-template-columns: 110px 1fr;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
  gap: 16px;
}
.svc-spec-card .row:last-child { border-bottom: none; }
.svc-spec-card .row .k {
  color: var(--text-mute);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 10px;
}
.svc-spec-card .row .v {
  color: var(--text);
}

/* Capabilities grid */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.cap {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color .2s ease, box-shadow .2s ease;
  min-height: 200px;
}
.cap:hover { border-color: var(--text); box-shadow: 0 12px 28px rgba(15, 28, 56, 0.06); }
.cap .ix {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--brand);
  letter-spacing: 0.06em;
  font-weight: 500;
}
.cap h4 { font-size: 17px; font-weight: 500; letter-spacing: -0.01em; }
.cap p { font-size: 13.5px; color: var(--text-dim); margin: 0; line-height: 1.55; }

/* Process steps */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.process .step {
  background: var(--surface);
  padding: 24px;
  display: flex; flex-direction: column; gap: 10px;
  min-height: 180px;
  position: relative;
}
.process .step .step-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.15em;
}
.process .step h4 { font-size: 17px; font-weight: 500; }
.process .step p { font-size: 13px; color: var(--text-dim); margin: 0; line-height: 1.5; }

/* Tech stack list */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}
.tech-chip {
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  padding: 14px 16px;
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  transition: border-color .2s ease, color .2s ease;
}
.tech-chip:hover { border-color: var(--text); color: var(--text); }
.tech-chip .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand);
}

/* Other services nav */
.other-services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.other-card {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  padding: 20px;
  display: flex; flex-direction: column; gap: 8px;
  transition: all .15s ease;
  min-height: 140px;
}
.other-card:hover { border-color: var(--text); background: var(--surface); transform: translateY(-1px); box-shadow: 0 12px 28px rgba(15, 28, 56, 0.06); }
.other-card .num {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.15em;
}
.other-card h5 { font-size: 16px; font-weight: 500; }
.other-card .arrow {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--brand);
  margin-top: auto;
}

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ===== Responsive ===== */

/* Wide laptop / small desktop */
@media (max-width: 1180px) {
  .hero-grid { grid-template-columns: 1fr; gap: 50px; }
  .terminal-body { min-height: 280px; }
}

/* Tablet landscape — show hamburger, hide inline menu */
@media (max-width: 980px) {
  .nav-menu { display: none; }
  .nav-burger { display: inline-flex; }
  .nav .container { gap: 14px; height: 64px; }
  .nav-cta { display: none; }
  .services { grid-template-columns: repeat(4, 1fr); }
  .service-card { grid-column: span 2; }
  .service-card.featured, .service-card:nth-child(4), .service-card:nth-child(5) { grid-column: span 4; min-height: auto; }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .other-services { grid-template-columns: repeat(4, 1fr); }
}

/* Nosotros */
.nosotros-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 60px;
  align-items: start;
}
.nosotros-sticky {
  position: sticky;
  top: 120px;
}
.nosotros-creds {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 40px;
}

/* Tablet / mid */
@media (max-width: 880px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .service-card { grid-column: span 1; min-height: auto; }
  .service-card.featured, .service-card:nth-child(4), .service-card:nth-child(5) { grid-column: span 2; min-height: auto; }
  .hero-grid, .svc-hero-grid, .bigcta .panel, .nosotros-grid { grid-template-columns: 1fr; gap: 40px; }
  .nosotros-sticky { position: static; top: auto; }
  .nosotros-creds { grid-template-columns: 1fr 1fr; margin-top: 28px; }
  .megamenu .mega-grid { grid-template-columns: 1fr; gap: 24px; }
  .mega-rail { border-right: none; border-bottom: 1px solid var(--line); padding-right: 0; padding-bottom: 20px; }
  .mega-cards { grid-template-columns: repeat(2, 1fr); }
  .cap-grid { grid-template-columns: repeat(2, 1fr); }
  .process, .other-services { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section-head { grid-template-columns: 1fr; gap: 20px; }
  .credentials .items { gap: 20px; }
  .section { padding: 80px 0; }
  .bigcta { padding: 80px 0; }
  .bigcta .panel { padding: 50px 36px; }
  .h-display { font-size: clamp(38px, 8vw, 56px); }
}

/* Phone */
@media (max-width: 600px) {
  .utility-bar { font-size: 10px; }
  .utility-bar .container { height: 28px; }
  .utility-bar .left { gap: 8px; }
  .utility-bar .right { display: none; }
  .services, .cap-grid, .pillars, .process, .other-services { grid-template-columns: 1fr; }
  .service-card, .service-card.featured, .service-card:nth-child(4), .service-card:nth-child(5) { grid-column: span 1; min-height: auto; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .bigcta .panel { padding: 36px 22px; }
  .section { padding: 60px 0; }
  .hero { padding: 40px 0 60px; }
  .h-display { font-size: clamp(34px, 9vw, 46px); line-height: 1.05; }
  .h-section { font-size: clamp(26px, 7vw, 36px); }
  .hero-meta { flex-direction: column; gap: 16px; }
  .hero-meta .item .v { font-size: 13px; }
  .terminal-body { padding: 16px; font-size: 11px; min-height: 240px; }
  .terminal-tabs button { font-size: 10px; padding: 6px 8px; }
  .terminal-meta { display: none; }
  .nosotros-creds { grid-template-columns: 1fr; }
  .credentials .row { gap: 16px; }
  .credentials .items { flex-direction: column; align-items: flex-start; gap: 10px; }
  .credentials .items .item { font-size: 13px; }
  .svc-hero h1 { font-size: clamp(32px, 8vw, 44px); }
  .svc-hero { padding: 50px 0 60px; }
  .breadcrumb { font-size: 10px; flex-wrap: wrap; }
  .btn { padding: 12px 16px; font-size: 12px; }
}

/* Mobile drawer (injected by app.js) */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  background: rgba(2,5,12,0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.mobile-drawer[aria-hidden="false"] { display: block; }
.mobile-drawer .drawer-panel {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: min(360px, 86vw);
  background: var(--surface);
  border-left: 1px solid var(--line-2);
  display: flex;
  flex-direction: column;
  animation: drawerIn .25s ease;
  overflow-y: auto;
}
@keyframes drawerIn { from { transform: translateX(100%); } to { transform: none; } }
.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  height: 64px;
}
.drawer-close {
  background: transparent;
  border: 1px solid var(--line-2);
  color: var(--text);
  width: 34px; height: 34px;
  border-radius: var(--r-sm);
  cursor: pointer;
  display: grid;
  place-items: center;
}
.drawer-list {
  list-style: none;
  padding: 14px 0;
  margin: 0;
}
.drawer-list li > a, .drawer-list li > button {
  display: block;
  padding: 14px 20px;
  color: var(--text);
  font-size: 16px;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
}
.drawer-list li > a:hover, .drawer-list li > button:hover { background: var(--bg-2); color: var(--brand-2); }
.drawer-sub {
  list-style: none;
  padding: 0 0 8px 20px;
  margin: 0;
  border-left: 1px solid var(--line);
  margin-left: 20px;
}
.drawer-sub li a {
  display: block;
  padding: 10px 14px;
  color: var(--text-dim);
  font-size: 14px;
}
.drawer-sub li a:hover { color: var(--text); }
.drawer-foot {
  margin-top: auto;
  padding: 20px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-mute);
  letter-spacing: 0.06em;
}
.drawer-foot .btn { width: 100%; justify-content: center; margin-bottom: 14px; }
