/* =========================================================
   DESIGN TOKENS
   ========================================================= */
:root {
  --blue-700: #1d4ed8;
  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --blue-50: #eff6ff;
  --blue-100: #dbeafe;
  --black: #0a0a0a;
  --wa: #25d366;
  --wa-dark: #1ebe5d;
  --bg: #ffffff;
  --surface: #ffffff;
  --ink: #0a0a0a;
  --muted: #4b5563;
  --line: rgba(10, 10, 10, 0.12);
  --line-dark: rgba(10, 10, 10, 0.1);
  --shadow-sm: 0 1px 2px rgba(10, 10, 10, 0.06);
  --shadow-md: 0 14px 32px -16px rgba(37, 99, 235, 0.35);
  --shadow-lg: 0 24px 48px -18px rgba(37, 99, 235, 0.28);
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-full: 999px;
  --header-h: 4.5rem;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --container: 72rem;
  --container-wide: 80rem;
  --container-narrow: 42rem;
  --gutter: clamp(1rem, 4.5vw, 2rem);

  --navy-950: #0a0a0a;
  --navy-900: #0a0a0a;
  --navy-800: #111827;
  --navy-700: #1f2937;
  --amber-300: #60a5fa;
  --amber-500: #2563eb;
  --amber-600: #1d4ed8;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-bottom: calc(4.25rem + env(safe-area-inset-bottom));
  overflow-x: clip;
  max-width: 100%;
}

img,
svg { max-width: 100%; display: block; }

a { color: inherit; }

h1, h2, h3 {
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin: 0 0 0.5em;
  color: var(--ink);
}

h1 { font-size: clamp(1.7rem, 6vw, 3.35rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.2rem); }
h3 { font-size: 1.05rem; margin-bottom: 0.35em; }

p { margin: 0 0 1em; color: var(--muted); }

ul, ol { margin: 0; padding: 0; list-style: none; }

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

/* =========================================================
   CONTAINER SYSTEM
   ========================================================= */
.container {
  width: min(100% - (var(--gutter) * 2), var(--container));
  margin-inline: auto;
}

.container--wide {
  width: min(100% - (var(--gutter) * 2), var(--container-wide));
}

.container--narrow {
  width: min(100% - (var(--gutter) * 2), var(--container-narrow));
}

.stack {
  display: flex;
  flex-direction: column;
  gap: var(--stack-gap, 1rem);
}

.cluster {
  display: flex;
  flex-wrap: wrap;
  gap: var(--cluster-gap, 0.75rem);
  align-items: center;
}

/* =========================================================
   A11Y
   ========================================================= */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--blue-600);
  color: #fff;
  padding: 0.65rem 1rem;
  z-index: 1000;
  font-weight: 700;
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.skip-link:focus { top: 0.75rem; }

:focus-visible {
  outline: 3px solid var(--blue-500);
  outline-offset: 3px;
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.7em 1.2em;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.94rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background 180ms var(--ease), color 180ms var(--ease),
    border-color 180ms var(--ease), transform 180ms var(--ease), box-shadow 180ms var(--ease);
}

