/* ==========================================================================
   FOOTER (COLUMNAS): CONFIGURACIÓN DE INTERFAZ (UI VARIABLES)
   ========================================================================== */

/* --- 1. Modo General (Mode) --- */
$mode: light; // Valores permitidos: dark | light

/* --- 2. Colores y Fondos Principales (Colors & Backgrounds) --- */
$footerColsBgColor: $white;
$footerMainColor: $mainColor; // Color de acento para hovers
$menusHeaderFooterColor: $mainColor; // Color de los títulos de cada columna

/* --- 3. Tipografía (Typography) --- */
$footerColsTitleSize: 13px;

/* --- 4. Logotipo (Logo) --- */
$logoFooterHeight: 100px;

/* --- 5. Barra Inferior o Copyright (Bottom Bar) --- */
$footerColsLastSectionBg: $footerColsBgColor;
$footerColsLastSectionBorder: 1px solid rgba($black, 0.2);

.footer-cols {
    background-color: $footerColsBgColor;
    background-position: center;
    background-size: cover;
    z-index: 10;
    position: relative;

    footer {
        padding: 4rem 0;
    }

    .footer-logo {
        display: block;
        margin-bottom: 1.5rem;
        height: $logoFooterHeight;

        img {
            margin: 0;

            @media #{$ipad} {
                margin: 0 auto;
            }
        }
    }

    .menus-wrapper {
        display: flex;
        justify-content: flex-end;
        align-items: flex-start;
        width: 60%;
        max-width: 100%;
        gap: 80px;

        @media #{$ipad} {
            flex-direction: column;
            justify-content: center;
            align-items: center;

            h3 {
                text-align: center;
            }
        }

        &>div {
            max-width: 240px;
        }
    }

    .footer-tagline {
        color: $mediumGray3;
        line-height: 1.6;
        margin-bottom: 2rem;

        @media #{$ipad} {
            text-align: center;
        }
    }

    .social-links {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 1rem;

        a {
            i {
                font-size: 32px;
                transition: all .2s;
            }

            &:hover {
                i {
                    color: $footerMainColor;
                }
            }
        }
    }

    @if ($mode ==dark) {
        * {
            color: $white;
        }
    }

    @else {
        * {
            color: $black;
        }
    }

    &__cols {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        column-gap: 32px;
        // border-top: 1px solid $footerMainColor;
        // border-bottom: 1px solid $footerMainColor;
        padding: 2rem 0;

        @media #{$ipad} {
            flex-direction: column;
            justify-content: flex-start;
            align-items: flex-start;
        }

        &>div {
            width: 100%;
            max-width: 270px;

            @media #{$ipad} {
                margin: 0 auto;
                margin-bottom: 2rem;
            }

            h3 {
                font-size: $footerColsTitleSize;
                margin-bottom: 1rem;
                color: $menusHeaderFooterColor;
                text-transform: uppercase;
                letter-spacing: 1px;
            }

            .footer-cols-links-wrapper {
                display: grid;
                grid-template-columns: 1fr;
                row-gap: 20px;

                @media #{$ipad} {
                    display: flex;
                    flex-direction: column;
                    justify-content: center;
                    align-items: center;
                }

                a {
                    display: flex;
                    justify-content: flex-start;
                    align-items: flex-start;

                    @media #{$ipad} {
                        text-align: center;
                    }

                    i {
                        width: 20px;
                        height: 20px;
                        display: flex;
                        justify-content: center;
                        align-items: center;
                        margin-right: 0.5rem;
                        margin-top: 2px;
                    }

                    &:hover {
                        i {
                            color: $footerMainColor;
                        }

                        span {
                            text-decoration: underline;
                        }
                    }
                }
            }
        }
    }
}

.footer-cols-last-section {
    text-align: center;
    background-color: $footerColsLastSectionBg;
    padding: 16px;
    border-top: $footerColsLastSectionBorder;

    p {
        font-size: 13px;
        letter-spacing: 1px;
        text-transform: uppercase;
    }

    a {
        transition: all .2s;

        &:hover {
            color: $footerMainColor;
        }
    }

    @if ($mode ==dark) {

        &,
        * {
            color: $white;
        }
    }

    @else {

        &,
        * {
            color: $black;
        }
    }
}