/* ===== SHARED FOOTER STYLES ===== */
.mag-footer {
    padding: 50px 10%;
    background-image: linear-gradient(rgba(249, 247, 242, 0.15), rgba(249, 247, 242, 0.15)), url('./img/footerfoter.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    scroll-snap-align: start;
    position: relative;
    z-index: 10;
}



.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}


.footer-links a {
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 3px;
    color: #111;
    transition: color 0.3s;
    text-decoration: none;
}

.footer-links a:hover {
    color: #6a1a1c;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-social a {
    color: #111;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    color: #6a1a1c;
    transform: translateY(-5px);
}

.footer-social .footer-social-icon {
    color: #111;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.2rem;
    height: 1.2rem;
    font-size: 1.2rem;
    line-height: 1;
    transition: all 0.3s ease;
}

.footer-social .footer-social-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.footer-social .footer-social-icon.spotify-icon {
    color: #111;
    width: 1.45rem;
    height: 1.45rem;
}

.footer-social .footer-social-icon:hover {
    color: #6a1a1c;
    transform: translateY(-5px);
}

.footer-bottom {
    font-size: 0.85rem;
    font-weight: 500;
    color: #333;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 30px;
    font-family: 'Inter', sans-serif;
    letter-spacing: 1px;
}

/* Subtle page jump button: go to top / bottom */
.page-scroll-toggle {
    appearance: none;
    -webkit-appearance: none;
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(106, 26, 28, 0.14);
    background: rgba(255, 251, 246, 0.92);
    color: #6a1a1c;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
    padding: 0;
    cursor: pointer;
    font: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 9998;
    opacity: 0.68;
    transition: transform 0.25s ease, opacity 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.page-scroll-toggle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    animation: pageScrollNudgeDown 6.5s ease-in-out infinite;
    will-change: transform;
}

.page-scroll-toggle svg {
    width: 18px;
    height: 18px;
    display: block;
    transition: transform 0.25s ease;
}

.page-scroll-toggle.is-up .page-scroll-toggle-icon {
    animation-name: pageScrollNudgeUp;
}

.page-scroll-toggle.is-up svg {
    transform: rotate(180deg);
}

.page-scroll-toggle:hover {
    opacity: 1;
    transform: translateY(-2px);
    background: rgba(255, 253, 249, 0.98);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.12);
    color: #8a2224;
}

.page-scroll-toggle:active {
    transform: translateY(0) scale(0.98);
}

.page-scroll-toggle:focus-visible {
    outline: 3px solid rgba(106, 26, 28, 0.45);
    outline-offset: 3px;
}

.page-scroll-toggle.is-hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px) scale(0.96);
}

@keyframes pageScrollNudgeDown {
    0%, 82%, 100% {
        transform: translateY(0);
    }

    88% {
        transform: translateY(2px);
    }

    94% {
        transform: translateY(0);
    }
}

@keyframes pageScrollNudgeUp {
    0%, 82%, 100% {
        transform: translateY(0);
    }

    88% {
        transform: translateY(-2px);
    }

    94% {
        transform: translateY(0);
    }
}

@media (max-width: 640px) {
    .page-scroll-toggle {
        right: 12px;
        bottom: 12px;
        width: 40px;
        height: 40px;
    }

    .page-scroll-toggle svg {
        width: 16px;
        height: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .page-scroll-toggle-icon {
        animation: none;
    }
}

/* Logo hover animation across the site */
nav .t-nav-logo img,
nav .top-logo img,
nav .floating-logo img {
    transform-origin: center center;
    will-change: transform, filter;
}

nav .t-nav-logo:hover img,
nav .top-logo:hover img,
nav .floating-logo:hover img {
    animation: logoHoverPop 0.55s ease-in-out;
    transform: scale(1.08) rotate(-2deg);
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.16));
}

@keyframes logoHoverPop {
    0% {
        transform: scale(1) rotate(0deg);
    }

    45% {
        transform: scale(1.1) rotate(-3deg);
    }

    70% {
        transform: scale(1.06) rotate(1deg);
    }

    100% {
        transform: scale(1.08) rotate(-2deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    nav .t-nav-logo:hover img,
    nav .top-logo:hover img,
    nav .floating-logo:hover img {
        animation: none;
        transform: scale(1.04);
        filter: none;
    }
}

/* Donation QR Styles */
.footer-donation {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 1s ease;
}

.footer-donation.visible {
    opacity: 1;
    transform: translateY(0);
}

.qr-interactive-container {
    position: relative;
    width: 220px;
    height: 220px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-base {
    width: 150px;
    height: 150px;
    background: #fff;
    padding: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    z-index: 2;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.qr-base img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.qr-hands-reveal {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 280px;
    height: auto;
    transform: translate(-50%, -40%) scale(0.8);
    opacity: 0;
    z-index: 5;
    pointer-events: none;
    filter: saturate(1.2) brightness(0.98) contrast(1.05);
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.footer-donation:hover .qr-hands-reveal {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.footer-donation:hover .qr-base {
    transform: scale(1.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}


.footer-donation span {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #fff;
    font-weight: 700;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
    transform: translateY(0);
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.footer-donation:hover span {
    color: #f2cb7b;
}


/* Qiell Link (from talleres) */
.link-qiell {
    color: inherit;
    text-decoration: none;
    font-weight: 700;
    position: relative;
    display: inline-block;
    transition: all 0.3s ease;
    padding: 0 5px;
}

.link-qiell:hover {
    color: #6a1a1c;
}

/* Hearts Animation */
.heart-particle {
    position: fixed;
    pointer-events: none;
    color: #ff4d4d;
    font-size: 1.2rem;
    animation: floatUpHeart 1s ease-out forwards;
    z-index: 9999;
}

@keyframes floatUpHeart {
    0% {
        transform: translateY(0) scale(0) rotate(0deg);
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    100% {
        transform: translateY(-60px) scale(1.8) rotate(20deg);
        opacity: 0;
    }
}
