/* ============================================
   CHATBOT – chatbot.css
   ============================================ */

/* Botón toggle */
#chat-toggle {
  width: 4rem;
  height: 4rem;
  background-color: #000613;
  color: #ffffff;
  border-radius: 9999px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(115, 92, 0, 0.3);
  transition: transform 0.2s ease;
}
#chat-toggle:hover {
  transform: scale(1.1);
}
#chat-toggle:active {
  transform: scale(0.95);
}

/* Ventana del chatbot – oculta por defecto, visible con clase .open */
#chat-window {
  transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s ease;
  transform: translateY(20px) scale(0.95);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

#chat-window.open {
  transform: translateY(0) scale(1);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Animación de entrada de cada mensaje */
.message-bubble {
  animation: fadeInUp 0.35s ease forwards;
  opacity: 0;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}