/* Carrazo – estilos de la portada mensual. CSS escrito a mano, sin framework. */

:root {
  --bg: #F6F5F1;
  --card: #FFFFFF;
  --line: #DDDAD0;
  --line-soft: #ECE9E0;
  --ink: #16191D;
  --ink-2: #3B4047;
  --mute: #5A5F66;
  --blue: #12355B;
  --amber: #E8A317;
  --mid: #5B7C99;
  --mint: #9ED3C4;
  --track: #EDEBE4;
  --note: #FBF3DF;
  --on-blue: #D7E0EA;
  --head: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "Figtree", system-ui, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}
h1, h2, h3, h4, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: var(--blue); }
a:hover { color: #0A2240; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.ico { color: var(--blue); flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--blue); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 10; }
.skip:focus { top: 12px; color: #fff; }

/* Estructura */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 860px; margin: 0 auto; padding: 0 24px; }
.sec { padding-top: 72px; }
.eyebrow { font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.sec-title { margin-top: 8px; font-family: var(--head); font-weight: 800; font-size: clamp(28px, 3.6vw, 40px); line-height: 1.1; letter-spacing: -.025em; }
.lead { margin-top: 10px; color: var(--ink-2); max-width: 700px; }
.grid { display: grid; gap: 24px; align-items: start; grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--min, 520px)), 1fr)); margin-top: 32px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 28px; }
.card--tight { padding: 24px 24px 12px; }
.card-title { font-family: var(--head); font-weight: 700; font-size: 22px; line-height: 1.25; }
.card-sub { margin: 4px 0 20px; font-size: 14px; color: var(--mute); }
.footnote { margin-top: 16px; font-size: 14px; color: var(--mute); }
.with-icon { display: flex; align-items: center; gap: 10px; }

/* Cabecera */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 16px; padding-bottom: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--head); font-weight: 800; font-size: 26px; letter-spacing: -.02em; }
.brand:hover { color: var(--ink); }
.nav { display: flex; gap: 6px 22px; flex-wrap: wrap; font-weight: 600; font-size: 15px; }
.nav a { color: var(--ink); text-decoration: none; padding: 8px 0; }
.nav a:hover { color: var(--blue); text-decoration: underline; }
@media (max-width: 760px) {
  .site-header .wrap { flex-direction: column; align-items: flex-start; gap: 8px; }
  .nav { flex-wrap: nowrap; overflow-x: auto; width: 100%; gap: 20px; padding-bottom: 4px; }
  .nav a { white-space: nowrap; }
}

