/* QuéHacer Hermosillo — Sonorense vibrante */

:root, [data-palette="vibrante"] {
  --bg: #FFF8EC;
  --bg-2: #FFEFD0;
  --ink: #1A1208;
  --ink-2: #4A3520;
  --muted: #8A7355;
  --line: rgba(26, 18, 8, 0.12);
  --card: #FFFFFF;

  /* Sonorense vibrante: bandera + folk */
  --primary: #C8102E;       /* rojo bandera */
  --primary-ink: #FFFFFF;
  --secondary: #006847;     /* verde bandera */
  --accent: #F4A100;        /* amarillo sol sonorense */
  --accent-2: #E85D2C;      /* naranja terracota / chiltepín */
  --accent-3: #2D5DA0;      /* azul talavera */
  --accent-4: #8E2C8E;      /* morado bugambilia */

  /* Categorías */
  --cat-musica: #8E2C8E;
  --cat-cultura: #E85D2C;
  --cat-deportes: #006847;
  --cat-gastronomia: #D4761F;
  --cat-familia: #2D5DA0;
  --cat-gobierno: #C8102E;
  /* legacy alias */
  --cat-educacion: #2D5DA0;

  --shadow-sm: 0 1px 2px rgba(26, 18, 8, 0.06), 0 1px 3px rgba(26, 18, 8, 0.04);
  --shadow-md: 0 4px 12px rgba(26, 18, 8, 0.08), 0 2px 4px rgba(26, 18, 8, 0.04);
  --shadow-lg: 0 18px 40px rgba(26, 18, 8, 0.16), 0 4px 12px rgba(26, 18, 8, 0.08);

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
}

[data-palette="desierto"] {
  --bg: #FBF3E4;
  --bg-2: #F1E0BF;
  --ink: #2A1B0E;
  --ink-2: #5C3F23;
  --muted: #94795A;
  --line: rgba(42, 27, 14, 0.12);
  --card: #FFFCF4;

  --primary: #B8531C;       /* terracota */
  --primary-ink: #FFFFFF;
  --secondary: #5C7A3A;     /* verde cardón */
  --accent: #D89A2A;        /* arena dorada */
  --accent-2: #A0411E;      /* terracota oscura */
  --accent-3: #4E6B8A;      /* azul desierto al amanecer */
  --accent-4: #7A4A8E;

  --cat-musica: #7A4A8E;
  --cat-cultura: #B8531C;
  --cat-deportes: #5C7A3A;
  --cat-gastronomia: #C18030;
  --cat-familia: #4E6B8A;
  --cat-gobierno: #A0411E;
  --cat-educacion: #4E6B8A;
}

[data-palette="clasico"] {
  --bg: #F7F4ED;
  --bg-2: #EBE3D2;
  --ink: #1F1810;
  --ink-2: #3D3024;
  --muted: #7A6850;
  --line: rgba(31, 24, 16, 0.14);
  --card: #FFFFFF;

  --primary: #6B2A1E;       /* cantera oscura */
  --primary-ink: #FFFFFF;
  --secondary: #2F4A33;     /* verde botella */
  --accent: #B8943A;        /* dorado patrimonio */
  --accent-2: #8B3A2E;
  --accent-3: #2C3E5A;
  --accent-4: #5C3060;

  --cat-musica: #5C3060;
  --cat-cultura: #6B2A1E;
  --cat-deportes: #2F4A33;
  --cat-gastronomia: #8B5A1A;
  --cat-familia: #2C3E5A;
  --cat-gobierno: #8B3A2E;
  --cat-educacion: #2C3E5A;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-feature-settings: 'ss01', 'cv11';
  -webkit-font-smoothing: antialiased;
}

.serif {
  font-family: 'DM Serif Display', 'Playfair Display', Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.display {
  font-family: 'Bricolage Grotesque', 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
}

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
button:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

a { color: inherit; text-decoration: none; }

/* App layout */
.app {
  min-height: 100vh;
  background: var(--bg);
}

/* ========== TOP BAR ========== */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(140%) blur(10px);
}
.topbar-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 18px 28px;
  display: flex; align-items: center; gap: 24px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.04em;
  color: var(--ink);
}
.logo-mark {
  width: 38px; height: 38px;
  border-radius: 12px;
  background: var(--primary);
  position: relative;
  display: grid; place-items: center;
  flex-shrink: 0;
  overflow: hidden;
}
.logo-mark::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 30% 35%, var(--accent) 0 28%, transparent 30%),
    linear-gradient(180deg, transparent 60%, var(--secondary) 60%);
}
.logo-mark::after {
  content: '';
  position: absolute;
  width: 8px; height: 12px;
  background: var(--ink);
  bottom: 6px; left: 50%;
  transform: translateX(-50%);
  clip-path: polygon(50% 0, 70% 30%, 70% 100%, 30% 100%, 30% 30%);
  opacity: 0.55;
}
.logo .pitic { color: var(--primary); }

