/* Cartelera Uruguay — prototipo de pantalla principal
   Tipografías: Bricolage Grotesque 800 (marca, titulares, títulos de eventos),
   Instrument Sans (UI y textos), IBM Plex Mono con tabular-nums (precios, fechas, horas, km). */

:root {
  --paper: #F8F5EF;
  --paper-2: #F1ECE3;
  --ink: #1C1917;
  --stone: #57534E;
  --stone-2: #78716C;
  --rule: rgba(28, 25, 23, .12);
  --rule-strong: rgba(28, 25, 23, .22);
  --cobalt: #1E3A8A;
  --cobalt-hover: #172E6E;
  --cobalt-text: #1E3A8A;
  --cobalt-soft: rgba(30, 58, 138, .08);
  --green: #8A9A12;
  --green-text: #6B7810;
  --green-soft: rgba(138, 154, 18, .12);
  --on-cobalt: #FFFFFF;

  --glass-bg: rgba(255, 255, 255, .62);
  --glass-bg-strong: rgba(255, 255, 255, .78);
  --glass-border: rgba(255, 255, 255, .95);
  --glass-hi: rgba(255, 255, 255, .95);
  --glass-lo: rgba(28, 25, 23, .06);
  --shadow: 0 1px 2px rgba(28, 25, 23, .06), 0 6px 14px -6px rgba(28, 25, 23, .12), 0 22px 44px -22px rgba(28, 25, 23, .30);
  --shadow-hero: 0 2px 4px rgba(0, 0, 0, .08), 0 30px 70px -20px rgba(0, 0, 0, .55);
  --contour-opacity: .10;
  --field-bg: rgba(255, 255, 255, .7);
  --hero-glass: rgba(255, 255, 255, .58);

  --f-display: "Bricolage Grotesque", "Instrument Sans", system-ui, sans-serif;
  --f-ui: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --r-lg: 18px;
  --r-md: 12px;
  --r-sm: 8px;
  --wrap: 1320px;
  --gut: clamp(16px, 3.2vw, 40px);
  --logo-1: #1E3A8A; --logo-2: #2E7A86; --logo-3: #8A9A12;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --logo-1: #4C6FD8; --logo-2: #3FA3A8; --logo-3: #B5C82A;
  --paper: #141210;
  --paper-2: #1A1714;
  --ink: #F2EEE8;
  --stone: #B3ACA3;
  --stone-2: #8F887F;
  --rule: rgba(242, 238, 232, .10);
  --rule-strong: rgba(242, 238, 232, .20);
  --cobalt: #2F52B8;
  --cobalt-hover: #3A60CC;
  --cobalt-text: #8FA9F0;
  --cobalt-soft: rgba(143, 169, 240, .12);
  --green: #A9BC1C;
  --green-text: #C0D23A;
  --green-soft: rgba(169, 188, 28, .14);

  --glass-bg: rgba(30, 27, 24, .66);
  --glass-bg-strong: rgba(30, 27, 24, .80);
  --glass-border: rgba(255, 255, 255, .09);
  --glass-hi: rgba(255, 255, 255, .10);
  --glass-lo: rgba(0, 0, 0, .35);
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 22px 44px -22px rgba(0, 0, 0, .8);
  --shadow-hero: 0 30px 70px -20px rgba(0, 0, 0, .8);
  --contour-opacity: .16;
  --field-bg: rgba(20, 18, 16, .6);
  --hero-glass: rgba(24, 21, 18, .66);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.5 var(--f-ui);
  -webkit-font-smoothing: antialiased;
  transition: background-color .3s ease, color .3s ease;
}
img, svg { display: block; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--cobalt-text); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.num, .mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }

.ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- vidrio ---------- */
.glass {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(22px) saturate(1.5);
  backdrop-filter: blur(22px) saturate(1.5);
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 0 var(--glass-hi), inset 0 -1px 0 var(--glass-lo), var(--shadow);
}

/* ---------- botones ---------- */
.btn-primary, .btn-secondary, .btn-ghost, .btn-icon {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: var(--r-sm); border: 1px solid transparent;
  font-weight: 600; font-size: 14px; line-height: 1; text-decoration: none; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--cobalt); color: var(--on-cobalt); padding: 10px 14px; box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 1px 2px rgba(30,58,138,.3); }