.btn svg {
  width: 1.1em;
  height: 1.1em;
  flex-shrink: 0;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--lg { padding: 0.9em 1.55em; font-size: 1.02rem; }

.btn--primary {
  background: var(--blue-600);
  color: #fff;
  box-shadow: 0 8px 20px -10px rgba(37, 99, 235, 0.85);
}

.btn--primary:hover { background: var(--blue-700); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn--ghost:hover {
  border-color: var(--blue-600);
  color: var(--blue-600);
}

.btn--outline {
  background: transparent;
  color: var(--blue-700);
  border-color: var(--blue-600);
}

.btn--outline:hover {
  background: var(--blue-600);
  color: #fff;
  border-color: var(--blue-600);
}

.btn--whatsapp {
  background: var(--wa);
  color: #fff;
  border-color: var(--wa);
  box-shadow: 0 8px 18px -8px rgba(37, 211, 102, 0.9);
}

.btn--whatsapp:hover {
  background: var(--wa-dark);
  color: #fff;
  border-color: var(--wa-dark);
}

.btn--whatsapp svg {
  width: 1.2em;
  height: 1.2em;
  fill: #fff;
  color: #fff;
}

.btn--on-light {
  color: var(--navy-900);
  border-color: var(--line);
}

.btn--on-light:hover {
  background: var(--navy-900);
  color: #fff;
  border-color: var(--navy-900);
}

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 400;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px -18px rgba(10, 10, 10, 0.25);
}

.header__bar {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.25rem;
  min-height: var(--header-h);
}

.logo {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  font-weight: 800;
  font-size: 1.02rem;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo__mark {
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 0.15rem;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.45rem 0.7rem;
  border-radius: var(--radius-full);
  transition: color 160ms var(--ease), background 160ms var(--ease);
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--blue-700);
  background: var(--blue-50);
}

.header__cta {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  justify-self: end;
}

.header__cta .btn { font-size: 0.82rem; padding: 0.5em 0.95em; }

.header__cta .btn--whatsapp {
  color: #fff;
}

.header__call {
  display: none;
  font-size: 0.85rem;
  padding: 0.5em 0.95em;
}

.nav-toggle {
  display: none;
  position: relative;
  z-index: 2;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: var(--ink);
  position: relative;
  transition: transform 200ms var(--ease), opacity 200ms var(--ease);
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }

.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 1099px) {
  .header__bar { grid-template-columns: 1fr auto auto; gap: 0.6rem; }
  .nav-toggle { display: inline-flex; }
  .header__cta { display: none; }
  .header__call { display: inline-flex; }

  .nav {
    display: none;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    padding: 0.75rem var(--gutter) calc(5.5rem + env(safe-area-inset-bottom));
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    overflow: auto;
    border-bottom: 1px solid var(--line);
  }

  .nav.is-open { display: flex; }

  .nav a {
    font-size: 1.05rem;
    padding: 0.9rem 0.75rem;
    min-height: 2.75rem;
    border-radius: var(--radius-sm);
  }

  body.nav-open { overflow: hidden; }
  body.nav-open .float-actions { opacity: 0; pointer-events: none; }
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  background:
    radial-gradient(ellipse 80% 70% at 90% 0%, rgba(37, 99, 235, 0.12), transparent 55%),
    var(--bg);
  color: var(--ink);
  padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 5.5rem);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(37,99,235,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,99,235,0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.35), transparent 85%);
  pointer-events: none;
}

.hero__grid {
  position: relative;
  display: grid;
  gap: 2.75rem;
  align-items: center;
}

.hero__grid > *,
.footer__top > *,
.card,
.contact-card { min-width: 0; }

@media (min-width: 960px) {
  .hero__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 4rem; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--amber-500);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 1rem;
}

.eyebrow::before {
  content: "";
  width: 1.5rem;
  height: 2px;
  background: var(--amber-500);
}

.hero h1 { color: var(--ink); max-width: 18ch; }

.hero__lead {
  color: var(--muted);
  max-width: 54ch;
  font-size: clamp(0.98rem, 2.4vw, 1.08rem);
}

.hero__actions { margin: 1.6rem 0 0; }

.hero__actions .btn { min-height: 2.85rem; }

.hero__trust {
  display: grid;
  gap: 0.55rem;
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.hero__trust li {
  color: var(--muted);
  font-size: 0.92rem;
  padding-left: 1.4rem;
  position: relative;
}

.hero__trust li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 0.55rem;
  height: 0.55rem;
  background: var(--amber-500);
  border-radius: 2px;
}

.hero__panel {
  display: flex;
  justify-content: center;
}

.panel-frame {
  width: 100%;
  max-width: 24rem;
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  box-shadow: var(--shadow-md);
}

