/* ============================================
   EFECTOS CYBERPUNK AVANZADOS
   ============================================ */

/* Importar Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Roboto+Mono:wght@400;700&family=Share+Tech+Mono&display=swap');

/* ============================================
   ANIMACIONES GLITCH
   ============================================ */

@keyframes glitch {
    0% {
        text-shadow: -2px 0 #ff00ff, 2px 0 #00ffff;
    }
    20% {
        text-shadow: -2px 0 #ff00ff, 2px 0 #00ffff;
    }
    40% {
        text-shadow: -2px 0 #00ffff, 2px 0 #ff00ff;
    }
    60% {
        text-shadow: -2px 0 #ff00ff, 2px 0 #00ffff;
    }
    80% {
        text-shadow: -2px 0 #00ffff, 2px 0 #ff00ff;
    }
    100% {
        text-shadow: -2px 0 #ff00ff, 2px 0 #00ffff;
    }
}

@keyframes glitch-animation {
    0% {
        clip-path: inset(40% 0 61% 0);
        transform: translate(-2px, -2px);
    }
    20% {
        clip-path: inset(92% 0 1% 0);
        transform: translate(2px, 2px);
    }
    40% {
        clip-path: inset(43% 0 1% 0);
        transform: translate(-2px, 2px);
    }
    60% {
        clip-path: inset(25% 0 58% 0);
        transform: translate(2px, -2px);
    }
    80% {
        clip-path: inset(54% 0 7% 0);
        transform: translate(-2px, -2px);
    }
    100% {
        clip-path: inset(58% 0 43% 0);
        transform: translate(2px, 2px);
    }
}

@keyframes neon-glow {
    0%, 100% {
        text-shadow: 0 0 10px #00ffff, 0 0 20px #00ffff, 0 0 30px #00ffff;
    }
    50% {
        text-shadow: 0 0 20px #00ffff, 0 0 30px #00ffff, 0 0 40px #00ffff;
    }
}

@keyframes neon-glow-magenta {
    0%, 100% {
        text-shadow: 0 0 10px #ff00ff, 0 0 20px #ff00ff, 0 0 30px #ff00ff;
    }
    50% {
        text-shadow: 0 0 20px #ff00ff, 0 0 30px #ff00ff, 0 0 40px #ff00ff;
    }
}

@keyframes pulse-border {
    0%, 100% {
        border-color: #00ffff;
        box-shadow: 0 0 10px rgba(0, 255, 255, 0.3), inset 0 0 10px rgba(0, 255, 255, 0.1);
    }
    50% {
        border-color: #ff00ff;
        box-shadow: 0 0 20px rgba(255, 0, 255, 0.5), inset 0 0 10px rgba(255, 0, 255, 0.2);
    }
}

@keyframes scanlines {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 0 2px;
    }
}

@keyframes flicker {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.95;
    }
}

/* ============================================
   EFECTOS DE NEÓN
   ============================================ */

.neon-text {
    color: #00ffff;
    text-shadow: 0 0 10px #00ffff, 0 0 20px #00ffff, 0 0 30px #00ffff, 0 0 40px #00ffff;
    font-weight: 700;
    letter-spacing: 2px;
}

.neon-text-magenta {
    color: #ff00ff;
    text-shadow: 0 0 10px #ff00ff, 0 0 20px #ff00ff, 0 0 30px #ff00ff, 0 0 40px #ff00ff;
    font-weight: 700;
    letter-spacing: 2px;
}

.neon-text-violet {
    color: #9d00ff;
    text-shadow: 0 0 10px #9d00ff, 0 0 20px #9d00ff, 0 0 30px #9d00ff, 0 0 40px #9d00ff;
    font-weight: 700;
    letter-spacing: 2px;
}

.neon-border {
    border: 2px solid #00ffff;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5), inset 0 0 10px rgba(0, 255, 255, 0.1);
}

.neon-border-magenta {
    border: 2px solid #ff00ff;
    box-shadow: 0 0 10px rgba(255, 0, 255, 0.5), inset 0 0 10px rgba(255, 0, 255, 0.1);
}

/* ============================================
   EFECTOS DE GLITCH
   ============================================ */

.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    animation: glitch-animation 2.5s infinite;
    color: #ff00ff;
    z-index: -1;
}

.glitch::after {
    animation: glitch-animation 2.5s infinite reverse;
    color: #00ffff;
    z-index: -2;
}

.glitch:hover::before,
.glitch:hover::after {
    animation-duration: 0.5s;
}

/* ============================================
   EFECTOS DE SCANLINES
   ============================================ */

.scanlines {
    position: relative;
    overflow: hidden;
}

.scanlines::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.15),
        rgba(0, 0, 0, 0.15) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
    animation: scanlines 8s linear infinite;
}

/* ============================================
   EFECTO GRID
   ============================================ */

