From Latin castaneus.
castañu m sg (feminine singular castaña, neuter singular castaño, masculine plural castaños, feminine plural castañes)
castañu