/* ========================================
   DETALLES PREMIUM - TracktomotoR
   Ultra-Professional Experience
   ======================================== */

/* ========================================
   1. CURSOR PERSONALIZADO METÁLICO
   ======================================== */

/* Cursor default - cruz metálica */
body {
    cursor: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIHZpZXdCb3g9IjAgMCAzMiAzMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGNpcmNsZSBjeD0iMTYiIGN5PSIxNiIgcj0iMiIgZmlsbD0iIzAwRkZGRiIgb3BhY2l0eT0iMC44Ii8+CjxwYXRoIGQ9Ik0xNiA4VjI0TTE2IDhMMTMgMTFNMTYgOEwxOSAxMSIgc3Ryb2tlPSIjMDBGRkZGIiBzdHJva2Utd2lkdGg9IjEuNSIgb3BhY2l0eT0iMC42Ii8+CjxwYXRoIGQ9Ik04IDE2SDI0TTggMTZMMTEgMTNNOCAxNkwxMSAxOSIgc3Ryb2tlPSIjMDBGRkZGIiBzdHJva2Utd2lkdGg9IjEuNSIgb3BhY2l0eT0iMC42Ii8+Cjwvc3ZnPg==') 16 16, crosshair;
}

/* Cursor pointer - mano metálica */
a, button, .clickable,
.track-play, .btn-primary, .btn-outline,
.gallery-item, .merch-item {
    cursor: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIHZpZXdCb3g9IjAgMCAzMiAzMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTE2IDE2TDI0IDhNMjQgOEwyNCAyNE04IDI0TDI0IDgiIHN0cm9rZT0iI0ZGMDAwMCIgc3Ryb2tlLXdpZHRoPSIyIiBvcGFjaXR5PSIwLjgiLz4KPGNpcmNsZSBjeD0iMTYiIGN5PSIxNiIgcj0iOCIgc3Ryb2tlPSIjMDBGRkZGIiBzdHJva2Utd2lkdGg9IjEuNSIgZmlsbD0ibm9uZSIgb3BhY2l0eT0iMC42Ii8+CjxjaXJjbGUgY3g9IjE2IiBjeT0iMTYiIHI9IjMiIGZpbGw9IiMwMEZGRkYiIG9wYWNpdHk9IjEiLz4KPC9zdmc+') 16 16, pointer !important;
}

/* Cursor text */
input, textarea, [contenteditable] {
    cursor: text;
}

/* Cursor grab */
.draggable {
    cursor: grab;
}

.draggable:active {
    cursor: grabbing;
}

/* Cursor loading */
body.loading-cursor {
    cursor: wait;
}

/* ========================================
   2. GLOW PREMIUM EN HOVER
   ======================================== */

.premium-glow {
    position: relative;
    transition: all 0.3s ease;
}

.premium-glow::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg,
        transparent,
        rgba(0, 255, 255, 0.1),
        rgba(255, 0, 255, 0.1),
        transparent
    );
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: -1;
}

.premium-glow:hover::before {
    opacity: 1;
    animation: glow-rotate 3s linear infinite;
}

@keyframes glow-rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ========================================
   3. TOOLTIPS INTELIGENTES
   ======================================== */

[data-tooltip] {
    position: relative;
}

[data-tooltip]::before,
[data-tooltip]::after {
    position: absolute;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 10000;
}

