body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  position: relative;
}

.chat-button {
  position: fixed;
  bottom: 110px;
  right: 20px;
  width: 60px;
  height: 60px;
  background-color: #5a6cae;
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 2147483646 !important; /* just below container */
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  line-height: 1;
  padding: 0;
}

.chat-button i {
  font-size: 24px;
}

.chat-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  max-width: 350px;
  padding: 20px;
  border-radius: 10px;
  background-color: #f9f9f9;
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 2147483647 !important; /* máximo valor posible */
  display: none;
}

.messages {
  overflow-y: auto;
  max-height: 400px;
  padding: 10px;
}

.message {
  display: flex;
  align-items: flex-start;
  margin-bottom: 10px;
}

.avatar-container {
  margin-right: 10px;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.message-content {
  background-color: #ffffff;
  padding: 15px;
  border-radius: 15px;
  max-width: 80%;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
}

.message.sent .message-content {
  background-color: #006699;
  color: white;
  align-self: flex-end;
  margin-left: auto;
}

.input-box {
  display: flex;
  margin-top: 10px;
}

.input-box input {
  flex: 1;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 16px;
  margin-right: 10px;
}

.input-box button {
  background-color: #ffffff;
  color: #006699;
  border: 1px solid #006699;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
}

.input-box button:hover {
  background-color: #f2f2f2;
}

.options {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
}

.options button {
  margin-bottom: 10px;
  background-color: #ffffff;
  color: #006699;
  border: 1px solid #006699;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.options button:last-child {
  margin-bottom: 0;
}

.options button:hover {
  background-color: #f2f2f2;
}

.disabled {
  pointer-events: none;
  opacity: 0.5;
  cursor: not-allowed;
}

.disabled-cursor {
  cursor: not-allowed;
}

/* Estilos móviles */
@media (max-width: 420px) {
  .chat-button {
    width: 48px;
    height: 48px;
  }

  .chat-button i {
    font-size: 20px;
  }

  .chat-container {
    max-width: 100%;
    right: 10px;
    left: 10px;
    border-radius: 10px;
  }
}
