:root {
  --accent: #17643f;
  --accent-dark: #104b2e;
  --ink: #18191b;
  --muted: #64666b;
  --line: #dedbd5;
  --soft: #f3f1ec;
  --white: #fff;
  --max: 1180px;
  --shadow: 0 12px 35px rgba(15, 16, 18, 0.12);
  --header-height: 72px;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 16px);
}
body {
  margin: 0;
  padding-top: var(--header-height);
  color: var(--ink);
  background: var(--white);
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
body.dialog-open { overflow: hidden; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, label, .button, .brand, .dialog-specs { overflow-wrap: anywhere; }
.hero-copy, .contact-grid > div, .section-heading > div, .dialog-info { min-width: 0; }
a { color: inherit; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #278453; outline-offset: 3px; }
.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--ink); color: white; }
.skip-link:focus { top: 12px; }

.hero,
.catalog-section,
.anuncio-section,
.contact-section { scroll-margin-top: 88px; }
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.header-inner { min-height: 72px; display: flex; align-items: center; gap: 28px; }
.brand { min-width: 0; display: flex; flex-direction: column; gap: 3px; font-size: 1.06rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; text-decoration: none; }
.brand-name { text-transform: uppercase; letter-spacing: .035em; }
.brand-subtitle { color: var(--muted); font-size: .76rem; font-weight: 500; letter-spacing: 0; }
.main-nav { display: flex; gap: 18px; margin-left: auto; }
.main-nav a { color: #424449; font-size: .93rem; font-weight: 600; text-decoration: none; }
.main-nav a:hover { color: var(--accent); }
.menu-toggle { flex-shrink: 0; display: none; width: 44px; height: 44px; padding: 10px; border: 1px solid var(--line); background: white; }
.menu-toggle span:not(.sr-only) { display: block; height: 2px; margin: 4px 0; background: var(--ink); }

.button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; padding: 0 20px; border: 1px solid transparent; border-radius: 3px; font-size: .91rem; font-weight: 750; text-decoration: none; cursor: pointer; transition: background .18s, border-color .18s; }
.button-primary { background: var(--accent); color: white; }
.button-primary:hover { background: var(--accent-dark); }
.button-dark { background: var(--ink); color: white; }
.button-dark:hover { background: #303236; }
.button-light { background: white; color: var(--ink); }
.button-light:hover { background: #f2f2f2; }
.button-outline { border-color: #aaa69d; color: var(--ink); }
.button-outline:hover { border-color: var(--ink); background: white; }

.hero { padding: 34px 0 40px; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: .86fr 1.14fr; gap: clamp(34px, 6vw, 78px); align-items: center; }
.eyebrow { margin: 0 0 13px; color: var(--accent); font-size: .76rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 600px; margin-bottom: 19px; font-size: clamp(2.35rem, 5vw, 4.35rem); line-height: .98; letter-spacing: -.055em; }
.hero-text { max-width: 480px; margin-bottom: 28px; color: var(--muted); font-size: 1.08rem; }
.hero-media { position: relative; margin: 0; }
.hero-media::before { content: ""; position: absolute; left: -10px; bottom: -10px; width: 72px; height: 72px; background: var(--accent); z-index: -1; }
.hero-media img { width: 100%; height: clamp(280px, 34vw, 420px); object-fit: cover; object-position: center; }
.hero-media figcaption { position: absolute; right: 8px; bottom: 7px; padding: 4px 7px; background: rgba(0,0,0,.65); color: white; font-size: .68rem; }

.catalog-section { padding: 58px 0 68px; background: var(--soft); }
.section-heading { display: flex; justify-content: space-between; gap: 30px; align-items: end; margin-bottom: 24px; }
.section-heading h2, .contact-section h2 { margin-bottom: 0; font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.06; letter-spacing: -.04em; }
.section-heading > p { max-width: 420px; margin: 0; color: var(--muted); }
.catalog-tools { display: flex; justify-content: space-between; gap: 20px; padding: 17px; background: white; border: 1px solid var(--line); }
.filters { display: flex; gap: 7px; }
.filter { min-width: 78px; padding: 10px 15px; border: 1px solid var(--line); background: white; color: #4f5155; border-radius: 2px; cursor: pointer; font-weight: 700; }
.filter.is-active { border-color: var(--ink); background: var(--ink); color: white; }
.search { width: min(100%, 340px); min-width: 0; display: flex; align-items: center; gap: 9px; padding: 0 14px; border: 1px solid #bfc1c5; background: white; }
.search svg { width: 19px; fill: none; stroke: #666; stroke-width: 2; }
.search input { width: 100%; min-width: 0; height: 44px; font-size: max(16px, 1rem); border: 0; outline: 0; background: transparent; }
.search:focus-within { outline: 3px solid var(--accent); outline-offset: 3px; }
.results-count { min-height: 24px; margin: 18px 0 13px; color: var(--muted); font-size: .88rem; }
.moto-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: stretch; }
.moto-card { min-width: 0; height: 100%; display: flex; flex-direction: column; background: white; border: 1px solid var(--line); transition: box-shadow .2s ease; }
.moto-card-image { position: relative; overflow: hidden; background: #e8e5df; aspect-ratio: 4 / 3; }
.moto-card-image img { width: 100%; height: 100%; padding: 2%; object-fit: contain; transition: transform .2s ease; }
.moto-card:focus-within { box-shadow: 0 6px 18px rgba(15, 16, 18, .10); }
@media (hover: hover) and (pointer: fine) {
  .moto-card:hover { box-shadow: 0 6px 18px rgba(15, 16, 18, .10); }
  .moto-card:hover .moto-card-image img.is-real-photo { transform: scale(1.015); }
}
.condition { position: absolute; left: 13px; top: 13px; padding: 5px 9px; color: white; background: var(--ink); font-size: .69rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.condition.nova { background: var(--accent); }
.moto-card-body { flex: 1; display: flex; flex-direction: column; padding: 19px; }
.moto-brand { margin-bottom: 3px; color: var(--muted); font-size: .78rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.moto-card h3 { min-height: 3rem; margin-bottom: 10px; font-size: 1.28rem; line-height: 1.2; letter-spacing: -.025em; }
.specs { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 0 0 18px; padding: 0; color: var(--muted); font-size: .86rem; list-style: none; }
.specs li + li { position: relative; }
.specs li + li::before { content: ""; position: absolute; left: -9px; top: 7px; width: 3px; height: 3px; border-radius: 50%; background: #aaa; }
.price { margin-top: auto; margin-bottom: 17px; padding-top: 4px; font-size: 1.5rem; font-weight: 850; letter-spacing: -.025em; }
.card-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.card-actions .button { min-height: 44px; padding-inline: 10px; }
.button-secondary { border-color: #bfc1c5; background: white; color: var(--ink); }
.button-secondary:hover { border-color: var(--ink); }
.empty-state { padding: 70px 20px; text-align: center; border: 1px dashed #bbb; background: white; }
.empty-state h3 { margin-bottom: 5px; }
.empty-state p { color: var(--muted); }
.text-button { min-height: 44px; padding: 8px; border: 0; background: none; color: var(--accent); font-weight: 800; text-decoration: underline; cursor: pointer; }

.contact-section { padding: 58px 0; background: #ebe8e1; color: var(--ink); border-top: 1px solid var(--line); }
.contact-grid { display: grid; grid-template-columns: 1fr .9fr; gap: 70px; align-items: center; }
.eyebrow-light { color: var(--accent); }
.contact-section h2 { max-width: 570px; margin-bottom: 18px; }
.contact-section p { color: var(--muted); }
.contact-info { padding-left: 40px; border-left: 1px solid #ccc7bd; }
.contact-info > p { display: grid; gap: 4px; }
.contact-phone span { color: var(--accent); font-size: 1.25rem; font-weight: 750; }
.contact-info strong { color: var(--ink); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.site-footer { padding: 25px 0; border-top: 1px solid var(--line); background: var(--soft); color: var(--muted); font-size: .8rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; }
.footer-inner p { margin: 0; }

.whatsapp-float { position: fixed; right: 20px; bottom: 20px; z-index: 15; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: white; box-shadow: 0 7px 24px rgba(0,0,0,.24); }
.whatsapp-float:hover { background: var(--accent-dark); }
.whatsapp-float svg { width: 29px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
[aria-disabled="true"] { opacity: .5; pointer-events: none; cursor: not-allowed; }
.whatsapp-float[aria-disabled="true"] { display: none; }

.moto-dialog { width: min(960px, calc(100% - 28px)); max-height: min(90vh, 820px); padding: 0; border: 0; background: white; box-shadow: var(--shadow); }
.moto-dialog::backdrop { background: rgba(10,11,12,.72); }
.dialog-close { position: absolute; right: 13px; top: 13px; z-index: 3; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid #d2d3d5; background: white; cursor: pointer; }
.dialog-close svg { width: 22px; fill: none; stroke: currentColor; stroke-width: 2; }
.dialog-grid { display: grid; grid-template-columns: 1.15fr .85fr; }
.dialog-gallery { min-width: 0; display: flex; align-items: center; background: #e8e5df; }
.dialog-main-image { width: 100%; height: clamp(280px, 55vh, 460px); min-height: 0; object-fit: contain; }
.dialog-info { padding: 65px 34px 32px; overflow: auto; }
.dialog-info h2 { margin-bottom: 7px; font-size: clamp(1.8rem, 4vw, 2.5rem); line-height: 1; letter-spacing: -.04em; }
.dialog-price { margin: 20px 0; font-size: 1.65rem; font-weight: 850; }
.dialog-specs { display: grid; grid-template-columns: 1fr 1fr; margin: 0 0 22px; border-block: 1px solid var(--line); }
.dialog-specs div { padding: 14px 0; }
.dialog-specs dt { color: var(--muted); font-size: .72rem; font-weight: 750; text-transform: uppercase; }
.dialog-specs dd { margin: 3px 0 0; font-weight: 750; }
.dialog-description { color: var(--muted); }
.dialog-info .button { width: 100%; margin-top: 12px; }

@media (max-width: 1100px) {
  :root { --header-height: 64px; }
  .hero,
  .catalog-section,
.anuncio-section,
  .contact-section { scroll-margin-top: 16px; }
  .header-inner { min-height: 64px; gap: 12px; }
  .menu-toggle { display: block; margin-left: auto; }
  .header-cta { display: none; }
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; max-height: calc(100vh - var(--header-height)); max-height: calc(100dvh - var(--header-height)); overflow-y: auto; padding: 10px 20px 18px; background: white; border-bottom: 1px solid var(--line); }
  .main-nav.is-open { display: grid; gap: 0; }
  .main-nav a { padding: 13px 0; border-bottom: 1px solid #eee; }
  .hero-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-copy { padding-top: 10px; }
  .hero-media { order: -1; }
  .hero-media img { height: min(48vw, 330px); }
  .moto-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { gap: 35px; }
  .contact-info { padding: 0; border: 0; }
}

@media (max-width: 600px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  .hero { padding: 18px 0 34px; }
  .hero-grid { gap: 24px; }
  .hero-media img { height: 210px; }
  h1 { font-size: clamp(2.15rem, 11vw, 2.55rem); }
  .catalog-section { padding: 46px 0 54px; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 12px; }
  .catalog-tools { display: grid; padding: 12px; }
  .filters { display: grid; grid-template-columns: repeat(3, 1fr); }
  .filter { min-width: 0; padding-inline: 8px; }
  .search { width: 100%; }
  .moto-grid { grid-template-columns: minmax(0, 1fr); }
  .moto-card h3 { min-height: 0; }
  .card-actions .button { min-height: 46px; }
  .contact-section { padding: 48px 0 80px; }
  .contact-actions { display: grid; }
  .footer-inner { display: grid; gap: 5px; }
  .whatsapp-float { right: 14px; bottom: 14px; width: 52px; height: 52px; }
  .moto-dialog { width: 100%; max-width: none; height: 100vh; height: 100dvh; max-height: 100vh; max-height: 100dvh; margin: 0; overflow-y: auto; }
  .dialog-grid { display: block; min-height: 100%; }
  .dialog-main-image { height: 270px; min-height: 0; }
  .dialog-info { padding: 30px 20px 36px; }
  .dialog-close { position: sticky; right: auto; top: env(safe-area-inset-top, 0px); margin: 0 12px 0 auto; }
}


.anuncio-section { padding: 58px 0 68px; }
.anuncio-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; padding: 28px; border: 1px solid var(--line); background: var(--soft); }
.anuncio-field { min-width: 0; }
.anuncio-field label { display: block; margin-bottom: 7px; font-weight: 700; }
.field-requirement { color: var(--muted); font-size: .78rem; font-weight: 400; }
.anuncio-field input, .anuncio-field select, .anuncio-field textarea { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #aaa69d; border-radius: 3px; background: white; color: var(--ink); font: inherit; }
.anuncio-field textarea { resize: vertical; }
.anuncio-field input, .anuncio-field select, .anuncio-field textarea { font-size: max(16px, 1rem); scroll-margin-top: calc(var(--header-height) + 48px); scroll-margin-bottom: 24px; }
.anuncio-field [aria-invalid="true"] { border-color: #9a302c; }
.field-error, #anuncio-status { color: #9a302c; font-size: .87rem; }
.field-error { margin: 5px 0 0; }
.field-error:empty, #anuncio-status:empty { display: none; }
.anuncio-wide { grid-column: 1 / -1; }
.anuncio-submit { padding-top: 8px; }
.anuncio-submit > p { max-width: 760px; color: var(--muted); font-size: .9rem; }
.anuncio-submit > #anuncio-status { color: #9a302c; }
@media (max-width: 600px) {
  .anuncio-section { padding: 46px 0; }
  .anuncio-form { grid-template-columns: minmax(0, 1fr); padding: 18px; gap: 16px; }
  .anuncio-submit .button { width: 100%; }
}

@media (max-width: 768px) {
  .filter { min-height: 44px; }
  .catalog-tools { min-width: 0; }
  .dialog-grid { display: block; }
  .moto-dialog { max-height: 90vh; max-height: 90dvh; overflow-y: auto; padding-bottom: env(safe-area-inset-bottom, 0px); }
  .dialog-main-image { height: auto; max-height: 45vh; max-height: 45dvh; object-fit: contain; }
  .dialog-info { overflow: visible; }
  .dialog-close { position: sticky; right: auto; top: env(safe-area-inset-top, 0px); margin: 0 12px 0 auto; }
  .whatsapp-float { position: static; margin: 16px 14px calc(16px + env(safe-area-inset-bottom, 0px)) auto; }
}

@media (max-width: 600px) {
  .moto-dialog { max-height: 100vh; max-height: 100dvh; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .moto-card .moto-card-image img { transform: none !important; }
}
