/* RESET BÁSICO */
body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 10px;

  background: linear-gradient(
    135deg,
    #fdf6f0,
    #f4f1ee,
    #eef5f3
  );
}

/* TÍTULO */
.titulo {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  text-align: center;
  margin: 20px 0 30px;
  color: #333;
  letter-spacing: 1px;
}

/* GRID tipo Instagram */
.galeria {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}

/* CARD */
.producto {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* IMAGEN */
.producto img {
  width: 100%;
  aspect-ratio: 1 / 1;   /* 👈 SIEMPRE CUADRADA */
  object-fit: cover;
  display: block;
}

.producto h3 {
  font-size: 13px;
  padding-left: 7px;
}

.producto p {
  padding-left: 7px;
}

.botones-flotantes {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  gap: 10px; /* espacio entre botones */
}

/* WhatsApp (ya lo tenías, lo adaptamos) */
#btnFlotante {
  background: #25D366;
  color: white;
  font-size: 22px;
  padding: 14px;
  border-radius: 50%;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}


/* OVERLAY */
.overlay {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: white;
  padding: 10px;
  opacity: 0;
  transition: 0.3s;
}

/* Hover solo desktop */
.producto:hover .overlay {
  opacity: 1;
}

/* TEXTO */
.overlay h3 {
  margin: 1;
  font-size: 10px;
}

.overlay p {
  margin: 3px 0;
  font-size: 13px;
}

/* BOTÓN */
.btn {
  display: block;
  width: fit-content;
  margin: 12px auto 8px;
  padding: 6px 12px;
  background: #25D366;
  color: white;
  text-decoration: none;
  border-radius: 20px;
  font-size: 12px;
  text-align: center;
}

.visor {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
}

.visor img {
  max-width: 90%;
  max-height: 90%;
}

#cerrar {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 40px;
  cursor: pointer;
}

/* BOTÓN flotante */
#btnFlotante {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #25D366;
  color: white;
  font-size: 22px;
  padding: 14px;
  border-radius: 50%;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* 📱 MOBILE */
@media (max-width: 480px) {

  .titulo {
    font-size: 26px;
  }

  .galeria {
   grid-template-columns: repeat(3, 1fr); /* 👈 3 columnas fijas */
    gap: 6px; /* opcional: menos espacio = imágenes más grandes */
  }

  /* overlay SIEMPRE visible en celular */
  .overlay {
    opacity: 1;
  }

  .overlay h3 {
    font-size: 12px;
  }

  .overlay p {
    font-size: 11px;
  }

  .btn {
    font-size: 11px;
    padding: 5px 10px;
  }
}