Twilight Duration at Madrid
At Madrid's latitude of 40.4°, twilight duration varies dramatically by season. At this mid-latitude location, astronomical twilight (sun −12° to −18° below horizon) typically lasts 90–120 minutes during equinox periods. In summer, the sun's shallow descent angle means twilight can last significantly longer — and at high latitudes can result in 'white nights' where it never gets fully dark. This seasonal variation is what makes Madrid's dark-sky window so different month to month.
NOAA Twilight Reference