@import url("base.css");
/* CombustibleBarato — CSS propio (sin Tailwind CDN) */
:root {
  --bg: #f1f5f9;
  --bg-card: #ffffff;
  --bg-soft: #e2e8f0;
  --bg-header: rgba(255,255,255,0.92);
  --text: #0f172a;
  --text-muted: #64748b;
  --text-soft: #5b6b7d; /* antes #94a3b8 (2.56:1, fallaba WCAG AA); ahora 5.46:1 */
  --brand: #059669;
  --brand-soft: #d1fae5;
  --brand-dark: #047857;
  --amber: #b45309; /* antes #d97706 (3.19:1 como texto, fallaba AA); ahora 5.02:1 */
  --red: #dc2626;
  --blue: #2563eb;
  --blue-soft: #dbeafe;
  --border: #cbd5e1;
  --shadow: 0 4px 20px rgba(15,23,42,0.08);
  --radius: 12px;
  --header-h: 64px;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
}
a { color: inherit; text-decoration: none; }
button, select, input { font: inherit; }
img { max-width: 100%; height: auto; display: block; }

/* Layout */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--header-h);
  background: var(--bg-header);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1600px; margin: 0 auto; height: 100%;
  padding: 0 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.brand, a.brand { display: flex; align-items: center; gap: 10px; min-width: 0; text-decoration: none; color: inherit; cursor: pointer; }
.brand img {
  width: 48px; height: 48px; border-radius: 12px; object-fit: cover;
  box-shadow: 0 2px 10px rgba(5,150,105,0.25);
  border: 2px solid var(--brand-soft); flex-shrink: 0;
}
.brand h1 { font-size: 1.05rem; font-weight: 800; margin: 0; line-height: 1.15; letter-spacing: -0.02em; white-space: nowrap; }
.brand h1 span.accent { color: var(--brand-dark); }
.brand h1 span.dot { color: var(--text-muted); font-weight: 500; font-size: 0.75em; }
.brand p, .brand .slogan {
  margin: 2px 0 0; font-size: 10px; color: var(--brand-dark); font-weight: 600;
  line-height: 1.25; max-width: 220px;
}
.brand .slogan { letter-spacing: -0.01em; }
.nav { display: flex; align-items: center; gap: 6px; flex-shrink: 0; flex-wrap: wrap; justify-content: flex-end; }
.nav-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 10px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--bg-card); color: var(--text); font-size: 13px; font-weight: 500;
  cursor: pointer; transition: background .15s, border-color .15s, transform .15s;
  min-height: 40px;
}
.nav-btn:hover { background: var(--bg-soft); }
.nav-btn.primary {
  background: var(--brand-soft); color: var(--brand-dark);
  border-color: #6ee7b7; font-weight: 600;
}
.nav-btn.primary:hover { background: #a7f3d0; }
.nav-btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.nav-label { display: none; }
@media (min-width: 640px) { .nav-label { display: inline; } }
.badge {
  position: absolute; top: -4px; right: -4px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--brand); color: #fff; font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.relative { position: relative; }

.layout {
  padding-top: var(--header-h); height: 100vh;
  display: flex; flex-direction: column;
}
@media (min-width: 768px) {
  .layout { flex-direction: row; }
}

.sidebar {
  width: 100%; max-height: 48vh;
  display: flex; flex-direction: column;
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  z-index: 40; order: 2;
  box-shadow: var(--shadow);
}
@media (min-width: 768px) {
  .sidebar { width: 400px; max-width: 42vw; max-height: none; order: 1; }
}
@media (min-width: 1024px) { .sidebar { width: 430px; } }

.main-map {
  flex: 1; position: relative; order: 1; height: 52vh; min-height: 220px;
  background: #dbe4ee;
}
@media (min-width: 768px) {
  .main-map { order: 2; height: auto; }
}
#map { height: 100%; width: 100%; background: #dbe4ee; }
.leaflet-container { background: #dbe4ee !important; font-family: Inter, sans-serif; }

.panel { padding: 12px; border-bottom: 1px solid var(--border); }
.fuels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.fuel-btn {
  padding: 10px 6px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--bg); color: var(--text-muted); font-size: 12px; font-weight: 600;
  cursor: pointer; transition: all .15s; min-height: 44px;
}
.fuel-btn:hover { background: var(--bg-soft); }
.fuel-btn.active {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff; border-color: transparent;
  box-shadow: 0 4px 14px rgba(16,185,129,0.35);
}

.field {
  width: 100%; padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--bg);
  color: var(--text); font-size: 14px; margin-top: 8px;
}
.field:focus { outline: 2px solid rgba(5,150,105,0.35); border-color: var(--brand); }
.search-wrap { position: relative; margin-top: 8px; }
.search-wrap svg {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; color: var(--text-soft); pointer-events: none;
}
.search-wrap .field { padding-left: 36px; margin-top: 0; }
.check {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--text-muted); margin-top: 8px; cursor: pointer;
}

