
/* ============================================
   CURSOR PERSONALIZADO
   ============================================ */

#custom-cursor {
    position: fixed;
    width: 48px;
    height: 48px;
    pointer-events: none;
    z-index: 9999;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
    will-change: transform;
}

#custom-cursor.visible {
    opacity: 1;
}

#custom-cursor img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

body.custom-cursor-active {
    cursor: none !important;
}

body.custom-cursor-active * {
    cursor: none !important;
}

body.custom-cursor-active a,
body.custom-cursor-active a:hover,
body.custom-cursor-active button,
body.custom-cursor-active button:hover,
body.custom-cursor-active input,
body.custom-cursor-active input:hover,
body.custom-cursor-active select,
body.custom-cursor-active select:hover,
body.custom-cursor-active textarea,
body.custom-cursor-active textarea:hover,
body.custom-cursor-active [role="button"],
body.custom-cursor-active [role="button"]:hover,
body.custom-cursor-active .btn,
body.custom-cursor-active .btn:hover,
body.custom-cursor-active .btn-primary,
body.custom-cursor-active .btn-primary:hover,
body.custom-cursor-active .drillin,
body.custom-cursor-active .drillin:hover,
body.custom-cursor-active label,
body.custom-cursor-active label:hover,
body.custom-cursor-active .nav>li>a,
body.custom-cursor-active .nav>li>a:hover,
body.custom-cursor-active .navbar-nav>li>a,
body.custom-cursor-active .navbar-nav>li>a:hover,
body.custom-cursor-active [onclick],
body.custom-cursor-active [onclick]:hover,
body.custom-cursor-active [style*="cursor: pointer"],
body.custom-cursor-active [style*="cursor: pointer"]:hover {
    cursor: none !important;
}

#custom-cursor.hover-active img {
    transform: scale(1.2);
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

#custom-cursor.hover-active {
    transition: transform 0.15s ease-out;
}

/* Deshabilitar cursor personalizado en dispositivos táctiles */
@media (pointer: coarse), (hover: none) {
    body.custom-cursor-active,
    body.custom-cursor-active *,
    body.custom-cursor-active a,
    body.custom-cursor-active a:hover,
    body.custom-cursor-active button,
    body.custom-cursor-active button:hover,
    body.custom-cursor-active input,
    body.custom-cursor-active input:hover,
    body.custom-cursor-active select,
    body.custom-cursor-active select:hover,
    body.custom-cursor-active textarea,
    body.custom-cursor-active textarea:hover,
    body.custom-cursor-active [role="button"],
    body.custom-cursor-active [role="button"]:hover,
    body.custom-cursor-active .btn,
    body.custom-cursor-active .btn:hover,
    body.custom-cursor-active .btn-primary,
    body.custom-cursor-active .btn-primary:hover,
    body.custom-cursor-active .drillin,
    body.custom-cursor-active .drillin:hover,
    body.custom-cursor-active label,
    body.custom-cursor-active label:hover,
    body.custom-cursor-active .nav>li>a,
    body.custom-cursor-active .nav>li>a:hover,
    body.custom-cursor-active .navbar-nav>li>a,
    body.custom-cursor-active .navbar-nav>li>a:hover,
    body.custom-cursor-active [onclick],
    body.custom-cursor-active [onclick]:hover,
    body.custom-cursor-active [style*="cursor: pointer"],
    body.custom-cursor-active [style*="cursor: pointer"]:hover {
        cursor: auto !important;
    }

    #custom-cursor {
        display: none !important;
    }
}

/* Animación de entrada del cursor */
@keyframes cursorEntrada {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

#custom-cursor.visible {
    animation: cursorEntrada 0.1s ease-out;
}