@import url("base.css");
/* Páginas SEO de listados */
:root {
  --bg: #f8fafc; --card: #fff; --text: #0f172a; --muted: #64748b;
  --brand: #059669; --brand-dark: #047857; --border: #e2e8f0; --blue: #2563eb;
}
* { box-sizing: border-box; }
body {
  margin: 0; font-family: Inter, system-ui, sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.5;
}
a { color: var(--brand-dark); }
.wrap { max-width: 880px; margin: 0 auto; padding: 0 16px 48px; }
.topbar {
  background: #fff; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 20;
}
.topbar-inner {
  max-width: 880px; margin: 0 auto; padding: 10px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.topbar img { width: 40px; height: 40px; border-radius: 10px; }
.topbar .logo { display: flex; align-items: center; gap: 8px; font-weight: 800; color: var(--text); text-decoration: none; }
.topbar nav a { margin-left: 12px; font-size: 14px; color: var(--muted); text-decoration: none; font-weight: 500; }
.topbar nav a:hover { color: var(--brand-dark); }

.hero { padding: 28px 0 8px; }
.hero h1 { font-size: clamp(1.4rem, 4vw, 1.9rem); margin: 0 0 8px; letter-spacing: -0.02em; }
.hero p { margin: 0; color: var(--muted); font-size: 15px; }
.meta { font-size: 12px; color: var(--muted); margin: 12px 0 20px; }

.fuels { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.fuels button {
  border: 1px solid var(--border); background: #fff; border-radius: 999px;
  padding: 8px 14px; font-weight: 600; font-size: 13px; cursor: pointer;
}
.fuels button.active { background: var(--brand-dark); color: #fff; border-color: var(--brand-dark); }

.ll-list { list-style: none; margin: 0; padding: 0; }
.ll-item {
  display: flex; flex-direction: column; gap: 8px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; padding: 14px; margin-bottom: 12px;
  transition: box-shadow .2s, border-color .2s;
}
.ll-item:hover { box-shadow: 0 6px 20px rgba(15,23,42,0.06); border-color: #86efac; }
.ll-item.ll-best { border-color: #6ee7b7; box-shadow: 0 4px 16px rgba(5,150,105,0.12); background: linear-gradient(180deg, #ecfdf5, #fff); }
.ll-top { display: flex; gap: 10px; align-items: flex-start; }
.ll-rank {
  width: 28px; height: 28px; border-radius: 8px; background: #ecfdf5; color: var(--brand-dark);
  font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.ll-best .ll-rank { background: var(--brand-dark); color: #fff; }
.ll-brand {
  width: 24px; height: 24px; border-radius: 6px; object-fit: contain;
  background: #fff; border: 1px solid var(--border); flex-shrink: 0; margin-top: 2px;
}
.ll-brand-init {
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 12px; font-weight: 800; border: none;
}
.ll-meta { flex: 1; min-width: 0; }
.ll-meta strong { display: block; font-size: 15px; }
.ll-meta span { display: block; font-size: 12px; color: var(--muted); }
.ll-price { text-align: right; flex-shrink: 0; }
.ll-price strong { display: block; font-size: 1.15rem; color: var(--brand-dark); font-variant-numeric: tabular-nums; }
.ll-price em { font-style: normal; font-size: 11px; color: var(--muted); }
.ll-bar { height: 5px; border-radius: 99px; background: #e2e8f0; overflow: hidden; }
.ll-bar span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #10b981, #34d399); }
.ll-fuels {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(56px, 1fr)); gap: 6px;
  padding-top: 4px;
}
.ll-fuel {
  display: flex; flex-direction: column; align-items: center;
  padding: 6px 4px; border-radius: 10px; background: #f1f5f9;
  font-variant-numeric: tabular-nums;
}
.ll-fuel em { font-style: normal; font-size: 10px; color: var(--muted); font-weight: 600; }
.ll-fuel strong { font-size: 12px; font-weight: 800; color: var(--text); }
.ll-fuel.ll-fuel-hi { background: #d1fae5; }
.ll-fuel.ll-fuel-hi strong { color: var(--brand-dark); }
.ll-fuel.empty strong { color: var(--muted); font-weight: 500; }
.ll-loading, .ll-empty { color: var(--muted); padding: 24px 0; }

/* Publicidad oculta por ahora */
.ad-slot { display: none !important; }

.grid-links {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; margin: 16px 0 32px;
}
.grid-links a {
  display: block; padding: 10px 12px; background: #fff; border: 1px solid var(--border);
  border-radius: 10px; text-decoration: none; color: var(--text); font-size: 13px; font-weight: 600;
}
.grid-links a:hover { border-color: var(--brand-dark); color: var(--brand-dark); }

.footer {
  border-top: 1px solid var(--border); margin-top: 40px; padding: 24px 16px;
  font-size: 13px; color: var(--muted); text-align: center;
}
.footer a { color: var(--muted); margin: 0 8px; }

.note {
  background: #ecfdf5; border: 1px solid #a7f3d0; border-radius: 12px;
  padding: 12px 14px; font-size: 13px; color: #065f46; margin: 16px 0;
}

.seo-copy { margin: 48px 0 28px; padding-top: 32px; border-top: 1px solid #e2e8f0; font-size: 15px; color: #334155; }
.seo-copy h2 { font-size: 1.15rem; color: #0f172a; margin: 1.4em 0 0.5em; }
.seo-copy p { margin: 0.6em 0; line-height: 1.65; }
.seo-copy ul { margin: 0.5em 0 1em 1.2em; padding: 0; }
.seo-copy li { margin: 0.35em 0; line-height: 1.5; }
.seo-links { font-size: 14px; color: #64748b; margin-top: 24px; }

/* Comparador de marcas (marcas.html) */
.brand-select-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 4px 0 20px; align-items: center; }
.brand-select-row select {
  border: 1px solid var(--border); border-radius: 10px; padding: 9px 12px;
  font: inherit; background: #fff; min-width: 220px;
}
.brand-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.brand-row {
  display: flex; align-items: center; gap: 12px; background: var(--card);
  border: 1px solid var(--border); border-radius: 12px; padding: 10px 14px;
}
.brand-row .brand-rank { width: 22px; text-align: center; font-weight: 800; color: var(--muted); font-size: 13px; }
.brand-row .brand-logo { width: 28px; height: 28px; border-radius: 8px; object-fit: contain; flex-shrink: 0; }
.brand-row .brand-initial {
  width: 28px; height: 28px; border-radius: 8px; color: #fff; font-weight: 800;
  display: flex; align-items: center; justify-content: center; font-size: 12px; flex-shrink: 0;
}
.brand-row .brand-name { flex: 1; font-weight: 700; font-size: 14px; }
.brand-row .brand-stats { text-align: right; font-size: 12px; color: var(--muted); }
.brand-row .brand-avg { font-size: 15px; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }
.brand-row.best { border-color: var(--brand); background: #f0fdf9; }

.nearby-provinces { font-size: 13px; color: var(--muted); margin-top: 10px; }
.nearby-provinces a { font-weight: 600; }
