/* ==========================================================================
   Custom Magnetic Cursor (Awwwards SOTD UX - Refined)
   ========================================================================== */

#custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    pointer-events: none;
    z-index: 15000;
}

.cursor-dot {
    position: absolute;
    width: 5px;
    height: 5px;
    background-color: var(--accent-gold, #d4af37);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.15s ease, opacity 0.2s ease;
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.6);
}

.cursor-ring {
    position: absolute;
    width: 38px;
    height: 38px;
    border: 1.5px solid rgba(212, 175, 55, 0.85);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    backdrop-filter: blur(2px);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
    transition: width 0.25s cubic-bezier(0.25, 1, 0.5, 1),
                height 0.25s cubic-bezier(0.25, 1, 0.5, 1),
                background-color 0.25s ease,
                border-color 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cursor-label {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #ffffff;
    text-transform: uppercase;
    opacity: 0;
    white-space: nowrap;
    transition: opacity 0.2s ease;
    pointer-events: none;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

/* Hovering Artwork State */
#custom-cursor.is-hovering-artwork .cursor-ring {
    width: 76px;
    height: 76px;
    background-color: rgba(15, 15, 20, 0.75);
    border-color: var(--accent-gold, #d4af37);
}

#custom-cursor.is-hovering-artwork .cursor-label {
    opacity: 1;
}

#custom-cursor.is-hovering-artwork .cursor-dot {
    opacity: 0;
}

/* Dragging State */
#custom-cursor.is-dragging .cursor-ring {
    width: 64px;
    height: 64px;
    background-color: rgba(212, 175, 55, 0.2);
    border-color: var(--accent-gold, #d4af37);
}

#custom-cursor.is-dragging .cursor-label {
    opacity: 1;
}

/* Hovering Button State */
#custom-cursor.is-hovering-interactive .cursor-ring {
    width: 52px;
    height: 52px;
    background-color: rgba(255, 255, 255, 0.12);
    border-color: var(--accent-gold, #d4af37);
    box-shadow: 0 0 18px rgba(212, 175, 55, 0.35);
}

/* Global Unified Custom Cursor: Hide native OS cursor ONLY when CustomCursor is active on desktop */
@media (hover: hover) and (pointer: fine) {
    body.has-custom-cursor,
    body.has-custom-cursor #sitio,
    body.has-custom-cursor #galeria-sala,
    body.has-custom-cursor #galeria-sala canvas,
    body.has-custom-cursor #dossier-expo,
    body.has-custom-cursor nav,
    body.has-custom-cursor button,
    body.has-custom-cursor a,
    body.has-custom-cursor summary,
    body.has-custom-cursor [role="button"] {
        cursor: none !important;
    }
}

@media (hover: none), (pointer: coarse) {
    #custom-cursor {
        display: none !important;
    }
}
