// Shared data for Propuesta 1
const SCREENS = [
  { id: 'home',     num: '01', label: 'Inicio' },
  { id: 'shop',     num: '02', label: 'Tienda' },
  { id: 'product',  num: '03', label: 'Producto' },
  { id: 'cart',     num: '04', label: 'Carrito' },
  { id: 'checkout', num: '05', label: 'Checkout' },
  { id: 'auth',     num: '06', label: 'Acceso' },
  { id: 'tech',     num: '07', label: 'Portal Técnicos' },
];

const CATEGORIES = [
  { id: 'cctv',     name: 'Cámaras CCTV',        sub: '4K · IP · PTZ' },
  { id: 'motores',  name: 'Motores y Portones',  sub: 'Corredizos · Levadizos' },
  { id: 'alarmas',  name: 'Alarmas e Intrusión', sub: 'Sensores · Sirenas' },
  { id: 'incendio', name: 'Detección Incendio',  sub: 'Humo · Calor · CO' },
  { id: 'accesos',  name: 'Control de Accesos',  sub: 'Cerraduras · Biométricos' },
  { id: 'domotica', name: 'Domótica IoT',         sub: 'Smart Home · Sensores' },
];

const PRODUCTS = [
  { sku: 'DJ-CAM-IP4K-01', name: 'Cámara IP Domo 4K con visión nocturna 60m', price: 287.50, oldPrice: 359.00, cat: 'cctv', brand: 'Hikvision', tag: 'destacado', stock: 12, power: '12V', rating: 4.7 },
  { sku: 'DJ-MOT-CORR-1T', name: 'Motor corredizo 1000kg con cremallera', price: 412.00, oldPrice: null, cat: 'motores', brand: 'Casemil', tag: 'nuevo', stock: 8, power: '110V · 1HP', rating: 4.8 },
  { sku: 'DJ-CAM-BUL-PRO', name: 'Cámara bullet exterior 5MP IR 40m', price: 156.00, oldPrice: 198.00, cat: 'cctv', brand: 'Dahua', tag: 'destacado', stock: 24, power: '12V', rating: 4.5 },
  { sku: 'DJ-MOT-LEV-600', name: 'Motor levadizo para portones de 600kg', price: 348.00, oldPrice: null, cat: 'motores', brand: 'DKC', tag: 'nuevo', stock: 5, power: '220V', rating: 4.6 },
  { sku: 'DJ-ALA-KIT-WF', name: 'Kit alarma inalámbrica WiFi 8 sensores', price: 189.50, oldPrice: 245.00, cat: 'alarmas', brand: 'Garnet', tag: 'oferta', stock: 18, power: 'AC · Bat', rating: 4.4 },
  { sku: 'DJ-CER-BIO-FP', name: 'Cerradura biométrica con huella y app', price: 134.00, oldPrice: null, cat: 'accesos', brand: 'Yale', tag: 'destacado', stock: 9, power: 'Bat. AAA', rating: 4.7 },
  { sku: 'DJ-DVR-08CH', name: 'DVR híbrido 8 canales 4K UHD', price: 215.00, oldPrice: 269.00, cat: 'cctv', brand: 'Hikvision', tag: 'oferta', stock: 14, power: '12V', rating: 4.6 },
  { sku: 'DJ-DET-HUM-FC', name: 'Detector de humo fotoeléctrico autónomo', price: 28.50, oldPrice: null, cat: 'incendio', brand: 'Marshall', tag: null, stock: 56, power: '9V Bat', rating: 4.3 },
];

const FILTERS = [
  { key: 'cat',      label: 'Categoría',         opts: ['Cámaras CCTV', 'Motores y Portones', 'Alarmas', 'Incendio', 'Accesos', 'Domótica'] },
  { key: 'brand',    label: 'Marca',             opts: ['Hikvision', 'Dahua', 'Casemil', 'DKC', 'Garnet', 'Yale', 'Bosch', 'Marshall', 'Nice'] },
  { key: 'capacity', label: 'Capacidad arrastre',opts: ['Hasta 400kg', '400 – 600kg', '600 – 1000kg', 'Más de 1000kg'] },
  { key: 'power',    label: 'Potencia',          opts: ['12V', '24V', '110V', '220V', 'Batería'] },
  { key: 'speed',    label: 'Velocidad recorrido',opts: ['Estándar', 'Alta', 'Variable'] },
  { key: 'plate',    label: 'Tipo de placa',     opts: ['Estándar', 'Profesional', 'IA integrada'] },
  { key: 'backup',   label: 'Backup batería',    opts: ['Sí', 'No'] },
];

window.SCREENS = SCREENS;
window.CATEGORIES = CATEGORIES;
window.PRODUCTS = PRODUCTS;
window.FILTERS = FILTERS;
