/* Importar la tipografía Nunito desde Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600&display=swap');

/* Estilo global */
body {
  font-family: 'Nunito', sans-serif;
  background-color: #f4f4f9;
  margin: 0;
  padding: 0;
}

/* Ícono flotante azul */
#chat-icon {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background-color: #2196F3; /* Azul principal */
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9999;
}

#chat-icon svg {
  width: 30px;
  height: 30px;
  fill: #fff; /* Ícono en blanco */
}

/* Contenedor del chat (oculto inicialmente) */
#chat-container {
  display: none;
  width: 320px;
  position: fixed;
  bottom: 90px; /* un poco más arriba para no tapar el icono */
  right: 20px;
  background: #E3F2FD; /* Fondo azul muy claro */
  border-radius: 10px;
  padding: 10px;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
  z-index: 9998;
}

#chat-container h3 {
  margin: 0 0 10px 0;
  color: #0D47A1; /* Azul oscuro */
  text-align: center;
  font-weight: 600;
}

#chat-box {
  height: 250px;
  overflow-y: auto;
  border: 1px solid #ddd;
  padding: 10px;
  background: #fff;
  border-radius: 5px;
}

.message {
  padding: 8px;
  margin: 6px 0;
  border-radius: 5px;
  line-height: 1.4;
  white-space: pre-line;
}

/* Mensaje del bot: azul claro */
.bot-message {
  background: #7bbaee;
  color: #000000;
}

/* Mensaje del usuario: azul un poco más fuerte */
.user-message {
  background: #64B5F6;
  color: #fff;
  text-align: right;
}

.button-container {
  margin-top: 10px;
}

.button {
  width: 100%;
  padding: 10px;
  background-color: #2196F3; /* Azul principal */
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin: 5px 0;
  font-weight: 600;
  text-align: left; /* Para que el punto quede a la izquierda */
  display: block;
}

.button:hover {
  background-color: #1976D2; /* Azul más oscuro al pasar el mouse */
}
