/* ============================================================
   Contadores Cali — hoja de estilos única (CSS puro)
   Mobile-first · sin dependencias · sin fuentes externas.

   COLORES DE MARCA: edítalos aquí para cambiar el tema.
   Para replicar a otra ciudad NO necesitas tocar este archivo
   (los textos de ciudad están en el HTML).
   ============================================================ */

:root {
  --ink: #0a2540;        /* títulos y secciones oscuras */
  --body: #33414f;       /* texto de cuerpo */
  --brand: #11497a;      /* azul de marca / enlaces */
  --brand-d: #0b3358;
  --cta: #0b7d57;        /* verde de conversión (contraste >=5:1 con blanco) */
  --cta-d: #096344;
  --wa: #0b7d57;         /* botón WhatsApp */
  --wa-d: #096344;
  --bg: #ffffff;
  --bg-soft: #f3f6fa;
  --line: #e1e8f0;
  --muted: #5a6b7b;
  --warn: #b4540a;       /* acento de urgencia (DIAN) */
  --warn-bg: #fff6ec;
  --max: 1140px;
  --radio: 14px;
  --sombra: 0 10px 30px rgba(10, 37, 64, .08);
  --fuente: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; /* offset del header sticky para anclas */ }

a, button, summary, label, select, input, textarea { -webkit-tap-highlight-color: rgba(10, 37, 64, .15); }
.btn, button, a { touch-action: manipulation; }

body {
  margin: 0;
  font-family: var(--fuente);
  color: var(--body);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  overflow-x: hidden;
}

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

h1, h2, h3 { color: var(--ink); line-height: 1.15; text-wrap: balance; }
p, li { text-wrap: pretty; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: 18px; }

/* --- Accesibilidad --- */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 0 0 10px 0; font-weight: 700;
}
.skip-link:focus { left: 0; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 6px;
}