.stats {
  display: none; padding: 12px; background: #f8fafc; border-bottom: 1px solid var(--border);
}
.stats.on { display: block; }
.stats-title {
  font-size: 10px; text-transform: uppercase; letter-spacing: .06em;
  color: var(--text-muted); font-weight: 600; text-align: center; margin: 0 0 8px;
}
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stat-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 12px; padding: 10px; text-align: center;
}
.stat-card span { display: block; font-size: 10px; color: var(--text-muted); }
.stat-card strong { display: block; font-size: 1.1rem; font-weight: 800; margin-top: 2px; }
.stat-card .min { color: var(--brand-dark); }
.stat-card .save { color: var(--amber); }
.stats-foot { font-size: 10px; color: var(--text-soft); text-align: center; margin: 8px 0 0; }

.list { flex: 1; overflow-y: auto; padding: 12px; }
.list::-webkit-scrollbar { width: 5px; }
.list::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }

/* Welcome */
.welcome {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 20px 16px; gap: 8px;
}
.welcome img.hero {
  width: 100%; max-width: 200px; border-radius: 16px;
  border: 1px solid var(--border); box-shadow: var(--shadow);
}
.welcome img.logo {
  width: 91px; height: 91px; border-radius: 18px; margin-top: 4px;
  border: 2px solid var(--brand-soft);
  box-shadow: 0 4px 14px rgba(5,150,105,0.25);
}
.welcome h2 { margin: 8px 0 0; font-size: 1.1rem; font-weight: 800; }
.welcome p { margin: 0; font-size: 14px; color: var(--text-muted); line-height: 1.45; max-width: 280px; }
.welcome-actions { display: flex; flex-direction: column; gap: 8px; width: 100%; max-width: 280px; margin-top: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 16px; border-radius: 12px; border: none; cursor: pointer;
  font-weight: 700; font-size: 14px; min-height: 48px; transition: transform .15s, opacity .15s;
}
.btn:active { transform: scale(0.98); }
.btn-brand { background: linear-gradient(135deg, #04815c, #047857); color: #fff; box-shadow: 0 6px 18px rgba(4,120,87,0.35); }
.btn-ghost { background: var(--bg); color: var(--text); border: 1px solid var(--border); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 12px; }
.chip {
  font-size: 11px; padding: 6px 10px; border-radius: 999px;
  background: var(--bg); border: 1px solid var(--border); color: var(--text-muted);
}

/* Station cards */
.station-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 12px; margin-bottom: 8px;
  cursor: pointer; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.station-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: #86efac; }
.station-card.best-near {
  border: 2px solid var(--blue);
  background: linear-gradient(180deg, #eff6ff, #fff);
  box-shadow: 0 6px 20px rgba(37,99,235,0.18);
}
.station-card .row { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.station-card .meta { min-width: 0; flex: 1; }
.station-card .tags { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin-bottom: 4px; }
.tag {
  font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 6px;
}
.tag-best { background: var(--brand); color: #fff; }
.tag-offer {
  background: var(--blue); color: #fff;
  display: inline-flex; align-items: center; gap: 3px;
}
.tag-24 { background: var(--bg-soft); color: var(--text-muted); }
.station-card h4 { margin: 0; font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.station-card .addr { margin: 2px 0 0; font-size: 12px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.station-card .city { margin: 0; font-size: 12px; color: var(--text-soft); }
.station-card .price-col { text-align: right; flex-shrink: 0; }
.station-card .price { margin: 0; font-size: 1.15rem; font-weight: 800; }
.station-card .price.good { color: var(--brand-dark); }
.station-card .price.offer { color: var(--blue); }
.station-card .diff { margin: 0; font-size: 10px; color: var(--text-soft); }
.station-card .why { margin: 4px 0 0; font-size: 11px; color: var(--brand-dark); font-weight: 500; }
.station-card.in-compare { border-color: #f59e0b; box-shadow: 0 0 0 1px #fbbf24; }
.station-card.anomaly { border-color: #f59e0b; }
.tag-warn { background: #fef3c7; color: #b45309; }
.card-actions {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; padding-top: 8px;
  border-top: 1px solid var(--border);
}
.card-actions .act {
  font-size: 11px; font-weight: 600; padding: 4px 8px; border-radius: 8px;
  border: 1px solid var(--border); background: var(--bg); color: var(--text-muted);
  cursor: pointer; text-decoration: none;
}
.card-actions .act.on { background: var(--brand-soft); color: var(--brand-dark); border-color: #6ee7b7; }
.card-actions .act:hover { background: var(--bg-soft); color: var(--text); }

.compare-bar {
  margin: 0 10px 8px; padding: 10px; border-radius: 12px;
  background: #fffbeb; border: 1px solid #fcd34d;
}
.compare-bar.hidden { display: none; }
.cmp-title { margin: 0 0 6px; font-size: 11px; font-weight: 700; color: #92400e; text-transform: uppercase; }
.cmp-row { display: flex; flex-direction: column; gap: 4px; }
.cmp-item {
  display: flex; align-items: center; gap: 8px; font-size: 12px;
  background: #fff; border-radius: 8px; padding: 6px 8px;
}
.cmp-item strong { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmp-item span { font-weight: 800; color: var(--brand-dark); }
.cmp-item button { border: none; background: transparent; cursor: pointer; font-size: 16px; color: #94a3b8; }
.cmp-tip { margin: 6px 0 0; font-size: 12px; color: #78350f; }
.cmp-hint { margin: 4px 0 0; font-size: 10px; color: #a8a29e; }

/* Logo marca + todos los combustibles */
.brand-logo {
  width: 22px; height: 22px; border-radius: 6px; object-fit: contain;
  background: #fff; border: 1px solid var(--border); flex-shrink: 0;
}
.brand-logo.brand-initial, span.brand-initial {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 6px; color: #fff;
  font-size: 11px; font-weight: 800; border: none;
}
.all-fuels {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px;
  margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border);
}
.fuel-chip {
  display: flex; flex-direction: column; align-items: center;
  padding: 4px 2px; border-radius: 8px; background: var(--bg-soft);
  font-variant-numeric: tabular-nums;
}
.fuel-chip em { font-style: normal; font-size: 9px; color: var(--text-muted); font-weight: 600; }
.fuel-chip strong { font-size: 11px; font-weight: 800; color: var(--text); }
.fuel-chip.hi { background: var(--brand-soft); }
.fuel-chip.hi strong { color: var(--brand-dark); }
.fuel-chip.empty strong { color: var(--text-soft); font-weight: 500; }
.price-bar {
  height: 4px; border-radius: 99px; background: #e2e8f0; margin-top: 8px; overflow: hidden;
}
.price-bar span {
  display: block; height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, #10b981, #34d399);
}

/* Map markers */
.price-marker { background: transparent; border: none; }
.price-bubble {
  display: flex; align-items: center; justify-content: center;
  min-width: 58px; height: 30px; padding: 0 9px; border-radius: 16px;
  font-size: 13px; font-weight: 800; color: #fff;
  border: 2px solid rgba(255,255,255,0.35);
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  white-space: nowrap;
}
.price-cheap { background: linear-gradient(135deg, #10b981, #059669); }
.price-mid { background: linear-gradient(135deg, #f59e0b, #d97706); }
.price-exp { background: linear-gradient(135deg, #ef4444, #dc2626); }
.price-offer {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  min-width: 72px; height: 34px; font-size: 12px;
  box-shadow: 0 4px 16px rgba(37,99,235,0.45);
  border: 2px solid #fff;
}
.price-offer::before { content: "★ "; }

.legend {
  position: absolute; bottom: 16px; left: 16px; z-index: 1000;
  background: rgba(255,255,255,0.95); border: 1px solid var(--border);
  border-radius: 14px; padding: 10px 14px; font-size: 12px;
  box-shadow: var(--shadow); line-height: 1.7;
}
.legend span.dot {
  display: inline-block; width: 12px; height: 12px; border-radius: 50%;
  margin-right: 6px; vertical-align: -1px;
}
.dot-g { background: #10b981; }
.dot-a { background: #f59e0b; }
.dot-r { background: #ef4444; }
.dot-b { background: #2563eb; }

.map-placeholder {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, #e0f2fe, #ecfdf5);
  color: var(--text-muted); text-align: center; padding: 24px; z-index: 5;
}
.map-placeholder strong {
  display: block; color: var(--text); font-size: 1.2rem; margin-bottom: 10px;
  font-weight: 800; letter-spacing: -0.02em; line-height: 1.35; max-width: 28ch;
}
.map-placeholder .map-hint {
  display: block; font-size: 0.9rem; color: var(--text-muted); max-width: 32ch; margin: 0 auto;
  line-height: 1.45;
}

.loading {
  display: none; position: absolute; inset: 0; z-index: 30;
  background: rgba(241,245,249,0.85); align-items: center; justify-content: center;
  flex-direction: column; gap: 12px;
}
.loading.on { display: flex; }
.loader {
  width: 38px; height: 38px; border: 3px solid #cbd5e1;
  border-top-color: var(--brand); border-radius: 50%;
  animation: spin .75s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Modals & toast */
.modal-bg {
  display: none; position: fixed; inset: 0; z-index: 2000;
  align-items: flex-end; justify-content: center; padding: 0;
}
@media (min-width: 640px) {
  .modal-bg { align-items: center; padding: 16px; }
}
.modal-bg.on { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(15,23,42,0.5); backdrop-filter: blur(4px); }
.modal {
  position: relative; width: 100%; max-width: 28rem;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 16px 16px 0 0; box-shadow: 0 20px 50px rgba(0,0,0,0.2);
  overflow: hidden;
}
@media (min-width: 640px) { .modal { border-radius: 16px; } }
.modal-h { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.modal-h h2 { margin: 0; font-size: 1.1rem; }
.modal-b { padding: 16px 20px; }
.icon-btn {
  width: 32px; height: 32px; border-radius: 8px; border: none;
  background: var(--bg); color: var(--text-muted); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.toast {
  display: none; position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  z-index: 3000; padding: 12px 16px; border-radius: 12px;
  background: #1e293b; color: #fff; font-size: 14px; font-weight: 500;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25); max-width: 90vw;
}
.toast.on { display: flex; align-items: center; gap: 8px; }

.cookie {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
  padding: 12px; background: rgba(15,23,42,0.95); color: #e2e8f0;
  border-top: 1px solid #334155;
}
.cookie-inner {
  max-width: 48rem; margin: 0 auto; display: flex; flex-direction: column; gap: 12px;
}
@media (min-width: 640px) { .cookie-inner { flex-direction: row; align-items: center; } }
.cookie a { color: #34d399; text-decoration: underline; }
.cookie .btn-sm {
  padding: 8px 12px; border-radius: 8px; font-size: 12px; font-weight: 600; cursor: pointer; border: 1px solid #475569;
  background: #1e293b; color: #cbd5e1;
}
.cookie .btn-ok { background: #10b981; color: #fff; border: none; }

.hidden { display: none !important; }
.space-y > * + * { margin-top: 8px; }

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

@media (prefers-reduced-motion: reduce) {
  .station-card, .fuel-btn, .nav-btn { transition: none !important; }
}

/* Map pins con inicial de marca */
.map-pin {
  display: flex; align-items: center; gap: 4px;
  padding: 2px 8px 2px 2px; border-radius: 16px;
  color: #fff; font-weight: 800; font-size: 12px;
  border: 2px solid rgba(255,255,255,0.9);
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
  white-space: nowrap;
}
.map-pin-brand {
  width: 20px; height: 20px; border-radius: 50%;
  background: rgba(255,255,255,0.25); display: flex;
  align-items: center; justify-content: center;
  font-size: 10px; font-weight: 800;
}
.map-pin.price-cheap { background: linear-gradient(135deg, #10b981, #059669); }
.map-pin.price-mid { background: linear-gradient(135deg, #f59e0b, #d97706); }
.map-pin.price-exp { background: linear-gradient(135deg, #ef4444, #dc2626); }
.map-pin.price-offer, .map-pin.offer {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  font-size: 11px;
}


/* Podio nacional */
.map-placeholder { overflow-y: auto; align-items: flex-start; padding: 16px; }
.podium-wrap { width: 100%; max-width: 920px; margin: 0 auto; text-align: left; }
.podium-tagline {
  text-align: center; font-size: 1.15rem; font-weight: 800; color: var(--text);
  margin: 8px 0 16px; letter-spacing: -0.02em;
}
.podium-grid {
  display: grid; gap: 12px;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .podium-grid { grid-template-columns: 1fr 1fr; }
}
.podium-col {
  background: #fff; border: 1px solid var(--border); border-radius: 16px;
  padding: 12px; box-shadow: var(--shadow);
}
.podium-col.cheap { border-color: #6ee7b7; }
.podium-col.expensive { border-color: #fca5a5; }
.podium-col h2 { margin: 0 0 10px; font-size: 0.95rem; font-weight: 800; }
.podium-card {
  border: 1px solid var(--border); border-radius: 12px; padding: 10px;
  margin-bottom: 8px; background: #f8fafc;
}
.podium-card.rank-1 { background: linear-gradient(180deg, #ecfdf5, #fff); border-color: #6ee7b7; }
.podium-rank { font-size: 12px; font-weight: 800; margin-bottom: 4px; }
.podium-card h3 { margin: 0; font-size: 14px; font-weight: 700; }
.podium-loc { margin: 2px 0 0; font-size: 12px; color: var(--text-muted); }
.podium-addr { margin: 0; font-size: 11px; color: var(--text-soft); }
.podium-fuels {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 8px;
}
.podium-fuels span {
  display: flex; flex-direction: column; align-items: center;
  background: #fff; border-radius: 8px; padding: 4px; border: 1px solid var(--border);
}
.podium-fuels em { font-style: normal; font-size: 9px; color: var(--text-soft); font-weight: 600; }
.podium-fuels strong { font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums; }
.podium-savings {
  margin-top: 12px; padding: 14px 16px; border-radius: 14px;
  background: linear-gradient(135deg, #ecfdf5, #eff6ff);
  border: 1px solid #a7f3d0; text-align: center;
  font-size: 14px; font-weight: 600; color: var(--text);
}
.podium-savings strong { color: var(--brand-dark); font-size: 1.05em; }
.podium-src { margin: 8px 0 0; font-size: 11px; font-weight: 500; color: var(--text-muted); }
.podium-src a { color: var(--brand-dark); text-decoration: underline; }
.podium-loading { font-size: 13px; color: var(--text-muted); margin: 8px 0; }
.map-hint { text-align: center; margin-top: 12px; font-size: 13px; color: var(--text-muted); }

/* Footer */
.site-footer-bar {
  position: relative; z-index: 40;
  background: #fff; border-top: 1px solid var(--border);
  padding: 16px 16px 20px; font-size: 12px; color: var(--text-muted);
  text-align: center;
}
.site-footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-copy { margin: 0 0 10px; font-weight: 600; color: var(--text); text-align: center; }
.footer-nav {
  display: flex; flex-wrap: wrap; gap: 8px 14px; margin-bottom: 10px;
  justify-content: center; align-items: center;
}
.footer-nav a { color: var(--text-muted); font-weight: 500; }
.footer-nav a:hover { color: var(--brand-dark); }
.footer-contact { margin: 0; line-height: 1.6; text-align: center; }
.footer-contact a { color: var(--brand-dark); }
body { overflow: auto; }
.layout { min-height: calc(100vh - var(--header-h) - 90px); }

/* Ahorros visuales */
.savings-showcase {
  display: grid; gap: 10px; margin-top: 14px;
  grid-template-columns: 1fr;
}
@media (min-width: 560px) {
  .savings-showcase { grid-template-columns: repeat(3, 1fr); }
}
.savings-card {
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  padding: 14px 12px; text-align: center; box-shadow: var(--shadow);
}
.savings-card .sc-icon { font-size: 1.6rem; margin-bottom: 6px; }
.savings-card .sc-val { font-size: 1.35rem; font-weight: 800; color: var(--brand-dark); letter-spacing: -0.02em; }
.savings-card .sc-label { font-size: 11px; color: var(--text-muted); margin-top: 4px; line-height: 1.35; }
.savings-card .sc-bar {
  height: 8px; border-radius: 99px; background: #e2e8f0; margin-top: 10px; overflow: hidden;
}
.savings-card .sc-bar > span {
  display: block; height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, #34d399, #059669);
}
.seo-block {
  margin-top: 16px; padding: 14px; border-radius: 14px;
  background: #f8fafc; border: 1px solid var(--border);
  font-size: 13px; color: var(--text-muted); line-height: 1.55;
}
.seo-block h3 { margin: 0 0 8px; font-size: 14px; color: var(--text); font-weight: 800; }


/* Nav "Más" */
.nav-more { position: relative; }
.nav-more > summary { list-style: none; cursor: pointer; }
.nav-more > summary::-webkit-details-marker { display: none; }
.nav-more-menu {
  position: absolute; right: 0; top: calc(100% + 6px);
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  box-shadow: var(--shadow); min-width: 160px; padding: 6px; z-index: 80;
}
.nav-more-menu a {
  display: block; padding: 10px 12px; border-radius: 8px;
  font-size: 13px; font-weight: 600; color: var(--text);
}
.nav-more-menu a:hover { background: var(--bg-soft); color: var(--brand); }

/* Autocomplete */
.search-suggest {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px);
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  box-shadow: var(--shadow); z-index: 90; max-height: 240px; overflow-y: auto;
}
.search-suggest.hidden { display: none; }
.suggest-item {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  gap: 8px; padding: 10px 12px; border: none; background: transparent;
  cursor: pointer; font: inherit; text-align: left;
}
.suggest-item:hover, .suggest-item:focus { background: #ecfdf5; }
.suggest-item strong { font-size: 13px; color: var(--text); }
.suggest-item span { font-size: 11px; color: var(--text-muted); font-weight: 600; }

.chip-primary {
  background: var(--brand-soft) !important; color: var(--brand-dark) !important;
  border-color: #6ee7b7 !important; font-weight: 700 !important;
}

/* Cookies RGPD — botones iguales de peso visual */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
  background: rgba(15, 23, 42, 0.96); backdrop-filter: blur(12px);
  border-top: 1px solid #334155; padding: 14px 16px;
}
.cookie-inner {
  max-width: 720px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 12px;
}
@media (min-width: 640px) {
  .cookie-inner { flex-direction: row; align-items: center; }
}
.cookie-inner p {
  margin: 0; flex: 1; font-size: 13px; line-height: 1.45; color: #cbd5e1;
}
.cookie-inner a { color: #6ee7b7; text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-btn {
  min-width: 120px; min-height: 44px; padding: 10px 16px;
  border-radius: 10px; font-size: 14px; font-weight: 700; cursor: pointer;
  border: 2px solid transparent;
}
.cookie-btn-reject {
  background: #1e293b; color: #f1f5f9; border-color: #64748b;
}
.cookie-btn-accept {
  background: #059669; color: #fff; border-color: #059669;
}
.cookie-btn-reject:hover { border-color: #94a3b8; }
.cookie-btn-accept:hover { filter: brightness(1.05); }

.stats.on { display: block; }


/* Mobile / smartphone fixes */
@supports (padding: max(0px)) {
  .header-inner { padding-left: max(12px, env(safe-area-inset-left)); padding-right: max(12px, env(safe-area-inset-right)); }
  .cookie-banner { padding-bottom: max(14px, env(safe-area-inset-bottom)); }
}
@media (max-width: 767px) {
  .header { height: auto; min-height: var(--header-h); }
  .header-inner { flex-wrap: wrap; height: auto; padding-top: 8px; padding-bottom: 8px; gap: 6px; }
  .brand h1 { font-size: 0.95rem; }
  .brand .slogan { display: none; }
  .nav { gap: 4px; width: 100%; justify-content: flex-start; }
  .nav-btn { padding: 8px; min-height: 40px; font-size: 12px; }
  .nav-more-menu { left: 0; right: auto; }
  .layout { padding-top: 96px; height: auto; min-height: 100dvh; }
  .main-map { height: 42vh; min-height: 200px; }
  .sidebar { max-height: none; flex: 1; }
  .map-placeholder { padding: 12px; }
  .podium-tagline { font-size: 1rem; }
  .site-footer-bar { padding-bottom: max(20px, env(safe-area-inset-bottom)); }
  body { overflow-x: hidden; overflow-y: auto; }
}

#faq-seo details { margin: 8px 0; border: 1px solid var(--border); border-radius: 10px; padding: 8px 12px; background: #fff; }
#faq-seo summary { cursor: pointer; font-weight: 700; font-size: 13px; }
#faq-seo details p { margin: 8px 0 4px; font-size: 13px; color: var(--text-muted); }
