/* Efectos Futuristas para el Carrusel */

/* Scan lines animation */
@keyframes scan {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 0 100%;
    }
}

.animate-scan {
    animation: scan 3s linear infinite;
}

/* Particle effects */
.particles-container {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(239, 68, 68, 0.6);
    border-radius: 50%;
    left: var(--x);
    top: var(--y);
    animation: float-particle var(--duration) ease-in-out infinite;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.8), 0 0 20px rgba(239, 68, 68, 0.4);
}

@keyframes float-particle {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-30px) translateX(10px);
        opacity: 1;
    }
}

/* Glow effects */
@keyframes glow-pulse {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

.glow-pulse {
    animation: glow-pulse 2s ease-in-out infinite;
}

/* Futuristic button effects */
.futuristic-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.futuristic-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.futuristic-btn:hover::before {
    left: 100%;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .particle {
        width: 3px;
        height: 3px;
    }
    
    .corner-accent {
        width: 12px !important;
        height: 12px !important;
    }
}

@media (max-width: 480px) {
    .particle {
        width: 2px;
        height: 2px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .particle {
        background: rgba(239, 68, 68, 0.8);
        box-shadow: 0 0 15px rgba(239, 68, 68, 1), 0 0 30px rgba(239, 68, 68, 0.6);
    }
}

/* Smooth transitions */
.futuristic-element {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.futuristic-element:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(239, 68, 68, 0.2);
}

/* Typography effects */
.futuristic-text {
    background: linear-gradient(135deg, #fff 0%, #f3f4f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dark .futuristic-text {
    background: linear-gradient(135deg, #f3f4f6 0%, #d1d5db 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Border effects */
.futuristic-border {
    position: relative;
}

.futuristic-border::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, transparent 0%, rgba(239, 68, 68, 0.5) 50%, transparent 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.futuristic-border:hover::after {
    opacity: 1;
}

/* Loading skeleton effect */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.shimmer {
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* Card hover effects */
.futuristic-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.futuristic-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(239, 68, 68, 0.25);
}
