/* Variables de Colores basados en el Logo */
:root {
    --color-bg-primary: #0a0a0f;
    --color-bg-secondary: #1a1a25;
    --color-bg-card: #252535;
    --color-bg-hover: #2d2d40;
    --color-red-primary: #ff1744;
    --color-red-glow: #ff4569;
    --color-blue-light: #4fc3f7;
    --color-blue-dark: #29b6f6;
    --color-white: #ffffff;
    --color-text-primary: #e0e0e0;
    --color-text-secondary: #b0b0b0;
    --color-accent-orange: #ff9800;
    --color-accent-yellow: #ffc107;
    --font-primary: 'Orbitron', sans-serif;
    --font-secondary: 'Roboto', sans-serif;
}

/* Reset y Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-secondary);
    background: var(--color-bg-primary);
    color: var(--color-text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Animación de fondo con partículas */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 23, 68, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(79, 195, 247, 0.1) 0%, transparent 50%);
    background-size: 100% 100%;
    z-index: -1;
    pointer-events: none;
    will-change: auto;
}

/* Header */
.header,
.banner {
    position: relative;
    background: linear-gradient(135deg, var(--color-bg-primary) 0%, var(--color-bg-secondary) 100%);
    padding: 2rem 0;
    box-shadow: 0 4px 20px rgba(255, 23, 68, 0.3);
    overflow: hidden;
}

.header::before,
.banner::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--color-red-primary);
    z-index: 1;
}

.header::after,
.banner::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -100%;
    width: 70%;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--color-red-glow) 30%,
        var(--color-red-glow) 70%,
        transparent 100%
    );
    box-shadow: 0 0 10px var(--color-red-glow);
    animation: headerShine 1.5s linear infinite;
    z-index: 2;
}

