/* ═══════════════════════════════════════════════════════════════
   FUNGIVERSE 2.0 — Footer Styles
   ═══════════════════════════════════════════════════════════════ */

/* ─── Footer Base ─── */
.fv-footer {
    background: var(--fv-primary-dark);
    color: rgba(255, 255, 255, 0.75);
    position: relative;
    overflow: hidden;
}

/* Decorative gradient line on top */
.fv-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
            var(--fv-primary-light),
            var(--fv-accent),
            var(--fv-primary-light));
}

/* ─── Main Footer ─── */
.fv-footer__main {
    padding: var(--fv-space-4xl) 0 var(--fv-space-2xl);
}

.fv-footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: var(--fv-space-2xl);
}

/* ─── Brand Column ─── */
.fv-footer__col--brand {
    padding-right: var(--fv-space-xl);
}

.fv-footer__logo {
    display: inline-block;
    margin-bottom: var(--fv-space-lg);
    text-decoration: none;
    transition: var(--fv-transition-fast);
}

.fv-footer__logo:hover {
    opacity: 0.8;
}

.fv-footer__logo-img {
    height: 32px;
    width: auto;
    /* Invertir logo si es oscuro para fondo oscuro */
    filter: brightness(0) invert(1);
}

.fv-footer__logo-text {
    font-family: var(--fv-font-heading);
    font-size: var(--fv-text-xl);
    font-weight: 800;
    color: var(--fv-white);
    letter-spacing: var(--fv-tracking-tight);
}

.fv-footer__tagline {
    font-size: var(--fv-text-sm);
    line-height: var(--fv-leading-relaxed);
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: var(--fv-space-lg);
    max-width: 300px;
}

/* ─── Social Links ─── */
.fv-footer__social {
    display: flex;
    gap: var(--fv-space-sm);
}

.fv-footer__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--fv-radius-full);
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
    transition: var(--fv-transition);
    text-decoration: none;
}

.fv-footer__social-link:hover {
    background: var(--fv-accent);
    color: var(--fv-primary-dark);
    transform: translateY(-3px);
}

/* ─── Column Titles ─── */
.fv-footer__col-title {
    font-family: var(--fv-font-heading);
    font-size: var(--fv-text-sm);
    font-weight: 700;
    color: var(--fv-white);
    text-transform: uppercase;
    letter-spacing: var(--fv-tracking-wider);
    margin-bottom: var(--fv-space-lg);
    position: relative;
    padding-bottom: var(--fv-space-md);
}

.fv-footer__col-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 24px;
    height: 2px;
    background: var(--fv-accent);
    border-radius: 2px;
}

/* ─── Footer Links ─── */
.fv-footer__links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--fv-space-sm);
}

.fv-footer__links li {
    list-style: none;
}

.fv-footer__links a {
    font-size: var(--fv-text-sm);
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: var(--fv-transition-fast);
    display: inline-block;
    padding: 2px 0;
}

.fv-footer__links a:hover {
    color: var(--fv-accent-light);
    transform: translateX(4px);
}

/* Contact links with icons */
.fv-footer__links--contact li {
    display: flex;
    align-items: flex-start;
    gap: var(--fv-space-sm);
}

.fv-footer__links--contact svg {
    flex-shrink: 0;
    margin-top: 3px;
    color: var(--fv-accent);
    opacity: 0.7;
}

.fv-footer__links--contact span {
    font-size: var(--fv-text-sm);
    color: rgba(255, 255, 255, 0.6);
}

/* ─── Bottom Bar ─── */
.fv-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: var(--fv-space-lg) 0;
}

.fv-footer__bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--fv-space-md);
}

.fv-footer__copyright {
    font-size: var(--fv-text-xs);
    color: rgba(255, 255, 255, 0.4);
    margin: 0;
}

.fv-footer__legal {
    display: flex;
    align-items: center;
    gap: var(--fv-space-sm);
}

.fv-footer__legal a {
    font-size: var(--fv-text-xs);
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    transition: var(--fv-transition-fast);
}

.fv-footer__legal a:hover {
    color: rgba(255, 255, 255, 0.8);
}

.fv-footer__legal-sep {
    color: rgba(255, 255, 255, 0.2);
    font-size: var(--fv-text-xs);
}

/* ─── WhatsApp Floating Button ─── */
.fv-whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #25D366;
    color: var(--fv-white);
    border-radius: var(--fv-radius-full);
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
    z-index: var(--fv-z-toast);
    text-decoration: none;
    transition: var(--fv-transition);
    animation: fv-whatsapp-pulse 2s ease-in-out infinite;
}

.fv-whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
    animation: none;
}

@keyframes fv-whatsapp-pulse {

    0%,
    100% {
        box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
    }

    50% {
        box-shadow: 0 4px 24px rgba(37, 211, 102, 0.55);
    }
}

/* ─── Mobile Responsive ─── */
@media (max-width: 768px) {
    .fv-footer__grid {
        grid-template-columns: 1fr;
        gap: var(--fv-space-2xl);
    }

    .fv-footer__col--brand {
        padding-right: 0;
        text-align: center;
    }

    .fv-footer__tagline {
        max-width: 100%;
        margin-inline: auto;
    }

    .fv-footer__social {
        justify-content: center;
    }

    .fv-footer__col-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .fv-footer__col {
        text-align: center;
    }

    .fv-footer__links {
        align-items: center;
    }

    .fv-footer__links--contact li {
        justify-content: center;
    }

    .fv-footer__bottom-inner {
        flex-direction: column;
        text-align: center;
    }

    .fv-whatsapp-float {
        bottom: 16px;
        right: 16px;
        width: 50px;
        height: 50px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .fv-footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--fv-space-xl);
    }

    .fv-footer__col--brand {
        grid-column: 1 / -1;
    }
}