/* GuerrerosCR — Original design system */
:root {
  --bg: #F8FAFC;
  --bg-2: #FFFFFF;
  --bg-3: #EEF2F7;
  --ink: #0B1F3A;
  --ink-2: #0F172A;
  --muted: #64748B;
  --line: #E2E8F0;
  --brand: #2563EB;
  --brand-2: #1D4ED8;
  --accent: #22C55E;
  --warn: #F59E0B;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(11,31,58,.06), 0 1px 1px rgba(11,31,58,.04);
  --shadow-md: 0 8px 24px -8px rgba(11,31,58,.15), 0 2px 6px rgba(11,31,58,.05);
  --shadow-lg: 0 24px 60px -20px rgba(11,31,58,.25), 0 8px 16px -8px rgba(11,31,58,.1);
  --font-sans: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

[data-theme="dark"] {
  --bg: #0B1F3A;
  --bg-2: #111827;
  --bg-3: #0F2547;
  --ink: #FFFFFF;
  --ink-2: #F1F5F9;
  --muted: #94A3B8;
  --line: rgba(255,255,255,0.08);
  --brand: #3B82F6;
  --brand-2: #2563EB;
  --accent: #22C55E;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.3);
  --shadow-md: 0 8px 24px -8px rgba(0,0,0,.5);
  --shadow-lg: 0 24px 60px -20px rgba(0,0,0,.7);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink-2);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  font-feature-settings: "ss01", "cv11";
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ====== Top nav ====== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--bg) 85%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1240px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 28px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; letter-spacing: -0.02em;
  color: var(--ink);
}
.brand-logo {
  width: auto;
  height: 44px;
  object-fit: contain;
  mix-blend-mode: normal;
  filter: drop-shadow(0 8px 18px color-mix(in oklab, var(--ink) 22%, transparent));
}
[data-theme="dark"] .brand-logo {
  filter: invert(1) hue-rotate(180deg) drop-shadow(0 8px 18px rgba(0, 0, 0, 0.48));
}
.brand-mark {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: linear-gradient(135deg, #0B1F3A 0%, #1E3A8A 100%);
  color: #fff; font-weight: 800; font-size: 16px;
  letter-spacing: -0.04em;
  position: relative; overflow: hidden;
}
.brand-mark::after {
  content: ""; position: absolute; top: 6px; right: 6px;
  width: 6px; height: 6px; background: var(--accent); border-radius: 1px;
  box-shadow: -8px 4px 0 -1px var(--brand), -4px 8px 0 -2px var(--ink);
}
.brand-name { font-size: 17px; }
.brand-name b { color: var(--brand); font-weight: 700; }

.nav-links {
  display: flex; align-items: center; gap: 4px;
}
.nav-link {
  padding: 8px 14px; border-radius: 8px;
  font-size: 14px; color: var(--muted); font-weight: 500;
  transition: all .15s ease;
}
.nav-link:hover { color: var(--ink); background: var(--bg-3); }
.nav-link.active { color: var(--ink); }

.nav-cta {
  display: flex; align-items: center; gap: 10px;
}
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px; height: 36px;
  padding: 6px;
  background: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  color: var(--ink);
}
.nav-burger span {
  display: block;
  width: 18px; height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-links .nav-link-mobile-cta { display: none; }
.lang-toggle {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 5px 10px;
  border: 1.5px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  line-height: 1;
}
.lang-toggle:hover { color: var(--ink); border-color: var(--ink); }
.theme-toggle {
  min-width: 108px;
}

/* ====== Buttons ====== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 10px;
  font-size: 14px; font-weight: 600;
  transition: all .15s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--brand); color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,.15) inset, var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--brand-2);
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(255,255,255,.15) inset, var(--shadow-md);
}
.btn-ghost {
  color: var(--ink);
  background: transparent;
  border-color: var(--line);
}
.btn-ghost:hover { background: var(--bg-3); }
.btn-wa {
  background: #25D366; color: #fff;
}
.btn-wa:hover { background: #1ebe5a; }
.btn-lg { padding: 14px 22px; font-size: 15px; }

/* ====== Layout ====== */
.section {
  max-width: 1240px; margin: 0 auto;
  padding: 96px 28px;
}
.section-tight { padding: 64px 28px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand); font-weight: 600;
  padding: 6px 10px;
  background: color-mix(in oklab, var(--brand) 10%, transparent);
  border-radius: 999px;
}
.eyebrow.green { color: var(--accent); background: color-mix(in oklab, var(--accent) 12%, transparent); }
.eyebrow .dot {
  width: 6px; height: 6px; background: currentColor; border-radius: 999px;
}

