With internal links to different sections of the web, when one is clicked, the url becomes www.web.com/#section-clicked
I would like that through the .htaccess file, that URL can be rewritten, turning that url into www.web.com/sección-clickada
And in turn, that if the web is accessed through it, it will redirect you to where the content really is, which is www.web.com/#seccion-clickada
You can't, #hashes are not interpreted by the server, only by the browser.
Your htaccess will never be able to access the hash.
The only solution I can think of is to do it the other way around, with a browser language like JS
something like this: