@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

body {
  font-family: 'Poppins', sans-serif;
}

.card {
  transition: all 0.4s ease;
  backdrop-filter: blur(10px);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(107, 107, 107, 0.15);
}

.glass-effect {
  background: rgba(248, 249, 250, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(230, 230, 230, 0.5);
}

.pulse-glow {
  animation: pulseGlow 2s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
  from {
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.2);
  }

  to {
    box-shadow: 0 0 25px rgba(168, 85, 247, 0.3);
  }
}

/* Estilos para los botones de filtro */
.filter-btn {
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid #e5e7eb;
  background: white;
  color: #4b5563;
  font-size: 0.875rem;
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.filter-btn:hover {
  background: #f9fafb;
  border-color: #a855f7;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(168, 85, 247, 0.15);
}

.filter-btn.active {
  background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
  color: white;
  border-color: #a855f7;
  box-shadow: 0 4px 12px rgba(168, 85, 247, 0.3);
}

.filter-btn.active:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(168, 85, 247, 0.4);
}

/* Barra de búsqueda y filtros */
.search-filter-bar {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  padding: 1rem;
  margin-bottom: 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: center;
}

.search-section {
  flex: 1;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 1rem;
  color: #9ca3af;
}

.search-input {
  width: 100%;
  padding: 0.75rem 3rem 0.75rem 2.75rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  transition: all 0.2s;
}

.search-input:focus {
  outline: none;
  border-color: #a855f7;
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.1);
}

.clear-search-btn {
  position: absolute;
  right: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e5e7eb;
  color: #6b7280;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.clear-search-btn:hover {
  background: #d1d5db;
}

.filters-btn {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
  color: white;
  border: none;
  border-radius: 0.5rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.filters-btn:hover {
  box-shadow: 0 4px 12px rgba(168, 85, 247, 0.3);
  transform: translateY(-2px);
}

.filters-btn.has-filters {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
}

.filters-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: white;
  color: #a855f7;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  margin-left: 0.5rem;
}

.filters-btn.has-filters .filters-badge {
  color: #059669;
}

/* Modal de filtros */
.filters-modal-content {
  text-align: left;
}

.applied-filters-section {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.applied-filters-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #059669;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
}

.applied-filters-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.applied-filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.375rem 0.75rem;
  background: #d1fae5;
  color: #065f46;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.remove-filter-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(6, 95, 70, 0.2);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  margin-left: 0.25rem;
}

.remove-filter-btn:hover {
  background: rgba(6, 95, 70, 0.3);
}

.clear-all-filters-btn {
  width: 100%;
  padding: 0.5rem 1rem;
  background: #fee2e2;
  color: #dc2626;
  border: none;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.clear-all-filters-btn:hover {
  background: #fecaca;
}

.filter-group {
  margin-bottom: 1.25rem;
}

.filter-label {
  display: flex;
  align-items: center;
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.5rem;
}

.filter-select {
  width: 100%;
  padding: 0.625rem 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  background: white;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-select:focus {
  outline: none;
  border-color: #a855f7;
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.1);
}

.quantity-buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

.quantity-btn {
  padding: 0.625rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  background: white;
  color: #4b5563;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.quantity-btn:hover {
  background: #f9fafb;
  border-color: #a855f7;
}

.quantity-btn.active {
  background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
  color: white;
  border-color: #a855f7;
}

.swal-confirm-btn,
.swal-cancel-btn {
  padding: 0.625rem 1.5rem !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  border-radius: 0.5rem !important;
}

/* Responsive */
@media (max-width: 768px) {
  .search-filter-bar {
    flex-direction: column;
  }
  
  .filters-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Animaciones para los botones de descarga e info */

/* Animaciones para los botones de descarga e info */
.download-btn, .info-btn {
  position: relative;
  overflow: hidden;
}

.download-btn::before, .info-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.download-btn:active::before, .info-btn:active::before {
  width: 300px;
  height: 300px;
}

.download-btn:active {
  transform: scale(0.95);
}

.info-btn:hover {
  transform: translateY(-2px);
}

/* Animación de pulso para el botón de descarga */
@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(168, 85, 247, 0.4);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(168, 85, 247, 0);
  }
}

.download-btn:hover {
  animation: pulse 1.5s infinite;
}

/* Estilos para la paginación */
.pagination-btn {
  padding: 0.5rem 1rem;
  margin: 0 0.25rem;
  border-radius: 0.5rem;
  background: white;
  border: 1px solid #e5e7eb;
  color: #4b5563;
  font-size: 0.875rem;
  transition: 0.3s ease;
  min-width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.pagination-btn:hover:not(.disabled) {
  background: #f9fafb;
  border-color: #a855f7;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(168, 85, 247, 0.15);
  color: black;
}

.pagination-btn.active {
  background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
  color: white;
  border-color: #a855f7;
  box-shadow: 0 4px 12px rgba(168, 85, 247, 0.3);
}

.pagination-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
} 