.catalogo-header {
  padding: 60px 20px;
  text-align: center;
  background-color: #f5f7fa;
}

.catalogo-container {
  max-width: 1200px;
  margin: auto;
  padding: 40px 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 30px;
}

.product-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  text-align: center;
  padding-bottom: 20px;
  cursor: pointer;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.product-card.hide {
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
}

.product-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.product-card h3 {
  margin: 15px 0 5px;
}

.product-card p {
  color: #555;
  font-size: 0.9rem;
}

.product-card button {
  margin-top: 15px;
  padding: 10px 20px;
  border-radius: 25px;
  border: none;
  background-color: #25d366;
  color: white;
  cursor: pointer;
}

.product-card button:hover {
  background-color: #1ebe5d;
}

/*Filtros*/

.filtros-container {
  max-width: 1200px;
  margin: auto;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* CLAVE */
}

/* Lado izquierdo */
.filtro-left {
  display: flex;
  align-items: center;
}

/* Lado derecho */
.filtro-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.filtro-right label {
  font-weight: 600;
}

.filtro-left select,
.filtro-right select {
  padding: 10px 16px;
  border-radius: 25px;
  border: 2px solid #d0d7de;
  font-size: 0.95rem;
  outline: none;
  cursor: pointer;
}

.filtro-left select:focus,
.filtro-right select:focus {
  border-color: #4682be;
}

.catalogo-info {
  max-width: 1200px;
  margin: 15px auto 0;
  padding: 0 20px;
  font-weight: 600;
  color: #2c3e50;
}

.btn-limpiar {
  padding: 10px 16px;
  border-radius: 25px;
  border: 2px solid #2c3e50;
  background: white;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-limpiar:hover {
  background: #2c3e50;
  color: white;
}


.catalogo-cta {
  margin-top: 80px;
  padding: 80px 20px;
  background-color: #f5f7fa;
  text-align: center;
}

.cta-container {
  max-width: 800px;
  margin: auto;
}

.catalogo-cta h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #2c3e50;
}

.catalogo-cta p {
  color: #6c7a89;
  font-size: 1.1rem;
  margin-bottom: 40px;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.cta-primary,
.cta-secondary {
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cta-primary {
  background-color: #f44040;
  color: white;
  border: none;
}

.cta-primary:hover {
  background-color: #d63333;
}

.cta-secondary {
  background: transparent;
  border: 2px solid #2c3e50;
  color: #2c3e50;
}

.cta-secondary:hover {
  background-color: #2c3e50;
  color: white;
}

/*Modal*/

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: white;
  padding: 30px;
  border-radius: 12px;
  width: 400px;
  max-width: 90%;
  text-align: center;
  position: relative;
}

.modal img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 18px;
  font-size: 1.5rem;
  cursor: pointer;
}


.modal-add {
  background-color: #25d366;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  cursor: pointer;
  margin: 15px 0;
}

.carrito-badge {
  transition: transform 0.2s ease;
}

.carrito-badge.animate {
  transform: scale(1.4);
}


@media (max-width: 768px) {
  .filtros-container {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
  }

  .filtro-right {
    justify-content: space-between;
  }
}