I am doing the same thing next month. I arrive JFK-MAD-AGP at 10 and I am on the 11:30 bus to Granada. It is the last one directly from the airport until later in the afternoon. I will be happy if everything goes smoothly and I am stuck waiting in AGP for my bus for a bit.