.grid-background {
    background-image: 
        linear-gradient(0deg, transparent 24%, rgba(0, 255, 255, 0.05) 25%, rgba(0, 255, 255, 0.05) 26%, transparent 27%, transparent 74%, rgba(0, 255, 255, 0.05) 75%, rgba(0, 255, 255, 0.05) 76%, transparent 77%, transparent),
        linear-gradient(90deg, transparent 24%, rgba(0, 255, 255, 0.05) 25%, rgba(0, 255, 255, 0.05) 26%, transparent 27%, transparent 74%, rgba(0, 255, 255, 0.05) 75%, rgba(0, 255, 255, 0.05) 76%, transparent 77%, transparent);
    background-size: 50px 50px;
}

/* ============================================
   EFECTOS DE HOVER
   ============================================ */

.hover-glow {
    transition: all 0.3s ease;
}

.hover-glow:hover {
    text-shadow: 0 0 10px currentColor;
    filter: brightness(1.2);
}

.hover-pulse {
    transition: all 0.3s ease;
}

.hover-pulse:hover {
    animation: pulse-border 0.5s ease;
}

/* ============================================
   EFECTO DE PARPADEO
   ============================================ */

.flicker {
    animation: flicker 0.15s infinite;
}

.flicker-slow {
    animation: flicker 0.5s infinite;
}

/* ============================================
   EFECTOS DE FONDO
   ============================================ */

.cyberpunk-bg {
    background-color: #050505;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(0, 255, 255, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 0, 255, 0.03) 0%, transparent 50%);
}

.cyberpunk-bg-dark {
    background-color: #0a0a0a;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(0, 255, 255, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 0, 255, 0.02) 0%, transparent 50%);
}

/* ============================================
   LÍNEAS DE NEÓN
   ============================================ */

.neon-line {
    height: 2px;
    background: linear-gradient(90deg, transparent, #00ffff, transparent);
    box-shadow: 0 0 10px #00ffff;
    margin: 1rem 0;
}

.neon-line-magenta {
    height: 2px;
    background: linear-gradient(90deg, transparent, #ff00ff, transparent);
    box-shadow: 0 0 10px #ff00ff;
    margin: 1rem 0;
}

.neon-line-vertical {
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, transparent, #00ffff, transparent);
    box-shadow: 0 0 10px #00ffff;
}

/* ============================================
   EFECTOS DE TIPOGRAFÍA
   ============================================ */

.title-glow {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #00ffff;
    text-shadow: 0 0 10px #00ffff, 0 0 20px #00ffff, 0 0 30px #00ffff;
    animation: neon-glow 3s ease-in-out infinite;
}

.title-glow-magenta {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #ff00ff;
    text-shadow: 0 0 10px #ff00ff, 0 0 20px #ff00ff, 0 0 30px #ff00ff;
    animation: neon-glow-magenta 3s ease-in-out infinite;
}

.tech-font {
    font-family: 'Share Tech Mono', monospace;
    letter-spacing: 1px;
}

/* ============================================
   EFECTOS DE BOTONES CYBERPUNK
   ============================================ */

.btn-cyberpunk {
    position: relative;
    padding: 0.75rem 2rem;
    border: 2px solid #00ffff;
    background-color: transparent;
    color: #00ffff;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
    font-family: 'Roboto Mono', monospace;
    overflow: hidden;
}

.btn-cyberpunk::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: #00ffff;
    z-index: -1;
    transition: left 0.3s ease;
}

.btn-cyberpunk:hover {
    color: #050505;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.8);
}

.btn-cyberpunk:hover::before {
    left: 0;
}

.btn-cyberpunk-magenta {
    border-color: #ff00ff;
    color: #ff00ff;
    box-shadow: 0 0 10px rgba(255, 0, 255, 0.3);
}

.btn-cyberpunk-magenta::before {
    background-color: #ff00ff;
}

.btn-cyberpunk-magenta:hover {
    color: #050505;
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.8);
}

/* ============================================
   EFECTOS DE TARJETAS
   ============================================ */

.card-cyberpunk {
    background-color: #0a0a0a;
    border: 1px solid #00ffff;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.1);
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card-cyberpunk::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 255, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card-cyberpunk:hover {
    border-color: #ff00ff;
    box-shadow: 0 0 25px rgba(255, 0, 255, 0.3);
}

.card-cyberpunk:hover::before {
    opacity: 1;
}

/* ============================================
   EFECTOS ESPECIALES
   ============================================ */

.distortion {
    filter: url(#distortion);
}

.chromatic-aberration {
    position: relative;
}

.chromatic-aberration::before,
.chromatic-aberration::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

.chromatic-aberration::before {
    color: #ff00ff;
    left: -2px;
}

.chromatic-aberration::after {
    color: #00ffff;
    left: 2px;
}

/* ============================================
   EFECTOS DE ENTRADA
   ============================================ */

@keyframes slide-in {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.slide-in {
    animation: slide-in 0.5s ease-out;
}

.fade-in {
    animation: fade-in 0.5s ease-out;
}
