/* 
   Magic Cursor - Nueva Implementación Premium 
   Creado desde cero para BrosMont Solutions
*/

:root {
    --cursor-border: rgba(153, 153, 153, 0.4);
    --cursor-border-active: #ff6b00;
    --cursor-bg-active: rgba(255, 107, 0, 0.1);
}

/* Ocultar el cursor por defecto en toda la web */
body, 
a, 
button, 
.btn, 
.btn-cta, 
.link, 
[role="button"] {
    cursor: none !important;
}

#magic-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    pointer-events: none;
    z-index: 99999;
}

#ball {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    border: 1.5px solid var(--cursor-border);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0.6);
    transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease, background-color 0.3s ease, transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Punto central naranja de 20x20px */
#ball::after {
    content: '';
    width: 20px;
    height: 20px;
    background: var(--cursor-border-active);
    border-radius: 50%;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Estados de Hover */
.ball-hover #ball {
    width: 80px;
    height: 80px;
    border-color: var(--cursor-border-active);
    background-color: var(--cursor-bg-active);
    transform: translate(-50%, -50%) scale(1.1);
    border-width: 1px;
}

.ball-hover #ball::after {
    transform: scale(0);
    opacity: 0;
}

/* Efecto magnético o "drag" (opcional para el futuro) */
#ball-loader {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid transparent;
    border-top-color: var(--cursor-border-active);
    border-radius: 50%;
    opacity: 0;
}

/* Deshabilitar en móviles */
@media (max-width: 1024px) {
    #magic-cursor {
        display: none !important;
    }
    body, a, button {
        cursor: auto !important;
    }
}
