/* MuniBot · Landing institucional
   Sitio estático multipágina. No depende de la app React. */

:root {
  --navy-950: #06111f;
  --navy-900: #0a1a30;
  --navy-800: #102544;
  --navy-700: #183358;
  --sky-700: #0369a1;
  --sky-600: #0284c7;
  --sky-500: #0ea5e9;
  --sky-400: #38bdf8;
  --sky-100: #e0f2fe;
  --sky-50: #f0f9ff;
  --teal-500: #14b8a6;
  --wa-600: #15803d;
  --wa-500: #22c55e;
  --wa-50: #f0fdf4;
  --amber-500: #f59e0b;
  --amber-50: #fffbeb;
  --rose-500: #f43f5e;
  --violet-500: #8b5cf6;
  --violet-50: #f5f3ff;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --line-2: #eef2f7;
  --bg: #ffffff;
  --bg-alt: #f6f8fb;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow: 0 10px 30px -12px rgba(15, 23, 42, .18), 0 2px 6px rgba(15, 23, 42, .05);
  --shadow-lg: 0 30px 60px -20px rgba(6, 17, 31, .45);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; letter-spacing: -.02em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--sky-400); outline-offset: 3px; border-radius: 8px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; font-weight: 600;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .container { padding: 0 16px; } }

.ico { width: 1em; height: 1em; flex: none; }
i[data-i] { display: inline-flex; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, background .25s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header .container { height: 100%; display: flex; align-items: center; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.12rem; letter-spacing: -.02em; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 11px;
  display: grid; place-items: center; color: #fff; font-size: 20px;
  background: linear-gradient(135deg, var(--sky-500), var(--sky-700));
  box-shadow: 0 6px 16px -6px rgba(2, 132, 199, .7), inset 0 1px 0 rgba(255,255,255,.25);
}
.brand small { display: block; font-size: .64rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: 1px; }
.brand-text { line-height: 1.05; }

.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav a {
  padding: 8px 12px; border-radius: 10px; font-size: .9rem; font-weight: 600; color: var(--ink-2);
  transition: background .2s, color .2s;
}
.nav a:hover { background: var(--bg-alt); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--sky-700); background: var(--sky-50); }

.header-cta { margin-left: 8px; }
.menu-btn {
  display: none; margin-left: auto;
  width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line);
  background: #fff; color: var(--ink); font-size: 22px; cursor: pointer;
  align-items: center; justify-content: center;
}

.mobile-nav {
  position: fixed; inset: var(--header-h) 0 auto 0; z-index: 49;
  background: #fff; border-bottom: 1px solid var(--line);
  box-shadow: 0 30px 40px -20px rgba(15, 23, 42, .25);
  padding: 12px 16px 20px;
  transform: translateY(-12px); opacity: 0; visibility: hidden;
  transition: transform .28s var(--ease), opacity .2s, visibility 0s .28s;
  max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
}
.mobile-nav.is-open { transform: none; opacity: 1; visibility: visible; transition: transform .28s var(--ease), opacity .2s; }
.mobile-nav a.m-link {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 12px; border-radius: 12px; font-weight: 600; color: var(--ink-2);
}
.mobile-nav a.m-link .m-ico {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: var(--bg-alt); color: var(--sky-700); font-size: 19px;
}
.mobile-nav a.m-link[aria-current="page"] { background: var(--sky-50); color: var(--sky-700); }
.mobile-nav .btn { width: 100%; margin-top: 12px; }

