/* ==========================================================================
   PhotonCode · Cursor minimalista: un punto morado.
   En enlaces se vuelve un aro, en proyectos un círculo con "Ver",
   en campos de texto una barra. Solo con mouse.
   ========================================================================== */
@media (hover: hover) and (pointer: fine) {
    html.has-cursor,
    html.has-cursor body,
    html.has-cursor a,
    html.has-cursor button,
    html.has-cursor [role="button"],
    html.has-cursor label,
    html.has-cursor summary {
        cursor: none;
    }

    html.has-cursor :is(input, textarea, [contenteditable="true"]) {
        cursor: text;
    }
}

.pc-cursor {
    --c1: #6c47ff;
    --c2: #a78bfa;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 2147483600;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
    will-change: transform;
}

.pc-cursor.is-in {
    opacity: 1;
}

.pc-cursor-dot {
    position: absolute;
    left: 0;
    top: 0;
    width: 14px;
    height: 14px;
    margin: -7px 0 0 -7px;
    border-radius: 50%;
    background: var(--c1);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35);
    transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1), height 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        margin 0.45s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.3s ease, border-radius 0.3s ease, transform 0.2s ease;
}

.pc-cursor-label {
    position: absolute;
    left: 0;
    top: 0;
    color: #fff;
    font: 600 13px/1 'Inter', system-ui, sans-serif;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.4);
    transition: opacity 0.25s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Enlaces y botones: aro */
.pc-cursor[data-mode="link"] .pc-cursor-dot {
    width: 54px;
    height: 54px;
    margin: -27px 0 0 -27px;
    background: transparent;
    border: 1.5px solid var(--c2);
    box-shadow: none;
}

/* Proyectos y videos: círculo con texto */
.pc-cursor[data-mode="view"] .pc-cursor-dot {
    width: 104px;
    height: 104px;
    margin: -52px 0 0 -52px;
    box-shadow: 0 18px 40px -12px rgba(108, 71, 255, 0.7);
}

.pc-cursor[data-mode="view"] .pc-cursor-label {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Campos de texto: barra */
.pc-cursor[data-mode="text"] .pc-cursor-dot {
    width: 3px;
    height: 22px;
    margin: -11px 0 0 -1.5px;
    border-radius: 2px;
}

.pc-cursor.is-down .pc-cursor-dot {
    transform: scale(0.8);
}

@media (hover: none), (pointer: coarse) {
    .pc-cursor {
        display: none;
    }
}
