/* SICGBOR 2.0 — mobile-first. Cambia la paleta SOLO aquí. */
:root{
  --blue:#249CD1; --blue-dark:#1B7AA3; --yellow:#EEC21B; --ink:#2C3337;
  --bg:#F4F4F5; --gray:#C2C2BF; --black:#231F20; --white:#fff; --muted:#5b6469;
  --radius:12px; --shadow:0 1px 3px rgba(44,51,55,.12);
  --fs-h1:1.75rem; --fs-h2:1.375rem; --fs-h3:1.125rem;
}
@media (min-width:768px){:root{--fs-h1:2rem;--fs-h2:1.5rem}}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font:400 16px/1.6 Roboto,system-ui,-apple-system,Segoe UI,sans-serif;color:var(--black);background:var(--bg)}
img{max-width:100%;height:auto}
a{color:var(--blue-dark)}
h1,h2,h3{line-height:1.25;margin:0 0 .5rem}
h1{font-size:var(--fs-h1);font-weight:700}
h2{font-size:var(--fs-h2);font-weight:700}
h3{font-size:var(--fs-h3);font-weight:500}
p{margin:0 0 1rem}
.container{width:100%;max-width:1100px;margin-inline:auto;padding-inline:16px}
.narrow{max-width:720px}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.skip{position:absolute;left:-999px;top:0;background:var(--yellow);color:var(--ink);padding:.5rem 1rem;z-index:100}
.skip:focus{left:8px;top:8px}
:focus-visible{outline:3px solid var(--yellow);outline-offset:2px}
.muted{color:var(--muted)} .muted-light{color:var(--gray)}

/* Header */
.site-header{background:var(--ink);position:sticky;top:0;z-index:50}
.bar{display:flex;align-items:center;justify-content:space-between;min-height:60px;flex-wrap:wrap}
.brand{font-weight:700;font-size:1.5rem;letter-spacing:.5px;color:var(--white);text-decoration:none;margin:0}
.brand span{color:var(--yellow)}
.nav-toggle{background:none;border:0;padding:10px;cursor:pointer;display:flex;flex-direction:column;gap:5px}
.nav-toggle span{display:block;width:24px;height:2px;background:var(--white)}
.nav{display:none;width:100%;flex-direction:column;gap:2px;padding:8px 0 16px}
.nav.open{display:flex}
.nav a{color:var(--white);text-decoration:none;padding:10px 4px;border-radius:8px}
.nav a[aria-current]{color:var(--yellow)}
.nav a:hover{color:var(--yellow)}
@media (min-width:960px){
  .nav-toggle{display:none}
  .nav{display:flex;flex-direction:row;width:auto;align-items:center;gap:4px;padding:0}
  .nav a{padding:8px 12px}
}

