:root {
  --header-bg: #1a1a2e;
  --header-bg-2: #16213e;
  --accent: #e94560;
  --accent-hover: #d63851;
  --accent-soft: #fef0f3;
  --green: #10b981;
  --green-soft: #ecfdf5;
  --amber: #f59e0b;
  --amber-soft: #fffbeb;
  --red: #ef4444;
  --red-soft: #fef2f2;
  --gold: #f0b429;
  --silver: #9ca3af;
  --bronze: #c07037;
  --bg: #f7f7fa;
  --surface: #ffffff;
  --surface-2: #f3f4f7;
  --text: #1a1a2e;
  --text-muted: #6b7280;
  --text-subtle: #9ca3af;
  --border: #e5e7eb;
  --border-strong: #d1d5db;
  --shadow-sm: 0 1px 2px rgba(15, 15, 26, 0.05);
  --shadow-md: 0 4px 12px rgba(15, 15, 26, 0.08);
  --shadow-lg: 0 12px 40px rgba(15, 15, 26, 0.15);
  --radius: 12px;
  --radius-lg: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ─── Site header ─────────────────────────────────────────── */
header.site {
  background: var(--header-bg);
  color: #fff;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
header.site .logo {
  font-weight: 800;
  font-size: 1.2rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  letter-spacing: -0.01em;
}
header.site .logo:hover { text-decoration: none; opacity: 0.9; }
header.site .header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
header.site .header-nav {
  color: rgba(255, 255, 255, 0.85);
  padding: 0.5rem 0.85rem;
  border-radius: 7px;
  font-weight: 600;
  font-size: 0.88rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
  transition: background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
header.site .header-nav:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  text-decoration: none;
}
header.site .cta {
  background: var(--accent);
  color: #fff;
  padding: 0.55rem 1.1rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.88rem;
  white-space: nowrap;
  transition: transform 0.15s ease, background 0.15s ease;
  box-shadow: 0 4px 14px rgba(233, 69, 96, 0.35);
}
header.site .cta:hover {
  background: var(--accent-hover);
  text-decoration: none;
  transform: translateY(-1px);
}
@media (max-width: 480px) {
  header.site .header-nav { padding: 0.4rem 0.6rem; font-size: 0.78rem; }
  header.site .cta { padding: 0.5rem 0.9rem; font-size: 0.82rem; }
}

/* ─── Hero section ────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--header-bg) 0%, var(--header-bg-2) 100%);
  color: #fff;
  padding: 2.2rem 1.5rem 5.5rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse 800px 400px at 80% 0%, rgba(233, 69, 96, 0.12), transparent),
    radial-gradient(ellipse 600px 300px at 0% 100%, rgba(80, 140, 255, 0.08), transparent);
  pointer-events: none;
}
.hero::after {
  content: "🍺";
  position: absolute;
  font-size: 12rem;
  right: -1rem;
  top: -1.5rem;
  opacity: 0.04;
  transform: rotate(12deg);
  pointer-events: none;
}
.hero-inner {
  max-width: 960px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.hero .breadcrumb {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 1.2rem;
}
.hero .breadcrumb a {
  color: rgba(255, 255, 255, 0.75);
}
.hero .breadcrumb a:hover {
  color: #fff;
  text-decoration: none;
}
.hero .breadcrumb .sep {
  margin: 0 0.4rem;
  opacity: 0.4;
}
.hero .breadcrumb .current {
  color: #fff;
  font-weight: 500;
}
.hero h1 {
  font-size: clamp(1.75rem, 4.5vw, 2.7rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 0.7rem;
  max-width: 22ch;
}
.hero .hero-sub {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: rgba(255, 255, 255, 0.78);
  max-width: 58ch;
  line-height: 1.5;
}
.hero .hero-sub strong {
  color: #fff;
  font-weight: 600;
}
.hero .hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  color: #fff;
  margin-bottom: 1rem;
  backdrop-filter: blur(10px);
}
.hero .hero-pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
}

/* ─── Main container ──────────────────────────────────────── */
main {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem 1rem;
}
.pulled-up {
  margin-top: -4rem;
  position: relative;
  z-index: 2;
}

h2 {
  font-size: clamp(1.2rem, 2.5vw, 1.45rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 2.8rem 0 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
h2 .num {
  background: var(--accent-soft);
  color: var(--accent);
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

p.lead {
  font-size: 1rem;
  color: var(--text-muted);
  margin: 0.5rem 0 1.5rem;
  max-width: 62ch;
}

/* ─── Stats cards (pulled up over hero) ───────────────────── */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.85rem;
}
.stat {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.1rem 1rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.stat::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
}
.stat.stat-green::before { background: var(--green); }
.stat.stat-amber::before { background: var(--amber); }
.stat.stat-red::before { background: var(--red); }
.stat.stat-dark::before { background: var(--header-bg); }
.stat .label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
  display: block;
  margin-bottom: 0.4rem;
}
.stat .value {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--text);
  display: block;
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.stat.stat-green .value { color: var(--green); }
.stat.stat-red .value { color: var(--red); }
.stat .sub {
  font-size: 0.75rem;
  color: var(--text-subtle);
  display: block;
  margin-top: 0.2rem;
}

/* ─── Podium (top 3 cheapest) ─────────────────────────────── */
.podium {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 0.85rem;
  align-items: end;
  margin: 1.5rem 0;
}
.podium-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 0.9rem 1.1rem;
  text-align: center;
  color: var(--text);
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  position: relative;
  overflow: hidden;
}
.podium-card:hover {
  text-decoration: none;
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.podium-card .rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--text-muted);
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}
.podium-card .podium-price {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.podium-card .podium-name {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.25;
  margin-top: 0.15rem;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  display: -webkit-box;
  overflow: hidden;
}
.podium-card .podium-city {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.1rem;
}
.podium-card.podium-1 {
  padding-top: 1.4rem;
  padding-bottom: 1.4rem;
  border-color: var(--gold);
  background: linear-gradient(180deg, #fffbf0 0%, var(--surface) 60%);
}
.podium-card.podium-1 .rank-badge {
  background: var(--gold);
  color: #fff;
  width: 38px;
  height: 38px;
  font-size: 1.1rem;
  box-shadow: 0 4px 14px rgba(240, 180, 41, 0.35);
}
.podium-card.podium-1 .podium-price { color: var(--green); font-size: 1.9rem; }
.podium-card.podium-2 { border-color: var(--silver); }
.podium-card.podium-2 .rank-badge { background: var(--silver); color: #fff; }
.podium-card.podium-3 { border-color: var(--bronze); }
.podium-card.podium-3 .rank-badge { background: var(--bronze); color: #fff; }

/* ─── Ranking table ───────────────────────────────────────── */
.table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
thead th {
  background: var(--surface-2);
  text-align: left;
  padding: 0.85rem 1rem;
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
thead th.right { text-align: right; }
tbody td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
tbody tr:last-child td { border-bottom: 0; }
tbody tr { transition: background 0.1s ease; }
tbody tr:hover { background: var(--surface-2); }
tbody td.right { text-align: right; }

.rank {
  color: var(--text-subtle);
  font-variant-numeric: tabular-nums;
  width: 2.5rem;
  font-weight: 700;
  font-size: 0.85rem;
}
.rank.rank-1 { color: var(--gold); }
.rank.rank-2 { color: var(--silver); }
.rank.rank-3 { color: var(--bronze); }

.bar-name {
  font-weight: 600;
  color: var(--text);
}
.bar-name:hover { color: var(--accent); text-decoration: none; }

.muted { color: var(--text-muted); font-size: 0.85rem; }

.price-badge {
  display: inline-block;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  padding: 0.25rem 0.65rem;
  border-radius: 7px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 0.88rem;
  white-space: nowrap;
}
.price-badge.good {
  background: var(--green-soft);
  color: var(--green);
}
.price-badge.mid {
  background: var(--amber-soft);
  color: var(--amber);
}
.price-badge.high {
  background: var(--red-soft);
  color: var(--red);
}

/* ─── Chip list (cities / comunidades) ────────────────────── */
ul.chip-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 0;
}
ul.chip-list a {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 500;
  transition: all 0.15s ease;
}
ul.chip-list a .count {
  background: var(--surface-2);
  color: var(--text-muted);
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
}
ul.chip-list a:hover {
  background: var(--header-bg);
  color: #fff;
  text-decoration: none;
  border-color: var(--header-bg);
  transform: translateY(-1px);
}
ul.chip-list a:hover .count {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

/* ─── Info cards (bar page details) ──────────────────────── */
.info-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1rem;
  margin: 1.5rem 0;
}
.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem 1.3rem;
  box-shadow: var(--shadow-sm);
}
.info-card dl dt {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 0.3rem;
}
.info-card dl dd {
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.4;
}
.info-card dl dd + dt { margin-top: 1rem; }
.info-card .rating {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--amber);
  font-weight: 700;
}

.price-highlight {
  background: linear-gradient(135deg, var(--green) 0%, #059669 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 1.3rem 1.3rem;
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.25);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.price-highlight .label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.85;
  margin-bottom: 0.3rem;
  font-weight: 600;
}
.price-highlight .value {
  font-size: 2.3rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.price-highlight .sub {
  font-size: 0.85rem;
  opacity: 0.9;
  margin-top: 0.4rem;
}

/* ─── CTA block ───────────────────────────────────────────── */
.cta-block {
  margin: 2.5rem 0 1rem;
  background: linear-gradient(135deg, var(--header-bg) 0%, var(--header-bg-2) 100%);
  color: #fff;
  padding: 1.6rem 1.8rem;
  border-radius: var(--radius-lg);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.cta-block::before {
  content: "🍺";
  position: absolute;
  font-size: 8rem;
  right: -1rem;
  bottom: -2rem;
  opacity: 0.07;
  pointer-events: none;
}
.cta-block .cta-text { position: relative; z-index: 1; max-width: 42ch; }
.cta-block .cta-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.35rem;
}
.cta-block .cta-desc {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
  line-height: 1.45;
}
.cta-block a.button {
  background: var(--accent);
  color: #fff;
  padding: 0.85rem 1.4rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  position: relative;
  z-index: 1;
  box-shadow: 0 6px 20px rgba(233, 69, 96, 0.4);
  transition: transform 0.15s ease, background 0.15s ease;
}
.cta-block a.button:hover {
  background: var(--accent-hover);
  text-decoration: none;
  transform: translateY(-2px);
}

/* ─── Disclaimer ──────────────────────────────────────────── */
.disclaimer {
  margin-top: 2rem;
  padding: 1rem 1.2rem;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

/* ─── Footer ──────────────────────────────────────────────── */
footer.site {
  max-width: 960px;
  margin: 3.5rem auto 1rem;
  padding: 2rem 1.5rem 1rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
}
footer.site h3 {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text);
  margin-bottom: 0.9rem;
  font-weight: 700;
}
footer.site .comms {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
footer.site .comms a {
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem;
  background: var(--surface);
  transition: all 0.15s ease;
}
footer.site .comms a:hover {
  background: var(--header-bg);
  color: #fff;
  border-color: var(--header-bg);
  text-decoration: none;
}
footer.site .legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  align-items: center;
}
footer.site .legal a { color: var(--text-muted); }

/* ─── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .info-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  header.site { padding: 0.7rem 1rem; }
  header.site .logo { font-size: 1.05rem; }
  header.site .cta { padding: 0.45rem 0.85rem; font-size: 0.82rem; }

  .hero { padding: 1.5rem 1rem 5rem; }
  .hero h1 { margin-bottom: 0.5rem; }

  main { padding: 0 1rem 1rem; }
  h2 { margin: 2rem 0 0.9rem; font-size: 1.15rem; }

  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 0.85rem 0.8rem; }
  .stat .value { font-size: 1.35rem; }

  .podium { grid-template-columns: 1fr; gap: 0.6rem; }
  .podium-card { padding: 0.9rem; }
  .podium-card.podium-1 { padding: 1rem; }

  thead th, tbody td { padding: 0.65rem 0.7rem; font-size: 0.85rem; }
  .rank { width: 2rem; }

  .cta-block { padding: 1.3rem 1.4rem; flex-direction: column; align-items: flex-start; }
  .cta-block a.button { width: 100%; text-align: center; }

  .price-highlight .value { font-size: 1.9rem; }
}
