/* Botón flotante */
#btm-chat-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  font-size: 24px;
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
#btm-chat-button:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

/* Caja del chat */
#btm-chat-box {
  position: fixed;
  bottom: 90px;
  right: 20px;
  z-index: 9999;
  width: 360px;
  max-height: 75vh;
  background: #0f172a;
  color: #f3f4f6;
  border: 1px solid #1f2937;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  transform: translateY(20px) scale(0.95);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
#btm-chat-box.open {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

/* Header */
.btm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border-bottom: 1px solid #1f2937;
}
.btm-title {
  font-weight: 700;
  font-size: 15px;
  color: #93c5fd;
}
#btm-close {
  background: transparent;
  border: none;
  color: #cbd5e1;
  font-size: 22px;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
}
#btm-close:hover {
  color: #f87171;
  transform: rotate(90deg);
}

/* Mensajes */
.btm-messages {
  padding: 14px;
  height: 50vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scrollbar-width: thin;
  scrollbar-color: #1f2937 #0f172a;
}
.btm-messages::-webkit-scrollbar {
  width: 6px;
}
.btm-messages::-webkit-scrollbar-thumb {
  background: #1f2937;
  border-radius: 999px;
}
.btm-bubble {
  padding: 10px 14px;
  border-radius: 16px;
  max-width: 80%;
  line-height: 1.4;
  font-size: 14px;
  animation: fadeIn 0.3s ease;
}
.btm-bubble.user {
  margin-left: auto;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
}
.btm-bubble.bot {
  margin-right: auto;
  background: #1f2937;
  color: #e5e7eb;
}

/* Sugerencias */
.btm-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}
.btm-suggestions button {
  background: #0ea5e9;
  border: none;
  color: #0f172a;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  transition: background 0.2s ease;
}
.btm-suggestions button:hover {
  background: #38bdf8;
}

/* Input */
.btm-input {
  display: flex;
  gap: 8px;
  padding: 12px;
  background: #0b1020;
  border-top: 1px solid #1f2937;
}
.btm-input input {
  flex: 1;
  background: #0f172a;
  color: #e2e8f0;
  border: 1px solid #1f2937;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 14px;
  transition: border 0.2s ease;
}
.btm-input input:focus {
  outline: none;
  border-color: #3b82f6;
}
.btm-input button {
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  color: white;
  border: none;
  padding: 10px 14px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btm-input button:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 15px rgba(59, 130, 246, 0.4);
}

/* Animación */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}