@keyframes headerShine {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 50% 0%, rgba(255, 23, 68, 0.15) 0%, transparent 70%),
        radial-gradient(circle at 50% 100%, rgba(79, 195, 247, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.header-left {
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
    padding-top: 2.5rem;
    align-self: flex-end;
}

.header-right {
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    padding-top: 2.5rem;
    align-self: flex-end;
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo {
    max-width: 300px;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(255, 23, 68, 0.6));
    animation: logoGlow 3s ease-in-out infinite;
}

@keyframes logoGlow {
    0%, 100% { filter: drop-shadow(0 0 20px rgba(255, 23, 68, 0.6)); }
    50% { filter: drop-shadow(0 0 30px rgba(255, 23, 68, 0.9)); }
}

/* Botones de Acción (IP y Discord) - Estilos aplicados directamente a .action-button-group */

.action-button-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Botón de Carrito */
.cart-button {
    position: relative;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-button:hover {
    background: rgba(255, 23, 68, 0.1);
}

.cart-icon-wrapper {
    position: relative;
    color: var(--color-red-primary);
    filter: drop-shadow(0 0 8px rgba(255, 23, 68, 0.8));
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--color-red-primary);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    box-shadow: 0 0 10px rgba(255, 23, 68, 0.8);
}

/* Botón de Usuario en esquina superior derecha */
.user-button-top-right {
    position: fixed !important;
    top: 20px !important;
    right: 20px !important;
    z-index: 10000 !important;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    background: var(--color-bg-secondary);
    border: 1px solid rgba(255, 23, 68, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    pointer-events: auto;
    transform: translateZ(0);
}

.user-button-top-right:hover {
    background: var(--color-bg-hover);
    border-color: var(--color-red-primary);
    box-shadow: 0 6px 20px rgba(255, 23, 68, 0.4);
}

.user-button-top-right.guest-state {
    background: var(--color-bg-secondary);
}

.user-button-top-right.logged-in-state {
    background: rgba(255, 23, 68, 0.1);
    border-color: var(--color-red-primary);
}

/* Carrito a la izquierda del botón de usuario */
.cart-button-left {
    position: fixed !important;
    top: 20px !important;
    right: calc(20px + var(--user-button-width, 200px) + 60px) !important;
    z-index: 10000 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    background: var(--color-bg-secondary);
    border: 1px solid rgba(255, 23, 68, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    min-height: 66px;
    height: 66px;
    pointer-events: auto;
    transform: translateZ(0);
}

.cart-button-left:hover {
    background: var(--color-bg-hover);
    border-color: var(--color-red-primary);
    box-shadow: 0 6px 20px rgba(255, 23, 68, 0.4);
}

.cart-button-left .cart-icon-wrapper {
    color: var(--color-red-primary);
    filter: drop-shadow(0 0 8px rgba(255, 23, 68, 0.8));
    position: relative;
}

.cart-button-left .cart-icon-wrapper svg {
    width: 23px;
    height: 23px;
}

.cart-button-left .cart-count {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--color-red-primary);
    color: white;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    font-weight: 700;
    box-shadow: 0 0 10px rgba(255, 23, 68, 0.8);
}

/* Carrito en esquina superior derecha */
.cart-button-top-right {
    position: fixed;
    top: 20px;
    right: 250px;
    z-index: 1000;
    cursor: pointer;
    padding: 0.4rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: var(--color-bg-secondary);
    border: 1px solid rgba(255, 23, 68, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 45px;
    width: 45px;
    min-width: 45px;
}

.cart-button-top-right:hover {
    background: var(--color-bg-hover);
    border-color: var(--color-red-primary);
    box-shadow: 0 6px 20px rgba(255, 23, 68, 0.4);
}

.cart-button-top-right .cart-icon-wrapper {
    color: var(--color-red-primary);
    filter: drop-shadow(0 0 8px rgba(255, 23, 68, 0.8));
}

.cart-button-top-right .cart-icon-wrapper svg {
    width: 20px;
    height: 20px;
}

.cart-button-top-right .cart-count {
    width: 16px;
    height: 16px;
    font-size: 0.6rem;
    top: -6px;
    right: -6px;
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    background: var(--color-bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-primary);
    flex-shrink: 0;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 4px;
    object-fit: cover;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

.user-name {
    font-size: 0.95rem;
    color: var(--color-text-primary);
    font-weight: 500;
    line-height: 1.2;
}

.user-action {
    font-size: 0.75rem;
    color: var(--color-accent-orange);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
    display: block;
}

.user-button.logged-in-state .user-action {
    display: none;
}

.action-button {
    display: flex;
    align-items: center;
    gap: 0.1rem;
    background: transparent;
    padding: 0.75rem 1.5rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

#discordBtn {
    gap: 0.75rem;
}

.action-button:hover {
    transform: translateY(-2px);
}

.action-icon {
    width: 40px;
    height: 40px;
}

.play-icon {
    width: 70px;
    height: 70px;
    background: transparent;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--color-red-primary);
    flex-shrink: 0;
    text-shadow: 0 0 10px rgba(255, 23, 68, 0.8), 0 0 20px rgba(255, 23, 68, 0.6);
}

.play-icon svg {
    fill: currentColor;
}

.discord-icon {
    width: 60px;
    height: 60px;
    background: transparent;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--color-red-primary);
    flex-shrink: 0;
}

.discord-icon svg {
    fill: currentColor;
}

.action-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.action-info-ip {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

#discordBtn .action-info {
    align-items: flex-end;
    text-align: right;
}

.action-title-ip {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--color-red-primary);
    white-space: nowrap;
    text-shadow: 0 0 10px rgba(255, 23, 68, 0.8), 0 0 20px rgba(255, 23, 68, 0.6), 0 0 30px rgba(255, 23, 68, 0.4);
    display: inline-block;
    text-align: left;
    width: 140px;
}

.action-title-dc {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--color-red-primary);
    white-space: nowrap;
    text-shadow: 0 0 10px rgba(255, 23, 68, 0.8), 0 0 20px rgba(255, 23, 68, 0.6), 0 0 30px rgba(255, 23, 68, 0.4);
}

.action-subtitle {
    font-size: 0.75rem;
    color: var(--color-red-primary);
    font-weight: 400;
    opacity: 0.8;
    text-shadow: 0 0 8px rgba(255, 23, 68, 0.7), 0 0 15px rgba(255, 23, 68, 0.5);
}

/* Contenedor Principal */
.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: 350px 1fr 300px;
    gap: 2rem;
    position: relative;
    z-index: 1;
}

