/* ==========================================================================
   MAGNÉTICA FLOATING TOOLBAR
   ========================================================================== */

.mag-floating-toolbar {
    position: fixed;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    background: #1e1e1e;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 6px;
    z-index: 9999999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.mag-ft-btn {
    background: transparent;
    border: none;
    color: #e0e0e0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    outline: none;
}

.mag-ft-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.mag-ft-btn.active {
    background: #e74c3c;
    color: #ffffff;
}

.mag-ft-btn span {
    display: none;
    /* Ocultar texto para que la barra vertical sea delgada y compacta */
}

.mag-ft-btn svg {
    flex-shrink: 0;
}

.mag-ft-divider {
    width: 20px;
    height: 1px;
    background: rgba(255, 255, 255, 0.15);
    margin: 8px 0;
}

/* ==========================================================================
   EFFECTS DISABLED STATE
   When the .mag-effects-disabled class is added to the body
   ========================================================================== */

body.mag-effects-disabled * {
    /* Disable CSS Animations and Transitions */
    animation: none !important;
    transition: none !important;
}

body.mag-effects-disabled .mag-force-visible,
body.mag-effects-disabled [data-aos],
body.mag-effects-disabled [class*="animate-"],
body.mag-effects-disabled [style*="opacity: 0"],
body.mag-effects-disabled [style*="opacity:0"] {
    /* Force visibility for elements hidden by scroll libraries like AOS or GSAP */
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

/* Keep the toolbar itself animated if needed, but we override it above. 
   To protect the toolbar from its own rule: */
body.mag-effects-disabled .mag-floating-toolbar,
body.mag-effects-disabled .mag-floating-toolbar * {
    transition: all 0.2s ease !important;
}

/* Screenshot loader */
.mag-ft-loader {
    animation: spin 1s linear infinite !important;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}