/* ============================
   ANIMACIONES
============================ */
@keyframes slideUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

/* ============================
   FASE 6: MICROINTERACCIONES SUAVES
   Solo afecta controles de filtros. No anima el canvas/mapa.
============================ */
@keyframes softPopIn {
  from {
    opacity: 0;
    transform: translateY(6px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes chipEnter {
  from {
    opacity: 0;
    transform: translateY(4px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes rippleFade {
  from {
    opacity: 0.32;
    transform: scale(0);
  }
  to {
    opacity: 0;
    transform: scale(2.25);
  }
}

.filter-card.active .filter-header,
.filter-card.active .filter-section,
.filter-card.active .filter-footer {
  animation: softPopIn 220ms ease-out both;
}

.filter-card.active .filter-section:nth-of-type(1) { animation-delay: 20ms; }
.filter-card.active .filter-section:nth-of-type(2) { animation-delay: 45ms; }
.filter-card.active .filter-section:nth-of-type(3) { animation-delay: 70ms; }
.filter-card.active .filter-footer { animation-delay: 95ms; }

.category-chip,
.filter-chip,
.filter-btn,
.icon-btn,
.primary-btn,
.secondary-btn,
.filter-search__button,
.more-filters {
  position: relative;
  overflow: hidden;
  transform-origin: center;
  -webkit-tap-highlight-color: transparent;
}

.category-chip.is-pressed,
.filter-chip--active.is-pressed,
.filter-btn.is-pressed,
.icon-btn.is-pressed,
.primary-btn.is-pressed,
.secondary-btn.is-pressed,
.filter-search__button.is-pressed,
.more-filters.is-pressed {
  transform: scale(0.98);
}

.ui-ripple {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  border-radius: 999px;
  background: currentColor;
  opacity: 0;
  transform: scale(0);
  animation: rippleFade 520ms ease-out forwards;
}

.category-chip > *,
.filter-chip > *,
.filter-btn > *,
.icon-btn > *,
.primary-btn > *,
.secondary-btn > *,
.filter-search__button > *,
.more-filters > * {
  position: relative;
  z-index: 1;
}

.active-filter-chips .filter-chip {
  animation: chipEnter 180ms ease-out both;
}

.filter-row--card,
.filter-search--premium {
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.filter-row--card:focus-within,
.filter-row--card:hover {
  transform: translateY(-1px);
  border-color: rgba(34, 197, 94, 0.3);
}

.filter-search--premium:hover {
  transform: translateY(-1px);
}

.more-filters-arrow {
  transition: transform 180ms ease;
}

.more-filters[aria-expanded="true"] .more-filters-arrow,
.more-filters.is-expanded .more-filters-arrow {
  transform: rotate(180deg);
}

@media (prefers-reduced-motion: reduce) {
  .filter-card.active .filter-header,
  .filter-card.active .filter-section,
  .filter-card.active .filter-footer,
  .active-filter-chips .filter-chip,
  .ui-ripple {
    animation: none !important;
  }

  .category-chip,
  .filter-chip,
  .filter-btn,
  .icon-btn,
  .primary-btn,
  .secondary-btn,
  .filter-search__button,
  .more-filters,
  .filter-row--card,
  .filter-search--premium,
  .more-filters-arrow {
    transition: none !important;
  }
}
