/* ── COMPARADOR ORUGA ──────────────────────────────────────────────────── */
.comp-wrap { max-width: 1400px; margin: 0 auto; padding: 28px 20px 60px; }
.comp-wrap * { box-sizing: border-box; font-family: 'Inter', sans-serif; }

.comp-breadcrumb { font-size: 12px; color: var(--text-dim); margin-bottom: 10px; display: flex; gap: 6px; }
.comp-breadcrumb a { color: var(--text-dim); text-decoration: none; }
.comp-breadcrumb a:hover { color: var(--cyan); }
.comp-title { font-family: 'Barlow Condensed', sans-serif !important; font-size: 38px; font-weight: 900; text-transform: uppercase; letter-spacing: .02em; color: var(--text); margin-bottom: 4px; }
.comp-title span { color: var(--cyan); }
.comp-subtitle { font-size: 14px; color: var(--text-muted); margin-bottom: 24px; }

.comp-search-box { background: var(--bg3); border: 1px solid var(--border); border-radius: 10px; padding: 16px 20px; margin-bottom: 24px; }
.comp-search-row { display: flex; gap: 12px; }
.comp-search-input { flex: 1; background: var(--bg2); border: 1px solid var(--border2); color: var(--text); padding: 10px 16px; border-radius: 7px; font-size: 15px; outline: none; transition: border-color .2s; font-family: 'Inter', sans-serif !important; }
.comp-search-input:focus { border-color: var(--cyan); }
.comp-search-input::placeholder { color: var(--text-dim); }
.comp-btn-buscar { background: var(--violet); color: #fff; border: none; padding: 10px 28px; border-radius: 7px; font-family: 'Barlow Condensed', sans-serif !important; font-size: 16px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; white-space: nowrap; transition: background .2s; }
.comp-btn-buscar:hover { background: #7f35e0; }
.comp-pills { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.comp-pill { font-size: 12px; padding: 3px 12px; border-radius: 20px; background: var(--bg2); border: 1px solid var(--border2); color: var(--text-muted); cursor: pointer; transition: all .2s; font-family: 'JetBrains Mono', monospace !important; }
.comp-pill:hover { border-color: var(--cyan); color: var(--cyan); }

.comp-layout { display: grid; grid-template-columns: 220px 1fr; gap: 20px; align-items: start; }
.comp-sidebar { position: sticky; top: 80px; }
.comp-filter-panel { background: var(--bg3); border: 1px solid var(--border); border-radius: 10px; padding: 16px; margin-bottom: 12px; }
.comp-filter-panel h3 { font-family: 'JetBrains Mono', monospace !important; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--text-dim); margin: 0 0 12px; display: flex; justify-content: space-between; align-items: center; }
.comp-filter-panel h3 button { font-size: 10px; background: none; border: none; color: var(--violet); cursor: pointer; font-family: 'JetBrains Mono', monospace !important; padding: 0; }
.comp-filter-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.comp-filter-row label { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-muted); cursor: pointer; }
.comp-filter-row label:hover { color: var(--text); }
.comp-filter-row input[type=checkbox] { accent-color: var(--violet); width: 14px; height: 14px; cursor: pointer; }
.comp-filter-count { font-size: 11px; color: var(--text-dim); font-family: 'JetBrains Mono', monospace !important; }
.comp-price-inputs { display: flex; gap: 6px; align-items: center; margin-bottom: 10px; }
.comp-price-inputs input { width: 82px; background: var(--bg2); border: 1px solid var(--border2); color: var(--text); padding: 6px 8px; border-radius: 5px; font-size: 12px; font-family: 'JetBrains Mono', monospace !important; text-align: center; outline: none; }
.comp-price-inputs input:focus { border-color: var(--cyan); }
.comp-price-inputs > span { color: var(--text-dim); }
.comp-sdot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; display: inline-block; }
.comp-slabel { display: flex; align-items: center; gap: 5px; font-size: 12px; }
.comp-cat-chips { display: flex; flex-direction: column; gap: 5px; }
.comp-cat-chip { display: flex; align-items: center; justify-content: space-between; padding: 7px 10px; border-radius: 6px; border: 1px solid var(--border); background: var(--bg2); cursor: pointer; transition: all .2s; text-decoration: none; }
.comp-cat-chip:hover { border-color: var(--border2); }
.comp-cat-chip.active { border-color: var(--violet); background: rgba(155,77,255,.08); }
.comp-cat-chip-label { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-muted); }
.comp-cat-chip.active .comp-cat-chip-label { color: var(--text); }
.comp-cat-chip-count { font-family: 'JetBrains Mono', monospace !important; font-size: 10px; color: var(--text-dim); }
.comp-btn-reset { width: 100%; background: transparent; border: 1px solid var(--border2); color: var(--text-dim); padding: 7px; border-radius: 6px; font-size: 12px; cursor: pointer; font-family: 'JetBrains Mono', monospace !important; transition: all .2s; margin-top: 4px; }
.comp-btn-reset:hover { border-color: var(--orange); color: var(--orange); }