/* Portada */
.hero { padding-top: 56px; }
.meta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.pill { display: inline-flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); }
.meta-note { font-size: 14px; color: var(--mute); }
.hero h1 { margin-top: 20px; max-width: 820px; font-family: var(--head); font-weight: 800; font-size: clamp(34px, 5vw, 56px); line-height: 1.04; letter-spacing: -.03em; }
.hero .lead { font-size: 19px; max-width: 680px; margin-top: 16px; }
.share { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.share-label { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--mute); }
.share-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border: 1.5px solid var(--blue); border-radius: 999px; background: var(--card); color: var(--blue); font-size: 15px; font-weight: 600; text-decoration: none; }
.share-btn:hover { background: var(--blue); color: #fff; }
.total-card { margin-top: 40px; padding: 32px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); }
.total-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.total-label { font-size: 15px; font-weight: 600; color: var(--mute); }
.total-num { font-family: var(--head); font-weight: 800; font-size: clamp(60px, 9vw, 96px); line-height: 1; letter-spacing: -.04em; color: var(--blue); }
.total-note { max-width: 380px; font-size: 15px; color: var(--mute); }
.stack { display: flex; height: 22px; border-radius: 11px; overflow: hidden; gap: 3px; margin-top: 28px; }
.stack > span { display: block; height: 100%; }
.stack--sm { height: 22px; margin-top: 0; }
.legend { margin-top: 20px; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.legend-item { display: flex; gap: 12px; align-items: flex-start; }
.swatch { margin-top: 7px; width: 12px; height: 12px; border-radius: 3px; flex: none; }
.legend-num { font-family: var(--head); font-weight: 700; font-size: 28px; line-height: 1.1; }
.legend-num small { font-size: 16px; font-weight: 500; color: var(--mute); }
.legend-label { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--ink-2); }
.facts-title { margin-top: 36px; font-family: var(--head); font-weight: 700; font-size: 22px; }
.facts { margin-top: 14px; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.fact { display: block; text-decoration: none; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.fact:hover { border-color: var(--blue); color: var(--ink); }
.fact-k { font-size: 14px; font-weight: 600; color: var(--mute); }
.fact-v { margin-top: 6px; font-family: var(--head); font-weight: 800; font-size: 24px; line-height: 1.15; color: var(--blue); }
.fact-s { margin-top: 4px; font-size: 15px; color: var(--ink-2); }

/* Publicidad: ocultos hasta activar los anuncios (quitar el atributo hidden) */
.ad-slot { margin: 72px auto 0; max-width: 1200px; padding: 0 24px; }
.ad-slot--top { margin-top: 32px; min-height: 100px; }
.ad-slot--block { min-height: 280px; }
.ad-slot[hidden] { display: none; }
.ad-label { display: block; margin-bottom: 6px; text-align: center; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }

/* Barras de ranking */
.bars { display: flex; flex-direction: column; gap: 12px; }
.bar-row { display: grid; gap: 12px; align-items: center; grid-template-columns: var(--cols, minmax(84px, 132px) minmax(0, 1fr) 56px); }
.bar-row--rank { --cols: minmax(110px, 150px) minmax(0, 1fr) 56px; }
.bar-row--type { --cols: minmax(120px, 164px) minmax(0, 1fr) 112px; }
.bar-row--price { --cols: minmax(120px, 164px) minmax(0, 1fr) 96px; }
.bar-row--color { --cols: minmax(110px, 150px) minmax(0, 1fr) 56px; }
.bar-row--cc { --cols: minmax(100px, 140px) minmax(0, 1fr) 124px; }
.bar-name { font-weight: 600; display: flex; align-items: center; gap: 8px; }
.bar-rank { color: var(--mute); font-weight: 500; display: inline-block; width: 22px; }
.track { display: block; height: 16px; background: var(--track); border-radius: 8px; }
.track--lg { height: 20px; border-radius: 10px; }
.fill { display: block; height: 100%; border-radius: inherit; background: var(--blue); }
.fill--lead { background: var(--amber); }
.bar-val { text-align: right; font-weight: 600; }
.bar-val small { font-weight: 500; color: var(--mute); font-size: inherit; }
.dot { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1px solid #B9B5A8; }

/* Listas de versiones */
.models li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line-soft); }
.models .rank { width: 18px; color: var(--mute); font-weight: 500; flex: none; }
.models .info { flex: 1 1 auto; min-width: 0; }
.models .name { font-weight: 700; line-height: 1.3; }
.models .sub { font-size: 14px; color: var(--mute); }
.models .price { font-family: var(--head); font-weight: 700; font-size: 19px; color: var(--blue); }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.card-head .count { font-size: 14px; color: var(--mute); }
.h3-big { margin: 48px 0 0; font-family: var(--head); font-weight: 700; font-size: 26px; letter-spacing: -.02em; }

/* Combustible */
.fuel-legend { margin-top: 20px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.fuel-legend .legend-num { font-size: 26px; }

/* Mes a mes */
.chart-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 12px; }
.delta { text-align: right; }
.delta strong { display: block; font-family: var(--head); font-weight: 800; font-size: 26px; line-height: 1.1; color: var(--blue); }
.delta span { font-size: 13px; color: var(--mute); }
.chart-scroll { overflow-x: auto; margin-top: 20px; }
.cols { min-width: 440px; display: flex; align-items: flex-end; gap: 8px; height: 250px; padding-top: 20px; }
.col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.col-v { font-size: 12px; font-weight: 600; color: var(--ink-2); margin-bottom: 4px; }
.col-bar { width: 100%; background: var(--blue); border-radius: 6px 6px 0 0; }
.col-bar--prelim { background: repeating-linear-gradient(135deg, #12355B 0 5px, #9FB0C4 5px 10px); }
.col-m { margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--mute); }

/* Precios */
.price-list { display: flex; flex-direction: column; gap: 24px; }
.price-note { margin-top: 6px; font-size: 15px; color: var(--ink-2); }
.price-val { text-align: right; font-family: var(--head); font-weight: 800; font-size: 24px; color: var(--blue); }
.moto-price { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line-soft); }
.moto-price-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin-top: 6px; }
.moto-price-num { font-family: var(--head); font-weight: 800; font-size: 32px; color: var(--blue); }
.warn { margin-top: 28px; padding: 16px 18px; background: var(--note); border-radius: 12px; font-size: 15px; color: var(--ink-2); }