/* Botones */
.btn{display:inline-block;background:var(--blue-dark);color:var(--white);border:0;border-radius:var(--radius);padding:12px 22px;font:500 1rem/1.2 Roboto,sans-serif;text-decoration:none;cursor:pointer;min-height:44px}
.btn:hover{background:var(--blue)}
.btn-sm{padding:8px 16px;min-height:40px;margin-top:6px}
@media (min-width:960px){.btn-sm{margin:0 0 0 8px}}
.btn-yellow{background:var(--yellow);color:var(--ink)}
.btn-yellow:hover{background:#f5d04a}
.btn-ghost{background:transparent;color:var(--blue-dark);box-shadow:inset 0 0 0 2px var(--blue-dark)}
.btn-ghost:hover{background:var(--white)}

/* Hero + buscador */
.hero{background:var(--ink);color:var(--white);padding:40px 0 48px}
.hero-sm{padding:32px 0}
.hero h1{max-width:20ch}
.hero-sm h1{max-width:none}
.lead{font-size:1.125rem;color:#e6e8e8;max-width:56ch}
.search{display:grid;gap:10px;margin-top:20px;max-width:820px}
.search input,.search select{width:100%;min-height:48px;padding:10px 14px;border:2px solid transparent;border-radius:var(--radius);font:inherit;color:var(--ink);background:var(--white)}
.search .btn{background:var(--yellow);color:var(--ink);font-weight:700}
@media (min-width:768px){.search{grid-template-columns:1fr 220px auto}}
.chips{list-style:none;padding:0;margin:18px 0 0;display:flex;flex-wrap:wrap;gap:8px}
.chip{display:inline-block;background:#e7f4fa;color:var(--blue-dark);border-radius:999px;padding:3px 12px;font-size:.875rem}
.chip-link{background:rgba(255,255,255,.12);color:var(--white);text-decoration:none;padding:6px 14px}
.chip-link:hover{background:var(--yellow);color:var(--ink)}

/* Secciones */
.section{padding:40px 0}
.section-alt{background:var(--white)}
.sub{color:var(--muted)}
.more{margin-top:20px;font-weight:500}
.empty{background:var(--white);border-radius:var(--radius);padding:20px;box-shadow:var(--shadow)}
.count{color:var(--muted);font-size:.875rem}
.grid{display:grid;gap:16px;margin-top:16px}
@media (min-width:640px){.grid-biz,.grid-services{grid-template-columns:repeat(2,1fr)}}
@media (min-width:960px){.grid-biz,.grid-services{grid-template-columns:repeat(3,1fr)}}
.card{background:var(--bg);border-radius:var(--radius);padding:20px;box-shadow:var(--shadow);border-top:4px solid var(--blue)}
.card p{margin:0;color:var(--muted)}

/* Tarjeta de negocio (listados) */
.biz{display:flex;gap:14px;background:var(--white);border-radius:var(--radius);padding:16px;box-shadow:var(--shadow);text-decoration:none;color:var(--ink)}
.biz:hover{box-shadow:0 4px 14px rgba(44,51,55,.18)}
.biz-logo{flex:none;width:56px;height:56px;border-radius:12px;background:var(--blue);color:var(--white);display:grid;place-items:center;font-weight:700;font-size:1.5rem;overflow:hidden}
.biz-logo img{width:100%;height:100%;object-fit:cover}
.biz-logo-lg{width:96px;height:96px;font-size:2.5rem}
.biz-body{display:flex;flex-direction:column;gap:4px;min-width:0}
.biz-tag{color:var(--muted);font-size:.875rem}
.biz-meta{display:flex;flex-wrap:wrap;gap:8px;align-items:center;font-size:.875rem;color:var(--muted)}
.pager{display:flex;gap:12px;align-items:center;justify-content:center;margin-top:28px;flex-wrap:wrap}

/* Tarjeta digital pública */
.card-head{display:flex;gap:20px;align-items:center}
.actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:20px}

/* CTA + footer */
.cta{background:var(--blue-dark);color:var(--white);padding:44px 0;text-align:center}
.cta p{max-width:60ch;margin-inline:auto}
.site-footer{background:var(--ink);color:var(--white);padding:32px 0 16px}
.foot{display:grid;gap:24px}
.foot nav{display:flex;flex-direction:column;gap:6px}
.foot nav a{color:var(--white);text-decoration:none}
.foot nav a:hover{color:var(--yellow)}
@media (min-width:768px){.foot{grid-template-columns:2fr 1.5fr 1.5fr}}
.copy{margin-top:24px;font-size:.875rem;color:var(--gray)}
.brand-light{display:block}
.debug{background:#000;color:#fff;padding:12px;border-radius:8px;overflow:auto}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* Selector de idioma */
.lang-switch{border:1px solid rgba(255,255,255,.45);border-radius:999px;padding:6px 14px!important;font-size:14px;font-weight:500;margin-top:6px}
.lang-switch:hover{border-color:var(--yellow)}
@media (min-width:960px){.lang-switch{margin:0 0 0 8px}}