h1, h2, h3, h4 { color: var(--ink); letter-spacing: -0.025em; margin: 0; font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(40px, 5.4vw, 68px); line-height: 1.02; font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.08; }
h3 { font-size: 20px; line-height: 1.3; }
p { margin: 0; color: var(--muted); text-wrap: pretty; }

/* ====== Hero ====== */
.hero {
  position: relative;
  padding: 80px 28px 80px;
  overflow: hidden;
}
.hero-inner {
  max-width: 1240px; margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 80px;
  align-items: center;
}
.hero h1 .accent { color: var(--brand); }
.hero h1 .accent2 {
  background: linear-gradient(90deg, var(--brand) 0%, var(--accent) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lead { font-size: 18px; margin-top: 24px; max-width: 540px; color: var(--muted); }
.hero-ctas { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.hero-meta {
  margin-top: 40px; display: flex; gap: 28px; flex-wrap: wrap;
  font-size: 13px; color: var(--muted);
}
.hero-meta b { color: var(--ink); font-weight: 600; display: block; font-size: 22px; letter-spacing: -0.02em; }

/* Decorative hero panel - mocked dashboard */
.hero-mock {
  position: relative;
  background: var(--bg-2);
  border-radius: 20px;
  padding: 16px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
}
.hero-mock::before {
  content: ""; position: absolute; inset: -40px;
  background: radial-gradient(60% 50% at 50% 50%, color-mix(in oklab, var(--brand) 12%, transparent), transparent);
  z-index: -1; filter: blur(20px);
}
.mock-bar {
  display: flex; gap: 6px; padding: 6px 6px 12px;
  border-bottom: 1px solid var(--line); margin-bottom: 12px;
}
.mock-bar span {
  width: 10px; height: 10px; border-radius: 999px; background: var(--line);
}
.mock-bar span:nth-child(1) { background: #FF5F57; }
.mock-bar span:nth-child(2) { background: #FEBC2E; }
.mock-bar span:nth-child(3) { background: #28C840; }
.mock-tabs { display: flex; gap: 6px; margin-left: 16px; }
.mock-tab { font-size: 11px; color: var(--muted); padding: 4px 10px; border-radius: 6px; background: var(--bg-3); }
.mock-tab.active { background: var(--ink); color: #fff; }

.mock-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 8px;
}
.mock-kpi {
  background: var(--bg-3); border-radius: 10px; padding: 14px 14px 12px;
}
.mock-kpi-label {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted);
}
.mock-kpi-val { font-size: 24px; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; margin-top: 4px; }
.mock-kpi-delta { font-size: 11px; color: var(--accent); font-weight: 600; margin-top: 4px; font-family: var(--font-mono); }
.mock-kpi-delta.down { color: #EF4444; }

.mock-chart {
  grid-column: 1 / -1;
  background: var(--bg-3); border-radius: 10px; padding: 14px;
  height: 160px; position: relative;
}
.mock-chart-title {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--ink); font-weight: 600;
}
.mock-chart-title span { font-family: var(--font-mono); font-size: 10px; color: var(--muted); font-weight: 500; }
.mock-chart svg { width: 100%; height: 110px; margin-top: 8px; }

.mock-list {
  grid-column: 1 / -1;
  background: var(--bg-3); border-radius: 10px; padding: 4px;
}
.mock-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 6px;
  font-size: 12px;
}
.mock-row + .mock-row { border-top: 1px solid var(--line); }
.mock-row-status {
  width: 8px; height: 8px; border-radius: 999px; background: var(--accent); flex-shrink: 0;
}
.mock-row-status.pending { background: var(--warn); }
.mock-row-status.new { background: var(--brand); }
.mock-row-name { color: var(--ink); font-weight: 500; flex: 1; }
.mock-row-meta { color: var(--muted); font-family: var(--font-mono); font-size: 10px; }
.mock-row-pill {
  font-size: 10px; padding: 2px 8px; border-radius: 999px;
  background: var(--bg-2); color: var(--muted); font-weight: 500;
}

/* Floating chip near hero */
.float-chip {
  position: absolute;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--ink); font-weight: 500;
  animation: float 6s ease-in-out infinite;
}
.float-chip.tl { top: -18px; left: -28px; }
.float-chip.br { bottom: -20px; right: -24px; animation-delay: -3s; }
.float-chip .ico {
  width: 28px; height: 28px; border-radius: 8px;
  background: color-mix(in oklab, var(--accent) 18%, var(--bg-2));
  color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px;
}
.float-chip.tl .ico { background: color-mix(in oklab, var(--brand) 18%, var(--bg-2)); color: var(--brand); }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Background grid */
.grid-bg {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 80%);
  opacity: 0.5;
}

/* ====== Marquee / clients ====== */
.marquee-wrap {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--bg-2);
  overflow: hidden;
  padding: 18px 0;
}
.marquee {
  display: flex; gap: 60px; align-items: center;
  animation: marquee 32s linear infinite;
  width: max-content;
  color: var(--muted); font-size: 14px;
}
.marquee span {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--ink);
  opacity: 0.7;
}
.marquee span::before { content: "→"; color: var(--brand); }
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ====== Problem section ====== */
.problem {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.problem-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.compare {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px;
  align-items: stretch;
}
.compare-col {
  background: var(--bg-2);
  border-radius: 12px;
  padding: 18px;
  border: 1px solid var(--line);
}
.compare-col-label {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.15em;
  text-transform: uppercase; font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 8px; border-radius: 6px;
  margin-bottom: 12px;
}
.compare-col.before .compare-col-label { color: #EF4444; background: rgba(239, 68, 68, 0.1); }
.compare-col.after .compare-col-label { color: var(--accent); background: color-mix(in oklab, var(--accent) 14%, transparent); }
.compare-col ul { list-style: none; padding: 0; margin: 0; }
.compare-col li {
  padding: 8px 0; font-size: 13px; color: var(--ink);
  display: flex; align-items: flex-start; gap: 8px;
  border-bottom: 1px dashed var(--line);
}
.compare-col li:last-child { border-bottom: none; }
.compare-col li::before { font-family: var(--font-mono); font-size: 12px; flex-shrink: 0; line-height: 1.4; }
.compare-col.before li::before { content: "✕"; color: #EF4444; }
.compare-col.after li::before { content: "✓"; color: var(--accent); }
.compare-arrow {
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: var(--brand);
  font-family: var(--font-mono); font-weight: 700;
}

/* ====== Services ====== */
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  margin-top: 48px;
}
.service-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
  transition: all .25s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: flex; flex-direction: column;
  min-height: 280px;
}
.service-card:hover {
  border-color: color-mix(in oklab, var(--brand) 40%, var(--line));
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.service-card::after {
  content: ""; position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: var(--brand);
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s ease;
}
.service-card:hover::after { transform: scaleX(1); }
.service-num {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--muted); letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.service-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--bg-3);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  color: var(--brand);
}
.service-card h3 { margin-bottom: 8px; }
.service-card p { font-size: 14px; }
.service-card .more {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--brand);
  padding-top: 16px;
}
.service-card .more::after {
  content: "→"; transition: transform .2s ease;
}
.service-card:hover .more::after { transform: translateX(4px); }

