/* =========================================================
 * FOOTER 1.0.2 — LibroAcademy
 * Composición compacta, uniforme y responsive.
 * ========================================================= */

/* El footer independiente sustituye únicamente el footer nativo del tema. */
body > footer#site-footer:not(.la-site-footer),
footer#site-footer.site-footer:not(.la-site-footer),
.site-footer.dynamic-footer:not(.la-site-footer) {
    display: none !important;
}
.la-site-footer {
    position: relative;
    z-index: 5;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    margin-top: 0;
    margin-bottom: 0;
    padding: 0;
    background: #030303;
    color: #f4f6fb;
    font-family: "Sora", Arial, sans-serif;
    overflow: hidden;
}

.la-site-footer *,
.la-site-footer *::before,
.la-site-footer *::after {
    box-sizing: border-box;
}

.la-site-footer__inner {
    width: min(1560px, calc(100% - 48px));
    margin: 0 auto;
}

.la-site-footer__main {
    display: grid;
    grid-template-columns: minmax(205px, 1.15fr) minmax(155px, .8fr) minmax(155px, .8fr) minmax(200px, 1fr) minmax(235px, 1.1fr);
    gap: clamp(20px, 2.4vw, 42px);
    align-items: start;
    padding: 20px 0 12px;
}

.la-site-footer__brand {
    min-width: 0;
}

.la-site-footer__logo-link {
    display: inline-flex;
    align-items: center;
    width: min(185px, 100%);
    margin-bottom: 6px;
    text-decoration: none;
}

.la-site-footer__logo-link img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 64px;
    object-fit: contain;
    object-position: left center;
}

.la-site-footer__brand p {
    max-width: 225px;
    margin: 0;
    color: rgba(255, 255, 255, .88);
    font-size: 11px;
    line-height: 1.45;
}

.la-site-footer__col {
    min-width: 0;
}

.la-site-footer__col h2 {
    margin: 0 0 3px;
    color: #ffffff;
    font-family: "Anton", "Arial Narrow", sans-serif;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: .015em;
    text-transform: uppercase;
}

.la-site-footer__col > a,
.la-site-footer__static {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    padding: 5px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .58);
    color: #f4f6fb;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.25;
    text-decoration: none;
    transition: color .22s ease, border-color .22s ease, transform .22s ease;
}

.la-site-footer__col > a:hover,
.la-site-footer__col > a:focus-visible {
    color: #ffffff;
    border-color: #ffffff;
    transform: translateX(3px);
}

.la-site-footer__mini-icon {
    display: inline-flex;
    flex: 0 0 17px;
    width: 17px;
    height: 17px;
    color: #0962ef;
}

.la-site-footer__mini-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.la-site-footer__mini-icon svg[fill="none"] {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.65;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.la-site-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    min-height: 48px;
    padding: 7px 12px 8px;
    border-top: 1px solid rgba(255, 255, 255, .72);
}

.la-site-footer__copyright {
    flex: 0 1 auto;
    margin: 0;
    color: rgba(255, 255, 255, .74);
    font-size: 10px;
    line-height: 1.3;
}

.la-site-footer__social {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
    min-width: 0;
}

.la-site-footer__social-label {
    flex: 0 0 auto;
    color: #f3f3f3;
    font-family: "Anton", "Arial Narrow", sans-serif;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: .02em;
}

.la-site-footer__social-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    min-width: 0;
}

.la-site-footer__social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 999px;
    background: #0756e8;
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 5px 16px rgba(0, 64, 220, .16);
    transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.la-site-footer__social-link:hover,
.la-site-footer__social-link:focus-visible {
    background: #1469ff;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 86, 255, .3);
}