.panel-svg { width: 100%; height: auto; }
.panel-svg .frame { fill: #fff; stroke: var(--blue-100); stroke-width: 1.5; }
.panel-svg .line { stroke: var(--blue-100); stroke-width: 1.5; }
.panel-svg .breaker { fill: var(--blue-100); stroke: var(--line); stroke-width: 1; }
.panel-svg .breaker.on { fill: var(--blue-600); }
.panel-svg .trace { fill: none; stroke: rgba(37, 99, 235, 0.35); stroke-width: 2; }
.panel-svg .node,
.panel-svg .bolt { fill: var(--blue-600); }

/* Stats */
.stats {
  background: var(--blue-50);
  border-top: 1px solid var(--blue-100);
}

.stats__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.stat {
  padding: 1.15rem 0;
  text-align: center;
}

.stat + .stat { border-top: 1px solid var(--blue-100); }

@media (min-width: 700px) {
  .stats__grid { grid-template-columns: repeat(3, 1fr); }
  .stat { padding: 1.6rem 1rem; }
  .stat + .stat { border-top: 0; border-left: 1px solid var(--blue-100); }
}

.stat strong {
  display: block;
  color: var(--ink);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.stat span {
  color: var(--muted);
  font-size: 0.88rem;
}

/* =========================================================
   SECTIONS
   ========================================================= */
.section { padding: clamp(3.5rem, 8vw, 6.25rem) 0; }

.section--alt { background: var(--blue-50); }

.section__head {
  max-width: 40rem;
  margin-bottom: 2.25rem;
}

.section__head .eyebrow { color: var(--amber-600); }
.section__head .eyebrow::before { background: var(--amber-600); }

.lede { font-size: 1.05rem; max-width: 58ch; }

/* Services */
.card-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .card-grid { grid-template-columns: repeat(3, 1fr); gap: 1.15rem; }
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.45rem 1.35rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease), border-color 220ms var(--ease);
}

.section--alt .card { background: #fff; }

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue-500);
}

.card__icon {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 12px;
  background: var(--blue-50);
  color: var(--blue-700);
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
}

.card__icon svg { width: 1.25rem; height: 1.25rem; }

.card h3 { color: var(--navy-900); }
.card p { margin: 0; font-size: 0.95rem; }

/* Districts */
.districts {
  background: var(--blue-50);
  color: var(--ink);
}

.districts h2 { color: var(--ink); }
.districts .lede,
.districts p { color: var(--muted); }
.districts .section__head { max-width: 46rem; }
.districts .eyebrow { color: var(--blue-700); }
.districts .eyebrow::before { background: var(--blue-700); }

.district-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 540px) {
  .district-list { grid-template-columns: 1fr 1fr; }
}

.district-list--all {
  margin-top: 0.25rem;
}

@media (min-width: 760px) {
  .district-list--all { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1100px) {
  .district-list--all { grid-template-columns: repeat(5, 1fr); }
}

.district-list li:target a {
  border-color: var(--amber-500);
  box-shadow: 0 0 0 1px var(--amber-500);
}

.district-list a {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.05rem 1rem 1rem;
  font-weight: 800;
  font-size: 0.92rem;
  line-height: 1.3;
  color: var(--ink);
  text-decoration: none;
  display: block;
  height: 100%;
  transition: border-color 180ms var(--ease), transform 180ms var(--ease);
}

.district-list a:hover {
  border-color: var(--blue-600);
  transform: translateY(-2px);
}

.district-list small {
  display: block;
  font-weight: 500;
  color: var(--muted);
  margin-top: 0.3rem;
  font-size: 0.78rem;
  line-height: 1.4;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.1rem;
}

.chip {
  background: #fff;
  border: 1px solid var(--blue-100);
  color: var(--blue-700);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-full);
}

/* Why us */
.why-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .why-grid { grid-template-columns: repeat(3, 1fr); } }

.why-item {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem 1.4rem;
  border: 1px solid var(--line);
  border-top: 3px solid var(--amber-500);
}

.why-item p { margin: 0; font-size: 0.95rem; }

/* Process */
.process-track {
  display: grid;
  gap: 1.15rem;
  position: relative;
}

