#chatbot-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  font-family: 'Poppins', sans-serif;
}

/* ===== BOTÓN FLOTANTE ===== */
#chat-toggle {
  background: transparent;  /* ✅ Sin fondo azul */
  border: none;             /* ✅ Sin borde */
  width: 90px;              /* 🔹 Tamaño ajustado: puedes probar 60–70px según tu gusto */
  height: 90px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25); /* sutil sombra */
  transition: all 0.3s ease;
}

#chat-toggle:hover {
  transform: scale(1.05);
}

#chat-toggle img {
  width: 60px;   /* 🔹 Imagen un poco más pequeña */
  height: 60px;
  object-fit: contain;
  border-radius: 50%;
}


/* ===== VENTANA DEL CHAT ===== */
#chat-window {
  display: none;
  flex-direction: column;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  width: 340px;
  height: 450px;
  overflow: hidden;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
  animation: fadeIn 0.4s ease-in-out forwards;
  position: relative;
}

/* 🍾 Burbujas de champán decorativas */
#chat-window::before {
  content: "";
  position: absolute;
  top: 12px;
  right: 12px;
  width: 55px;
  height: 55px;
  background: url("https://cdn-icons-gif.flaticon.com/12736/12736663.gif") no-repeat center/contain;
  opacity: 0.9;
}

/* ===== ENCABEZADO ===== */
#chat-header {
  background: #2563EB;
  color: #fff;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

/* ===== CONTENIDO ===== */
#chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
}

#chat-input {
  border: none;
  border-top: 1px solid #ddd;
  padding: 10px;
  width: 100%;
  outline: none;
  font-size: 14px;
}

/* ===== BURBUJAS DE MENSAJES ===== */
.user {
  text-align: right;
  background: #2563EB;
  color: white;
  padding: 6px 10px;
  border-radius: 10px;
  margin: 4px 0;
  align-self: flex-end;
}

.bot {
  background: #f4f4f4;
  padding: 8px 10px;
  border-radius: 10px;
  margin: 6px 0;
  animation: fadeIn 0.4s ease;
}

/* ===== PRODUCTOS RECOMENDADOS ===== */
.producto-item {
  display: flex;
  align-items: center;
  margin: 8px 0;
  gap: 8px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 6px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.producto-item img {
  width: 45px;
  height: 45px;
  object-fit: cover;
  border-radius: 6px;
}

/* ===== ANIMACIONES ===== */
#chat-window.open {
  display: flex;
  animation: slideUp 0.4s ease forwards;
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

