The ALHAMBRA Survey: Evolution of Galaxy Spectral Segregation