Latent functional maps: A spectral framework for representation alignment