/* =================== BOTONES =================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 700; font-size: 1rem; text-decoration: none; text-align: center;
  padding: 13px 22px; border-radius: 10px; border: 2px solid transparent; cursor: pointer;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease; line-height: 1.2; min-height: 48px;
}
.btn:hover { transform: translateY(-2px); }
.btn-lg { font-size: 1.05rem; padding: 16px 28px; min-height: 54px; }
.btn-cta { background: var(--cta); color: #fff; box-shadow: 0 8px 20px rgba(11, 125, 87, .28); }
.btn-cta:hover { background: var(--cta-d); }
.btn-outline { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn-outline:hover { background: var(--brand); color: #fff; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-d); }
.ico { width: 22px; height: 22px; fill: currentColor; flex: none; }

/* =================== HEADER =================== */
.header { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 14px; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; color: var(--ink); }
.brand-mark { width: 40px; height: 40px; flex: none; display: grid; place-items: center; background: var(--ink); color: #fff; border-radius: 10px; font-weight: 800; }
.brand strong { font-size: 1.15rem; line-height: 1; }
.brand small { display: block; color: var(--muted); font-size: .78rem; font-weight: 600; }

.nav { display: none; }
.nav a { text-decoration: none; font-weight: 600; color: var(--ink); padding: 8px 4px; }
.nav a:hover { color: var(--brand); text-decoration: underline; }
.nav a[aria-current="page"] { color: var(--brand); }
.header-cta { display: none; }

.menu-toggle { width: 48px; height: 48px; border: 0; background: var(--ink); border-radius: 10px; display: grid; place-content: center; gap: 5px; cursor: pointer; }
.menu-toggle span { display: block; width: 22px; height: 3px; background: #fff; border-radius: 2px; transition: transform .25s, opacity .25s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 919px) {
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(82vw, 320px); background: var(--ink);
    flex-direction: column; gap: 2px; padding: 84px 22px 22px; transform: translateX(100%);
    transition: transform .28s ease, visibility .28s ease; z-index: 110; display: flex; visibility: hidden;
    overscroll-behavior: contain;
  }
  .nav[data-open="true"] { transform: translateX(0); visibility: visible; }
  .nav a { color: #fff; font-size: 1.1rem; padding: 13px 6px; border-bottom: 1px solid rgba(255,255,255,.12); }
  .nav a:hover { color: #fff; }
  body.menu-abierto { overflow: hidden; }
}
@media (min-width: 920px) {
  .nav { display: flex; align-items: center; gap: 18px; }
  .header-cta { display: inline-flex; }
  .menu-toggle { display: none; }
}

/* =================== HERO =================== */
.hero { background: radial-gradient(circle at 90% 10%, rgba(17,73,122,.08), transparent 50%), var(--bg-soft); padding-block: clamp(40px, 7vw, 80px); }
.hero-grid { display: grid; gap: 28px; align-items: center; }
.eyebrow { display: inline-block; margin: 0 0 12px; font-weight: 700; font-size: .78rem; letter-spacing: 1.4px; text-transform: uppercase; color: var(--brand); background: #e7eff7; padding: 6px 12px; border-radius: 999px; }
.hero h1 { font-size: clamp(2rem, 6vw, 3.1rem); margin: 0 0 14px; letter-spacing: -.5px; }
.hero .lead { font-size: 1.14rem; color: var(--body); margin: 0 0 26px; max-width: 46ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.hero-trust { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.hero-trust li { font-size: .95rem; font-weight: 600; color: var(--ink); }
.hero-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radio); box-shadow: var(--sombra); padding: 26px; }
.hero-card h2 { font-size: 1.15rem; margin: 0 0 14px; }
.hero-card ul { margin: 0; padding-left: 0; list-style: none; display: grid; gap: 10px; }
.hero-card li { display: flex; gap: 10px; align-items: flex-start; font-size: .98rem; }
.hero-card li::before { content: "✓"; color: var(--cta); font-weight: 800; flex: none; }
@media (min-width: 920px) { .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 44px; } }

/* =================== SECCIONES =================== */
.section { padding-block: clamp(44px, 7vw, 76px); }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--ink); color: #cfe0ee; }
.section-dark h2, .section-dark h3 { color: #fff; }
.sec-head { max-width: 62ch; margin-bottom: 32px; }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head h2 { font-size: clamp(1.6rem, 4.5vw, 2.3rem); margin: 0 0 10px; letter-spacing: -.4px; }
.sec-head p { margin: 0; color: var(--muted); font-size: 1.05rem; }
.section-dark .sec-head p { color: #aebfd0; }

/* --- Problemas (grid de chips) --- */
.problems { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 12px; }
.problems li { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: 10px; padding: 14px 16px; font-weight: 600; color: var(--ink); }
@media (min-width: 620px) { .problems { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .problems { grid-template-columns: 1fr 1fr; } }

/* --- Tarjetas de servicios --- */
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 16px; }
.card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radio); padding: 22px; transition: border-color .2s, transform .2s, box-shadow .2s; }
.card:hover { border-color: var(--brand); transform: translateY(-3px); box-shadow: var(--sombra); }
.card .ico-box { width: 44px; height: 44px; border-radius: 10px; background: #e7eff7; color: var(--brand); display: grid; place-items: center; margin-bottom: 14px; font-size: 1.4rem; }
.card h3 { font-size: 1.15rem; margin: 0 0 8px; }
.card h3 a { text-decoration: none; color: var(--ink); }
.card h3 a:hover { color: var(--brand); }
.card p { margin: 0 0 16px; color: var(--muted); font-size: .96rem; }
.card .card-link { margin-top: auto; font-weight: 700; text-decoration: none; color: var(--cta); }
.card .card-link:hover { text-decoration: underline; }
@media (min-width: 620px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .cards { grid-template-columns: repeat(4, 1fr); } }

/* --- Bloque de contenido (2 col texto + lista) --- */
.split { display: grid; gap: 26px; align-items: start; }
.split .prose p { color: var(--body); }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 11px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }
.checklist li::before { content: "✓"; color: var(--cta); font-weight: 800; flex: none; }
.section-dark .checklist li { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); color: #e7f0f8; }
@media (min-width: 880px) { .split { grid-template-columns: 1fr 1fr; gap: 40px; } }

/* --- Aviso de urgencia (DIAN) --- */
.notice { background: var(--warn-bg); border: 1px solid #f0d3b0; border-left: 5px solid var(--warn); border-radius: 12px; padding: 20px 22px; }
.notice strong { color: var(--warn); }

/* --- FAQ (acordeón nativo) --- */
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; overflow: hidden; }
.faq details[open] { border-color: var(--brand); }
.faq summary { cursor: pointer; list-style: none; padding: 17px 50px 17px 18px; position: relative; font-weight: 700; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 400; color: var(--brand); line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq-a { padding: 0 18px 17px; }
.faq-a p { margin: 0; color: var(--body); }

/* --- CTA banner --- */
.cta-banner { background: var(--ink); color: #fff; border-radius: var(--radio); padding: 32px; text-align: center; }
.cta-banner h2 { color: #fff; margin: 0 0 10px; }
.cta-banner p { color: #aebfd0; margin: 0 0 20px; }
.cta-banner .btn-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* --- Formulario --- */
.form { display: grid; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radio); padding: 24px; box-shadow: var(--sombra); }
.form .row { display: grid; gap: 16px; }
@media (min-width: 620px) { .form .row.two { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; color: var(--ink); font-size: .95rem; }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink); padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; width: 100%;
}
.field textarea { min-height: 120px; resize: vertical; }
.form .hint { font-size: .85rem; color: var(--muted); margin: 0; }

/* =================== FOOTER =================== */
.footer { background: #07182a; color: #9fb3c8; padding-top: 44px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 26px; padding-bottom: 28px; }
.footer h3 { color: #fff; font-size: 1.05rem; margin: 0 0 12px; }
.footer p { margin: 0 0 8px; font-size: .94rem; }
.footer a { color: #cfe0ee; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.copy { text-align: center; border-top: 1px solid #14304a; margin: 0; padding: 18px; font-size: .85rem; color: #6e879e; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; gap: 32px; } }

/* --- Breadcrumb --- */
.breadcrumb { font-size: .88rem; color: var(--muted); padding-top: 18px; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.breadcrumb li::after { content: "/"; margin-left: 6px; color: var(--line); }
.breadcrumb li:last-child::after { content: ""; }
.breadcrumb a { text-decoration: none; }

/* =================== FAB WHATSAPP =================== */
.fab-wa {
  position: fixed; right: 16px; bottom: 16px; z-index: 120; display: inline-flex; align-items: center; gap: 8px;
  background: var(--wa); color: #fff; text-decoration: none; font-weight: 700; padding: 13px 18px; border-radius: 999px;
  box-shadow: 0 10px 26px rgba(11, 125, 87, .4);
}
.fab-wa:hover { background: var(--wa-d); }
.fab-wa .ico { width: 26px; height: 26px; }
@media (max-width: 420px) { .fab-wa .fab-text { display: none; } .fab-wa { padding: 14px; } }

/* --- utilidades --- */
.center { text-align: center; }
.mt-24 { margin-top: 24px; }
.lead-block { max-width: 70ch; }
