/* Diseño propio inspirado en la claridad de una landing SaaS; sin activos de la plantilla Corekit. */
@font-face { font-family: "Source Sans 3"; src: url("vendor/source-sans-3/SourceSans3VF-Upright.ttf.woff2") format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap; }
:root {
  --ink: #17191a;
  --muted: #626b6c;
  --line: #dfe4e2;
  --soft: #f2f3f2;
  --paper: #fff;
  --dark: #17191a;
  --canvas: #f8f7f3;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { max-width: none; margin: 0; padding: 0; background: var(--canvas); color: var(--ink); font: 14.5px/1.45 "Source Sans 3", ui-sans-serif, system-ui, sans-serif; }
body > header, body > main, body > footer { max-width: none; }
button, input, select { font: inherit; }
a:link, a:visited { color: var(--ink); }
a { text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid #a5a9ff; outline-offset: 3px; }
.shell { width: min(1200px, calc(100% - 48px)); margin-inline: auto; }

.topbar { background: #111315; border-bottom: 1px solid #111315; box-shadow: 0 1px 0 #ffffff0a; }
.topbar-inner { min-height: 64px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 22px; }
.brand { display: inline-flex; align-items: center; justify-self: start; gap: 10px; color: #fff; text-decoration: none; font-weight: 560; font-size: 1.16rem; letter-spacing: -.012em; white-space: nowrap; }
.brand:link, .brand:visited { color: #fff; }
.brand-muted { color: #777e80; margin-left: -7px; font-weight: 500; }
.brand-mark { display: inline-grid; place-items: center; flex: none; }
.brand-mark { width: 38px; height: 30px; }
.brand-mark img { display: block; width: 38px; height: 22px; }
.topbar nav { display: flex; align-items: center; gap: clamp(12px, 2.2vw, 31px); white-space: nowrap; }
.topbar nav a { font-size: .86rem; font-weight: 550; text-decoration: none; color: #b9bdbf; padding: 6px 0; }
.topbar nav a:link, .topbar nav a:visited { color: #b9bdbf; }
.topbar nav a:hover, .topbar nav a[aria-current="page"] { color: #fff; }
.topbar nav a[aria-current="page"] { box-shadow: inset 0 -2px currentColor; }
.menu-toggle { display: none; }
.nav-cta, .button-primary { display: inline-flex; justify-content: center; align-items: center; gap: 14px; border-radius: 999px; background: var(--dark); color: #fff !important; text-decoration: none; font-weight: 650; transition: transform .15s ease, background .15s ease; }
.nav-cta { justify-self: end; padding: 8px 17px; font-size: .85rem; }
.nav-cta:hover, .button-primary:hover { background: #3b3e41; transform: translateY(-1px); color: #fff; }
.nav-cta { background: #fff; color: #111315 !important; }
.nav-cta:hover { background: #e9eaea; color: #111315 !important; }
.button-primary { padding: 13px 22px; font-size: .89rem; }
.button-text { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 650; font-size: .9rem; padding: 10px 2px; }
.button-text:hover, .panel:hover .panel-link { text-decoration: underline; }

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--ink); }
h1 { letter-spacing: -.035em; font-weight: 700; }
h2 { letter-spacing: -.025em; font-weight: 680; }
h3 { letter-spacing: -.01em; font-weight: 650; }
.lead { color: #62686b; line-height: 1.6; font-size: 1.05rem; max-width: 650px; }

.data-hero { position: relative; overflow: hidden; border-bottom: 1px solid #272c2b; background: #101314; isolation: isolate; }
.data-hero::before { position: absolute; inset: 0; z-index: 0; background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px); background-size: 22px 22px; content: ""; }
.data-hero::after { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgba(16,19,20,.84) 0%, rgba(16,19,20,.6) 25%, rgba(16,19,20,.08) 55%, rgba(16,19,20,.22) 100%), linear-gradient(180deg, rgba(16,19,20,.16), transparent 45%, rgba(16,19,20,.22)); content: ""; }
.data-hero-inner { position: relative; z-index: 2; min-height: 0; padding-top: 21px; padding-bottom: 21px; }
.scrape-stage { position: relative; display: grid; grid-template-columns: minmax(300px, .74fr) minmax(0, 1.46fr); align-items: center; gap: clamp(38px, 4vw, 74px); min-height: 116px; }
.scrape-stage::after { position: absolute; top: 7px; bottom: 7px; left: 31%; width: 1px; background: linear-gradient(transparent, #3a403e 24%, #3a403e 76%, transparent); content: ""; }
.stage-matrix { position: absolute; inset: -74px 0 -78px; z-index: 0; display: grid; grid-template-columns: repeat(16, minmax(0, 1fr)); overflow: hidden; opacity: .48; pointer-events: none; -webkit-mask-image: linear-gradient(180deg, transparent, #000 14%, #000 86%, transparent); mask-image: linear-gradient(180deg, transparent, #000 14%, #000 86%, transparent); }
.stage-matrix span { color: #789087; font: 500 .48rem/1.45 ui-monospace, SFMono-Regular, Consolas, monospace; text-align: center; text-shadow: 0 0 7px rgba(101,120,111,.3); animation: matrix-field var(--speed) linear var(--delay) infinite; }
.stage-matrix span:nth-child(4n + 2) { color: #bd7a2f; text-shadow: 0 0 8px rgba(255,138,0,.25); }
.stage-matrix span:nth-child(5n) { opacity: .62; }
.data-hero-copy { position: relative; z-index: 2; min-width: 0; max-width: 500px; }
.data-hero-copy h1 { max-width: 480px; margin: 0 0 9px; color: #f6f5f1; font-size: clamp(2rem, 2.65vw, 2.65rem); line-height: .98; text-shadow: 0 2px 18px #080a0b; }
.data-hero-copy p { max-width: 470px; margin: 0; color: #b8bfbc; font-size: .96rem; line-height: 1.35; }
.scrape-pipeline { position: relative; z-index: 2; display: grid; grid-template-columns: 102px minmax(0, 1fr) 96px; align-items: center; gap: 20px; min-width: 0; }
.pipeline-source { display: grid; gap: 5px; }
.pipeline-source span { overflow: hidden; padding: 4px 8px; border: 1px solid #36403d; border-radius: 4px; background: rgba(20,25,25,.82); color: #9da8a4; font: 500 .58rem/1 ui-monospace, SFMono-Regular, Consolas, monospace; text-overflow: ellipsis; white-space: nowrap; animation: source-read 6s ease-in-out infinite; }
.pipeline-source span:nth-child(2) { color: #dde1df; animation-delay: -4s; }
.pipeline-source span:nth-child(3) { animation-delay: -2s; }
.pipeline-track { position: relative; display: grid; grid-template-columns: repeat(3, minmax(82px, 1fr)); align-items: start; gap: 24px; min-width: 0; }
.pipeline-line { position: absolute; z-index: 0; right: 0; left: 0; top: 23px; height: 1px; background: linear-gradient(90deg, #3b4441 0%, #825729 42%, #3b4441 76%); background-size: 220% 100%; animation: route-line 4.8s linear infinite; }
.pipeline-line::before, .pipeline-line::after { position: absolute; top: -2px; width: 5px; height: 5px; border-radius: 50%; background: #78837f; content: ""; }
.pipeline-line::before { left: 0; }
.pipeline-line::after { right: 0; }
.pipeline-node { position: relative; z-index: 2; display: grid; justify-items: center; gap: 7px; color: #87908d; }
.pipeline-node b { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid #414a47; border-radius: 50%; background: rgba(24,29,29,.92); box-shadow: 0 5px 16px rgba(0,0,0,.3); color: #f0f2ef; font: 600 .78rem/1 ui-monospace, SFMono-Regular, Consolas, monospace; animation: node-read 7.2s ease-in-out infinite; }
.pipeline-node small { color: #a2aba8; font-size: .59rem; line-height: 1; }
.node-order b { animation-delay: -4.8s; }
.node-analyze b { animation-delay: -2.4s; }
.data-packet { position: absolute; z-index: 1; top: 23px; left: 0; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: #ff8a00; box-shadow: 0 0 0 3px rgba(255,138,0,.1), 0 0 11px rgba(255,138,0,.62); animation: data-route 7.2s linear infinite; }
.packet-b { animation-delay: -2.4s; }
.packet-c { animation-delay: -4.8s; }
.pipeline-result { display: grid; justify-items: center; gap: 7px; color: #cbd0ce; }
.pipeline-result > span { color: #cbd0ce; font-size: .58rem; line-height: 1; text-align: center; }
.result-bars { display: flex; align-items: end; justify-content: center; gap: 4px; width: 52px; height: 38px; padding: 6px 7px 4px; border: 1px solid #414a47; border-radius: 7px; background: rgba(21,25,26,.9); }
.result-bars i { width: 9px; border-radius: 2px 2px 0 0; background: #71817b; animation: result-bars 4.8s ease-in-out infinite alternate; }
.result-bars i:nth-child(1) { height: 40%; }
.result-bars i:nth-child(2) { height: 74%; animation-delay: -1.6s; }
.result-bars i:nth-child(3) { height: 100%; background: #ff8a00; animation-delay: -3.2s; }
@keyframes matrix-field { from { transform: translateY(-24px); } to { transform: translateY(52px); } }
@keyframes route-line { to { background-position: -220% 0; } }
@keyframes source-read { 0%, 25%, 100% { border-color: #36403d; color: #9da8a4; } 10%, 18% { border-color: #9a672d; color: #fff; } }
@keyframes node-read { 0%, 24%, 100% { border-color: #414a47; background: rgba(24,29,29,.92); transform: scale(1); } 8%, 18% { border-color: #c17b2d; background: #25231e; box-shadow: 0 0 0 5px rgba(255,138,0,.08), 0 5px 16px rgba(0,0,0,.3); transform: scale(1.05); } }
@keyframes data-route { 0% { left: 0; opacity: 0; } 8%, 92% { opacity: 1; } 100% { left: calc(100% - 6px); opacity: 0; } }
@keyframes result-bars { to { transform: scaleY(.7); transform-origin: bottom; } }

.preview-band { background: transparent; border: 0; padding: 0 0 28px; }
.product-preview { background: white; border: 1px solid #dfe2e0; border-radius: 14px; box-shadow: 0 8px 24px rgba(20, 24, 23, .06); overflow: hidden; }
.preview-main { padding: 18px 20px 20px; min-width: 0; }
.preview-section-head { margin: 22px 0 12px; }
.metric-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.metric { min-width: 0; border: 1px solid #dfe2e0; border-radius: 11px; padding: 13px 14px 12px; background: #fff; display: flex; align-items: baseline; gap: 7px; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.metric:hover { transform: translateY(-2px); border-color: #c7cdca; box-shadow: 0 8px 20px rgba(20, 24, 23, .07); }
.metric-value { display: block; color: var(--ink); font-size: clamp(1.3rem, 1.8vw, 1.8rem); line-height: 1.1; letter-spacing: -.025em; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.metric:nth-child(3) .metric-value { font-size: clamp(1.2rem, 1.58vw, 1.55rem); }
.metric-label { display: block; min-width: 0; color: #727a7b; font-size: .74rem; line-height: 1.1; white-space: nowrap; }
.preview-panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.paper { background: #fff; border: 1px solid #dfe2e0; border-radius: 11px; padding: 16px; min-width: 0; }
.paper-heading { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; margin-bottom: 10px; }
.paper-heading span { font-size: .72rem; color: #a0a5a7; }
.paper h3 { margin: 0 0 15px; font-size: .96rem; }
.paper-heading h3 { margin: 0; }
.preview-updated { color: #858a8c; margin: 12px 2px 0; font-size: .72rem; text-align: right; }
.small-note, .footnote { font-size: .77rem; color: #818789; }
.small-note { margin: 13px 0 0; }
.carga-pagina > p { max-width: 680px; color: var(--muted); }
.carga-panel { max-width: 680px; display: grid; gap: 10px; padding: 20px; }
.carga-panel label { font-weight: 650; }
.carga-panel input { width: 100%; min-height: 39px; background: #fff; color: var(--ink); border: 1px solid #d9ddde; border-radius: 8px; padding: 7px 10px; }
.carga-panel button { justify-self: start; border: 1px solid #222; border-radius: 8px; background: #17191a; color: #fff; padding: 8px 15px; cursor: pointer; }
.carga-panel button:disabled { opacity: .45; cursor: not-allowed; }
.carga-resumen { margin: 2px 0 10px; color: #3f484a; }
#estado-carga { margin: 2px 0 0; color: #226c3f; }
#estado-carga.error-carga { color: #a12f2f; }

.explore-section { padding-top: 0; padding-bottom: 44px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 18px; }
.section-head h2 { font-size: clamp(1.4rem, 2.1vw, 1.9rem); line-height: 1.1; margin: 3px 0 0; }
.section-head p { color: var(--muted); max-width: 330px; margin: 0; font-size: .96rem; }
.panel-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.panel { position: relative; display: flex; flex-direction: column; min-height: 132px; overflow: hidden; background: #fff; border: 1px solid #dfe2e0; border-radius: 14px; padding: 18px 20px 16px; text-decoration: none; box-shadow: 0 8px 24px rgba(20, 24, 23, .06); transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease; }
.panel:hover { border-color: #c3c9c6; transform: translateY(-4px); box-shadow: 0 13px 28px rgba(20, 24, 23, .09); color: var(--ink); }
.panel h3 { font-size: 1.22rem; margin: 0 0 5px; }
.panel p { color: #687071; font-size: .88rem; line-height: 1.42; margin: 0 0 14px; }
.panel-link { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 10px; color: #333839; font-size: .85rem; font-weight: 700; }
.panel-link b { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #eff1f0; font-size: .95rem; line-height: 1; transition: transform .18s ease, background .18s ease; }
.panel:hover .panel-link b { transform: translate(2px, -2px); background: #e5e8e6; }
.context-section { padding-bottom: 37px; }
.context-section .footnote { margin: 0; }
.context-card { background: #f5f6f6; border-radius: 18px; display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; padding: clamp(28px, 5vw, 60px); }
.context-card h2 { font-size: clamp(2rem, 3.5vw, 3.2rem); line-height: 1.1; margin: 13px 0 0; }
.context-card p { color: #62686b; line-height: 1.65; font-size: .94rem; margin: 0 0 23px; }
.context-card a { text-decoration: none; font-weight: 670; font-size: .9rem; }
.context-card a:hover { text-decoration: underline; }
.site-footer { border-top: 1px solid #292c2e; background: #0b0d0e; color: #aeb4b3; padding: 31px 0 33px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.footer-brand { display: inline-flex; align-items: center; gap: 15px; flex: none; color: #fff !important; text-decoration: none; }
.footer-brand img { display: block; width: 100px; height: 56px; }
.footer-brand span { color: #fff; font-size: 2.05rem; line-height: 1; letter-spacing: -.015em; font-weight: 560; }
.footer-copy { max-width: 390px; margin: 0; color: #9da3a4; font-size: .8rem; line-height: 1.45; text-align: right; }

/* Vistas internas: la misma navegación, sin hero de marketing. */
main.shell { padding-top: 30px; padding-bottom: 48px; }
main.shell > h1 { font-size: clamp(2.3rem, 4vw, 3.65rem); line-height: 1.04; margin: 7px 0 10px; }
.stats-intro { max-width: 720px; margin: -1px 0 13px; color: var(--muted); font-size: .9rem; line-height: 1.45; }
.agency-intro { max-width: 760px; color: var(--muted); font-size: .96rem; margin: -2px 0 14px; }
.agency-overview { margin-top: 28px; }
.agency-section-head { display: block; margin-bottom: 12px; }
.agency-section-head > div { display: block; }
.agency-section-head h2 { margin-bottom: 5px; }
.agency-section-head p { max-width: 760px; font-size: .88rem; line-height: 1.45; }
.agency-summary { display: grid; grid-template-columns: minmax(185px, .7fr) minmax(0, 2fr); gap: 30px; align-items: center; border: 1px solid #2d3332; border-radius: 14px; background: #171a1b; color: #fff; padding: 22px 24px; box-shadow: 0 8px 24px rgba(20, 24, 23, .08); }
.agency-summary-total { display: grid; align-content: center; }
.agency-summary-kicker { color: #9ea7a4; font-size: .7rem; font-weight: 700; letter-spacing: .055em; text-transform: uppercase; }
.agency-summary-value { margin-top: 2px; font-size: clamp(2.1rem, 4vw, 3.2rem); line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.agency-summary-label { margin-top: 5px; color: #d2d7d5; font-size: .86rem; }
.agency-summary-distribution { min-width: 0; }
.agency-share-bar { display: flex; width: 100%; height: 12px; overflow: hidden; border-radius: 999px; background: #303536; }
.agency-share-segment { flex-basis: 0; }
.agency-share-segment.agency, .agency-share-dot.agency { background: #ff8a00; }
.agency-share-segment.private, .agency-share-dot.private { background: #34b7a4; }
.agency-share-segment.unknown, .agency-share-dot.unknown { background: #828b88; }
.agency-share-legend { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 13px; }
.agency-share-item { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; align-items: center; gap: 4px 7px; min-width: 0; }
.agency-share-dot { grid-row: 1 / span 2; display: block; width: 8px; height: 8px; border-radius: 50%; }
.agency-share-name { overflow: hidden; color: #c8cecc; font-size: .76rem; text-overflow: ellipsis; white-space: nowrap; }
.agency-share-number { color: #fff; font-size: .9rem; font-variant-numeric: tabular-nums; }
.agency-share-percent { color: #9ea7a4; font-size: .68rem; font-variant-numeric: tabular-nums; }
.agency-metrics.metric-strip { margin-top: 0; }
.agency-metrics .metric { display: block; min-height: 78px; }
.agency-metrics .metric-label { margin-top: 5px; line-height: 1.2; white-space: normal; }
main.shell > .lead { margin-bottom: 21px; font-size: 1rem; }
main.shell .section-head { margin-top: 33px; }
main.shell .section-head h2 { font-size: clamp(1.55rem, 2.4vw, 2.15rem); }
main.shell .metric-strip { margin: 18px 0 8px; }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.split .paper { padding: 17px; }
.footnote { margin: 43px 0 0; padding-top: 14px; border-top: 1px solid var(--line); }
.toolbar { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: 12px; margin: 19px 0 16px; box-shadow: 0 4px 16px rgba(27, 39, 36, .035); }
.toolbar label { display: grid; gap: 6px; color: #666d70; font-size: .76rem; font-weight: 650; }
.toolbar input, .toolbar select { min-height: 36px; min-width: 150px; background: #fff; color: var(--ink); border: 1px solid #d9ddde; border-radius: 8px; padding: 5px 9px; }
.toolbar input[type="search"] { width: min(300px, 100%); }
.toolbar .count { margin-left: auto; align-self: center; color: #555c5e; font-size: .8rem; font-weight: 650; white-space: nowrap; }
.catalog { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 10px; margin: 24px 0 0; }
.pagination[hidden] { display: none; }
.page-button, .page-current select { min-height: 36px; border: 1px solid #d4d8d9; border-radius: 8px; background: #fff; color: var(--ink); font: inherit; }
.page-button { padding: 7px 12px; cursor: pointer; font-weight: 650; }
.page-button:hover:not(:disabled) { border-color: #7e9996; background: #f2f8f7; }
.page-button:disabled { color: #a4aaac; cursor: default; background: #f7f8f8; }
.page-current { display: flex; align-items: center; gap: 7px; color: #687073; font-size: .8rem; font-weight: 600; }
.page-current select { padding: 5px 26px 5px 9px; }
.vehicle { display: flex; flex-direction: column; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 13px; overflow: hidden; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.vehicle:hover { transform: translateY(-3px); border-color: #c6cbc9; box-shadow: 0 10px 26px rgba(0,0,0,.08); }
.vehicle img { width: 100%; aspect-ratio: 1.85; object-fit: cover; background: #eef0f0; margin: 0; }
.vehicle-image-missing { aspect-ratio: 1.85; display: grid; place-items: center; background: #f4f6f6; color: #969d9f; font-size: .8rem; }
.vehicle-content { padding: 15px; display: flex; flex: 1; flex-direction: column; }
.vehicle-top { display: flex; justify-content: space-between; align-items: start; gap: 10px; }
.vehicle h3 { font-size: 1.02rem; margin: 0 0 4px; line-height: 1.25; }
.vehicle-version { color: #818789; font-size: .76rem; line-height: 1.4; min-height: 1.1em; }
.vehicle-price { font-size: 1.3rem; font-weight: 700; letter-spacing: -.02em; margin: 7px 0 8px; }
.vehicle-meta { color: #656c6e; font-size: .8rem; line-height: 1.38; padding-top: 8px; border-top: 1px solid var(--line); }
.vehicle-seller { color: #858a8c; font-size: .77rem; margin-top: auto; padding-top: 10px; }
.vehicle-actions { display: flex; justify-content: space-between; gap: 8px; margin-top: 11px; font-size: .79rem; font-weight: 650; }
.vehicle-actions a { text-decoration: none; }
.vehicle-actions a:hover { text-decoration: underline; }
.chip { border-radius: 999px; border: 1px solid var(--line); color: #8a9092; padding: 3px 7px; font-size: .58rem; white-space: nowrap; }
.bars { list-style: none; padding: 0; margin: 0; }
.bars li { display: grid; grid-template-columns: minmax(100px, 1.3fr) minmax(70px, 2fr) 40px; gap: 9px; align-items: center; font-size: .82rem; padding: 5px 0; margin: 0; border-bottom: 1px solid #f0f1f1; }
.bars li:last-child { border-bottom: 0; }
.bar-track { display: block; height: 7px; background: #eceeee; border-radius: 99px; overflow: hidden; }
.bar-fill { display: block; height: 100%; border-radius: 99px; transition: filter .18s ease; }
.bar-level-0 { background: #d58a4a; }
.bar-level-1 { background: #bd9a55; }
.bar-level-2 { background: #82946d; }
.bar-level-3 { background: #4f837c; }
.bar-level-4 { background: #216b66; }
.bars li:hover .bar-fill { filter: brightness(.82); }
.bar-count { font-variant-numeric: tabular-nums; font-weight: 690; text-align: right; }
.ranking-heading > div { width: 100%; display: flex; justify-content: space-between; align-items: end; gap: 18px; }
.ranking-heading p { max-width: 440px; }
.ranking-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ranking-card { padding: 17px; }
.ranking-card-wide { grid-column: 1 / -1; }
.ranking-card-wide .ranking-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
.ranking-list { list-style: none; counter-reset: posicion; padding: 0; margin: 0; }
.ranking-item { counter-increment: posicion; display: grid; grid-template-columns: 27px minmax(0, 1fr) auto; gap: 9px; align-items: center; min-height: 36px; padding: 5px 0; margin: 0; border-bottom: 1px solid #f0f1f1; font-size: .82rem; }
.ranking-item:last-child { border-bottom: 0; }
.ranking-item::before { content: counter(posicion); display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; background: #eceeed; color: #34393a; font-size: .72rem; font-weight: 750; font-variant-numeric: tabular-nums; }
.ranking-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); text-decoration: none; }
.ranking-name:hover { text-decoration: underline; }
.ranking-value { color: #3f4b49; font-size: .8rem; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.wide-table { width: 100%; border-collapse: collapse; background: #fff; font-size: .82rem; border: 1px solid var(--line); }
.wide-table th, .wide-table td { padding: 10px 9px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.wide-table th { font-size: .74rem; letter-spacing: 0; color: #697273; background: #f0f1f0; }
.wide-table td.numeric, .wide-table th.numeric { text-align: right; white-space: nowrap; }
.agency-filter { display: flex; align-items: center; gap: 10px; margin: -4px 0 12px; }
.agency-filter label { color: #62686b; font-size: .82rem; font-weight: 600; }
.agency-filter input { min-height: 36px; width: min(290px, 100%); border: 1px solid #d9ddde; border-radius: 8px; background: #fff; padding: 5px 9px; }
.agency-filter span { margin-left: auto; color: #697073; font-size: .79rem; white-space: nowrap; }
.agency-table-wrap { border: 1px solid var(--line); border-radius: 11px; overflow: hidden; }
.agency-table { border: 0; margin: 0; }
.agency-table th:first-child, .agency-table td:first-child { padding-left: 15px; }
.agency-table th:last-child, .agency-table td:last-child { padding-right: 15px; }
.agency-table tbody tr:hover { background: #fafbfb; }
.agency-table td:first-child { font-weight: 620; min-width: 195px; }
.agency-table td:nth-child(5), .agency-table td:nth-child(6) { max-width: 260px; overflow-wrap: anywhere; }
.muted { color: #898f91; }
.empty { padding: 35px 20px; color: var(--muted); background: #f7f8f8; border: 1px dashed #d8dcdd; border-radius: 8px; }
.detail-main { min-height: calc(100vh - 160px); }
.detail-back { display: inline-block; margin-bottom: 22px; color: #5e6668 !important; text-decoration: none; font-size: .84rem; font-weight: 600; }
.detail-back:hover { text-decoration: underline; }
.detail-heading { margin-bottom: 25px; }
.detail-title { font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.08; margin: 6px 0 9px; }
.detail-version { margin: 0; color: var(--muted); }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(310px, .85fr); gap: 24px; align-items: start; }
.detail-photo { display: grid; place-items: center; width: 100%; aspect-ratio: 1.4; background: #f5f6f6; border: 1px solid var(--line); border-radius: 13px; overflow: hidden; }
.detail-photo img { width: 100%; height: 100%; object-fit: contain; }
.detail-no-photo { color: #989ea0; font-size: .85rem; }
.detail-info { border: 1px solid var(--line); border-radius: 13px; padding: 25px; background: #fff; }
.detail-price { font-size: clamp(1.75rem, 2.6vw, 2.4rem); line-height: 1.1; letter-spacing: -.05em; font-weight: 700; margin: 0 0 18px; }
.detail-facts { display: grid; grid-template-columns: 115px minmax(0, 1fr); column-gap: 16px; margin: 0 0 25px; }
.detail-facts dt, .detail-facts dd { margin: 0; padding: 9px 0; border-top: 1px solid #eef0f0; font-size: .82rem; overflow-wrap: anywhere; }
.detail-facts dt { color: #767d7f; }
.detail-facts dd { color: var(--ink); font-weight: 550; }

/* Una sola burbuja flotante evita que las tarjetas corten las explicaciones. */
.help-target { cursor: help; }
.help-target:focus-visible { outline: 2px solid #7580bb; outline-offset: 3px; border-radius: 4px; }
.help-hint { display: inline-grid; place-items: center; width: 15px; height: 15px; margin-left: 6px; border: 1px solid #9ba2a5; border-radius: 50%; color: #687174; font-size: 10px; line-height: 1; font-weight: 700; vertical-align: 1px; }
.paper h3.help-with-hint { position: relative; padding-right: 19px; }
.paper h3.help-with-hint .help-hint { position: absolute; top: 0; right: 0; margin: 0; }
.metric.help-target { position: relative; padding-right: 30px; }
.metric .help-hint { position: absolute; top: 9px; right: 9px; margin: 0; }
.bars li.help-target:hover, .bars li.help-target:focus-visible { background: #f6f7f7; }
.detail-facts dt.help-target { text-decoration: underline dotted #aeb5b8; text-underline-offset: 3px; }
.vehicle-price.help-target { width: fit-content; }
.vehicle-price .help-hint { vertical-align: middle; }
.help-popover { position: fixed; z-index: 10000; max-width: min(310px, calc(100vw - 24px)); padding: 10px 12px; border-radius: 10px; background: #1e2326; color: #fff; box-shadow: 0 12px 32px #11131536; font-size: .84rem; line-height: 1.42; pointer-events: none; }
.help-popover[hidden] { display: none; }
.help-popover::after { content: ""; position: absolute; top: -5px; left: var(--arrow-x, 50%); width: 10px; height: 10px; background: #1e2326; transform: translateX(-50%) rotate(45deg); }
.help-popover.help-above::after { top: auto; bottom: -5px; }

@media (max-width: 950px) {
  .topbar-inner { grid-template-columns: 1fr auto; }
  .topbar nav { grid-row: 2; grid-column: 1 / -1; justify-content: center; padding-bottom: 12px; }
  .data-hero-inner { padding-top: 18px; padding-bottom: 18px; }
  .scrape-stage { grid-template-columns: minmax(250px, .78fr) minmax(0, 1.22fr); gap: 18px; min-height: 110px; }
  .scrape-stage::after { left: 38%; }
  .data-hero-copy h1 { font-size: 1.9rem; }
  .scrape-pipeline { grid-template-columns: 68px minmax(0, 1fr) 68px; gap: 9px; }
  .pipeline-track { grid-template-columns: repeat(3, minmax(44px, 1fr)); gap: 8px; }
  .pipeline-node b { width: 38px; height: 38px; }
  .pipeline-line, .data-packet { top: 19px; }
  .pipeline-source span { padding: 3px 5px; font-size: .48rem; }
  .result-bars { width: 44px; height: 34px; }
  .catalog, .panel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 650px) {
  body { font-size: 13.5px; }
  .shell { width: min(100% - 20px, 1200px); }
  .topbar-inner { min-height: 50px; grid-template-columns: 1fr auto; gap: 8px; }
  .topbar nav { grid-row: 2; grid-column: 1; flex-wrap: nowrap; justify-content: flex-start; width: 100%; column-gap: 16px; padding: 0 0 8px; overflow-x: auto; scrollbar-width: none; }
  .topbar nav::-webkit-scrollbar { display: none; }
  .topbar nav a { font-size: .74rem; padding: 5px 0; }
  .nav-cta { display: none; }
  .brand { min-height: 42px; font-size: 1rem; }
  .brand-mark { width: 32px; height: 24px; }
  .brand-mark img { width: 32px; height: 19px; }
  .topbar.menu-ready { position: relative; z-index: 1000; }
  .menu-ready .menu-toggle { display: grid; grid-column: 2; grid-row: 1; place-items: center; align-self: center; width: 32px; height: 32px; padding: 0; border: 1px solid #e4e6e5; border-radius: 10px; background: #fff; color: #111315; cursor: pointer; }
  .menu-toggle-lines, .menu-toggle-lines::before, .menu-toggle-lines::after { display: block; width: 16px; height: 2px; border-radius: 2px; background: currentColor; }
  .menu-toggle-lines { position: relative; }
  .menu-toggle-lines::before, .menu-toggle-lines::after { content: ""; position: absolute; left: 0; }
  .menu-toggle-lines::before { top: -5px; }
  .menu-toggle-lines::after { top: 5px; }
  .menu-ready::after { content: ""; position: fixed; inset: 50px 0 0; z-index: 1; background: rgba(8, 10, 11, .42); opacity: 0; visibility: hidden; transition: opacity .18s ease, visibility .18s ease; }
  .menu-ready.menu-open::after { opacity: 1; visibility: visible; }
  .menu-ready .topbar-inner > nav { display: flex; position: fixed; top: 50px; right: 0; z-index: 2; flex-direction: column; align-items: stretch; width: min(280px, 82vw); height: calc(100dvh - 50px); gap: 0; padding: 12px 18px; border-top: 1px solid #ffffff17; background: #111315; box-shadow: -18px 0 38px rgba(0, 0, 0, .2); overflow-y: auto; transform: translateX(100%); visibility: hidden; transition: transform .2s ease, visibility .2s ease; }
  .menu-ready.menu-open .topbar-inner > nav { transform: translateX(0); visibility: visible; }
  .menu-ready .topbar-inner > nav a { padding: 10px 2px; border-bottom: 1px solid #ffffff12; font-size: .82rem; }
  .menu-ready .topbar-inner > nav a[aria-current="page"] { box-shadow: none; color: #fff; }
  body.menu-visible { overflow: hidden; }
  main.shell { padding-top: 18px; padding-bottom: 30px; }
  main.shell > h1 { font-size: 1.9rem; margin: 2px 0 7px; }
  .stats-intro { margin: 0 0 10px; font-size: .78rem; line-height: 1.4; }
  main.shell .section-head { margin-top: 24px; margin-bottom: 11px; }
  main.shell .section-head h2 { font-size: 1.35rem; }
  .agency-intro { font-size: .84rem; line-height: 1.45; }
  .agency-overview { margin-top: 22px; }
  .agency-section-head p { font-size: .79rem; line-height: 1.4; }
  .agency-summary { grid-template-columns: 1fr; gap: 15px; padding: 16px; border-radius: 11px; }
  .agency-summary-total { grid-template-columns: auto minmax(0, 1fr); align-items: end; column-gap: 8px; }
  .agency-summary-kicker { grid-column: 1 / -1; font-size: .62rem; }
  .agency-summary-value { font-size: 2rem; }
  .agency-summary-label { margin: 0 0 2px; font-size: .76rem; }
  .agency-share-bar { height: 9px; }
  .agency-share-legend { grid-template-columns: 1fr; gap: 6px; margin-top: 10px; }
  .agency-share-item { grid-template-columns: 8px minmax(0, 1fr) auto auto; gap: 5px; }
  .agency-share-dot { grid-row: auto; }
  .agency-share-name { font-size: .72rem; }
  .agency-share-number { font-size: .76rem; }
  .agency-share-percent { font-size: .65rem; }
  .agency-metrics .metric { min-height: 64px; padding: 9px 10px; }
  .agency-metrics .metric-label { font-size: .65rem; }
  .preview-band { padding: 0 0 19px; }
  .product-preview { border-radius: 11px; box-shadow: 0 12px 32px rgba(15, 24, 30, .07); }
  .preview-main { padding: 0 10px 10px; }
  .metric-strip { gap: 6px; }
  .metric { padding: 7px 8px; border-radius: 9px; gap: 4px; }
  .metric.help-target { padding-right: 20px; }
  .metric .help-hint { top: 5px; right: 5px; width: 13px; height: 13px; font-size: 9px; }
  .metric-value { font-size: clamp(.86rem, 3.55vw, 1rem); }
  .metric:nth-child(3) .metric-value { font-size: clamp(.8rem, 3.3vw, .92rem); }
  .metric-label { font-size: .59rem; }
  .data-hero-inner { min-height: 0; padding-top: 13px; padding-bottom: 12px; }
  .scrape-stage { display: block; min-height: 0; }
  .scrape-stage::after { display: none; }
  .stage-matrix { inset: -58px 0 -62px; grid-template-columns: repeat(8, minmax(0, 1fr)); opacity: .4; }
  .stage-matrix span:nth-child(n + 9) { display: none; }
  .stage-matrix span { font-size: .4rem; }
  .data-hero-copy h1 { margin-bottom: 3px; font-size: 1.22rem; line-height: 1.02; letter-spacing: -.02em; }
  .data-hero-copy p { max-width: none; font-size: .67rem; line-height: 1.15; }
  .scrape-pipeline { grid-template-columns: 54px minmax(0, 1fr) 54px; gap: 6px; margin-top: 10px; }
  .pipeline-source { gap: 2px; }
  .pipeline-source span { padding: 2px 4px; font-size: .4rem; }
  .pipeline-source span:nth-child(3) { display: none; }
  .pipeline-track { grid-template-columns: repeat(3, minmax(30px, 1fr)); gap: 4px; }
  .pipeline-node { gap: 3px; }
  .pipeline-node b { width: 28px; height: 28px; font-size: .54rem; }
  .pipeline-node small { font-size: .38rem; }
  .pipeline-line, .data-packet { top: 14px; }
  .data-packet { width: 4px; height: 4px; margin-top: -2px; box-shadow: 0 0 0 2px rgba(255,138,0,.1), 0 0 7px rgba(255,138,0,.5); }
  .pipeline-result { gap: 3px; padding: 0; border: 0; border-radius: 0; background: transparent; }
  .pipeline-result > span { font-size: .38rem; }
  .result-bars { width: 38px; height: 28px; gap: 2px; padding: 5px 6px 3px; }
  .result-bars i { width: 5px; }
  .preview-section-head { margin: 15px 0 8px; }
  .preview-section-head h2 { font-size: 1.08rem; line-height: 1.2; letter-spacing: -.015em; }
  body[data-page="inicio"] .metric-strip { grid-template-columns: minmax(105px, .8fr) minmax(0, 1.35fr); grid-template-rows: repeat(3, minmax(34px, auto)); gap: 0; margin-top: 9px; overflow: hidden; border: 1px solid #dfe2e0; border-radius: 10px; background: #fff; }
  body[data-page="inicio"] .metric { min-height: 34px; padding: 6px 9px; border: 0; border-radius: 0; background: transparent; transform: none; box-shadow: none; }
  body[data-page="inicio"] .metric:hover { border-color: transparent; transform: none; box-shadow: none; }
  body[data-page="inicio"] .metric:first-child { grid-column: 1; grid-row: 1 / 4; flex-direction: column; align-items: flex-start; justify-content: center; gap: 1px; border-right: 1px solid #e3e6e4; }
  body[data-page="inicio"] .metric:nth-child(n + 2) { display: grid; grid-column: 2; grid-template-columns: max-content minmax(0, 1fr); align-items: baseline; gap: 7px; border-bottom: 1px solid #e3e6e4; }
  body[data-page="inicio"] .metric:nth-child(2) { grid-row: 1; }
  body[data-page="inicio"] .metric:nth-child(3) { grid-row: 2; }
  body[data-page="inicio"] .metric:nth-child(4) { grid-row: 3; border-bottom: 0; }
  body[data-page="inicio"] .metric .help-hint { display: none; }
  body[data-page="inicio"] .metric.help-target { padding-right: 9px; }
  body[data-page="inicio"] .metric-value { font-size: 1rem; line-height: 1; }
  body[data-page="inicio"] .metric:first-child .metric-value { font-size: 1.82rem; }
  body[data-page="inicio"] .metric:first-child .metric-label { font-size: .74rem; }
  body[data-page="inicio"] .metric:nth-child(3) .metric-value { font-size: .86rem; }
  body[data-page="inicio"] .metric-label { overflow: hidden; font-size: .64rem; line-height: 1.1; text-overflow: ellipsis; }
  .split, .context-card { grid-template-columns: 1fr; }
  .preview-panels, .catalog, .panel-grid, body[data-page="estadisticas"] .split,
  body[data-page="estadisticas"] .ranking-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .preview-panels { gap: 6px; margin-top: 6px; }
  .preview-panels .paper { padding: 9px; }
  .preview-panels .paper h3 { min-height: 2.2em; margin-bottom: 7px; font-size: .76rem; }
  .preview-panels .bars li, body[data-page="estadisticas"] .bars li { grid-template-columns: minmax(0, 1fr) 25px; gap: 3px 5px; padding: 4px 0; font-size: .68rem; }
  .preview-panels .bar-track, body[data-page="estadisticas"] .bar-track { grid-column: 1 / -1; grid-row: 2; height: 4px; }
  .preview-panels .bar-count, body[data-page="estadisticas"] .bar-count { grid-column: 2; grid-row: 1; }
  body[data-page="estadisticas"] .paper { padding: 9px; }
  body[data-page="estadisticas"] .paper h3 { min-height: 2.2em; margin-bottom: 7px; font-size: .76rem; line-height: 1.25; }
  body[data-page="estadisticas"] .ranking-grid { gap: 6px; }
  body[data-page="estadisticas"] .ranking-item { grid-template-columns: 20px minmax(0, 1fr); gap: 2px 5px; min-height: 38px; padding: 3px 0; font-size: .7rem; }
  body[data-page="estadisticas"] .ranking-item::before { grid-row: 1 / 3; width: 18px; height: 18px; border-radius: 5px; font-size: .62rem; }
  body[data-page="estadisticas"] .ranking-value { grid-column: 2; font-size: .68rem; }
  .detail-layout { grid-template-columns: 1fr; }
  .section-head { display: block; }
  .section-head p { margin-top: 15px; }
  .ranking-heading > div { display: block; }
  .explore-section { padding-top: 0; padding-bottom: 16px; }
  .explore-section .section-head { margin-bottom: 8px; }
  .explore-section .section-head h2 { font-size: 1.08rem; line-height: 1.2; letter-spacing: -.015em; }
  .panel-grid { gap: 7px; }
  .panel { min-height: 118px; padding: 11px; border-radius: 11px; }
  .panel:last-child { grid-column: 1 / -1; min-height: 94px; }
  .panel h3 { font-size: 1rem; }
  .panel p { font-size: .75rem; line-height: 1.35; margin-bottom: 8px; }
  .panel-link { font-size: .74rem; }
  .context-card { gap: 20px; }
  .toolbar label { flex: 1; min-width: 125px; }
  .toolbar input[type="search"] { width: 100%; }
  .toolbar .count { width: 100%; margin-left: 0; }
  .toolbar { gap: 7px; padding: 9px; margin: 12px 0 10px; }
  .toolbar input, .toolbar select { min-height: 33px; min-width: 0; width: 100%; font-size: .72rem; }
  .catalog { gap: 7px; }
  .vehicle { border-radius: 9px; }
  .vehicle-content { padding: 8px; }
  .vehicle h3 { display: -webkit-box; min-height: 2.4em; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: .8rem; line-height: 1.2; }
  .vehicle-version { display: -webkit-box; min-height: 2.45em; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: .64rem; line-height: 1.22; }
  .vehicle-price { margin: 5px 0 6px; font-size: .96rem; }
  .vehicle-meta, .vehicle-seller { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: .64rem; line-height: 1.28; }
  .vehicle-meta { padding-top: 6px; }
  .vehicle-seller { padding-top: 7px; }
  .vehicle-actions { gap: 5px; margin-top: 8px; font-size: .68rem; }
  .vehicle-price .help-hint { width: 12px; height: 12px; font-size: 8px; }
  .pagination { gap: 6px; margin-top: 15px; }
  .page-button { min-height: 33px; padding: 5px 8px; font-size: .72rem; }
  .page-current { gap: 4px; font-size: .7rem; }
  .page-current select { min-height: 33px; padding: 4px 20px 4px 6px; font-size: .72rem; }
  .agency-filter { flex-wrap: wrap; }
  .agency-filter label { width: 100%; }
  .agency-filter input { flex: 1; min-width: 140px; }
  .agency-table-wrap { border: 0; overflow: visible; }
  .agency-table, .agency-table tbody { display: block; width: 100%; }
  .agency-table thead { display: none; }
  .agency-table tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 10px; width: 100%; border: 1px solid var(--line); border-radius: 9px; margin-bottom: 7px; padding: 7px 9px; }
  .agency-table td, .agency-table td:first-child, .agency-table td:last-child { display: block; padding: 4px 0; min-width: 0; max-width: none; border: 0; font-size: .72rem; overflow-wrap: anywhere; }
  .agency-table td::before { content: attr(data-label); display: block; margin-bottom: 1px; color: #858b8d; font-size: .61rem; font-weight: 550; }
  .agency-table td:first-child { grid-column: 1 / -1; border-bottom: 1px solid #eef0f0; font-size: .8rem; font-weight: 680; }
  .agency-table td:nth-child(5), .agency-table td:nth-child(6) { grid-column: 1 / -1; }
  .agency-table td.numeric { text-align: left; white-space: normal; }
  .agency-table td[colspan] { display: block; }
  .agency-table td[colspan]::before { content: none; }
  .bars li { grid-template-columns: minmax(85px, 1.3fr) minmax(65px, 1fr) 32px; }
  .site-footer { padding: 23px 0 25px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 9px; }
  .footer-brand { gap: 10px; }
  .footer-brand img { width: 82px; height: 46px; }
  .footer-brand span { font-size: 1.62rem; }
  .footer-copy { max-width: none; font-size: .7rem; line-height: 1.35; text-align: left; overflow-wrap: anywhere; }
}
@media (prefers-reduced-motion: reduce) {
  .metric, .panel, .panel-link b, .vehicle, .bar-fill { transition: none; }
  .metric:hover, .panel:hover, .panel:hover .panel-link b, .vehicle:hover { transform: none; }
  .stage-matrix span, .pipeline-line, .pipeline-source span, .pipeline-node b, .data-packet, .result-bars i { animation: none; }
}
