/* ==================================
   VARIABLES Y CONFIGURACIÓN BÁSICA
   ================================== */
:root {
    --bg-dark: #0000ff;
    --bg-darker: #050505;
    --text-main: #f5f5f5;
    --text-muted: #f5f5f5;

    /* Neon Colors */
    --neon-purple: #ff0c0c;
    --neon-purple-glow: rgba(255, 0, 0, 0.5);
    --neon-cyan: #282828;
    --neon-cyan-glow: rgba(255, 0, 0, 0.5);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--neon-purple), var(--neon-cyan));

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.brand-logo {
    font-family: var(--font-heading);
    text-transform: uppercase;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-neon {
    color: var(--neon-cyan);
    text-shadow: 0 0 10px var(--neon-cyan-glow);
}

/* ==================================
   BOTONES
   ================================== */
.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    padding: 12px 28px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: transparent;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.2);
    z-index: -1;
    transition: var(--transition);
}

.btn-primary:hover {
    box-shadow: 0 0 20px var(--neon-purple-glow);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--text-main);
    padding: 12px 28px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid var(--text-main);
    cursor: pointer;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: var(--text-main);
    color: var(--bg-dark);
}

.btn-outline {
    display: inline-block;
    padding: 8px 20px;
    border: 1px solid var(--neon-purple);
    color: var(--neon-purple);
    border-radius: 4px;
    font-weight: 600;
    transition: var(--transition);
    margin-top: 15px;
}

.btn-outline:hover {
    background: var(--neon-purple);
    color: #fff;
    box-shadow: 0 0 15px var(--neon-purple-glow);
}

/* ==================================
   NAVBAR
   ================================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 15px 0;
    background: rgba(10, 10, 12, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 2px;
}

.brand-logo span {
    color: var(--neon-purple);
    text-shadow: 0 0 10px var(--neon-purple-glow);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links li a {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    transition: var(--transition);
    position: relative;
}

.nav-links li a:hover {
    color: var(--text-main);
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition);
}

.nav-links li a:hover::after {
    width: 100%;
}

/* ==================================
   HERO SECTION
   ================================== */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 0 20px;
}

.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(5, 5, 5, 0.9) 0%, rgba(5, 5, 5, 0.4) 50%, rgba(5, 5, 5, 0.1) 100%);
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.hero h1 {
    font-size: 5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    background: var(--text-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

/* ==================================
   TRENDING SECTION
   ================================== */
.trending {
    padding: 100px 0;
    background: var(--bg-darker);
    position: relative;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.game-card {
    background: rgba(25, 25, 30, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    transform-style: preserve-3d;
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 20px var(--neon-purple-glow);
    border-color: rgba(157, 0, 255, 0.3);
}

.card-img-wrapper {
    width: 100%;
    height: 400px;
    position: relative;
    overflow: hidden;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.game-card:hover .card-img-wrapper img {
    transform: scale(1.1);
}

.card-overlay {
    position: absolute;
    top: 15px;
    right: 15px;
}

.badge {
    background: var(--neon-cyan);
    color: #000;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 800;
    border-radius: 4px;
    text-transform: uppercase;
}

.card-info {
    padding: 25px;
}

.card-info h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.card-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ==================================
   FOOTER
   ================================== */
.footer {
    background: #000;
    padding: 60px 0 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 40px;
}

.footer-brand h2 {
    font-size: 24px;
    margin-bottom: 15px;
}

.footer-brand span {
    color: var(--neon-cyan);
}

.footer-brand p {
    color: var(--text-muted);
    max-width: 300px;
}

.footer-links h3 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--text-main);
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: var(--text-muted);
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--neon-cyan);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 768px) {

    .nav-links {
        display: none;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}