You can buy a world wide traveler's kit at your local Apple store or any Radio Shack or Best Buy. The AC receptacles vary by country in Europe but the kit will have one that will work in Spain. Apple devices are designed to operate on AC voltages that are used in North America, Europe, Australia, etc.