/* ---------- MODAL OVERLAY ---------- */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none; /* Bloquea interacción cuando está oculto */
  transition: opacity 0.3s ease;
}

/* ---------- ESTADO ACTIVO ---------- */
.modal.show {
  opacity: 1;
  pointer-events: all; /* Permite interacción */
}

/* Ocultar visualmente */
.hidden {
  display: none;
}

/* ---------- CONTENIDO DEL MODAL ---------- */
.modal-content {
  background: #fff;
  padding: 25px 35px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  max-width: 420px;
  width: 90%;
  text-align: center;

  /* Animación inicial */
  transform: scale(0.8) translateY(-30px);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Cuando el modal está visible (animación de entrada) */
.modal.show .modal-content {
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* ---------- BLOQUEAR SCROLL CUANDO EL MODAL ESTÁ ACTIVO ---------- */
body.modal-open {
  overflow: hidden;
}

/* ---------- ESTILOS DEL TEXTO ---------- */
#nombreUsuarioModal {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 5px 0;
  display: inline-block;
}

#boniUsuarioModal {
  margin-left: 10px;
  font-weight: 700;
  color: #4CAF50;
}

/* ---------- BOTONES ---------- */
.botonesModal {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 15px;
}

.botonesModal button {
  padding: 10px 25px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.botonesModal button:hover {
  transform: scale(1.05);
}

/* Botón Sí */
#btnSi {
  background-color: #4CAF50;
  color: white;
}

#btnSi:hover {
  background-color: #45a049;
}

/* Botón No */
#btnNo {
  background-color: #f44336;
  color: white;
}

#btnNo:hover {
  background-color: #d32f2f;
}


