:root {
    --font-body: 'Bahnschrift', 'Segoe UI', sans-serif;
    --font-heading: 'League Spartan', 'Segoe UI', sans-serif;
    --accent: #a855f7;
    --accent-strong: #9333ea;
    --accent-light: #d8b4fe;
    --accent-rgb: 168, 85, 247;
    --panel-bg: rgba(16, 13, 26, 0.88);
    --panel-border: rgba(168, 85, 247, 0.22);
}

/* Bootstrap accent classes follow the purple/white theme. */
.text-info,
.text-danger {
    color: var(--accent-light) !important;
}
.btn-danger,
.btn-outline-info:hover {
    background-color: var(--accent) !important;
    border-color: var(--accent) !important;
    color: #fff !important;
}
.btn-danger:hover {
    background-color: var(--accent-strong) !important;
    border-color: var(--accent-strong) !important;
}
.btn-outline-info {
    color: var(--accent-light) !important;
    border-color: var(--accent) !important;
}
.nav-tabs .nav-link.active {
    color: #fff;
    background-color: rgba(var(--accent-rgb), 0.25);
    border-color: var(--accent);
}
.nav-tabs .nav-link {
    color: var(--accent-light);
}
.form-control:focus,
.form-select:focus,
.form-check-input:focus {
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 0.2rem rgba(var(--accent-rgb), 0.25) !important;
}
.form-check-input:checked {
    background-color: var(--accent);
    border-color: var(--accent);
}

/* Por defecto: estilo moderno para todo */
* {
    font-family: var(--font-body) !important;
}

/* Títulos principales con estilo editorial */
h1,
h2,
h3,
.navbar-brand,
.hero-title {
    font-family: var(--font-heading) !important;
}

/* Texto general y controles */
h4,
h5,
h6,
p,
small,
.lead,
.fs-4,
.fs-5,
.fs-6,
.nav-link,
.btn,
.btn-explore,
.btn-outline-light,
.btn-outline-info,
.btn-outline-secondary,
label,
input,
textarea,
select,
#news-grid a,
#news-grid a.fw-bold,
#news-grid .card,
#news-grid .card-body,
#news-grid .card-text,
#news-grid small {
    font-family: var(--font-body) !important;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: 80px;
    background-color: #0b0912;
    background-image: radial-gradient(ellipse at top, rgba(88, 28, 135, 0.35), transparent 60%),
        linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6));
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

body > main {
    flex: 1 0 auto;
}

body > footer {
    flex-shrink: 0;
}

h1, p {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

/* ========== TAMAÑOS UNIFORMES DE HEADERS ========== */

h1 {
    font-size: 3.25rem !important;
    font-weight: 700;
    line-height: 1.1;
}

h2 {
    font-size: 2.35rem !important;
    font-weight: 700;
    line-height: 1.15;
}

h3 {
    font-size: 1.65rem !important;
    font-weight: 700;
    line-height: 1.2;
}

h4 {
    font-size: 1.4rem !important;
    font-weight: 700;
}

h5 {
    font-size: 1.2rem !important;
    font-weight: 700;
}

h6 {
    font-size: 1.05rem !important;
    font-weight: 600;
}

/* ---------- Animaciones de headers ---------- */
h1,
h2 {
    transition: 
        color 0.4s ease,
        text-shadow 0.4s ease,
        letter-spacing 0.4s ease,
        transform 0.4s ease;
    display: inline-block;
}

h1:hover,
h2:hover {
    color: #f5f5f5;
    text-shadow: 
        2px 2px 4px rgba(0,0,0,0.8),
        0 0 20px rgba(255, 255, 255, 0.3),
        0 0 40px rgba(255, 255, 255, 0.15);
    letter-spacing: 0.02em;
    transform: translateY(-2px);
}

h2.fw-bold {
    transition: 
        color 0.4s ease,
        text-shadow 0.4s ease,
        letter-spacing 0.4s ease;
}

h2.fw-bold:hover {
    color: #ffffff;
    letter-spacing: 0.03em;
    text-shadow: 
        2px 2px 4px rgba(0,0,0,0.8),
        0 0 25px rgba(255, 255, 255, 0.35);
}

#news-grid a.fw-bold {
    transition: 
        color 0.3s ease,
        text-shadow 0.3s ease,
        transform 0.3s ease;
    display: inline-block;
}