.topbar-search {
  flex: 1;
  max-width: 380px;
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-2);
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 14px;
  color: var(--muted);
}
.topbar-search input {
  flex: 1; background: none; border: none; outline: none;
  font: inherit; color: var(--ink);
}
.topbar-search input::placeholder { color: var(--muted); }

.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 42px; height: 42px;
  border-radius: 12px;
  display: grid; place-items: center;
  color: var(--ink);
  position: relative;
  transition: background 0.15s;
}
.icon-btn:hover { background: var(--bg-2); }
.icon-btn .badge {
  position: absolute; top: 6px; right: 6px;
  background: var(--primary); color: white;
  font-size: 10px; font-weight: 700;
  width: 16px; height: 16px;
  border-radius: 999px;
  display: grid; place-items: center;
  border: 2px solid var(--bg);
}
.btn-primary {
  background: var(--ink);
  color: var(--bg);
  border-radius: 999px;
  padding: 11px 20px;
  font-weight: 600; font-size: 14px;
  display: inline-flex; align-items: center; gap: 8px;
  transition: transform 0.12s, background 0.15s;
}
.btn-primary:hover { transform: translateY(-1px); background: var(--primary); color: var(--primary-ink); }

/* ========== HERO ========== */
.hero {
  max-width: 1280px; margin: 0 auto;
  padding: 36px 28px 16px;
  position: relative;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--bg-2);
  color: var(--ink-2);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 16px;
}
.hero-eyebrow .dot {
  width: 8px; height: 8px; border-radius: 999px;
  background: var(--primary);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--primary) 25%, transparent);
}
.hero h1 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.04em;
  margin: 0 0 14px;
  color: var(--ink);
  max-width: 14ch;
}
.hero h1 .accent {
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  font-style: italic;
  color: var(--primary);
  letter-spacing: -0.01em;
}
.hero-sub {
  font-size: 19px;
  color: var(--ink-2);
  max-width: 56ch;
  margin: 0 0 32px;
  line-height: 1.5;
}

.hero-decoration {
  position: absolute;
  right: 28px; top: 36px;
  width: 280px; height: 280px;
  pointer-events: none;
  opacity: 0.95;
}

/* ========== FILTERS ========== */
.filter-bar {
  max-width: 1280px; margin: 0 auto;
  padding: 8px 28px 0;
  display: flex; flex-direction: column; gap: 14px;
}

.pill-row {
  display: flex; gap: 10px;
  overflow-x: auto;
  padding: 4px 0 8px;
  scrollbar-width: none;
}
.pill-row::-webkit-scrollbar { display: none; }

.pill {
  flex-shrink: 0;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--card);
  border: 1.5px solid var(--line);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
  display: inline-flex; align-items: center; gap: 8px;
  transition: all 0.15s;
  white-space: nowrap;
}
.pill:hover { border-color: var(--ink-2); }
.pill.active {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.pill.active.cat-musica      { background: var(--cat-musica); border-color: var(--cat-musica); }
.pill.active.cat-cultura     { background: var(--cat-cultura); border-color: var(--cat-cultura); color: white; }
.pill.active.cat-deportes    { background: var(--cat-deportes); border-color: var(--cat-deportes); color: white; }
.pill.active.cat-gastronomia { background: var(--cat-gastronomia); border-color: var(--cat-gastronomia); color: white; }
.pill.active.cat-familia     { background: var(--cat-familia); border-color: var(--cat-familia); color: white; }
.pill.active.cat-gobierno    { background: var(--cat-gobierno); border-color: var(--cat-gobierno); color: white; }

.pill .dot-cat {
  width: 8px; height: 8px; border-radius: 999px;
  background: currentColor;
}
.pill .icon-cat {
  font-size: 14px;
  display: inline-block;
}

/* Date pills row gets a divider treatment */
.pill-row.dates .pill {
  background: transparent;
  border: 1.5px solid var(--line);
}
.pill-row.dates .pill.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--primary-ink);
}

.pill-row-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-weight: 600;
  margin-right: 4px;
  align-self: center;
  flex-shrink: 0;
}