/* Sidebar con Widgets */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.widget {
    background: var(--color-bg-card);
    border-radius: 15px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 23, 68, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.widget:hover {
    border-color: var(--color-red-primary);
    box-shadow: 0 6px 25px rgba(255, 23, 68, 0.4);
    transform: translateY(-2px);
}

.widget-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--color-red-primary);
}

.widget-icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 23, 68, 0.2);
    border-radius: 8px;
}

.widget-title {
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-accent-yellow);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.widget-content {
    color: var(--color-text-primary);
    font-size: 0.9rem;
    line-height: 1.6;
}

.no-data {
    color: var(--color-text-secondary);
    font-style: italic;
    text-align: center;
    padding: 1rem 0;
}

.recent-payments {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.5rem;
}

.payment-avatar {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 8px;
    background: var(--color-bg-hover);
    border: 2px solid var(--color-red-primary);
    transition: all 0.3s ease;
    cursor: pointer;
}

.payment-avatar:hover {
    transform: scale(1.1);
    border-color: var(--color-blue-light);
    box-shadow: 0 0 15px rgba(79, 195, 247, 0.5);
}

.important-text {
    color: var(--color-text-secondary);
    line-height: 1.8;
}

.contact-text {
    color: var(--color-text-secondary);
    line-height: 1.8;
}

.contact-email {
    color: var(--color-blue-light);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
}

.contact-email:hover {
    color: var(--color-red-primary);
    text-decoration: underline;
}

/* Sección de Productos */
.products-section {
    min-height: 600px;
}

/* Sidebar de Categorías (derecha) */
.categories-sidebar {
    background: var(--color-bg-card);
    border-radius: 12px 12px 0 0;
    padding: 0;
    border: 1px solid rgba(255, 23, 68, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    height: fit-content;
    position: sticky;
    top: 2rem;
    overflow: hidden;
    z-index: 100;
}

.category-header {
    padding: 1.5rem 1.5rem;
    border-bottom: 1px solid rgba(255, 23, 68, 0.2);
    background: rgba(37, 37, 53, 0.8);
}

.category-header-title {
    font-family: var(--font-primary);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-white);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.category-nav-list {
    display: flex;
    flex-direction: column;
    padding: 0;
}

.category-nav-item {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 1rem 1.5rem;
    background: transparent;
    border: none;
    color: var(--color-text-primary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    width: 100%;
    position: relative;
    text-decoration: none;
}

.category-nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--color-red-primary);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.category-nav-item:hover {
    background: rgba(255, 23, 68, 0.08);
}

.category-nav-item.active {
    background: rgba(255, 152, 0, 0.12);
    color: var(--color-accent-orange);
}

.category-nav-item.active::before {
    transform: scaleY(1);
}

.category-nav-item.active .category-name {
    font-weight: 600;
    color: var(--color-accent-orange);
}

.category-icon {
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-name {
    flex: 1;
    font-family: var(--font-secondary);
    color: inherit;
}

/* Grid de Productos */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.product-card {
    background: var(--color-bg-card);
    border-radius: 15px;
    padding: 1.5rem;
    border: 2px solid rgba(255, 23, 68, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 15px;
    background: transparent;
    border: 2px solid var(--color-red-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.product-card:hover::before {
    opacity: 1;
}

.product-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-red-glow), var(--color-red-primary), var(--color-red-glow));
    transform: translateX(-50%);
    transition: width 0.3s ease;
    pointer-events: none;
    z-index: 3;
}

.product-card:hover::after {
    width: 100%;
}


.product-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-red-primary);
    box-shadow: 0 8px 30px rgba(255, 23, 68, 0.4);
}

.product-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1rem;
    background: var(--color-bg-hover);
}

