/* Carrusel de categorías - Parque Berrío */
.pbcc {
  --pbcc-accent: #1f5f8b;
  --pbcc-ink: #1d2329;
  --pbcc-surface: #fff;
  --pbcc-line: #e3e6ea;
  --pbcc-soft: #f2f4f6;
  /* Sin position ni z-index: así el carrusel nunca se dibuja encima de los menús del tema */
  display: flex;
  align-items: center;
  gap: 4px;
  width: 100%;
  margin: 0;
  padding: 8px 0;
  background: var(--pbcc-surface);
  border-bottom: 1px solid var(--pbcc-line);
  box-sizing: border-box;
  font-family: inherit;
  color: var(--pbcc-ink);
}
.pbcc *, .pbcc *::before, .pbcc *::after { box-sizing: border-box; }
.pbcc[hidden] { display: none !important; }

.pbcc-track {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 2px 12px;
  list-style: none;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  scroll-padding: 0 12px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  flex: 1 1 auto;
  min-width: 0;
  /* Sin mask-image: crea una capa propia que puede tapar los menús desplegables del tema */
}
.pbcc-track::-webkit-scrollbar { display: none; }
.pbcc-track > li { flex: 0 0 auto; margin: 0; padding: 0; scroll-snap-align: start; }

.pbcc-chip {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}
.pbcc-chip:hover, .pbcc-chip:focus { text-decoration: none; color: inherit; }
.pbcc-chip:focus-visible { outline: 3px solid var(--pbcc-accent); outline-offset: 2px; }

.pbcc-ico {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 50%;
  background: var(--pbcc-cat, var(--pbcc-soft));
  color: var(--pbcc-ink);
}
.pbcc-chip[style] .pbcc-ico { color: #fff; }
.pbcc-ico img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pbcc-ico svg { width: 60%; height: 60%; }
.pbcc-ico--svg svg { fill: currentColor; }
.pbcc-ico--letter { font-weight: 700; }
.pbcc-ico--back, .pbcc-ico--all { background: var(--pbcc-soft); color: var(--pbcc-ink); }

.pbcc-label { white-space: nowrap; font-weight: 600; }
.pbcc-count {
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.07);
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* ---------- Estilo pastillas (el más compacto) ---------- */
.pbcc--pills .pbcc-chip {
  gap: 7px;
  min-height: 40px;
  padding: 4px 14px 4px 4px;
  border: 1px solid var(--pbcc-line);
  border-radius: 999px;
  background: var(--pbcc-surface);
  font-size: 14px;
  line-height: 1.2;
}
.pbcc--pills .pbcc-ico { width: 30px; height: 30px; font-size: 14px; }
.pbcc--pills .pbcc-chip.is-active {
  background: var(--pbcc-accent);
  border-color: var(--pbcc-accent);
  color: #fff;
}
.pbcc--pills .pbcc-chip.is-active .pbcc-count { background: rgba(255, 255, 255, 0.22); }
.pbcc--pills .pbcc-chip.is-back,
.pbcc--pills .pbcc-chip.is-all { padding-right: 12px; }

/* ---------- Estilo círculos ---------- */
.pbcc--circles .pbcc-track { gap: 4px; }
.pbcc--circles .pbcc-chip {
  flex-direction: column;
  gap: 5px;
  width: 74px;
  padding: 2px 0;
  font-size: 12px;
  line-height: 1.2;
  text-align: center;
}
.pbcc--circles .pbcc-ico {
  width: 54px;
  height: 54px;
  font-size: 22px;
  box-shadow: 0 0 0 2px var(--pbcc-surface), 0 0 0 3px var(--pbcc-line);
}
.pbcc--circles .pbcc-chip.is-active .pbcc-ico { box-shadow: 0 0 0 2px var(--pbcc-surface), 0 0 0 4px var(--pbcc-accent); }
.pbcc--circles .pbcc-chip.is-active .pbcc-label { color: var(--pbcc-accent); }
.pbcc--circles .pbcc-label {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: normal;
  width: 100%;
  word-break: break-word;
}
.pbcc--circles .pbcc-count { display: none; }

/* ---------- Pausa ---------- */
.pbcc-pause {
  flex: 0 0 auto;
  margin-right: 8px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--pbcc-line);
  border-radius: 50%;
  background: var(--pbcc-surface);
  color: var(--pbcc-ink);
  cursor: pointer;
}
.pbcc-pause:focus-visible { outline: 3px solid var(--pbcc-accent); outline-offset: 2px; }
.pbcc-pause .pbcc-i-play { display: none; }
.pbcc-pause[aria-pressed="true"] .pbcc-i-pause { display: none; }
.pbcc-pause[aria-pressed="true"] .pbcc-i-play { display: block; }

/* ---------- Bloque de categorías del tema (modo automático) ---------- */
.pbcc-native-hidden.pbcc-nh-all { display: none !important; }
@media (max-width: 767.98px) { .pbcc-native-hidden.pbcc-nh-mobile { display: none !important; } }
@media (max-width: 1023.98px) { .pbcc-native-hidden.pbcc-nh-mobile_tablet { display: none !important; } }

/* ---------- Dispositivos ---------- */
@media (min-width: 768px) {
  .pbcc--dev-mobile { display: none !important; }
}
@media (min-width: 1024px) {
  .pbcc--dev-mobile_tablet { display: none !important; }
  .pbcc--dev-all .pbcc-track { padding-left: max(12px, calc((100% - 1200px) / 2)); }
}

@media (prefers-reduced-motion: reduce) {
  .pbcc-track { scroll-behavior: auto; }
}

.pbcc-pause[hidden] { display: none !important; }
