/* =========================================
   SHK — Cursor tecnológico (solo sitio público)
   ========================================= */

@media (pointer: fine) and (prefers-reduced-motion: no-preference) {
    body.shk-custom-cursor,
    body.shk-custom-cursor a,
    body.shk-custom-cursor button,
    body.shk-custom-cursor [role="button"],
    body.shk-custom-cursor label,
    body.shk-custom-cursor select,
    body.shk-custom-cursor summary {
        cursor: none !important;
    }

    body.shk-custom-cursor input:not([type="text"]):not([type="email"]):not([type="search"]):not([type="tel"]):not([type="url"]):not([type="password"]):not([type="number"]),
    body.shk-custom-cursor textarea {
        cursor: none !important;
    }
}

.shk-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    pointer-events: none;
    z-index: 100000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.shk-cursor.is-visible {
    opacity: 1;
    visibility: visible;
}

.shk-cursor__orbit,
.shk-cursor__ring,
.shk-cursor__core,
.shk-cursor__cross {
    position: absolute;
    top: 0;
    left: 0;
    will-change: transform;
}

/* Anillo exterior — retícula tech con rotación suave */
.shk-cursor__orbit {
    width: 52px;
    height: 52px;
    margin: -26px 0 0 -26px;
    border-radius: 50%;
    border: 1px dashed rgba(0, 198, 255, 0.45);
    box-shadow:
        0 0 18px rgba(112, 0, 223, 0.25),
        inset 0 0 12px rgba(112, 0, 223, 0.08);
    animation: shk-cursor-orbit-spin 8s linear infinite;
}

.shk-cursor__orbit::before,
.shk-cursor__orbit::after {
    content: "";
    position: absolute;
    background: rgba(0, 198, 255, 0.55);
    border-radius: 1px;
}

.shk-cursor__orbit::before {
    top: 50%;
    left: -4px;
    width: 8px;
    height: 1px;
    transform: translateY(-50%);
}

.shk-cursor__orbit::after {
    left: 50%;
    top: -4px;
    width: 1px;
    height: 8px;
    transform: translateX(-50%);
}

/* Anillo intermedio — sigue al mouse con retardo */
.shk-cursor__ring {
    width: 28px;
    height: 28px;
    margin: -14px 0 0 -14px;
    border-radius: 50%;
    border: 1.5px solid rgba(112, 0, 223, 0.85);
    background: radial-gradient(circle, rgba(112, 0, 223, 0.12) 0%, transparent 70%);
    box-shadow: 0 0 14px rgba(112, 0, 223, 0.35);
    transition: width 0.25s ease, height 0.25s ease, margin 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

/* Núcleo — punto de precisión */
.shk-cursor__core {
    width: 6px;
    height: 6px;
    margin: -3px 0 0 -3px;
    border-radius: 50%;
    background: #fff;
    box-shadow:
        0 0 8px rgba(255, 255, 255, 0.9),
        0 0 16px rgba(0, 198, 255, 0.6);
    transition: transform 0.2s ease, width 0.2s ease, height 0.2s ease, margin 0.2s ease;
}

/* Líneas de mira (crosshair) */
.shk-cursor__cross {
    width: 22px;
    height: 22px;
    margin: -11px 0 0 -11px;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.shk-cursor__cross::before,
.shk-cursor__cross::after {
    content: "";
    position: absolute;
    background: linear-gradient(90deg, transparent, rgba(0, 198, 255, 0.75), transparent);
    border-radius: 1px;
}

.shk-cursor__cross::before {
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    transform: translateY(-50%);
}

.shk-cursor__cross::after {
    left: 50%;
    top: 0;
    width: 1px;
    height: 100%;
    transform: translateX(-50%);
    background: linear-gradient(180deg, transparent, rgba(0, 198, 255, 0.75), transparent);
}

/* Hover sobre elementos interactivos */
.shk-cursor.is-hover .shk-cursor__orbit {
    border-color: rgba(0, 198, 255, 0.75);
    box-shadow:
        0 0 28px rgba(0, 198, 255, 0.35),
        inset 0 0 16px rgba(112, 0, 223, 0.15);
    animation-duration: 3s;
}

.shk-cursor.is-hover .shk-cursor__ring {
    width: 44px;
    height: 44px;
    margin: -22px 0 0 -22px;
    border-color: rgba(0, 198, 255, 0.95);
    box-shadow: 0 0 22px rgba(0, 198, 255, 0.45);
}

.shk-cursor.is-hover .shk-cursor__core {
    width: 8px;
    height: 8px;
    margin: -4px 0 0 -4px;
    background: var(--secondary-glow, #00c6ff);
    box-shadow:
        0 0 10px rgba(0, 198, 255, 0.95),
        0 0 24px rgba(112, 0, 223, 0.5);
}

.shk-cursor.is-hover .shk-cursor__cross {
    opacity: 1;
}

/* Click */
.shk-cursor.is-active .shk-cursor__ring {
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border-color: #fff;
}

.shk-cursor.is-active .shk-cursor__core {
    transform: scale(0.65);
}

.shk-cursor.is-active .shk-cursor__orbit {
    transform: scale(0.92);
}

@keyframes shk-cursor-orbit-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
