/*
// .footer-contacts
*/
@import '../variables';
@import '../functions';
@import '../mixins/direction';
@import '../mixins/breakpoints';
@import '../mixins/scheme';

// Misma distancia que icono (40px) + gap (14px) en `.footer-contacts__item`, para alinear título/subtítulo con el texto de las filas
$footer-contacts-heading-indent: 40px + 14px;

// Línea bajo títulos del footer: degradado suave (transparente → gris claro) y leve brillo
@mixin footer-heading-divider-line {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 1px;
    width: 100%;
    border: none;
    border-radius: 1px;
    pointer-events: none;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.06) 22%,
        rgba(255, 255, 255, 0.28) 58%,
        rgba(210, 210, 210, 0.55) 88%,
        rgba(230, 230, 230, 0.42) 100%
    );
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.12), 0 0 4px rgba(255, 255, 255, 0.08);
}

.footer-contacts {
    display: block;
}

.footer-contacts__title {
    position: relative;
    font-size: 20px;
    color: map_get($footer-scheme, opposite);
    margin: 0 0 14px;
    padding-bottom: 14px;
    padding-inline-start: $footer-contacts-heading-indent;

    @include scheme-font-weight($footer-scheme, opposite, $font-weight-medium);

    &::after {
        @include footer-heading-divider-line;
        left: $footer-contacts-heading-indent;
        width: calc(100% - #{$footer-contacts-heading-indent});
    }
}

@include media-breakpoint-up(xl) {
    .footer-contacts__title {
        margin-bottom: 18px;
    }

    // Columnas footer xl: contactos 5 + sucursales 3 → ancho línea ≈ 160% de la col. contactos + gutter
    .footer-contacts__title::after {
        width: calc(160% + 30px - #{$footer-contacts-heading-indent});
    }
}

.footer-contacts__text {
    line-height: 22px;
    list-style: none;
    margin: 0 0 24px;
    font-size: 14px;
    color: map_get($footer-scheme, muted);
    padding-inline-start: $footer-contacts-heading-indent;

    a {
        color: inherit;
    }
}

.footer-contacts__contacts {
    font-size: 14px;
    line-height: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px 28px;

    a {
        color: inherit;
    }
}

.footer-contacts__item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.footer-contacts__item-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: map_get($footer-scheme, opposite);
    opacity: 0.95;
}

.footer-contacts__item-icon i {
    color: transparent;
    -webkit-text-stroke: 1.6px map_get($footer-scheme, opposite);
    text-stroke: 1.6px map_get($footer-scheme, opposite);
    font-size: 40px;
}

.footer-contacts__item-body {
    flex: 1;
    min-width: 0;
}

.footer-contacts__item-label {
    font-size: 10px;
    font-weight: $font-weight-normal;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: map_get($footer-scheme, muted);
    margin-bottom: 4px;
    line-height: 1.3;
}

.footer-contacts__item-values {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.footer-contacts__value {
    color: map_get($footer-scheme, opposite);
    margin: 0;
    line-height: 1.45;
    word-wrap: break-word;
    font-size: 12px;

    @include scheme-font-weight($footer-scheme, opposite, $font-weight-bold);
}

@include media-breakpoint-up(xxl) {
    .footer-contacts {
        @include direction {
            #{$padding-inline-end}: 36px;
        }
    }
}

@include media-breakpoint-between(xs, lg) {
    .footer-contacts {
        text-align: left;
        margin-bottom: 42px;
    }

    .footer-contacts__title {
        font-size: 24px;
        margin-bottom: 12px;
        padding-bottom: 12px;
    }

    .footer-contacts__text {
        margin-bottom: 20px;
    }

    .footer-contacts__contacts {
        grid-template-columns: 1fr 1fr;
        gap: 20px 16px;
        padding-top: 8px;
    }

    .footer-contacts__item {
        background: $footer-contacts-card-bg-color;
        padding: 16px 14px;
        border-radius: 3px;
        align-items: flex-start;
    }

    .footer-contacts__item-icon {
        margin-top: 2px;
    }
}

@include media-breakpoint-down(md) {
    .footer-contacts__contacts {
        gap: 16px 12px;
    }

    .footer-contacts__item {
        padding: 18px 14px;
    }
}

@include media-breakpoint-down(sm) {
    .footer-contacts__contacts {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .footer-contacts__item {
        padding: 16px 14px;
    }
}
