:root {
  --market-ink: #132a38;
  --market-muted: #4d6572;
  --market-blue: #133d53;
  --market-paper: #f6f5f0;
  --market-white: #fffefa;
  --market-tint: #ebf0ef;
  --market-line: #d8e0df;
  --market-amber: #f9bd61;
  --market-amber-hover: #ffcc81;
  --market-shadow: 0 16px 42px #122d3815;
  --market-focus: #15718b;
  --market-danger: #ae3731;
  --market-positive: #197148;
  --market-radius: 18px;
  --market-max: 1260px;
}

:root[data-theme="dark"] {
  --market-ink: #eaf0f2;
  --market-muted: #b1c3cc;
  --market-blue: #aed9eb;
  --market-paper: #13232d;
  --market-white: #1c303d;
  --market-tint: #233a47;
  --market-line: #40535d;
  --market-shadow: 0 16px 42px #06121f65;
  --market-focus: #f9bd61;
  --market-danger: #ffb9af;
  --market-positive: #92d9af;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 1.25rem; }
body {
  color: var(--market-ink);
  background: var(--market-paper);
  margin: 0;
  font: 400 1rem/1.55 var(--font-ui, "Segoe UI", system-ui, sans-serif);
}
a { color: var(--market-blue); }
img { display: block; width: 100%; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
:focus-visible { outline-color: var(--market-focus); }
p, h1, h2, h3 { margin: 0; }
h1, h2, h3 { line-height: 1.13; text-wrap: balance; }
h1, h2 { font-weight: 760; letter-spacing: -.049em; }
h2 { font-size: clamp(2rem, 4.2vw, 3.25rem); }
h3 { font-size: 1.25rem; letter-spacing: -.025em; }
.wrap { width: min(var(--market-max), calc(100% - clamp(2rem, 8vw, 7.5rem))); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 1rem; top: 1rem; z-index: 5; transform: translateY(-160%); color: var(--market-ink); padding: .55rem .9rem; background: var(--market-white); border-radius: 6px; }
.skip:focus { transform: none; }

.market-header { background: var(--market-white); border-bottom: 1px solid var(--market-line); }
.header-row, .footer-row, .account-banner-row { display: flex; justify-content: space-between; align-items: center; gap: 1.25rem; }
.header-row { min-height: 76px; }
.market-brand { white-space: nowrap; display: inline-flex; align-items: center; gap: .65rem; font-weight: 750; color: var(--market-ink); text-decoration: none; letter-spacing: -.025em; }
.market-mark { width: 36px; height: 36px; display: inline-grid; place-items: center; border-radius: 10px; background: #133d53; color: #ffe5b6; font: 800 .77rem/1 system-ui, sans-serif; letter-spacing: 0; }
.top-nav, .header-actions, .section-actions { display: flex; align-items: center; gap: clamp(.75rem, 2.35vw, 2.25rem); }
.top-nav a, .footer-links a { color: var(--market-ink); text-decoration: none; font-weight: 650; }
.top-nav a { white-space: nowrap; }
.top-nav a:hover, .footer-links a:hover { color: var(--market-blue); text-decoration: underline; text-underline-offset: .35em; }
.header-actions { gap: .65rem; }
.theme-control select { color: var(--market-muted); background: var(--market-white); border: 1px solid var(--market-line); border-radius: 999px; padding: .4rem .5rem; min-height: 40px; font-size: .85rem; }

.btn { display: inline-flex; justify-content: center; align-items: center; gap: .4rem; min-height: 46px; padding: .64rem 1rem; border: 1px solid transparent; border-radius: 9px; text-decoration: none; font-weight: 710; line-height: 1.25; text-align: center; white-space: normal; }
.btn:disabled { cursor: progress; opacity: .66; }
.btn-primary { background: #123c52; color: #fff; }
.btn-primary:hover { background: #20556c; }
.btn-amber { background: var(--market-amber); color: #172934; }
.btn-amber:hover { background: var(--market-amber-hover); }
.btn-outline { color: var(--market-ink); background: var(--market-white); border-color: var(--market-line); }
.btn-outline:hover { background: var(--market-tint); border-color: var(--market-muted); }
.btn-text { color: var(--market-blue); background: transparent; }
.btn-text:hover { background: var(--market-tint); }
.btn-small { min-height: 40px; padding: .45rem .7rem; font-size: .9rem; }
.btn-danger { color: var(--market-danger); }

.market-hero { background: #12364b; color: #fcfaf4; }
.hero-grid { display: grid; grid-template-columns: .97fr 1.03fr; min-height: clamp(400px, 35vw, 510px); }
.hero-copy { z-index: 1; position: relative; align-self: center; padding: 2.2rem 1.7rem 4.1rem 0; }
.eyebrow { display: flex; align-items: center; gap: .65rem; color: var(--market-blue); font-weight: 750; font-size: .76rem; letter-spacing: .135em; margin-bottom: .65rem; }
.hero-eyebrow { color: #ffe3ad; }
.hero-eyebrow span { width: 26px; height: 2px; display: inline-block; background: #f7bd61; }
.hero-copy h1 { font-size: clamp(2.9rem, 5.15vw, 4.65rem); line-height: .99; }
.hero-copy em { color: #ffd28d; font-style: normal; white-space: nowrap; }
.hero-copy > p:not(.eyebrow) { font-size: clamp(1rem, 1.7vw, 1.18rem); margin: 1.15rem 0 1.4rem; max-width: 45ch; color: #edf4f7; }
.hero-media { position: relative; overflow: hidden; background: #415a63 url("/flota.jpg") center/cover; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #12364b 0%, #12364b50 16%, #12364b00 43%); pointer-events: none; }
.hero-media img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; object-position: 62% 55%; }

.search-wrap { margin-top: -51px; position: relative; z-index: 2; }
.search-panel { border: 1px solid var(--market-line); border-radius: var(--market-radius); background: var(--market-white); padding: 1rem clamp(1rem, 2.5vw, 1.8rem) 1.35rem; box-shadow: var(--market-shadow); }
.search-modes { display: inline-flex; gap: .3rem; padding: .2rem; border-radius: 9px; background: var(--market-tint); margin-bottom: .8rem; }
.mode-button { color: var(--market-muted); background: transparent; border: 1px solid transparent; border-radius: 7px; padding: .35rem .95rem; font-weight: 720; min-height: 40px; }
.mode-button[aria-pressed="true"] { background: var(--market-white); color: var(--market-blue); border-color: var(--market-line); box-shadow: 0 1px 3px #06121f18; }
.search-grid { display: grid; grid-template-columns: 1.55fr 1fr 1fr minmax(135px, auto); gap: .75rem; align-items: end; }
.search-panel[data-mode="venta"] .search-grid { grid-template-columns: 1fr minmax(135px, auto); }
.search-grid > *, .vehicle-grid > *, .editor-grid > * { min-width: 0; }
label { color: var(--market-ink); font-weight: 650; }
label:has(> input), label:has(> select), label:has(> textarea) { display: block; }
label > input, label > select, label > textarea { display: block; width: 100%; margin-top: .32rem; }
input, select, textarea { color: var(--market-ink); background: var(--market-white); border: 1px solid var(--market-line); border-radius: 8px; min-height: 46px; padding: .55rem .7rem; min-width: 0; }
input[type="date"] { max-width: 100%; }
textarea { resize: vertical; }
input::placeholder { color: var(--market-muted); opacity: 1; }
.theme-control select { margin: 0; }

.section-space { padding-block: clamp(2.6rem, 6.5vw, 5.6rem); }
.catalog.section-space { padding-top: clamp(2.35rem, 4.25vw, 3.65rem); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: .9rem 1.5rem; }
.section-heading > p { color: var(--market-muted); }
.catalog-toolbar { display: flex; align-items: end; gap: .8rem; flex-wrap: wrap; margin: 1.4rem 0 1.2rem; }
.catalog-toolbar label { min-width: 165px; font-size: .9rem; }
.catalog-toolbar p { margin-left: auto; color: var(--market-muted); font-size: .95rem; align-self: center; }
.vehicle-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.8rem, 2.3vw, 1.6rem); }
.vehicle-grid > .empty, .vehicle-grid > .form-message { grid-column: 1 / -1; }
.vehicle-card { display: flex; flex-direction: column; min-width: 0; background: var(--market-white); border: 1px solid var(--market-line); border-radius: var(--market-radius); overflow: hidden; box-shadow: 0 3px 8px #122d3809; }
.card-media { position: relative; aspect-ratio: 16 / 10; background: #dce4e5 url("/flota.jpg") center/cover; overflow: hidden; }
.card-media img { height: 100%; object-fit: cover; }
.category-label { position: absolute; top: .75rem; left: .75rem; max-width: calc(100% - 1.5rem); padding: .25rem .65rem; background: #fffefa; color: #133d53; font-size: .84rem; font-weight: 750; border-radius: 999px; }
.card-content { display: flex; flex-direction: column; flex: 1; padding: 1.1rem 1.05rem .9rem; }
.card-location { display: block; color: var(--market-muted); font-size: .9rem; margin-top: .2rem; }
.card-specs, .detail-specs { display: flex; align-items: center; gap: .35rem .7rem; flex-wrap: wrap; color: var(--market-muted); font-size: .89rem; margin: .85rem 0; padding: 0; list-style: none; }
.card-specs li::before, .detail-specs li::before { content: "·"; margin-right: .34rem; color: var(--market-blue); font-weight: 750; }
.card-specs li:first-child::before, .detail-specs li:first-child::before { content: none; }
.vehicle-card .card-price { display: flex; align-items: center; justify-content: space-between; gap: .65rem; border-top: 1px solid var(--market-line); padding-top: .85rem; margin-top: auto; }
.price-amount { color: var(--market-ink); font-size: clamp(1.2rem, 2.4vw, 1.6rem); font-weight: 760; letter-spacing: -.05em; white-space: nowrap; }
.price-note { color: var(--market-muted); font-size: .86rem; white-space: nowrap; }
.empty { padding: 2rem; border: 1px dashed var(--market-line); border-radius: var(--market-radius); color: var(--market-muted); background: var(--market-white); text-align: center; }
.empty h3 { color: var(--market-ink); margin-bottom: .45rem; }
.empty a, .empty button { margin-top: .8rem; }
.market-process { background: var(--market-tint); }
.process-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.05rem; margin-top: 1.7rem; }
.process-grid article { background: var(--market-white); border-radius: var(--market-radius); border: 1px solid var(--market-line); padding: 1.3rem; }
.step-mark { display: grid; width: 36px; height: 36px; place-items: center; font-size: .95rem; font-weight: 760; margin-bottom: .8rem; border-radius: 50%; color: #1b2f3b; background: #ffe2a9; }
.process-grid article p { color: var(--market-muted); margin-top: .58rem; }

.market-footer { padding: 1.75rem 0; background: var(--market-white); border-top: 1px solid var(--market-line); }
.footer-row { flex-wrap: wrap; }
.footer-row p { color: var(--market-muted); font-size: .9rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: .6rem 1rem; font-size: .9rem; overflow-wrap: anywhere; }
.account-banner { padding-block: clamp(2rem, 5.5vw, 4rem); background: #12364b; color: #fcfaf4; }
.account-banner h1 { font-size: clamp(2.5rem, 5.3vw, 4.2rem); }
.account-banner .eyebrow { color: #ffd28d; }
.account-banner p:not(.eyebrow) { color: #e3eef3; margin-top: .65rem; }
.account-banner-row { align-items: end; flex-wrap: wrap; }
.account-tabs, .section-actions { display: flex; flex-wrap: wrap; gap: .55rem; }
.account-tabs { border-bottom: 1px solid var(--market-line); margin-bottom: 1.25rem; }
.account-tabs .tab-button { background: none; border: 0; border-bottom: 3px solid transparent; color: var(--market-muted); padding: .65rem .8rem; min-height: 44px; font-weight: 700; }
.tab-button[aria-current="page"] { border-bottom-color: var(--market-blue); color: var(--market-blue); }
.account-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; margin-bottom: 1.35rem; }
.account-metrics > div { padding: .75rem 1rem; background: var(--market-white); border: 1px solid var(--market-line); border-radius: 12px; }
.account-metrics strong { display: block; color: var(--market-ink); font-size: 1.55rem; line-height: 1.15; }
.account-metrics span { color: var(--market-muted); font-size: .9rem; overflow-wrap: anywhere; }
.account-subtitle { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; margin: 0 0 1rem; }
.account-subtitle h2 { font-size: clamp(1.6rem, 3.2vw, 2.35rem); }
.account-stack { display: grid; gap: .75rem; }
.order-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .75rem; align-items: center; background: var(--market-white); border: 1px solid var(--market-line); padding: 1rem; border-radius: 13px; }
.order-card p { color: var(--market-muted); margin: .2rem 0; overflow-wrap: anywhere; }
.order-summary { margin-top: .55rem; }
.order-actions { display: flex; gap: .35rem; flex-wrap: wrap; justify-content: end; }
.status { display: inline-flex; border-radius: 999px; background: var(--market-tint); color: var(--market-blue); font-size: .83rem; padding: .19rem .55rem; font-weight: 690; }
.status[data-state="pagada"], .status[data-state="publicado"] { color: var(--market-positive); }
.status[data-state="revision"], .status[data-state="rechazada"], .status[data-state="vencida"] { color: var(--market-danger); }
.order-totals { color: var(--market-muted); margin-top: .4rem; }

.market-dialog { width: min(52rem, calc(100% - clamp(1rem, 5vw, 3rem))); max-height: min(89vh, 1100px); max-height: min(89dvh, 1100px); padding: 0; border: 1px solid var(--market-line); border-radius: var(--market-radius); background: var(--market-white); color: var(--market-ink); box-shadow: 0 25px 70px #0717245e; overflow: auto; }
.market-dialog::backdrop { background: #071724a6; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: .7rem; padding: 1rem 1.3rem; border-bottom: 1px solid var(--market-line); position: sticky; top: 0; z-index: 1; background: var(--market-white); }
.dialog-head h2 { font-size: clamp(1.52rem, 3vw, 2.1rem); }
.icon-button { flex: 0 0 44px; width: 44px; height: 44px; display: inline-grid; place-items: center; font-size: 1.7rem; line-height: 1; border: 1px solid var(--market-line); background: var(--market-white); color: var(--market-ink); border-radius: 50%; }
.icon-button:hover { background: var(--market-tint); }
#dialogBody { padding: 1.15rem clamp(.85rem, 3.15vw, 1.4rem) 1.4rem; }
.editor-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem 1rem; }
.editor-grid .wide, .wide { grid-column: 1 / -1; }
.dialog-actions { display: flex; gap: .55rem; justify-content: end; flex-wrap: wrap; margin-top: .85rem; }
.dialog-actions .btn { flex-shrink: 0; }
.checkboxes { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem 1rem; border: 0; padding: 0; margin: 0; }
.checkboxes label { display: inline-flex; align-items: center; gap: .35rem; }
.checkboxes input { min-height: 0; width: 18px; height: 18px; margin: 0; accent-color: #20556c; }
.checkboxes legend { margin-bottom: .3rem; color: var(--market-muted); font-size: .93rem; }
.form-message { margin-top: .7rem; color: var(--market-danger); border-left: 3px solid currentColor; border-radius: 2px; background: var(--market-tint); padding: .6rem .72rem; overflow-wrap: anywhere; }
.form-message[data-kind="success"] { color: var(--market-positive); }
.form-note { color: var(--market-muted); font-size: .9rem; }
.detail-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: .95rem; }
.detail-photo { border-radius: 12px; overflow: hidden; min-height: 185px; aspect-ratio: 4 / 3; background: #dce4e5 url("/flota.jpg") center/cover; }
.detail-photo img { height: 100%; object-fit: cover; }
.detail-copy p { color: var(--market-muted); }
.detail-copy .detail-specs { margin-block: .65rem; }
.reserve-box { margin-top: 1rem; border: 1px solid var(--market-line); background: var(--market-tint); padding: .85rem; border-radius: 12px; }
.reserve-box .editor-grid { margin: .6rem 0; }
.quote-summary { color: var(--market-muted); margin: .55rem 0; }
.quote-summary strong { color: var(--market-ink); font-size: 1.25rem; }
.checkout-list { margin-top: .8rem; display: grid; gap: .45rem; }
.checkout-provider { display: flex; align-items: center; gap: .5rem; border: 1px solid var(--market-line); border-radius: 9px; background: var(--market-white); padding: .45rem .7rem; min-height: 45px; cursor: pointer; }
.checkout-provider input { min-height: 0; margin: 0; accent-color: #20556c; }
.checkout-email { margin-top: .7rem; }
.receipt { padding: 1.4rem; border: 1px solid var(--market-line); margin-block: 2.5rem; border-radius: 14px; background: var(--market-white); }
#dialogBody .receipt { margin: 0; }
.receipt dl { display: grid; grid-template-columns: auto 1fr; gap: .35rem .85rem; }
.receipt dt { font-weight: 650; color: var(--market-muted); }
.receipt dd { margin: 0; overflow-wrap: anywhere; }
.market-toast { position: fixed; inset: auto 1rem 1rem auto; z-index: 10; width: min(28rem, calc(100% - 2rem)); border: 1px solid var(--market-line); padding: .75rem 1rem; border-radius: 12px; background: var(--market-white); color: var(--market-ink); box-shadow: var(--market-shadow); }

body:has(.market-dialog[open]) { overflow: hidden; }
@media (max-width: 940px) {
  .header-row { min-height: 68px; }
  .top-nav { gap: .8rem; font-size: .91rem; }
  .top-nav a:last-child { display: none; }
  .wrap { width: min(var(--market-max), calc(100% - 2rem)); }
  .hero-grid { min-height: 400px; }
  .vehicle-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 650px) {
  .market-brand { white-space: normal; line-height: 1.18; gap: .48rem; }
  .top-nav { display: none; }
  .header-row { min-height: 65px; gap: .55rem; }
  .header-actions { gap: .42rem; }
  .header-actions .btn { min-height: 40px; padding: .44rem .58rem; white-space: nowrap; }
  .hero-grid { width: 100%; grid-template-columns: 1fr; min-height: auto; }
  .hero-copy { padding: 2.4rem max(1rem, 5vw) 1.5rem; }
  .hero-copy h1 { font-size: clamp(2.8rem, 10vw, 4.15rem); }
  .hero-copy > p:not(.eyebrow) { margin: .95rem 0 1.05rem; }
  .hero-media { aspect-ratio: 16 / 8; }
  .hero-media::after { background: linear-gradient(180deg, #12364b 0%, #12364b00 31%); }
  .hero-media img { object-position: center 56%; }
  .search-wrap { margin-top: -24px; }
  .search-panel { padding: .75rem; }
  .search-grid, .search-panel[data-mode="venta"] .search-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .58rem; }
  .search-grid > label:first-child, .search-grid > .search-submit { grid-column: 1 / -1; }
  .search-grid label { font-size: .9rem; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: .45rem; }
  .catalog-toolbar label { min-width: 0; flex: 1 1 115px; }
  .catalog-toolbar p { flex: 1 0 100%; margin: 0; }
  .process-grid { grid-template-columns: 1fr; }
  .account-banner-row { align-items: start; }
  .order-card { grid-template-columns: 1fr; }
  .order-actions { justify-content: start; }
  .detail-grid { grid-template-columns: 1fr; }
.detail-photo { aspect-ratio: 16 / 8; min-height: 150px; }
  .market-dialog { max-height: calc(100dvh - 1rem); }
  .dialog-head { padding: .6rem .8rem; }
}

@media (max-width: 490px) {
  .vehicle-grid { grid-template-columns: minmax(0, 1fr); }
  .card-media { aspect-ratio: 16 / 8.8; }
  .card-content { padding: .88rem; }
  .account-metrics { gap: .35rem; }
  .account-metrics > div { padding: .45rem .55rem; }
  .account-metrics strong { font-size: 1.25rem; }
  .account-metrics span { font-size: .8rem; }
}

@media (max-width: 350px) {
  .header-row .market-brand { font-size: .85rem; gap: .35rem; }
  .header-row .market-brand > span:last-child { max-width: 5.2rem; }
  .header-row .market-mark { width: 31px; height: 31px; }
  .theme-control select { font-size: .77rem; padding-inline: .35rem; }
  .editor-grid { gap: .55rem; }
  .dialog-actions .btn { flex: 1 1 auto; }
}

@media print {
  body { color: #000; background: #fff; }
  .market-header, .market-footer, .market-dialog, .market-toast, .skip, #marketHome, #marketAccount, .receipt .dialog-actions { display: none !important; }
  .receipt { width: 100%; max-width: none; margin: 0; padding: 1rem; border: 0; color: #000; background: #fff; }
  .receipt dt { color: #222; }
}
/* Portada comercial */
.market-hero { position: relative; overflow: hidden; background: #12364b; }
.hero-grid { position: relative; display: grid; min-height: clamp(480px, 55vw, 650px); }
.hero-copy { grid-area: 1 / 1; z-index: 1; align-self: center; justify-self: center; padding: 3.25rem 0 6.5rem; text-align: center; max-width: 850px; }
.hero-eyebrow { justify-content: center; letter-spacing: .16em; }
.hero-copy h1 { font-size: clamp(3rem, 6.3vw, 6rem); line-height: .98; text-wrap: balance; }
.hero-copy > p:not(.eyebrow) { margin: 1.3rem auto 1.7rem; max-width: 48ch; }
.hero-actions { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 1rem 1.5rem; }
.hero-link { color: #fff; font-weight: 700; text-decoration-thickness: 1px; text-underline-offset: .3em; }
.hero-media { position: absolute; z-index: 0; inset: 0 calc((100vw - min(var(--market-max), 100vw - clamp(2rem, 8vw, 7.5rem))) / -2); }
.hero-media::after { background: linear-gradient(180deg, #0c2639d9 0%, #102e42b8 45%, #102c3a9c 100%); }
.hero-media img { object-position: center 56%; }
.search-wrap { margin-top: -65px; scroll-margin-top: 1rem; }
.search-panel { padding: clamp(1rem, 2.6vw, 2rem); }
.search-intro { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1.25rem; }
.search-intro h2 { font-size: clamp(1.55rem, 3vw, 2.25rem); }
.search-intro > p { max-width: 39ch; color: var(--market-muted); }
.about-section { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 7vw, 7rem); align-items: start; }
.about-copy { color: var(--market-muted); font-size: 1.08rem; }
.about-copy p + p { margin-top: 1rem; }
.text-link { display: inline-block; margin-top: 1.25rem; font-weight: 750; text-underline-offset: .28em; }
.purpose-band { background: var(--market-tint); }
.purpose-grid { display: grid; grid-template-columns: repeat(3, 1fr); padding-block: 2rem; gap: 2rem; }
.purpose-grid > div { border-left: 1px solid var(--market-line); padding-left: 1.2rem; }
.purpose-grid span { color: var(--market-muted); font-size: .8rem; font-weight: 750; }
.purpose-grid h3 { margin: .45rem 0; }
.purpose-grid p { color: var(--market-muted); }
.faq-section { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 7vw, 7rem); }
.faq-section > div > p:not(.eyebrow) { color: var(--market-muted); margin-top: 1rem; }
.faq-list { border-top: 1px solid var(--market-line); }
.faq-list details { border-bottom: 1px solid var(--market-line); padding: 1rem 0; }
.faq-list summary { cursor: pointer; font-weight: 720; padding-right: .5rem; }
.faq-list details p { color: var(--market-muted); margin-top: .8rem; }
.closing-section { background: #12364b; color: #fff; text-align: center; }
.closing-content { padding-block: clamp(3.5rem, 7vw, 6rem); }
.closing-content .eyebrow { justify-content: center; color: #ffe3ad; }
.closing-content h2 { max-width: 20ch; margin-inline: auto; }
.closing-content > p:not(.eyebrow) { color: #edf4f7; margin: 1rem auto 1.4rem; }
@media (max-width: 940px) {
  .top-nav a:last-child { display: none; }
  .hero-media { inset-inline: -1rem; }
}
@media (max-width: 650px) {
  .hero-grid { width: 100%; min-height: 490px; }
  .hero-copy { padding: 3rem 1.1rem 6rem; }
  .hero-copy h1 { font-size: clamp(2.65rem, 10vw, 4rem); }
  .hero-copy h1 br { display: none; }
  .hero-media { inset: 0; aspect-ratio: auto; }
  .hero-media::after { background: linear-gradient(180deg, #0c2639db, #102e42ad 70%, #102c3abf); }
  .search-wrap { margin-top: -45px; }
  .search-intro { display: block; }
  .search-intro > p { margin-top: .5rem; }
  .about-section, .faq-section { grid-template-columns: 1fr; gap: 1.2rem; }
  .purpose-grid { grid-template-columns: 1fr; gap: 1.2rem; }
}

.market-hero .hero-grid { grid-template-columns: minmax(0, 1fr); }
.fleet-intro { background: #12364b; color: #fff; padding: clamp(3.5rem, 7vw, 6rem) 0 6rem; }
.fleet-intro .eyebrow { color: #ffe3ad; }
.fleet-intro h1 { max-width: 17ch; font-size: clamp(2.7rem, 6vw, 4.8rem); }
.fleet-intro p:not(.eyebrow) { max-width: 58ch; margin-top: .9rem; color: #edf4f7; }
.fleet-back { display: inline-block; margin-top: 1.2rem; color: #fff; text-underline-offset: .25em; font-weight: 650; }
/* Identidad y servicios de la portada */
.company-values { background: var(--market-tint); }
.values-heading { max-width: 55rem; }
.values-heading > p:not(.eyebrow), .service-intro > p:not(.eyebrow) { margin-top: 1rem; color: var(--market-muted); max-width: 65ch; }
.values-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; margin-top: 2rem; }
.values-grid article { padding: clamp(1.25rem,2.5vw,2rem); background: var(--market-white); border: 1px solid var(--market-line); border-radius: var(--market-radius); }
.values-grid article > span, .service-options article span { color: var(--market-blue); font-size: .75rem; font-weight: 800; letter-spacing: .12em; }
.values-grid h3 { margin-top: 1.2rem; font-size: 1.45rem; }
.values-grid article p, .service-options article p { margin-top: .7rem; color: var(--market-muted); }
.service-overview { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem,7vw,7rem); }
.service-options { border-top: 1px solid var(--market-line); }
.service-options article { padding: 1.4rem 0; border-bottom: 1px solid var(--market-line); }
.service-options h3 { margin-top: .5rem; font-size: 1.4rem; }
.service-options .text-link { margin-top: .8rem; }
@media (max-width: 700px) {
  .values-grid { grid-template-columns: 1fr; }
  .service-overview { grid-template-columns: 1fr; gap: 1.5rem; }
}
/* Movimiento breve y progresivo, sin retrasar la interacción */
@media (prefers-reduced-motion: no-preference) {
  .landing-motion .hero-copy h1 { animation: title-write 1.05s steps(32, end) both; }
  .landing-motion .hero-copy > p, .landing-motion .hero-actions { animation: hero-arrive .55s ease-out both; }
  .landing-motion .hero-copy > p:not(.eyebrow) { animation-delay: .12s; }
  .landing-motion .hero-actions { animation-delay: .2s; }
  .landing-motion .hero-media img { animation: image-settle 1.5s ease-out both; }
  .landing-motion .reveal-pending { opacity: 0; transform: translateY(18px); }
  .landing-motion .reveal-visible { animation: reveal-up .55s cubic-bezier(.2,.7,.2,1) both; }
  .landing-motion .reveal-pending:focus-within { opacity: 1; transform: none; }
  .btn, .values-grid article, .vehicle-card { transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease; }
  @media (hover: hover) {
    .btn:hover { transform: translateY(-2px); }
    .values-grid article:hover, .vehicle-card:hover { transform: translateY(-3px); box-shadow: var(--market-shadow); }
  }
}
@keyframes title-write { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes hero-arrive { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes image-settle { from { transform: scale(1.035); } to { transform: scale(1); } }
@keyframes reveal-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .landing-motion .reveal-pending { opacity: 1; transform: none; }
}
/* Asistente de demostración */
.demo-assistant { position: fixed; z-index: 9; right: 1rem; bottom: 1rem; display: grid; justify-items: end; gap: .65rem; }
.assistant-launch { display: flex; align-items: center; gap: .65rem; background: #123c52; color: white; border: 0; border-radius: 999px; padding: .65rem 1rem .65rem .65rem; box-shadow: 0 8px 28px #07172455; text-align: left; font-weight: 750; line-height: 1.2; }
.assistant-launch small { display: block; color: #d0e4ea; font-size: .72rem; font-weight: 500; margin-top: .18rem; }
.assistant-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; color: #173447; background: #f9bd61; font-size: 1.25rem; }
.assistant-panel { display: flex; flex-direction: column; width: min(380px,calc(100vw - 2rem)); max-height: min(560px,calc(100dvh - 6.5rem)); background: var(--market-white); color: var(--market-ink); border: 1px solid var(--market-line); border-radius: 18px; box-shadow: 0 18px 55px #0717244a; overflow: hidden; }
.assistant-head { display: flex; justify-content: space-between; gap: .5rem; padding: 1rem; background: #123c52; color: #fff; }
.assistant-head h2 { font-size: 1.22rem; letter-spacing: -.02em; }
.assistant-head p { font-size: .78rem; color: #d7e9ee; }
.assistant-head .assistant-eyebrow { color: #ffdc9b; font-size: .64rem; font-weight: 800; letter-spacing: .12em; margin-bottom: .25rem; }
.assistant-close { width: 36px; height: 36px; flex: 0 0 auto; border: 1px solid #ffffff66; border-radius: 50%; background: transparent; color: #fff; font-size: 1.5rem; line-height: 1; }
.assistant-body { padding: .9rem; min-height: 0; overflow-y: auto; }
.assistant-conversation { max-height: 205px; overflow-y: auto; display: grid; gap: .5rem; }
.assistant-message { max-width: 94%; padding: .65rem .75rem; border-radius: 12px; font-size: .88rem; line-height: 1.42; overflow-wrap: anywhere; }
.assistant-reply { background: var(--market-tint); color: var(--market-ink); justify-self: start; }
.assistant-user { background: #123c52; color: #fff; justify-self: end; }
.assistant-prompt { font-size: .8rem; color: var(--market-muted); margin: .85rem 0 .5rem; }
.assistant-topics { display: flex; flex-wrap: wrap; gap: .4rem; }
.assistant-topics button { background: var(--market-white); color: var(--market-blue); border: 1px solid var(--market-line); border-radius: 999px; padding: .35rem .7rem; font-size: .8rem; font-weight: 650; }
.assistant-topics button:hover { background: var(--market-tint); }
.assistant-form { display: flex; gap: .5rem; padding: .7rem .9rem .35rem; border-top: 1px solid var(--market-line); }
.assistant-form input { width: 100%; min-width: 0; min-height: 42px; }
.assistant-form button { border: 0; border-radius: 8px; padding: .5rem .75rem; color: #fff; background: #123c52; font-weight: 700; }
.assistant-note { font-size: .69rem; color: var(--market-muted); padding: 0 .9rem .75rem; }
@media (max-width: 400px) { .demo-assistant { right: .6rem; bottom: .6rem; } .assistant-panel { width: calc(100vw - 1.2rem); } }
@media print { .demo-assistant { display: none !important; } }
