Help with freestyle?
After a couple of attempts, I figured it out.

In View Layer > Freestyle Line Set > Selection By. You must check "Visibility".
This will enable the Visibility: Visible.

See the image below.