/* ============================================================
   Filtros component: sticky chip bar that filters the catalog
   grid below it. Sticks under the fixed nav, bounded by the
   .cat-sticky-wrap ancestor set in pantallas.php.
   ============================================================ */

.filtros {
  position: sticky;
  top: 3.75rem;
  z-index: 50;
  background: var(--bg);
  border-top: 1px solid rgba(20, 20, 20, 0.08);
  border-bottom: 1px solid rgba(20, 20, 20, 0.08);
  padding: 1.125rem var(--pad-x);
}
/* Covers the gap between the fixed nav and the sticky bar so no
   content peeks through underneath while scrolling. */
.filtros::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -0.875rem;
  height: 0.875rem;
  background: var(--bg);
}
.filtros__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 1.25rem;
  align-items: center;
  flex-wrap: wrap;
}
.filtros__group {
  display: flex;
  gap: 0.625rem;
  flex-wrap: wrap;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.125rem;
  border-radius: 999px;
  border: 1.5px solid var(--black);
  background: transparent;
  color: var(--black);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.01em;
  transition: all 0.25s var(--ease);
  cursor: pointer;
}
.chip__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #e5e7eb;
  transition: background 0.25s var(--ease);
}
.chip:hover {
  background: var(--black);
  color: var(--white);
}
.chip:hover .chip__dot {
  background: var(--green);
}
.chip.is-active {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}
.chip.is-active .chip__dot {
  background: var(--green);
}

@media (max-width: 820px) {
  .filtros {
    top: 3.25rem;
  }
}
@media (max-width: 520px) {
  .filtros {
    padding: 0.75rem var(--pad-x);
  }
}
@media (max-width: 420px) {
  .chip {
    padding: 0.5rem 0.875rem;
    font-size: 0.8125rem;
  }
  .chip__dot {
    width: 0.375rem;
    height: 0.375rem;
  }
}