[data-tooltip]::before {
    content: attr(data-tooltip);
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.95);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 4px;
    font-size: 12px;
    font-family: 'Rajdhani', sans-serif;
    color: #00ffff;
    white-space: nowrap;
    box-shadow: 0 4px 20px rgba(0, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

[data-tooltip]::after {
    content: '';
    bottom: calc(100% + 5px);
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(0, 255, 255, 0.3);
}

[data-tooltip]:hover::before,
[data-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Variantes de posición */
[data-tooltip-pos="right"]::before {
    bottom: auto;
    left: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%) translateX(-5px);
}

[data-tooltip-pos="right"]::after {
    bottom: auto;
    left: calc(100% + 5px);
    top: 50%;
    transform: translateY(-50%);
    border-color: transparent;
    border-right-color: rgba(0, 255, 255, 0.3);
}

/* ========================================
   4. SCROLL PREMIUM INDICATOR
   ======================================== */

.premium-scroll-indicator {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    z-index: 100;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.premium-scroll-indicator:hover {
    opacity: 1;
}

.scroll-dot {
    width: 10px;
    height: 10px;
    margin: 15px 0;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(0, 255, 255, 0.5);
    border-radius: 50%;
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
}

.scroll-dot.active {
    background: #00ffff;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.8);
    transform: scale(1.5);
}

.scroll-dot:hover {
    transform: scale(1.3);
    background: rgba(0, 255, 255, 0.5);
}

/* ========================================
   5. PREMIUM TEXT SELECTION
   ======================================== */

::selection {
    background: rgba(0, 255, 255, 0.3);
    color: #ffffff;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
}

::-moz-selection {
    background: rgba(0, 255, 255, 0.3);
    color: #ffffff;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
}

/* ========================================
   6. PREMIUM SCROLLBAR
   ======================================== */

/* Webkit browsers */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(0, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg,
        rgba(0, 255, 255, 0.3),
        rgba(255, 0, 255, 0.3)
    );
    border-radius: 6px;
    border: 1px solid rgba(0, 255, 255, 0.5);
    transition: all 0.3s;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg,
        rgba(0, 255, 255, 0.5),
        rgba(255, 0, 255, 0.5)
    );
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 255, 255, 0.3) rgba(0, 0, 0, 0.8);
}

/* ========================================
   7. FOCUS PREMIUM STYLES
   ======================================== */

:focus-visible {
    outline: 2px solid rgba(0, 255, 255, 0.5);
    outline-offset: 2px;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

button:focus-visible,
a:focus-visible {
    outline: 2px solid rgba(0, 255, 255, 0.5);
    outline-offset: 4px;
}

/* ========================================
   8. PREMIUM TRANSITIONS
   ======================================== */

.section {
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.section.entering {
    animation: section-enter 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes section-enter {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.98);
        filter: blur(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

/* ========================================
   9. PREMIUM LOADING STATES
   ======================================== */

.premium-loading {
    position: relative;
    overflow: hidden;
}

.premium-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(0, 255, 255, 0.2),
        rgba(255, 0, 255, 0.2),
        transparent
    );
    animation: premium-shimmer 1.5s infinite;
}

@keyframes premium-shimmer {
    to {
        left: 100%;
    }
}

/* ========================================
   10. BREATH EFFECT PREMIUM
   ======================================== */

.breath-effect {
    animation: breath 4s ease-in-out infinite;
}

@keyframes breath {
    0%, 100% {
        transform: scale(1);
        filter: brightness(1);
    }
    50% {
        transform: scale(1.02);
        filter: brightness(1.1);
    }
}

/* ========================================
   11. NEON TEXT EFFECT
   ======================================== */

.neon-text {
    text-shadow:
        0 0 10px currentColor,
        0 0 20px currentColor,
        0 0 30px currentColor,
        0 0 40px rgba(0, 255, 255, 0.5);
    animation: neon-flicker 3s infinite alternate;
}

@keyframes neon-flicker {
    0%, 100% {
        opacity: 1;
        filter: brightness(1);
    }
    95% {
        opacity: 0.95;
        filter: brightness(1.1);
    }
}

/* ========================================
   12. HOLOGRAPHIC EFFECT
   ======================================== */

.holographic {
    position: relative;
    background: linear-gradient(
        45deg,
        #ff0080,
        #ff8c00,
        #40e0d0,
        #ff0080
    );
    background-size: 400% 400%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: holographic-shift 3s ease infinite;
}

@keyframes holographic-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* ========================================
   13. GLASS MORPHISM PREMIUM
   ======================================== */

.glass-premium {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3);
}

/* ========================================
   14. PREMIUM SHADOWS
   ======================================== */

.premium-shadow-sm {
    box-shadow:
        0 2px 10px rgba(0, 255, 255, 0.1),
        0 4px 20px rgba(255, 0, 255, 0.05);
}

.premium-shadow-md {
    box-shadow:
        0 4px 20px rgba(0, 255, 255, 0.2),
        0 8px 40px rgba(255, 0, 255, 0.1);
}

.premium-shadow-lg {
    box-shadow:
        0 10px 40px rgba(0, 255, 255, 0.3),
        0 20px 80px rgba(255, 0, 255, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* ========================================
   15. NOISE TEXTURE OVERLAY
   ======================================== */

.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.03;
    z-index: 1;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMDAiIGhlaWdodD0iMzAwIj4KPGZpbHRlciBpZD0ibm9pc2UiPgo8ZmVUdXJidWxlbmNlIGJhc2VGcmVxdWVuY3k9IjAuOSIgbnVtT2N0YXZlcz0iNCIgLz4KPC9maWx0ZXI+CjxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbHRlcj0idXJsKCNub2lzZSkiIG9wYWNpdHk9IjEiLz4KPC9zdmc+');
}

/* ========================================
   16. PREMIUM ANIMATIONS ON SCROLL
   ======================================== */

.reveal-premium {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-premium.revealed {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.reveal-premium.revealed:nth-child(1) { transition-delay: 0.1s; }
.reveal-premium.revealed:nth-child(2) { transition-delay: 0.2s; }
.reveal-premium.revealed:nth-child(3) { transition-delay: 0.3s; }

/* ========================================
   17. STATUS INDICATORS
   ======================================== */

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
}

.status-online {
    background: #00ff00;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
    animation: pulse-status 2s infinite;
}

.status-busy {
    background: #ffaa00;
    box-shadow: 0 0 10px rgba(255, 170, 0, 0.5);
}

.status-offline {
    background: #666;
}

@keyframes pulse-status {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
}

/* ========================================
   13. SOUND TOGGLE BUTTON
   ======================================== */

.sound-toggle {
    position: relative;
    background: transparent;
    border: 1px solid rgba(0, 255, 255, 0.3);
    color: #00ffff;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow: hidden;
}

.sound-toggle::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 255, 255, 0.1),
        transparent
    );
    opacity: 0;
    transition: opacity 0.3s;
}

