:root {
    --primary-color: #8b0000; /* Rojo granate */
    --primary-hover: #6b0000;
    --secondary-color: #d10000; /* Rojo más vivo */
    --text-color: white;
    --text-secondary: #f0f0f0;
    --bg-transparent: rgba(0, 0, 0, 0.7);
    --faction-red: #8b0000; /* Granate */
    --faction-black: #121212; /* Negro más profundo */
    --gold-accent: #d4af37; /* Oro para detalles */
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Bebas Neue', sans-serif;
    min-height: 100vh;
    color: var(--text-color);
    background: url('BienvenidaFondo.jpg') no-repeat center center/cover;
    position: relative;
    animation: fadeIn 0.5s ease-in-out;
}

body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

/* Header mejorado */
header {
    background: linear-gradient(to right, var(--faction-black), var(--faction-red));
    margin: 1rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    position: sticky;
    top: 0;
    z-index: 100;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    position: relative;
}

.menu-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-grow: 1;
}

.menu-icon {
    font-size: 1.5rem;
    color: var(--gold-accent);
    cursor: pointer;
    display: none;
    transition: all 0.3s;
    z-index: 100;
}

.menu-icon:hover {
    transform: scale(1.1);
}

.nav-item {
    color: var(--text-color);
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    padding: 0.5rem 0;
    position: relative;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-item i {
    font-size: 1.1rem;
    color: var(--gold-accent);
}

.nav-item:hover {
    color: var(--gold-accent);
}

.nav-item:hover i {
    transform: scale(1.1);
}

.nav-item::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--gold-accent);
    transition: width 0.3s;
}

.nav-item:hover::after {
    width: 100%;
}

.language-switch {
    display: flex;
    gap: 8px;
    margin-left: 0.5rem;
}

.language-switch img {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid var(--gold-accent);
    transition: all 0.3s;
}

.language-switch img:hover {
    transform: scale(1.1);
    box-shadow: 0 0 8px var(--gold-accent);
}

.right-icons {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.social-icons {
    display: flex;
    gap: 0.8rem;
}

.social-icons a {
    color: var(--text-color);
    font-size: 1.2rem;
    transition: all 0.3s;
}

.social-icons a:hover {
    color: var(--gold-accent);
    transform: translateY(-3px) scale(1.1);
    text-shadow: 0 0 8px var(--gold-accent);
}

.cart-icon {
    position: relative;
    color: var(--text-color);
    font-size: 1.3rem;
    transition: all 0.3s;
}

.cart-icon:hover {
    color: var(--gold-accent);
    transform: translateY(-2px);
}

.cart-count {
    position: absolute;
    top: -10px;
    right: -12px;
    background: var(--gold-accent);
    color: var(--faction-black);
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.8rem;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
}

.login-btn {
    background: linear-gradient(to right, var(--faction-red), var(--primary-hover));
    color: var(--text-color);
    padding: 0.5rem 1.2rem;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.login-btn:hover {
    background: linear-gradient(to right, var(--primary-hover), var(--faction-red));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 0, 0, 0.5);
}

.mobile-dropdown {
    display: none;
    flex-direction: column;
    background: linear-gradient(to bottom, var(--faction-black), var(--faction-red));
    padding: 1rem;
    border-radius: 0 0 10px 10px;
    border-top: 1px solid rgba(255, 215, 0, 0.3);
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    z-index: 99;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.5);
}

.mobile-dropdown a {
    color: var(--text-color);
    text-decoration: none;
    margin-bottom: 0.5rem;
    font-weight: bold;
    padding: 0.8rem;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
    font-size: 0.9rem;
    transition: all 0.3s;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.mobile-dropdown a i {
    color: var(--gold-accent);
    width: 20px;
    text-align: center;
}

.mobile-dropdown a:last-child {
    border-bottom: none;
}

.mobile-dropdown a:hover {
    color: var(--gold-accent);
    padding-left: 1.2rem;
    background-color: rgba(0, 0, 0, 0.2);
}

.main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin: 2rem;
    border-radius: 10px;
    padding: 2rem;
}

.main-content h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 6rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gold-accent);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.main-content button {
    font-family: 'Bebas Neue', sans-serif;
    text-transform: uppercase;
    font-size: 1.5rem;
    background-color: transparent;
    color: var(--gold-accent);
    border: 2px solid var(--gold-accent);
    padding: 0.75rem 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    letter-spacing: 2px;
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
}

.main-content button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: all 0.5s ease;
}

.main-content button:hover::before {
    left: 100%;
}

.main-content button:hover {
    background-color: var(--faction-red);
    color: white;
    box-shadow: 0 0 10px var(--faction-red), 0 0 20px var(--faction-red);
}

.main-content .register-btn {
    font-family: 'Bebas Neue', sans-serif;
    text-transform: uppercase;
    font-size: 1.5rem;
    background-color: transparent;
    color: var(--faction-red);
    border: 2px solid var(--faction-red);
    padding: 0.75rem 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    letter-spacing: 2px;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
}

.main-content .register-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: all 0.5s ease;
}

.main-content .register-btn:hover::before {
    left: 100%;
}

.main-content .register-btn:hover {
    background-color: var(--faction-red);
    color: white;
    box-shadow: 0 0 10px var(--faction-red), 0 0 20px var(--faction-red);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (max-width: 768px) {
    .top-bar {
        flex-wrap: wrap;
    }

    .menu-left {
        order: 1;
        justify-content: space-between;
        width: 100%;
    }

    .language-switch {
        order: 2;
        margin-left: auto;
    }

    .right-icons {
        order: 3;
        width: 100%;
        justify-content: space-between;
        margin-top: 1rem;
    }

    .menu-icon {
        display: block;
    }

    .menu-left .nav-item:not(.language-switch) {
        display: none;
    }

    #mobile-menu.hidden {
        display: none;
    }

    #mobile-menu:not(.hidden) {
        display: flex;
    }

    .main-content h1 {
        font-size: 3rem;
    }

    .main-content button,
    .main-content .register-btn {
        font-size: 1.2rem;
        padding: 0.6rem 1.5rem;
    }
}