/* ==========================================================
   FOOTER BC&B - RECONSTRUCCIÓN
   Compacto en desktop y realmente responsive en mobile.
   ========================================================== */

.site-footer,
.site-footer * {
    box-sizing: border-box;
}

.site-footer {
    width: 100%;
    margin: 0;
    padding: 0;

    background: #11274B;
    color: #ffffff;

    font-family: "Graphik", Arial, Helvetica, sans-serif;

    border: 0;
    box-shadow: none;
}

.site-footer__inner {
    width: min(92%, 1500px);
    margin: 0 auto;

    display: grid;
    grid-template-columns:
        minmax(190px, .95fr)
        minmax(280px, 1.35fr)
        minmax(220px, 1fr)
        minmax(190px, .85fr);
    gap: clamp(28px, 3.5vw, 64px);

    padding:
        clamp(34px, 3.2vw, 52px)
        0
        clamp(30px, 2.8vw, 46px);
}

.site-footer__column {
    min-width: 0;
    margin: 0;
    padding: 0;
}

.site-footer__title {
    margin: 0 0 18px;
    padding: 0;

    color: #ffffff;

    font-family: "Graphik", Arial, Helvetica, sans-serif;
    font-size: .95rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: .02em;
}

.site-footer__bcb-logo {
    display: block;

    width: min(175px, 100%);
    height: auto;

    margin: 0 0 22px;
}

.site-footer__label {
    margin: 0 0 10px;

    color: rgba(255, 255, 255, .88);

    font-size: .9rem;
    line-height: 1.45;
}

.site-footer__brands,
.site-footer__links {
    margin: 0;
    padding: 0;

    list-style: none;
}

.site-footer__brands {
    padding-left: 17px;

    list-style: disc;

    color: rgba(255, 255, 255, .9);

    font-size: .88rem;
    line-height: 1.65;
}

.site-footer__brands li {
    margin: 0;
    padding: 0;
}


/* ==========================================================
   CONTACTO
   ========================================================== */

.site-footer__offices {
    display: grid;
    gap: 20px;
}

.site-footer__office {
    display: grid;
    gap: 3px;

    margin: 0;

    color: rgba(255, 255, 255, .88);

    font-size: .88rem;
    font-style: normal;
    line-height: 1.48;
}

.site-footer__office strong {
    margin-bottom: 2px;

    color: #ffffff;

    font-weight: 500;
}

.site-footer__office span {
    max-width: 330px;
}

.site-footer__office a {
    width: fit-content;

    color: rgba(255, 255, 255, .88);

    text-decoration: none;

    transition: color .18s ease;
}

.site-footer__office a:hover,
.site-footer__office a:focus-visible {
    color: #ffffff;
    text-decoration: underline;
}


/* ==========================================================
   SERVICIOS
   ========================================================== */

.site-footer__links {
    display: grid;
    gap: 6px;
}

.site-footer__links a {
    display: inline;

    color: rgba(255, 255, 255, .88);

    font-size: .88rem;
    line-height: 1.4;

    text-decoration: none;

    transition: color .18s ease;
}

.site-footer__links a:hover,
.site-footer__links a:focus-visible {
    color: #ffffff;
    text-decoration: underline;
}


/* ==========================================================
   REDES / VELAE
   ========================================================== */

.site-footer__social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;

    margin: 0 0 24px;
}

.site-footer__social-links a {
    width: 31px;
    height: 31px;

    display: grid;
    place-items: center;

    color: #ffffff;

    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 50%;

    font-size: .83rem;

    text-decoration: none;

    transition:
        background-color .18s ease,
        color .18s ease;
}

.site-footer__social-links a:hover,
.site-footer__social-links a:focus-visible {
    background: #ffffff;
    color: #11274B;
    text-decoration: none;
}

.site-footer__velae {
    display: grid;
    gap: 10px;

    justify-items: start;
}

.site-footer__velae-logo {
    display: block;

    width: min(175px, 100%);
    height: auto;
}

.site-footer__velae strong {
    color: #ffffff;

    font-size: .78rem;
    font-weight: 500;
    line-height: 1.3;
}


/* ==========================================================
   FRANJA LEGAL
   ========================================================== */

.site-footer__legal {
    width: 100%;

    background: #606265;
    color: #ffffff;

    font-family: "Graphik", Arial, Helvetica, sans-serif;
}

.site-footer__legal-inner {
    width: min(92%, 1500px);
    min-height: 38px;

    margin: 0 auto;

    display: flex;
    align-items: center;
    gap: 6px;

    padding: 8px 0;

    font-size: .75rem;
    line-height: 1.3;
}