/* Service detail panel */
.service-detail {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 40px;
  margin-top: 40px;
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px;
  align-items: start;
}
.service-tabs {
  display: flex; flex-direction: column; gap: 4px;
}
.service-tab {
  text-align: left;
  padding: 14px 16px; border-radius: 10px;
  font-size: 14px; font-weight: 500; color: var(--muted);
  display: flex; align-items: center; gap: 12px;
  transition: all .15s ease;
  border-left: 2px solid transparent;
}
.service-tab:hover { color: var(--ink); background: var(--bg-3); }
.service-tab.active {
  background: var(--bg-3); color: var(--ink); font-weight: 600;
  border-left-color: var(--brand);
}
.service-tab-num { font-family: var(--font-mono); font-size: 11px; color: var(--muted); width: 24px; }
.service-tab.active .service-tab-num { color: var(--brand); }

.detail-content h3 { font-size: 26px; margin-bottom: 12px; }
.detail-content > p { font-size: 15px; margin-bottom: 20px; }
.detail-ideal {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 20px;
  font-size: 13px;
}
.detail-ideal b { color: var(--ink); font-weight: 600; }
.detail-examples {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px;
  background: var(--bg); border: 1px solid var(--line);
  font-size: 12px; color: var(--ink); font-weight: 500;
}
.tag::before { content: "•"; color: var(--brand); }

