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

/* Franja blanca con logos de aliados */
.partners { background: #fff; padding: 60px 0; }
.partners-grid {
    width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto;
    display: grid; grid-template-columns: repeat(8, minmax(0, 145px)); justify-content: center;
    gap: 20px;
}
.partner { display: flex; align-items: center; justify-content: center; }
.partner img { width: 145px; height: 95px; object-fit: contain; transition: transform .3s ease; }
.partner a:hover img { transform: scale(1.04); }

.partners-marquee { display: none; overflow: hidden; }
.partners-track { display: flex; gap: 24px; width: max-content; animation: partners-scroll 60s linear infinite; }
.partners-track img { width: 120px; height: 80px; object-fit: contain; flex-shrink: 0; }
@keyframes partners-scroll { to { transform: translateX(-50%); } }

/* Parte negra */
.footer-main { background: #000; padding: 60px 0 65px; }
.footer-inner { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }

.footer-top {
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
    padding-bottom: 40px; border-bottom: 1px solid var(--c-accent);
}
.footer-contact { display: flex; flex-wrap: wrap; gap: 30px; }
.footer-contact .info-icon { fill: var(--c-red); }
.social-icons--footer a svg { width: 17px; height: 17px; }

.footer-cols {
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px;
    padding: 40px 0; border-bottom: 1px solid var(--c-accent);
}
.footer-col--logo { display: flex; align-items: center; justify-content: center; }
.footer-col--logo img { width: auto; height: 112px; }
.footer-title { color: var(--c-red); font-size: 18px; font-weight: 600; line-height: 1; margin-bottom: 12px; }
.footer-title--spaced { margin-top: 22px; }
.footer-links a {
    position: relative; display: inline-block; padding: 4px 20px;
    color: #fff; font-size: 15px; font-weight: 600; line-height: 20px;
}
.footer-links a::before {
    content: ''; position: absolute; left: 0; top: 50%; width: 3px; height: 14px;
    background: var(--c-red); transform: translateY(-50%) scaleY(.5); opacity: .9; transition: transform .3s ease;
}
.footer-links a:hover { color: var(--c-red); }
.footer-links a:hover::before { transform: translateY(-50%) scaleY(1); }
.footer-list li { display: flex; align-items: center; gap: 8px; color: #fff; font-size: 15px; line-height: 22.5px; }
.footer-list svg { width: 14px; height: 14px; fill: var(--c-red); flex-shrink: 0; }
.footer-list a:hover { color: var(--c-red); }

.footer-bottom {
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
    padding-top: 40px; color: #7A7A7A; font-size: 15px; line-height: 1.2;
}
.footer-bottom .copyright { flex: 0 0 60%; }
.footer-bottom .legal-note { flex: 0 0 38%; text-align: right; }

/* Barra inferior de celular */
.mobile-bar { display: none; }

@media (max-width: 1024px) {
    .partners-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .footer-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 36px; }
    .footer-col--logo { grid-column: 1 / -1; }
}

@media (max-width: 880px) {
    .partners { padding: 30px 0; }
    .partners-grid { display: none; }
    .partners-marquee { display: block; }
}

@media (max-width: 767px) {
    body { padding-bottom: 75px; }
    .footer-main { padding: 40px 0 30px; }
    .footer-top { flex-direction: column; align-items: flex-start; }
    .footer-contact { flex-direction: column; gap: 18px; }
    .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
    .footer-bottom .copyright, .footer-bottom .legal-note { flex-basis: auto; text-align: left; }

    .mobile-bar {
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 9989;
        display: flex; justify-content: space-around; align-items: center;
        height: 75px; padding: 0 10px;
        background: rgba(26, 26, 26, .85); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
        border-top: 1px solid rgba(255, 255, 255, .08);
    }
    .mobile-bar-item {
        display: flex; align-items: center; justify-content: center;
        height: 44px; padding: 10px; border-radius: 50px; color: #888;
        transition: all .4s cubic-bezier(.68, -.55, .265, 1.55);
    }
    .mobile-bar-item svg { width: 24px; height: 24px; fill: currentColor; flex-shrink: 0; }
    .mobile-bar-text {
        max-width: 0; margin-left: 0; opacity: 0; overflow: hidden; white-space: nowrap;
        font-size: 14px; font-weight: 600; color: var(--c-red);
        transition: all .4s cubic-bezier(.68, -.55, .265, 1.55);
    }
    .mobile-bar-item.is-active { background: rgba(233, 63, 52, .15); color: var(--c-red); padding: 10px 18px; }
    .mobile-bar-item.is-active .mobile-bar-text { max-width: 120px; opacity: 1; margin-left: 8px; }
}

@media (max-width: 400px) {
    .footer-cols { grid-template-columns: 1fr; }
}
