@font-face { font-family: 'DM Sans'; src: url('/assets/dm-sans.woff2') format('woff2'); font-display: swap; font-weight: 100 1000; }
@font-face { font-family: Outfit; src: url('/assets/outfit.woff2') format('woff2'); font-display: swap; font-weight: 100 900; }
:root {
  --bg: #faf7f0; --surface: #fff; --ink: #172a29; --muted: #40534c; --accent: #075d51;
  --action-text: #fff; --hover: #06483f; --link: #075d51; --line: #d5dcd2; --field: #75887f;
  --display: Outfit; --body: 'DM Sans'; --control: 10px; --radius: 16px; --brand-size: 1.55rem; --card-size: 1.3rem;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 1rem/1.55 var(--body), system-ui, sans-serif; }
:where(h1, h2, h3, p, dl, dd) { margin: 0; }
h1, h2, h3 { font-family: var(--display), system-ui, sans-serif; font-weight: 700; line-height: 1.03; }
h1 { font-size: clamp(2.5rem, 5.4vw, 5rem); text-wrap: balance; }
h2 { font-size: clamp(1.85rem, 3.15vw, 2.9rem); }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.9rem); }
p + p { margin-top: .65rem; }
img { display: block; max-width: 100%; }
a { color: var(--link); text-underline-offset: .22em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; }
.wrap { width: min(100% - 2rem, 76rem); margin-inline: auto; }
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.site-header .wrap { min-height: 4.5rem; display: flex; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; }
.site-header nav { display: flex; gap: clamp(1rem, 3vw, 2.25rem); }
.site-header nav a, .wordmark { display: inline-flex; min-height: 44px; align-items: center; color: var(--ink); font-weight: 700; text-decoration: none; }
.site-header nav a:hover { text-decoration: underline; }
.wordmark { gap: .6rem; font: 700 var(--brand-size)/1 var(--display), system-ui, sans-serif; }
.wordmark::before { content: ''; width: 32px; height: 32px; flex: none; background: url('/assets/marca.svg') center / contain no-repeat; }
.skip { position: fixed; inset: .5rem auto auto .5rem; transform: translateY(-160%); z-index: 3; padding: .65rem 1rem; background: var(--surface); }
.skip:focus { transform: none; }
main > section, main > article { margin-top: clamp(2.5rem, 5vw, 4.5rem); }
main > :first-child { margin-top: clamp(1.25rem, 3vw, 2.5rem); }
footer { margin-top: clamp(3rem, 6vw, 5rem); border-top: 1px solid var(--line); padding-block: 1.5rem; color: var(--muted); font-size: .875rem; }
.hero { display: grid; min-width: 0; }
.hero-copy p { margin-top: .9rem; max-width: 50ch; color: var(--muted); }
.hero-image { width: 100%; height: 100%; object-fit: cover; }
@media (prefers-reduced-motion: no-preference) {
  .hero[data-enter] .hero-copy { animation: enter 280ms ease-out both; }
  @keyframes enter { from { opacity: .7; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
}

.button, button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: .6rem 1rem;
  border: 1px solid transparent;
  border-radius: var(--control);
  background: var(--accent);
  color: var(--action-text);
  font: 700 .925rem/1.25 var(--body), system-ui, sans-serif;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms ease, transform 160ms ease;
}
.button:hover, button:hover { background: var(--hover); }
.button:active, button:active { transform: translateY(1px); }
.filter-form { display: grid; gap: .85rem; align-items: end; min-width: 0; }
.filter-form > * { min-width: 0; }
.filter-form label { display: grid; gap: .375rem; color: var(--ink); font-size: .875rem; font-weight: 650; }
select {
  width: 100%; min-width: 0; min-height: 46px; border: 1px solid var(--field);
  border-radius: var(--control); padding: .55rem .625rem; background: var(--surface); color: var(--ink);
  font: 500 1rem var(--body), system-ui, sans-serif;
}
select:disabled { background: var(--bg); color: var(--muted); border-color: var(--line); }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16.5rem), 1fr)); gap: 1rem; }
.card, .empty { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1rem, 2.5vw, 1.75rem); background: var(--surface); }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { text-decoration: underline; }
.card p, .empty p { color: var(--muted); }
.category-card { display: flex; align-items: center; justify-content: space-between; gap: .5rem; min-height: 58px; color: var(--ink); text-decoration: none; font: 700 var(--card-size)/1.15 var(--display), system-ui, sans-serif; }
.category-card span { color: var(--link); font: 600 1.25rem var(--body), sans-serif; transition: transform 160ms ease; }
.category-card:hover span { transform: translate(2px, -2px); }
.part-card, .model-card, .guide-card, .offer-card { display: flex; flex-direction: column; align-items: flex-start; gap: .6rem; }
.part-card > a, .model-card > a, .empty a, .detail section > a:not(.button), .detail > p a, .guide > a:not(.button) { display: inline-flex; align-items: center; min-height: 44px; font-weight: 650; }
.card p + p { margin-top: 0; }
.card .button { margin-top: auto; }
section > h2 + :is(.grid, .empty, .size-grid, p, table), .guides > h1 + .guide-grid { margin-top: 1rem; }
.results > .filter-form { margin-block: 1.4rem; }
.results > p + .grid, .results section > p + .grid { margin-top: 1rem; }
.results > section + section { margin-top: 2rem; }
.detail, .guide { max-width: 66rem; }
.detail > nav a { display: inline-flex; min-height: 44px; align-items: center; font-weight: 650; }
.detail h1, .guide h1 { margin: .35rem 0 1rem; max-width: 22ch; }
.detail section, .detail .purchase, .guide section { margin-block: 1.5rem; }
.guide { max-width: 48rem; }
.guide .button { margin-top: .5rem; }
.specs { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); margin-block: 1.25rem; }
.specs div { padding: .75rem 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--control); }
.specs dt { font-size: .875rem; color: var(--muted); }
.specs dd { font-weight: 700; font-variant-numeric: tabular-nums; }
.price, .purchase strong, table, .size-grid { font-variant-numeric: tabular-nums; }
.purchase strong, .price strong { font: 700 clamp(1.65rem, 3vw, 2.4rem)/1.2 var(--display), sans-serif; }
@media (min-width: 48rem) { .wrap { width: min(100% - 4rem, 76rem); } }
@media (max-width: 37rem) {
  .site-header .wrap { min-height: 3.75rem; }
  .site-header nav { gap: .75rem; }
  .site-header nav a { font-size: .825rem; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; } }

