Hi, Cristóbal. I'm sorry to hear you're having this problem, and I hope I can assist you to find a satisfactory solution.
Go into safe mode and check if you can open CMD.
If I can, I'll leave a procedure below to check the system files:
To enter safe mode:
Follow the step by step of "From a black or a blank screen " in the link below:
https://support.microsoft.com/en-us/windows/sta...
Use System File Checker to fix possible corrupted or missing Windows files.
Run the following commands from the command prompt (as an administrator) one at a time:
dism.exe /online /cleanup-image /scanhealth
dism.exe /online /cleanup-image /restorehealth
dism.exe /online /cleanup-image /startcomponentcleanup
sfc /scannow
chkdsk /R /F /X
Reboot and check if the issue is resolved.
Please note: This is a user-to-user community forum. We are users just like you who help others. We are not employees of Microsoft.