/* Contenedor flotante del botón */
#chatbot-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Botón flotante con animación */
#chatbot-btn {
  width: 140px;
  height: 140px;
  cursor: pointer;
  animation: float 2s ease-in-out infinite;
  border: none;
  background: none;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

/* Sombra suave opcional debajo del bot */
#chatbot-btn::after {
  content: "";
  position: absolute;
  bottom: 10px;
  width: 60%;
  height: 10px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 50%;
  filter: blur(4px);
  z-index: -1;
}

#chatbot-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: translateX(-35px);
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

/* Viñeta de texto - posicionada encima del bot */
#chatbot-tooltip {
  position: absolute;
  top: -55px;
  right: 0;
  transform: translateX(0);
  background-color: #007bff;
  color: white;
  padding: 8px 12px;
  border-radius: 16px;
  font-size: 14px;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  animation: fadeIn 1s infinite alternate;
  z-index: 1001;
}

@keyframes fadeIn {
  from { opacity: 0.8; }
  to { opacity: 1; }
}

/* Ventana de chat */
#chatbot-window {
  position: absolute;
  bottom: 150px;
  right: 0;
  width: 350px;
  height: 450px;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  display: none;
  flex-direction: column;
  overflow: hidden;
}

#chatbot-header {
  background-color: #007bff;
  color: white;
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#chatbot-title {
  margin: 0;
  font-size: 16px;
}

#close-chat {
  background: none;
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
}

#chatbot-messages {
  padding: 10px;
  overflow-y: auto;
  flex-grow: 1;
  background-color: #f9f9f9;
}

.message {
  margin: 5px 0;
}

.bot-message {
  text-align: left;
  color: #007bff;
}

.user-message {
  text-align: right;
  color: #28a745;
}

/* Ocultar completamente la entrada de texto y el botón enviar */
#chatbot-input {
  display: none;
}
