/* ============================================
   CATEGORIES — TITLE
   ============================================ */
.categories__title {
  text-align: center;
  margin-bottom: 0.625rem;
}

/* ============================================
   CATEGORIES — DESKTOP
   ============================================ */
.desktop-categories {
  flex: 1;
  background-color: var(--bbva-container-background);
  border-radius: 0.75rem;
  padding: 2rem 2.5rem;
  box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.04);
}

.desktop-categories-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1rem;
}

.desktop-categories-item {
  display: inline-block;

  a:hover {
    color: var(--bbva-container-background);
  }

  &.selected {
    background-color: var(--bbva-primary-color);

    a {
      color: var(--bbva-container-background);
      font-weight: 600;
    }
  }
}

/* ============================================
   FILTERS ROW
   ============================================ */
.filtros-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  width: 100%;
}

/* ============================================
   RESPONSIVE — CATEGORIES VISIBILITY
   ============================================ */
@media (min-width: 600px) {
  .mobile-categories {
    display: none;
  }
}

@media (max-width: 600px) {
  .desktop-categories {
    display: none;
  }
}

@media (max-width: 62rem) {
  .filtros-row {
    flex-direction: column;
    margin-inline: 0;
  }
}

/* ============================================
   CUSTOM MULTISELECT — BASE
   ============================================ */
.bloque__filtro-nav {
  flex: 1;
  min-width: 0;
  font-family: var(--font-body-book);
}

.custom-multiselect {
  position: relative;
  width: 100%;
  user-select: none;
}

/* ============================================
   CUSTOM MULTISELECT — TRIGGER
   ============================================ */
.custom-multiselect__trigger {
  background-color: var(--bbva-container-background);
  border: 0.125rem solid var(--bbva-grey-4);
  border-radius: 0.5rem;
  height: 3.5rem;
  padding: 0.5rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: border-color 0.2s ease;
  position: relative;
  cursor: pointer;
}

.custom-multiselect__trigger-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.custom-multiselect__search-input {
  background: transparent;
  border: 0;
  color: var(--bbva-primary-color-dark);
  cursor: pointer;
  flex: 1 1 auto;
  font: inherit;
  min-width: 0;
  outline: none;
  padding: 0;
  transition: padding 0.2s ease;
  text-overflow: ellipsis;
  white-space: nowrap;
  z-index: 2;
}

.custom-multiselect__placeholder {
  position: absolute;
  pointer-events: none;
  inset-block-start: 1.75rem;
  transform: translateY(-50%);
  font-size: 0.9375rem;
  color: var(--bbva-primary-color-dark);
  transition: all 0.2s ease;
  z-index: 1;
}

.custom-multiselect__trigger-meta {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  margin-left: 0.5rem;
}

.custom-multiselect__icon {
  width: 1.5rem;
  height: 1.5rem;
  transition: transform 0.2s ease;
}

/* ============================================
   CUSTOM MULTISELECT — OPEN / HAS-VALUE STATES
   ============================================ */
.custom-multiselect.open {
  .custom-multiselect__trigger {
    border-color: var(--bbva-primary-color);
  }

  .custom-multiselect__icon {
    transform: rotate(180deg);
  }

  .custom-multiselect__dropdown {
    display: block;
  }
}

.custom-multiselect.open,
.custom-multiselect.has-value {
  .custom-multiselect__placeholder {
    font-size: 0.75rem;
    inset-block-start: 1.0625rem;
    color: var(--bbva-grey-4);
  }

  .custom-multiselect__search-input {
    padding: 1rem 0 0 0;
  }
}

/* ============================================
   CUSTOM MULTISELECT — DROPDOWN
   ============================================ */
.custom-multiselect__dropdown {
  display: none;
  position: absolute;
  width: 100%;
  z-index: 99;
  border-bottom-left-radius: 1rem;
  border-bottom-right-radius: 1rem;
  box-shadow: 0 .25rem .5rem rgba(0, 0, 0, .1);
  margin-top: -0.4rem;
}

.custom-multiselect__options {
  margin-top: 0.4rem;
  background: var(--bbva-container-background);
  padding: 1rem;
  max-height: 20rem;
  overflow-y: auto;
  border: 0.125rem solid var(--bbva-grey-1);
  border-top: none;
  border-radius: 0 0 1rem 1rem;
}

/* ============================================
   CUSTOM MULTISELECT — NAVIGATION VARIANT
   ============================================ */
.custom-select-navigation .custom-multiselect__option {
  background: var(--bbva-sand);
  border-radius: 0.5rem;
  padding: 1rem;
  margin-bottom: 0.5rem;
  cursor: pointer;
  color: var(--bbva-primary-color-dark);
  transition: background-color 0.2s ease, color 0.2s ease;

  &:last-child {
    margin-bottom: 0;
  }

  &:hover,
  &.selected {
    background: var(--bbva-primary-color);
    color: var(--bbva-container-background);
  }
}