/* ========== MEJORAS ESPECÍFICAS PARA INDEX.PHP ========== */

/* ANTES: Espaciado inconsistente entre secciones */
/* DESPUÉS: Espaciado uniforme y mejorado */
.galeria {
  padding: 60px 5%;
  margin-bottom: 20px;
}

/* ANTES: Descripciones demasiado largas */
/* DESPUÉS: Texto más conciso y legible */
.nombre {
  font-size: 0.95rem;
  margin-bottom: 8px;
  line-height: 1.4;
  height: 2.8em; /* Limita a 2 líneas aproximadamente */
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* ANTES: Botones de carrito no presentes en algunos productos */
/* DESPUÉS: Todos los productos tienen botón de carrito */
.carrito-btn {
  background-color: #e67300; /* Color naranja */
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 25px; /* Bordes más redondeados */
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  margin-top: 10px;
  font-weight: 600;
  font-size: 0.95rem;
}

.carrito-btn:hover {
  background-color: #cc5200; /* Naranja más oscuro al hover */
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(255, 128, 1, 0.3);
}

/* ========== ICONO DE WHATSAPP FLOTANTE ========== */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 25px;
  right: 25px;
  background-color: #25d366;
  color: #FFF;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease-in-out;
  animation: pulse 2s infinite;
}

.whatsapp-float:hover {
  background-color: #128C7E;
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.6);
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* ========== MEJORAS RESPONSIVAS ADICIONALES ========== */
@media (max-width: 768px) {
  .galeria {
    padding: 40px 3%;
  }
  
  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
    font-size: 25px;
  }
}

/* ========== MEJORAS EN LA ESTRUCTURA DE PRODUCTOS ========== */
.producto {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.producto:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

/* ========== MEJORAS EN BOTONES VER MÁS ========== */
.ver-mas-boton {
  padding: 12px 28px;
  background: #d4af37;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  border-radius: 25px;
  transition: all 0.3s ease;
  display: inline-block;
  font-size: 1rem;
}

.ver-mas-boton:hover {
  transform: scale(1.05);
  background: #bf9b2e;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}