.product-title {
    font-family: var(--font-primary);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

/* Estilos especiales para upgrades */
.product-card-upgrade {
    background: linear-gradient(135deg, var(--color-bg-card) 0%, rgba(255, 23, 68, 0.05) 100%);
}

.product-card-upgrade .product-category {
    background: linear-gradient(135deg, var(--color-red-primary), var(--color-accent-orange));
}

.upgrade-title-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
    padding: 0.75rem;
    background: rgba(255, 23, 68, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(255, 23, 68, 0.3);
}

.upgrade-from,
.upgrade-to {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 1.1rem;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.upgrade-from {
    color: var(--color-text-secondary);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.upgrade-to {
    color: var(--color-accent-yellow);
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.15), rgba(255, 152, 0, 0.15));
    border: 1px solid rgba(255, 193, 7, 0.3);
    box-shadow: 0 0 15px rgba(255, 193, 7, 0.2);
}

.upgrade-arrow {
    font-size: 1.8rem;
    color: var(--color-red-primary);
    font-weight: 300;
    animation: arrowPulse 2s ease-in-out infinite;
    filter: drop-shadow(0 0 8px rgba(255, 23, 68, 0.6));
}

@keyframes arrowPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.product-card-upgrade:hover .upgrade-arrow {
    animation: arrowPulse 1s ease-in-out infinite;
    filter: drop-shadow(0 0 12px rgba(255, 23, 68, 0.9));
}

.product-card-upgrade:hover .upgrade-to {
    box-shadow: 0 0 20px rgba(255, 193, 7, 0.4);
    transform: scale(1.05);
    transition: all 0.3s ease;
}

.product-description {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
    min-height: 60px;
}

.product-price {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--color-accent-yellow);
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(255, 193, 7, 0.5);
}

.product-button {
    flex: 1;
    padding: 0.75rem;
    background: var(--color-red-primary);
    border: none;
    border-radius: 8px;
    color: var(--color-white);
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-button:hover {
    background: var(--color-red-glow);
    box-shadow: 0 4px 15px rgba(255, 23, 68, 0.6);
    transform: translateY(-2px);
}

.product-buttons-container {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
}

.product-info-button {
    width: 48px;
    height: 100%;
    min-height: 48px;
    padding: 0;
    background: var(--color-red-primary);
    border: none;
    border-radius: 8px;
    color: var(--color-white);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    align-self: stretch;
}

.product-info-button:hover {
    background: var(--color-red-glow);
    transform: translateY(-2px);
}

.product-info-button svg {
    width: 20px;
    height: 20px;
}

.product-category {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.3rem 0.8rem;
    background: rgba(255, 23, 68, 0.9);
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Loading */
.loading-message {
    text-align: center;
    padding: 3rem;
    color: var(--color-text-secondary);
    position: relative;
    z-index: 1;
}

.loading-message[style*="display: none"] {
    display: none !important;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 23, 68, 0.3);
    border-top-color: var(--color-red-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Footer */
.footer {
    background: var(--color-bg-secondary);
    padding: 2rem;
    text-align: center;
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--color-red-primary);
}

.footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 70%;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--color-red-glow) 30%,
        var(--color-red-glow) 70%,
        transparent 100%
    );
    box-shadow: 0 0 10px var(--color-red-glow);
    animation: footerShine 1.5s linear infinite;
}

