/* =========================================================
   MOTOLINK - FOOTER GLOBAL
========================================================= */

.ml-global-footer {
    --mlf-bg: #111214;
    --mlf-text: #ffffff;
    --mlf-muted: #a9abb1;
    --mlf-border: rgba(255, 255, 255, 0.12);
    --mlf-accent: #ff6b00;

    width: 100%;
    background: var(--mlf-bg);
    color: var(--mlf-text);

    border-top: 1px solid var(--mlf-border);

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;
}

.ml-global-footer *,
.ml-global-footer *::before,
.ml-global-footer *::after {
    box-sizing: border-box;
}


/* =========================================================
   CONTENEDOR DE CUATRO COLUMNAS
========================================================= */

.ml-global-footer__container {
    display: grid;

    grid-template-columns:
        minmax(0, 1.1fr)
        minmax(0, 1fr)
        minmax(0, 1fr)
        minmax(0, 1.3fr);

    gap: 38px;

    width: min(100% - 48px, 1280px);

    margin: 0 auto;

    padding: 58px 0 50px;
}

.ml-global-footer__column {
    min-width: 0;
}

.ml-global-footer__title {
    margin: 0 0 22px;

    color: #ffffff;

    font-size: 17px;
    font-weight: 800;
    line-height: 1.3;
}


/* =========================================================
   COLUMNA 1: LOGO
========================================================= */

.ml-global-footer__logo-link {
    display: inline-flex;
    align-items: center;

    max-width: 220px;

    text-decoration: none;
}

.ml-global-footer__logo {
    display: block;

    width: 100%;
    max-width: 220px;
    height: auto;

    object-fit: contain;
}

.ml-global-footer__description {
    max-width: 260px;

    margin: 20px 0 0;

    color: var(--mlf-muted);

    font-size: 14px;
    font-weight: 400;
    line-height: 1.7;
}


/* =========================================================
   COLUMNA 2: ENLACES LEGALES
========================================================= */

.ml-global-footer__links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    gap: 16px;
}

.ml-global-footer__links a,
.ml-global-footer__contact a,
.ml-global-footer__map-link,
.ml-global-footer__bottom a {
    color: var(--mlf-muted);

    text-decoration: none;

    transition: color 0.2s ease;
}

.ml-global-footer__links a {
    font-size: 14px;
    line-height: 1.5;
}

.ml-global-footer__links a:hover,
.ml-global-footer__links a:focus-visible,
.ml-global-footer__contact a:hover,
.ml-global-footer__contact a:focus-visible,
.ml-global-footer__map-link:hover,
.ml-global-footer__map-link:focus-visible,
.ml-global-footer__bottom a:hover,
.ml-global-footer__bottom a:focus-visible {
    color: var(--mlf-accent);
}


/* =========================================================
   COLUMNA 3: CONTACTO
========================================================= */

.ml-global-footer__contact {
    display: flex;
    flex-direction: column;

    gap: 24px;
}

.ml-global-footer__contact-item {
    display: flex;
    flex-direction: column;

    gap: 7px;
}

.ml-global-footer__label {
    color: #ffffff;

    font-size: 13px;
    font-weight: 700;
}

.ml-global-footer__contact a,
.ml-global-footer__contact p {
    margin: 0;

    color: var(--mlf-muted);

    font-size: 14px;
    line-height: 1.6;

    overflow-wrap: anywhere;
}


/* =========================================================
   COLUMNA 4: DIRECCIÓN Y GOOGLE MAPS
========================================================= */

.ml-global-footer__address {
    margin: 0 0 15px;

    color: var(--mlf-muted);

    font-size: 14px;
    line-height: 1.6;
}

.ml-global-footer__map {
    width: 100%;
    height: 175px;

    overflow: hidden;

    border: 1px solid var(--mlf-border);
    border-radius: 12px;

    background: #25272b;
}

.ml-global-footer__map iframe {
    display: block;

    width: 100%;
    height: 100%;

    border: 0;
}

.ml-global-footer__map-link {
    display: inline-block;

    margin-top: 12px;

    font-size: 13px;
    font-weight: 600;
}


/* =========================================================
   FRANJA INFERIOR
========================================================= */

.ml-global-footer__bottom {
    border-top: 1px solid var(--mlf-border);
}

.ml-global-footer__bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    width: min(100% - 48px, 1280px);

    margin: 0 auto;
    padding: 22px 0;
}

.ml-global-footer__bottom span,
.ml-global-footer__bottom a {
    font-size: 12px;
    line-height: 1.5;
}

.ml-global-footer__bottom span {
    color: var(--mlf-muted);
}


/* =========================================================
   TABLET: DOS COLUMNAS
========================================================= */

@media (max-width: 1023px) {

    .ml-global-footer__container {
        grid-template-columns: repeat(2, minmax(0, 1fr));

        gap: 40px 30px;

        padding: 45px 0;
    }

}


/* =========================================================
   MÓVIL: UNA COLUMNA
========================================================= */

@media (max-width: 600px) {

    .ml-global-footer__container {
        width: min(100% - 36px, 1280px);

        grid-template-columns: minmax(0, 1fr);

        gap: 35px;

        padding: 40px 0;
    }

    .ml-global-footer__title {
        margin-bottom: 16px;
    }

    .ml-global-footer__logo {
        max-width: 190px;
    }

    .ml-global-footer__description {
        margin-top: 14px;
    }

    .ml-global-footer__map {
        height: 210px;
    }

    .ml-global-footer__bottom-inner {
        width: min(100% - 36px, 1280px);

        flex-direction: column;
        align-items: flex-start;

        gap: 10px;

        padding: 20px 0;
    }

}