:root {
  --brand: #d9481f;
  --brand-ink: #ffffff;
  --ink: #141518;
  --ink-2: #2a2c31;
  --muted: #6b6e75;
  --line: #e4e1da;
  --bg: #f5f3ee;
  --surface: #ffffff;
  --surface-2: #efece5;
  --dark: #121316;
  --dark-2: #1c1e22;
  --ok: #1f8a55;
  --warn: #b7791f;
  --off: #8a8d93;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(20, 21, 24, .05), 0 8px 28px rgba(20, 21, 24, .07);
  --f-display: "Archivo", system-ui, sans-serif;
  --f-body: "DM Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--f-body); color: var(--ink); background: var(--bg); line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--f-display); font-stretch: 112%; line-height: 1.02; letter-spacing: -.02em; margin: 0; }
.wrap { width: min(1220px, 100% - 32px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
svg.i { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent; font-weight: 700; font-size: 15px; white-space: nowrap; transition: transform .15s, background .15s, border-color .15s, opacity .15s; }
.btn:active { transform: scale(.98); }
.btn-brand { background: var(--brand); color: var(--brand-ink); }
.btn-brand:hover { filter: brightness(1.06); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-ghost { background: transparent; border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-wa { background: #1faa59; color: #fff; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13.5px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); background: var(--surface); }

/* header */
.hdr { position: sticky; top: 0; z-index: 40; background: rgba(18, 19, 22, .86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.hdr .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--f-display); font-weight: 800; font-stretch: 115%; letter-spacing: -.01em; line-height: 1.05; }
.logo-mark { width: 38px; height: 38px; border-radius: 11px; background: var(--brand); display: grid; place-items: center; color: #fff; }
.logo-mark svg { width: 22px; height: 22px; }
.logo small { display: block; font-family: var(--f-body); font-weight: 500; font-stretch: 100%; font-size: 11.5px; opacity: .65; letter-spacing: .02em; }
.nav { display: flex; gap: 26px; margin-left: auto; font-size: 14.5px; font-weight: 500; }
.nav a { opacity: .78; }
.nav a:hover, .nav a.on { opacity: 1; }
.hdr .btn { height: 40px; }
.menu-btn { display: none; background: none; border: 0; color: #fff; padding: 8px; margin-left: auto; }
.menu-btn svg { width: 24px; height: 24px; }

/* hero */
.hero { position: relative; color: #fff; background: var(--dark); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center 60%; transform: scale(1.04); }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14, 15, 17, .94) 0%, rgba(14, 15, 17, .72) 45%, rgba(14, 15, 17, .25) 100%), linear-gradient(0deg, rgba(14, 15, 17, .9) 0%, transparent 40%); }
.hero .wrap { position: relative; padding: 88px 0 56px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--brand); }
.hero h1 { font-size: clamp(42px, 7.2vw, 92px); font-weight: 900; max-width: 11ch; margin: 18px 0 18px; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero p.lead { font-size: 18px; max-width: 46ch; opacity: .82; margin: 0 0 34px; }
.search { background: var(--surface); color: var(--ink); border-radius: 22px; padding: 10px; display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr auto; gap: 6px; max-width: 980px; box-shadow: 0 20px 60px rgba(0, 0, 0, .35); }
.field { display: flex; flex-direction: column; gap: 2px; padding: 8px 14px; border-radius: 14px; min-width: 0; }
.field:hover { background: var(--surface-2); }
.field label { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.field input, .field select { border: 0; background: transparent; padding: 0; outline: none; font-size: 15px; font-weight: 600; width: 100%; appearance: none; -webkit-appearance: none; text-overflow: ellipsis; }
.search .btn { height: auto; min-height: 56px; border-radius: 15px; padding: 0 26px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 34px; margin-top: 34px; font-size: 14px; opacity: .9; }
.hero-stats b { display: block; font-family: var(--f-display); font-size: 30px; font-stretch: 110%; font-weight: 800; letter-spacing: -.02em; }

/* chips de categoria */
.cats { display: flex; gap: 10px; overflow-x: auto; padding: 26px 0 6px; scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }
.cat { flex: none; display: flex; align-items: center; gap: 10px; padding: 10px 18px 10px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: 14.5px; transition: border-color .15s; }
.cat:hover { border-color: var(--ink); }
.cat span.n { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--surface-2); font-size: 12.5px; font-weight: 700; }

/* seções */
.sec { padding: 80px 0; }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 32px; }
.sec-head h2 { font-size: clamp(32px, 4.6vw, 52px); font-weight: 850; }
.sec-head p { margin: 10px 0 0; color: var(--muted); max-width: 52ch; }
.kicker { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); margin-bottom: 12px; display: block; }

/* cards */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(20, 21, 24, .05), 0 18px 40px rgba(20, 21, 24, .12); }
.card-media { position: relative; aspect-ratio: 16 / 10.5; background: var(--surface-2); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card-media img { transform: scale(1.04); }
.badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.badge { font-size: 11.5px; font-weight: 700; padding: 5px 10px; border-radius: 999px; background: rgba(255, 255, 255, .94); color: var(--ink); }
.badge.b-brand { background: var(--brand); color: #fff; }
.badge.b-res { background: var(--warn); color: #fff; }
.badge.b-sold { background: var(--ink); color: #fff; }
.card-media .count { position: absolute; right: 12px; bottom: 12px; font-size: 11.5px; font-weight: 700; padding: 4px 9px; border-radius: 999px; background: rgba(0, 0, 0, .55); color: #fff; display: flex; gap: 5px; align-items: center; }
.card-media .count svg { width: 13px; height: 13px; }
.card.sold .card-media img { filter: grayscale(.85); opacity: .75; }
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card-brand { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); display: flex; justify-content: space-between; }
.card h3 { font-size: 23px; font-weight: 800; }
.card .ver { color: var(--muted); font-size: 14px; margin-top: -6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.specs { display: flex; flex-wrap: wrap; gap: 6px; }
.spec { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; padding: 6px 10px; border-radius: 10px; background: var(--surface-2); }
.spec svg { width: 14px; height: 14px; }
.card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.price { font-family: var(--f-display); font-weight: 850; font-size: 26px; font-stretch: 105%; letter-spacing: -.02em; }
.price small { display: block; font-family: var(--f-body); font-size: 12px; font-weight: 500; color: var(--muted); letter-spacing: 0; }

/* vantagens */
.perks { background: var(--dark); color: #fff; }
.perks .grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255, 255, 255, .08); border-radius: 22px; overflow: hidden; }
.perk { background: var(--dark-2); padding: 30px 26px; }
.perk .ic { width: 46px; height: 46px; border-radius: 14px; background: color-mix(in srgb, var(--brand) 22%, transparent); color: var(--brand); display: grid; place-items: center; margin-bottom: 18px; }
.perk .ic svg { width: 22px; height: 22px; }
.perk h3 { font-size: 20px; margin-bottom: 8px; }
.perk p { margin: 0; opacity: .7; font-size: 14.5px; }
.perks .sec-head p { color: rgba(255, 255, 255, .65); }

/* avaliação usado */
.trade { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; background: var(--surface); border-radius: 28px; padding: 48px; box-shadow: var(--shadow); }
.trade h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 850; margin-bottom: 14px; }
.trade p { color: var(--muted); margin: 0 0 18px; }
.trade ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.trade li { display: flex; gap: 10px; align-items: center; font-weight: 600; }
.trade li svg { color: var(--brand); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form .full { grid-column: 1 / -1; }
.in { display: flex; flex-direction: column; gap: 6px; }
.in label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.in input, .in select, .in textarea { height: 48px; border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; background: var(--bg); outline: none; transition: border-color .15s, box-shadow .15s; width: 100%; }
.in textarea { height: auto; min-height: 110px; padding: 12px 14px; resize: vertical; }
.in input:focus, .in select:focus, .in textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(20, 21, 24, .08); background: #fff; }
.in .hint { font-size: 12px; color: var(--muted); }

/* sobre / contato */
.about { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.about-img { border-radius: 26px; overflow: hidden; aspect-ratio: 5 / 4; }
.about-img img { width: 100%; height: 100%; object-fit: cover; }
.about p { color: var(--ink-2); font-size: 17px; }
.contact-list { display: grid; gap: 12px; margin: 26px 0; }
.contact-list div { display: flex; gap: 12px; align-items: center; }
.contact-list svg { color: var(--brand); }

.ftr { background: var(--dark); color: rgba(255, 255, 255, .7); padding: 46px 0 34px; font-size: 14px; }
.ftr .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: center; }
.ftr .logo { color: #fff; }
.ftr a:hover { color: #fff; }
.ftr .links { display: flex; gap: 22px; flex-wrap: wrap; }

.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 50; height: 54px; padding: 0 22px 0 18px; border-radius: 999px; background: #1faa59; color: #fff; display: flex; align-items: center; gap: 10px; font-weight: 700; box-shadow: 0 10px 30px rgba(31, 170, 89, .4); }
.wa-float svg { width: 24px; height: 24px; fill: currentColor; stroke: none; }

/* estoque */
.page-top { background: var(--dark); color: #fff; padding: 46px 0 40px; }
.page-top h1 { font-size: clamp(36px, 5vw, 60px); font-weight: 900; }
.page-top p { opacity: .7; margin: 10px 0 0; }
.browse { display: grid; grid-template-columns: 280px 1fr; gap: 28px; padding: 32px 0 80px; align-items: start; }
.filters { position: sticky; top: 88px; background: var(--surface); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); display: grid; gap: 14px; }
.filters h3 { font-size: 18px; display: flex; justify-content: space-between; align-items: center; }
.filters h3 button { background: none; border: 0; font: 600 13px var(--f-body); color: var(--brand); padding: 0; letter-spacing: 0; }
.filters .in input, .filters .in select { height: 42px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.toolbar b { font-family: var(--f-display); font-size: 20px; }
.toolbar select { height: 40px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); padding: 0 14px; }
.browse .grid { grid-template-columns: repeat(2, 1fr); }
.filter-toggle { display: none; }
.empty { text-align: center; padding: 60px 20px; background: var(--surface); border-radius: var(--radius); color: var(--muted); }
.empty h3 { color: var(--ink); margin-bottom: 8px; font-size: 24px; }

/* detalhe */
.crumbs { display: flex; justify-content: space-between; align-items: center; padding: 22px 0; font-size: 14px; color: var(--muted); gap: 10px; }
.crumbs a { display: inline-flex; gap: 6px; align-items: center; }
.crumbs a:hover { color: var(--ink); }
.gallery { display: grid; grid-template-columns: 2.2fr 1fr; gap: 10px; border-radius: 24px; overflow: hidden; height: min(560px, 60vw); }
.gallery.single { grid-template-columns: 1fr; }
.g-main { position: relative; background: var(--dark); overflow: hidden; }
.g-main img { width: 100%; height: 100%; object-fit: cover; }
.g-side { display: grid; gap: 10px; grid-auto-rows: 1fr; }
.g-side button { border: 0; padding: 0; overflow: hidden; background: var(--surface-2); position: relative; }
.g-side img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.g-side button:hover img { transform: scale(1.05); }
.g-nav { position: absolute; top: 50%; translate: 0 -50%; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); display: grid; place-items: center; }
.g-nav.prev { left: 14px; } .g-nav.next { right: 14px; }
.g-count { position: absolute; right: 14px; bottom: 14px; background: rgba(0, 0, 0, .6); color: #fff; font-size: 12.5px; font-weight: 700; padding: 5px 11px; border-radius: 999px; }
.detail { display: grid; grid-template-columns: 1fr 380px; gap: 40px; padding: 34px 0 80px; align-items: start; }
.detail h1 { font-size: clamp(34px, 4.6vw, 56px); font-weight: 900; }
.detail .ver { font-size: 18px; color: var(--muted); margin: 8px 0 0; }
.pills { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.ficha { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; margin: 28px 0; }
.ficha div { background: var(--surface); padding: 16px 18px; }
.ficha span { display: block; font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.ficha b { font-size: 16px; }
.block { margin-top: 36px; }
.block h2 { font-size: 26px; font-weight: 800; margin-bottom: 14px; }
.block p { margin: 0; color: var(--ink-2); font-size: 16.5px; }
.opts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 20px; list-style: none; padding: 0; margin: 0; }
.opts li { display: flex; gap: 10px; align-items: center; }
.opts li svg { color: var(--ok); }
.video { aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #000; }
.video iframe { width: 100%; height: 100%; border: 0; }
.aside { position: sticky; top: 88px; display: grid; gap: 16px; }
.box { background: var(--surface); border-radius: 22px; padding: 24px; box-shadow: var(--shadow); }
.box .price { font-size: 38px; }
.box .cta { display: grid; gap: 10px; margin-top: 18px; }
.sim h3 { font-size: 19px; margin-bottom: 4px; }
.sim .sub { font-size: 13px; color: var(--muted); margin: 0 0 16px; }
.sim input[type=range] { width: 100%; accent-color: var(--brand); }
.sim .lbl { display: flex; justify-content: space-between; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.terms { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 14px 0; }
.terms button { height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); font-weight: 700; font-size: 14px; }
.terms button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.sim-out { background: var(--surface-2); border-radius: 14px; padding: 14px 16px; display: flex; justify-content: space-between; align-items: baseline; }
.sim-out b { font-family: var(--f-display); font-size: 26px; font-weight: 850; }
.sim .note { font-size: 11.5px; color: var(--muted); margin: 10px 0 0; }
.seller { display: flex; gap: 12px; align-items: center; font-size: 14px; }
.seller .av { width: 44px; height: 44px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 800; font-family: var(--f-display); }

/* admin */
.login { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.login-art { position: relative; background: var(--dark) center / cover; color: #fff; display: flex; align-items: flex-end; padding: 48px; }
.login-art::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(14, 15, 17, .92), rgba(14, 15, 17, .2)); }
.login-art > div { position: relative; }
.login-art h2 { font-size: clamp(34px, 4vw, 54px); font-weight: 900; max-width: 13ch; margin: 14px 0; }
.login-art p { opacity: .75; max-width: 40ch; margin: 0; }
.login-side { display: grid; place-items: center; padding: 32px 16px; }
.login-card { width: min(420px, 100%); background: var(--surface); border-radius: 26px; padding: 34px; box-shadow: var(--shadow); display: grid; gap: 16px; }
.login-card h1 { font-size: 30px; }
.demo { background: var(--surface-2); border-radius: 14px; padding: 14px 16px; font-size: 13.5px; }
.demo b { display: block; margin-bottom: 4px; }
.err { color: #c0392b; font-size: 14px; font-weight: 600; min-height: 1em; }

.adm-hdr { background: var(--dark); color: #fff; }
.adm-hdr .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.adm-tabs { display: flex; gap: 4px; margin-left: 20px; }
.adm-tabs a { padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; opacity: .7; }
.adm-tabs a.on { background: rgba(255, 255, 255, .1); opacity: 1; }
.adm-hdr .right { margin-left: auto; display: flex; gap: 8px; }
.adm-hdr .btn-ghost { border-color: rgba(255, 255, 255, .2); color: #fff; }
.adm { padding: 32px 0 80px; }
.adm h1 { font-size: 36px; font-weight: 900; }
.adm-top { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.adm-top p { margin: 6px 0 0; color: var(--muted); }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 24px; }
.kpi { background: var(--surface); border-radius: 18px; padding: 18px 20px; box-shadow: var(--shadow); }
.kpi span { font-size: 13px; color: var(--muted); font-weight: 600; }
.kpi b { display: block; font-family: var(--f-display); font-size: 30px; font-weight: 850; letter-spacing: -.02em; margin-top: 4px; }
.table-wrap { background: var(--surface); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; }
.table-tools { display: flex; gap: 10px; padding: 14px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.table-tools input, .table-tools select { height: 40px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; background: var(--bg); }
.table-tools input { flex: 1; min-width: 180px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 12px 14px; font-weight: 700; }
td { padding: 12px 14px; border-top: 1px solid var(--line); vertical-align: middle; }
td .veh { display: flex; gap: 12px; align-items: center; }
td .veh img { width: 72px; height: 50px; object-fit: cover; border-radius: 8px; background: var(--surface-2); }
td .veh b { display: block; }
td .veh small { color: var(--muted); }
.st-sel { height: 34px; border-radius: 999px; border: 1px solid var(--line); padding: 0 10px; font-weight: 700; font-size: 13px; }
.st-sel.s-Disponível { background: #e6f4ec; color: var(--ok); border-color: #c7e6d4; }
.st-sel.s-Reservado { background: #fbf1df; color: var(--warn); border-color: #f0dcb5; }
.st-sel.s-Vendido { background: #ecedef; color: var(--ink-2); }
.star { background: none; border: 0; padding: 4px; color: var(--line); }
.star.on { color: #f0a500; }
.star svg { fill: currentColor; stroke: none; width: 20px; height: 20px; }
.acts { display: flex; gap: 6px; justify-content: flex-end; }
.ed { display: grid; grid-template-columns: 1fr 360px; gap: 24px; align-items: start; }
.panel { background: var(--surface); border-radius: 20px; padding: 24px; box-shadow: var(--shadow); }
.panel + .panel { margin-top: 18px; }
.panel h2 { font-size: 20px; margin-bottom: 16px; }
.form3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.checks { display: grid; gap: 10px; }
.check { display: flex; gap: 10px; align-items: center; font-weight: 600; font-size: 14.5px; }
.check input { width: 18px; height: 18px; accent-color: var(--brand); }
.photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.ph { position: relative; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--surface-2); }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph .tools { position: absolute; inset: auto 4px 4px 4px; display: flex; justify-content: space-between; }
.ph .tools button { width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); display: grid; place-items: center; }
.ph .tools svg { width: 14px; height: 14px; }
.ph .cover { position: absolute; top: 4px; left: 4px; font-size: 10.5px; font-weight: 700; background: var(--brand); color: #fff; padding: 2px 7px; border-radius: 999px; }
.drop { border: 2px dashed var(--line); border-radius: 14px; padding: 18px; text-align: center; font-size: 14px; color: var(--muted); cursor: pointer; transition: border-color .15s; }
.drop:hover, .drop.over { border-color: var(--brand); color: var(--ink); }
.url-row { display: flex; gap: 6px; margin-top: 10px; }
.url-row input { flex: 1; height: 40px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; background: var(--bg); min-width: 0; }
.save-bar { position: sticky; bottom: 0; background: rgba(245, 243, 238, .92); backdrop-filter: blur(10px); padding: 14px 0; display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; border-top: 1px solid var(--line); }
.mode-note { background: #fff7e6; border: 1px solid #f0dcb5; color: #7a5310; padding: 10px 14px; border-radius: 12px; font-size: 13.5px; margin-bottom: 18px; }

#toast { position: fixed; left: 50%; bottom: 28px; translate: -50% 20px; background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px; font-weight: 600; font-size: 14.5px; opacity: 0; pointer-events: none; transition: opacity .2s, translate .2s; z-index: 100; }
#toast.on { opacity: 1; translate: -50% 0; }

.fade { animation: fade .4s ease both; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* responsivo */
@media (max-width: 1080px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .perks .grid4 { grid-template-columns: repeat(2, 1fr); }
  .search { grid-template-columns: 1fr 1fr; }
  .search .field:first-child { grid-column: 1 / -1; }
  .search .btn { grid-column: 1 / -1; min-height: 52px; }
  .detail { grid-template-columns: 1fr; }
  .aside { position: static; }
  .ed { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .nav, .hdr .hdr-wa { display: none; }
  .menu-btn { display: block; }
  .hdr.open .nav { display: flex; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--dark); padding: 8px 16px 16px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .hdr.open .nav a { padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .06); opacity: 1; }
  .browse { grid-template-columns: 1fr; }
  .filters { position: static; display: none; }
  .filters.open { display: grid; }
  .filter-toggle { display: inline-flex; }
  .trade, .about { grid-template-columns: 1fr; padding: 28px; gap: 28px; }
  .about { padding: 0; }
  .login { grid-template-columns: 1fr; }
  .login-art { min-height: 260px; padding: 28px; }
  .gallery { grid-template-columns: 1fr; height: auto; }
  .g-main { aspect-ratio: 16 / 11; }
  .g-side { display: none; }
  .ficha { grid-template-columns: repeat(2, 1fr); }
  .adm-tabs { display: none; }
  table thead { display: none; }
  table, tbody, tr, td { display: block; width: 100%; }
  tr { padding: 12px 14px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; gap: 8px 10px; align-items: center; }
  td { border: 0; padding: 0; }
  td.c-veh { grid-column: 1 / -1; }
  td.c-hide { display: none; }
  td.c-acts { grid-column: 1 / -1; }
  .acts { justify-content: flex-start; }
}
@media (max-width: 620px) {
  .grid, .browse .grid { grid-template-columns: 1fr; }
  .perks .grid4 { grid-template-columns: 1fr; }
  .hero .wrap { padding: 56px 0 40px; }
  .search { grid-template-columns: 1fr; border-radius: 18px; }
  .sec { padding: 60px 0; }
  .sec-head { flex-direction: column; align-items: flex-start; }
  .form, .form3 { grid-template-columns: 1fr; }
  .opts { grid-template-columns: 1fr; }
  .wa-float span { display: none; }
  .wa-float { padding: 0; width: 56px; justify-content: center; }
  .hero-stats { gap: 22px; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpi b { font-size: 24px; }
  .photos { grid-template-columns: repeat(2, 1fr); }
  .trade { padding: 22px; }
}
