
#fabHistorialGeneral {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #0d6efd;
  color: white;
  font-size: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  box-shadow: 0 6px 12px rgba(0,0,0,0.25);
  z-index: 3000;
  transition: transform 0.3s, background 0.3s;
}
#fabHistorialGeneral:hover {
  background: #0b5ed7;
  transform: scale(1.1);
}

#capaHistorialGeneral {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 2999;
  display: none;
  align-items: center;
  justify-content: center;
}
#capaHistorialGeneral.open {
  display: flex;
}

.historial-overlay {
  background: white;
  width: 90%;
  max-width: 900px;
  max-height: 90%;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: fadeIn 0.3s ease-out;
}
.historial-overlay header {
  background: #0d6efd;
  color: white;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.historial-overlay .contenido-historial {
  padding: 15px;
  overflow-y: auto;
  background: #f8f9fa;
  flex-grow: 1;
}
.cerrar-btn {
  background: none;
  border: none;
  color: white;
  font-size: 1.3em;
}

@keyframes fadeIn {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