.la-site-footer__social-link svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.la-site-footer__social-link svg[fill="none"] {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Los dos glifos más delicados necesitan un poco más de presencia a tamaño pequeño. */
.la-site-footer__social-link--threads svg {
    width: 20px;
    height: 20px;
    stroke-width: 2.35;
}

.la-site-footer__social-link--pinterest svg {
    width: 20px;
    height: 20px;
}

/* Entrada sutil al alcanzar el footer. El contenido nunca depende de JS. */
.la-site-footer.la-footer-motion-ready .la-site-footer__main > *,
.la-site-footer.la-footer-motion-ready .la-site-footer__bottom {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .45s ease, transform .45s cubic-bezier(.2,.7,.2,1);
}

.la-site-footer.la-footer-motion-ready.is-visible .la-site-footer__main > *,
.la-site-footer.la-footer-motion-ready.is-visible .la-site-footer__bottom {
    opacity: 1;
    transform: translateY(0);
}

.la-site-footer.la-footer-motion-ready.is-visible .la-site-footer__main > :nth-child(2) { transition-delay: 45ms; }
.la-site-footer.la-footer-motion-ready.is-visible .la-site-footer__main > :nth-child(3) { transition-delay: 80ms; }
.la-site-footer.la-footer-motion-ready.is-visible .la-site-footer__main > :nth-child(4) { transition-delay: 115ms; }
.la-site-footer.la-footer-motion-ready.is-visible .la-site-footer__main > :nth-child(5) { transition-delay: 150ms; }
.la-site-footer.la-footer-motion-ready.is-visible .la-site-footer__bottom { transition-delay: 175ms; }

@media (max-width: 1120px) {
    .la-site-footer__main {
        grid-template-columns: minmax(230px, 1.15fr) repeat(2, minmax(150px, .8fr)) minmax(200px, 1fr);
        gap: 24px 32px;
    }

    .la-site-footer__col--contact {
        grid-column: 2 / -1;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        column-gap: 18px;
    }

    .la-site-footer__col--contact h2 {
        grid-column: 1 / -1;
    }
}

@media (max-width: 782px) {
    .la-site-footer__inner {
        width: min(100% - 24px, 720px);
    }

    /* En móvil mantenemos la marca y ocultamos solo colecciones y redes. */
    .la-site-footer__col--collections-a,
    .la-site-footer__col--collections-b,
    .la-site-footer__social {
        display: none !important;
    }

    .la-site-footer__main {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 14px 16px;
        padding: 12px 0 8px;
        align-items: start;
    }

    .la-site-footer__brand {
        grid-column: 1 / -1;
        display: grid !important;
        grid-template-columns: minmax(125px, 165px) minmax(0, 1fr);
        align-items: center;
        gap: 16px;
        padding: 0 0 10px;
        border-bottom: 1px solid rgba(255,255,255,.28);
    }

    .la-site-footer__logo-link {
        width: 100%;
        max-width: 165px;
        margin: 0;
    }

    .la-site-footer__logo-link img {
        width: 100%;
        max-height: 58px;
        object-fit: contain;
        object-position: left center;
    }

    .la-site-footer__brand p {
        max-width: none;
        margin: 0;
        font-size: 10px;
        line-height: 1.4;
        color: rgba(255,255,255,.86);
    }

    .la-site-footer__col--legal,
    .la-site-footer__col--contact {
        grid-column: auto;
        display: block;
        min-width: 0;
    }

    .la-site-footer__col h2 {
        margin: 0 0 4px;
        font-size: 15px;
        line-height: 1.05;
    }

    .la-site-footer__col > a,
    .la-site-footer__static {
        gap: 6px;
        padding: 5px 0;
        font-size: 10.5px;
        line-height: 1.2;
    }

    .la-site-footer__mini-icon {
        flex-basis: 14px;
        width: 14px;
        height: 14px;
    }

    .la-site-footer__bottom {
        display: block;
        min-height: 0;
        padding: 7px 0 9px;
        border-top: 1px solid rgba(255,255,255,.38);
    }

    .la-site-footer__copyright {
        width: 100%;
        margin: 0;
        text-align: center;
        font-size: 9px;
        line-height: 1.25;
    }
}

@media (max-width: 420px) {
    .la-site-footer__inner {
        width: calc(100% - 20px);
    }

    .la-site-footer__main {
        gap: 10px 12px;
        padding-top: 10px;
    }

    .la-site-footer__brand {
        grid-template-columns: minmax(110px, 145px) minmax(0, 1fr);
        gap: 12px;
        padding-bottom: 8px;
    }

    .la-site-footer__logo-link {
        max-width: 145px;
    }

    .la-site-footer__logo-link img {
        max-height: 52px;
    }

    .la-site-footer__brand p {
        font-size: 9.2px;
        line-height: 1.35;
    }

    .la-site-footer__col h2 {
        font-size: 14px;
    }

    .la-site-footer__col > a,
    .la-site-footer__static {
        font-size: 9.6px;
        padding: 4px 0;
    }
}

@media (max-width: 330px) {
    .la-site-footer__main {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .la-site-footer__brand {
        grid-column: 1;
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
        gap: 6px;
    }

    .la-site-footer__logo-link,
    .la-site-footer__brand p {
        max-width: 190px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .la-site-footer *,
    .la-site-footer *::before,
    .la-site-footer *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }

    .la-site-footer.la-footer-motion-ready .la-site-footer__main > *,
    .la-site-footer.la-footer-motion-ready .la-site-footer__bottom {
        opacity: 1 !important;
        transform: none !important;
    }
}