/* ========== TAB SWITCHER ========== */
.view-toggle {
  display: inline-flex;
  background: var(--bg-2);
  padding: 4px;
  border-radius: 999px;
  gap: 2px;
  margin-left: auto;
}
.view-toggle button {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px; font-weight: 600;
  color: var(--ink-2);
  display: inline-flex; align-items: center; gap: 6px;
}
.view-toggle button.active {
  background: var(--card);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.filter-row-bottom {
  display: flex; align-items: center; gap: 16px;
  flex-wrap: wrap;
}

.results-count {
  font-size: 14px;
  color: var(--muted);
}
.results-count strong { color: var(--ink); font-weight: 700; }

/* ========== CALENDAR ========== */
.calendar-wrap {
  max-width: 1280px; margin: 0 auto;
  padding: 24px 28px;
}
.calendar-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
  gap: 16px;
}
.calendar-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 32px;
  letter-spacing: -0.03em;
  margin: 0;
}
.calendar-title .month-num { color: var(--primary); }
.cal-nav { display: inline-flex; gap: 6px; align-items: center; }
.cal-nav button {
  width: 38px; height: 38px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  display: grid; place-items: center;
  transition: all 0.15s;
}
.cal-nav button:hover { background: var(--card); border-color: var(--ink-2); }

.calendar {
  background: var(--card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  overflow: hidden;
}
.cal-weekdays {
  display: grid; grid-template-columns: repeat(7, 1fr);
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
}
.cal-weekdays div {
  padding: 14px 16px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-2);
}
.cal-weekdays div:nth-child(7) { color: var(--primary); }

.cal-grid {
  display: grid; grid-template-columns: repeat(7, 1fr);
}
.cal-cell {
  min-height: 132px;
  padding: 10px 10px 12px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 6px;
  background: var(--card);
  transition: background 0.12s;
  cursor: pointer;
  position: relative;
}
.cal-cell:nth-child(7n) { border-right: none; }
.cal-cell:hover:not(.empty) { background: color-mix(in oklab, var(--accent) 6%, var(--card)); }
.cal-cell.empty { background: color-mix(in oklab, var(--bg-2) 50%, var(--card)); cursor: default; }
.cal-cell.today .cal-day-num {
  background: var(--primary);
  color: white;
  width: 28px; height: 28px;
  border-radius: 999px;
  display: grid; place-items: center;
  font-weight: 700;
}
.cal-cell.selected {
  background: color-mix(in oklab, var(--primary) 8%, var(--card));
  box-shadow: inset 0 0 0 2px var(--primary);
}
.cal-cell.weekend { background: color-mix(in oklab, var(--bg-2) 25%, var(--card)); }
.cal-cell.weekend.today { background: var(--card); }

.cal-day-num {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
  width: 28px; height: 28px;
  display: grid; place-items: center;
}
.cal-cell.empty .cal-day-num { color: var(--muted); opacity: 0.4; }

.cal-events {
  display: flex; flex-direction: column; gap: 3px;
  flex: 1;
  overflow: hidden;
}
.cal-evt {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 7px;
  border-radius: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: color-mix(in oklab, currentColor 12%, transparent);
  border-left: 3px solid currentColor;
  line-height: 1.3;
  display: flex; align-items: center; gap: 4px;
  transition: transform 0.1s;
}
.cal-evt:hover { transform: translateX(2px); }
.cal-evt .time { font-weight: 700; opacity: 0.8; font-size: 10px; }
.cal-evt.cat-musica      { color: var(--cat-musica); }
.cal-evt.cat-cultura     { color: var(--cat-cultura); }
.cal-evt.cat-deportes    { color: var(--cat-deportes); }
.cal-evt.cat-gastronomia { color: var(--cat-gastronomia); }
.cal-evt.cat-familia     { color: var(--cat-familia); }
.cal-evt.cat-gobierno    { color: var(--cat-gobierno); }

.cal-more {
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 7px;
}

/* ========== CITY SELECTOR & CITY HERO ========== */
.city-strip {
  max-width: 1280px;
  margin: 0 auto;
  padding: 8px 28px 0;
  display: flex; gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}
