body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: #f5f5f5;
}

/* Header */
header {
  text-align: center;
  padding: 20px;
  font-size: 22px;
  font-weight: bold;
  background: white;
  position: sticky;
  top: 0;
  z-index: 10;
}

/* Filtros */
.filters {
  display: flex;
  gap: 10px;
  justify-content: center;
  padding: 10px;
  flex-wrap: wrap;
}

button {
  padding: 8px 15px;
  border: none;
  border-radius: 20px;
  background: #ddd;
  cursor: pointer;
  transition: 0.3s;
}

button.active {
  background: black;
  color: white;
}

/* Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 15px;
  padding: 15px;
}

/* Tarjeta */
.card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.card:hover {
  transform: scale(1.03);
}

/* IMÁGENES IGUALES */
.card img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  background: #fff;
  padding: 10px; /* le da aire */
}
/* Contenido */
.card-content {
  padding: 10px;
  text-align: center;
}

.price {
  font-weight: bold;
  margin: 5px 0;
}

/* Etiquetas */
.tag {
  display: inline-block;
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 10px;
  background: black;
  color: white;
  margin-bottom: 5px;
}

/* Botón WhatsApp */
.whatsapp {
  display: block;
  text-align: center;
  background: #4412e7;
  color: white;
  padding: 8px;
  border-radius: 10px;
  text-decoration: none;
  margin-top: 5px;
  font-size: 14px;
}

/* Animación */
.fade {
  animation: fade 0.3s ease;
}

@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}


/* HERO HEADER */
.hero {
  height: 180px;
  background: url("img/banner.jpeg") center/cover no-repeat;
  position: relative;
}

/* Oscurece la imagen para que el texto se vea bien */
.overlay {
  background: rgba(0,0,0,0.5);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.overlay h1 {
  color: white;
  font-size: 26px;
  letter-spacing: 1px;
}

/* 📱 CELULAR: 1 producto por fila */
@media (max-width: 600px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

.hero {
  height: 180px;
  background: url("img/banner.jpeg") center/cover no-repeat;
  position: relative;
}

.overlay {
  background: rgba(0,0,0,0.5);
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 20px;
}

/* CONTENEDOR */
.hero-content {
  display: flex;
  flex-direction: column; /* 👈 esto hace que se acomode vertical */
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 100%;
  color: white;
  gap: 5px;
}

.tagline {
  font-size: 17px;
  opacity: 0.8;
  max-width: 90%;
}

.hero {
  animation: fadeZoom 1s ease;
}

@keyframes fadeZoom {
  from {
    opacity: 0;
    transform: scale(1.05);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

#btnTop {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 45px;
  height: 45px;
  border: none;
  border-radius: 50%;
  background: black;
  color: white;
  font-size: 20px;
  cursor: pointer;
  display: none; /* 👈 empieza oculto */
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: 0.3s;
}

#btnTop:hover {
  transform: scale(1.1);
}

button.active {
  background: black;
  color: white;
}