:root {
            --primary: #1e3a5f;
            --primary-dark: #0e1a2b;
            --accent: #3182ce;
            --accent-hover: #2b6cb0;
            --gold: #d69e2e;
            --success: #2f855a;
            --light-bg: #f8fafc;
            --card-bg: #ffffff;
            --text-dark: #1a202c;
            --text-muted: #4a5568;
            --border-color: #e2e8f0;
        }

        * { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', system-ui, sans-serif; }
        body { background: var(--light-bg); color: var(--text-dark); min-height: 100vh; display: flex; flex-direction: column; }

        /* Header e-commerce */
        header { background: var(--primary-dark); color: white; border-bottom: 3px solid var(--accent); position: sticky; top: 0; z-index: 1000; box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
        nav { max-width: 1300px; margin: 0 auto; padding: 0.8rem 1.5rem; display: flex; justify-content: space-between; align-items: center; }

        .brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: white; font-weight: 800; font-size: 1.3rem; }
        .brand img { width: 38px; height: 38px; border-radius: 6px; background: white; padding: 2px; }

        .search-box { display: flex; flex: 1; max-width: 550px; margin: 0 1.5rem; }
        .search-box input { flex: 1; padding: 0.65rem 1rem; border-radius: 8px 0 0 8px; border: 1px solid var(--border-color); outline: none; font-size: 0.95rem; }
        .search-box button { background: var(--accent); color: white; border: none; padding: 0 1.2rem; border-radius: 0 8px 8px 0; font-weight: bold; cursor: pointer; }

        .header-actions { display: flex; align-items: center; gap: 1rem; }
        .cart-btn { background: var(--accent); color: white; border: none; padding: 0.6rem 1.1rem; border-radius: 8px; font-weight: 700; cursor: pointer; display: flex; align-items: center; gap: 0.5rem; }

        /* Banner Hero */
        .store-hero { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); color: white; padding: 2.5rem 1.5rem; text-align: center; }
        .store-hero h1 { font-size: 2.2rem; margin-bottom: 0.5rem; }
        .store-hero p { color: #cbd5e0; font-size: 1.05rem; }

        /* Filtros por Escenario de Uso */
        .solutions-bar { background: #ebf8ff; border-bottom: 1px solid #bee3f8; padding: 0.75rem 1.5rem; }
        .solutions-container { max-width: 1300px; margin: 0 auto; display: flex; justify-content: center; gap: 1.5rem; flex-wrap: wrap; }
        .sol-btn { background: white; border: 1px solid #90cdf4; color: var(--primary); padding: 0.4rem 0.9rem; border-radius: 50px; font-size: 0.85rem; font-weight: 700; cursor: pointer; transition: all 0.2s; }
        .sol-btn:hover, .sol-btn.active { background: var(--accent); color: white; border-color: var(--accent); }

        /* Layout Principal */
        main { max-width: 1300px; margin: 2rem auto; width: 100%; padding: 0 1.5rem; display: grid; grid-template-columns: 240px 1fr; gap: 2rem; flex: 1; }

        /* Filtros Laterales */
        .sidebar { background: white; padding: 1.25rem; border-radius: 12px; border: 1px solid var(--border-color); height: fit-content; }
        .sidebar h3 { font-size: 1.05rem; margin-bottom: 1rem; color: var(--primary); border-bottom: 2px solid var(--light-bg); padding-bottom: 0.5rem; }
        .cat-list { list-style: none; display: flex; flex-direction: column; gap: 0.4rem; }
        .cat-item { font-size: 0.9rem; color: var(--text-muted); cursor: pointer; padding: 0.45rem 0.75rem; border-radius: 6px; transition: background 0.15s; }
        .cat-item:hover, .cat-item.active { background: #ebf8ff; color: var(--accent); font-weight: 700; }

        /* Grid de Productos */
        .products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; }
        .product-card {
            background: white;
            border: 1px solid var(--border-color);
            border-radius: 12px;
            padding: 1.25rem;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            transition: transform 0.2s, box-shadow 0.2s;
            position: relative;
            overflow: hidden;
        }
        .product-card:hover { transform: translateY(-4px); box-shadow: 0 8px 20px rgba(0,0,0,0.08); }
        .product-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.75rem; }
        .product-img-container { background: #f8fafc; border-radius: 8px; padding: 0.75rem; text-align: center; margin-bottom: 1rem; }
        .product-img { width: 100%; height: 160px; object-fit: contain; border-radius: 6px; }
        .product-badge { background: #e6fffa; color: #234e52; border: 1px solid #b2f5ea; font-size: 0.75rem; font-weight: 800; padding: 0.25rem 0.65rem; border-radius: 50px; }
        .product-title { font-size: 0.95rem; font-weight: 700; color: var(--text-dark); margin-bottom: 0.4rem; line-height: 1.35; height: 2.7em; overflow: hidden; }
        .product-sku { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 0.8rem; font-family: monospace; }
        .product-price-box { margin-bottom: 1rem; }
        .product-price { font-size: 1.4rem; font-weight: 900; color: var(--primary); }
        .product-price-tax { font-size: 0.75rem; color: var(--text-muted); }

        .btn-add-cart {
            background: var(--success);
            color: white;
            border: none;
            padding: 0.75rem;
            border-radius: 8px;
            font-weight: 800;
            cursor: pointer;
            width: 100%;
            transition: background 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.4rem;
        }
        .btn-add-cart:hover { background: #276749; }

        .btn-ws-consult {
            background: #25d366;
            color: white;
            border: none;
            padding: 0.45rem;
            border-radius: 6px;
            font-size: 0.78rem;
            font-weight: 700;
            cursor: pointer;
            width: 100%;
            margin-top: 0.4rem;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.3rem;
            text-decoration: none;
        }

        /* Modal Carrito / Checkout Mercado Pago */
        .cart-modal { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.7); display: none; align-items: center; justify-content: center; z-index: 9999; }
        .cart-modal-card { background: white; padding: 2rem; border-radius: 12px; max-width: 560px; width: 90%; color: var(--text-dark); }

        footer { background: var(--primary-dark); color: white; padding: 2rem; text-align: center; margin-top: 3rem; font-size: 0.9rem; }
        footer a { color: #63b3ed; text-decoration: none; }