.city-strip::-webkit-scrollbar { display: none; }
.city-chip {
  flex-shrink: 0;
  padding: 10px 16px 10px 12px;
  border-radius: 999px;
  background: var(--card);
  border: 1.5px solid var(--line);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  display: inline-flex; align-items: center; gap: 8px;
  transition: all 0.15s;
  white-space: nowrap;
  position: relative;
}
.city-chip:hover { transform: translateY(-1px); border-color: var(--ink-2); }
.city-chip .city-pin {
  width: 22px; height: 22px;
  border-radius: 999px;
  display: grid; place-items: center;
  font-size: 11px; font-weight: 800;
  color: white;
  background: var(--city-color, var(--primary));
  flex-shrink: 0;
}
.city-chip.active {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.city-chip .city-count {
  background: rgba(0,0,0,0.06);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}
.city-chip.active .city-count { background: rgba(255,255,255,0.18); }

/* City cards in hero */
.city-cards {
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 28px 32px;
}
.city-cards-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 18px;
  gap: 16px;
}
.city-cards-head h2 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 0;
}
.city-cards-head h2 em {
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  font-weight: 400;
  color: var(--primary);
}
.city-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
@media (max-width: 1100px) { .city-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .city-grid { grid-template-columns: repeat(2, 1fr); } }

.city-card {
  position: relative;
  aspect-ratio: 3/4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: none;
  cursor: pointer;
  background: var(--card);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  isolation: isolate;
}
.city-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.city-card img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.city-card:hover img { transform: scale(1.08); }
.city-card::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(0,0,0,0.85));
}
.city-card-content {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 16px 14px;
  color: white;
  z-index: 2;
  text-align: left;
}
.city-card-name {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 4px;
}
.city-card-tag {
  font-size: 11px;
  font-weight: 500;
  opacity: 0.85;
  margin: 0 0 10px;
  line-height: 1.3;
}
.city-card-count {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--city-color);
  padding: 5px 10px;
  border-radius: 999px;
  align-self: flex-start;
}
.city-card-stripe {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: var(--city-color);
  z-index: 3;
}

/* City badge on event cards */
.evt-city-badge {
  position: absolute; bottom: 12px; left: 12px;
  background: rgba(255,255,255,0.95);
  color: var(--ink);
  padding: 4px 9px 4px 6px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex; align-items: center; gap: 6px;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(6px);
}
.evt-city-badge .city-pin {
  width: 16px; height: 16px;
  border-radius: 999px;
  background: var(--city-color, var(--primary));
}

/* City section header */
.city-section-banner {
  max-width: 1280px;
  margin: 32px auto 8px;
  padding: 0 28px;
}
.city-banner {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 24/7;
  min-height: 180px;
}
.city-banner img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.city-banner::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.7) 30%, transparent 80%);
}
.city-banner-content {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: center;
  padding: 32px 40px;
  color: white;
  z-index: 2;
}
.city-banner-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  background: var(--city-color);
  align-self: flex-start;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.city-banner h1 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
  margin: 0 0 8px;
}
.city-banner-tagline {
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  font-size: 20px;
  margin: 0 0 14px;
  opacity: 0.92;
}
.city-banner-landmarks {
  display: flex; gap: 14px;
  flex-wrap: wrap;
  font-size: 13px;
  opacity: 0.85;
}
.city-banner-landmarks span {
  display: inline-flex; align-items: center; gap: 5px;
}
.city-banner-landmarks span::before {
  content: '◆';
  color: var(--city-color);
  font-size: 10px;
}
@media (max-width: 720px) {
  .city-banner-content { padding: 22px 24px; }
  .city-banner-tagline { font-size: 16px; }
}
.event-section {
  max-width: 1280px; margin: 0 auto;
  padding: 8px 28px 80px;
}
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 20px;
  gap: 16px;
}
.section-head h2 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 0;
}
.section-head h2 em {
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  font-weight: 400;
  color: var(--primary);
}
.section-head .link {
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 600;
  display: inline-flex; align-items: center; gap: 4px;
}

.featured-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 16px;
  margin-bottom: 36px;
}
@media (max-width: 900px) {
  .featured-row { grid-template-columns: 1fr; }
}

.event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

.evt-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex; flex-direction: column;
  text-align: left;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s;
  position: relative;
  width: 100%;
}
.evt-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.evt-card.featured {
  grid-row: span 1;
}
.evt-card.featured.big {
  grid-column: span 1;
}

.evt-image {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--bg-2);
}
.evt-card.featured.big .evt-image { aspect-ratio: 5/4; }
.evt-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.evt-card:hover .evt-image img { transform: scale(1.05); }

