#chat-widget {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 280px;
  background: #fff;
  border: 2px solid #faa248;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  font-family: 'Segoe UI', sans-serif;
  z-index: 99999;
  display: none;
  flex-direction: column;
}

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

#chat-header .avatar {
  width: 100px;
  margin-bottom: -4%;
}

#chat-messages {
  height: 220px;
  overflow-y: auto;
  padding: 10px;
  font-size: 14px;
}

.message {
  margin-bottom: 10px;
}

.message.bot {
  color: #000;
  background: #f0f0f0;
  border-radius: 8px;
  padding: 6px;
}

.message.bot.opciones {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.message.bot.opciones button {
  background-color: #ffd966;
  color: #333;
  border: none;
  padding: 8px 12px;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.message.bot.opciones button:hover {
  background-color: #ffe599;
}


#chat-form {
  display: flex;
  border-top: 1px solid #ccc;
}

#chat-input {
  flex: 1;
  border: none;
  padding: 8px;
  font-size: 14px;
}

#chat-input:focus {
  outline: none;
}

#chat-form button {
  background: #faa248;
  color: white;
  border: none;
  padding: 8px 12px;
  cursor: pointer;
}

#chat-toggle {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: #faa248;
  border: none;
  border-radius: 50%;
  padding: 12px;
  font-size: 20px;
  color: white;
  cursor: pointer;
  z-index: 9998;
}

#chat-close {
  cursor: pointer;
  font-weight: bold;
}

