/* ═══════════════════════════════════════════════════════════
   VISIO — Components v3
   Cursor con física. Detalles que se descubren.
   ═══════════════════════════════════════════════════════════ */

/* ── Cursor ───────────────────────────────────────────────── */

* {
    cursor: none;
}

.cursor {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
}

.cursor-dot {
    position: fixed;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    will-change: transform;
}

.cursor-ring {
    position: fixed;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    will-change: transform;
}

.cursor-text {
    font-family: var(--font-mono);
    font-size: 8px;
    color: var(--white);
    letter-spacing: 0.1em;
    opacity: 0;
    white-space: nowrap;
    text-transform: uppercase;
}

/* ── Scroll indicator pulse ───────────────────────────────── */

.hero__scroll {
    animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 1;
    }
}

/* ── Project hover ────────────────────────────────────────── */

.project-item {
    cursor: none;
}

/* ── Contact isotipo idle breathing ───────────────────────── */

.contact__isotipo svg {
    animation: breathe 4s ease-in-out infinite;
}

@keyframes breathe {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.03);
    }
}

/* ── Selection ────────────────────────────────────────────── */

::selection {
    background: var(--accent);
    color: var(--black);
}

/* ── Touch device overrides ───────────────────────────────── */

@media (pointer: coarse) {
    * {
        cursor: auto;
    }

    .cursor,
    .cursor-dot,
    .cursor-ring {
        display: none !important;
    }

    .project-item {
        cursor: pointer;
    }
}