/* Presupuesto y eléctricos */
.budget-k { font-size: 14px; font-weight: 600; color: var(--mute); }
.budget-range { margin-top: 2px; font-family: var(--head); font-weight: 800; font-size: 30px; line-height: 1.1; letter-spacing: -.02em; color: var(--blue); }
.budget-share { margin-top: 8px; font-size: 15px; color: var(--ink-2); }
.mini-track { margin-top: 14px; height: 10px; background: var(--track); border-radius: 5px; }
.mini-track .fill { border-radius: 5px; }
.budget-note { margin-top: 14px; padding: 12px 14px; background: var(--bg); border-radius: 12px; font-size: 15px; color: var(--ink-2); }
.budget .models { margin-top: 12px; }
.big-num { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-top: 12px; }
.big-num strong { font-family: var(--head); font-weight: 800; font-size: 56px; line-height: 1; letter-spacing: -.03em; color: var(--blue); }
.big-num span { font-size: 15px; color: var(--ink-2); }
.stats2 { margin-top: 20px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 16px; background: var(--bg); border-radius: 14px; }
.stats2 .k { font-size: 13px; color: var(--mute); }
.stats2 .v { font-family: var(--head); font-weight: 800; font-size: 26px; color: var(--blue); }
.stats2 .v--sm { font-family: var(--body); font-weight: 700; font-size: 16px; line-height: 1.3; color: var(--ink); }
.fact-text { margin: 14px 0 0; font-size: 15px; color: var(--ink-2); }