@media (min-width: 640px) {
  .process-track { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
  .process-track {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.35rem;
  }

  .process-track::before {
    content: "";
    position: absolute;
    top: 2.9rem;
    left: 2.75rem;
    right: calc(25% - 2.75rem);
    height: 2px;
    background: linear-gradient(90deg, var(--blue-600), var(--blue-100));
    z-index: 0;
  }
}

.process-track li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.35rem 1.2rem 1.4rem;
  position: relative;
  overflow: visible;
  z-index: 1;
  box-shadow: var(--shadow-sm);
  transition: transform 220ms var(--ease), border-color 220ms var(--ease), box-shadow 220ms var(--ease);
}

.process-track li:hover {
  transform: translateY(-4px);
  border-color: var(--blue-100);
  box-shadow: var(--shadow-md);
}

.process-track li:last-child {
  border-color: var(--blue-100);
}

.process-track__node {
  width: 3.1rem;
  height: 3.1rem;
  border-radius: 16px;
  background: var(--blue-600);
  color: #fff;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  box-shadow: 0 0 0 6px var(--blue-50), 0 10px 22px -10px rgba(37, 99, 235, 0.9);
}

.process-track li:last-child .process-track__node {
  background: var(--blue-700);
}

.process-track__node svg {
  width: 1.35rem;
  height: 1.35rem;
}

.process-track__num {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--blue-700);
  margin-bottom: 0.35rem;
}

.process-track h3 {
  margin-bottom: 0.3em;
  font-size: 1.12rem;
  letter-spacing: -0.03em;
}

.process-track p {
  margin: 0;
  font-size: 0.92rem;
}

@media (prefers-reduced-motion: reduce) {
  .process-track li:hover { transform: none; }
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 0.65rem;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 1.15rem;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--navy-950);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 1.05rem 0;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--amber-600);
  flex-shrink: 0;
  width: 1.6rem;
  height: 1.6rem;
  display: grid;
  place-items: center;
  border-radius: var(--radius-full);
  background: var(--blue-50);
}

.faq-item[open] summary::after { content: "–"; }
.faq-item p { margin: 0 0 1.05rem; font-size: 0.95rem; }

/* CTA */
.final-cta {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(ellipse 70% 90% at 0% 110%, rgba(96, 165, 250, 0.28), transparent 55%),
    radial-gradient(ellipse 55% 70% at 100% -10%, rgba(255, 255, 255, 0.16), transparent 50%),
    linear-gradient(160deg, #2563eb 0%, #1d4ed8 42%, #1e3a8a 100%);
}

.final-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 78%);
  pointer-events: none;
}

.final-cta .container { position: relative; z-index: 1; }

.hero__trust a {
  color: var(--blue-700);
  font-weight: 700;
  text-decoration: none;
}

.hero__trust a:hover { color: var(--blue-500); }

.final-cta h2 { color: #fff; max-width: 22ch; }
.final-cta .section__head { max-width: 46rem; margin-bottom: 1.85rem; }
.final-cta .eyebrow { color: #bfdbfe; }
.final-cta .eyebrow::before { background: #bfdbfe; }
.final-cta .lede { color: #dbeafe; max-width: 62ch; }

.cta-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.cta-stats li {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #dbeafe;
  font-size: 0.82rem;
}

.cta-stats strong {
  color: #fff;
  font-size: 0.88rem;
  letter-spacing: -0.02em;
}

.contact-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 760px) {
  .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
}

.contact-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 22px;
  padding: 1.45rem 1.35rem 1.4rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 22px 40px -28px rgba(15, 23, 42, 0.55);
  transition: transform 220ms var(--ease), border-color 220ms var(--ease), background 220ms var(--ease);
}

.contact-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.14);
}

.contact-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.contact-card__icon {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--blue-700);
}

.contact-card__icon svg { width: 1.2rem; height: 1.2rem; }

.contact-card__live {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(37, 211, 102, 0.22);
  border: 1px solid rgba(187, 247, 208, 0.45);
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-full);
}

.contact-card:last-child .contact-card__live {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
}