#news-grid a.fw-bold:hover {
    color: #f5f5f5 !important;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
    transform: translateX(4px);
}

/* ---------- Video de fondo con animación de fade ---------- */
#bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: -1;
    pointer-events: none;
    opacity: 0.18;
}

/* ---------- Navbar FIJA ---------- */
.navbar {
    background-color: rgba(11, 9, 18, 0.72) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(var(--accent-rgb), 0.2), 0 2px 20px rgba(0, 0, 0, 0.5);
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.navbar .nav-link,
.navbar .navbar-brand {
    color: #ffffff !important;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: #fefefe !important;
}

.navbar-actions {
    flex-shrink: 0;
}

.navbar-cart-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
}

.navbar-cart-link:hover {
    color: var(--accent-light);
    transform: translateY(-1px);
}

.navbar-cart-link i {
    font-size: 1.65rem;
    line-height: 1;
}

.cart-count-badge {
    position: absolute;
    top: 0;
    right: -2px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 19px;
    height: 19px;
    padding: 0 4px;
    border: 2px solid #17151f;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1;
}

.mini-cart-panel {
    position: fixed;
    top: 84px;
    right: 16px;
    z-index: 1100;
    width: 370px;
    max-width: calc(100vw - 1rem);
    max-height: min(72vh, 520px);
    overflow-y: auto;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 10px;
    background: #17131f;
    color: #fff;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.48);
}

.mini-cart-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.mini-cart-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #fff;
    cursor: pointer;
}

.mini-cart-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 576px) {
    .mini-cart-panel {
        top: 72px;
        right: 0.5rem;
        width: calc(100vw - 1rem);
        max-width: none;
    }
}

.mini-cart-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    font-weight: 700;
}

.mini-cart-heading span {
    color: #cbd5e1;
    font-size: 0.9rem;
}

.mini-cart-items {
    display: grid;
    gap: 0.25rem;
    max-height: 300px;
    overflow-y: auto;
    padding: 0.35rem 0;
}

.mini-cart-item {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) 34px;
    grid-template-rows: auto auto;
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem 0.25rem;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
}

.mini-cart-product {
    display: grid;
    grid-column: 1 / 3;
    grid-row: 1;
    grid-template-columns: 52px minmax(0, 1fr);
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
    color: #fff;
    text-decoration: none;
}

.mini-cart-item:hover .mini-cart-product {
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
}

.mini-cart-item img {
    width: 52px;
    height: 52px;
    border-radius: 5px;
    background: #17171c;
    object-fit: contain;
}

.mini-cart-item-info {
    display: grid;
    gap: 0.2rem;
    min-width: 0;
}

.mini-cart-item-name {
    overflow: hidden;
    font-size: 0.9rem;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mini-cart-item-quantity {
    color: #cbd5e1;
    font-size: 0.8rem;
}

.mini-cart-item-total {
    grid-column: 2;
    grid-row: 2;
    font-size: 0.86rem;
    font-weight: 700;
    white-space: nowrap;
}

.mini-cart-remove-form {
    grid-column: 3;
    grid-row: 1 / 3;
    justify-self: end;
}

.mini-cart-remove-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #d1d5db;
    cursor: pointer;
}

.mini-cart-remove-button:hover {
    background: rgba(var(--accent-rgb), 0.14);
    color: var(--accent-light);
}

.mini-cart-subtotal {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    color: #fff;
}

.mini-cart-checkout {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1px solid var(--accent);
    border-radius: 7px;
    background: var(--accent);
    color: #fff;
    font: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.mini-cart-checkout:hover {
    border-color: var(--accent-strong);
    background: var(--accent-strong);
    color: #fff;
}

.mini-cart-full-link {
    display: block;
    padding-top: 0.7rem;
    color: var(--accent-light);
    font-size: 0.86rem;
    text-align: center;
    text-decoration: none;
}

.mini-cart-full-link:hover {
    color: #fff;
    text-decoration: underline;
}

.mini-cart-empty {
    margin: 1rem 0;
    color: #d1d5db;
    text-align: center;
}

/* ========== TAMAÑO UNIFORME DEL NAVBAR ========== */

.navbar-brand {
    font-size: 1.75rem !important;
    line-height: 1;
    transition: 
        color 0.3s ease,
        transform 0.3s ease,
        text-shadow 0.3s ease;
    display: inline-block;
}

.navbar-brand:hover {
    color: #f5f5f5 !important;
    transform: scale(1.05);
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}

.navbar .nav-link {
    font-size: 1.35rem !important;
    line-height: 1;
    white-space: nowrap;
    position: relative;
    transition: color 0.3s ease;
}

.navbar .nav-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1px;
    background-color: #f5f5f5;
    transition: width 0.3s ease, left 0.3s ease;
}