.site-footer__legal a {
    color: #ffffff;
    text-decoration: none;
}

.site-footer__legal a:hover,
.site-footer__legal a:focus-visible {
    text-decoration: underline;
}


/* ==========================================================
   TABLET
   ========================================================== */

@media (max-width: 1100px) {

    .site-footer__inner {
        width: min(90%, 900px);

        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 34px 55px;

        padding-block: 38px;
    }

    .site-footer__legal-inner {
        width: min(90%, 900px);
    }
}


/* ==========================================================
   MOBILE
   ----------------------------------------------------------
   Evita que el footer se convierta en "otra página".
   Marca + contacto arriba; servicios compactos; redes al final.
   ========================================================== */

@media (max-width: 767.98px) {

    .site-footer__inner {
        width: 100%;

        display: grid;
        grid-template-columns: 1fr;

        gap: 0;

        padding: 0 24px;
    }

    .site-footer__column {
        padding: 26px 0;

        border-bottom: 1px solid rgba(255, 255, 255, .13);
    }

    .site-footer__column:last-child {
        border-bottom: 0;
    }

    .site-footer__title {
        margin-bottom: 14px;

        font-size: .88rem;
    }


    /* Marca mucho más compacta */

    .site-footer__brand {
        padding-top: 30px;
        padding-bottom: 22px;
    }

    .site-footer__bcb-logo {
        width: 145px;
        margin-bottom: 16px;
    }

    .site-footer__label {
        margin-bottom: 8px;

        font-size: .84rem;
    }

    .site-footer__brands {
        /*
           En mobile las marcas pasan a una línea flexible
           para evitar 5 renglones verticales innecesarios.
        */
        display: flex;
        flex-wrap: wrap;
        gap: 5px 14px;

        padding: 0;

        list-style: none;

        font-size: .8rem;
        line-height: 1.4;
    }

    .site-footer__brands li::before {
        content: "•";
        margin-right: 6px;
        opacity: .65;
    }


    /* Contacto: dos oficinas en columnas cuando cabe */

    .site-footer__offices {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px;
    }

    .site-footer__office {
        font-size: .82rem;
        line-height: 1.5;
    }


    /* Servicios: 2 columnas, no 7 renglones gigantes */

    .site-footer__links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px 20px;
    }

    .site-footer__links a {
        font-size: .82rem;
        line-height: 1.35;
    }


    /* Redes + Velae en una sola franja */

    .site-footer__social {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "title title"
            "social velae";
        align-items: center;
        gap: 10px 24px;

        padding-bottom: 28px;
    }

    .site-footer__social .site-footer__title {
        grid-area: title;
    }

    .site-footer__social-links {
        grid-area: social;

        margin: 0;
    }

    .site-footer__social-links a {
        width: 30px;
        height: 30px;
    }

    .site-footer__velae {
        grid-area: velae;

        gap: 5px;

        justify-items: end;
    }

    .site-footer__velae-logo {
        width: 125px;
    }

    .site-footer__velae strong {
        font-size: .67rem;
    }


    /* Legal */

    .site-footer__legal-inner {
        width: 100%;

        min-height: 34px;

        padding: 8px 24px;

        justify-content: center;
        flex-wrap: wrap;

        text-align: center;

        font-size: .68rem;
    }
}


/* ==========================================================
   MOBILE ANGOSTO
   ========================================================== */

@media (max-width: 479.98px) {

    .site-footer__inner {
        padding-inline: 20px;
    }

    .site-footer__column {
        padding-block: 22px;
    }

    .site-footer__brand {
        padding-top: 26px;
    }

    /*
       En ~360-430 px dos direcciones completas lado a lado
       ya quedan demasiado angostas. Se apilan, pero compactas.
    */
    .site-footer__offices {
        grid-template-columns: 1fr;
        gap: 17px;
    }

    .site-footer__office span {
        max-width: 340px;
    }

    .site-footer__links {
        gap: 8px 16px;
    }

    .site-footer__social {
        grid-template-columns: 1fr;
        grid-template-areas:
            "title"
            "social"
            "velae";
        gap: 14px;
    }

    .site-footer__velae {
        justify-items: start;

        margin-top: 4px;
    }

    .site-footer__velae-logo {
        width: 120px;
    }

    .site-footer__legal-inner {
        padding-inline: 20px;
    }
}


/* ==========================================================
   MUY PEQUEÑO
   ========================================================== */

@media (max-width: 359.98px) {

    .site-footer__links {
        grid-template-columns: 1fr;
    }
}


/* ==========================================================
   ACCESIBILIDAD
   ========================================================== */

@media (prefers-reduced-motion: reduce) {

    .site-footer a {
        transition: none;
    }
}
