:root {
  --brand: #0b4752;
  --brand-strong: #07343d;
  --brand-soft: #e3eff0;
  --brand-line: #b9d4d7;
  --accent: #c8932c;
  --bg: #f4f6f6;
  --surface: #ffffff;
  --ink: #142a2f;
  --ink-soft: #4b5f64;
  --ink-faint: #6b7c80;
  --line: #dde4e5;
  --focus: #1b7f8f;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(10, 40, 46, .06), 0 1px 1px rgba(10, 40, 46, .04);
  --shadow-hover: 0 6px 18px rgba(10, 40, 46, .10), 0 2px 4px rgba(10, 40, 46, .06);
  --font: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 16px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

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

a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }

.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;
}
.skip {
  position: absolute; left: 16px; top: -48px; z-index: 50;
  background: var(--surface); color: var(--brand); padding: 8px 14px; border-radius: 8px;
  font-weight: 600; text-decoration: none; box-shadow: var(--shadow-hover);
}
.skip:focus { top: 12px; }

/* ----------------------------------------------------------------- hero */

.hero {
  background:
    radial-gradient(1200px 400px at 85% -10%, rgba(255, 255, 255, .08), transparent 60%),
    linear-gradient(180deg, var(--brand) 0%, var(--brand-strong) 100%);
  color: #fff;
  padding: 18px 0 34px;
  border-bottom: 4px solid var(--accent);
}

.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22);
}
.brand-mark svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.brand-name { font-weight: 700; letter-spacing: .08em; font-size: 15px; }

.topbar-contact { display: flex; align-items: center; gap: 14px; font-size: 14px; color: rgba(255, 255, 255, .82); }
.topbar-wa {
  color: #fff; text-decoration: none; font-weight: 600;
  padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .35);
}
.topbar-wa:hover { background: rgba(255, 255, 255, .1); }
@media (max-width: 640px) { .topbar-phones { display: none; } }

.hero h1 {
  margin: 0;
  font-size: clamp(28px, 5vw, 42px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -.015em;
}
.lede { margin: 10px 0 0; max-width: 640px; color: rgba(255, 255, 255, .82); font-size: 17px; }

.search { position: relative; margin-top: 26px; max-width: 680px; }
.search input {
  width: 100%;
  height: 56px;
  padding: 0 52px 0 50px;
  border: 0;
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 17px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
  -webkit-appearance: none;
  appearance: none;
}
.search input::placeholder { color: var(--ink-faint); }
.search input:focus { outline: 3px solid var(--accent); outline-offset: 2px; }
.search-icon {
  position: absolute; left: 17px; top: 50%; width: 22px; height: 22px; transform: translateY(-50%);
  fill: none; stroke: var(--ink-faint); stroke-width: 2; stroke-linecap: round; pointer-events: none;
}
.search-key {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  min-width: 26px; height: 26px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 6px; color: var(--ink-faint);
  font: 600 13px var(--font); background: var(--bg);
}
@media (hover: none) { .search-key { display: none; } }

.meta { margin: 14px 0 0; font-size: 14px; color: rgba(255, 255, 255, .72); }

/* --------------------------------------------------------------- layout */

.layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 28px; padding-bottom: 64px; }
@media (min-width: 960px) {
  .layout { grid-template-columns: 240px minmax(0, 1fr); gap: 40px; padding-top: 40px; }
}

main:focus { outline: none; }

/* category navigation: pills on small screens, sticky sidebar on large */
.cats-label {
  margin: 0 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-faint);
}
.cats ul { list-style: none; margin: 0; padding: 0; }
.cats a {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  text-decoration: none; color: var(--ink-soft); font-size: 15px; font-weight: 500;
}
.cats .count { font-size: 12px; font-weight: 600; color: var(--ink-faint); font-variant-numeric: tabular-nums; }