.evt-date-chip {
  position: absolute; top: 12px; left: 12px;
  background: var(--card);
  border-radius: 12px;
  padding: 6px 8px 7px;
  text-align: center;
  min-width: 50px;
  box-shadow: var(--shadow-md);
  line-height: 1;
}
.evt-date-chip .month {
  font-size: 10px; font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 2px;
}
.evt-date-chip .day {
  font-size: 22px; font-weight: 800;
  color: var(--ink);
  display: block;
  font-family: 'Bricolage Grotesque', sans-serif;
}

.evt-cat-badge {
  position: absolute; top: 12px; right: 12px;
  background: var(--card);
  color: var(--ink);
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: inline-flex; align-items: center; gap: 5px;
  box-shadow: var(--shadow-sm);
}
.evt-cat-badge .dot-cat {
  width: 7px; height: 7px; border-radius: 999px;
}
.cat-dot-musica      { background: var(--cat-musica); }
.cat-dot-cultura     { background: var(--cat-cultura); }
.cat-dot-deportes    { background: var(--cat-deportes); }
.cat-dot-gastronomia { background: var(--cat-gastronomia); }
.cat-dot-familia     { background: var(--cat-familia); }
.cat-dot-gobierno    { background: var(--cat-gobierno); }

.evt-fav {
  position: absolute; bottom: 12px; right: 12px;
  width: 38px; height: 38px;
  background: var(--card);
  border-radius: 999px;
  display: grid; place-items: center;
  box-shadow: var(--shadow-md);
  transition: transform 0.15s, background 0.15s;
  z-index: 2;
}
.evt-fav:hover { transform: scale(1.08); }
.evt-fav.active { background: var(--primary); color: white; }

.evt-body {
  padding: 16px 18px 18px;
  display: flex; flex-direction: column;
  flex: 1;
  gap: 8px;
}
.evt-meta {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}
.evt-meta .sep { width: 3px; height: 3px; border-radius: 999px; background: currentColor; opacity: 0.5; }
.evt-card h3 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
  line-height: 1.25;
  text-wrap: balance;
}
.evt-card.featured.big h3 { font-size: 22px; }
.evt-venue {
  font-size: 13px;
  color: var(--ink-2);
  display: inline-flex; align-items: center; gap: 5px;
  line-height: 1.3;
}
.evt-foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: auto;
  padding-top: 10px;
  gap: 8px;
}
.evt-price {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}
.evt-price.gratis {
  color: var(--secondary);
  background: color-mix(in oklab, var(--secondary) 10%, transparent);
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ========== EMPTY STATE ========== */
.empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}
.empty h3 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 22px; color: var(--ink);
  margin: 12px 0 6px;
}

/* ========== MODAL ========== */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(26, 18, 8, 0.55);
  backdrop-filter: blur(6px);
  z-index: 100;
  display: grid; place-items: center;
  padding: 24px;
  animation: fade 0.2s;
}
@keyframes fade { from { opacity: 0; } }
.modal {
  background: var(--bg);
  border-radius: var(--radius-xl);
  max-width: 880px;
  width: 100%;
  max-height: 92vh;
  overflow: auto;
  position: relative;
  animation: pop 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes pop { from { transform: translateY(20px) scale(0.96); opacity: 0; } }
.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 40px; height: 40px;
  background: var(--card);
  border-radius: 999px;
  display: grid; place-items: center;
  z-index: 2;
  box-shadow: var(--shadow-md);
}
.modal-hero {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg-2);
}
.modal-hero img { width: 100%; height: 100%; object-fit: cover; }
.modal-hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.5));
}
.modal-hero-text {
  position: absolute; bottom: 24px; left: 28px; right: 28px;
  color: white;
}
.modal-hero-text .tag-row {
  display: flex; gap: 6px; margin-bottom: 12px; flex-wrap: wrap;
}
.modal-hero-text .tag {
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(8px);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: 1px solid rgba(255,255,255,0.25);
}
.modal-hero-text h2 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 0;
  text-wrap: balance;
}

.modal-body {
  padding: 28px 32px 32px;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 32px;
}
@media (max-width: 720px) { .modal-body { grid-template-columns: 1fr; } }

.modal-body p.lead {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0 0 22px;
}
.modal-info-list {
  display: flex; flex-direction: column;
  gap: 14px;
  background: var(--card);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--line);
  height: fit-content;
}
.modal-info-row {
  display: flex; gap: 12px;
  font-size: 14px;
}
.modal-info-row .ico {
  width: 32px; height: 32px;
  border-radius: 10px;
  background: var(--bg-2);
  display: grid; place-items: center;
  flex-shrink: 0;
  color: var(--ink-2);
}
.modal-info-row .info-label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; margin-bottom: 2px; }
.modal-info-row .info-val { font-weight: 600; color: var(--ink); line-height: 1.35; }

