/* Burbuja flotante */
#plantabot-bubble {
  position: fixed;
  bottom: 32px;
  right: 32px;
  background: #2c5e3f;
  color: #fff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(44,94,63,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  cursor: pointer;
  z-index: 9999;
  transition: background 0.2s;
}
#plantabot-bubble:hover {
  background: #255036;
}

/* Ventana de chat */
#plantabot-chat-window {
  position: fixed;
  bottom: 100px;
  right: 32px;
  width: 350px;
  max-width: 90vw;
  height: 420px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(44,94,63,0.18);
  display: none;
  flex-direction: column;
  z-index: 10000;
  overflow: hidden;
}
.chat-header {
  background: #2c5e3f;
  color: #fff;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 1.1rem;
}
#close-chat {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
}
.chat-body {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  background: #f8f9fa;
}
#chat-form {
  display: flex;
  border-top: 1px solid #e9ecef;
}
#chat-input {
  flex: 1;
  border: none;
  padding: 12px;
  font-size: 1rem;
  border-radius: 0 0 0 18px;
  outline: none;
}
#chat-form button {
  background: #2c5e3f;
  color: #fff;
  border: none;
  padding: 0 18px;
  border-radius: 0 0 18px 0;
  font-size: 1.3rem;
  cursor: pointer;
  transition: background 0.2s;
}
#chat-form button:hover {
  background: #255036;
}
.msg {
  margin-bottom: 10px;
  padding: 10px 14px;
  border-radius: 14px;
  max-width: 80%;
  word-break: break-word;
  font-size: 1rem;
  line-height: 1.3;
}
.msg.user {
  background: #2c5e3f;
  color: #fff;
  margin-left: auto;
}
.msg.bot {
  background: #e9ecef;
  color: #2c5e3f;
  margin-right: auto;
}
.msg.bot.error {
  background: #ffdddd;
  color: #b00020;
}
