:root {
  --bg: #ffffff;
  --bg-alt: #f5f7fb;
  --ink: #0f172a;
  --muted: #55627a;
  --line: #e4e9f2;
  --blue: #1a73e8;
  --blue-strong: #1557b0;
  --navy: #0b1220;
  --green: #34a853;
  --yellow: #fbbc04;
  --red: #ea4335;
  --cyan: #12b5cb;
  --violet: #8b5cf6;
  --amber: #f59e0b;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(15,23,42,.05), 0 12px 32px rgba(15,23,42,.08);
  --wrap: 1160px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--blue); color: #fff; padding: 8px 16px; z-index: 1000; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

a { color: var(--blue); text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; background: rgba(26,115,232,.08); padding: 1px 5px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  padding: 11px 22px; border-radius: 999px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; cursor: pointer; transition: all .18s ease; white-space: nowrap;
}
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-strong); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(26,115,232,.35); }
.btn-ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.25); }
.btn-ghost:hover { background: rgba(255,255,255,.16); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn-outline:hover { background: rgba(255,255,255,.1); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11,18,32,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.nav-inner { max-width: var(--wrap); margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; }
.brand-mark {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, #1a73e8, #4285f4 40%, #34a853 70%, #ea4335);
  color: #fff;
}
.brand-mark svg { width: 32px; height: 32px; }
.brand-text { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.nav-links { display: flex; gap: 24px; margin-left: 24px; }
.nav-links a { color: #aeb9cc; font-size: 13.5px; font-weight: 400; }
.nav-links a:hover { color: #fff; }
.nav-actions { margin-left: auto; display: flex; gap: 10px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; flex-direction: column; gap: 5px; padding: 6px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: .2s; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--navy); color: #fff; }
.hero-bg {
  position: absolute; inset: 0;
  background-image: url('https://images.unsplash.com/photo-1501700493788-fa1a4fc9fe62?w=1600&q=80&auto=format&fit=crop');
  background-size: cover; background-position: center;
  opacity: .16;
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,18,32,.4), rgba(11,18,32,.95) 90%);
}
.hero-inner {
  position: relative; max-width: var(--wrap); margin: 0 auto; padding: 96px 24px 88px;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
}
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: #8ab4ff; margin-bottom: 16px;
}
.hero h1 { font-size: clamp(32px, 4.6vw, 54px); font-weight: 800; margin: 0 0 20px; }
.grad { background: linear-gradient(90deg, #5b9bf8, #34d399); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 18px; color: #c4cede; margin: 0 0 28px; max-width: 560px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }
.hero-points { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 18px; color: #dbe3f0; font-size: 15px; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.check { color: #34d399; font-weight: 700; }

.hero-visual { display: flex; justify-content: center; }
.dashboard {
  width: 100%; max-width: 440px; background: #0f172a; border: 1px solid rgba(255,255,255,.1);
  border-radius: 18px; box-shadow: 0 30px 80px rgba(0,0,0,.45); overflow: hidden; font-size: 14px;
}
.dash-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,.08); }
.dash-dots { display: flex; gap: 5px; }
.dash-dots i { width: 10px; height: 10px; border-radius: 50%; background: #ea4335; }
.dash-dots i:nth-child(2) { background: #fbbc04; }
.dash-dots i:nth-child(3) { background: #34a853; }
.dash-title { color: #8b96ad; font-size: 12px; }
.dash-map { background: linear-gradient(135deg, #12203a, #0d1626); }
.dash-map svg { width: 100%; height: 200px; display: block; }
.map-road { fill: none; stroke: url(#route); stroke-width: 3; stroke-dasharray: 8 8; }
.pin { fill: #4285f4; stroke: #fff; stroke-width: 2; }
.pin.p2 { fill: #34d399; }
.pin.p3 { fill: #fbbf24; }
.pulse { fill: none; stroke: #34d399; stroke-width: 2; opacity: .5; animation: pulse 2s infinite; }
@keyframes pulse { 0% { r: 6; opacity: .6; } 100% { r: 22; opacity: 0; } }
.dash-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255,255,255,.06); }
.dash-stat { padding: 14px 16px; background: #0f172a; }
.dash-stat b { display: block; font-size: 22px; color: #fff; }
.dash-stat span { font-size: 11px; color: #8b96ad; }
.dash-row { display: flex; align-items: center; gap: 8px; padding: 11px 16px; border-top: 1px solid rgba(255,255,255,.06); color: #cbd5e1; }
.dash-row em { color: #8ab4ff; font-style: normal; margin-left: auto; }
.dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.dot.on { background: #34d399; }
.dot.off { background: #8b96ad; }

/* ---------- Métricas ---------- */
.metrics { border-bottom: 1px solid var(--line); }
.metrics-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 48px 24px; }
.metric { text-align: center; }
.metric b { display: block; font-size: 40px; font-weight: 800; letter-spacing: -0.03em; background: linear-gradient(90deg, #1a73e8, #34a853); -webkit-background-clip: text; background-clip: text; color: transparent; }
.metric span { color: var(--muted); font-size: 14px; }

/* ---------- Secciones ---------- */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head .eyebrow { color: var(--blue); }
.section-head h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; margin: 0 0 14px; }
.section-head .lead { color: var(--muted); font-size: 17px; }

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s;
}
.feature:hover { transform: translateY(-4px); box-shadow: 0 20px 44px rgba(15,23,42,.12); }
.feature-icon {
  width: 52px; height: 52px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 18px;
}
.feature-icon svg { width: 26px; height: 26px; }
.feature h3 { font-size: 19px; margin: 0 0 10px; }
.feature p { color: var(--muted); margin: 0; font-size: 15px; }

.i-blue { background: #e8f0fe; color: #1a73e8; }
.i-green { background: #e6f4ea; color: #188038; }
.i-red { background: #fce8e6; color: #d93025; }
.i-cyan { background: #e0f5f8; color: #0b8fa3; }
.i-violet { background: #efe9fd; color: #6d3bd1; }
.i-amber { background: #fef3e0; color: #b45309; }

/* ---------- Flujo ---------- */
.flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; gap: 18px; align-items: stretch; }
.flow-step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.flow-num {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, #1a73e8, #34a853); color: #fff; font-weight: 800; font-size: 18px; margin-bottom: 14px;
}
.flow-step h3 { font-size: 17px; margin: 0 0 8px; }
.flow-step p { color: var(--muted); font-size: 14px; margin: 0; }
.flow-arrow { align-self: center; color: #b9c4d6; font-size: 26px; font-weight: 700; }
.flow-media { margin: 40px 0 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.flow-media img { width: 100%; height: 360px; object-fit: cover; }

/* ---------- Galería ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 190px; gap: 16px; }
.g-item { margin: 0; border-radius: 14px; overflow: hidden; position: relative; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.g-item:hover img { transform: scale(1.06); }
.g-item.tall { grid-row: span 2; }

/* ---------- Tecnologías ---------- */
.tech-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tech { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.tech-logo {
  width: 52px; height: 52px; border-radius: 13px; display: grid; place-items: center;
  font-weight: 800; font-size: 14px; margin-bottom: 16px; color: #fff; letter-spacing: .02em;
}
.t-blue { background: #1a73e8; }
.t-green { background: #34a853; }
.t-cyan { background: #0b8fa3; }
.t-amber { background: #f59e0b; }
.t-violet { background: #8b5cf6; }
.t-red { background: #ea4335; }
.tech h3 { font-size: 18px; margin: 0 0 8px; }
.tech p { color: var(--muted); font-size: 14px; margin: 0; }

/* ---------- Casos de uso ---------- */
.cases { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.case { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.case img { width: 100%; height: 200px; object-fit: cover; }
.case-body { padding: 22px 24px 26px; }
.case-body h3 { font-size: 19px; margin: 0 0 8px; }
.case-body p { color: var(--muted); margin: 0; font-size: 15px; }

/* ---------- CTA ---------- */
.cta { background: linear-gradient(135deg, #0b1220, #101f3a 60%, #12314e); color: #fff; }
.cta-inner { padding: 88px 24px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
.cta .eyebrow { color: #8ab4ff; }
.cta h2 { font-size: clamp(26px, 3.2vw, 36px); font-weight: 800; margin: 0 0 16px; }
.cta .lead { color: #c4cede; margin: 0; }
.cta-actions { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }

/* ---------- Footer ---------- */
.footer { background: #080d18; color: #9aa7bd; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding: 64px 24px 40px; }
.footer-brand .brand-text { color: #fff; }
.footer-brand p { margin: 12px 0 0; font-size: 14px; max-width: 300px; }
.footer-col h4 { color: #fff; font-size: 14px; margin: 0 0 14px; text-transform: uppercase; letter-spacing: .05em; }
.footer-col a { display: block; color: #9aa7bd; font-size: 14px; margin-bottom: 10px; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  border-top: 1px solid rgba(255,255,255,.08); padding: 20px 24px; font-size: 13px;
}
.footer-bottom a { color: #9aa7bd; }

.js .feature, .js .tech, .js .case, .js .g-item, .js .flow-step { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.js .feature.in, .js .tech.in, .js .case.in, .js .g-item.in, .js .flow-step.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 64px; }
  .hero-visual { order: -1; }
  .flow { grid-template-columns: 1fr; }
  .flow-arrow { transform: rotate(90deg); justify-self: center; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .features, .tech-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-inner { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-links, .nav-actions { display: none; }
  .nav-toggle { display: flex; margin-left: auto; }
  .nav.open .nav-links, .nav.open .nav-actions {
    display: flex; position: absolute; left: 0; right: 0; top: 100%;
    background: #0b1220; flex-direction: column; padding: 20px 24px; gap: 16px; border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .nav.open .nav-links { align-items: flex-start; }
  .nav.open .nav-actions { align-items: stretch; }
  .features, .tech-grid, .cases, .metrics-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .g-item.tall { grid-row: span 1; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
}