/* Compradores */
.legend-inline { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; color: var(--ink-2); }
.legend-inline span { display: inline-flex; align-items: center; gap: 8px; }
.legend-inline i { width: 12px; height: 12px; border-radius: 3px; display: block; }
.buyers { margin-top: 24px; display: grid; gap: 28px 40px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.buyers .stack { margin-top: 10px; height: 18px; border-radius: 9px; gap: 2px; }
.buyers p { margin-top: 8px; font-size: 15px; color: var(--ink-2); }
.buyers .ttl { font-weight: 700; display: flex; align-items: center; gap: 10px; }

/* Conclusiones */
.insights { margin-top: 32px; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.insight { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 24px; }
.insight .big { font-family: var(--head); font-weight: 800; font-size: 40px; line-height: 1; letter-spacing: -.03em; color: var(--blue); }
.insight h3 { margin: 12px 0 6px; font-family: var(--head); font-weight: 700; font-size: 19px; line-height: 1.25; }
.insight p { font-size: 15px; color: var(--ink-2); }

/* Preguntas */
.faq { margin-top: 28px; display: flex; flex-direction: column; gap: 12px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; font-family: var(--head); font-weight: 700; font-size: 19px; line-height: 1.3; list-style: none; cursor: pointer; border-radius: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex: none; transition: transform .15s; }
.faq details[open] summary svg { transform: rotate(180deg); }
.faq details > p { padding: 0 22px 20px; color: var(--ink-2); }

/* Compartir (cierre) */
.share-band { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 24px 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 56px; }
.share-band strong { display: block; font-family: var(--head); font-weight: 700; font-size: 20px; }
.share-band span { font-size: 15px; color: var(--ink-2); }
.share-band .btns { display: flex; flex-wrap: wrap; gap: 10px; }

/* Glosario */
.glossary { margin-top: 28px; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.glossary div { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.glossary dt { font-family: var(--head); font-weight: 700; font-size: 19px; }
.glossary dd { margin-top: 6px; color: var(--ink-2); }

/* Fuentes */
.sources { background: var(--blue); color: var(--bg); border-radius: 24px; padding: 40px 32px; }
.sources h2 { font-family: var(--head); font-weight: 800; font-size: 30px; letter-spacing: -.02em; }
.sources p, .sources li { color: var(--on-blue); }
.sources .src { margin-top: 28px; border-top: 2px solid var(--amber); padding-top: 14px; max-width: 720px; }
.sources .src strong { display: block; font-size: 18px; color: var(--bg); }
.sources .src p { margin-top: 6px; font-size: 15px; }
.sources h3 { margin-top: 32px; font-family: var(--head); font-weight: 700; font-size: 20px; }
.sources ul { margin-top: 12px; padding-left: 20px; list-style: disc; display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.sources .prelim { margin-top: 28px; font-size: 14px; }
.sources a { color: #fff; }

/* Pie */
.site-footer { margin-top: 72px; border-top: 1px solid var(--line); }
.site-footer .wrap { padding-top: 24px; padding-bottom: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--mute); }

@media (max-width: 560px) {
  .sec { padding-top: 56px; }
  .card { padding: 22px; }
  .total-card { padding: 22px; }
  .bar-row, .bar-row--rank, .bar-row--type, .bar-row--price, .bar-row--color, .bar-row--cc { gap: 8px; }
  .bar-row { --cols: minmax(96px, 120px) minmax(0, 1fr) 48px; }
  .bar-row--rank { --cols: minmax(110px, 130px) minmax(0, 1fr) 48px; }
  .bar-row--type { --cols: minmax(110px, 130px) minmax(0, 1fr) 90px; }
  .bar-row--price { --cols: minmax(110px, 130px) minmax(0, 1fr) 80px; }
  .bar-row--color { --cols: minmax(96px, 120px) minmax(0, 1fr) 48px; }
  .bar-row--cc { --cols: minmax(90px, 110px) minmax(0, 1fr) 100px; }
  .bar-row--type, .bar-row--cc { grid-template-columns: minmax(0, 1fr) auto; row-gap: 6px; }
  .bar-row--type .bar-name, .bar-row--cc .bar-name { grid-column: 1 / -1; }
  .bar-row--type .track, .bar-row--cc .track { grid-column: 1; }
  .bar-row--type .bar-val, .bar-row--cc .bar-val { grid-column: 2; white-space: nowrap; }
  .price-val { font-size: 20px; }
  .sources { padding: 28px 22px; }
}

/* Páginas de texto (privacidad, quiénes somos, contacto) */
.prose { max-width: 760px; margin: 0 auto; padding: 56px 24px 0; }
.prose h1 { font-family: var(--head); font-weight: 800; font-size: clamp(32px, 4.5vw, 46px); line-height: 1.08; letter-spacing: -.03em; }
.prose .updated { margin-top: 10px; font-size: 14px; color: var(--mute); }
.prose h2 { margin-top: 40px; font-family: var(--head); font-weight: 700; font-size: 24px; letter-spacing: -.02em; }
.prose p, .prose li { margin-top: 12px; color: var(--ink-2); font-size: 17px; }
.prose ul { margin-top: 8px; padding-left: 22px; list-style: disc; }
.prose li { margin-top: 6px; }
.prose a { color: var(--blue); }
.prose .callout { margin-top: 28px; padding: 18px 20px; background: var(--note); border-radius: 12px; font-size: 16px; color: var(--ink-2); }
.prose .mail { display: inline-block; margin-top: 14px; padding: 12px 20px; border: 1.5px solid var(--blue); border-radius: 999px; background: var(--card); font-weight: 700; text-decoration: none; }
.prose .mail:hover { background: var(--blue); color: #fff; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer-links a { color: var(--mute); }
.footer-links a:hover { color: var(--blue); }
