Hi Fernando, though you have WordPress files inside "example.com/folder", you can set your domain to be "example.com". I think it doesn't matter where you installed WordPress as long as your address is "example.com". And of course, you must be doing your SEO on "example.com".
I think it is more of a WordPress installation issue than an SEO one. You can read more about it here - http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory. I hope this helps.