Answer:
Okay so the answer can vary because it is based on what you said your hypothesis was, so there really isn't an incorrect answer.
Your hypothesis was correct. In Idaho the fossil was in layer d, meaning that during this time there were dinosaurs in this area and most likely in other areas such as Spain as well. Based on how sediments work, which is to say that the oldest is on the bottom and youngest on the top, dinosaurs who died in different areas should have their fossils in roughly the same area as each other (so around layer k in spain). Levels of sediment wouldn't be drastically different in different areas. Dinosaurs didn't exist far before layer d and k. We can tell this because there are no fossils in the lower layers, which is the sediment that collect before the dinosaurs in layer d died.
Let me know if this makes sense, if it answers your question, and if there is something that I need to clarify