@media (max-width: 1060px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; margin-left: 0; }
  .site-header .header-cta { margin-left: auto; }
}
@media (max-width: 640px) {
  .site-header .header-cta { display: none; }
  .menu-btn { margin-left: auto; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 46px; padding: 0 20px; border-radius: 12px; border: 1px solid transparent;
  font: inherit; font-weight: 700; font-size: .95rem; cursor: pointer; white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .2s, background .2s, border-color .2s, color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn .ico { font-size: 18px; }
.btn-primary { background: var(--sky-600); color: #fff; box-shadow: 0 10px 22px -10px rgba(2, 132, 199, .8); }
.btn-primary:hover { background: var(--sky-700); }
.btn-light { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-light:hover { border-color: #cbd5e1; }
.btn-ghost-dark { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.18); }
.btn-ghost-dark:hover { background: rgba(255,255,255,.14); }
.btn-wa { background: var(--wa-600); color: #fff; box-shadow: 0 10px 22px -10px rgba(21, 128, 61, .8); }
.btn-wa:hover { background: #166534; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .88rem; }
.btn-lg { min-height: 54px; padding: 0 26px; font-size: 1rem; border-radius: 14px; }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--sky-700); }
.link-arrow .ico { transition: transform .2s var(--ease); }
.link-arrow:hover .ico { transform: translateX(3px); }

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--sky-700);
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px rgba(14,165,233,.15); }
.h-display { font-size: clamp(2.5rem, 6.2vw, 4.4rem); font-weight: 800; letter-spacing: -.035em; }
.h-1 { font-size: clamp(2rem, 4.4vw, 3.1rem); font-weight: 800; letter-spacing: -.03em; }
.h-2 { font-size: clamp(1.65rem, 3.3vw, 2.4rem); font-weight: 800; }
.h-3 { font-size: 1.12rem; font-weight: 700; letter-spacing: -.01em; }
.lead { font-size: clamp(1.02rem, 1.6vw, 1.18rem); color: var(--ink-2); max-width: 46ch; }
.muted { color: var(--muted); }
.grad-text {
  background: linear-gradient(100deg, var(--sky-400), #7dd3fc 45%, #5eead4);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.note { font-size: .78rem; color: var(--muted); }

/* ---------- Sections ---------- */
.sec { padding: clamp(64px, 9vw, 112px) 0; position: relative; }
.sec--alt { background: var(--bg-alt); }
.sec--tight { padding: clamp(48px, 6vw, 72px) 0; }
.sec-head { max-width: 720px; margin-bottom: clamp(32px, 4vw, 52px); }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head.center .lead { margin-left: auto; margin-right: auto; }
.sec-head .h-2, .sec-head .h-1 { margin: 12px 0 14px; }

.sec--dark {
  background: radial-gradient(1200px 500px at 85% -10%, rgba(14,165,233,.22), transparent 60%),
              radial-gradient(800px 400px at -10% 110%, rgba(20,184,166,.16), transparent 60%),
              var(--navy-950);
  color: #e2e8f0;
}
.sec--dark .lead, .sec--dark .muted { color: #a5b4c8; }
.sec--dark .eyebrow { color: var(--sky-400); }
.sec--dark .h-1, .sec--dark .h-2, .sec--dark .h-display { color: #fff; }

.grid-bg::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(148,163,184,.07) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(148,163,184,.07) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
}

.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.split.rev > :first-child { order: 2; }
@media (max-width: 920px) {
  .split, .split.rev { grid-template-columns: 1fr; }
  .split.rev > :first-child { order: 0; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 7vw, 96px) 0 clamp(64px, 8vw, 110px); overflow: hidden; }
.hero .h-display { margin: 18px 0 18px; }
.hero .lead { color: #b6c3d6; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 6px; border-radius: 999px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  font-size: .82rem; font-weight: 600; color: #cfe3f5;
}
.hero-tag b { padding: 3px 10px; border-radius: 999px; background: var(--sky-600); color: #fff; font-size: .72rem; letter-spacing: .04em; }
.hero-sub { font-size: clamp(1.15rem, 2vw, 1.42rem); color: #e6eef8; font-weight: 600; max-width: 30ch; margin-bottom: 14px; letter-spacing: -.01em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-chip-link {
  margin-top: 18px; display: inline-flex; align-items: center; gap: 12px;
  padding: 10px 16px 10px 10px; border-radius: 14px;
  background: rgba(34,197,94,.08); border: 1px solid rgba(34,197,94,.28); color: #d1fae5; font-weight: 600; font-size: .92rem;
  transition: background .2s, transform .2s var(--ease);
}
.hero-chip-link:hover { background: rgba(34,197,94,.14); transform: translateY(-1px); }
.hero-chip-link .ci { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--wa-600); color: #fff; font-size: 18px; }
.hero-chip-link small { display: block; font-weight: 500; color: #86efac; font-size: .76rem; }

.page-hero { padding: clamp(44px, 6vw, 80px) 0 clamp(52px, 7vw, 92px); overflow: hidden; }
.page-hero .h-1 { margin: 16px 0 16px; }
.page-hero .lead { color: #b6c3d6; }

/* ---------- Phone mockup ---------- */
.stage { position: relative; display: grid; place-items: center; min-height: 560px; }
.stage-glow { position: absolute; width: min(420px, 100%); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(14,165,233,.35), transparent 65%); filter: blur(10px); }
.phone {
  position: relative; z-index: 2;
  width: 292px; border-radius: 44px; padding: 11px;
  background: linear-gradient(160deg, #23324a, #0b1626);
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255,255,255,.08);
}
.phone::before {
  content: ""; position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  width: 84px; height: 22px; border-radius: 14px; background: #05080f; z-index: 3;
}
.phone-screen { border-radius: 34px; overflow: hidden; background: #efeae2; height: 560px; display: flex; flex-direction: column; }
.phone.light .phone-screen { background: #f4f7fb; }
.wa-top {
  display: flex; align-items: center; gap: 10px; padding: 44px 14px 12px;
  background: #0b5c4a; color: #fff;
}
.phone.light .wa-top { background: linear-gradient(135deg, var(--sky-600), var(--sky-700)); }
.wa-top .av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.18); font-size: 18px; }
.wa-top b { font-size: .9rem; display: block; line-height: 1.1; }
.wa-top span { font-size: .7rem; opacity: .8; }
.chat { flex: 1; padding: 14px 12px; display: flex; flex-direction: column; gap: 8px; overflow: hidden; font-size: .8rem; line-height: 1.4; }
.bubble {
  max-width: 84%; padding: 8px 11px; border-radius: 12px; box-shadow: 0 1px 1px rgba(0,0,0,.06);
  background: #fff; color: #111b21; align-self: flex-start; border-top-left-radius: 4px;
}
.bubble.me { align-self: flex-end; background: #d9fdd3; border-top-left-radius: 12px; border-top-right-radius: 4px; }
.phone.light .bubble.me { background: var(--sky-600); color: #fff; }
.bubble .meta { display: block; text-align: right; font-size: .62rem; color: #667781; margin-top: 2px; }
.phone.light .bubble.me .meta { color: #cfe8f7; }
.bubble.card { padding: 0; overflow: hidden; width: 84%; }
.bubble.card .bc-head { display: flex; align-items: center; gap: 8px; padding: 9px 11px; background: #f0fdf4; color: var(--wa-600); font-weight: 700; font-size: .74rem; }
.bubble.card .bc-body { padding: 9px 11px; display: grid; gap: 5px; font-size: .74rem; color: #334155; }
.bubble.card .bc-row { display: flex; align-items: center; gap: 7px; }
.bubble.card .bc-row .ico { color: var(--muted); font-size: 13px; }
.bubble.loc { padding: 4px; }
.mini-map {
  width: 190px; height: 92px; border-radius: 9px; position: relative; overflow: hidden;
  background:
    linear-gradient(90deg, transparent 46%, #fde68a 46%, #fde68a 52%, transparent 52%),
    linear-gradient(0deg, transparent 40%, #fff 40%, #fff 47%, transparent 47%),
    linear-gradient(35deg, transparent 60%, #fff 60%, #fff 65%, transparent 65%),
    #d8ecd4;
}
.mini-map .pin { position: absolute; left: 50%; top: 32%; transform: translate(-50%, -50%); color: #e11d48; font-size: 24px; filter: drop-shadow(0 2px 2px rgba(0,0,0,.25)); }
.typing { display: inline-flex; gap: 4px; padding: 10px 12px; }
.typing span { width: 6px; height: 6px; border-radius: 50%; background: #94a3b8; animation: blink 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: .15s; }
.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-2px); } }
.wa-input { display: flex; align-items: center; gap: 8px; padding: 8px 10px 14px; }
.wa-input div { flex: 1; height: 36px; border-radius: 18px; background: #fff; display: flex; align-items: center; padding: 0 14px; color: #94a3b8; font-size: .76rem; }
.wa-input span { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #0b5c4a; color: #fff; font-size: 16px; }
.phone.light .wa-input span { background: var(--sky-600); }

.chat[data-anim] > * { opacity: 0; transform: translateY(8px); }
.chat[data-anim].play > * { animation: popIn .45s var(--ease) forwards; }
.chat[data-anim] > .typing.gone { display: none; }
@keyframes popIn { to { opacity: 1; transform: none; } }

/* Floating cards */
.float {
  position: absolute; z-index: 3;
  background: rgba(255,255,255,.96); color: var(--ink);
  border-radius: 16px; padding: 12px 14px; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 11px; font-size: .8rem; min-width: 200px;
  border: 1px solid rgba(255,255,255,.6);
  animation: floaty 6s ease-in-out infinite;
}
.float b { display: block; font-size: .84rem; }
.float small { color: var(--muted); font-size: .72rem; }
.float .fi { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-size: 18px; flex: none; }
.float.f1 { top: 7%; left: -12%; }
.float.f2 { top: 42%; right: -12%; animation-delay: -2s; }
.float.f3 { bottom: 9%; left: -12%; animation-delay: -4s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.bar { height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; margin-top: 6px; width: 120px; }
.bar i { display: block; height: 100%; width: 68%; background: linear-gradient(90deg, var(--sky-500), var(--teal-500)); border-radius: inherit; }
@media (max-width: 1100px) { .float.f1 { left: -6%; top: 2%; } .float.f2 { right: -6%; } .float.f3 { display: none; } }
@media (max-width: 920px) { .float.f1 { left: 3%; top: 8%; } .float.f2 { right: 3%; } .float.f3 { display: flex; left: 3%; bottom: 10%; } }
@media (max-width: 560px) {
  .stage { min-height: 0; padding: 16px 0 8px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
  .phone { width: 262px; }
  .phone-screen { height: 500px; }
  .float { position: static; animation: none; width: 100%; max-width: 300px; min-width: 0; font-size: .78rem; padding: 10px 12px; }
  .float.f1 { margin-top: 8px; }
  .float.f2 { display: none; }
  .float.f3 { display: flex; }
}

/* Icon tiles */
.tile {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 23px; flex: none;
  background: var(--sky-50); color: var(--sky-700);
}
.t-sky { background: var(--sky-50); color: var(--sky-700); }
.t-wa { background: var(--wa-50); color: var(--wa-600); }
.t-amber { background: var(--amber-50); color: #b45309; }
.t-violet { background: var(--violet-50); color: #6d28d9; }
.t-rose { background: #fff1f2; color: #be123c; }
.t-teal { background: #f0fdfa; color: #0f766e; }
.t-slate { background: #f1f5f9; color: #334155; }
.t-indigo { background: #eef2ff; color: #4338ca; }

/* ---------- Cards ---------- */
.cards { display: grid; gap: 18px; grid-template-columns: repeat(4, 1fr); }
.cards.c3 { grid-template-columns: repeat(3, 1fr); }
.cards.c2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1000px) { .cards, .cards.c3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards, .cards.c3, .cards.c2 { grid-template-columns: 1fr; } }

.card {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  padding: 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line);
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #cfe0ee; }
.card p { color: var(--muted); font-size: .93rem; }
.card .go { margin-top: auto; padding-top: 4px; font-size: .86rem; }
a.card:hover .h-3 { color: var(--sky-700); }
.sec--alt .card { background: #fff; }
.card.compact { flex-direction: row; align-items: center; gap: 14px; padding: 16px 18px; }
.card.compact p { font-size: .85rem; }
@media (max-width: 560px) {
  .cards.mob-compact .card { flex-direction: row; align-items: flex-start; gap: 14px; padding: 18px; }
}

/* Dark cards */
.sec--dark .card { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.1); }
.sec--dark .card:hover { border-color: rgba(56,189,248,.4); box-shadow: 0 20px 40px -20px rgba(0,0,0,.6); }
.sec--dark .card .h-3 { color: #fff; }
.sec--dark .card p { color: #9fb0c6; }
.sec--dark .tile { background: rgba(56,189,248,.12); color: var(--sky-400); }

/* ---------- Flow diagram: Municipio → MuniBot → Ciudadanía ---------- */
.flow { display: grid; grid-template-columns: 1fr auto 1.15fr auto 1fr; align-items: center; gap: 0; max-width: 980px; margin: 0 auto; }
.node {
  text-align: center; padding: 28px 20px; border-radius: 22px; background: #fff; border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.node .tile { margin: 0 auto 14px; width: 60px; height: 60px; font-size: 28px; border-radius: 18px; }
.node b { display: block; font-size: 1.05rem; letter-spacing: .02em; }
.node small { display: block; color: var(--muted); margin-top: 6px; font-size: .85rem; }
.node.core {
  background: linear-gradient(160deg, var(--navy-800), var(--navy-950)); color: #fff; border: 0;
  box-shadow: 0 30px 60px -25px rgba(2, 132, 199, .6); padding: 34px 22px; position: relative;
}
.node.core::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px;
  background: linear-gradient(140deg, rgba(56,189,248,.8), transparent 40%, rgba(20,184,166,.7));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.node.core .tile { background: linear-gradient(135deg, var(--sky-500), var(--sky-700)); color: #fff; box-shadow: 0 0 0 8px rgba(14,165,233,.14), 0 0 0 16px rgba(14,165,233,.06); }
.node.core small { color: #9fb7cf; }
.node-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 14px; }
.node-tags span { font-size: .7rem; font-weight: 600; padding: 4px 9px; border-radius: 999px; background: rgba(255,255,255,.08); color: #cfe3f5; }
.link-line { width: 72px; height: 2px; position: relative; background: linear-gradient(90deg, #cbd5e1, #cbd5e1); }
.link-line::before, .link-line::after {
  content: ""; position: absolute; top: 50%; width: 9px; height: 9px; border-radius: 50%;
  background: var(--sky-500); transform: translateY(-50%); box-shadow: 0 0 0 4px rgba(14,165,233,.18);
  animation: travel 2.6s var(--ease) infinite;
}
.link-line::after { background: var(--teal-500); box-shadow: 0 0 0 4px rgba(20,184,166,.18); animation-direction: reverse; animation-delay: -1.3s; }
@keyframes travel { from { left: -4px; } to { left: calc(100% - 5px); } }
@media (max-width: 820px) {
  .flow { grid-template-columns: 1fr; max-width: 380px; }
  .link-line { width: 2px; height: 48px; margin: 0 auto; }
  .link-line::before, .link-line::after { left: 50%; top: auto; transform: translateX(-50%); animation-name: travelY; }
  @keyframes travelY { from { top: -4px; } to { top: calc(100% - 5px); } }
}

/* ---------- Feature list / checks ---------- */
.checks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.checks li { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--ink-2); }
.checks li .ck { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: var(--wa-50); color: var(--wa-600); font-size: 16px; flex: none; }
.sec--dark .checks li { color: #e2e8f0; }
.sec--dark .checks li .ck { background: rgba(34,197,94,.14); color: #4ade80; }

.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: .88rem; color: var(--ink-2);
  transition: border-color .2s, transform .2s var(--ease);
}
.pill .ico { color: var(--sky-600); font-size: 17px; }
.pill:hover { border-color: #b9d7ee; transform: translateY(-1px); }
.sec--dark .pill { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); color: #dbe7f3; }
.sec--dark .pill .ico { color: var(--sky-400); }

/* Steps strip (Atención · Información · …) */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 36px; counter-reset: s; }
.step {
  position: relative; padding: 18px 14px; border-radius: 16px; background: #fff; border: 1px solid var(--line);
  text-align: center; font-weight: 700; font-size: .9rem;
}
.step .tile { margin: 0 auto 10px; width: 42px; height: 42px; font-size: 20px; border-radius: 12px; }
.step small { display: block; font-weight: 500; color: var(--muted); font-size: .76rem; margin-top: 4px; }
@media (max-width: 860px) { .steps { grid-template-columns: repeat(2, 1fr); } .step:last-child { grid-column: span 2; } }

/* ---------- Report mockup ---------- */
.report {
  background: #fff; border-radius: 22px; border: 1px solid var(--line); box-shadow: var(--shadow);
  overflow: hidden; max-width: 440px; margin: 0 auto; width: 100%;
}
.report-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line-2); }
.report-head b { font-size: .95rem; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: .72rem; font-weight: 700; }
.badge .d { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.b-amber { background: var(--amber-50); color: #b45309; }
.b-green { background: var(--wa-50); color: var(--wa-600); }
.b-sky { background: var(--sky-50); color: var(--sky-700); }
.report-body { padding: 8px 20px 20px; display: grid; }
.r-row { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-bottom: 1px dashed var(--line); }
.r-row:last-child { border-bottom: 0; }
.r-row .tile { width: 40px; height: 40px; font-size: 19px; border-radius: 11px; }
.r-row small { display: block; color: var(--muted); font-size: .74rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.r-row span { font-weight: 600; font-size: .93rem; }
.timeline { display: grid; gap: 0; padding: 16px 20px 20px; background: var(--bg-alt); border-top: 1px solid var(--line-2); }
.tl { display: grid; grid-template-columns: 18px 1fr auto; gap: 12px; align-items: start; font-size: .84rem; padding: 6px 0; position: relative; }
.tl::before { content: ""; position: absolute; left: 8px; top: 20px; bottom: -8px; width: 2px; background: var(--line); }
.tl:last-child::before { display: none; }
.tl i.d { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid var(--line); display: block; margin-top: 1px; }
.tl.done i.d { background: var(--wa-500); border-color: var(--wa-500); }
.tl.now i.d { border-color: var(--amber-500); box-shadow: 0 0 0 4px rgba(245,158,11,.18); }
.tl b { font-weight: 600; }
.tl em { font-style: normal; color: var(--muted); font-size: .76rem; }

.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 28px; max-width: 460px; }
.cat { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: .9rem; }
.cat .tile { width: 36px; height: 36px; font-size: 18px; border-radius: 10px; }
@media (max-width: 420px) { .cat-grid { grid-template-columns: 1fr; } }

/* ---------- AI interface ---------- */
.ai-panel {
  position: relative; border-radius: 24px; padding: 18px; max-width: 520px; margin: 0 auto; width: 100%;
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.12); box-shadow: var(--shadow-lg);
  backdrop-filter: blur(6px);
}
.ai-top { display: flex; align-items: center; gap: 10px; padding: 4px 6px 14px; border-bottom: 1px solid rgba(255,255,255,.08); }
.ai-top .dots { display: flex; gap: 6px; }
.ai-top .dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.18); }
.ai-top b { margin-left: 8px; font-size: .86rem; color: #e2e8f0; }
.ai-top .live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; color: #86efac; font-weight: 600; }
.ai-top .live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34,197,94,.6); animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,.55); } 80%, 100% { box-shadow: 0 0 0 8px rgba(34,197,94,0); } }
.ai-msgs { display: grid; gap: 12px; padding: 18px 6px; font-size: .9rem; }
.ai-q { justify-self: end; align-self: flex-end; max-width: 82%; background: var(--sky-600); color: #fff; padding: 10px 14px; border-radius: 16px 16px 4px 16px; }
.ai-a { display: flex; gap: 10px; max-width: 94%; }
.ai-a .av { width: 32px; height: 32px; border-radius: 10px; flex: none; display: grid; place-items: center; background: linear-gradient(135deg, var(--sky-500), var(--teal-500)); color: #fff; font-size: 17px; }
.ai-a .tx { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); color: #dbe7f3; padding: 12px 14px; border-radius: 4px 16px 16px 16px; }
.ai-a .tx ul { margin: 8px 0 0; padding-left: 18px; color: #b6c3d6; font-size: .84rem; display: grid; gap: 3px; }
.ai-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 6px 12px; }
.ai-chips span { font-size: .76rem; padding: 6px 11px; border-radius: 999px; border: 1px solid rgba(255,255,255,.14); color: #cfe3f5; }
.ai-input { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 16px; border-radius: 14px; background: rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.1); color: #7f93ab; font-size: .86rem; }
.ai-input span { margin-left: auto; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--sky-600); color: #fff; font-size: 17px; }
.caret { display: inline-block; width: 2px; height: 1em; background: var(--sky-400); vertical-align: -2px; margin-left: 2px; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }

/* ---------- Profiles ---------- */
.profiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.profile {
  padding: 22px 18px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); text-align: center;
  transition: transform .3s var(--ease), box-shadow .3s;
}
.profile:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.profile .tile { margin: 0 auto 12px; width: 56px; height: 56px; font-size: 26px; border-radius: 16px; }
.profile b { display: block; font-size: .98rem; }
.profile small { display: block; color: var(--muted); font-size: .8rem; margin-top: 4px; }
@media (max-width: 860px) { .profiles { grid-template-columns: repeat(2, 1fr); } }

/* Course mock */
.course {
  background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); overflow: hidden; max-width: 460px; margin: 0 auto; width: 100%;
}
.course-cover { padding: 22px; background: linear-gradient(135deg, var(--navy-800), var(--sky-700)); color: #fff; position: relative; overflow: hidden; }
.course-cover::after { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; border: 22px solid rgba(255,255,255,.07); }
.course-cover small { color: #bae6fd; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .7rem; }
.course-cover b { display: block; font-size: 1.25rem; margin-top: 6px; letter-spacing: -.01em; }
.course-body { padding: 18px 22px 22px; display: grid; gap: 10px; }
.mod { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; border: 1px solid var(--line-2); font-size: .88rem; font-weight: 600; }
.mod .n { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-size: .78rem; background: var(--bg-alt); color: var(--muted); flex: none; }
.mod.ok .n { background: var(--wa-50); color: var(--wa-600); }
.mod.cur { border-color: #bae6fd; background: var(--sky-50); }
.mod.cur .n { background: var(--sky-600); color: #fff; }
.mod em { margin-left: auto; font-style: normal; font-size: .74rem; color: var(--muted); font-weight: 600; }
.cert { display: flex; align-items: center; gap: 12px; margin-top: 6px; padding: 12px 14px; border-radius: 14px; background: var(--amber-50); color: #92400e; font-size: .84rem; font-weight: 600; }
.cert .ico { font-size: 22px; color: #d97706; }

/* ---------- Dashboard mock (municipios) ---------- */
.dash {
  border-radius: 22px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  overflow: hidden; width: 100%; max-width: 560px; margin: 0 auto; color: var(--ink);
}
.dash-top { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line-2); font-size: .82rem; font-weight: 700; }
.dash-top .dots { display: flex; gap: 6px; margin-right: 6px; }
.dash-top .dots i { width: 9px; height: 9px; border-radius: 50%; background: #e2e8f0; }
.dash-body { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; padding: 16px; }
.kpi { padding: 12px; border-radius: 14px; background: var(--bg-alt); }
.kpi small { display: block; font-size: .68rem; color: var(--muted); font-weight: 600; }
.kpi b { display: block; font-size: 1.05rem; margin-top: 3px; }
.kpi .ico { font-size: 16px; color: var(--sky-600); margin-bottom: 6px; }
.dash-list { grid-column: 1 / -1; display: grid; gap: 8px; }
.dl { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 12px; font-size: .8rem; }
.dl .tile { width: 30px; height: 30px; font-size: 15px; border-radius: 9px; }
.dl span { font-weight: 600; }
.dl em { font-style: normal; color: var(--muted); font-size: .72rem; display: block; font-weight: 500; }
.sem { width: 10px; height: 10px; border-radius: 50%; }
.sem.g { background: var(--wa-500); } .sem.a { background: var(--amber-500); } .sem.r { background: var(--rose-500); }
@media (max-width: 480px) { .dash-body { grid-template-columns: 1fr 1fr; } .kpi:nth-child(3) { display: none; } }

/* ---------- Benefits (numbered) ---------- */
.gets { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.gets li { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: .93rem; }
.gets li .ck { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: var(--sky-50); color: var(--sky-700); font-size: 16px; flex: none; }
@media (max-width: 560px) { .gets { grid-template-columns: 1fr; } }

/* Two audience panels */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.duo-card { border-radius: 24px; padding: clamp(24px, 3.4vw, 40px); position: relative; overflow: hidden; }
.duo-card.citizen { background: linear-gradient(160deg, #f0f9ff, #fff 70%); border: 1px solid #d6ebfa; }
.duo-card.city { background: linear-gradient(160deg, var(--navy-800), var(--navy-950)); color: #e2e8f0; }
.duo-card.city .h-2 { color: #fff; }
.duo-card .h-2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin: 10px 0 22px; }
.duo-card.city .eyebrow { color: var(--sky-400); }
.verbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 10px; }
.verb { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 12px; background: #fff; border: 1px solid #e3eef7; font-weight: 700; font-size: .9rem; transition: transform .2s var(--ease), border-color .2s; }
.verb:hover { transform: translateY(-2px); border-color: #b9d7ee; }
.verb .ico { font-size: 19px; color: var(--sky-600); }
.duo-card.city .gets li { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.1); color: #e2e8f0; }
.duo-card.city .gets { grid-template-columns: 1fr; }
.duo-card.city .gets li .ck { background: rgba(56,189,248,.14); color: var(--sky-400); }
.duo-card .cta-row { margin-top: 26px; }
@media (max-width: 900px) { .duo { grid-template-columns: 1fr; } }

/* ---------- Section links (explore) ---------- */
.explore { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ex {
  display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: 16px; background: #fff; border: 1px solid var(--line);
  transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
}
.ex:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #cfe0ee; }
.ex b { display: block; font-size: .98rem; }
.ex small { color: var(--muted); font-size: .82rem; }
.ex .arrow { margin-left: auto; color: #94a3b8; font-size: 18px; transition: transform .2s var(--ease), color .2s; }
.ex:hover .arrow { transform: translateX(3px); color: var(--sky-600); }
@media (max-width: 900px) { .explore { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .explore { grid-template-columns: 1fr; } }

/* ---------- WhatsApp section ---------- */
.wa-sec { background: linear-gradient(180deg, #f0fdf4, #fff); }
.wa-badge { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 999px; background: #fff; border: 1px solid #bbf7d0; font-weight: 700; font-size: .86rem; color: var(--wa-600); }
.wa-badge i.bi { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--wa-600); color: #fff; font-size: 15px; }
.wa-number { font-size: clamp(1.6rem, 3.4vw, 2.2rem); font-weight: 800; letter-spacing: -.01em; color: var(--ink); margin-top: 22px; }
.wa-number small { display: block; font-size: .8rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }

/* ---------- Purpose ---------- */
.purpose { text-align: center; max-width: 760px; margin: 0 auto; }
.purpose .h-2 { margin: 14px 0 16px; }
.purpose .lead { margin: 0 auto; }
.values { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

/* ---------- Final CTA ---------- */
.final {
  border-radius: 28px; padding: clamp(40px, 6vw, 72px) clamp(24px, 5vw, 64px);
  background:
    radial-gradient(600px 300px at 90% 0%, rgba(14,165,233,.35), transparent 60%),
    radial-gradient(500px 280px at 0% 100%, rgba(20,184,166,.25), transparent 60%),
    var(--navy-900);
  color: #fff; display: grid; grid-template-columns: 1.3fr auto; gap: 32px; align-items: center; position: relative; overflow: hidden;
}
.final .brandline { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.05rem; color: #cfe3f5; }
.final .brandline .brand-mark { width: 32px; height: 32px; font-size: 18px; }
.final .h-1 { color: #fff; margin-top: 14px; max-width: 18ch; }
.final .cta-row { margin: 0; flex-direction: column; align-items: stretch; }
@media (max-width: 860px) { .final { grid-template-columns: 1fr; } .final .cta-row { flex-direction: row; flex-wrap: wrap; } }
@media (max-width: 480px) { .final .cta-row .btn { width: 100%; } }

/* Next page teaser */
.next {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  padding: 22px 26px; border-radius: 20px; background: #fff; border: 1px solid var(--line);
}
.next small { display: block; color: var(--muted); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.next b { font-size: 1.2rem; letter-spacing: -.01em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: #9fb0c6; padding: 64px 0 28px; font-size: .9rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.site-footer .brand { color: #fff; }
.site-footer .brand small { color: #7f93ab; }
.foot-claim { margin-top: 14px; max-width: 32ch; color: #a5b4c8; }
.foot-col h4 { color: #fff; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.foot-col a { display: block; padding: 5px 0; color: #9fb0c6; transition: color .2s; }
.foot-col a:hover { color: #fff; }
.foot-emergency { margin-top: 18px; display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; background: rgba(244,63,94,.1); border: 1px solid rgba(244,63,94,.25); color: #fecdd3; font-size: .84rem; font-weight: 600; }
.foot-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.08); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .8rem; color: #7f93ab; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .stagger > * { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .stagger.in > * { opacity: 1; transform: none; }
.js .stagger.in > *:nth-child(2) { transition-delay: .05s; }
.js .stagger.in > *:nth-child(3) { transition-delay: .1s; }
.js .stagger.in > *:nth-child(4) { transition-delay: .15s; }
.js .stagger.in > *:nth-child(5) { transition-delay: .2s; }
.js .stagger.in > *:nth-child(6) { transition-delay: .25s; }
.js .stagger.in > *:nth-child(7) { transition-delay: .3s; }
.js .stagger.in > *:nth-child(8) { transition-delay: .35s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .reveal, .js .stagger > * { opacity: 1; transform: none; }
  .chat[data-anim] > * { opacity: 1; transform: none; }
}