.btn-primary:hover { background: var(--cobalt-hover); }
.btn-secondary { background: var(--field-bg); color: var(--cobalt-text); border-color: color-mix(in srgb, var(--cobalt-text) 40%, transparent); padding: 10px 14px; }
.btn-secondary:hover { background: var(--cobalt-soft); }
.btn-ghost { background: transparent; color: var(--ink); padding: 9px 10px; border-color: var(--rule); }
.btn-ghost:hover { border-color: var(--rule-strong); background: var(--cobalt-soft); }
.btn-icon { width: 38px; height: 38px; background: transparent; border-color: var(--rule); color: var(--ink); }
.btn-icon:hover { border-color: var(--rule-strong); }
.btn-lg { padding: 0 18px; height: 48px; font-size: 15px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 72%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(1.6); backdrop-filter: blur(18px) saturate(1.6);
  border-bottom: 1px solid var(--rule);
}
.header-inner { max-width: var(--wrap); margin: 0 auto; padding: 12px var(--gut); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.brand { text-decoration: none; justify-self: start; color: var(--ink); display: block; line-height: 0; }
.brand-logo { height: 48px; width: auto; display: block; }
.brand-word { font-family: var(--f-display); font-weight: 800; font-size: 19px; line-height: .92; letter-spacing: -.02em; font-variation-settings: "opsz" 96; display: block; }
.main-nav { display: flex; gap: 4px; }
.main-nav a { text-decoration: none; font-size: 14px; font-weight: 500; color: var(--stone); padding: 8px 12px; border-radius: var(--r-sm); }
.main-nav a:hover { color: var(--ink); background: var(--cobalt-soft); }
.main-nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--cobalt-text); border-radius: 0; }
.header-actions { display: flex; align-items: center; gap: 8px; justify-self: end; }
.theme-toggle .ic-sun { display: none; }
[data-theme="dark"] .theme-toggle .ic-sun { display: block; }
[data-theme="dark"] .theme-toggle .ic-moon { display: none; }
.menu-toggle { display: none; }

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -1; background: #0b0f26; }
.hero-bg .slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, center); opacity: 0; transition: opacity 1.4s ease; }
.hero-bg .slide.is-on { opacity: 1; }
[data-theme="dark"] .hero-bg .slide { filter: brightness(.78) saturate(1.05); }
.hero-bg::after { content: none; }
.hero-inner { max-width: var(--wrap); margin: 0 auto; padding: clamp(40px, 7vw, 96px) var(--gut) 20px; }
.hero-panel { width: 57%; min-width: 620px; border-radius: 22px; padding: clamp(20px, 3vw, 36px); background: var(--hero-glass); box-shadow: inset 0 1px 0 var(--glass-hi), inset 0 -1px 0 var(--glass-lo), var(--shadow-hero); }
.hero-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 14px; }
.kicker { margin: 0; font-size: 13px; font-weight: 600; color: var(--cobalt-text); display: flex; align-items: center; gap: 10px; }
.kicker-sep { width: 18px; height: 1px; background: currentColor; opacity: .5; }
.lang { display: flex; border: 1px solid var(--rule); border-radius: var(--r-sm); overflow: hidden; }
.lang button { border: 0; background: none; padding: 5px 9px; font: 500 12px/1 var(--f-mono); color: var(--stone); }
.lang button + button { border-left: 1px solid var(--rule); }
.lang button[aria-pressed="true"] { color: var(--ink); background: var(--cobalt-soft); }
  .hero h1 {
  font-family: var(--f-display); font-weight: 800; font-variation-settings: "opsz" 96;
  font-size: clamp(34px, 5.4vw, 66px); line-height: .98; letter-spacing: -.035em;
  margin: 0 0 14px; max-width: 17ch; text-wrap: balance;
}
.hero-sub { margin: 0 0 24px; color: var(--stone); font-size: clamp(15px, 1.4vw, 17px); max-width: 58ch; }

.search { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; }
.search-field {
  flex: 1 1 100%; display: flex; align-items: center; gap: 10px; min-width: 0;
  height: 48px; padding: 0 14px; border-radius: var(--r-md);
  background: var(--field-bg); border: 1px solid var(--rule-strong);
  box-shadow: inset 0 1px 2px rgba(28,25,23,.06);
}
.search-field:focus-within { border-color: var(--cobalt-text); box-shadow: 0 0 0 3px var(--cobalt-soft); }
.search-field .ic { color: var(--stone); }
.search-field input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: 15px; }
.search-field input::placeholder { color: var(--stone-2); }
.search-actions { display: flex; gap: 8px; }

