#chat-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
}

#chat-button {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 5px;
  cursor: pointer;
}

#chat-box {
  display: none;
  width: 300px;
  background: white;
  border-radius: 10px;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
  position: absolute;
  bottom: 50px;
  right: 0;
}

#chat-header {
  background: #007bff;
  color: white;
  padding: 10px;
  font-weight: bold;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;

  display: flex;
  justify-content: space-between;
  align-items: center;
}


.chat-controls {
  display: flex;
  gap: 4px; /* espacio entre botones */
}


.chat-controls button {
  background: transparent;
  border: none;
  font-size: 16px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.chat-controls button:hover {
  color: #ffcccc; /* efecto hover */
}

#chat-messages {
  height: 200px;
  overflow-y: auto;
  padding: 10px;
  font-family: "Open Sans", sans-serif;
  font-size: 14px;
  color: #333;
}

.bot-message {
  background-color: #e0f0ff;
  border-radius: 10px;
  padding: 8px 12px;
  margin-bottom: 10px;
  width: fit-content;
  max-width: 90%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

#chat-options button {
  width: 100%;
  background: #007bff;
  color: white;
  border: none;
  padding: 8px;
  margin: 5px 0;
  border-radius: 5px;
  cursor: pointer;
}

#chat-options {
  max-height: 200px;
  /* Altura limitada para scroll */
  overflow-y: auto;
  /* Scroll solo en opciones */
  padding: 10px;
  box-sizing: border-box;
}

#chat-close {
  color: #ff0000;              /* gris suave cuando está inactivo */
}


#chat-options button:hover {
  background-color: #0056b3; /* azul más oscuro */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25); /* sombra */
  transform: scale(1.03); /* leve aumento */
}

#chat-button:hover {
  background-color: #0056b3; /* tono más oscuro en hover */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); /* sombra */
  transform: scale(1.08); /* aumenta tamaño */
}
#chat-minimize:hover {
  background: #838383;      /* rojo Windows */
  color: rgb(255, 255, 255);             /* la X en blanco */
}
#chat-close:hover {
  background: #e81123;      /* rojo Windows */
  color: white;             /* la X en blanco */
}


@media (max-width: 768px) {
  #chat-options {
    max-height: 45vh;
    overflow-y: auto;
  }

  #chat-messages {
    max-height: 30vh;
    overflow-y: auto;
  }
}
