Hello mallorcaredes,
Thank you so much for reaching out!
Dear we are sharing a documentation about variable product kindly read it carefully and use your variable attributes like size color etc according to your requirements.
https://docs.woocommerce.com/document/variable-product/
If you have any other issue let us know we are always here to provide you customer support in best possible way.
Robert Hall
Customer Support