/* --- RESET & BASICS --- */
:root {
    --gob-red: #D93043; /* Standard Gov Red of that era */
    --gob-green: #008761; /* Standard Gov Green */
    --gob-dark: #333333; /* Dark header background */
    --gob-gray: #545454; /* Text gray */
    --gob-light-gray: #f2f2f2; /* Background */
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Open Sans', sans-serif;
    background-color: var(--gob-light-gray);
    color: var(--gob-gray);
    line-height: 1.6;
}

/* --- OFFICIAL HEADER STRIP --- */
/* Mimics the top bar seen on almost all official .gob.mx sites 2012-2018 */
header {
    background-color: var(--gob-dark);
    padding: 15px 0;
    border-bottom: 4px solid var(--gob-red); /* Sometimes tricolor, often just a red accent */
    color: white;
    text-align: left;
}

header h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    margin: 0;
    padding-left: 5%; /* Aligns with the standard grid */
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Add a pseudo-element to create the tricolor 'sash' effect often seen */
header::after {
    content: "";
    display: block;
    height: 4px;
    width: 100%;
    /* The famous Green/White/Red gradient */
    background: linear-gradient(90deg, var(--gob-green) 33%, white 33%, white 66%, var(--gob-red) 66%);
    position: absolute;
    top: 0;
    left: 0;
}

/* --- MAIN CONTAINER --- */
/* The government sites usually used a centered 'container' look */
main {
    max-width: 960px; /* Standard bootstrap-style width from that era */
    margin: 30px auto;
    background: white;
    padding: 40px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-top: 5px solid var(--gob-gray); /* Decorative top border */
}

/* --- TYPOGRAPHY --- */
h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
    color: var(--gob-dark);
}

h1 {
    font-size: 2.2rem;
    border-bottom: 1px solid #ddd;
    padding-bottom: 15px;
    margin-bottom: 25px;
}

h2 {
    font-size: 1.5rem;
    margin-top: 30px;
    color: var(--gob-red); /* Using the institutional red for subheads */
}

p {
    margin-bottom: 15px;
    font-size: 1rem;
}

/* --- LINKS --- */
a {
    color: var(--gob-red);
    text-decoration: none;
    font-weight: 600;
}

a:hover {
    text-decoration: underline;
    color: var(--gob-dark);
}

/* --- LISTS --- */
/* Clean, bureaucratic list styling */
ul {
    list-style-type: none; /* Remove default bullets */
    padding-left: 0;
}

ul li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    position: relative;
    padding-left: 20px;
}

/* Custom bullet to look official */
ul li::before {
    content: "•";
    color: var(--gob-red);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

/* --- FOOTER --- */
/* The massive dark footer was a staple of that era */
footer {
    background-color: var(--gob-dark);
    color: white;
    padding: 40px 10%;
    font-size: 0.9rem;
    margin-top: 50px;
    border-top: 4px solid var(--gob-green); /* Accent color */
}

footer p {
    opacity: 0.8;
}

footer a {
    color: white;
    font-weight: 400;
}

/* --- MAP LINK BUTTON --- */
/* Making the link look like a 'Tramite' button */
a[href="mapa.html"] {
    display: inline-block;
    background-color: var(--gob-red);
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    margin-top: 20px;
    transition: background 0.3s ease;
}

a[href="mapa.html"]:hover {
    background-color: #b02434;
    text-decoration: none;
}