* {
    list-style: none;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    width: 100%;
    min-height: 100vh;
    background: linear-gradient(135deg, #0d0d0d 0%, #1a1a2e 50%, #16213e 100%);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #e0e0e0;
}

/* ============================================
   ELEGANT NAVBAR - Glass Morphism & Glow
   ============================================ */
.navbar {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.95), rgba(22, 33, 62, 0.95)) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 12px 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4),
                0 0 0 1px rgba(61, 90, 254, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(61, 90, 254, 0.2);
    transition: all 0.3s ease;
}

.navbar:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5),
                0 0 30px rgba(61, 90, 254, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.navbar-brand {
    color: #ffffff !important;
    font-size: 1.6rem !important;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
    text-shadow: 0 0 20px rgba(61, 90, 254, 0.5);
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.navbar-brand:hover {
    text-shadow: 0 0 30px rgba(61, 90, 254, 0.8),
                 0 0 60px rgba(61, 90, 254, 0.4);
    transform: scale(1.02);
}

.navbar-brand img {
    filter: drop-shadow(0 0 10px rgba(61, 90, 254, 0.8))
            drop-shadow(0 0 20px rgba(61, 90, 254, 0.4));
    border-radius: 8px;
    padding: 3px;
    background: linear-gradient(135deg, rgba(61, 90, 254, 0.3), rgba(83, 109, 254, 0.3));
    height: 32px !important;
    width: auto !important;
    transition: all 0.3s ease;
}

.navbar-brand:hover img {
    filter: drop-shadow(0 0 15px rgba(61, 90, 254, 1))
            drop-shadow(0 0 30px rgba(61, 90, 254, 0.6));
}

.navbar-nav {
    gap: 8px;
}

.navbar-nav .nav-link {
    color: rgba(224, 224, 224, 0.85) !important;
    font-size: 1rem;
    font-weight: 500;
    padding: 10px 18px !important;
    transition: all 0.3s ease;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(61, 90, 254, 0.2), transparent);
    transition: left 0.5s ease;
}

.navbar-nav .nav-link:hover::before {
    left: 100%;
}

.navbar-nav .nav-link:hover {
    color: #ffffff !important;
    background: linear-gradient(135deg, rgba(61, 90, 254, 0.2), rgba(83, 109, 254, 0.15));
    box-shadow: 0 4px 15px rgba(61, 90, 254, 0.3),
                inset 0 0 20px rgba(61, 90, 254, 0.1);
    transform: translateY(-2px);
}

.navbar-nav .nav-link.active {
    color: #ffffff !important;
    background: linear-gradient(135deg, rgba(61, 90, 254, 0.35), rgba(83, 109, 254, 0.25));
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(61, 90, 254, 0.4),
                inset 0 0 15px rgba(61, 90, 254, 0.15);
}

.navbar-nav .nav-link.disabled {
    color: rgba(224, 224, 224, 0.4) !important;
}

.navbar-toggler {
    border-color: rgba(61, 90, 254, 0.5) !important;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.navbar-toggler:hover {
    border-color: rgba(61, 90, 254, 0.8) !important;
    box-shadow: 0 0 15px rgba(61, 90, 254, 0.3);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2861, 90, 254, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* ============================================
   MAIN CONTAINER - Improved Layout
   ============================================ */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* Section Titles */
section h2 {
    color: #ffffff;
    border-bottom: 3px solid #3d5afe;
    padding-bottom: 15px;
    margin-bottom: 30px;
    font-size: 1.8rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 20px rgba(61, 90, 254, 0.3);
}

/* ============================================
   GAME CAROUSEL - Enhanced Cards
   ============================================ */
.game-carousel {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 20px 10px;
    padding-bottom: 30px;
}

.game-carousel::-webkit-scrollbar {
    height: 8px;
}

.game-carousel::-webkit-scrollbar-track {
    background: rgba(45, 45, 45, 0.5);
    border-radius: 10px;
}

.game-carousel::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #3d5afe, #536dfe);
    border-radius: 10px;
}

.game-card {
    min-width: 220px;
    background: linear-gradient(145deg, #2a2a3e, #1e1e30);
    border-radius: 16px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4),
                0 0 0 1px rgba(61, 90, 254, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3d5afe, #536dfe, #3d5afe);
    background-size: 200% 100%;
    animation: shimmer 2s infinite linear;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.game-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5),
                0 0 30px rgba(61, 90, 254, 0.3),
                inset 0 0 20px rgba(61, 90, 254, 0.05);
}

.game-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.game-card:hover img {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.game-card h5 {
    margin: 15px 0 8px;
    color: #ffffff;
    font-weight: 600;
    font-size: 1.1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.game-card p {
    margin: 0 0 15px;
    color: #00e676;
    font-weight: 700;
    font-size: 1.3rem;
    text-shadow: 0 0 10px rgba(0, 230, 118, 0.4);
}

.game-card .btn {
    width: 100%;
    margin-top: auto;
    background: linear-gradient(135deg, #3d5afe, #536dfe);
    border: none;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.game-card .btn:hover {
    background: linear-gradient(135deg, #536dfe, #3d5afe);
    box-shadow: 0 4px 15px rgba(61, 90, 254, 0.5);
    transform: scale(1.05);
}

/* ============================================
   INVOICE / FACTURA SECTION - Fixed Layout
   ============================================ */
.container.mt-5 {
    background: linear-gradient(145deg, #252535, #1a1a28);
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5),
                0 0 0 1px rgba(61, 90, 254, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.03);
    margin-top: 2rem !important;
    border: 1px solid rgba(61, 90, 254, 0.15);
}

.card {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

#Factura .row {
    align-items: flex-start;
}

#Factura h1 {
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 25px;
    text-shadow: 0 0 20px rgba(61, 90, 254, 0.3);
    border-bottom: 2px solid #3d5afe;
    padding-bottom: 15px;
}

#factura-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.factura-item {
    display: flex;
    align-items: center;
    padding: 15px 18px;
    background: linear-gradient(135deg, rgba(45, 45, 45, 0.6), rgba(35, 35, 50, 0.6));
    border-radius: 12px;
    gap: 18px;
    transition: all 0.3s ease;
    border: 1px solid rgba(61, 90, 254, 0.08);
}

.factura-item:hover {
    background: linear-gradient(135deg, rgba(45, 45, 45, 0.8), rgba(35, 35, 50, 0.8));
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border-color: rgba(61, 90, 254, 0.2);
}

.factura-img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

.factura-nombre {
    flex: 1;
    color: #e0e0e0;
    font-weight: 500;
    font-size: 1rem;
}

.factura-precio {
    color: #00e676;
    font-weight: 700;
    font-size: 1.15rem;
    text-shadow: 0 0 8px rgba(0, 230, 118, 0.3);
}

/* Totals Section */
#Factura > .row + p,
#Factura > p {
    color: #b0b0b0;
    font-weight: 500;
    font-size: 1.1rem;
    padding: 12px 0;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid rgba(61, 90, 254, 0.1);
    margin: 8px 0;
}

#subtotal, #total {
    color: #00e676;
    font-weight: 700;
    font-size: 1.3rem;
    text-shadow: 0 0 10px rgba(0, 230, 118, 0.4);
}

#descuento {
    color: #ef4b4b;
    font-weight: 700;
    font-size: 1.3rem;
    text-shadow: 0 0 10px rgba(239, 75, 75, 0.3);
}

#itbis {
    color: #ffd54f;
    font-weight: 700;
    font-size: 1.3rem;
    text-shadow: 0 0 10px rgba(255, 213, 79, 0.3);
}

/* Button */
.d-grid {
    margin-top: 30px;
    margin-bottom: 10px;
}

.btn-primary {
    background: linear-gradient(135deg, #3d5afe, #536dfe);
    border: none;
    padding: 16px 35px;
    font-size: 1.15rem;
    font-weight: 700;
    border-radius: 12px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 6px 20px rgba(61, 90, 254, 0.4);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #536dfe, #3d5afe);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(61, 90, 254, 0.5);
}

.btn-primary:active {
    transform: translateY(0);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 992px) {
    main {
        padding: 20px 15px;
    }
    
    .navbar {
        padding: 10px 20px;
    }
}

@media (max-width: 768px) {
    #Factura .row {
        flex-direction: column;
    }
    
    #Factura h1 {
        font-size: 1.4rem;
    }
    
    .game-card {
        min-width: 180px;
    }
    
    .game-card img {
        height: 140px;
    }
}

@media (max-width: 576px) {
    .container.mt-5 {
        padding: 20px 15px;
    }
    
    .navbar-brand {
        font-size: 1.3rem !important;
    }
    
    section h2 {
        font-size: 1.4rem;
    }
    
    .factura-item {
        padding: 12px;
        gap: 12px;
    }
    
    .factura-img {
        width: 40px;
        height: 40px;
    }
}

