/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
    background-color: #ffffff;
    width: 100%;
    clear: both;               /* Rompe cualquier float de las noticias */
    margin-top: 50px;          /* Separa el footer del contenido */
    padding: 40px 0 20px;
    border-top: 1px solid #e9ecef;
}

/* Contenedor principal */
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 25px;
    display: flex;
    flex-direction: column;
}

/* ==========================================================================
   LOGO Y REDES SOCIALES
   ========================================================================== */

.footer-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding-bottom: 30px;
    border-bottom: 1px solid #f1f3f5;
    width: 100%;
}

.footer-logo img {
    height: 65px;
    object-fit: contain;
}

.footer-socials {
    display: flex;
    gap: 22px;
}

.footer-socials a {
    color: #333;
    font-size: 19px;
    text-decoration: none;
    transition: color .2s;
}

.footer-socials a:hover {
    color: #0056b3;
}

/* ==========================================================================
   MENÚ PRINCIPAL
   ========================================================================== */

.footer-nav-main {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 25px 0 20px;
}

.footer-nav-main a {
    color: #495057;
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: .2px;
}

/* ==========================================================================
   ENLACES LEGALES
   ========================================================================== */

.footer-nav-legal {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding-bottom: 20px;
    text-align: center;
}

.footer-nav-legal a {
    color: #868e96;
    text-decoration: none;
    font-size: 20px;
    font-weight: 500;
}

.footer-nav-legal a:hover {
    color: #212529;
}

/* ==========================================================================
   MARCAS
   ========================================================================== */

.footer-brands-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
    padding: 40px 0;
    width: 100%;
    border-top: 1px solid #f1f3f5;
}

.brands-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    width: 100%;
    flex-wrap: wrap;
}

.brand-item a {
    display: inline-block;
    text-decoration: none;
    line-height: 0;
}

.brand-item img {
    height: auto;
    max-height: 45px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: .35;
    transition: opacity .2s ease, filter .2s ease;
}

.brand-item a:hover img {
    opacity: .7;
    filter: grayscale(0%);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 600px) {

    .brands-row {
        gap: 25px;
    }

    .brand-item img {
        max-height: 26px;
    }

}

@media (min-width: 850px) {

    /* Logo a la izquierda y redes a la derecha */
    .footer-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    /* Menú principal centrado */
    .footer-nav-main {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        gap: 15px 24px;
        text-align: center;
    }

    /* Enlaces legales centrados */
    .footer-nav-legal {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        gap: 10px 20px;
        text-align: center;
    }

}