/* Gesture Navigation CSS para APREMAT */
.swipe-indicator {
    position: fixed;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    pointer-events: none;
    transform: translate(-50%, -50%);
    display: none;
    animation: swipeIndicatorFade 0.3s ease-out;
}

.swipe-indicator.swipe-left {
    background: rgba(34, 197, 94, 0.9);
}

.swipe-indicator.swipe-right {
    background: rgba(59, 130, 246, 0.9);
}

@keyframes swipeIndicatorFade {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.nav-indicator {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-indicator:hover {
    opacity: 1;
}

.nav-arrow {
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.nav-arrow:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.nav-arrow:active {
    transform: scale(0.95);
}

.gesture-loading {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10001;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 500;
    animation: gestureLoadingPulse 1s ease-in-out infinite;
}

@keyframes gestureLoadingPulse {
    0%, 100% {
        opacity: 0.7;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.05);
    }
}

/* Feedback visual para touch */
.touch-active * {
    transition: none !important;
}

/* Optimizaciones para móviles */
@media (max-width: 768px) {
    .nav-indicator {
        right: 10px;
        opacity: 0.3;
    }
    
    .nav-indicator:active {
        opacity: 1;
    }
    
    .swipe-indicator {
        font-size: 12px;
        padding: 6px 12px;
    }
}

/* Reducir animaciones para usuarios que prefieren menos movimiento */
@media (prefers-reduced-motion: reduce) {
    .swipe-indicator,
    .nav-arrow,
    .gesture-loading {
        animation: none;
        transition: none;
    }
}

/* Modo oscuro */
@media (prefers-color-scheme: dark) {
    .swipe-indicator {
        background: rgba(255, 255, 255, 0.9);
        color: black;
    }
    
    .nav-arrow {
        background: rgba(255, 255, 255, 0.1);
        color: white;
    }
    
    .gesture-loading {
        background: rgba(255, 255, 255, 0.9);
        color: black;
    }
}
