Latent Functional Maps: a spectral framework for representation alignment