@import url('./variables.css');

.modal-datos {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-datos.hidden {
  display: none;
}

.modal-content-datos {
  background: white;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
}

.spinner-datos {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #3498db;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}


.modal-content-datos {
  background: white;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  min-width: 350px;
  max-width: 450px;
  box-shadow: 0 10px 30px rgba(0,0,0,.2);
}

.modal-icono {
  font-size: 50px;
  margin-bottom: 20px;
}

.modal-icono.success {
  color: #27ae60;
}

.modal-icono.warning {
  color: #f39c12;
}

.modal-icono.error {
  color: #e74c3c;
}

#modalMensaje-datos {
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 25px;
}

.modal-botones {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.btnPrimario,
.btnSecundario {
  min-width: 120px;
}

.btnSecundario {
  background: #e5e7eb;
  color: #374151;
}

.btnSecundario:hover {
  background: #d1d5db;
}