.site-footer {
    margin-top: 40px;
    backdrop-filter: blur(10px);
    background:
        linear-gradient(0deg,
            color-mix(in oklab, var(--blue) 16%, transparent) 0%,
            transparent 100%),
        var(--glass);
    /* blanco arriba, color hacia abajo */
    color: var(--ink);
    border-bottom: 1px solid color-mix(in oklab, var(--blue) 12%, transparent);
}

/* Layout */
.footer-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 16px;
    padding: 24px 0;
    align-items: start;
}

.footer-brand .brand {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.footer-brand .brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .12));
}

.footer-brand .brand-text {
    font-weight: 800;
    letter-spacing: .2px;
}

.footer-address {
    margin-top: 8px;
    font-style: normal;
    color: var(--ink-2);
}

.footer-address .chip {
    display: inline-grid;
    grid-auto-flow: column;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 10px;
    margin-top: 8px;
    margin-right: 6px;
    background: linear-gradient(180deg,
            var(--bg),
            color-mix(in oklab, var(--bg-2) 60%, white 40%));
    box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--green) 20%, transparent);
}

.footer-nav {
    align-self: start;
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-links>li>a {
    display: inline-block;
    padding: 8px 10px;
    border-radius: 10px;
    font-weight: 700;
}

.footer-links>li>a:hover {
    background: color-mix(in oklab, var(--blue) 10%, transparent);
}

.footer-cta {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    flex-direction: column;
    width: fit-content;
}

.footer-social {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
}

.footer-social .social {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--bg);
    box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--blue) 12%, transparent);
}

.footer-social .social:hover {
    background: color-mix(in oklab, var(--bg-2) 60%, white 40%);
}

.footer-map {
    width: 100%;
}

.footer-map iframe {
    width: 100%;
}

.footer-meta {
    border-top: 1px solid color-mix(in oklab, var(--blue) 12%, transparent);
    background: var(--bg);
}

.meta-row {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
}

.meta-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.meta-links a {
    opacity: .9;
}

.meta-links a:hover {
    opacity: 1;
}

/* Logos */
.logos_gobierno .logos-container {
    max-width: 1440px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    margin: 0 auto;
}

.logos_gobierno img {
    max-width: 240px;
}

.footer-cta .cta {
    background: linear-gradient(180deg, var(--blue), var(--green));
    width: 100%;
}

/* =========================
   Media Queries (grouped)
   Tablet + Mobile layout only
   ========================= */

/* Tablet */
@media (max-width: 1080px) {
    .footer-grid {
        grid-template-columns: 1.5fr 1fr auto;
        grid-auto-rows: auto;
    }
}

/* Tablet / Small laptop */
@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .footer-cta,
    .footer-social {
        justify-content: flex-start;
    }

    /* Added (layout only) */
    .meta-row {
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .footer-cta{
        flex-direction: row;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .footer-links {
        gap: 8px;
    }

    .footer-links>li>a {
        padding: 6px 8px;
    }

    .footer-address .chip {
        width: 100%;
    }

    .footer-cta {
        width: 100%;
        flex-direction: column;
    }

    .logos_gobierno .logos-container {
        flex-direction: column;
        padding-top: 16px;
    }

    .meta-row {
        flex-direction: column;
    }
}