/* ====== Process ====== */
.process-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 0;
  margin-top: 48px;
  position: relative;
}
.process-step {
  padding: 24px 18px;
  position: relative;
  border-right: 1px solid var(--line);
}
.process-step:last-child { border-right: none; }
.process-step-num {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--bg-2); border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 13px; font-weight: 600;
  color: var(--brand);
  margin-bottom: 14px;
}
.process-step.active .process-step-num {
  background: var(--brand); color: #fff; border-color: var(--brand);
}
.process-step h4 { font-size: 15px; margin-bottom: 6px; }
.process-step p { font-size: 13px; }
.process-step::after {
  content: ""; position: absolute;
  top: 38px; right: -7px;
  width: 12px; height: 12px;
  background: var(--bg); border: 1px solid var(--line);
  border-radius: 999px; z-index: 2;
}
.process-step:last-child::after { display: none; }

/* ====== Projects ====== */
.projects-grid {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px;
  margin-top: 48px;
}
.project-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
  display: flex; flex-direction: column;
  position: relative;
  overflow: hidden;
}
.project-card.large { grid-column: span 7; min-height: 380px; }
.project-card.small { grid-column: span 5; min-height: 380px; }
.project-card.full { grid-column: span 12; min-height: 240px; }
.project-card.third { grid-column: span 4; min-height: 320px; }

.project-tag {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--brand); font-weight: 600;
  margin-bottom: 12px;
}
.project-card h3 { font-size: 22px; margin-bottom: 8px; }
.project-card p { font-size: 14px; max-width: 460px; }
.project-benefits {
  margin-top: 16px;
  display: flex; flex-wrap: wrap; gap: 6px;
}

/* Project visual mocks */
.proj-visual {
  margin-top: 24px; flex: 1;
  position: relative;
  border-radius: 12px;
  background: var(--bg-3);
  overflow: hidden;
  min-height: 160px;
}

