:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #5b6475;
  --line: #e3e6eb;
  --accent: #2563eb;
  --accent-ink: #ffffff;
  --ml: #2d3277;
  --ml-bg: #fff159;
  --amz: #131921;
  --amz-bg: #ffd814;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 4px 14px rgba(15, 23, 42, .05);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0f17;
    --surface: #141a24;
    --text: #e8ecf2;
    --muted: #9aa4b5;
    --line: #232b38;
    --accent: #60a5fa;
    --accent-ink: #0b0f17;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4);
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
img { max-width: 100%; display: block; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

.notice { background: var(--text); color: var(--bg); font-size: 12.5px; text-align: center; padding: 6px 0; }
.site-head { background: var(--surface); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; height: 56px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-size: 17px; }
.brand-mark {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9px;
  background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: 11px; letter-spacing: .5px;
}

.intro { padding: 24px 0 8px; }
.intro h1 { font-size: clamp(24px, 6vw, 32px); line-height: 1.15; margin: 0 0 6px; letter-spacing: -.01em; }
.intro p { margin: 0; color: var(--muted); max-width: 60ch; }

.filters { display: flex; gap: 8px; overflow-x: auto; padding: 14px 0 4px; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.chip {
  flex: none; border: 1px solid var(--line); background: var(--surface); color: var(--text);
  font: inherit; font-size: 14px; padding: 7px 14px; border-radius: 999px; cursor: pointer;
}
.chip[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }

.from-video { margin-top: 16px; }
.from-video h2, .empty h2 { font-size: 18px; margin: 0 0 10px; }
.from-video .grid { padding-bottom: 8px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 14px 0 32px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 960px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.card {
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; color: inherit; text-decoration: none;
  box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(15, 23, 42, .1); }
.card:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.card.focus { outline: 3px solid var(--accent); outline-offset: 2px; }
.thumb { aspect-ratio: 1 / 1; background: #fff; display: grid; place-items: center; padding: 10px; }
.thumb img { width: 100%; height: 100%; object-fit: contain; }
.card-body { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px 12px; flex: 1; border-top: 1px solid var(--line); }
.store { align-self: flex-start; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.store-mercadolivre { background: var(--ml-bg); color: var(--ml); }
.store-amazon { background: var(--amz); color: #fff; }
.title {
  font-size: 14px; font-weight: 600; line-height: 1.35; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.price { margin: 0; font-size: 16px; font-weight: 800; }
.cta {
  margin-top: auto; text-align: center; font-size: 13.5px; font-weight: 700; padding: 9px 8px;
  border-radius: 10px; background: var(--accent); color: var(--accent-ink);
}
.card[data-store="amazon"] .cta { background: var(--amz-bg); color: #0f1111; }
.card[data-store="mercadolivre"] .cta { background: var(--ml-bg); color: var(--ml); }

.empty {
  text-align: center; color: var(--muted); background: var(--surface); border: 1px dashed var(--line);
  border-radius: var(--radius); padding: 40px 20px; margin: 20px 0 40px;
}
.empty svg { margin: 0 auto 10px; color: var(--accent); }
.empty h2 { color: var(--text); }
.empty p { margin: 0; }

.site-foot { border-top: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 13.5px; padding: 20px 0 28px; }
.site-foot p { margin: 0 0 10px; }
.site-foot nav { display: flex; gap: 16px; margin: 4px 0 10px; }
.small { font-size: 12.5px; }

.prose { max-width: 720px; padding-top: 24px; padding-bottom: 40px; }
.prose h1 { font-size: 26px; margin: 0 0 12px; }
.prose h2 { font-size: 18px; margin: 24px 0 6px; }
.prose p, .prose li { color: var(--text); }

@media (prefers-reduced-motion: reduce) { .card { transition: none; } .card:hover { transform: none; } }
