.chatbot-header {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.chatbot-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 10px;
}

.chatbot-messages {
  height: 400px;
  overflow-y: auto;
  border: 1px solid #ccc;
  margin-bottom: 0;
  padding: 8px;
}

.user-msg {
  background-color: #e9e9e9;
  margin-bottom: 6px;
  border-radius: 4px;
  padding: 6px;
}

.bot-msg {
  background-color: #d6f0ff;
  margin-bottom: 6px;
  border-radius: 4px;
  padding: 6px;
}

.chatbot-input {
  background-color: #f0f0f0;
  border-top: 1px solid #ccc;
  display: flex;
  gap: 8px;
  padding: 8px;
}

.chatbot-user-message {
  flex: 1;
  min-height: 40px;
  background-color: #eaeaea;
  border: none;
  border-radius: 6px;
  padding: 8px;
  resize: none;
  font-family: sans-serif;
  font-size: 14px;
  color: #333;
  outline: none;
}
.chatbot-user-message::placeholder {
  color: #999;
}

.chatbot-send-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  padding: 8px 12px;
  transition: background-color 0.2s;
}
.chatbot-send-btn:hover {
  background-color: #ddd;
}

.chatbot-send-icon {
  width: 20px;
  height: 20px;
  stroke: #555;
}

/* Modo embed */
.chatbot-embed {
  max-width: 100%;
  margin: 20px auto;
  padding: 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: sans-serif;
}

/* Modo burbuja */
.chatbot-bubble {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #21759b;
  cursor: pointer;
  z-index: 9999;
  transition: all 0.3s;
}
.chatbot-avatar-bubble {
  width: 60px;
  height: 60px;
  border-radius: 50%;
}

.chatbot-bubble-popup {
  display: none;
  position: absolute;
  bottom: 70px;
  right: 0;
  width: 300px;
  background-color: #ffffff;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.chatbot-bubble.open .chatbot-bubble-popup {
  display: block;
}

/* Indicador de "escribiendo" (3 puntos) */
.typing-indicator {
  background-color: #d6f0ff;
  border-radius: 4px;
  padding: 6px;
  margin-bottom: 6px;
  display: inline-flex;
  gap: 4px;
}
.typing-indicator span {
  display: block;
  width: 6px;
  height: 6px;
  background-color: #333;
  border-radius: 50%;
  animation: typing-bounce 1s infinite;
}
.typing-indicator span:nth-child(2) {
  animation-delay: 0.2s;
}
.typing-indicator span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typing-bounce {
  0% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
  100% { transform: translateY(0); }
}
