/* --- VARIABLES DE COLOR --- */
:root {
    --bg-main: #050505;
    --bg-card: #0f0f0f;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    
    /* Colores de marca */
    --color-intel: #0068B5;   /* Azul Intel */
    --color-realtek: #00C7FD; /* Cyan Realtek */
    --color-private: #8b5cf6; /* Violeta Nebula */
    --color-support: #10b981; /* Verde Soporte */
}

/* --- CONFIGURACIÓN GENERAL --- */
body {
    margin: 0; padding: 0;
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

a { text-decoration: none; color: inherit; }

/* --- HEADER --- */
.market-header { text-align: center; margin-bottom: 60px; padding-top: 40px; }
.market-header h1 {
    font-size: 3.5rem; font-weight: 800; margin-bottom: 15px; letter-spacing: -2px;
    background: linear-gradient(to right, #fff, #8b5cf6);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.market-header p { color: var(--text-secondary); font-size: 1.2rem; }

.setup-link {
    color: var(--text-secondary); font-size: 0.9rem; border: 1px solid rgba(255,255,255,0.1);
    padding: 8px 16px; border-radius: 20px; transition: 0.3s;
}
.setup-link:hover { color: white; border-color: var(--color-private); }

/* --- BARRA DE BÚSQUEDA --- */
.search-container { max-width: 500px; margin: 40px auto 60px; position: relative; }
.search-input {
    width: 100%; padding: 16px 20px 16px 50px; border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1); background-color: var(--bg-card);
    color: white; font-size: 1rem; outline: none; transition: 0.3s;
}
.search-input:focus { border-color: var(--color-private); box-shadow: 0 0 20px rgba(139, 92, 246, 0.2); }
.search-icon { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--text-secondary); }

/* --- GRID DE PRODUCTOS --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 25px;
}

/* --- DISEÑO DE TARJETA --- */
.product-card {
    background-color: var(--bg-card);
    border-radius: 16px; padding: 25px;
    display: flex; align-items: center; gap: 20px;
    position: relative; overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Temas */
.card-intel { --theme: var(--color-intel); }
.card-realtek { --theme: var(--color-realtek); }
.card-private { --theme: var(--color-private); }
.card-support { --theme: var(--color-support); }

/* Efectos Hover */
.product-card:hover {
    transform: translateY(-5px);
    border-color: var(--theme);
    box-shadow: 0 10px 40px -10px rgba(var(--theme), 0.2);
}

/* Efecto Brillo Fondo */
.product-card::after {
    content: ''; position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background: radial-gradient(circle at top right, var(--theme), transparent 60%);
    opacity: 0; transition: 0.3s; z-index: 0; pointer-events: none;
}
.product-card:hover::after { opacity: 0.08; }

/* Badge */
.card-badge {
    position: absolute; top: 15px; right: 15px;
    background: rgba(255,255,255,0.05); font-size: 0.7rem; font-weight: 700;
    text-transform: uppercase; padding: 4px 10px; border-radius: 6px;
    color: var(--theme); border: 1px solid var(--theme); z-index: 2;
}

/* Icono */
.card-icon {
    width: 70px; height: 70px; border-radius: 14px;
    background: linear-gradient(145deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
    display: flex; align-items: center; justify-content: center;
    border: 1px solid rgba(255,255,255,0.1); flex-shrink: 0; z-index: 2;
}
.card-icon svg { width: 35px; height: 35px; color: var(--theme); filter: drop-shadow(0 0 8px var(--theme)); }

/* Info Texto */
.card-info { flex-grow: 1; z-index: 2; }
.card-title { font-size: 1.2rem; font-weight: 700; color: white; margin: 0 0 5px 0; transition: 0.3s; }
.product-card:hover .card-title { color: var(--theme); }
.card-desc { font-size: 0.85rem; color: var(--text-secondary); margin: 0 0 15px 0; line-height: 1.4; }

/* Footer de la tarjeta */
.card-footer {
    display: flex; justify-content: space-between; align-items: center;
    border-top: 1px solid rgba(255,255,255,0.05); padding-top: 12px;
}
.price { font-size: 1.2rem; font-weight: 700; color: white; }
.status { font-size: 0.75rem; display: flex; align-items: center; gap: 6px; color: #10b981; }
.status-dot { width: 6px; height: 6px; background-color: #10b981; border-radius: 50%; box-shadow: 0 0 5px #10b981; }