No, unaccompanied minors are not allowed to stay in hotels in Spain. You will be required to give the receptionist your passport details that they then send to the local police every evening. So they will see your age and ask where the accompanying adult is.