# MIME Types correctos para que los módulos ES funcionen
AddType application/javascript .js .mjs
AddType text/css .css
AddType image/svg+xml .svg
AddType application/json .json
AddType application/wasm .wasm
AddType image/webp .webp
AddType font/woff2 .woff2
AddType font/woff .woff

# SPA: redirigir todo a index.html (excepto archivos que existen)
Options -MultiViews
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^ index.html [L]