.navbar .nav-link:hover::after {
    width: 100%;
    left: 0;
}

.navbar .btn-outline-light {
    font-size: 1.2rem !important;
    line-height: 1;
    padding: 0.5rem 1.25rem;
}

/* ========== HERO SECTION ========== */

.hero-section {
    position: relative;
    padding: 3rem 0 2rem 0;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-image-wrapper {
    position: relative;
    animation: fadeInLeft 1s ease-out;
}

.hero-image {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
}

.hero-title {
    font-family: var(--font-heading) !important;
    font-size: clamp(2.5rem, 5vw, 4.25rem) !important;
    color: #ffffff;
    line-height: 1.1;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    animation: fadeInRight 1s ease-out 0.2s backwards;
}

.hero-subtitle {
    font-family: var(--font-heading) !important;
    color: #a855f7;
    line-height: 1.1;
    text-shadow: 0 0 20px rgba(168, 85, 247, 0.5);
    animation: fadeInRight 1s ease-out 0.4s backwards;
}

.hero-description {
    color: #e0e0e0;
    max-width: 500px;
    line-height: 1.6;
    animation: fadeInRight 1s ease-out 0.6s backwards;
}

.hero-socials {
    animation: fadeInRight 1s ease-out 0.8s backwards;
}

.hero-social-link {
    color: #a855f7;
    font-size: 1.75rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hero-social-link:hover {
    color: #ffffff;
    transform: translateY(-3px);
    text-shadow: 0 0 15px rgba(168, 85, 247, 0.9);
}

.hero-buttons {
    animation: fadeInRight 1s ease-out 1s backwards;
}

.btn-hero-primary {
    background-color: #a855f7;
    border: 2px solid #a855f7;
    color: #ffffff;
    font-weight: 600;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.btn-hero-primary:hover {
    background-color: #9333ea;
    border-color: #9333ea;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(168, 85, 247, 0.5);
}

.btn-hero-secondary {
    background-color: transparent;
    border: 2px solid #ffffff;
    color: #ffffff;
    font-weight: 600;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.btn-hero-secondary:hover {
    background-color: #ffffff;
    color: #090a0f;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

/* Animaciones de entrada */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ---------- Product cards (home + catalog) ---------- */
.product-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}
.product-card {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    transform: translateY(-6px);
    border-color: rgba(var(--accent-rgb), 0.55);
    box-shadow: 0 10px 30px rgba(var(--accent-rgb), 0.25);
}
.product-image-wrapper {
    aspect-ratio: 1;
    background-color: #fff;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}
.product-card:hover .product-image {
    transform: scale(1.06);
}
.product-info {
    padding: 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    flex-grow: 1;
}
.product-category {
    font-size: 0.8rem !important;
    text-transform: uppercase;
    color: var(--accent-light);
    letter-spacing: 0.6px;
    font-weight: 700;
}
.product-name {
    font-size: 1.05rem !important;
    font-weight: 600 !important;
    color: #fff !important;
    margin: 0;
    line-height: 1.4;
    min-height: 2.8em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.product-price {
    font-size: 1.4rem !important;
    font-weight: 800 !important;
    color: #fff !important;
    letter-spacing: -0.02em;
}
.product-stock {
    font-size: 0.85rem !important;
    font-weight: 600;
    text-align: right;
    color: var(--accent-light);
}
.product-stock.low { color: #fcd34d; }
.product-stock.out,
.product-stock.unknown { color: #9ca3af; font-weight: 500; }
@media (max-width: 768px) {
    .product-info { padding: 0.85rem; gap: 0.45rem; }
    .product-name { font-size: 0.95rem !important; }
    .product-price { font-size: 1.15rem !important; }
    .product-stock { font-size: 0.75rem !important; }
}
.content-panel {
    margin-top: 2rem;
    margin-bottom: 3rem;
    padding: clamp(1.5rem, 4vw, 3.5rem);
    background-color: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: 20px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.content-panel.bg-transparent,
.login-panel.content-panel {
    background-color: var(--panel-bg) !important;
}

.category-card {
    background-color: rgba(20, 20, 25, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    color: #ffffff;
    transition: all 0.3s ease;
    height: 100%;
}

.category-card:hover {
    background-color: rgba(40, 40, 48, 0.6);
    border-color: rgba(168, 85, 247, 0.5);
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(168, 85, 247, 0.3);
    color: #ffffff;
}

.category-icon {
    font-size: 3rem;
    color: #ffffff;
    transition: color 0.3s ease;
    line-height: 1;
}

.category-card:hover .category-icon {
    color: #a855f7;
}

.category-card p {
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* ---------- Sección de noticias con marco decorativo ---------- */
#gaming-news {
    position: relative;
    background-color: transparent;
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    padding: 3rem 0 0;
    margin-top: 3rem;
    min-height: 500px;
    width: 100%;
    max-width: 100%;
}

@media (max-width: 576px) {
    .content-panel {
        padding: 1.25rem;
        border-radius: 16px;
    }

    #gaming-news {
        padding-top: 2rem;
    }
}

#gaming-news > * {
    position: relative;
    z-index: 1;
}

/* ---------- Botón Explore Assets ---------- */
.btn-explore {
    background-color: #4a4a4a;
    border: 1px solid #666666;
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.btn-explore:hover {
    background-color: #5a5a5a;
    border-color: #888888;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.btn-explore:focus,
.btn-explore:active {
    background-color: #3a3a3a;
    border-color: #888888;
    color: #ffffff;
    box-shadow: 0 0 0 0.25rem rgba(120, 120, 120, 0.5);
}

/* ---------- Íconos de métodos de pago ---------- */
.payment-icons i {
    font-size: 2.5rem;
    transition: transform 0.2s ease;
}

.payment-icons .fa-cc-visa {
    color: #1a1f71;
}

.payment-icons .fa-cc-mastercard {
    color: #eb001b;
}

.payment-icons .fa-cc-paypal {
    color: #003087;
}

.payment-icons i:hover {
    transform: scale(1.1);
}

/* Hover de íconos sociales en contacto */
.social-icon {
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    color: #ffffff !important;
    transform: translateY(-3px);
    text-shadow: 0 0 15px rgba(168, 85, 247, 0.9);
}

/* ========== NAVBAR SEPARATORS ========== */
.nav-separator {
    color: rgba(255, 255, 255, 0.35);
    font-size: 1.35rem;      /* mismo tamaño que los nav-link */
    font-weight: 300;
    padding: 0 0.75rem;
    user-select: none;
    line-height: 1;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.nav-separator span {
    display: inline-block;
    transform: translateY(-2px);
}

.nav-separator:hover {
    color: rgba(255, 255, 255, 0.55);
}

/* ========== RESPONSIVE (Mobile) ========== */

@media (max-width: 991px) {
    h1 {
        font-size: 2.6rem !important;
    }

    h2 {
        font-size: 2rem !important;
    }

    h3 {
        font-size: 1.5rem !important;
    }

    h4 {
        font-size: 1.3rem !important;
    }

    h5 {
        font-size: 1.15rem !important;
    }

    .hero-section {
        padding: 2rem 0 1.5rem 0;
    }

    .hero-image {
        max-width: 80%;
        margin: 0 auto;
        display: block;
    }

    /* Navbar más chico en tablet */
    .navbar-brand,
    .navbar .nav-link,
    .navbar .btn-outline-light {
        font-size: 1.2rem !important;
    }

    /* Separador acorde al navbar en tablet */
    .nav-separator {
        font-size: 1.2rem;
        padding: 0 0.5rem;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2.15rem !important;
    }

    h2 {
        font-size: 1.7rem !important;
    }

    h3 {
        font-size: 1.35rem !important;
    }

    h4 {
        font-size: 1.2rem !important;
    }

    h5 {
        font-size: 1.1rem !important;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    /* Navbar más chico en móvil */
    .navbar-brand,
    .navbar .nav-link,
    .navbar .btn-outline-light {
        font-size: 1.15rem !important;
    }

    /* Separador acorde al navbar en móvil */
    .nav-separator {
        font-size: 1.15rem;
        padding: 0 0.35rem;
    }
}

/* ---------- Animación de aparición al hacer scroll ---------- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-visible {
    opacity: 1;
    transform: translateY(0);
}

