/* CONTENEDOR */
.filter-component {
  position: relative;
  display: inline-block;
  margin-bottom: 40px; /* 👈 ESPACIO ABAJO REAL */
  font-family: Arial, sans-serif;
}

/* BOTÓN PRINCIPAL */
.filter-btn {
  background: #111;
  color: #fff;
  border: none;
  padding: 12px 16px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: 0.25s ease;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.filter-btn:hover {
  transform: translateY(-1px);
}

/* DROPDOWN */
.filter-dropdown {
  position: absolute;
  top: calc(100% + 12px); /* 👈 separación elegante */
  left: 0;
  width: 240px;

  background: #fff;
  border-radius: 12px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.18);

  padding: 8px;

  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: 0.25s ease;
  z-index: 999;
}

/* OPEN STATE */
.filter-component.open .filter-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ITEMS */
.filter-item {
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 14px;
  border-radius: 8px;
  transition: 0.2s;
  color: #333;
}

.filter-item:hover {
  background: #f3f3f3;
}

.filter-item.active {
  background: #111;
  color: #fff;
}

/* ARROW ANIMATION */
.arrow {
  transition: 0.2s ease;
}

.filter-component.open .arrow {
  transform: rotate(180deg);
}