/* ==== Footer ==== */

/* Fondo Footer Lite */
footer.footer-lite .footer-main {
    background-color: var(--background-accent);
    padding-top: 1.75rem;
    padding-bottom: 1.75rem;
}

/* ---- Fila de enlaces de interés ---- */

/* Columna de noticas y contacto */
footer:not(.footer-lite) .footer-main {
    background-color: var(--light-gray-3);
}

footer .footer-top .footer-collapse .footer-collapse-btn {
    pointer-events: none;
}

@media(min-width:991px) {
    footer .footer-top .footer-collapse .footer-collapse-content {
        display: block;
    }
}

footer .footer-top .footer-collapse .footer-collapse-btn span {
    color: var(--content-high);
    font-size: 1.125rem;
    font-weight: var(--body-font-weight-semibold);
    line-height: 1.33;
    margin-bottom: 0;
}

.help-section .help-links .help-link,
.help-section .online-banking a,
.help-section .online-banking span {
    color: var(--content-high);
    font-size: 1.125rem;
    font-weight: var(--body-font-weight-semibold);
    line-height: 1.33;
    transition: all 0.3s ease;
}

/* ---- Columnas de enlaces de interés ---- */
footer .footer-collapse .footer-collapse-btn {
    background-color: var(--transparent);
    border: none;
    padding: 0;
    font-size: 1.125rem;
}

footer .footer-collapse .footer-collapse-btn i {
    color: var(--content-accent);
    transition: transform 0.3s ease;
}

footer .footer-collapse .footer-collapse-btn[aria-expanded="true"] i {
    transform: rotate(180deg);
}

footer .footer-collapse-content ul {
    list-style: none;
    padding: 0;
    gap: 13px;
}

footer .footer-collapse .footer-collapse-content ul {
    list-style: none;
}

footer .footer-collapse .footer-collapse-content ul li a {
    color: var(--content-high);
    font-weight: 400;
    line-height: 1.375;
    text-decoration: none;
}

/* ---- Fila de idiomas y imágenes ---- */
footer .language-list .list-inline-item a {
    color: var(--white);
    font-weight: 400;
    line-height: 1.5;
    text-decoration: none;
}

footer .language-list .list-inline-item a.active,
footer .language-list .list-inline-item a:hover {
    text-decoration: underline;
    text-underline-offset: 12px;
}

footer .language-list .list-inline-item a.active::before,
footer .language-list .list-inline-item a:hover::before {
    width: 100%;
}

/* ---- Fila de enlaces legales y redes sociales ---- */
footer .footer-legal {
    background-color: var(--light-aqua);
}

footer .footer-legal .container .row {
    padding: 2.875rem 0 1.875rem 0;
}

footer.footer-lite .footer-legal .container .row {
    padding: 2.438rem 0 1.438rem 0;
}

/* Enlaces legales */
footer .legal-links {
    column-gap: 51px;
    row-gap: 6px;
}

footer .legal-links .list-inline-item:not(:last-child) {
    margin-right: 0;
}

footer .legal-links a {
    color: var(--content-high);
    font-weight: var(--body-font-weight-semibold);
    line-height: 24px;
}

/* Iconos de redes sociales */
footer:not(.footer-lite) .footer-main {
    padding-top: 7.5rem;
    padding-bottom: 3.8rem;
}

footer .social-links {
    gap: 2.5rem;
}

footer .social-links .list-inline-item {
    height: fit-content;
    margin: 0;
}

footer .social-links .list-inline-item i {
    color: var(--content-high);
    font-size: 1.785rem;
    transition: all 0.3s ease;
    width: auto;
}

footer .social-links .list-inline-item i:hover {
    color: var(--turquoise-70);
}

/* -- Fila de copyright -- */
footer:not(.footer-lite) .footer-copyright {
    background-color: var(--turquoise-80);
}

footer:not(.footer-coop):not(.footer-lite) .footer-copyright {
    padding: 55px 0 51px 0;
}

footer.footer-coop .footer-copyright {
    padding: 2rem 0 1.5rem 0;
}

/* Texto de copyright */
footer:not(.footer-coop) .copyright-text {
    margin-top: 2rem;
}

footer .copyright-notice,
footer .copyright-text {
    color: var(--white);
    line-height: 1.375;
}

/* Logotipo Grupo Cooperativo Cajamar */
footer.footer-lite .footer-content .footer-logo .logo {
    max-width: 151px;
}

footer .row-footer-grupo-coop {
    border-bottom: 1px solid var(--pastel-blue);
}

footer .footer-grupo-coop .text-copy-coop {
    color: var(--content-high) !important;
    font-weight: 400;
    line-height: 1.375;
}

@media (max-width: 767.98px) {
    .row-social-nav .social-nav {
        margin-top: 2rem;
    }

    .row-social-nav .social-nav .social-links {
        gap: 25px;
    }

    footer .footer-top .news-section .btn-primary-bcc.news-btn {
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    footer .footer-top .news-section .news-btn {
        width: 100%;
    }

    footer .legal-links {
        gap: 15px
    }

    footer.footer-lite .legal-links {
        gap: .625rem;
    }

    footer .legal-links .list-inline-item {
        margin-left: 0 !important;
        margin-right: 0;
    }

    footer:not(.footer-coop) .copyright-content .copyright-text {
        padding-top: 35px;
    }

    .footer-logo {
        width: 195px;
    }
}

/* ==== Modo Oscuro ====*/

[data-bs-theme=dark] footer:not(.footer-lite) .footer-main{
    background-color: var(--background-secondary);
}

[data-bs-theme=dark] footer .footer-legal{
    background-color: var(--background-accent-low);
}

@media (prefers-color-scheme: dark) {
    footer:not(.footer-lite) .footer-main{
        background-color: var(--background-secondary);
    }

    footer .footer-legal{
        background-color: var(--background-accent-low);
    }
}