.comp-results-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; flex-wrap: wrap; gap: 8px; }
.comp-results-count { font-family: 'JetBrains Mono', monospace !important; font-size: 12px; color: var(--text-muted); }
.comp-results-count strong { color: var(--cyan); }
.comp-sort-group { display: flex; gap: 6px; }
.comp-sort-btn { background: var(--bg3); border: 1px solid var(--border); color: var(--text-muted); padding: 5px 14px; border-radius: 5px; font-size: 12px; font-family: 'JetBrains Mono', monospace !important; cursor: pointer; transition: all .2s; }
.comp-sort-btn.active { border-color: var(--violet); color: var(--violet); background: rgba(155,77,255,.08); }
.comp-view-toggle { display: flex; gap: 4px; }
.comp-view-btn { background: var(--bg3); border: 1px solid var(--border); color: var(--text-dim); width: 30px; height: 30px; border-radius: 5px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all .2s; padding: 0; }
.comp-view-btn.active { border-color: var(--cyan); color: var(--cyan); }

.comp-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.comp-card { background: var(--bg3); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; transition: all .22s; display: flex; flex-direction: column; }
.comp-card:hover { border-color: var(--violet); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.4); }
.comp-card.comp-amazon-card { border-color: rgba(255,153,0,.2); }
.comp-card.comp-amazon-card:hover { border-color: #ff9900; }
.comp-card-img { position: relative; background: #ffffff; padding: 20px; display: flex; align-items: center; justify-content: center; height: 140px; border-bottom: 1px solid var(--border); }
.comp-card-img img { max-width: 100%; max-height: 100px; object-fit: contain; }
.comp-badge { position: absolute; top: 8px; left: 8px; font-size: 10px; font-weight: 700; font-family: 'JetBrains Mono', monospace !important; padding: 2px 8px; border-radius: 3px; text-transform: uppercase; letter-spacing: .05em; }
.comp-badge-cheap { background: var(--cyan); color: #000; }
.comp-badge-amz { background: rgba(255,153,0,.15); color: #ff9900; top: 8px; right: 8px; left: auto; }
.comp-saving-badge { position: absolute; top: 8px; right: 8px; background: #00c853; color: #fff; font-size: 10px; font-family: 'JetBrains Mono', monospace !important; font-weight: 700; padding: 3px 9px; border-radius: 4px; }
.comp-card-body { padding: 12px 14px; flex: 1; display: flex; flex-direction: column; }
.comp-card-brand { font-family: 'JetBrains Mono', monospace !important; font-size: 10px; color: var(--text-dim); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 3px; }
.comp-card-name { font-size: 13px; font-weight: 500; color: var(--text); line-height: 1.35; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 36px; }
.comp-card-price-row { display: flex; align-items: baseline; gap: 8px; margin-bottom: 2px; }
.comp-card-price { font-family: 'Barlow Condensed', sans-serif !important; font-size: 26px; font-weight: 800; color: var(--cyan); line-height: 1; }
.comp-card-price-old { font-family: 'Barlow Condensed', sans-serif !important; font-size: 15px; color: var(--text-dim); text-decoration: line-through; }
.comp-card-price-note { font-size: 11px; color: var(--text-muted); margin-bottom: 6px; }
.comp-sparkline-wrap { margin-bottom: 8px; }
.comp-sparkline-label { font-family: 'JetBrains Mono', monospace !important; font-size: 9px; color: var(--text-dim); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 3px; display: flex; justify-content: space-between; }
canvas.comp-spark { width: 100%; height: 36px; display: block; }
.comp-card-stores { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 10px; }
.comp-store-tag { font-size: 10px; font-family: 'JetBrains Mono', monospace !important; padding: 2px 8px; border-radius: 3px; font-weight: 600; }
.cst-pc   { background: rgba(0,212,255,.1);  color: var(--cyan); }
.cst-cool { background: rgba(155,77,255,.1); color: var(--violet); }
.cst-neo  { background: rgba(0,212,255,.08); color: #7ec8e3; }
.cst-amz  { background: rgba(255,153,0,.1);  color: #ff9900; }
.cst-app  { background: rgba(255,107,38,.1); color: var(--orange); }
.cst-pcbox{ background: rgba(155,77,255,.08);color: #c084fc; }
.cst-life { background: rgba(255,107,38,.08);color: #ffaa66; }
.comp-offers-list { background: var(--bg2); border-radius: 6px; margin-bottom: 8px; overflow: hidden; display: none; }
.comp-offers-list.open { display: block; }
.comp-offer-row { display: flex; align-items: center; justify-content: space-between; padding: 7px 10px; border-bottom: 1px solid var(--border); font-size: 12px; transition: background .15s; }
.comp-offer-row:last-child { border-bottom: none; }
.comp-offer-row:hover { background: var(--bg3); }
.comp-offer-row .co-store { display: flex; align-items: center; gap: 6px; color: var(--text-muted); }
.comp-offer-row .co-price { font-family: 'Barlow Condensed', sans-serif !important; font-size: 15px; font-weight: 700; color: var(--cyan); }
.comp-offer-row.best-offer { background: rgba(0,255,136,.04); }
.comp-offer-row.best-offer .co-price { color: #00ff88; }
.co-btn { background: var(--violet); color: #fff; border: none; font-size: 10px; font-family: 'JetBrains Mono', monospace !important; padding: 3px 10px; border-radius: 4px; cursor: pointer; white-space: nowrap; text-decoration: none; display: inline-block; }
.comp-card-btn { display: block; width: 100%; background: var(--violet); color: #fff; border: none; padding: 8px 0; border-radius: 6px; font-family: 'Barlow Condensed', sans-serif !important; font-size: 14px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; cursor: pointer; transition: all .2s; text-align: center; text-decoration: none; }
.comp-card-btn:hover { background: #7f35e0; color: #fff; }
.comp-btn-outline { background: transparent !important; border: 1px solid var(--violet); color: var(--violet) !important; margin-bottom: 6px; }
.comp-btn-outline:hover { background: rgba(155,77,255,.1) !important; }
.comp-btn-amz { background: transparent !important; border: 1px solid #ff9900; color: #ff9900 !important; }
.comp-btn-amz:hover { background: rgba(255,153,0,.1) !important; }
.comp-amz-note { font-size: 10px; color: var(--text-dim); text-align: center; margin-top: 5px; font-family: 'JetBrains Mono', monospace !important; }
.comp-no-price { font-size: 13px; color: #ff9900; font-weight: 500; margin-bottom: 2px; }
.comp-alert-trigger { border: 1px solid rgba(255,122,26,.35); border-radius: 6px; padding: 9px 12px; text-align: center; cursor: pointer; transition: all .2s; background: rgba(255,122,26,.06); margin-top: 8px; }
.comp-alert-trigger:hover { border-color: var(--orange); background: rgba(255,122,26,.12); }
.comp-alert-label { font-size: 10px; color: #ff9055; letter-spacing: .03em; margin-bottom: 4px; display: flex; align-items: center; justify-content: center; gap: 4px; font-weight: 500; }
.comp-alert-label svg { width: 11px; height: 11px; flex-shrink: 0; }
.comp-alert-btn-text { font-size: 13px; font-weight: 700; color: var(--orange); letter-spacing: .05em; text-transform: uppercase; }
.comp-grid.list-view { grid-template-columns: 1fr; gap: 8px; }
.comp-grid.list-view .comp-card { flex-direction: row; min-height: 100px; }
.comp-grid.list-view .comp-card-img { width: 120px; min-height: 100px; flex-shrink: 0; border-bottom: none; border-right: 1px solid var(--border); }
.comp-grid.list-view .comp-card-body { flex-direction: row; align-items: center; gap: 14px; padding: 10px 14px; flex-wrap: nowrap; }
.comp-grid.list-view .comp-card-name { -webkit-line-clamp: 1; min-height: auto; flex: 1; margin-bottom: 0; }
.comp-grid.list-view .comp-card-brand,
.comp-grid.list-view .comp-card-price-note,
.comp-grid.list-view .comp-sparkline-wrap,
.comp-grid.list-view .comp-amz-note,
.comp-grid.list-view .comp-alert-trigger,
.comp-grid.list-view .comp-offers-list { display: none !important; }
.comp-grid.list-view .comp-card-price { font-size: 20px; }
.comp-grid.list-view .comp-card-stores { margin-bottom: 0; flex-shrink: 0; }
.comp-grid.list-view .comp-card-btn { width: 130px; flex-shrink: 0; }
.comp-empty { text-align: center; padding: 60px 20px; color: var(--text-dim); grid-column: 1/-1; }
.comp-empty h3 { font-family: 'Barlow Condensed', sans-serif !important; font-size: 22px; font-weight: 700; text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px; }
.comp-loading-overlay { display: none; position: fixed; inset: 0; background: rgba(7,8,11,.85); z-index: 9999; align-items: center; justify-content: center; flex-direction: column; gap: 16px; }
.comp-loading-overlay.active { display: flex; }
.comp-spinner { width: 40px; height: 40px; border: 3px solid var(--border); border-top-color: var(--violet); border-radius: 50%; animation: comp-spin .7s linear infinite; }
@keyframes comp-spin { to { transform: rotate(360deg); } }
.comp-loading-text { font-family: 'JetBrains Mono', monospace !important; font-size: 12px; color: var(--text-muted); }
.comp-modal-overlay { display: none; position: fixed; inset: 0; background: rgba(5,8,16,.85); z-index: 10000; align-items: center; justify-content: center; }
.comp-modal-overlay.active { display: flex; }
.comp-modal { background: var(--bg3); border: 1px solid var(--border2); border-radius: 12px; padding: 28px; width: 380px; max-width: 90vw; }
.comp-modal-title { font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.comp-modal-product { font-size: 12px; color: var(--text-muted); margin-bottom: 20px; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.comp-modal-price-box { background: var(--bg2); border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px; margin-bottom: 20px; display: flex; align-items: center; justify-content: space-between; }
.comp-modal-price-box span:first-child { font-size: 12px; color: var(--text-muted); }
.comp-modal-price-val { font-size: 20px; font-weight: 800; color: var(--orange); }
.comp-modal-label { font-size: 11px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
.comp-modal-input { width: 100%; background: var(--bg2); border: 1px solid var(--border2); color: var(--text); padding: 10px 14px; border-radius: 7px; font-size: 14px; outline: none; transition: border-color .2s; margin-bottom: 20px; font-family: 'Inter', sans-serif !important; }
.comp-modal-input:focus { border-color: var(--orange); }
.comp-modal-input::placeholder { color: var(--text-dim); }
.comp-modal-actions { display: flex; gap: 10px; }
.comp-modal-btn-cancel { flex: 1; background: transparent; border: 1px solid var(--border2); color: var(--text-muted); padding: 10px; border-radius: 7px; font-size: 13px; font-weight: 600; cursor: pointer; }
.comp-modal-btn-submit { flex: 2; background: var(--orange); border: none; color: #fff; padding: 10px; border-radius: 7px; font-size: 13px; font-weight: 700; cursor: pointer; transition: background .2s; }
.comp-modal-btn-submit:hover { background: #d95f0d; }
.comp-modal-btn-submit:disabled { background: var(--text-dim); cursor: not-allowed; }
.comp-modal-msg { font-size: 13px; text-align: center; margin-top: 12px; padding: 10px; border-radius: 6px; display: none; }
.comp-modal-msg.ok    { background: rgba(0,200,83,.1); color: #00c853; display: block; }
.comp-modal-msg.error { background: rgba(255,77,77,.1); color: #ff4d4d; display: block; }
@media (max-width:900px) { .comp-layout { grid-template-columns: 1fr; } .comp-sidebar { position: static; } .comp-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width:600px) { .comp-grid { grid-template-columns: 1fr; } }
