#loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.85);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(4px);
}
.loader-spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #f3f3f3;
  border-top: 5px solid #001c55;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
.loader-text {
  margin-top: 15px;
  color: #001c55;
  font-weight: bold;
  font-family: sans-serif;
}

/*VENTANA DE CONFIRMACIÓN*/

/* Fondo oscuro detrás del modal */
#offline-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 11000;
  display: flex;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(2px);
}
/* La caja del modal */
.offline-modal {
  background: white;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  max-width: 400px;
  width: 90%;
  text-align: center;
  border-top: 5px solid #001c55;
  animation: modalShow 0.3s ease-out;
}
@keyframes modalShow {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.offline-modal h4 {
  color: #001c55;
  margin-bottom: 15px;
  font-weight: bold;
}
.offline-modal p {
  color: #666;
  margin-bottom: 20px;
  font-size: 14px;
}
.offline-modal-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
}

/* Botones del modal */
.btn-modal {
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-weight: bold;
  transition: 0.2s;
}
.btn-modal-confirm {
  background: #001c55;
  color: white;
}
.btn-modal-confirm:hover {
  background: #0033a0;
}
.btn-modal-cancel {
  background: #eee;
  color: #666;
}
.btn-modal-cancel:hover {
  background: #ddd;
}