.viz-tickets {
  padding: 14px; display: flex; flex-direction: column; gap: 6px;
}
.viz-ticket-row {
  display: grid; grid-template-columns: 12px 1fr auto auto; gap: 10px;
  align-items: center;
  background: var(--bg-2);
  padding: 10px 12px; border-radius: 8px;
  font-size: 12px;
  border: 1px solid var(--line);
}
.viz-ticket-row .dot {
  width: 8px; height: 8px; border-radius: 999px; background: var(--brand);
}
.viz-ticket-row.green .dot { background: var(--accent); }
.viz-ticket-row.amber .dot { background: var(--warn); }
.viz-ticket-row .name { color: var(--ink); font-weight: 500; }
.viz-ticket-row .meta { color: var(--muted); font-family: var(--font-mono); font-size: 10px; }
.viz-ticket-row .pill {
  font-size: 10px; padding: 2px 8px; border-radius: 999px;
  background: var(--bg-3); color: var(--muted);
  text-transform: uppercase; font-weight: 600; letter-spacing: 0.05em;
}
.viz-ticket-row.green .pill { background: color-mix(in oklab, var(--accent) 18%, transparent); color: var(--accent); }
.viz-ticket-row.amber .pill { background: color-mix(in oklab, var(--warn) 18%, transparent); color: var(--warn); }

.viz-flow {
  padding: 20px;
  display: flex; flex-direction: column; gap: 14px;
}
.viz-flow-node {
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 10px; padding: 10px 14px;
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; color: var(--ink); font-weight: 500;
}
.viz-flow-node .ico {
  width: 24px; height: 24px; border-radius: 6px;
  background: var(--bg-3); color: var(--brand);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px;
}
.viz-flow-node.ok .ico { background: color-mix(in oklab, var(--accent) 18%, transparent); color: var(--accent); }
.viz-flow-arrow {
  width: 1px; height: 16px; background: var(--line);
  margin-left: 24px; position: relative;
}
.viz-flow-arrow::after {
  content: ""; position: absolute; bottom: -1px; left: -3px;
  width: 7px; height: 7px;
  border-right: 2px solid var(--line); border-bottom: 2px solid var(--line);
  transform: rotate(45deg);
}

.viz-chart { padding: 16px; }
.viz-chart-head { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--ink); font-weight: 600; margin-bottom: 12px; }
.viz-chart-head span { font-family: var(--font-mono); font-size: 10px; color: var(--muted); font-weight: 500; }
.viz-bars { display: flex; align-items: flex-end; gap: 6px; height: 100px; }
.viz-bar {
  flex: 1; background: var(--brand);
  border-radius: 4px 4px 0 0;
  position: relative;
  opacity: 0.85;
}
.viz-bar:nth-child(odd) { background: var(--ink); opacity: 0.7; }

.viz-integrations {
  padding: 16px; display: flex; flex-direction: column; gap: 10px;
}
.viz-integ-row {
  display: grid; grid-template-columns: auto 1fr auto 1fr; gap: 12px;
  align-items: center; font-size: 12px;
}
.viz-integ-chip {
  padding: 8px 12px;
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 8px;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--ink); font-weight: 600; text-align: center;
}
.viz-integ-line {
  height: 1px; background: var(--brand);
  position: relative;
}
.viz-integ-line::after {
  content: ""; position: absolute;
  right: -1px; top: -3px;
  width: 7px; height: 7px;
  border-right: 2px solid var(--brand); border-top: 2px solid var(--brand);
  transform: rotate(45deg);
}
.viz-integ-pill {
  font-size: 10px; padding: 3px 8px; border-radius: 999px;
  background: color-mix(in oklab, var(--accent) 15%, transparent);
  color: var(--accent); font-weight: 600;
  font-family: var(--font-mono); text-align: center;
}

