/* ==========================================================================
   Scroll to Top — Global floating button
   ========================================================================== */

.pf-redes-scroll-to-top {
    position: fixed;
    bottom: 32px;
    left: 24px;
    z-index: 95;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: var(--pf-redes-primary);
    color: var(--pf-redes-text-inverse);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease, background 0.15s ease;
}

.pf-redes-scroll-to-top[aria-hidden="false"] {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.pf-redes-scroll-to-top:hover {
    background: var(--pf-redes-primary-hover);
    transform: scale(1.05);
}

.pf-redes-scroll-to-top[aria-hidden="true"]:hover {
    transform: translateY(10px);
}

.pf-redes-scroll-to-top:focus-visible {
    outline: 2px solid var(--pf-redes-text-inverse);
    outline-offset: 2px;
}

/* Responsive */
@media (max-width: 480px) {
    .pf-redes-scroll-to-top {
        bottom: 16px;
        left: 16px;
        width: 38px;
        height: 38px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .pf-redes-scroll-to-top {
        transition: none;
    }
}
