body {
  font-family: 'Nunito', sans-serif;
}
.chat-container {
  max-width: 800px;
  margin: 30px auto;
  background: #fff;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.1);
}

.chat-container h2 {
  margin-bottom: 15px;
  color: #2e3d49;
}

#mensajes {
  height: 350px;
  overflow-y: auto;
  border: 1px solid #ccc;
  padding: 15px;
  background: #f9f9f9;
  border-radius: 8px;
  margin-bottom: 20px;
}

.mensaje-usuario,
.mensaje-lia {
  margin-bottom: 12px;
}

.mensaje-usuario {
  text-align: right;
  color: #34495e;
}

.mensaje-lia {
  text-align: left;
  color: #4a6572;
}

#mensajeForm {
  display: flex;
  gap: 10px;
}

#mensajeForm input {
  flex: 1;
  padding: 12px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 14px;
}

#mensajeForm button {
  padding: 12px 20px;
  background: #4a6572;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
}

#mensajeForm button:hover {
  background: #3b505c;
}

.acciones {
  margin-top: 20px;
  text-align: center;
}

.acciones button {
  margin: 5px;
  padding: 8px 16px;
  background-color: #ccc;
  color: #666;
  border: none;
  border-radius: 6px;
  cursor: not-allowed;
}

.acciones button.activo {
  background-color: #4a6572;
  color: white;
  cursor: pointer;
}

.acciones button.activo:hover {
  background-color: #3b505c;
}

.botones-acceso {
  margin-top: 25px;
  text-align: center;
}

.botones-acceso a {
  margin: 0 10px;
  padding: 10px 18px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 6px;
  font-size: 14px;
  display: inline-block;
}

.btn-login {
  background-color: #3b78c1;
  color: white;
}

.btn-registro {
  background-color: #53a653;
  color: white;
}

.btn-login:hover,
.btn-registro:hover {
  opacity: 0.9;
}

.audio-icon {
  display: inline-block;
  margin-left: 10px;
  vertical-align: middle;
  animation: sonar 1s infinite ease-in-out;
  font-size: 20px;
  color: #ff8a65;
}

@keyframes sonar {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.5; }
  100% { transform: scale(1); opacity: 1; }
}

