RESUMEN
Occurrence patterns are partly shaped by the affinity of species with habitat conditions. For winged organisms, flight-related attributes are vital for ecological performance. However, due to the different reproductive roles of each sex, we expect divergence in flight energy budget, and consequently different selection responses between sexes. We used tropical frugivorous butterflies as models to investigate coevolution between flight morphology, sex dimorphism and vertical stratification. We studied 94 species of Amazonian fruit-feeding butterflies sampled in seven sites across 3341 ha. We used wing-thorax ratio as a proxy for flight capacity and hierarchical Bayesian modelling to estimate stratum preference. We detected a strong phylogenetic signal in wing-thorax ratio in both sexes. Stouter fast-flying species preferred the canopy, whereas more slender slow-flying species preferred the understorey. However, this relationship was stronger in females than in males, suggesting that female phenotype associates more intimately with habitat conditions. Within species, males were stouter than females and sexual dimorphism was sharper in understorey species. Because trait-habitat relationships were independent from phylogeny, the matching between flight morphology and stratum preference is more likely to reflect adaptive radiation than shared ancestry. This study sheds light on the impact of flight and sexual dimorphism on the evolution and ecological adaptation of flying organisms.