@media (max-width: 959px) {
  .cats { margin: 0 -16px; }
  .cats-label { display: none; }
  .cats ul {
    position: relative; display: flex; gap: 8px; overflow-x: auto; padding: 2px 16px 6px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .cats ul::-webkit-scrollbar { display: none; }
  .cats a {
    white-space: nowrap; padding: 8px 14px; border-radius: 999px;
    background: var(--surface); border: 1px solid var(--line); font-size: 14px;
  }
  .cats a[aria-current="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
  .cats a[aria-current="true"] .count { color: rgba(255, 255, 255, .75); }
  .cats li:has(a.is-empty) { display: none; }
}
@media (min-width: 960px) {
  .cats { position: sticky; top: 24px; align-self: start; }
  .cats li + li { margin-top: 2px; }
  .cats a { padding: 8px 12px; border-radius: 8px; border-left: 3px solid transparent; }
  .cats a:hover { background: var(--surface); color: var(--ink); }
  .cats a[aria-current="true"] { background: var(--brand-soft); color: var(--brand-strong); border-left-color: var(--brand); }
}

.cats a.is-empty { opacity: .45; }

/* --------------------------------------------------------------- groups */

.group + .group { margin-top: 40px; }
.group h2 {
  display: flex; align-items: center; gap: 12px;
  margin: 0 0 14px; font-size: 19px; font-weight: 700; color: var(--brand-strong); letter-spacing: -.005em;
}
.group h2::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
}

.card a {
  position: relative;
  display: flex; flex-direction: column; gap: 4px; height: 100%;
  padding: 16px 18px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.card a:hover { border-color: var(--brand-line); box-shadow: var(--shadow-hover); transform: translateY(-1px); }
.card a:active { transform: none; }
@media (prefers-reduced-motion: reduce) { .card a { transition: none; } .card a:hover { transform: none; } }

.card-title { font-weight: 600; font-size: 16px; line-height: 1.3; color: var(--ink); }
.card-desc { font-size: 14px; color: var(--ink-soft); line-height: 1.4; }
.card-host {
  display: flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 10px;
  font-size: 13px; color: var(--ink-faint); overflow-wrap: anywhere;
}
.card-host svg {
  flex: none; width: 15px; height: 15px; margin-left: auto;
  fill: none; stroke: var(--brand); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  opacity: .55; transition: opacity .15s ease;
}
.card a:hover .card-host svg { opacity: 1; }

mark { background: #f6e3b5; color: inherit; border-radius: 3px; padding: 0 1px; }

.empty {
  padding: 40px 20px; text-align: center; color: var(--ink-soft);
  background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius);
}
.empty p { margin: 0; }
.empty-title { font-weight: 700; color: var(--ink); font-size: 18px; margin-bottom: 4px !important; }

/* --------------------------------------------------------------- footer */

.footer { background: var(--surface); border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 14px; }
.footer-inner {
  display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 20px 40px;
  padding-top: 28px; padding-bottom: 96px;
}
@media (min-width: 720px) { .footer-inner { padding-bottom: 32px; } }
.footer p { margin: 0; }
.footer-brand { font-weight: 700; letter-spacing: .08em; color: var(--brand-strong); }
.footer-motto { margin-top: 4px !important; font-style: italic; }
.footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.footer-contact a { color: var(--brand); text-decoration: none; font-weight: 500; }
.footer-contact a:hover { text-decoration: underline; }
.footer-counter { min-height: 1px; }
.footer-counter img { max-width: 100%; height: auto; }

/* ------------------------------------------------------------- whatsapp */

.wa-fab {
  position: fixed; left: 20px; bottom: 20px; z-index: 20;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: #1fa855; color: #fff;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .22);
  transition: transform .15s ease;
}
.wa-fab:hover { transform: scale(1.05); }
.wa-fab svg { width: 30px; height: 30px; fill: currentColor; }
@media (min-width: 720px) { .wa-fab { left: 28px; bottom: 28px; } }