.sound-toggle:hover {
    transform: scale(1.1);
    border-color: #00ffff;
    box-shadow:
        0 0 20px rgba(0, 255, 255, 0.4),
        inset 0 0 10px rgba(0, 255, 255, 0.1);
}

.sound-toggle:hover::before {
    opacity: 1;
}

.sound-toggle.active {
    background: rgba(0, 255, 255, 0.1);
    border-color: #00ffff;
    animation: pulse-glow-soft 2s infinite;
}

@keyframes pulse-glow-soft {
    0%, 100% {
        box-shadow:
            0 0 10px rgba(0, 255, 255, 0.3),
            inset 0 0 5px rgba(0, 255, 255, 0.1);
    }
    50% {
        box-shadow:
            0 0 25px rgba(0, 255, 255, 0.5),
            inset 0 0 10px rgba(0, 255, 255, 0.2);
    }
}

.sound-toggle svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s;
}

.sound-toggle:active svg {
    transform: scale(0.9);
}

/* Sound wave animation when active */
.sound-toggle.active::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid rgba(0, 255, 255, 0.5);
    animation: sound-wave-pulse 1.5s infinite;
    pointer-events: none;
}

@keyframes sound-wave-pulse {
    0% {
        width: 100%;
        height: 100%;
        opacity: 0.5;
    }
    100% {
        width: 200%;
        height: 200%;
        opacity: 0;
    }
}

/* ========================================
   RESPONSIVE PREMIUM
   ======================================== */

@media (max-width: 768px) {
    /* Simplificar cursores en móvil */
    body,
    a, button, .clickable {
        cursor: default !important;
    }

    /* Desactivar algunos efectos pesados */
    .noise-overlay {
        display: none;
    }

    /* Tooltips más simples */
    [data-tooltip]::before,
    [data-tooltip]::after {
        display: none;
    }

    /* Hide sound toggle on mobile */
    .sound-toggle {
        display: none;
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    .premium-glow::before,
    .noise-overlay,
    .breath-effect,
    .holographic {
        display: none !important;
    }
}