:root {
    --footer-gold: #BF9534;
    --footer-dark: #17212b;
    --footer-dark-deep: #121a22;
    --footer-white: #ffffff;
    --footer-muted: rgba(255, 255, 255, 0.76);
}


/* ======================================================
   PIE DE PÁGINA
   ====================================================== */

.site-footer {
    width: 100%;

    background:
        linear-gradient(
            135deg,
            #17212b 0%,
            #1d2a35 48%,
            #121a22 100%
        );

    color: var(--footer-white);

    border-top: 2px solid var(--footer-gold);
}


/* ======================================================
   CONTENIDO PRINCIPAL
   ====================================================== */

.site-footer-inner {
    width: min(1200px, 86%);

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        minmax(260px, 1.5fr)
        minmax(150px, 0.7fr)
        minmax(190px, 0.8fr);

    align-items: start;

    gap: 52px;

    padding: 30px 0 24px;
}


/* ======================================================
   LOGO E IDENTIDAD
   ====================================================== */

.footer-brand {
    min-width: 0;
}


.footer-logo {
    display: inline-block;

    text-decoration: none;
}


.footer-logo img {
    display: block;

    width: 185px;
    max-width: 100%;
    height: auto;
}


.footer-description {
    max-width: 380px;

    margin: 14px 0 0;

    color: var(--footer-muted);

    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.82rem;

    line-height: 1.55;
}


/* ======================================================
   TÍTULOS
   ====================================================== */

.footer-links h2,
.footer-social h2 {
    margin: 0 0 13px;

    color: var(--footer-white);

    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.68rem;
    font-weight: 600;

    letter-spacing: 0.08em;
}


/* ======================================================
   ENLACES
   ====================================================== */

.footer-links nav {
    display: flex;
    flex-direction: column;

    align-items: flex-start;

    gap: 7px;
}


.footer-links a {
    color: var(--footer-muted);

    text-decoration: none;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.80rem;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}


.footer-links a:hover {
    color: var(--footer-gold);

    transform: translateX(3px);
}


/* ======================================================
   REDES SOCIALES
   ====================================================== */

.footer-social-icons {
    display: flex;

    align-items: center;

    gap: 10px;
}


.footer-social-link {
    width: 35px;
    height: 35px;

    box-sizing: border-box;

    display: flex;

    align-items: center;
    justify-content: center;

    border: 1px solid var(--footer-gold);
    border-radius: 50%;

    color: var(--footer-gold);

    text-decoration: none;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}


.footer-social-link:hover {
    background: var(--footer-gold);

    color: var(--footer-dark);

    transform: translateY(-2px);
}


.footer-social-link svg {
    width: 15px;
    height: 15px;

    fill: currentColor;
    stroke: currentColor;

    stroke-width: 1.5;
}


.footer-social-link svg rect,
.footer-social-link svg circle {
    fill: none;
}


.footer-social-link .instagram-dot {
    fill: currentColor;
    stroke: none;
}


.footer-social-link .youtube-play {
    fill: currentColor;
    stroke: none;
}


/* ======================================================
   AYUNTAMIENTO
   ====================================================== */

.footer-ayuntamiento {
    margin-top: 16px;
}

.footer-ayuntamiento-logo {
    display: block;

    width: 185px;
    max-width: 100%;
    height: auto;
}

/* ======================================================
   PARTE INFERIOR
   ====================================================== */

.footer-bottom {
    width: min(1200px, 86%);

    margin: 0 auto;

    padding: 12px 0 14px;

    border-top: 1px solid rgba(255, 255, 255, 0.12);

    text-align: center;
}


.footer-bottom p {
    margin: 0;

    color: rgba(255, 255, 255, 0.68);

    font-family: Arial, Helvetica, sans-serif;

    font-size: 0.70rem;
}


/* ======================================================
   RESPONSIVE
   ====================================================== */

@media (max-width: 900px) {

    .site-footer-inner {
        grid-template-columns: 1.4fr 1fr;

        gap: 32px;

        padding: 28px 0 22px;
    }


    .footer-social {
        grid-column: 1 / -1;
    }

}


@media (max-width: 620px) {

    .site-footer-inner {
        width: 88%;

        grid-template-columns: 1fr;

        gap: 26px;

        padding: 28px 0 22px;
    }


    .footer-social {
        grid-column: auto;
    }


    .footer-logo img {
        width: 175px;
    }


    .footer-description {
        max-width: none;
    }


    .footer-bottom {
        width: 88%;

        padding: 11px 0 13px;
    }

}