#scrollTopBtn {
    display: none; /* Mostrar solo al hacer scroll */
    position: fixed; /* ✅ clave para fijarlo en toda la ventana */
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    font-size: 20px;
    border: none;
    outline: none;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    cursor: pointer;
    padding: 12px 16px;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    transition: background-color 0.3s ease;
}

#scrollTopBtn:hover {
    background-color: rgba(0, 0, 0, 0.9);
}



.logout-btn {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: background-color 0.2s ease;
}

.logout-btn:hover {
    background-color: #c82333;
}

.btn-primario {
  background: #0d6efd;
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
}

.btn-primario:hover {
  background: #0b5ed7;
}

.btn-secundario {
  background: #6c757d;
  color: #fff;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-block;
}

.btn-secundario:hover {
  background: #5c636a;
}

/* ============================= */
/* BOTÓN OPTIMIZAR */
/* ============================= */

.btn-optimizar {
  background: #ff9800;
  color: white;
  border: none;
}

.btn-optimizar:hover {
  background: #e68900;
  transform: translateY(-2px);
}

/* ============================= */
/* ESTILO BASE BOTONES */
/* ============================= */

.btn-accion {
    text-align: center;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.12);
}

/* ===============================
   BOTÓN EXCEL REAL (FUNCIONA)
   =============================== */

.btn-excel {
  background: #5f6368;
  color: white;
  border: none;
}

.btn-excel:hover {
  background: #4a4d52;
  transform: translateY(-2px);
}