.contact-card__label {
  margin: 0 0 0.3rem;
  color: #bfdbfe;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-card__number {
  display: inline-block;
  color: #fff;
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.contact-card__number:hover { color: #bfdbfe; }

.contact-card__hint {
  margin: 0.45rem 0 1.05rem;
  color: #dbeafe;
  font-size: 0.9rem;
}

.contact-card__actions { margin-top: 0.1rem; }

.final-cta .btn--primary {
  background: #fff;
  color: var(--blue-700);
}

.final-cta .btn--primary:hover {
  background: var(--blue-50);
}

.cta-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

@media (min-width: 1100px) {
  .cta-keywords { padding-right: 5.5rem; }
}

@media (max-width: 1099px) {
  .final-cta { padding-bottom: calc(8.75rem + env(safe-area-inset-bottom)); }
}

.cta-keywords a {
  color: #fff;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  transition: background 180ms var(--ease), border-color 180ms var(--ease);
}

.cta-keywords a:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.32);
}

/* Legal inner pages */
.page-hero {
  background: var(--blue-50);
  color: var(--ink);
  padding: 3rem 0 2.5rem;
}

.page-hero h1 { color: var(--ink); max-width: none; }
.page-hero p { color: var(--muted); margin: 0; }

.prose { max-width: 46rem; }
.prose h2 { margin-top: 2rem; font-size: 1.25rem; }
.prose p, .prose li { color: var(--muted); }
.prose ul { list-style: disc; padding-left: 1.2rem; margin: 0 0 1rem; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: #f8fafc;
  color: var(--muted);
  padding: 3.25rem 0 0;
  font-size: 0.92rem;
  border-top: 1px solid var(--line);
}

.footer__top {
  display: grid;
  gap: 1.75rem;
  padding-bottom: 2.25rem;
}

@media (min-width: 900px) {
  .footer__top {
    grid-template-columns: minmax(0, 1fr) minmax(18rem, 28rem);
    align-items: start;
    gap: 3rem;
  }
}

.footer__brand .logo { margin-bottom: 0.85rem; color: var(--ink); }

.footer__tagline {
  color: var(--ink);
  max-width: 36ch;
  margin: 0 0 0.75rem;
  font-size: 1rem;
}

.footer__brand address {
  font-style: normal;
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.footer__phones {
  display: grid;
  gap: 0.7rem;
}

.footer-phone {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 0.85rem;
  row-gap: 0.1rem;
  align-items: center;
  padding: 0.85rem 1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.footer-phone__label {
  grid-row: 1 / 3;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue-700);
  background: var(--blue-50);
  padding: 0.45rem 0.5rem;
  border-radius: 8px;
  text-align: center;
  min-width: 4.4rem;
}

.footer-phone strong {
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.footer-phone span:last-child {
  color: var(--muted);
  font-size: 0.78rem;
}

.footer-phone:hover {
  border-color: var(--blue-600);
}

.footer-phone--wa .footer-phone__label {
  color: #065f46;
  background: #d1fae5;
}

.footer-phone--wa:hover { border-color: var(--wa); }

.footer__grid {
  display: grid;
  gap: 1.75rem;
  padding: 1.75rem 0 2rem;
  border-top: 1px solid var(--line);
}

@media (min-width: 700px) {
  .footer__grid { grid-template-columns: repeat(3, 1fr); }
}

.footer__grid h2 {
  color: var(--ink);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 0.85rem;
}

.footer__grid ul { display: grid; gap: 0.45rem; }

.footer__grid a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}

.footer__grid a:hover { color: var(--blue-700); }

.footer-areas {
  border-top: 1px solid var(--line);
  padding: 1.75rem 0 1.6rem;
  background: #fff;
}

.footer-areas h2 {
  color: var(--ink);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 1rem;
}

.footer-areas__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem 1rem;
}

