:root {
    --bg-dark: #121212;
    --bg-card: #1e1e1e;
    --primary: #ff5722; /* Naranja industrial */
    --text-light: #f5f5f5;
    --text-muted: #a0a0a0;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }
body { background-color: var(--bg-dark); color: var(--text-light); }

/* Header */
.header { display: flex; align-items: center; justify-content: space-between; padding: 20px 40px; background-color: #0a0a0a; border-bottom: 2px solid var(--primary); position: sticky; top: 0; z-index: 100; }
.logo { font-size: 24px; font-weight: 800; color: var(--primary); letter-spacing: 2px; }
.logo span { color: var(--text-light); font-size: 16px; font-weight: 400; margin-left: 5px; }
.search-bar { display: flex; flex: 1; max-width: 500px; margin: 0 40px; }
.search-bar input { width: 100%; padding: 12px 20px; border: none; border-radius: 4px 0 0 4px; background: #222; color: white; outline: none; }
.search-bar button { padding: 0 20px; background: var(--primary); border: none; border-radius: 0 4px 4px 0; cursor: pointer; font-size: 18px; }
.cart-icon { font-size: 24px; cursor: pointer; }
.cart-icon span { background: var(--primary); color: white; font-size: 12px; border-radius: 50%; padding: 2px 6px; position: relative; top: -10px; left: -5px; }

/* Hero */
.hero { background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://images.unsplash.com/photo-1492144534655-ae79c964c9d7?q=80&w=2000') center/cover; height: 400px; display: flex; align-items: center; padding: 0 50px; }
.hero-content h1 { font-size: 48px; font-weight: 800; margin-bottom: 10px; text-transform: uppercase; }
.hero-content p { font-size: 18px; color: var(--text-muted); margin-bottom: 20px; }
.btn-primary { background: var(--primary); color: white; border: none; padding: 15px 30px; font-size: 16px; font-weight: 600; cursor: pointer; border-radius: 4px; text-transform: uppercase; }
.btn-primary:hover { background: #e64a19; }

/* Categorías */
.categories { display: flex; gap: 20px; padding: 40px 50px; justify-content: center; }
.cat-card { background: var(--bg-card); padding: 20px 40px; border-radius: 8px; font-size: 18px; font-weight: 600; cursor: pointer; border: 1px solid #333; transition: 0.3s; }
.cat-card:hover { border-color: var(--primary); transform: translateY(-5px); }

/* Productos */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 30px; padding: 20px 50px 80px 50px; }
.product-card { background: var(--bg-card); border-radius: 8px; overflow: hidden; border: 1px solid #333; transition: 0.3s; }
.product-card:hover { border-color: var(--primary); box-shadow: 0 10px 20px rgba(255, 87, 34, 0.1); }
.product-img { height: 200px; display: flex; align-items: center; justify-content: center; color: #666; background-size: cover; background-position: center; }
.product-info { padding: 20px; }
.brand { font-size: 12px; color: var(--primary); font-weight: 800; text-transform: uppercase; letter-spacing: 1px; }
.product-info h3 { margin: 5px 0; font-size: 18px; }
.compatibility { font-size: 14px; color: var(--text-muted); margin-bottom: 15px; }
.price { font-size: 24px; font-weight: 800; margin-bottom: 15px; }
.btn-add { width: 100%; padding: 12px; background: transparent; border: 2px solid var(--primary); color: var(--primary); font-weight: 600; border-radius: 4px; cursor: pointer; transition: 0.3s; }
.btn-add:hover { background: var(--primary); color: white; }

/* --- ESTILOS DEL CARRITO --- */
.hidden { display: none !important; }
.modal { position: fixed; inset: 0; background: rgba(0,0,0,0.8); z-index: 1000; display: flex; justify-content: flex-end; }
.modal-content { width: 100%; max-width: 400px; background: var(--bg-card); height: 100%; display: flex; flex-direction: column; box-shadow: -5px 0 15px rgba(0,0,0,0.5); }
.modal-header { padding: 20px; border-bottom: 1px solid #333; display: flex; justify-content: space-between; align-items: center; }
.modal-header h2 { font-size: 20px; color: var(--primary); }
.modal-header button { background: none; border: none; color: white; font-size: 28px; cursor: pointer; }
.cart-items { flex: 1; overflow-y: auto; padding: 20px; }
.cart-item { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #333; padding-bottom: 15px; margin-bottom: 15px; }
.cart-item-info h4 { font-size: 16px; margin-bottom: 5px; }
.cart-item-info p { font-size: 14px; color: var(--text-muted); }
.cart-item-price { font-weight: 800; color: var(--primary); }
.btn-eliminar { background: none; border: none; color: #ff5252; cursor: pointer; font-size: 12px; margin-top: 5px; }
.cart-footer { padding: 20px; border-top: 1px solid #333; background: #0a0a0a; }
.cart-footer h3 { display: flex; justify-content: space-between; margin-bottom: 15px; font-size: 20px; }
.btn-checkout { width: 100%; background: var(--primary); color: white; padding: 15px; border: none; font-weight: 800; font-size: 16px; cursor: pointer; border-radius: 4px; text-transform: uppercase; }
.btn-checkout:hover { background: #e64a19; }