.hero {
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr); grid-template-areas: "intro photo" "finder photo";
  grid-template-rows: 1fr auto; border-radius: var(--radius); background: #f1f0e6;
  overflow: clip;
}
.hero-copy { grid-area: intro; align-self: center; padding: clamp(1.25rem, 4vw, 3.25rem) clamp(1.25rem, 4vw, 3.25rem) 1.1rem; }
.hero h1 { max-width: 16ch; font-size: clamp(2.5rem, 4.25vw, 4.25rem); color: var(--ink); letter-spacing: -.035em; text-wrap: pretty; }
.hero-image { grid-area: photo; aspect-ratio: 1.42; }
.filter-form { grid-template-columns: repeat(2, minmax(0, 1fr)) auto; padding: 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.hero .filter-form { grid-area: finder; margin: 0 clamp(1.25rem, 4vw, 3.25rem) clamp(1.25rem, 4vw, 3.25rem); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hero .filter-form button { grid-column: 1 / -1; }
.category-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); }
.category-card { background: #f1f0e6; }
.category-card:hover { background: #ffd4c0; }
.offer-card { border-top: 3px solid #075d51; }
.offer-card .price strong { color: #075d51; }
.offer-card .observation, .offer-card small { color: var(--muted); font-size: .875rem; }
.detail { border-block-start: 4px solid #ffd4c0; }
.detail .specs div { background: #f1f0e6; }
.size-grid { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .75rem; }
.size-grid a { display: inline-grid; place-items: center; min-width: 54px; min-height: 44px; border: 1px solid var(--link); border-radius: var(--control); color: var(--link); text-decoration: none; font-weight: 700; }
.size-grid a[aria-current=true] { border-width: 2px; color: var(--action-text); background: var(--accent); }
.size-grid a:not([aria-current=true]):hover { background: #e1eee8; }
.history table { border-collapse: collapse; text-align: left; }
.history :is(td, th) { padding: .6rem .75rem; border-bottom: 1px solid var(--line); }
@media (max-width: 44rem) {
  .hero { grid-template-columns: 1fr; grid-template-areas: "intro" "finder" "photo"; grid-template-rows: auto; }
  .hero h1 { max-width: 15ch; }
  .hero-image { max-height: 12rem; }
  .filter-form, .hero .filter-form { grid-template-columns: minmax(0, 1fr); }
  .filter-form button { grid-column: 1 / -1; }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
  .category-card { font-size: 1.125rem; }
  .category-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .hero + .browse { margin-top: 3.25rem; }
  .detail .specs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
  .detail .specs div { padding: .625rem .55rem; }
  .detail .specs dd { overflow-wrap: anywhere; }
}
@media (max-width: 24rem) {
  .site-header .wrap { flex-wrap: wrap; gap: 0 1rem; padding-block: .25rem; }
  .site-header nav { width: 100%; }
}