Hi Luis and thank you for your help,
the cost price you indicated is not linked to the specific price but to the product in general, so it is not influenced by the quantity purchased.
The solution would be to have the cost price field within the specific price rules, in this way the cost price could be differentiated based on the conditions indicated in the specific price.
I haven't found any extension useful for this purpose but it could be an interesting thing