.viz-web {
  padding: 0;
  background: linear-gradient(135deg, #0B1F3A 0%, #1E3A8A 100%);
  color: #fff;
  display: flex; flex-direction: column;
}
.viz-web-bar {
  padding: 10px 14px; border-bottom: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; gap: 8px;
}
.viz-web-bar span { width: 8px; height: 8px; border-radius: 999px; background: rgba(255,255,255,.3); }
.viz-web-bar .url {
  flex: 1; background: rgba(255,255,255,.08); border-radius: 6px;
  padding: 4px 10px; font-family: var(--font-mono); font-size: 10px;
  color: rgba(255,255,255,.7); margin-left: 8px;
}
.viz-web-body { padding: 24px; text-align: center; flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 12px; }
.viz-web-body h4 { color: #fff; font-size: 18px; }
.viz-web-body p { color: rgba(255,255,255,.7); font-size: 12px; max-width: 220px; }
.viz-web-body .mini-btn {
  background: #2563EB; color: #fff; padding: 6px 14px; border-radius: 6px; font-size: 11px; font-weight: 600;
}

/* ====== Tech stack ====== */
.tech-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px;
  margin-top: 40px;
}
.tech-chip {
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 14px;
  display: flex; flex-direction: column; gap: 6px;
  font-size: 13px; color: var(--ink); font-weight: 600;
  transition: all .15s ease;
}
.tech-chip:hover { border-color: color-mix(in oklab, var(--brand) 40%, var(--line)); transform: translateY(-2px); }
.tech-chip-label {
  font-family: var(--font-mono); font-size: 10px;
  color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em;
  font-weight: 500;
}

/* ====== About ====== */
.about-grid {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px;
  align-items: start;
}
.values-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  margin-top: 28px;
}
.value-card {
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
}
.value-card h4 { font-size: 15px; margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.value-card h4::before {
  content: ""; width: 8px; height: 8px; border-radius: 999px; background: var(--accent);
}
.value-card p { font-size: 13px; }

.mv-card {
  background: linear-gradient(135deg, #0B1F3A 0%, #1E3A8A 100%);
  color: #fff;
  border-radius: 20px;
  padding: 32px;
  position: relative;
  overflow: hidden;
}
.mv-card h3 { color: #fff; font-size: 18px; margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.mv-card h3 .pill {
  font-family: var(--font-mono); font-size: 10px;
  padding: 3px 8px; border-radius: 6px;
  background: rgba(255,255,255,.12); color: rgba(255,255,255,.8);
  text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600;
}
.mv-card p { color: rgba(255,255,255,.75); font-size: 14px; }
.mv-card + .mv-card { margin-top: 12px; }
.mv-card .grid-glow {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

/* ====== CTA ====== */
.cta {
  background: linear-gradient(135deg, #0B1F3A 0%, #1E40AF 100%);
  border-radius: 28px;
  padding: 56px;
  color: #fff;
  position: relative;
  overflow: hidden;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center;
}
.cta h2 { color: #fff; }
.cta p { color: rgba(255,255,255,.8); font-size: 16px; margin-top: 12px; max-width: 520px; }
.cta-actions { display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; }
.cta::before {
  content: ""; position: absolute; right: -10%; top: -20%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, color-mix(in oklab, var(--accent) 25%, transparent), transparent 70%);
  pointer-events: none;
}
.cta::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(180deg, #000, transparent 80%);
  pointer-events: none;
}

/* ====== Contact ====== */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px;
  align-items: start;
}
.contact-card {
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 20px; padding: 32px;
  box-shadow: var(--shadow-sm);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { margin-bottom: 14px; }
.field label {
  display: block; font-size: 12px;
  font-family: var(--font-mono); letter-spacing: 0.05em;
  text-transform: uppercase; font-weight: 600;
  color: var(--muted); margin-bottom: 6px;
}
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 14px;
  background: var(--bg); border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 14px; color: var(--ink); font-family: inherit;
  transition: border-color .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--brand) 15%, transparent);
}
.field textarea { resize: vertical; min-height: 100px; }
.field-error { color: #EF4444; font-size: 12px; margin-top: 4px; }

.budget-options { display: flex; gap: 6px; flex-wrap: wrap; }
.budget-pill {
  padding: 8px 12px; border-radius: 999px;
  background: var(--bg); border: 1px solid var(--line);
  font-size: 12px; font-weight: 500; color: var(--ink);
  transition: all .15s ease;
}
.budget-pill:hover { border-color: var(--brand); }
.budget-pill.active { background: var(--brand); color: #fff; border-color: var(--brand); }

.contact-aside h2 { margin-bottom: 16px; }
.contact-channels { margin-top: 28px; display: flex; flex-direction: column; gap: 10px; }
.channel {
  display: flex; align-items: center; gap: 14px;
  padding: 14px; border-radius: 12px;
  background: var(--bg-2); border: 1px solid var(--line);
  transition: all .15s ease;
}
.channel:hover { border-color: color-mix(in oklab, var(--brand) 40%, var(--line)); }
.channel-ico {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--bg-3); color: var(--brand);
  display: inline-flex; align-items: center; justify-content: center;
}
.channel-ico.wa { background: color-mix(in oklab, #25D366 18%, transparent); color: #25D366; }
.channel-body { flex: 1; }
.channel-label { font-size: 12px; color: var(--muted); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.05em; }
.channel-value { font-size: 15px; color: var(--ink); font-weight: 600; }
.channel-arrow { color: var(--muted); font-family: var(--font-mono); }

.thanks {
  text-align: center; padding: 32px;
}
.thanks .check {
  width: 64px; height: 64px; border-radius: 999px;
  background: color-mix(in oklab, var(--accent) 18%, transparent);
  color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 30px; margin-bottom: 16px;
}

/* ====== Footer ====== */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  padding: 64px 28px 32px;
  margin-top: 64px;
}
.footer-inner {
  max-width: 1240px; margin: 0 auto;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px;
}
.footer h5 {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); font-weight: 600; margin: 0 0 14px;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.footer ul a { font-size: 14px; color: var(--ink); }
.footer ul a:hover { color: var(--brand); }
.footer-meta {
  max-width: 1240px; margin: 48px auto 0;
  padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--muted);
}

/* ====== Floating WhatsApp ====== */
.wa-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 60;
  background: #25D366; color: #fff;
  width: 56px; height: 56px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 32px -4px rgba(37, 211, 102, 0.5);
  transition: all .2s ease;
  cursor: pointer;
  border: none;
}
.wa-float:hover {
  transform: scale(1.06);
  box-shadow: 0 16px 40px -4px rgba(37, 211, 102, 0.6);
}
.wa-float svg { width: 28px; height: 28px; }

/* ====== Blog ====== */
.blog-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  margin-top: 40px;
}
.blog-card {
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 18px; padding: 24px;
  display: flex; flex-direction: column;
  min-height: 240px;
  transition: all .15s ease;
}
.blog-card:hover { border-color: color-mix(in oklab, var(--brand) 40%, var(--line)); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.blog-cat {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--accent); font-weight: 600;
  margin-bottom: 14px;
}
.blog-card h3 { font-size: 17px; line-height: 1.3; margin-bottom: 10px; }
.blog-card p { font-size: 13px; }
.blog-meta {
  margin-top: auto;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--muted);
  font-family: var(--font-mono);
  padding-top: 16px;
}

