/* ===== LANDING PAGE CINEMATOGRÁFICA - ANIMACIONES ===== */

/* Importar fuentes temáticas */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Rajdhani:wght@300;400;500;600;700&family=Exo+2:wght@300;400;500;600;700;800;900&display=swap');

/* Variables para animaciones */
:root {
    --neon-blue: #00ffff;
    --neon-pink: #ff00ff;
    --neon-green: #00ff00;
    --neon-orange: #ff6600;
    --cyber-purple: #8a2be2;
    --energy-yellow: #ffff00;
    --glitch-red: #ff0040;
    --glitch-cyan: #00ffff;
    --parallax-speed: 0.5s;
    --particle-count: 50;
}

/* ===== INTRO CINEMATOGRÁFICA ===== */
.cinematic-intro {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(45deg, #000000, #1a0033, #000000);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: introFadeOut 4s ease-in-out 3s forwards;
}

.intro-content {
    text-align: center;
    color: var(--neon-blue);
    font-family: 'Orbitron', monospace;
}

.intro-logo {
    font-size: 4rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    animation: logoGlow 2s ease-in-out infinite alternate, logoScale 3s ease-out;
    text-shadow: 
        0 0 10px var(--neon-blue),
        0 0 20px var(--neon-blue),
        0 0 30px var(--neon-blue),
        0 0 40px var(--neon-blue);
}

.intro-subtitle {
    font-size: 1.5rem;
    margin-top: 1rem;
    opacity: 0;
    animation: subtitleFadeIn 1s ease-out 1.5s forwards;
    color: var(--neon-pink);
    text-shadow: 0 0 10px var(--neon-pink);
}

/* ===== HERO SECTION PARALLAX ===== */
.hero-parallax {
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a0033 50%, #000000 100%);
}

.parallax-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 120%;
    height: 120%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.parallax-bg {
    z-index: 1;
    animation: parallaxFloat 20s ease-in-out infinite;
    background: radial-gradient(circle at 30% 70%, rgba(0, 255, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 30%, rgba(255, 0, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 50% 50%, rgba(0, 255, 0, 0.05) 0%, transparent 50%);
}

.parallax-particles {
    z-index: 2;
    pointer-events: none;
}

.parallax-content {
    z-index: 3;
    position: relative;
    text-align: center;
    color: white;
    max-width: 1200px;
    padding: 0 2rem;
}

/* ===== TÍTULO PRINCIPAL ÉPICO ===== */
.epic-title {
    font-family: 'Exo 2', sans-serif;
    font-size: clamp(3rem, 8vw, 8rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
    position: relative;
    animation: titleGlitch 4s ease-in-out infinite;
}

.epic-title::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: var(--glitch-red);
    animation: glitchEffect1 2s infinite;
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
}

.epic-title::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: var(--glitch-cyan);
    animation: glitchEffect2 2s infinite;
    clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
}

.epic-subtitle {
    font-family: 'Rajdhani', sans-serif;
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: 300;
    margin-bottom: 3rem;
    opacity: 0;
    animation: subtitleSlideUp 1s ease-out 1s forwards;
    color: var(--neon-blue);
    text-shadow: 0 0 20px var(--neon-blue);
}

/* ===== BOTONES ÉPICOS ===== */
.epic-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.btn-epic {
    position: relative;
    padding: 1.5rem 3rem;
    font-family: 'Orbitron', monospace;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: transparent;
    border: 2px solid var(--neon-blue);
    color: var(--neon-blue);
    text-decoration: none;
    overflow: hidden;
    transition: all 0.3s ease;
    clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}

.btn-epic::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--neon-blue), transparent);
    transition: left 0.5s ease;
}

.btn-epic:hover {
    color: #000;
    text-shadow: none;
    box-shadow: 
        0 0 20px var(--neon-blue),
        inset 0 0 20px var(--neon-blue);
    transform: translateY(-5px) scale(1.05);
}

.btn-epic:hover::before {
    left: 100%;
}

.btn-epic.secondary {
    border-color: var(--neon-pink);
    color: var(--neon-pink);
}

