Escorial is about 315 km from the ocean.
If you're driving to a town near the beach or coastline, you could try Comillas.
How far is Wisconsin Dells from the ocean
How far is Malibu from the ocean
How far is Memphis from the ocean
How far is Durango from the ocean
How far is Portland, ME from the ocean
How far is Gettysburg from the ocean
How far is Galveston from the ocean
How far is Las Cruces from the ocean
How far is Springfield, IL from the ocean
How far is Essaouira from the ocean