/* Botón flotante */
#sysbares-chat-toggle {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background-color: orange;
  color: white;
  font-weight: bold;
  padding: 12px 18px;
  border-radius: 25px;
  font-size: 14px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  z-index: 10000;
  cursor: pointer;
  transition: all 0.3s ease;
}
#sysbares-chat-toggle:hover {
  background-color: #e67e00;
}

/* Popup */
#sysbares-chat-popup {
  display: none;
  position: fixed;
  bottom: 80px;
  right: 25px;
  width: 320px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  z-index: 10000;
  animation: fadeIn 0.3s ease-out;
}
#sysbares-chat-popup.open {
  display: block;
}

/* Encabezado */
#sysbares-chat-header {
  background-color: #000;
  color: white;
  padding: 12px;
  font-size: 16px;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}
#sysbares-chat-close {
  background: transparent;
  color: white;
  border: none;
  font-size: 18px;
  cursor: pointer;
}

/* Cuerpo */
#sysbares-chat-body {
  padding: 15px;
}

/* Formulario de nombre/correo */
#sysbares-chat-form input,
#sysbares-chat-form button {
  width: 100%;
  margin-bottom: 10px;
  padding: 10px;
  font-size: 14px;
  border-radius: 6px;
  box-sizing: border-box;
}
#sysbares-chat-form input {
  border: 1px solid #ccc;
}
#sysbares-chat-form button {
  background: orange;
  border: none;
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}
#sysbares-chat-form button:hover {
  background: #e67e00;
}

/* Oculto */
.hidden {
  display: none;
}

/* Mensajes */
#chat-messages {
  max-height: 300px;
  overflow-y: auto;
  margin-bottom: 10px;
}
.chat-msg {
  margin-bottom: 10px;
  white-space: pre-wrap;
  opacity: 0;
  animation: typeIn 0.2s forwards;
}
.chat-msg.user {
  text-align: right;
  color: #e67e00;
}
.chat-msg.bot {
  text-align: left;
  color: #333;
}

/* Área de texto */
#input-area {
  display: flex;
  align-items: center;
}
#chat-input {
  flex-grow: 1;
  padding: 10px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 20px;
}
#chat-send, #chat-end {
  background: orange;
  color: white;
  font-weight: bold;
  border: none;
  padding: 8px 10px;
  margin-left: 5px;
  border-radius: 20px;
  cursor: pointer;
}
#chat-send:hover, #chat-end:hover {
  background: #e67e00;
}

/* Animaciones */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes typeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.chat-buttons {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.chat-option {
  background-color: #f1f1f1;
  border: 1px solid #ccc;
  padding: 8px 12px;
  border-radius: 5px;
  cursor: pointer;
  text-align: left;
  transition: background 0.3s;
}

.chat-option:hover {
  background-color: #e0e0e0;
}