@keyframes footerShine {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.footer-content {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}

.footer-content p {
    margin: 0.5rem 0;
}

.footer-content p:first-child {
    margin-top: 0;
}

.footer-content p:last-child {
    margin-bottom: 0;
}


/* Responsive */
@media (max-width: 1400px) {
    .container {
        grid-template-columns: 300px 1fr 280px;
    }
}

@media (max-width: 1024px) {
    .container {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
    }
    
    .sidebar-left {
        order: 2;
    }
    
    .products-section {
        order: 1;
    }
    
    .categories-sidebar {
        order: 3;
        position: static;
    }
    
    .category-nav-list {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 0.5rem;
    }
    
    .category-nav-item {
        padding: 0.75rem 1rem;
        border-radius: 8px;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .logo {
        max-width: 250px;
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .recent-payments {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .header-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .action-button {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .recent-payments {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .category-filters {
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }
}

/* Sección Principal de Contenido */
.main-content {
    min-height: 600px;
}

/* Sidebar de Categorías (derecha) */
.category-sidebar {
    background: var(--color-bg-card);
    border-radius: 12px;
    padding: 0;
    border: 1px solid rgba(255, 23, 68, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    height: fit-content;
    position: sticky;
    top: 2rem;
    overflow: hidden;
    z-index: 100;
}

.category-sidebar-title {
    font-family: var(--font-primary);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-white);
    margin: 0;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 23, 68, 0.2);
    background: rgba(37, 37, 53, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.category-nav {
    display: flex;
    flex-direction: column;
    padding: 0;
}

/* Modal de Inicio de Sesión */
.login-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.login-modal.active {
    display: flex;
}

.login-content {
    background: var(--color-bg-card);
    border-radius: 20px;
    padding: 2.5rem;
    max-width: 450px;
    width: 90%;
    border: 2px solid var(--color-red-primary);
    box-shadow: 0 10px 40px rgba(255, 23, 68, 0.3);
    animation: modalSlideIn 0.3s ease;
    position: relative;
}

.login-content h2 {
    font-family: var(--font-primary);
    color: var(--color-red-primary);
    font-size: 2rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px rgba(255, 23, 68, 0.8);
    text-align: center;
}

.login-content p {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.login-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--color-bg-secondary);
    border: 2px solid rgba(255, 23, 68, 0.3);
    border-radius: 8px;
    color: var(--color-text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: var(--font-secondary);
    margin-bottom: 1rem;
}

.login-input:focus {
    outline: none;
    border-color: var(--color-red-primary);
    box-shadow: 0 0 15px rgba(255, 23, 68, 0.3);
}

.login-button {
    width: 100%;
    padding: 1rem;
    background: var(--color-red-primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    font-family: var(--font-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(255, 23, 68, 0.4);
}

.login-button:hover {
    background: var(--color-red-glow);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 23, 68, 0.6);
}

.login-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: var(--color-text-primary);
    font-size: 2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.login-close:hover {
    background: rgba(255, 23, 68, 0.2);
    color: var(--color-red-primary);
}

.login-modal-content {
    background: var(--color-bg-card);
    border-radius: 20px;
    padding: 2.5rem;
    max-width: 450px;
    width: 90%;
    border: 2px solid var(--color-red-primary);
    box-shadow: 0 10px 40px rgba(255, 23, 68, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-modal-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-modal-header h2 {
    font-family: var(--font-primary);
    color: var(--color-red-primary);
    font-size: 2rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px rgba(255, 23, 68, 0.8);
}

.login-modal-header p {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}

.login-modal-body {
    margin-top: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: var(--color-text-primary);
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--color-bg-secondary);
    border: 2px solid rgba(255, 23, 68, 0.3);
    border-radius: 8px;
    color: var(--color-text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: var(--font-secondary);
}

.form-group input:focus {
    outline: none;
    border-color: var(--color-red-primary);
    box-shadow: 0 0 15px rgba(255, 23, 68, 0.3);
}

.login-submit-btn {
    width: 100%;
    padding: 1rem;
    background: var(--color-red-primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    font-family: var(--font-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(255, 23, 68, 0.4);
}

.login-submit-btn:hover {
    background: var(--color-red-glow);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 23, 68, 0.6);
}

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

/* Modal del Carrito */
.cart-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.cart-modal.active {
    display: flex;
}

.cart-content {
    background: var(--color-bg-card);
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    border: 2px solid var(--color-red-primary);
    box-shadow: 0 10px 40px rgba(255, 23, 68, 0.3);
    animation: modalSlideIn 0.3s ease;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 2px solid rgba(255, 23, 68, 0.3);
}

.cart-header h2 {
    font-family: var(--font-primary);
    color: var(--color-red-primary);
    font-size: 1.5rem;
    text-shadow: 0 0 10px rgba(255, 23, 68, 0.8);
    margin: 0;
}

.cart-close {
    background: transparent;
    border: none;
    color: var(--color-text-primary);
    font-size: 2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.cart-close:hover {
    background: rgba(255, 23, 68, 0.2);
    color: var(--color-red-primary);
}

.cart-modal-content {
    background: var(--color-bg-card);
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    border: 2px solid var(--color-red-primary);
    box-shadow: 0 10px 40px rgba(255, 23, 68, 0.3);
    animation: modalSlideIn 0.3s ease;
}

.cart-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 2px solid rgba(255, 23, 68, 0.3);
}

.cart-modal-header h2 {
    font-family: var(--font-primary);
    color: var(--color-red-primary);
    font-size: 1.5rem;
    text-shadow: 0 0 10px rgba(255, 23, 68, 0.8);
}

.cart-close-btn {
    background: transparent;
    border: none;
    color: var(--color-text-primary);
    font-size: 2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.cart-close-btn:hover {
    background: rgba(255, 23, 68, 0.2);
    color: var(--color-red-primary);
}

.cart-modal-body {
    padding: 1.5rem 2rem;
    overflow-y: auto;
    flex: 1;
}

.cart-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--color-text-secondary);
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--color-bg-secondary);
    border-radius: 10px;
    border: 1px solid rgba(255, 23, 68, 0.2);
}

.cart-item-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    background: var(--color-bg-primary);
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 0.25rem;
}

.cart-item-price {
    color: var(--color-red-primary);
    font-weight: 700;
}

.cart-item-remove {
    background: transparent;
    border: 1px solid var(--color-red-primary);
    color: var(--color-red-primary);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.cart-item-remove:hover {
    background: var(--color-red-primary);
    color: white;
}

.cart-footer {
    padding: 1.5rem 2rem;
    border-top: 2px solid rgba(255, 23, 68, 0.3);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cart-total-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-total-label {
    font-size: 1.2rem;
    color: var(--color-text-primary);
    font-weight: 600;
}

.cart-total {
    font-size: 1.5rem;
    color: var(--color-red-primary);
    font-weight: 700;
    text-shadow: 0 0 10px rgba(255, 23, 68, 0.8);
    font-family: var(--font-primary);
}

.cart-modal-footer {
    padding: 1.5rem 2rem;
    border-top: 2px solid rgba(255, 23, 68, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.cart-total strong {
    color: var(--color-red-primary);
    font-size: 1.5rem;
    text-shadow: 0 0 10px rgba(255, 23, 68, 0.8);
}

.cart-checkout-btn {
    padding: 1rem 2rem;
    background: var(--color-red-primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    font-family: var(--font-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(255, 23, 68, 0.4);
}

.cart-checkout-btn:hover:not(:disabled) {
    background: var(--color-red-glow);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 23, 68, 0.6);
}

.cart-checkout-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Animaciones para notificaciones */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Modal de Información del Rango */
.rank-info-content {
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.rank-info-content::-webkit-scrollbar {
    width: 8px;
}

.rank-info-content::-webkit-scrollbar-track {
    background: var(--color-bg-secondary);
    border-radius: 4px;
}

.rank-info-content::-webkit-scrollbar-thumb {
    background: var(--color-red-primary);
    border-radius: 4px;
}

.rank-info-content::-webkit-scrollbar-thumb:hover {
    background: var(--color-red-glow);
}

.rank-info-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 23, 68, 0.2);
}

.rank-info-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.rank-info-section-title {
    font-family: var(--font-primary);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-red-primary);
    margin-bottom: 0.75rem;
    text-shadow: 0 0 8px rgba(255, 23, 68, 0.6);
}

.rank-info-text {
    color: var(--color-text-primary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.rank-info-price {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--color-accent-yellow);
    text-shadow: 0 0 10px rgba(255, 193, 7, 0.5);
    margin: 0;
}

.rank-info-benefits {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rank-info-benefits li {
    color: var(--color-text-primary);
    font-size: 0.95rem;
    line-height: 1.8;
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.5rem;
}

.rank-info-benefits li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-red-primary);
    font-weight: 700;
    font-size: 1.1rem;
    text-shadow: 0 0 8px rgba(255, 23, 68, 0.6);
}

