Make hay while the sun shines
aθ eno mjentɾas el sol βɾiʎa
In Spanish Haz heno mientras el sol brilla
This idiom is widely understood in Spanish-speaking cultures and refers to taking advantage of favorable circumstances.
Example
"Si tienes la oportunidad de invertir, haz heno mientras el sol brilla."