.hero-tools { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--rule); }
.presets { display: flex; gap: 2px; flex-wrap: wrap; }
.presets button { border: 0; background: none; padding: 7px 10px; border-radius: var(--r-sm); font-size: 14px; font-weight: 500; color: var(--stone); }
.presets button .num { font-size: 12.5px; }
.presets button:hover { color: var(--ink); }
.presets button[aria-checked="true"] { color: var(--ink); background: var(--glass-bg-strong); box-shadow: inset 0 0 0 1px var(--rule-strong); }
.hero-tools-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.saved-btn .num { font-size: 12.5px; color: var(--stone); }
.segmented { display: inline-flex; padding: 3px; border-radius: 10px; background: color-mix(in srgb, var(--ink) 6%, transparent); }
.segmented button { border: 0; background: none; padding: 7px 11px; border-radius: 7px; font-size: 13.5px; font-weight: 500; color: var(--stone); }
.segmented button[aria-selected="true"] { background: var(--glass-bg-strong); color: var(--ink); box-shadow: 0 1px 2px rgba(28,25,23,.12), inset 0 1px 0 var(--glass-hi); }
[data-theme="dark"] .segmented button[aria-selected="true"] { background: #2A2622; }
.hero-slides { display: flex; align-items: center; justify-content: flex-end; gap: 14px; margin-top: 16px; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.slide-caption { margin: 0; display: flex; flex-direction: column; align-items: flex-end; font-size: 14px; font-weight: 600; line-height: 1.3; }
.slide-place { font-weight: 400; font-size: 12.5px; opacity: .85; }
.slide-dots { display: flex; gap: 6px; }
.slide-dots button { width: 22px; height: 3px; padding: 0; border: 0; border-radius: 2px; background: rgba(255,255,255,.4); box-shadow: 0 1px 3px rgba(0,0,0,.4); }
.slide-dots button[aria-current="true"] { background: #fff; width: 34px; }
.slide-pause { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255,255,255,.45); background: rgba(0,0,0,.25); color: #fff; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.slide-pause .ic { width: 14px; height: 14px; }

/* ---------- filtros ---------- */
.filters {
  position: relative; z-index: 2; padding: 26px 0 10px;
  /* franja de búsqueda: gris del vidrio del hero (claro) / azul del botón (noche) */
  background: #A8A29C;
  --stone: #3A3632; --rule: rgba(28,25,23,.2); --rule-strong: rgba(28,25,23,.28);
  --field-bg: rgba(255,255,255,.78); --cobalt-soft: rgba(255,255,255,.35);
}
[data-theme="dark"] .filters {
  background: #2F52B8; color-scheme: dark;
  --ink: #FFFFFF; --stone: rgba(255,255,255,.85); --stone-2: rgba(255,255,255,.65);
  --rule: rgba(255,255,255,.22); --rule-strong: rgba(255,255,255,.38);
  --field-bg: rgba(12,22,64,.38); --cobalt-soft: rgba(255,255,255,.14); --cobalt-text: #FFFFFF;
}
[data-theme="dark"] .filters .chip[aria-pressed="true"] { background: #FFFFFF; color: #1E3A8A; border-color: #FFFFFF; }
[data-theme="dark"] .filters select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E"); }
.filters .quick-row { border-bottom: 0; padding-bottom: 4px; }
.filters-toggle { display: none; }
.filter-row { display: grid; grid-template-columns: 1.2fr 1fr 1.2fr .9fr .9fr; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span, .sort > span { font-family: var(--f-display); font-weight: 800; font-size: 14px; letter-spacing: -.01em; color: var(--ink); font-variation-settings: "opsz" 24; }
.field select, .field input, .sort select, #f-radius {
  appearance: none; -webkit-appearance: none; width: 100%; height: 42px; padding: 0 34px 0 12px;
  border-radius: var(--r-sm); border: 1px solid var(--rule-strong); background-color: var(--field-bg);
  font-size: 14px; color: var(--ink);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2357534E' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 16px;
}
.field input[type="date"] { padding-right: 10px; background-image: none; font-family: var(--f-mono); font-variant-numeric: tabular-nums; font-size: 13px; }
.field select:hover, .field input:hover { border-color: color-mix(in srgb, var(--ink) 35%, transparent); }

.quick-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 16px; padding: 14px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 13px;
  border-radius: var(--r-sm); border: 1px solid var(--rule-strong); background: transparent;
  font-size: 14px; font-weight: 500; color: var(--ink);
}
.chip .ic { width: 16px; height: 16px; }
.chip:hover { background: var(--cobalt-soft); }
.chip[aria-pressed="true"] { background: var(--cobalt); color: var(--on-cobalt); border-color: var(--cobalt); }
.chip[data-chip="near"][aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #1C1917; }
.chip-near { display: inline-flex; align-items: center; gap: 0; }
.chip-near .chip { border-top-right-radius: 0; border-bottom-right-radius: 0; }
#f-radius { width: auto; height: 36px; border-left: 0; border-top-left-radius: 0; border-bottom-left-radius: 0; font-family: var(--f-mono); font-size: 13px; padding-right: 30px; }
#f-radius:disabled { color: var(--stone-2); opacity: .7; }
.sort-count { display: flex; align-items: center; gap: 18px; }
.sort { display: flex; align-items: center; gap: 10px; }
.sort select { width: auto; height: 36px; }
.count { margin: 0; font-size: 14px; color: var(--stone); white-space: nowrap; }
.count .num { color: var(--ink); font-weight: 500; }

/* ---------- listado ---------- */
.listing { position: relative; padding: 20px 0 72px; isolation: isolate; }
.listing::before { /* curvas de nivel: dan materia al vidrio de las tarjetas */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: url("img/curvas.svg") center top / 1600px auto repeat-y;
  opacity: var(--contour-opacity);
}
[data-theme="dark"] .listing::before { filter: invert(1) hue-rotate(180deg) brightness(1.4); }
.sample-note { margin: 0 0 18px; font-size: 12.5px; color: var(--stone); display: flex; gap: 8px; align-items: baseline; }
.sample-note::before { content: "Sample"; font: 500 11px/1 var(--f-mono); color: var(--green-text); border: 1px solid currentColor; border-radius: 4px; padding: 3px 5px; flex: none; }

.grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 3fr) minmax(0, 3fr); gap: clamp(18px, 2vw, 28px); }

.card { border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; position: relative; }
.card.is-featured { box-shadow: inset 0 1px 0 var(--glass-hi), inset 0 -1px 0 var(--glass-lo), inset 0 3px 0 var(--green), var(--shadow); }
.card-media { position: relative; aspect-ratio: 16 / 10; margin: 8px 8px 0; border-radius: 12px; overflow: hidden; }
.card-body { padding: 16px 18px 0; display: flex; flex-direction: column; flex: 1; }
.card-meta { display: flex; align-items: center; gap: 10px; font-size: 13px; margin-bottom: 10px; }
.card-dep { font-weight: 600; color: var(--ink); }
.card-cat { color: var(--stone); padding-left: 10px; border-left: 1px solid var(--rule-strong); }
.card-feat { margin-left: auto; font-size: 12.5px; font-weight: 600; color: var(--green-text); display: inline-flex; align-items: center; gap: 6px; }
.card-feat::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.card-when { display: flex; justify-content: space-between; gap: 12px; font-family: var(--f-mono); font-variant-numeric: tabular-nums; font-size: 13px; color: var(--ink); margin-bottom: 8px; }
.card-when .dist { color: var(--stone); }
.card-when .dist.near { color: var(--green-text); font-weight: 500; }
.card-title {
  font-family: var(--f-display); font-weight: 800; font-variation-settings: "opsz" 60;
  font-size: 22px; line-height: 1.06; letter-spacing: -.02em; margin: 0 0 8px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  text-wrap: balance;
}
.grid > .card:nth-child(3n+1) .card-title { font-size: 26px; }
.card-venue { margin: 0 0 16px; color: var(--stone); font-size: 14px; }
.card-facts { margin-top: auto; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 0; border-top: 1px solid var(--rule); }
.price { font-family: var(--f-mono); font-variant-numeric: tabular-nums; font-weight: 500; font-size: 19px; letter-spacing: -.01em; }
.price small { font-size: 12px; color: var(--stone); font-weight: 400; margin-left: 3px; }
.price.free { font-family: var(--f-ui); font-weight: 600; font-size: 16px; color: var(--green-text); }
.trust { font-family: var(--f-mono); font-variant-numeric: tabular-nums; font-size: 12px; color: var(--stone); text-align: right; line-height: 1.35; }
.trust b { color: var(--ink); font-weight: 500; }
.trust .unconf { color: var(--stone-2); }
.card-actions { display: flex; align-items: center; gap: 8px; padding: 0 0 18px; }
.card-actions .btn-primary { flex: 1; height: 40px; }
.card-actions .btn-icon { width: 40px; height: 40px; background: var(--field-bg); }
.btn-icon[aria-pressed="true"] { color: var(--cobalt-text); border-color: color-mix(in srgb, var(--cobalt-text) 45%, transparent); }
.btn-icon[aria-pressed="true"] .ic { fill: currentColor; }

/* afiches ilustrativos */
.poster { position: absolute; inset: 0; overflow: hidden; color: #fff; }
.poster svg { width: 100%; height: 100%; }
.poster .p-word { position: absolute; left: 7%; bottom: 9%; right: 30%; text-shadow: 0 1px 12px rgba(0,0,0,.12); font-family: var(--f-display); font-weight: 800; line-height: .86; letter-spacing: -.04em; font-variation-settings: "opsz" 96; font-size: clamp(26px, 2.9vw, 46px); }
.card-media { container-type: inline-size; }
@container (min-width: 1px) { .poster .p-word { font-size: clamp(24px, 9cqi, 50px); } }
.poster .p-tag { position: absolute; right: 7%; top: 9%; font: 500 11px/1.25 var(--f-mono); text-align: right; opacity: .85; }
.poster .p-ill { position: absolute; left: 7%; top: 9%; font: 400 10px/1 var(--f-mono); opacity: .7; }

/* carga progresiva */
.load-more { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 44px; }
.load-more p { margin: 0; font-size: 13px; color: var(--stone); }
.progress { width: min(320px, 70%); height: 2px; background: var(--rule); border-radius: 2px; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--cobalt-text); transition: width .4s ease; }
.load-more[hidden] { display: none; }
.empty { text-align: center; padding: 64px 0; }
.empty h2 { font-family: var(--f-display); font-weight: 800; font-size: 28px; margin: 0 0 6px; letter-spacing: -.02em; }
.empty p { color: var(--stone); margin: 0 0 18px; }

.site-footer { border-top: 1px solid var(--rule); padding: 36px 0 48px; color: var(--stone); font-size: 14px; }
.footer-inner { display: grid; grid-template-columns: auto 1fr auto; gap: 32px; align-items: baseline; }
.footer-inner p { margin: 0; max-width: 60ch; }
.brand-word.small { font-size: 16px; color: var(--ink); }
.site-footer nav { display: flex; gap: 18px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ink); }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: var(--ink); color: var(--paper); padding: 11px 16px; border-radius: 10px; font-size: 14px; transition: .25s ease; z-index: 100; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .btn-install span { display: none; }
  .btn-install { width: 38px; height: 38px; padding: 0; }
  .filter-row { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1024px) {
  .hero-panel { width: 100%; min-width: 0; }
  .hero-bg .slide { object-position: center; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid > .card:nth-child(3n+1) .card-title { font-size: 22px; }
  .header-inner { grid-template-columns: auto 1fr auto; }
  .main-nav { justify-self: center; }
  .main-nav a { padding: 8px 8px; }
}
@media (max-width: 860px) {
  .header-inner { grid-template-columns: 1fr auto; }
  .menu-toggle { display: inline-flex; }
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; padding: 8px var(--gut) 16px; background: var(--paper); border-bottom: 1px solid var(--rule); }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 0; font-size: 16px; border-bottom: 1px solid var(--rule); border-radius: 0; }
  .main-nav a[aria-current="page"] { box-shadow: none; color: var(--cobalt-text); }
  .search { flex-direction: column; }
  .search-actions > * { flex: 1; }
  .hero-tools, .hero-tools-right { align-items: stretch; }
  .hero-tools-right { width: 100%; justify-content: space-between; }
  .footer-inner { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .btn-publish span { display: none; }
  .btn-publish { width: 38px; height: 38px; padding: 0; }
  .header-actions { gap: 6px; }
  .hero-inner { padding-top: 24px; }
  .hero-panel { border-radius: 18px; }
  .hero-top { align-items: flex-start; }
  .kicker { font-size: 12px; flex-direction: column; align-items: flex-start; gap: 0; line-height: 1.35; }
  .kicker-sep { display: none; }
  .search-field { flex: none; }
  .presets { width: 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -4px; }
  .presets button { flex: none; }
  .hero-tools-right { flex-direction: column; align-items: stretch; }
  .segmented { display: grid; grid-template-columns: repeat(4, 1fr); }
  .saved-btn { justify-content: flex-start; }
  .filters-toggle { display: inline-flex; width: 100%; justify-content: flex-start; height: 44px; }
  .filters-toggle .chev { margin-left: auto; transition: transform .2s; }
  .filters-toggle[aria-expanded="true"] .chev { transform: rotate(180deg); }
  .filter-row { display: none; grid-template-columns: 1fr 1fr; margin-top: 12px; }
  .filter-row.open { display: grid; }
  .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; width: calc(100% + var(--gut)); padding-right: var(--gut); }
  .chips > * { flex: none; }
  .sort-count { width: 100%; justify-content: space-between; }
  .grid { grid-template-columns: 1fr; }
  .grid > .card:nth-child(3n+1) .card-title, .card-title { font-size: 23px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media (max-width: 640px) { .slide-caption { align-items: flex-start; margin-right: auto; } }


/* ===================== v2: publicidad, categorías, destacados ===================== */

/* tarjeta patrocinada flotante sobre la foto */
.hero-inner { position: relative; }
.sponsor {
  position: absolute; right: var(--gut); bottom: 76px; width: 360px;
  display: grid; grid-template-columns: 108px 1fr; gap: 14px; align-items: center;
  padding: 10px 14px 10px 10px; border-radius: 16px; text-decoration: none; color: var(--ink);
  background: var(--hero-glass);
}
.sponsor-media { position: relative; width: 108px; aspect-ratio: 1; border-radius: 10px; overflow: hidden; container-type: inline-size; }
.sponsor-media .poster .p-ill, .sponsor-media .poster .p-tag { display: none; }
.sponsor-media .poster .p-word { font-size: 20px; left: 9%; right: 9%; bottom: 9%; }
.sponsor-label { font: 500 11px/1 var(--f-mono); color: var(--green-text); display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.sponsor-label::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.sponsor-title { font-family: var(--f-display); font-weight: 800; font-size: 18px; line-height: 1.05; letter-spacing: -.02em; margin: 0 0 6px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sponsor-meta { font: 400 12px/1.35 var(--f-mono); font-variant-numeric: tabular-nums; color: var(--stone); margin: 0 0 8px; }
.sponsor-cta { font-size: 13px; font-weight: 600; color: var(--cobalt-text); text-decoration: none; }
.sponsor-cta:hover { text-decoration: underline; }

/* banner fino */
.promo-banner {
  position: relative; display: flex; align-items: center; gap: 20px; min-height: 90px; margin-top: 24px; padding: 0 24px 0 0;
  border-radius: 14px; overflow: hidden; text-decoration: none; color: #F7F3EA;
  background: linear-gradient(90deg, #4C5A06 0%, #6B7A0C 45%, #8A9A12 100%);
  box-shadow: var(--shadow);
}
.promo-art { align-self: stretch; width: 200px; flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 90' preserveAspectRatio='none'%3E%3Cg fill='none' stroke='%23F2EEE6' stroke-width='1.2'%3E%3Cpath d='M0 20 Q25 12 50 20 T100 20 T150 20 T200 20' opacity='.35'/%3E%3Cpath d='M0 32 Q25 24 50 32 T100 32 T150 32 T200 32' opacity='.45'/%3E%3Cpath d='M0 44 Q25 36 50 44 T100 44 T150 44 T200 44' opacity='.55'/%3E%3Cpath d='M0 56 Q25 48 50 56 T100 56 T150 56 T200 56' opacity='.65'/%3E%3Cpath d='M0 68 Q25 60 50 68 T100 68 T150 68 T200 68' opacity='.75'/%3E%3Cpath d='M0 80 Q25 72 50 80 T100 80 T150 80 T200 80' opacity='.85'/%3E%3C/g%3E%3C/svg%3E") center / cover, #5E6B0C; }
.promo-text { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.promo-title { font-family: var(--f-display); font-weight: 800; font-size: 28px; line-height: 1; letter-spacing: -.03em; }
.promo-meta { font-size: 13px; opacity: .9; }
.promo-cta { flex: none; padding: 11px 16px; border-radius: var(--r-sm); background: #F7F3EA; color: #3E4905; font-weight: 600; font-size: 14px; }
.promo-banner:hover .promo-cta { background: #fff; }
.promo-label { position: absolute; top: 8px; right: 12px; font: 500 10.5px/1 var(--f-mono); opacity: .75; }

/* fila de categorías */
.cats { padding: 24px 0 0; }
.cats-row { display: grid; grid-template-columns: repeat(13, minmax(0, 1fr)); gap: 8px; }
.cat {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  height: 88px; padding: 0 4px; border-radius: var(--r-md); border: 1px solid var(--rule-strong);
  background: var(--glass-bg); color: var(--ink); font-size: 13px; font-weight: 600; text-align: center; line-height: 1.1;
  box-shadow: inset 0 1px 0 var(--glass-hi);
}
.cat .ic { width: 26px; height: 26px; stroke-width: 1.5; }
.cat:hover { border-color: var(--cobalt-text); color: var(--cobalt-text); }
.cat[aria-pressed="true"] { background: var(--cobalt); border-color: var(--cobalt); color: #fff; box-shadow: 0 6px 16px -8px rgba(30,58,138,.6); }

/* encabezados de sección */
.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin: 0 0 18px; }
.sec-head h2 { font-family: var(--f-display); font-weight: 800; font-size: clamp(26px, 3vw, 36px); letter-spacing: -.03em; line-height: 1; margin: 0; }
.sec-note { margin: 0; color: var(--stone); font-size: 13.5px; }
.sec-note .num { color: var(--ink); font-weight: 500; }

/* destacados: 1 grande (2 columnas) + 2 chicos + 4 chicos */
.featured { position: relative; padding: 48px 0 8px; isolation: isolate; }
.featured::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("img/curvas.svg") center top / 1600px auto repeat-y; opacity: var(--contour-opacity); }
[data-theme="dark"] .featured::before { filter: invert(1) hue-rotate(180deg) brightness(1.4); }
.feat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 1.6vw, 24px); }
.feat-grid .card-title { font-size: 19px; }
.feat-grid .card.is-big { grid-column: span 2; }
.feat-grid .card.is-big .card-media { aspect-ratio: 16 / 7.4; }
.feat-grid .card.is-big .card-title { font-size: clamp(26px, 2.4vw, 34px); }
.feat-grid .card.is-big .poster .p-word { font-size: clamp(36px, 4.6vw, 64px); }
.feat-grid .card .card-venue { margin-bottom: 12px; }
.feat-grid .card .price { font-size: 17px; }
.feat-more { display: flex; justify-content: center; margin-top: 28px; }
.listing { padding-top: 56px; }

@media (max-width: 1180px) {
  .cats-row { display: flex; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
  .cat { flex: 0 0 96px; }
  .feat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
  .sponsor { position: relative; right: auto; bottom: auto; width: auto; max-width: 520px; margin-top: 14px; }
}
@media (max-width: 640px) {
  .sponsor { grid-template-columns: 84px 1fr; }
  .sponsor-media { width: 84px; }
  .promo-banner { min-height: 0; padding: 14px 14px 14px 0; gap: 12px; flex-wrap: wrap; }
  .promo-art { width: 56px; }
  .promo-title { font-size: 21px; }
  .promo-meta { font-size: 11.5px; }
  .promo-cta { margin-left: 68px; }
  .cats { padding-top: 18px; }
  .cats-row { width: calc(100% + var(--gut)); padding-right: var(--gut); }
  .cat { flex-basis: 84px; height: 80px; font-size: 12px; }
  .feat-grid { gap: 12px; }
  .feat-grid .card .card-body { padding: 12px 12px 0; }
  .feat-grid .card:not(.is-big) .card-title { font-size: 16px; }
  .feat-grid .card:not(.is-big) .card-when { font-size: 11px; flex-direction: column; gap: 2px; }
  .feat-grid .card:not(.is-big) .card-meta { font-size: 11.5px; }
  .feat-grid .card:not(.is-big) .card-cat, .feat-grid .card:not(.is-big) .trust, .feat-grid .card:not(.is-big) .card-actions .btn-primary { display: none; }
  .feat-grid .card:not(.is-big) .card-actions { justify-content: flex-end; padding-bottom: 12px; }
  .feat-grid .card:not(.is-big) .card-facts { padding: 10px 0; }
  .feat-grid .card.is-big .card-media { aspect-ratio: 16 / 10; }
  .sec-head { flex-direction: column; gap: 6px; }
}
.cats { padding-bottom: 24px; }
.feat-grid .card:not(.is-big) .card-when { flex-direction: column; gap: 2px; }
.sponsor-media .poster .p-word { font-size: 17px; }
@media (max-width: 640px) {
  .promo-text { flex: 1 1 calc(100% - 76px); }
  .promo-meta { line-height: 1.4; }
  .sponsor-media .poster .p-word { font-size: 14px; }
  .feat-grid .card:not(.is-big) .poster .p-ill, .feat-grid .card:not(.is-big) .poster .p-tag { display: none; }
}


/* ===================== v3: orden hero > banner > buscador > categorías > destacados > cartelera ===================== */
.promo-banner { display: block; margin: 0; padding: 0; border-radius: 0; min-height: 0; box-shadow: none;
  background: linear-gradient(90deg, #4C5A06 0%, #6B7A0C 45%, #8A9A12 100%); }
.promo-inner { position: relative; display: flex; align-items: center; gap: 24px; min-height: 96px; }
.promo-banner .promo-art { width: 220px; align-self: stretch; border-radius: 0; }
.promo-label { top: 10px; right: var(--gut); }
.filters { padding-top: 24px; }
.cats { padding: 28px 0 4px; }
.featured { padding-top: 36px; }

/* Toda la cartelera: 4 por línea */
.grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid > .card:nth-child(n) .card-title { font-size: 20px; }
.grid .card-when { flex-direction: column; gap: 2px; }
@media (max-width: 1180px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1024px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .grid { grid-template-columns: 1fr; }
  .grid .card-when { flex-direction: row; }
  .promo-inner { flex-wrap: wrap; gap: 12px; padding-top: 14px; padding-bottom: 14px; }
  .promo-banner .promo-art { display: none; }
  .promo-text { flex: 1 1 100%; }
  .promo-cta { margin-left: 0; }
}
.grid .price.free, .feat-grid .card:not(.is-big) .price.free { font-size: 14.5px; white-space: nowrap; }

/* fotos de eventos (generadas por Ber) */
.poster.is-photo { background: #1C1917; }
.poster.is-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; display: block; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.card:hover .poster.is-photo img { transform: scale(1.035); }
@media (prefers-reduced-motion: reduce) { .card:hover .poster.is-photo img { transform: none; } }

/* banner: foto real del Río de la Plata en duotono (Asiria Pacheco, CC BY-SA 4.0) */
.promo-banner { position: relative; background: #2A3407 url(img/banner/rio-duotono.jpg) 50% 55% / cover no-repeat; isolation: isolate; }
.promo-banner::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(20,26,4,.62) 0%, rgba(20,26,4,.30) 55%, rgba(20,26,4,.10) 100%); }
.promo-banner .promo-art { display: none; }
.promo-banner .promo-title, .promo-banner .promo-meta { text-shadow: 0 1px 10px rgba(0,0,0,.35); }
.promo-credit { position: absolute; right: var(--gut); bottom: 6px; font-size: 10px; color: rgba(255,255,255,.62); letter-spacing: .01em; }
@media (max-width: 640px) { .promo-banner .promo-label, .promo-banner .promo-credit { right: 16px; } }

.price.tbc { font-family: var(--f-ui); font-weight: 600; font-size: 15px; color: var(--stone); }

/* =========================================================
   Vistas Mapa, Mixto, Calendario y ficha del evento (views.js)
   ========================================================= */
.view-map, .view-mix, .view-cal { display: grid; gap: 20px; margin-top: 8px; }
[hidden].view-map, [hidden].view-mix, [hidden].view-cal { display: none; }
.view-map { grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); align-items: start; }
.view-mix { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: start; }
.view-cal { grid-template-columns: minmax(0, 1.9fr) minmax(280px, 1fr); align-items: start; }

/* mapa */
.map-box { position: relative; border-radius: var(--r-lg); padding: 14px; }
.map-tools { position: absolute; top: 14px; left: 14px; z-index: 2; display: flex; gap: 6px; flex-wrap: wrap; }
.map-tools .btn-icon, .map-tools .btn-ghost { background: var(--glass-bg-strong); font-size: 13px; }
.map-tools .btn-icon { font-size: 18px; line-height: 1; }
#map-svg { display: block; width: 100%; height: min(70vh, 640px); }
#mix-svg { display: block; width: 100%; height: 100%; }
.uy { fill: color-mix(in srgb, var(--cobalt) 7%, var(--paper)); }
.uy-coast { fill: none; stroke: var(--rule-strong); stroke-width: 1.4; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.map-lbl { font-family: var(--f-ui); font-weight: 500; fill: var(--stone-2); pointer-events: none; }
.dot, .pin { cursor: pointer; }
.dot circle { fill: var(--cobalt); fill-opacity: .9; stroke: var(--paper); stroke-width: 2; transition: fill .15s; }
.dot text { font-family: var(--f-mono); font-size: 12px; font-weight: 600; fill: var(--on-cobalt); text-anchor: middle; pointer-events: none; }
.pin path { fill: var(--ink); stroke: var(--paper); stroke-width: 1.5; }
.pin circle { fill: var(--paper); }
.dot:hover circle, .dot.on circle { fill: var(--green); fill-opacity: 1; }
.dot.on text, .dot:hover text { fill: #1C1917; }
.pin:hover path, .pin.on path { fill: var(--green); }
.map-legend { position: absolute; left: 18px; bottom: 14px; margin: 0; display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--stone); }
.lg-dot, .lg-pin { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--cobalt); }
.lg-pin { width: 9px; height: 12px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--ink); margin-left: 10px; }

.map-side, .cal-side { position: sticky; top: 84px; max-height: calc(100vh - 110px); overflow: auto; padding: 4px 2px 12px; }
.side-kicker { margin: 0 0 4px; font-size: 12.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--stone); }
.side-title { margin: 0 0 14px; font-family: var(--f-display); font-weight: 800; font-size: 26px; letter-spacing: -.02em; line-height: 1.05; display: flex; align-items: baseline; gap: 10px; }
.side-title .num { font-family: var(--f-mono); font-size: 14px; font-weight: 500; color: var(--stone); letter-spacing: 0; }
.side-empty { color: var(--stone); padding: 24px 0; }
.side-back { border: 0; background: none; padding: 0; margin-bottom: 10px; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--cobalt-text); cursor: pointer; }
.rank { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.rank button { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 11px 4px; border: 0; border-bottom: 1px solid var(--rule); background: none; font: inherit; font-size: 15px; font-weight: 500; color: var(--ink); cursor: pointer; text-align: left; }
.rank button:hover { color: var(--cobalt-text); background: var(--cobalt-soft); }
.rank .num { font-family: var(--f-mono); font-variant-numeric: tabular-nums; font-size: 13px; color: var(--stone); }

/* tarjeta compacta */
.mini-list { display: grid; gap: 8px; }
.mini { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; align-items: center; width: 100%; padding: 8px; border: 1px solid var(--rule); border-radius: var(--r-md); background: var(--field-bg); font: inherit; color: var(--ink); text-align: left; cursor: pointer; transition: border-color .15s, background .15s; }
.mini:hover, .mini:focus-visible { border-color: color-mix(in srgb, var(--cobalt-text) 45%, transparent); background: var(--glass-bg-strong); }
.mini-media { position: relative; display: block; width: 76px; height: 76px; border-radius: var(--r-sm); overflow: hidden; }
.mini-media .p-ill, .mini-media .p-tag, .mini-media .p-word { display: none; }
.mini-body { display: grid; gap: 3px; min-width: 0; }
.mini-meta { font-size: 12px; color: var(--stone); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-title { font-family: var(--f-display); font-weight: 800; font-size: 16px; line-height: 1.12; letter-spacing: -.01em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mini-when { font-family: var(--f-mono); font-variant-numeric: tabular-nums; font-size: 12px; color: var(--stone); }

/* mixto */
.mix-list { display: grid; gap: 8px; }
.mix-more { justify-self: center; margin-top: 8px; }
.mix-map { position: sticky; top: 84px; height: calc(100vh - 110px); max-height: 760px; border-radius: var(--r-lg); padding: 10px; }

/* calendario */
.cal-main { border-radius: var(--r-lg); padding: 18px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.cal-head h3 { margin: 0; font-family: var(--f-display); font-weight: 800; font-size: 28px; letter-spacing: -.02em; text-transform: capitalize; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-dow { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--stone); padding: 0 6px 4px; }
.cal-cell { position: relative; min-height: 104px; display: flex; flex-direction: column; gap: 3px; align-items: stretch; padding: 7px 7px 8px; border: 1px solid var(--rule); border-radius: var(--r-sm); background: var(--field-bg); font: inherit; color: var(--ink); text-align: left; cursor: pointer; min-width: 0; }
.cal-cell:hover:not([disabled]) { border-color: var(--rule-strong); background: var(--glass-bg-strong); }
.cal-cell.is-out { border: 0; background: none; }
.cal-cell.is-empty { background: transparent; cursor: default; }
.cal-cell.is-empty .cal-n { color: var(--stone-2); }
.cal-cell.is-sel { border-color: var(--cobalt); box-shadow: inset 0 0 0 1px var(--cobalt); background: var(--cobalt-soft); }
.cal-cell.is-today .cal-n { color: var(--on-cobalt); background: var(--cobalt); border-radius: 6px; padding: 0 5px; align-self: flex-start; }
.cal-n { font-family: var(--f-mono); font-variant-numeric: tabular-nums; font-size: 13px; font-weight: 600; }
.cal-feat { position: absolute; top: 9px; right: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.cal-ev { font-size: 12px; line-height: 1.25; padding: 2px 5px; border-radius: 4px; background: var(--cobalt-soft); color: var(--cobalt-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-more { font-family: var(--f-mono); font-size: 11.5px; color: var(--stone); padding-left: 5px; }

/* ficha del evento */
html.sheet-open { overflow: hidden; }
.sheet { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 28px; }
.sheet[hidden] { display: none; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(20, 18, 16, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: sheet-fade .2s ease; }
.sheet-panel { position: relative; width: min(1040px, 100%); max-height: calc(100vh - 56px); overflow: auto; background: var(--paper); color: var(--ink); border-radius: 22px; box-shadow: var(--shadow-hero); outline: none; animation: sheet-up .25s cubic-bezier(.2, .8, .2, 1); }
@keyframes sheet-fade { from { opacity: 0; } }
@keyframes sheet-up { from { opacity: 0; transform: translateY(18px); } }
.sheet-media { position: relative; height: 300px; }
.sheet-media .poster { border-radius: 22px 22px 0 0; }
.sheet-close { position: absolute; top: 14px; right: 14px; z-index: 2; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,.5); background: rgba(20,18,16,.55); color: #fff; font-size: 17px; cursor: pointer; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.sheet-close:hover { background: rgba(20,18,16,.8); }
.sheet-body { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr); gap: 32px; padding: 26px 32px 34px; }
.sheet-title { margin: 4px 0 10px; font-family: var(--f-display); font-weight: 800; font-size: clamp(30px, 4vw, 46px); line-height: 1; letter-spacing: -.03em; }
.sheet-when { margin: 0 0 4px; font-family: var(--f-mono); font-variant-numeric: tabular-nums; font-size: 16px; font-weight: 500; }
.sheet-venue { margin: 0 0 16px; color: var(--stone); font-size: 15.5px; }
.sheet-warn { margin: 0 0 10px; padding: 9px 12px; border-radius: var(--r-sm); background: var(--green-soft); color: var(--ink); font-size: 14px; border-left: 3px solid var(--green); }
.sheet-h { margin: 22px 0 10px; font-size: 13px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--stone); }
.sheet-h .num { font-family: var(--f-mono); letter-spacing: 0; }
.sheet-sources { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.sheet-sources li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--rule); font-size: 15px; }
.sheet-sources a { color: var(--cobalt-text); font-weight: 500; text-decoration: none; overflow-wrap: anywhere; }
.sheet-sources a:hover { text-decoration: underline; }
.sheet-sources .num { font-family: var(--f-mono); font-size: 12px; color: var(--stone); white-space: nowrap; }
.sheet-muted { color: var(--stone); }
.sheet-aside { display: grid; gap: 16px; align-content: start; }
.sheet-buy { border-radius: var(--r-lg); padding: 18px; display: grid; gap: 12px; }
.sheet-price { margin: 0; font-family: var(--f-mono); font-variant-numeric: tabular-nums; font-weight: 500; font-size: 28px; letter-spacing: -.01em; }
.sheet-price small { font-size: 13px; color: var(--stone); }
.sheet-buy .trust { text-align: left; margin: 0; }
.sheet-buy .btn-primary { width: 100%; justify-content: center; }
.sheet-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.sheet-actions .btn-ghost { flex: 1; justify-content: center; font-size: 13.5px; }
.sheet-actions .btn-ghost[aria-pressed="true"] { color: var(--cobalt-text); }
.sheet-map { position: relative; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--rule); background: var(--paper-2); }
.sheet-map svg { display: block; width: 100%; height: 170px; }
.sheet-route { position: absolute; right: 10px; bottom: 10px; padding: 7px 11px; border-radius: 8px; background: var(--glass-bg-strong); color: var(--cobalt-text); font-size: 13.5px; font-weight: 600; text-decoration: none; box-shadow: var(--shadow); }

@media (max-width: 1024px) {
  .view-map, .view-cal { grid-template-columns: minmax(0, 1fr); }
  .map-side, .cal-side { position: static; max-height: none; }
  .view-mix { grid-template-columns: minmax(0, 1fr); }
  .mix-map { position: sticky; top: 64px; z-index: 3; order: -1; height: 38vh; }
}
@media (max-width: 640px) {
  #map-svg { height: 62vh; }
  .map-tools .btn-ghost[data-zoom="sur"] { display: none; }
  .cal-main { padding: 12px 8px; }
  .cal-grid { gap: 3px; }
  .cal-cell { min-height: 52px; padding: 5px 4px; align-items: center; }
  .cal-cell .cal-ev { display: none; }
  .cal-cell .cal-more { display: none; }
  .cal-cell:not(.is-empty):not(.is-out)::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--cobalt); margin-top: auto; }
  .cal-cell.is-today .cal-n { align-self: center; }
  .cal-feat { top: 5px; right: 4px; }
  .cal-dow { text-align: center; padding: 0 0 4px; font-size: 11px; }
  .sheet { padding: 0; place-items: stretch; }
  .sheet-panel { max-height: 100dvh; height: 100dvh; border-radius: 0; }
  .sheet-media { height: 220px; }
  .sheet-media .poster { border-radius: 0; }
  .sheet-body { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 20px 16px 32px; }
}

/* destacados dentro de la cartelera: fondo verde suave y primeros en la lista */
.card.is-featured { background: color-mix(in srgb, var(--green) 16%, var(--glass-bg-strong)); border-color: color-mix(in srgb, var(--green) 45%, transparent); }
[data-theme="dark"] .card.is-featured { background: color-mix(in srgb, var(--green) 13%, var(--glass-bg-strong)); }
section.featured[hidden] { display: none; }
.listing { scroll-margin-top: 64px; }
/* mapa: etiquetas con halo y país más legible en modo noche */
.map-lbl { paint-order: stroke; stroke: var(--paper); stroke-width: 3px; stroke-linejoin: round; }
[data-theme="dark"] .uy { fill: #24211D; }
.mini.is-featured { background: color-mix(in srgb, var(--green) 16%, var(--glass-bg-strong)); border-color: color-mix(in srgb, var(--green) 45%, transparent); }
[data-theme="dark"] .mini.is-featured { background: color-mix(in srgb, var(--green) 13%, var(--glass-bg-strong)); }
/* Mixto: el mapa entero entra en pantalla desde el inicio */
.mix-map { height: max(420px, calc(100vh - 250px)); max-height: 680px; }
@media (max-width: 1024px) { .mix-map { height: 42vh; max-height: none; } }

/* sombras entre franjas (pedido de Ber 23/11): 1 nav↓  2 banner↑ sobre la foto  3 banner↓  4 buscador↓ */
:root { --band-shadow: rgba(28,25,23,.45); }
:root[data-theme="dark"] { --band-shadow: rgba(0,0,0,.75); }
.site-header { box-shadow: 0 3px 6px -2px var(--band-shadow); }
.promo-banner { z-index: 3; box-shadow: 0 -3px 6px -2px rgba(0,0,0,.75), 0 3px 6px -2px var(--band-shadow); }
.filters { box-shadow: 0 3px 6px -2px var(--band-shadow); }

/* espacio encabezado → vidrio del hero a la mitad (Ber 23/11): 96→48 escritorio, 24→12 celular */
.hero-inner { padding-top: clamp(20px, 3.5vw, 48px); }
@media (max-width: 640px) { .hero-inner { padding-top: 12px; } }
