/* endutrak — papel, tinta y barro */
:root {
  --paper: #f1efea;
  --paper-2: #e7e4dc;
  --card: #faf9f6;
  --ink: #141414;
  --ink-2: #3a3a3a;
  --muted: #77736b;
  --line: rgba(20, 20, 20, 0.12);
  --line-strong: rgba(20, 20, 20, 0.85);
  --mud: #8b5a2b;
  --mud-2: #b37a3e;
  --mud-soft: rgba(139, 90, 43, 0.14);
  --radius: 14px;
  --display: 'Anton', 'Impact', 'Arial Narrow', sans-serif;
  --body: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'Cascadia Code', monospace;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1240px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* grano de papel sutil */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.35;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, video { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--mud); outline-offset: 2px; border-radius: 6px; }

.mono { font: 500 12px/1.4 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; letter-spacing: 0.01em; line-height: 0.95; margin: 0; text-transform: uppercase; }

/* ---------- botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1.5px solid var(--ink); border-radius: 999px;
  padding: 11px 20px; font-weight: 600; font-size: 15px;
  text-decoration: none; cursor: pointer; background: transparent;
  transition: transform .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 8px 14px; font-size: 14px; }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--mud); border-color: var(--mud); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-paper { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn-mud { background: var(--mud); border-color: var(--mud); color: #fff; }
.btn-mud:hover { background: var(--ink); border-color: var(--ink); }
.icon-btn {
  display: grid; place-items: center; width: 40px; height: 40px;
  border-radius: 50%; border: 1.5px solid var(--line); background: var(--card); cursor: pointer;
  transition: border-color .15s, background .15s;
}
.icon-btn:hover { border-color: var(--ink); }
.link-btn { background: none; border: 0; padding: 0; color: var(--mud); font-weight: 600; cursor: pointer; font-size: 14px; }

/* ---------- topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px var(--gutter);
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(10px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 40px; height: 40px; mix-blend-mode: multiply; }
.brand span { font: 800 22px/1 var(--body); letter-spacing: -0.03em; }
.nav { display: flex; align-items: center; gap: clamp(10px, 2.5vw, 28px); }
.nav > a:not(.btn) { text-decoration: none; font-weight: 600; font-size: 15px; position: relative; }
.nav > a:not(.btn)::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px;
  background: var(--mud); transform: scaleX(0); transform-origin: left; transition: transform .2s;
}
.nav > a:not(.btn):hover::after { transform: scaleX(1); }

/* ---------- hero ---------- */
.hero {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(20px, 4vw, 48px) var(--gutter) clamp(32px, 6vw, 72px);
  display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center;
}
.hero-media { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--paper-2); aspect-ratio: 16 / 9; }
.hero-media video { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.replay {
  position: absolute; right: 12px; bottom: 12px; width: 38px; height: 38px; border-radius: 50%;
  border: 0; background: var(--ink); color: var(--paper); display: grid; place-items: center; cursor: pointer;
  opacity: .85;
}
.replay:hover { opacity: 1; background: var(--mud); }
.hero-copy h1 { font-size: clamp(48px, 5.6vw, 76px); margin: 14px 0 18px; }
.lede { font-size: clamp(16px, 1.6vw, 19px); color: var(--ink-2); max-width: 34ch; margin: 0 0 24px; }

.next-card {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px;
  padding: 12px 14px; border-radius: var(--radius); background: var(--card);
  border: 1px solid var(--line); text-decoration: none; max-width: 440px;
  transition: border-color .15s, transform .15s;
}
.next-card:hover { border-color: var(--ink); transform: translateY(-2px); }
.next-card .nc-date { background: var(--ink); color: var(--paper); border-radius: 10px; padding: 6px 10px; text-align: center; min-width: 56px; }
.next-card .nc-date b { display: block; font: 400 26px/1 var(--display); }
.next-card .nc-date small { font: 500 10px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.next-card .nc-title { font-weight: 700; line-height: 1.2; }
.next-card .nc-sub { color: var(--muted); font-size: 14px; }
.next-card .nc-count { font: 400 22px/1 var(--display); color: var(--mud); text-align: right; }
.next-card .nc-count small { display: block; font: 500 10px/1.2 var(--mono); letter-spacing: .1em; color: var(--muted); text-transform: uppercase; }

/* ---------- secciones ---------- */
.section { max-width: var(--max); margin: 0 auto; padding: clamp(48px, 7vw, 96px) var(--gutter); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 20px; margin-bottom: 24px; }
.section-head h2 { font-size: clamp(44px, 6vw, 80px); margin-top: 8px; }
.kicker { color: var(--mud); }

.section-ink {
  max-width: none; background: var(--ink); color: var(--paper);
  padding-left: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  padding-right: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
}
.section-ink .mono { color: #a29d93; }
.section-ink .kicker { color: var(--mud-2); }

/* ---------- calendario ---------- */
.cal-controls { display: flex; align-items: center; gap: 8px; }
.month-label { font-size: clamp(26px, 3vw, 36px); min-width: 8.5ch; text-align: center; }

.season {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px;
  margin-bottom: 18px;
}
.season button {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px;
  height: 74px; padding: 8px 0 8px; border: 1px solid transparent; border-radius: 10px;
  background: transparent; cursor: pointer;
}
.season button:hover { background: var(--card); border-color: var(--line); }
.season button[aria-selected="true"] { background: var(--card); border-color: var(--ink); }
.season .bar { width: 46%; max-width: 26px; border-radius: 4px 4px 2px 2px; background: var(--paper-2); min-height: 3px; transition: height .3s ease, background .2s; }
.season button[aria-selected="true"] .bar { background: var(--mud); }
.season button.past .bar { background: #d6d2c8; }
.season button:not(.past) .bar { background: var(--ink); }
.season button[aria-selected="true"] .bar { background: var(--mud); }
.season .m { font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.season button[aria-selected="true"] .m { color: var(--ink); }
.season .n { position: absolute; top: 6px; font: 500 10px/1 var(--mono); color: var(--muted); }
.season .now-dot { position: absolute; top: 6px; right: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--mud); }

/* misma rejilla que .cal-layout: la 3ª columna (320px) queda justo encima del panel lateral */
.filters { display: grid; grid-template-columns: auto minmax(0, 1fr) 320px; gap: 12px 20px; align-items: center; margin-bottom: 18px; }
.search {
  display: flex; align-items: center; gap: 8px;
  padding: 0 14px; height: 46px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--muted);
}
.search:focus-within { border-color: var(--ink); }
.search input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font: inherit; color: var(--ink); }

.cal-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: stretch; }
.cal { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cal-dow { display: grid; grid-template-columns: repeat(7, 1fr); border-bottom: 1px solid var(--line); }
.cal-dow span { padding: 10px 12px; font: 500 11px/1 var(--mono); letter-spacing: .1em; color: var(--muted); }
.cal-dow span:nth-child(n+6) { color: var(--mud); }

.week { position: relative; min-height: 112px; border-bottom: 1px solid var(--line); }
.week:last-child { border-bottom: 0; }
.week-days { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(7, 1fr); }
.week-evs {
  position: relative; display: grid; grid-template-columns: repeat(7, 1fr);
  grid-auto-rows: 24px; row-gap: 3px; padding: 34px 0 8px; pointer-events: none;
}
.week-evs > * { pointer-events: auto; }
.day {
  position: relative; display: flex; align-items: flex-start; justify-content: flex-start;
  border-right: 1px solid var(--line); padding: 6px 8px; cursor: pointer;
  background: none; border-top: 0; border-bottom: 0; border-left: 0; text-align: left; font: inherit;
  transition: background .12s;
}
.day:nth-child(7) { border-right: 0; }
.day:hover { background: var(--mud-soft); }
.day .num { font: 600 13px/1 var(--body); color: var(--ink-2); display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; margin: -2px 0 0 -4px; }
.day.out .num { color: #bdb8ad; }
.day.weekend { background: rgba(139, 90, 43, 0.035); }
.day.today .num { background: var(--mud); color: #fff; }
.day.selected { background: var(--mud-soft); box-shadow: inset 0 0 0 2px var(--mud); }
.day.past:not(.out) .num { color: #9d988e; }

.ev {
  position: relative; z-index: 1; align-self: stretch;
  margin: 0 4px; padding: 0 8px; border-radius: 6px; border: 0;
  background: var(--ink); color: var(--paper);
  font: 600 12px/24px var(--body); text-align: left;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer;
  transition: transform .12s, background .12s;
  animation: pop .35s ease both;
}
.ev:hover { background: var(--mud); transform: translateY(-1px); }
.ev.cont-l { border-top-left-radius: 0; border-bottom-left-radius: 0; margin-left: 0; }
.ev.cont-r { border-top-right-radius: 0; border-bottom-right-radius: 0; margin-right: 0; }
.ev.is-past { background: #cfcac0; color: #514d46; }
.ev.is-past:hover { background: var(--ink-2); color: var(--paper); }
.ev.custom { background: var(--mud); }
.ev.dim { opacity: .18; }
.more {
  z-index: 1; margin: 0 4px; border: 0; background: none; padding: 0 6px; text-align: left;
  font: 600 12px/24px var(--body); color: var(--mud); cursor: pointer;
}
@keyframes pop { from { opacity: 0; transform: translateY(4px); } }

/* height:0 + min-height:100% → la agenda mide lo que mida el calendario y su lista hace scroll */
.agenda { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; height: 0; min-height: 100%; display: flex; flex-direction: column; overflow: hidden; }
.agenda-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; gap: 10px; }
.agenda-list { list-style: none; margin: 0 -8px 0 0; padding: 0 8px 0 0; flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.agenda-list li + li { border-top: 1px dashed var(--line); }
.ag {
  width: 100%; display: grid; grid-template-columns: 52px 1fr; gap: 12px; align-items: center;
  padding: 10px 4px; background: none; border: 0; text-align: left; cursor: pointer; border-radius: 10px;
}
.ag:hover { background: var(--mud-soft); }
.ag .d { text-align: center; border: 1.5px solid var(--ink); border-radius: 10px; padding: 5px 0 4px; }
.ag .d b { display: block; font: 400 22px/1 var(--display); }
.ag .d small { font: 500 9px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ag.past { opacity: .55; }
.ag .t { font-weight: 700; line-height: 1.2; font-size: 15px; }
.ag .s { color: var(--muted); font-size: 13px; line-height: 1.3; margin-top: 2px; }
.ag .tag { display: inline-block; font: 500 10px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; background: var(--mud-soft); color: var(--mud); padding: 3px 6px; border-radius: 4px; margin-top: 5px; }
.empty { color: var(--muted); padding: 28px 8px; text-align: center; font-size: 14px; }
.empty b { display: block; font: 400 26px/1 var(--display); color: var(--ink); margin-bottom: 6px; text-transform: uppercase; }


/* ---------- vista calendario / mapa ---------- */
.viewtoggle { display: inline-flex; gap: 3px; padding: 4px; height: 46px; align-items: center; background: var(--paper-2); border-radius: 999px; }
.viewtoggle button {
  display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; cursor: pointer;
  padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--ink-2);
}
.viewtoggle button[aria-selected="true"] { background: var(--ink); color: var(--paper); }

.map-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: stretch; }
.map-wrap { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--paper-2); }
#map { height: clamp(460px, 62vh, 640px); background: #ebe7df; font-family: var(--body); }
#map .leaflet-tile-pane { filter: sepia(.35) saturate(.9) brightness(1.03); }
.map-range {
  position: absolute; left: 12px; top: 12px; z-index: 500; display: flex; gap: 3px; padding: 3px;
  background: color-mix(in srgb, var(--card) 92%, transparent); backdrop-filter: blur(6px);
  border: 1px solid var(--line); border-radius: 999px; box-shadow: 0 4px 16px rgba(0,0,0,.08);
}
.map-range button { border: 0; background: none; padding: 7px 12px; border-radius: 999px; font-weight: 600; font-size: 13px; cursor: pointer; }
.map-range button[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.regions .agenda-list { margin-top: 2px; }
.region {
  width: 100%; display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; align-items: center;
  padding: 10px 6px; border: 0; background: none; text-align: left; cursor: pointer; border-radius: 10px;
}
.region:hover { background: var(--mud-soft); }
.region .rn { font-weight: 700; }
.region .rc { font: 400 22px/1 var(--display); }
.region .rb { grid-column: 1 / -1; height: 5px; border-radius: 3px; background: var(--paper-2); overflow: hidden; }
.region .rb i { display: block; height: 100%; background: var(--ink); border-radius: 3px; transition: width .4s ease; }
.region:hover .rb i { background: var(--mud); }
.map-note { margin: 10px 0 0; text-transform: none; letter-spacing: .02em; }
.map-note:empty { display: none; }

/* marcadores: etiqueta de fecha con pico */
.pin {
  position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  background: var(--ink); color: var(--paper); box-shadow: 0 6px 14px rgba(0,0,0,.25);
  transition: transform .15s ease, background .15s; cursor: pointer;
}
.pin::after { content: ''; position: absolute; bottom: -6px; left: 50%; width: 12px; height: 12px; background: inherit; transform: translateX(-50%) rotate(45deg); border-radius: 2px; z-index: -1; }
.pin b { font: 400 19px/1 var(--display); margin-top: 3px; }
.pin small { font: 500 8px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; margin-top: -8px; }
.pin i { position: absolute; top: -8px; right: -8px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--mud); color: #fff; font: 700 11px/20px var(--body); font-style: normal; text-align: center; border: 2px solid var(--card); }
.pin.past { background: #a9a398; }
.pin.custom { background: var(--mud); }
.pin.approx { outline: 2px dashed var(--mud-2); outline-offset: 2px; }
.leaflet-marker-icon:hover .pin, .leaflet-marker-icon.hl .pin { transform: translateY(-4px) scale(1.08); background: var(--mud); }
.leaflet-marker-icon.hl { z-index: 9999 !important; }
.pop-wrap .leaflet-popup-content-wrapper { border-radius: 12px; background: var(--card); box-shadow: 0 10px 30px rgba(0,0,0,.2); }
.pop-wrap .leaflet-popup-content { margin: 10px; font-family: var(--body); }
.pop-wrap .leaflet-popup-tip { background: var(--card); }
.pop .mono { margin: 0 0 6px; }
.pop button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 7px 8px; border-radius: 8px; cursor: pointer; font-size: 14px; }
.pop button:hover { background: var(--mud-soft); }
.pop button b { color: var(--mud); margin-right: 4px; }
.leaflet-container a.leaflet-popup-close-button { display: none; }
.leaflet-control-zoom a { color: var(--ink) !important; }
.leaflet-control-attribution { font-size: 10px; background: color-mix(in srgb, var(--card) 80%, transparent) !important; }

/* ---------- ficha de evento ---------- */
dialog { border: 0; padding: 0; color: inherit; }
dialog::backdrop { background: rgba(20, 20, 20, .5); backdrop-filter: blur(4px); }
.sheet {
  width: min(560px, calc(100vw - 32px)); border-radius: 20px; background: var(--paper);
  box-shadow: 0 30px 80px rgba(0,0,0,.3); overflow: hidden;
}
.sheet[open] { animation: sheetIn .28s cubic-bezier(.2,.9,.3,1.2); }
@keyframes sheetIn { from { opacity: 0; transform: translateY(24px) scale(.97); } }
.sheet-top { background: var(--ink); color: var(--paper); padding: 22px 24px 20px; position: relative; overflow: hidden; }
.sheet-top::after {
  content: ''; position: absolute; right: -40px; top: -30px; width: 200px; height: 200px;
  background: url('../img/logo-mark.webp') center / contain no-repeat; opacity: .12; filter: invert(1); mix-blend-mode: screen;
}
.sheet-top .mono { color: var(--mud-2); }
.sheet-top h3 { font-size: clamp(30px, 6vw, 44px); margin: 8px 0 6px; position: relative; z-index: 1; }
.sheet-top .org { color: #c9c4ba; font-weight: 600; position: relative; z-index: 1; }
.sheet-close { position: absolute; top: 14px; right: 14px; z-index: 2; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: var(--paper); cursor: pointer; }
.sheet-close:hover { background: var(--mud); }
.sheet-body { padding: 20px 24px 24px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 20px; }
.fact { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.fact small { display: block; font: 500 10px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.fact b { font: 400 22px/1.05 var(--display); text-transform: uppercase; }
.fact.hl b { color: var(--mud); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.actions .btn { font-size: 14px; padding: 9px 14px; }

/* ---------- vídeos ---------- */
.feature { display: grid; grid-template-columns: 1.6fr 1fr; gap: 28px; align-items: end; margin-bottom: 40px; }
.feature h3 { font-size: clamp(28px, 3.4vw, 48px); margin: 12px 0 10px; }
.feature p { color: #b8b3a9; margin: 0 0 18px; }
.thumb {
  position: relative; display: block; width: 100%; border: 0; padding: 0; cursor: pointer;
  border-radius: var(--radius); overflow: hidden; background: #222; aspect-ratio: 16 / 9;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, filter .3s; }
.thumb:hover img { transform: scale(1.04); filter: brightness(.85); }
.thumb .play {
  position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; border-radius: 50%;
  background: var(--paper); color: var(--ink); display: grid; place-items: center;
  transition: transform .2s, background .2s;
}
.thumb:hover .play { transform: scale(1.1); background: var(--mud-2); }
.thumb .badge { position: absolute; left: 10px; top: 10px; font: 500 10px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; background: var(--mud); color: #fff; padding: 5px 7px; border-radius: 5px; }
.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px 20px; }
.vcard .thumb .play { width: 48px; height: 48px; }
.vcard h4 { margin: 12px 0 4px; font-size: 16px; line-height: 1.3; font-weight: 700; }
.vcard .meta { color: #8f8a81; font-size: 13px; }
.shorts-head { display: flex; justify-content: space-between; align-items: baseline; margin: 56px 0 16px; }
.shorts-head h3 { font-size: clamp(32px, 4vw, 52px); }
.shorts { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(170px, 210px); gap: 14px; overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.shorts .thumb { aspect-ratio: 9 / 16; scroll-snap-align: start; }
.shorts .cap { margin: 8px 2px 0; font-size: 14px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.v-empty { border: 1.5px dashed #3d3d3d; border-radius: var(--radius); padding: clamp(32px, 6vw, 64px); display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; }
.v-empty img { width: 120px; filter: invert(1); mix-blend-mode: screen; opacity: .9; }
.v-empty h3 { font-size: clamp(30px, 4vw, 48px); margin-bottom: 10px; }
.v-empty p { color: #b8b3a9; margin: 0 0 18px; max-width: 46ch; }

.player { background: transparent; width: min(1100px, calc(100vw - 32px)); overflow: visible; }
.player.vertical { width: min(420px, calc(100vw - 32px)); }
.player-frame { aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; }
.player.vertical .player-frame { aspect-ratio: 9 / 16; max-height: 86vh; margin: 0 auto; }
.player-frame iframe { width: 100%; height: 100%; border: 0; }
.player-close { position: absolute; top: -44px; right: 0; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--paper); color: var(--ink); cursor: pointer; font-size: 16px; }

/* ---------- redes ---------- */
.tagnote { margin: 16px 0 0; font-size: 14px; color: var(--muted); }
.tagnote a { color: var(--mud); font-weight: 600; }

.follow { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.follow-card {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: 1fr auto; gap: 6px 18px;
  padding: 24px; border-radius: var(--radius); text-decoration: none; min-height: 190px;
  border: 1.5px solid var(--ink); background: var(--card); position: relative; overflow: hidden;
  transition: transform .2s, background .2s, color .2s;
}
.follow-card:hover { transform: translateY(-3px); background: var(--ink); color: var(--paper); }
.follow-card.ig:hover { background: var(--mud); border-color: var(--mud); }
.follow-icon { width: 56px; height: 56px; border-radius: 16px; background: var(--ink); color: var(--paper); display: grid; place-items: center; }
.follow-card:hover .follow-icon { background: var(--paper); color: var(--ink); }
.follow-txt { display: flex; flex-direction: column; gap: 4px; }
.follow-txt b { font: 400 clamp(30px, 3.4vw, 44px)/1 var(--display); text-transform: uppercase; }
.follow-txt > span:last-child { color: var(--muted); }
.follow-card:hover .follow-txt > span:last-child, .follow-card:hover .mono { color: inherit; opacity: .8; }
.follow-go { grid-column: 2; font-weight: 700; }
.tagline { margin: 22px 0 0; color: var(--ink-2); font-size: 17px; }
.tagline b { color: var(--mud); }

/* ---------- proponer evento ---------- */
.kicker .upd { color: var(--muted); }
.propose-cta {
  grid-column: 3; height: 46px; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 0 5px 0 18px; border-radius: 999px; cursor: pointer; text-align: left;
  border: 1.5px dashed var(--mud); background: var(--mud-soft); transition: background .15s, border-style .15s;
}
.propose-cta:hover { border-style: solid; background: rgba(139, 90, 43, .2); }
.pc-txt { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.pc-txt b { font-size: 14px; }
.pc-txt small { font-size: 12px; color: var(--ink-2); }
.pc-btn { flex: none; background: var(--ink); color: var(--paper); border-radius: 999px; padding: 9px 14px; font-weight: 700; font-size: 14px; transition: background .15s; }
.propose-cta:hover .pc-btn { background: var(--mud); }
.pform { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-height: 64vh; overflow-y: auto; }
.pform label { display: grid; gap: 5px; font-weight: 600; font-size: 13px; }
.pform .full { grid-column: 1 / -1; }
.pform input, .pform select, .pform textarea {
  font: inherit; font-weight: 400; font-size: 15px; padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--card); color: var(--ink); min-width: 0;
}
.pform input:focus, .pform select:focus, .pform textarea:focus { outline: none; border-color: var(--ink); }
.pform textarea { resize: vertical; }
.pform .check { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; color: var(--ink-2); }
.pform .check input { margin-top: 3px; accent-color: var(--mud); }
.pform .hp { position: absolute; left: -9999px; }
.pform-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.pform-msg { font-weight: 600; color: var(--mud); }

/* ---------- patrocinadores ---------- */
.sponsors { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.sp-logo { display: grid; place-items: center; height: 110px; padding: 18px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.sp-logo img { max-width: 100%; max-height: 100%; object-fit: contain; filter: grayscale(1); opacity: .85; transition: filter .2s, opacity .2s; }
a.sp-logo:hover img { filter: none; opacity: 1; }
.sp-empty { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 6px; align-items: center; text-align: center; padding: clamp(28px, 5vw, 52px) 20px; border: 1.5px dashed var(--line); border-radius: var(--radius); color: var(--muted); }
.sp-empty b { font: 400 clamp(22px, 2.6vw, 32px)/1.1 var(--display); text-transform: uppercase; color: var(--ink-2); }
.sponsor-cta { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-top: 22px; }
.sponsor-cta p { margin: 0; color: var(--ink-2); font-size: 17px; }

/* ---------- páginas de eventos (generadas para buscadores) ---------- */
.evp-alllink { display: inline-block; margin-top: 10px; font-weight: 600; color: var(--mud); text-decoration: none; }
.evp-alllink:hover { text-decoration: underline; }
.evp { max-width: 900px; }
.evp h1 { font-size: clamp(44px, 7vw, 88px); margin: 8px 0 18px; }
.evp .lede { font-size: 18px; color: var(--ink-2); max-width: 62ch; margin: 0 0 8px; }
.evp .lede a, .evp-back a, .evp-facts a { color: var(--mud); font-weight: 600; }
.crumbs { margin-bottom: 18px; }
.crumbs a { color: inherit; }
.evp-sub { font-size: clamp(28px, 3.4vw, 40px); margin: 44px 0 14px; }
.evp-month { font-size: clamp(24px, 2.8vw, 32px); margin: 32px 0 10px; display: flex; align-items: baseline; gap: 10px; }
.evp-month small { font: 500 12px/1 var(--mono); color: var(--muted); }
.evp-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.evp-row { display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: center; padding: 10px 14px 10px 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); text-decoration: none; transition: border-color .15s, transform .15s; }
.evp-row:hover { border-color: var(--ink); transform: translateX(2px); }
.evp-row.past { opacity: .6; }
.evp-row .d { display: flex; flex-direction: column; align-items: center; line-height: 1; padding: 6px 0; border-radius: 10px; background: var(--ink); color: var(--paper); }
.evp-row .d b { font: 400 24px/1 var(--display); margin: 2px 0; }
.evp-row .d small { font: 500 10px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.evp-row .t { display: block; font-weight: 700; }
.evp-row .s { display: block; font-size: 14px; color: var(--muted); }
.evp-zones { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.evp-zones a { display: inline-flex; gap: 6px; align-items: baseline; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 14px; background: var(--card); }
.evp-zones a:hover, .evp-zones a[aria-current] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.evp-zones small { font: 500 11px/1 var(--mono); opacity: .7; }
.evp-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin: 0 0 22px; }
.evp-facts div { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; background: var(--card); }
.evp-facts dt { font: 500 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 6px; }
.evp-facts dd { margin: 0; font-weight: 700; }
.evp-facts em { font-weight: 400; color: var(--muted); font-style: normal; }
.evp-desc { font-size: 18px; color: var(--ink-2); max-width: 62ch; }
.evp-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 8px; }
.evp-actions .btn { text-decoration: none; }
.evp-past { margin-top: 36px; }
.evp-past summary { cursor: pointer; font-weight: 700; margin-bottom: 12px; }
.evp-cta { margin-top: 40px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-weight: 600; }
.evp-cta .btn { text-decoration: none; }
.evp-empty { color: var(--muted); }
.evp-back { margin-top: 36px; }
.footer-zones { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; max-width: 760px; margin: 20px auto 0; font-size: 13px; }
.footer-zones a { color: var(--muted); text-decoration: none; }
.footer-zones a:hover { color: var(--ink); text-decoration: underline; }
.footer .small a { color: inherit; }

/* ---------- footer ---------- */
.footer-social { display: flex; justify-content: center; gap: 10px; margin-top: 16px; }
.footer-social .icon-btn { text-decoration: none; }
.footer { text-align: center; padding: 56px var(--gutter) 40px; }
.footer img { width: 260px; height: auto; margin: 0 auto 12px; mix-blend-mode: multiply; }
.footer .small { color: var(--muted); font-size: 14px; margin-top: 10px; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .cal-layout { grid-template-columns: 1fr; }
  .agenda { height: auto; min-height: 0; max-height: 520px; }
  .map-layout { grid-template-columns: 1fr; }
  .filters { grid-template-columns: auto minmax(0, 1fr); }
  .propose-cta { grid-column: 1 / -1; }
  .regions { height: auto; min-height: 0; max-height: 420px; }
  .feature { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; }
  .season { grid-template-columns: repeat(6, 1fr); }
  .season button { height: 58px; }
}
@media (max-width: 640px) {
  .nav > a:not(.btn) { display: none; }
  .section-head { align-items: flex-start; }
  .cal-controls { width: 100%; }
  .month-label { flex: 1; }
  /* En móvil el mes se ve como puntos; el detalle va en la agenda */
  .cal-dow span { padding: 8px 0; text-align: center; }
  .week { min-height: 54px; }
  .week-evs { grid-auto-rows: 5px; row-gap: 3px; padding: 34px 0 8px; }
  .day { padding: 4px 0; justify-content: center; }
  .day .num { margin: 0; width: 26px; height: 26px; }
  .week-evs > * { pointer-events: none; }
  .ev { font-size: 0; line-height: 5px; padding: 0; margin: 0 4px; border-radius: 3px; animation: none; }
  .ev.cont-l { margin-left: 0; } .ev.cont-r { margin-right: 0; }
  .more { display: none; }
  .facts { grid-template-columns: 1fr 1fr; }
  #map { height: 420px; }
  .map-range { left: 8px; right: 8px; top: 8px; }
  .map-range button { padding: 7px 8px; font-size: 12px; flex: 1; }
  .filters { grid-template-columns: 1fr; }
  .viewtoggle { justify-self: start; }
  .follow { grid-template-columns: 1fr; }
  .pform { grid-template-columns: 1fr; max-height: 70vh; }
  .v-empty { grid-template-columns: 1fr; text-align: center; }
  .v-empty img { margin: 0 auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
.evp .crumbs + .kicker { margin-bottom: 0; }
.crumbs { overflow-wrap: anywhere; }
.evp h1 { overflow-wrap: anywhere; hyphens: auto; }
/* ---------- legal ---------- */
.legal h3 { font-size: 22px; margin: 26px 0 8px; }
.legal p, .legal li { color: var(--ink-2); line-height: 1.6; max-width: 70ch; }
.legal ul { padding-left: 20px; }
.legal a { color: var(--mud); }
.legal-toc { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0 0; }
.legal-toc a { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 14px; background: var(--card); color: var(--ink); }
.legal-toc a:hover { background: var(--ink); color: var(--paper); }
.pform .check a { color: var(--mud); }
