:root {
  --forest: #173e35;
  --ink: #213b32;
  --muted: #5c6d65;
  --paper: #f4f6f1;
  --sage: #dce8de;
  --line: #d7dfd5;
  --white: #fff;
  --amber: #76571c;
  --notice: #f8f1df;
  --focus: #285a9c;
  font-family: "Avenir Next", "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; font-size: 15px; line-height: 1.55; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
button, input, select { font: inherit; color: inherit; }
a { color: inherit; text-underline-offset: 4px; }
button, select, summary { cursor: pointer; }
a, button, input, select, summary, [tabindex] { outline-offset: 4px; }
:focus-visible { outline: 3px solid var(--focus); }
.masthead :focus-visible { outline-color: #e0b95d; }
button { min-height: 44px; }
.wrap { width: min(1180px, calc(100% - 64px)); margin-inline: auto; }
.sr-only, .skip-link:not(:focus) {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link:focus { position: absolute; z-index: 10; top: 12px; left: 12px; padding: 12px; background: white; }
.masthead { background: var(--forest); color: #f1f5ed; }
.site-header { min-height: 86px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #496359; gap: 24px; }
.brand { display: inline-flex; align-items: center; font-weight: 750; font-size: 24px; letter-spacing: -.8px; text-decoration: none; }
.brand svg { margin-right: 10px; }
.domain { color: #b9cec0; font-size: 17px; font-weight: 500; margin-left: 1px; align-self: baseline; padding-top: 5px; }
nav { display: flex; gap: 30px; font-size: 14px; }
nav a { color: #d9e5d9; text-decoration: none; padding-block: 12px; }
nav a:hover { color: white; text-decoration: underline; }
.hero { display: grid; grid-template-columns: 1fr 340px; align-items: center; gap: 40px; padding-block: 44px 48px; }
h1 { font-size: clamp(36px, 4.5vw, 58px); font-weight: 650; letter-spacing: -2.1px; line-height: 1.09; }
.hero p { margin-top: 20px; color: #c5d7ca; font-size: 16px; line-height: 1.65; max-width: 59ch; }
.plate-scene { position: relative; isolation: isolate; }
.plate-art { position: relative; z-index: 1; display: block; width: 100%; max-height: 215px; }
html[lang="es"] .hero { padding-top: 76px; }
.country-flag { position: absolute; z-index: 0; left: 66%; top: -38%; width: 34%; height: auto; overflow: visible; }
.flag-motion { position: absolute; z-index: 2; right: -6px; bottom: -38px; width: 44px; height: 44px; padding: 13px; border: 0; background: transparent; color: #c5d7ca; }
.flag-motion:hover { color: white; }
.flag-motion svg { display: block; width: 18px; height: 18px; }
.prices { padding-top: 38px; scroll-margin-top: 20px; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
h2 { font-size: 28px; line-height: 1.2; font-weight: 650; letter-spacing: -.8px; }
.section-heading p { margin-top: 6px; color: var(--muted); font-size: 14px; }
.preview-label { font-size: 12px; border: 1px solid #b9c9ba; padding: 5px 10px; border-radius: 5px; white-space: nowrap; color: #4a6453; }
.collection-note { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin-top: 10px; font-size: 13px; color: #604c27; }
.collection-note strong { font-weight: 650; }
.status-dot { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: #9a7830; align-self: center; }
.filters { margin-top: 20px; }
.filters fieldset { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 10px; }
fieldset:disabled { opacity: .65; }
.controls { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; }
.seg { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 8px; background: var(--white); padding: 2px; }
.seg button, .seg a { min-height: 0; font-size: 13px; font-weight: 500; color: var(--muted); background: none; border: 0; border-radius: 6px; padding: 6px 11px; white-space: nowrap; text-decoration: none; }
.seg [aria-pressed="true"], .seg [aria-current="page"] { background: var(--sage); color: var(--forest); font-weight: 650; }
.controls select, #search { min-width: 0; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); font-size: 13px; }
.controls select { max-width: 190px; }
#search { width: 230px; }
#search::placeholder { color: #718078; opacity: 1; }
.check { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); cursor: pointer; user-select: none; }
.check input { margin: 0; accent-color: var(--forest); }
.spacer { flex: 1; }
.verdict { margin-top: 16px; padding: 10px 14px; border-radius: 8px; background: var(--sage); font-size: 14px; }
.verdict b { color: var(--forest); }
.list-caption { display: flex; align-items: center; justify-content: space-between; min-height: 40px; gap: 10px; font-size: 12px; color: var(--muted); }
.text-button { min-height: 0; border: 0; background: none; padding: 0 3px; text-decoration: underline; text-underline-offset: 3px; font-size: 12px; }
.table-scroll { overflow-x: auto; background: var(--white); border: 1px solid var(--line); border-radius: 10px; }
table { border-collapse: collapse; width: 100%; min-width: 820px; font-size: 14px; line-height: 1.45; text-align: left; font-variant-numeric: tabular-nums; }
th, td { padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
th { position: sticky; top: 0; background: var(--white); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
th button { all: unset; cursor: pointer; display: inline-flex; gap: 4px; align-items: center; }
th button:focus-visible { outline: 3px solid var(--focus); }
th[aria-sort] button::after { content: "↕"; opacity: .35; }
th[aria-sort="ascending"] button::after { content: "↑"; opacity: 1; color: var(--forest); }
th[aria-sort="descending"] button::after { content: "↓"; opacity: 1; color: var(--forest); }
.numeric { text-align: right; white-space: nowrap; }
tbody tr:hover { background: #f8faf5; }
tr.out { opacity: .55; }
.product { min-width: 300px; }
.product > div { display: inline-block; vertical-align: top; width: calc(100% - 72px); }
.plate-icon { display: inline-block; width: 60px; margin-right: 10px; vertical-align: top; }
.plate-icon svg { display: block; }
.plate-icon.has-photo { cursor: zoom-in; border-radius: 50%; }
.plate-photo { position: fixed; z-index: 20; width: 220px; height: 220px; object-fit: contain; padding: 8px; background: var(--white); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 30px rgb(23 62 53 / .18); pointer-events: none; }
.product a { font-weight: 650; text-decoration: none; overflow-wrap: anywhere; }
.product a:hover { color: var(--forest); text-decoration: underline; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin-top: 3px; font-size: 12px; color: var(--muted); }
.chip { font-size: 11px; font-weight: 600; padding: 1px 6px; border-radius: 4px; background: #edf2ea; color: #48604e; white-space: nowrap; }
.chip.flag { background: var(--notice); color: var(--amber); }
.warn { color: var(--amber); }
.retailer { white-space: nowrap; }
.retailer small, .pack small { display: block; color: var(--muted); font-size: 12px; }
.pack { min-width: 150px; }
.unit-price { font-weight: 700; font-size: 15px; }
.bar { width: 90px; height: 3px; margin: 5px 0 0 auto; border-radius: 2px; background: var(--line); overflow: hidden; }
.bar i { display: block; height: 100%; background: #7f9a87; }
tr.best { background: #f1f7f1; }
tr.best .unit-price { color: var(--forest); }
tr.best .bar i { background: var(--forest); }
.dim { color: var(--muted); }
.source-details { display: inline; border: 0; padding: 0; }
.source-details summary { display: inline; font-size: 11px; color: var(--muted); font-weight: 400; text-decoration: underline dotted; text-underline-offset: 3px; }
.source-details[open] { display: block; flex-basis: 100%; }
.source-details dl { font-size: 11px; margin: 6px 0 0; overflow-wrap: anywhere; }
.source-details dt { font-weight: 650; margin-top: 6px; }
.source-details dd { margin: 2px 0 0; color: var(--muted); }
.more { display: block; min-height: 0; margin: 16px auto 0; padding: 8px 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); color: var(--forest); font-weight: 650; }
.notes { display: grid; gap: 6px; margin-top: 18px; font-size: 12.5px; color: var(--muted); }
.notes p { max-width: 95ch; }
.empty-state { padding: 52px 24px; border: 1px dashed #b9c9ba; border-radius: 7px; text-align: center; }
.empty-state h3 { font-size: 21px; font-weight: 600; }
.empty-state p { margin: 10px auto 0; max-width: 58ch; color: var(--muted); font-size: 14px; }
.load-error { padding: 20px; margin-top: 22px; border: 1px solid #b77861; border-radius: 7px; background: #fff1eb; }
.load-error p { margin: 6px 0 14px; }
.load-error button { background: var(--forest); color: white; border: 0; border-radius: 4px; padding: 8px 18px; }
.about { display: grid; grid-template-columns: 1fr 1.3fr; gap: 90px; padding-block: 56px; margin-top: 35px; border-top: 1px solid var(--line); scroll-margin-top: 25px; }
.about-intro h2 { max-width: 280px; font-size: 30px; line-height: 1.2; }
.about-intro p { margin-top: 14px; max-width: 32ch; color: var(--muted); font-size: 14px; }
details { border-bottom: 1px solid var(--line); padding-block: 15px; }
details:first-child { padding-top: 0; }
summary { font-size: 14px; font-weight: 600; padding-right: 12px; }
details p { margin-top: 12px; color: var(--muted); font-size: 13px; max-width: 65ch; }
.footer { border-top: 1px solid var(--line); padding-block: 23px 30px; display: flex; align-items: center; gap: 24px; color: var(--muted); font-size: 11px; }
.footer-brand { font-weight: 700; font-size: 16px; color: var(--ink); text-decoration: none; }
.footer > a:last-child { margin-left: auto; white-space: nowrap; }
@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr 260px; }
  .about { gap: 45px; }
}
@media (max-width: 620px) {
  .wrap { width: calc(100% - 36px); }
  .site-header { min-height: 74px; gap: 12px; }
  .brand { font-size: 21px; letter-spacing: -.8px; }
  .brand svg { width: 25px; margin-right: 7px; }
  .domain { display: none; }
  .site-header nav { gap: 14px; font-size: 12px; }
  .site-header nav a:nth-child(-n+2) { display: none; }
  .hero { grid-template-columns: 1fr; gap: 0; padding-block: 32px 35px; }
  h1 { font-size: 39px; letter-spacing: -1.5px; }
  .hero p { font-size: 14px; margin-top: 16px; max-width: 36ch; }
  .desktop-break { display: none; }
  .plate-scene { display: none; }
  html[lang="es"] .hero { padding-top: 32px; }
  .prices { padding-top: 28px; }
  h2 { font-size: 25px; }
  #search { width: 100%; font-size: 16px; }
  .spacer { display: none; }
  .controls select { flex: 1 1 140px; max-width: none; }
  .about { grid-template-columns: 1fr; gap: 26px; padding-block: 35px; margin-top: 28px; }
  .about-intro h2 { max-width: 330px; font-size: 27px; }
  .about-intro p { max-width: 40ch; }
  .footer { flex-wrap: wrap; gap: 12px 20px; }
  .footer p { order: 3; flex: 1 0 100%; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; } }