@media (min-width: 700px) {
  .footer-areas__list { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  .footer-areas__list { grid-template-columns: repeat(5, 1fr); }
}

.footer-areas__list a {
  display: block;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.35rem 0;
}

.footer-areas__list a:hover { color: var(--blue-700); }

.footer__bottom {
  border-top: 1px solid var(--line);
  background: #fff;
}

.footer__bottom-inner {
  padding: 1.1rem 0 calc(1.1rem + env(safe-area-inset-bottom));
  font-size: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: space-between;
}

.footer__bottom p { margin: 0; color: #6b7280; }

/* =========================================================
   MOBILE STICKY BAR
   ========================================================= */
.mobile-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: 1fr;
  z-index: 200;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.12);
  padding-bottom: env(safe-area-inset-bottom);
  background: #fff;
}

@media (min-width: 1100px) {
  .mobile-bar { display: none; }
  body { padding-bottom: 0; }
}

body:not(:has(.mobile-bar)) {
  padding-bottom: 0;
}

.mobile-bar__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.95rem 0.5rem;
  font-weight: 800;
  text-decoration: none;
  font-size: 0.95rem;
}

.mobile-bar__btn svg { width: 1.15rem; height: 1.15rem; }
.mobile-bar__btn.call { background: var(--blue-600); color: #fff; }

.float-actions {
  position: fixed;
  right: 1rem;
  bottom: calc(5.25rem + env(safe-area-inset-bottom));
  z-index: 300;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.85rem;
}

.wa-float,
.call-float {
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 50%;
  color: #fff;
  display: grid;
  place-items: center;
  text-decoration: none;
  overflow: visible;
  position: relative;
}

.wa-float {
  background: var(--wa);
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.42);
}

.wa-float::before,
.wa-float::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.55);
  pointer-events: none;
  animation: wa-ripple 2.6s ease-out infinite;
}

.wa-float::after {
  animation-delay: 0.9s;
}

.wa-float svg {
  width: 1.7rem;
  height: 1.7rem;
  fill: #fff;
  color: #fff;
  animation: wa-pop 2.6s ease-in-out infinite;
}

.wa-float:hover {
  background: var(--wa-dark);
  transform: scale(1.06);
}

.wa-float:hover svg {
  animation-duration: 0.7s;
}

.call-float {
  background: var(--blue-600);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.45);
}

.call-float::before,
.call-float::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid rgba(37, 99, 235, 0.5);
  pointer-events: none;
  animation: call-ripple 2.4s ease-out infinite;
}

.call-float::after {
  animation-delay: 0.8s;
}

.call-float svg {
  width: 1.55rem;
  height: 1.55rem;
  stroke: #fff;
  color: #fff;
  transform-origin: 70% 30%;
  animation: call-shake 2.4s ease-in-out infinite;
}

.call-float:hover {
  background: var(--blue-700);
  transform: scale(1.06);
}

.call-float:hover svg {
  animation-duration: 0.7s;
}

@keyframes call-shake {
  0%, 62%, 100% { transform: rotate(0deg); }
  66% { transform: rotate(18deg); }
  70% { transform: rotate(-16deg); }
  74% { transform: rotate(14deg); }
  78% { transform: rotate(-12deg); }
  82% { transform: rotate(8deg); }
  86% { transform: rotate(-5deg); }
  90% { transform: rotate(2deg); }
}

@keyframes call-ripple {
  0% { transform: scale(1); opacity: 0.45; }
  100% { transform: scale(1.42); opacity: 0; }
}

@keyframes wa-ripple {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(1.42); opacity: 0; }
}

@keyframes wa-pop {
  0%, 58%, 100% { transform: scale(1); }
  64% { transform: scale(1.14); }
  72% { transform: scale(0.92); }
  80% { transform: scale(1.08); }
  88% { transform: scale(1); }
}

@media (min-width: 1100px) {
  .float-actions { bottom: 1.5rem; }
}

.lead-popup {
  border: 0;
  padding: 0;
  margin: auto;
  width: min(28rem, calc(100% - 1.5rem));
  max-height: min(90dvh, 40rem);
  overflow: auto;
  border-radius: 24px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 24px 80px -20px rgba(15, 23, 42, 0.45);
}

