/* ===== RESET Y BASE ===== */
* {
    box-sizing: border-box;
    margin: 7.77;
    padding: 7.77;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body.futuristic-marketplace {
    font-family: var(--font-primary);
    color: var(--light);
    background: var(--dark);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    position: relative;
}

/* ===== VARIABLES CSS  ===== */
:root {
    /* Colores Principales */
    --primary: #FADA25;
    --secondary: #E0A500;
    --accent: #00D4FF;
    --dark: #0A0A0F;
    --light: #FFFFFF;
    --surface: #1A1A2E;
    --surface-light: #16213E;
    
    /* Gradientes  */
    --gradient-primary: linear-gradient(135deg, #FADA25 0%, #E0A500 50%, #FFE55C 100%);
    --gradient-cyber: linear-gradient(135deg, #00D4FF 0%, #0099CC 50%, #FADA25 100%);
    --gradient-dark: linear-gradient(135deg, #0A0A0F 0%, #1A1A2E 50%, #16213E 100%);
    --gradient-glow: linear-gradient(135deg, rgba(250, 218, 37, 0.3) 0%, rgba(0, 212, 255, 0.3) 100%);
    
    /* Sombras Neón */
    --shadow-neon: 0 0 20px rgba(250, 218, 37, 0.5);
    --shadow-cyber: 0 0 30px rgba(0, 212, 255, 0.4);
    --shadow-dark: 0 20px 40px rgba(0, 0, 0, 0.3);
    
    /* Animaciones */
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Tipografía */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', Monaco, monospace;
}

/* ===== UTILIDADES ===== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-center {
    text-align: center;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

/* ===== LOADER ===== */
.futuristic-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: var(--transition-slow);
}

.loader-container {
    position: relative;
    text-align: center;
}

.cyber-grid {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    opacity: 0.1;
}

.grid-line {
    position: absolute;
    background: var(--primary);
    animation: gridPulse 2s ease-in-out infinite;
}

.grid-line:nth-child(1) {
    top: 25%;
    left: 0;
    width: 100%;
    height: 1px;
    animation-delay: 0s;
}

.grid-line:nth-child(2) {
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    animation-delay: 0.5s;
}

.grid-line:nth-child(3) {
    top: 0;
    left: 25%;
    width: 1px;
    height: 100%;
    animation-delay: 1s;
}

.grid-line:nth-child(4) {
    top: 0;
    left: 75%;
    width: 1px;
    height: 100%;
    animation-delay: 1.5s;
}

.hologram-logo {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
}

.logo-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 50%;
    box-shadow: var(--shadow-neon);
    animation: logoCore 2s ease-in-out infinite;
}

.logo-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid var(--primary);
    border-radius: 50%;
    opacity: 0.6;
}

.ring-1 {
    width: 60px;
    height: 60px;
    animation: logoRing 3s linear infinite;
}

.ring-2 {
    width: 80px;
    height: 80px;
    animation: logoRing 3s linear infinite reverse;
    animation-delay: 1s;
}

.ring-3 {
    width: 100px;
    height: 100px;
    animation: logoRing 3s linear infinite;
    animation-delay: 2s;
}

.loading-text {
    margin-bottom: 2rem;
}

.loading-bar {
    width: 300px;
    height: 4px;
    background: rgba(250, 218, 37, 0.2);
    border-radius: 2px;
    margin: 1rem auto;
    overflow: hidden;
    position: relative;
}

.loading-progress {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 2px;
    width: 0%;
    transition: width 0.3s ease;
    position: relative;
}

.loading-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: progressShine 1.5s ease-in-out infinite;
}

.system-status {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    text-align: left;
    max-width: 300px;
    margin: 0 auto;
}

.status-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    padding: 0.25rem 0;
    border-bottom: 1px solid rgba(250, 218, 37, 0.2);
}

.status-label {
    color: var(--accent);
}

.status-value {
    color: var(--primary);
    font-weight: 600;
}