This work aims, on the one hand, to detail the differences in electoral behavior depending on the habitat and, on the other, to investigate the possible causes of these. To do this, we study whether variables that have been recurrent in various studies on electoral behavior, such as age, gender, social class, educational level, nationalist sentiment or ideology, can account for the observed differences. Along with them, the population of the municipalities...