/* ── Footer layout (footer.php) ───────────────────────────────────────────────
   Two parts restyled after the design kit's footer (js/components/footer.js):

     .evas-footer-zones   the zone directory: one card per zone (Zona Sur …
                          Edo Mex) with its links in two columns. Was one long
                          run of underlined links separated by "|".
     .evas-footer-bottom  full-width bottom block: logo + legal small print,
                          "Enlaces rápidos" (the site map) and the "no a la
                          trata" pledge, then a gradient divider and the
                          copyright line.

   Same links, text and addresses as before; only the markup around them and
   their order changed (the site map and pledge moved below the SEO text).
   style.css still sets the footer background (#0a0a1a = --brand-footer) and
   the base footer link colour; the rules here are more specific.
   ──────────────────────────────────────────────────────────────────────────── */

/* ── Zone directory ───────────────────────────────────────────────────────── */

.evas-footer-zones {
    margin: 8px 0 40px;
    text-align: left;
}

footer .evas-footer-zones__intro {
    margin: 0 0 18px;
    color: var(--brand-muted);
    font-size: 15px;
}

footer .evas-footer-zones__intro strong {
    color: #fff;
}

.evas-footer-zones__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.evas-footer-zone {
    padding: 18px 20px;
    border: 1px solid rgb(var(--brand-purpleL-rgb) / .14);
    border-radius: 16px;
    background: rgb(var(--brand-card-rgb) / .6);
}

footer .evas-footer-zone__title {
    margin: 0 0 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgb(var(--brand-purpleL-rgb) / .15);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

footer .evas-footer-zone__title strong {
    color: var(--brand-purpleL);
    font-weight: 600;
}

.evas-footer-zone ul {
    margin: 0;
    padding: 0;
    list-style: none;
    columns: 2;
    column-gap: 16px;
}

.evas-footer-zone li {
    break-inside: avoid;
    margin: 0 0 7px;
    line-height: 1.35;
}

footer .evas-footer-zone a {
    color: var(--brand-muted);
    font-size: 13px;
    text-decoration: none;
    transition: color .2s ease;
}

footer .evas-footer-zone a:hover,
footer .evas-footer-zone a:focus-visible {
    color: var(--brand-purpleL);
}

/* ── Bottom block ─────────────────────────────────────────────────────────── */

/* Full width: footer is .container-fluid (15px side padding) with 30px bottom
   padding (style.css). */
.evas-footer-bottom {
    margin: 48px -15px -30px;
    padding: 44px 32px 0;
    border-top: 1px solid rgb(var(--brand-purpleL-rgb) / .12);
    background: var(--brand-footer);
}

.evas-footer-bottom__grid {
    display: grid;
    grid-template-columns: 1.2fr 1.4fr 1fr;
    gap: 48px;
    max-width: 1240px;
    margin: 0 auto;
    padding-bottom: 36px;
    text-align: left;
}

/* style.css gives the logo link a 20px margin on every side. */
footer .evas-footer-brand .footer-logo {
    display: inline-block;
    margin: 0;
}

.evas-footer-brand .footer-logo svg {
    display: block;
    width: 150px;
    height: auto;
}

footer .evas-footer-legal {
    max-width: 340px;
    margin: 14px 0 0;
    color: #64748b;
    font-size: 11px;
    line-height: 1.6;
}

footer .evas-footer-legal b {
    color: var(--brand-faint);
    font-weight: 600;
}

footer .evas-footer-heading {
    margin: 0 0 14px;
    color: var(--brand-text);
    font-size: 14px;
    font-weight: 700;
}

/* Site map: two columns; style.css draws a 157px white rule under each item
   (.site-map li:before), which made the uneven underlines. */
.evas-footer-links .site-map {
    margin: 0;
    padding: 0;
    columns: 2;
    column-gap: 24px;
}

.evas-footer-links .site-map li {
    break-inside: avoid;
    margin: 0 0 9px;
    line-height: 1.35;
}

.evas-footer-links .site-map li:before {
    display: none;
}

footer .evas-footer-links .site-map li a {
    color: var(--brand-faint);
    font-size: 13px;
    text-decoration: underline;
    text-decoration-color: rgb(var(--brand-faint-rgb) / .35);
    text-underline-offset: 3px;
}

footer .evas-footer-links .site-map li a:hover {
    color: var(--brand-purpleL);
}

footer .evas-footer-pledge {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    padding: 14px 16px;
    border: 1px solid rgb(var(--brand-purpleL-rgb) / .2);
    border-radius: 14px;
    background: rgb(var(--brand-purple-rgb) / .08);
    color: var(--brand-text);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .3px;
    line-height: 1.4;
}

.evas-footer-pledge svg {
    flex-shrink: 0;
    margin-top: 1px;
    color: var(--brand-purpleL);
}

.evas-footer-divider {
    height: 1px;
    background: linear-gradient(90deg,
        rgb(var(--brand-purpleL-rgb) / 0),
        rgb(var(--brand-purpleL-rgb) / .35),
        rgb(var(--brand-purpleL-rgb) / 0));
}

footer .evas-footer-copy {
    margin: 0;
    padding: 20px 0 24px;
    color: #64748b;
    font-size: 10px;
    letter-spacing: 1px;
    text-align: center;
    text-transform: uppercase;
}

/* ── Smaller screens ──────────────────────────────────────────────────────── */

@media (max-width: 991.98px) {
    .evas-footer-bottom__grid {
        grid-template-columns: 1fr 1fr;
    }

    .evas-footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 575.98px) {
    .evas-footer-zones__grid {
        grid-template-columns: 1fr;
    }

    .evas-footer-zone {
        padding: 16px;
    }

    .evas-footer-zone ul {
        column-gap: 12px;
    }

    footer .evas-footer-zone a {
        font-size: 12px;
    }

    .evas-footer-bottom {
        padding: 32px 20px 0;
    }

    .evas-footer-bottom__grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}