.modal-cta-row {
  display: flex; gap: 10px;
  margin-top: 18px;
}
.modal-cta-row button {
  flex: 1;
  padding: 14px 18px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.modal-cta-primary { background: var(--primary); color: var(--primary-ink); }
.modal-cta-primary:hover { filter: brightness(1.08); }
.modal-cta-ghost { background: var(--bg-2); color: var(--ink); }
.modal-cta-ghost:hover { background: color-mix(in oklab, var(--bg-2), var(--ink) 8%); }

/* ========== FAVORITES DRAWER ========== */
.drawer-backdrop {
  position: fixed; inset: 0;
  background: rgba(26, 18, 8, 0.45);
  z-index: 90;
  animation: fade 0.18s;
}
.drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 420px; max-width: 100vw;
  background: var(--bg);
  z-index: 91;
  box-shadow: -20px 0 60px rgba(0,0,0,0.2);
  display: flex; flex-direction: column;
  animation: slideR 0.28s cubic-bezier(0.32, 0.72, 0.16, 1);
}
@keyframes slideR { from { transform: translateX(100%); } }
.drawer-head {
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
}
.drawer-head h3 { font-family: 'Bricolage Grotesque', sans-serif; font-size: 22px; font-weight: 700; margin: 0; letter-spacing: -0.02em; }
.drawer-body { flex: 1; overflow: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.fav-item {
  display: flex; gap: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  cursor: pointer;
  transition: border-color 0.15s;
  text-align: left;
  width: 100%;
}
.fav-item:hover { border-color: var(--primary); }
.fav-thumb { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.fav-info { flex: 1; min-width: 0; }
.fav-info h4 { font-family: 'Bricolage Grotesque', sans-serif; font-size: 14px; font-weight: 700; margin: 0 0 4px; line-height: 1.3; }
.fav-info p { font-size: 12px; margin: 0; color: var(--muted); }

/* ========== FOOTER ========== */
.footer {
  background: var(--ink);
  color: var(--bg);
  padding: 56px 28px 36px;
  margin-top: 40px;
}
.footer-inner { max-width: 1280px; margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
@media (max-width: 800px) { .footer-top { grid-template-columns: 1fr 1fr; } }
.footer h4 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  margin: 0 0 16px;
  color: var(--accent);
}
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.footer ul a { font-size: 14px; opacity: 0.75; }
.footer ul a:hover { opacity: 1; color: var(--accent); }
.footer-tagline { font-family: 'DM Serif Display', serif; font-size: 22px; font-style: italic; line-height: 1.35; max-width: 32ch; opacity: 0.85; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 24px;
  display: flex; justify-content: space-between;
  font-size: 12px;
  opacity: 0.6;
  flex-wrap: wrap; gap: 12px;
}

/* Section header decoration */
.papel-picado {
  height: 32px;
  margin-bottom: 24px;
  background-repeat: repeat-x;
  background-size: 60px 32px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='60' height='32' viewBox='0 0 60 32'><path d='M0 0 H60 V12 L52 12 L52 18 L48 18 L48 24 L42 24 L42 18 L38 18 L38 12 L22 12 L22 18 L18 18 L18 24 L12 24 L12 18 L8 18 L8 12 L0 12 Z' fill='%23C8102E'/><circle cx='15' cy='8' r='2' fill='white'/><circle cx='45' cy='8' r='2' fill='white'/><circle cx='30' cy='6' r='1.5' fill='white'/></svg>");
  opacity: 0.85;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 720px) {
  .topbar-inner { padding: 14px 16px; gap: 12px; }
  .topbar-search { display: none; }
  .hero { padding: 24px 16px 8px; }
  .hero-decoration { display: none; }
  .filter-bar { padding: 4px 16px 0; }
  .calendar-wrap { padding: 16px; }
  .event-section { padding: 0 16px 60px; }
  .cal-cell { min-height: 70px; padding: 6px 4px; }
  .cal-evt { display: none; }
  .cal-cell.has-events::after {
    content: '';
    position: absolute; bottom: 6px; left: 50%; transform: translateX(-50%);
    width: 6px; height: 6px; border-radius: 999px; background: var(--primary);
  }
  .modal-body { padding: 22px; }
  .modal-hero-text h2 { font-size: 24px; }
  .featured-row { gap: 14px; }
}