.btn-epic.secondary::before {
    background: linear-gradient(90deg, transparent, var(--neon-pink), transparent);
}

.btn-epic.secondary:hover {
    box-shadow: 
        0 0 20px var(--neon-pink),
        inset 0 0 20px var(--neon-pink);
}

/* ===== CARRUSEL DE CATEGORÍAS ===== */
.categories-carousel {
    position: relative;
    height: 100vh;
    overflow: hidden;
    background: #000;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateX(100%);
    transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel-slide.active {
    opacity: 1;
    transform: translateX(0);
}

.carousel-slide.prev {
    transform: translateX(-100%);
}

.slide-anime {
    background: linear-gradient(135deg, #ff6b6b, #4ecdc4, #45b7d1);
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
}

.slide-gaming {
    background: linear-gradient(135deg, #667eea, #764ba2, #f093fb);
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
}

.slide-3d {
    background: linear-gradient(135deg, #ffecd2, #fcb69f, #ff9a9e);
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
}

.slide-content {
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 0 2rem;
}

.slide-title {
    font-family: 'Exo 2', sans-serif;
    font-size: clamp(2.5rem, 6vw, 6rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: slideInUp 0.8s ease-out;
}

.slide-description {
    font-family: 'Rajdhani', sans-serif;
    font-size: clamp(1.1rem, 2.5vw, 1.8rem);
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInDelay 1s ease-out 0.5s forwards;
}

/* ===== NAVEGACIÓN DEL CARRUSEL ===== */
.carousel-nav {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 10;
}

.nav-dot {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-dot.active {
    background: var(--neon-blue);
    box-shadow: 0 0 20px var(--neon-blue);
    transform: scale(1.2);
}

.carousel-arrows {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: white;
    background: rgba(0, 0, 0, 0.3);
    border: none;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-arrows:hover {
    background: rgba(0, 255, 255, 0.3);
    color: var(--neon-blue);
    transform: translateY(-50%) scale(1.1);
}

.arrow-prev {
    left: 2rem;
}

.arrow-next {
    right: 2rem;
}

/* ===== PARTÍCULAS ANIMADAS ===== */
.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--neon-blue);
    border-radius: 50%;
    animation: particleFloat 6s linear infinite;
    box-shadow: 0 0 10px var(--neon-blue);
}

.particle:nth-child(2n) {
    background: var(--neon-pink);
    box-shadow: 0 0 10px var(--neon-pink);
    animation-duration: 8s;
}

.particle:nth-child(3n) {
    background: var(--neon-green);
    box-shadow: 0 0 10px var(--neon-green);
    animation-duration: 10s;
}

/* ===== ONDAS DE ENERGÍA ===== */
.energy-waves {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    pointer-events: none;
}

.energy-wave {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid var(--neon-blue);
    border-radius: 50%;
    opacity: 0;
    animation: energyPulse 3s ease-out infinite;
}

.energy-wave:nth-child(2) {
    animation-delay: 1s;
    border-color: var(--neon-pink);
}

.energy-wave:nth-child(3) {
    animation-delay: 2s;
    border-color: var(--neon-green);
}

/* ===== MASCOTA ANIMADA ===== */
.mascot-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    cursor: pointer;
}

.mascot {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-pink));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    animation: mascotBounce 2s ease-in-out infinite;
    box-shadow: 
        0 0 20px var(--neon-blue),
        0 0 40px var(--neon-pink);
    transition: all 0.3s ease;
}

.mascot:hover {
    transform: scale(1.1);
    animation-duration: 0.5s;
}

.mascot-speech {
    position: absolute;
    bottom: 100%;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    color: var(--neon-blue);
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    white-space: nowrap;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 500;
}

.mascot:hover .mascot-speech {
    opacity: 1;
    transform: translateY(0);
}

/* ===== ANIMACIONES KEYFRAMES ===== */
@keyframes introFadeOut {
    0%, 80% { opacity: 1; }
    100% { opacity: 0; visibility: hidden; }
}

@keyframes logoGlow {
    0% { text-shadow: 0 0 10px var(--neon-blue), 0 0 20px var(--neon-blue); }
    100% { text-shadow: 0 0 20px var(--neon-blue), 0 0 30px var(--neon-blue), 0 0 40px var(--neon-blue); }
}

@keyframes logoScale {
    0% { transform: scale(0.5); opacity: 0; }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes subtitleFadeIn {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes parallaxFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(1deg); }
}

@keyframes titleGlitch {
    0%, 90%, 100% { transform: translate(0); }
    10% { transform: translate(-2px, 2px); }
    20% { transform: translate(2px, -2px); }
    30% { transform: translate(-2px, 2px); }
    40% { transform: translate(2px, -2px); }
    50% { transform: translate(-2px, 2px); }
    60% { transform: translate(2px, -2px); }
    70% { transform: translate(-2px, 2px); }
    80% { transform: translate(2px, -2px); }
}

@keyframes glitchEffect1 {
    0% { clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%); }
    10% { clip-path: polygon(0 10%, 100% 10%, 100% 55%, 0 55%); }
    20% { clip-path: polygon(0 20%, 100% 20%, 100% 65%, 0 65%); }
    30% { clip-path: polygon(0 30%, 100% 30%, 100% 75%, 0 75%); }
    40% { clip-path: polygon(0 40%, 100% 40%, 100% 85%, 0 85%); }
    50% { clip-path: polygon(0 50%, 100% 50%, 100% 95%, 0 95%); }
    60% { clip-path: polygon(0 40%, 100% 40%, 100% 85%, 0 85%); }
    70% { clip-path: polygon(0 30%, 100% 30%, 100% 75%, 0 75%); }
    80% { clip-path: polygon(0 20%, 100% 20%, 100% 65%, 0 65%); }
    90% { clip-path: polygon(0 10%, 100% 10%, 100% 55%, 0 55%); }
    100% { clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%); }
}

