.layout_footer {
    width: 100%;
    background: red;
    display: flex;
    align-items:center;
    justify-content:center;
    background: var(--Color-Gray-light, #E8EFF8);
    padding: 40px 20px;
    margin-top: auto;
}

.layout_footer__wrapper {
    width: 100%;
    max-width: 1312px;
    display: flex;
    align-items:flex-start;
}

.layout_footer__logo {
    height: 32px;
    width: auto;
}

.layout_footer__logo--light {
    display: flex;
}

.layout_footer__logo--dark {
    display:none;
}

.layout_footer__social {
    display:flex;
    align-items: center;
    gap:24px;
    justify-content: center;
    margin-left: 24px;
    margin-top: 4px; /* Cambiado en el segundo fragmento */
}

.layout_footer__social__link {
    text-decoration: none;
}

.layout_footer__social__pic {
    width:24px;
    height: 24px;
}

.layout_footer__links {
    flex:1;
    display:flex;
    align-items: center;
    justify-content: space-around;
}

.layout_footer__links__link, .layout_footer__links a {
    color: var(--Primary-Basic-Dark, var(--Color-Basic-black, #263856));
    text-align: right;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px; /* 142.857% */
    cursor: pointer;
}

@media (prefers-color-scheme: dark) {
    .layout_footer__links__link, .layout_footer__links a {
        color: white;
    }
    .footer__privacy_links a {
        color: white;
    }
}

.layout_footer__links__link:hover, .layout_footer__links a:hover {
    text-decoration: underline;
}

.layout_footer__copy {
    color: var(--primary-basic-dark-60, var(--Color-Basic-black-60, rgba(38, 56, 86, 0.60)));
    text-align: right;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px; /* 142.857% */
}

.footer__privacy_links {
    display: flex;
    flex-direction: row;
    align-items:flex-start;
    justify-content: flex-end;
    width: max-content;
    gap: 4px 16px;
    flex-wrap: wrap;
    width: 100%;
    max-width: 1312px;
}

.footer__privacy_links a {
    color: #263856;
}

@media (prefers-color-scheme: dark) {
    .footer__privacy_links a {
        color: white;
    }
}

.layout_footer__wrapper__mobile {
    display: none;
}

@media screen and (max-width: 1024px) {
    .layout_footer {
        padding: 32px 20px;
    }
    
    .layout_footer__wrapper {
        flex-direction: column;
        align-items:center;
        justify-content: flex-start;
    }

    .layout_footer__logo {
        order: 1;
        margin-bottom: 32px;
    }

    .layout_footer__social {
        order: 3;
        margin-left:0;
        padding: 24px 0;
        border-top:1px solid rgba(38, 56, 86, 0.30);
        width: 100%;
    }
    .layout_footer__wrapper .layout_footer__social{
        display: none;
    }
    .layout_footer__social__pic {
        width: 32px;
        height: 32px;
    }

    .layout_footer__links {
        order: 2;
        width: 100%;
        margin-bottom: 40px;
    }

    .layout_footer__links__link {
        font-size: 18px;
        line-height: 26px;
    }

    .layout_footer__copy {
        order:4;
        text-align:center;
        width: 100%;
    }
    .layout_footer__wrapper .layout_footer__copy{
        display: none;
    }
    .footer__privacy_links {
        flex-direction: column;
        gap: 12px;
        margin: 16px 0;
        margin-top: 0;
    }

    .layout_footer__wrapper__mobile {
        display: flex;
        flex-direction: column;
        width: 100%;
    }
}

@media screen and (max-width: 735px) {
    .layout_footer__links {
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap:8px;
        margin-bottom: 8px; /* Cambiado en el segundo fragmento */
    }
}

@media (prefers-color-scheme: dark) {
    .layout_footer {
        background: var(--Color-Gray-dark3, #272D3D);
    }

    .layout_footer__logo--light {
        display: none;
    }

    .layout_footer__logo--dark {
        display:flex;
    }

    .layout_footer__social__pic {
        filter:brightness(0) invert(1);
    }

    .layout_footer__links__link {
        color: #FFF;
    }

    .layout_footer__copy {
        color: rgba(255, 255, 255, 0.60);
    }
}