/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:         #0d0d0f;
  --surface:    #16161a;
  --card:       #1e1e24;
  --border:     #2a2a35;
  --gold:       #e8a020;
  --gold-light: #f5c05a;
  --amber:      #d97706;
  --text:       #e8e8f0;
  --muted:      #888899;
  --accent:     #7c3aed;
  --radius:     12px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', system-ui, sans-serif;
  line-height: 1.6;
}

/* ── Nav ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 13, 15, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 1rem;
}

.nav-logo {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--gold);
  text-decoration: none;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--gold); }

/* ── Language switcher ── */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex-shrink: 0;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  border: 1px solid transparent;
  background: none;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  letter-spacing: 0.5px;
}

.lang-btn:hover { color: var(--text); border-color: var(--border); }

.lang-btn.active {
  color: var(--gold);
  border-color: rgba(232,160,32,0.4);
  background: rgba(232,160,32,0.08);
}

.lang-flag {
  width: 20px;
  height: 13px;
  border-radius: 2px;
  overflow: hidden;
  flex-shrink: 0;
  display: inline-flex;
}

.lang-flag-img {
  width: 20px;
  height: 20px;
  border-radius: 3px;
  object-fit: cover;
  display: inline-block;
  flex-shrink: 0;
  vertical-align: middle;
}

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 2rem 4rem;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(232,160,32,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 80% 80%, rgba(124,58,237,0.08) 0%, transparent 60%),
    var(--bg);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 60px, rgba(255,255,255,0.015) 60px, rgba(255,255,255,0.015) 61px),
    repeating-linear-gradient(90deg, transparent, transparent 60px, rgba(255,255,255,0.015) 60px, rgba(255,255,255,0.015) 61px);
  pointer-events: none;
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5rem;
  max-width: 1100px;
  width: 100%;
  position: relative;
  z-index: 1;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  min-width: 0;
}

.hero-poster-wrap { flex-shrink: 0; }

.hero-poster-wrap img {
  width: 260px;
  border-radius: 16px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.06), 0 0 40px rgba(232,160,32,0.12);
  transform: rotate(2deg);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  display: block;
}

.hero-poster-wrap img:hover {
  transform: rotate(0deg) scale(1.03);
  box-shadow: 0 40px 100px rgba(0,0,0,0.7), 0 0 0 1px rgba(232,160,32,0.2), 0 0 60px rgba(232,160,32,0.18);
}

.hero-badge {
  display: inline-block;
  background: rgba(232,160,32,0.15);
  border: 1px solid rgba(232,160,32,0.4);
  color: var(--gold-light);
  padding: 0.3rem 1rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(3.5rem, 12vw, 8rem);
  font-weight: 900;
  letter-spacing: -3px;
  line-height: 0.9;
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 50%, var(--amber) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.hero-subtitle {
  font-size: clamp(1rem, 3vw, 1.4rem);
  color: var(--muted);
  font-weight: 400;
  margin-bottom: 2.5rem;
  letter-spacing: 1px;
}

.hero-date-box {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.5rem 3rem;
  margin-bottom: 2.5rem;
}

.hero-date-label {
  font-size: 0.7rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.hero-date-main {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -1px;
}

.hero-date-sub {
  font-size: 1rem;
  color: var(--muted);
  margin-top: 0.2rem;
}

.hero-location {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 1rem;
}

.hero-location svg { color: var(--gold); flex-shrink: 0; }

.hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 3rem;
  flex-wrap: wrap;
  justify-content: center;
}

.stat { text-align: center; }

.stat-num {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ── Sections ── */
section {
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--text);
  line-height: 1.1;
}

.section-desc {
  color: var(--muted);
  margin-top: 0.75rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.section-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* ── Brewery grid ── */
.brewery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.brewery-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: border-color 0.2s, transform 0.2s;
}

.brewery-card:hover { border-color: var(--gold); transform: translateY(-2px); }

.brewery-num {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(232,160,32,0.15);
  border: 1px solid rgba(232,160,32,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold);
  flex-shrink: 0;
}

.brewery-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
}

.brewery-province {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 0.15rem;
  letter-spacing: 0.5px;
}

.brewery-card.nuevo {
  border-color: rgba(124,58,237,0.45);
  background: linear-gradient(135deg, #1e1e24 80%, rgba(124,58,237,0.08));
}

.brewery-card.nuevo .brewery-num {
  background: rgba(124,58,237,0.18);
  border-color: rgba(124,58,237,0.45);
  color: #c4b5fd;
}

.brewery-card.nuevo:hover { border-color: #7c3aed; }

.nuevo-badge {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0.05rem 0.45rem;
  background: rgba(124,58,237,0.2);
  border: 1px solid rgba(124,58,237,0.4);
  border-radius: 999px;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: #c4b5fd;
  vertical-align: middle;
  text-transform: uppercase;
}

/* ── Music ── */
.music-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.music-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color 0.2s, transform 0.2s;
}

.music-card:hover { border-color: var(--accent); transform: translateY(-2px); }

.music-time {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.music-band {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.music-stage-badge {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.2rem 0.7rem;
  background: rgba(124,58,237,0.15);
  border: 1px solid rgba(124,58,237,0.3);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  color: #a78bfa;
  letter-spacing: 1px;
}

/* ── Bus ── */
.bus-section-wrap {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.badge-ida {
  background: rgba(232,160,32,0.15);
  color: var(--gold);
  border: 1px solid rgba(232,160,32,0.3);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}

.badge-vuelta {
  background: rgba(124,58,237,0.15);
  color: #a78bfa;
  border: 1px solid rgba(124,58,237,0.3);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}

.birrabus-title {
  font-size: clamp(2.2rem, 6vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -1px;
  background: linear-gradient(135deg, #f5c05a, #e8a020);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.birrabus-title .emoji {
  -webkit-text-fill-color: initial;
}

.bus-routes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.bus-route {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.bus-route-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.bus-route-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
}

.bus-times {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.bus-time {
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.5px;
}

.bus-time.ida {
  background: rgba(232,160,32,0.12);
  border: 1px solid rgba(232,160,32,0.3);
  color: var(--gold-light);
}

.bus-time.vuelta {
  background: rgba(124,58,237,0.12);
  border: 1px solid rgba(124,58,237,0.3);
  color: #c4b5fd;
}

.bus-note {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.55;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

.bus-note strong { color: var(--text); }

/* ── Map ── */
.map-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-top: 2rem;
}

.map-wrap img {
  width: 100%;
  display: block;
  filter: brightness(0.9) saturate(0.85);
}

/* ── Info cards ── */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.info-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.info-card-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.info-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.info-card p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ── Footer ── */
footer {
  text-align: center;
  padding: 3rem 2rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
}

footer strong { color: var(--gold); }

/* ── Maps link ── */
.maps-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
  cursor: pointer;
}

.maps-link:hover { color: var(--gold); }

.maps-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding: 0.4rem 0.9rem;
  background: rgba(232,160,32,0.12);
  border: 1px solid rgba(232,160,32,0.35);
  border-radius: 999px;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.maps-btn:hover { background: rgba(232,160,32,0.22); border-color: var(--gold); }

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero-inner { flex-direction: column; gap: 3rem; }
  .hero-poster-wrap img { width: 200px; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .hero h1 { letter-spacing: -2px; }
  .bus-routes { grid-template-columns: 1fr; }
}