@keyframes glitchEffect2 {
    0% { clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%); }
    10% { clip-path: polygon(0 45%, 100% 45%, 100% 90%, 0 90%); }
    20% { clip-path: polygon(0 35%, 100% 35%, 100% 80%, 0 80%); }
    30% { clip-path: polygon(0 25%, 100% 25%, 100% 70%, 0 70%); }
    40% { clip-path: polygon(0 15%, 100% 15%, 100% 60%, 0 60%); }
    50% { clip-path: polygon(0 5%, 100% 5%, 100% 50%, 0 50%); }
    60% { clip-path: polygon(0 15%, 100% 15%, 100% 60%, 0 60%); }
    70% { clip-path: polygon(0 25%, 100% 25%, 100% 70%, 0 70%); }
    80% { clip-path: polygon(0 35%, 100% 35%, 100% 80%, 0 80%); }
    90% { clip-path: polygon(0 45%, 100% 45%, 100% 90%, 0 90%); }
    100% { clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%); }
}

@keyframes subtitleSlideUp {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

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

@keyframes slideInUp {
    0% { opacity: 0; transform: translateY(50px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDelay {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

@keyframes energyPulse {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

@keyframes mascotBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .epic-title {
        font-size: clamp(2rem, 8vw, 4rem);
    }
    
    .epic-subtitle {
        font-size: clamp(1rem, 4vw, 1.5rem);
    }
    
    .epic-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .btn-epic {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    .carousel-arrows {
        font-size: 1.5rem;
        padding: 0.5rem;
    }
    
    .arrow-prev {
        left: 1rem;
    }
    
    .arrow-next {
        right: 1rem;
    }
    
    .mascot {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
    
    .mascot-container {
        bottom: 1rem;
        right: 1rem;
    }
}

@media (max-width: 480px) {
    .intro-logo {
        font-size: 2.5rem;
    }
    
    .intro-subtitle {
        font-size: 1rem;
    }
    
    .parallax-content {
        padding: 0 1rem;
    }
    
    .slide-content {
        padding: 0 1rem;
    }
} 