/* ====== Section title block ====== */
.sec-head {
  display: grid; grid-template-columns: 1fr auto; gap: 32px;
  align-items: end; margin-bottom: 12px;
}
.sec-head .sub { font-size: 17px; margin-top: 16px; max-width: 640px; }
.sec-head .side { color: var(--muted); font-size: 14px; max-width: 320px; }

/* ====== Responsive ====== */
@media (max-width: 1000px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .problem-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .services-grid, .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .tech-grid { grid-template-columns: repeat(3, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .process-step { border-right: none; border-bottom: 1px solid var(--line); }
  .process-step::after { display: none; }
  .project-card.large, .project-card.small, .project-card.third, .project-card.full { grid-column: span 12; min-height: 280px; }
  .service-detail { grid-template-columns: 1fr; }
  .cta { grid-template-columns: 1fr; padding: 36px; }
  .cta-actions { justify-content: flex-start; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  /* Nav móvil */
  .nav-burger { display: flex; }
  .nav-desktop-cta { display: none; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    gap: 4px;
    padding: 12px 20px 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 8px 24px -4px rgba(0,0,0,.12);
    z-index: 49;
  }
  .nav-links.open { display: flex; }
  .nav-links.open .nav-link-mobile-cta { display: inline-flex; margin-top: 8px; align-self: flex-start; }
}
@media (max-width: 600px) {
  .section { padding: 64px 20px; }
  .hero { padding: 48px 20px 64px; }
  .services-grid, .blog-grid, .tech-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .compare { grid-template-columns: 1fr; }
  .compare-arrow { transform: rotate(90deg); }
  .float-chip { display: none; }
}

/* ====== Páginas de servicio ====== */
.service-hero { background: var(--bg); border-bottom: 1px solid var(--line); }
.service-hero-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start;
}
.service-lead {
  font-size: 18px; color: var(--muted); margin-top: 20px; line-height: 1.6;
}
.service-hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.service-includes {
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px 28px 24px;
  box-shadow: var(--shadow-sm);
}
.service-includes h3 { font-size: 15px; font-weight: 700; margin-bottom: 16px; }
.service-bullets {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 10px;
}
.service-bullets li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; line-height: 1.4;
}
.service-bullets li svg { flex-shrink: 0; margin-top: 2px; color: var(--accent); }

/* Process list for service pages */
.process-list {
  margin-top: 16px; padding-left: 20px;
  display: grid; gap: 12px;
  font-size: 15px; line-height: 1.6;
}
.process-list li { padding-left: 4px; }

/* FAQ accordion */
.faq-list { display: grid; gap: 8px; margin-top: 16px; }
.faq-item {
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 12px; overflow: hidden;
}
.faq-item summary {
  padding: 16px 20px; font-size: 15px; font-weight: 600;
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 20px; font-weight: 400; color: var(--muted); }
.faq-item[open] summary::after { content: '−'; }
.faq-item p {
  padding: 0 20px 16px; margin: 0;
  font-size: 14px; color: var(--muted); line-height: 1.6;
}

@media (max-width: 900px) {
  .service-hero-inner { grid-template-columns: 1fr; gap: 32px; }
}

/* ====== Blog: artículo individual ====== */
.blog-post { max-width: 760px; }
.blog-cover {
  width: 100%; border-radius: var(--radius);
  margin: 24px 0 32px; object-fit: cover; max-height: 420px;
}
.blog-body {
  font-size: 16px; line-height: 1.75; color: var(--ink-2);
}
.blog-body h2 { margin-top: 36px; margin-bottom: 12px; font-size: 22px; }
.blog-body h3 { margin-top: 28px; margin-bottom: 8px; font-size: 18px; }
.blog-body p { margin: 0 0 16px; }
.blog-body ul, .blog-body ol { margin: 0 0 16px; padding-left: 20px; }
.blog-body li { margin-bottom: 6px; }
.blog-body strong { color: var(--ink); }
.blog-body a { color: var(--brand); text-decoration: underline; }
.blog-body code {
  font-family: var(--font-mono); font-size: 13px;
  background: var(--bg-3); border-radius: 4px; padding: 2px 6px;
}
.blog-body pre { background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 16px; overflow-x: auto; }
.blog-body pre code { background: none; padding: 0; }

/* Blog card con imagen */
.blog-card-img .blog-card-cover {
  width: calc(100% + 48px); margin: -24px -24px 16px;
  height: 160px; overflow: hidden; border-radius: 18px 18px 0 0;
}
.blog-card-img .blog-card-cover img {
  width: 100%; height: 100%; object-fit: cover;
}

/* CTA inline en posts */
.cta-inline {
  margin-top: 48px; padding: 28px;
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--radius);
}