.lead-popup::backdrop {
  background: rgba(15, 23, 42, 0.52);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.lead-popup__panel {
  padding: 1.35rem 1.35rem 1.4rem;
  position: relative;
}

.lead-popup__panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--blue-600), #60a5fa);
  border-radius: 24px 24px 0 0;
}

.lead-popup__close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 2.15rem;
  height: 2.15rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  background: #fff;
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.lead-popup__close svg { width: 1rem; height: 1rem; }

.lead-popup__close:hover {
  background: var(--blue-50);
  border-color: var(--blue-100);
  color: var(--blue-700);
}

.lead-popup__brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0.35rem 2.2rem 1rem 0;
}

.lead-popup__mark {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 12px;
  background: var(--blue-600);
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.lead-popup__mark svg { width: 1.15rem; height: 1.15rem; }

.lead-popup__kicker {
  margin: 0;
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.lead-popup__live {
  margin: 0.1rem 0 0;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--blue-700);
}

.lead-popup h2 {
  font-size: clamp(1.35rem, 4vw, 1.7rem);
  letter-spacing: -0.035em;
  margin: 0 0 0.35em;
  padding-right: 0;
}

.lead-popup__lead {
  margin: 0 0 1.05rem;
  font-size: 0.95rem;
}

.lead-popup__services {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  margin: 0 0 1.2rem;
}

.lead-popup__services li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 0.7rem;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.8rem;
  line-height: 1.25;
}

.lead-popup__ico {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 8px;
  background: var(--blue-50);
  color: var(--blue-700);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.lead-popup__ico svg { width: 0.9rem; height: 0.9rem; }

.lead-popup__cta {
  display: grid;
  gap: 0.65rem;
}

.lead-popup .btn {
  width: 100%;
  white-space: nowrap;
  min-height: 3.15rem;
}

.lead-popup .btn--whatsapp {
  font-size: 1.02rem;
}

.btn-label-short { display: none; }

.footer__bottom-inner {
  padding: 1.1rem 0 1.1rem;
  font-size: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: space-between;
}

body.popup-open { overflow: hidden; }
.mobile-bar__btn.wa { background: var(--wa); color: #06210f; }

@media (max-width: 959px) {
  .hero__panel { display: none; }
}

@media (max-width: 639px) {
  .hero,
  .section { padding-block: clamp(2.25rem, 8vw, 3.5rem); }

  .hero__actions {
    display: grid;
    width: 100%;
  }

  .hero__actions .btn { width: 100%; }

  .contact-card__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .contact-card__actions .btn { width: 100%; padding-inline: 0.6em; }

  .btn-label-full { display: none; }
  .btn-label-short { display: inline; }

  .logo { font-size: 0.95rem; gap: 0.5rem; }
  .logo__mark { width: 1.75rem; height: 1.75rem; }

  .district-list a { font-size: 0.88rem; padding: 0.9rem 0.85rem; }

  .footer-areas__list {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .footer-areas__list a {
    padding: 0.7rem 0;
    min-height: 2.75rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--line);
    font-size: 0.88rem;
  }

  .footer-phone {
    padding: 0.75rem 0.8rem;
    column-gap: 0.65rem;
  }

  .footer-phone strong { font-size: 0.98rem; }

  .float-actions {
    right: max(0.75rem, env(safe-area-inset-right));
  }

  .wa-float,
  .call-float {
    width: 3.25rem;
    height: 3.25rem;
  }

  .lead-popup__panel { padding: 1.15rem 1rem 1.15rem; }
  .lead-popup h2 { font-size: 1.28rem; }
  .lead-popup__services { gap: 0.45rem; }
  .lead-popup__services li { font-size: 0.75rem; padding: 0.6rem 0.55rem; }
}

@media (max-width: 379px) {
  .header__call { padding: 0.45em 0.7em; font-size: 0.8rem; }
  .logo span { max-width: 11ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

@media (min-width: 1100px) {
  .header__call { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
