/* =========================================================
   EVENTOSK — estilos base
   Concepto visual: cada nota es un boleto de evento (ticket
   stub) con perforación real hecha en CSS puro.
   ========================================================= */

:root {
  --bg: #14121f;
  --bg-alt: #1a1728;
  --card-bg: #1c1830;
  --card-bg-hover: #221c3a;
  --stub-line: #4b4470;
  --text: #f4f1fa;
  --text-muted: #a79fc4;
  --text-faint: #746c93;

  --cat-concierto: #ff2e7e;
  --cat-firma: #ffc93c;
  --cat-entrevista: #29e5c6;
  --cat-teatro: #b98cff;

  --radius: 16px;
  --max-width: 1080px;

  --font-display: "Unbounded", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --font-mono: "Space Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }

html { color-scheme: dark; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

img { max-width: 100%; display: block; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- Header ---------- */

.site-header {
  padding: 2.5rem 0 1.5rem;
  border-bottom: 1px solid var(--stub-line);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--text);
}

.logo-accent { color: var(--cat-concierto); }

.tagline {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-faint);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 0.35rem;
}

/* ---------- Ticker / marquesina ---------- */

.ticker {
  overflow: hidden;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--stub-line);
  padding: 0.55rem 0;
}

.ticker-track {
  display: inline-flex;
  white-space: nowrap;
  animation: scroll-left 32s linear infinite;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.ticker-track span {
  padding: 0 1.75rem;
  border-right: 1px solid var(--stub-line);
}

@keyframes scroll-left {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
}

/* ---------- Filtros ---------- */

.filters-bar {
  padding: 1.5rem 0 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.chip {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--stub-line);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.chip:hover { color: var(--text); border-color: var(--text-muted); }

.chip.active {
  color: var(--bg);
  background: var(--chip-color, var(--text));
  border-color: var(--chip-color, var(--text));
  font-weight: 700;
}

.search-input {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  background: var(--bg-alt);
  border: 1px solid var(--stub-line);
  color: var(--text);
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  min-width: 180px;
}

.search-input:focus {
  outline: 2px solid var(--text-muted);
  outline-offset: 2px;
}

.search-input::placeholder { color: var(--text-faint); }

/* ---------- Grid de boletos ---------- */

.ticket-grid {
  padding: 2rem 0 4rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.empty-state {
  padding: 3rem 0;
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

/* ---------- Tarjeta-boleto ---------- */

.ticket {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--card-bg);
  border: 1px solid var(--stub-line);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--text);
  transition: background 0.15s ease, transform 0.15s ease;
}

.ticket:hover {
  background: var(--card-bg-hover);
  transform: translateY(-2px);
}

.ticket-top {
  padding: 1.25rem 1.25rem 1.1rem;
  border-top: 4px solid var(--cat-color, var(--text-muted));
}

.ticket-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.ticket-cat { color: var(--cat-color, var(--text-muted)); font-weight: 700; }
.ticket-date { color: var(--text-faint); }

.ticket-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.3;
  margin: 0 0 0.6rem;
}

.ticket-location {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0;
}

/* Perforación */
.ticket-perf {
  position: relative;
  margin: 0;
  border-top: 2px dashed var(--stub-line);
}

.ticket-perf::before,
.ticket-perf::after {
  content: "";
  position: absolute;
  top: -12px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg);
}

.ticket-perf::before { left: -12px; }
.ticket-perf::after { right: -12px; }

.ticket-bottom {
  padding: 1.1rem 1.25rem 1.35rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.ticket-summary {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
  flex: 1;
}

.ticket-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-faint);
  border: 1px solid var(--stub-line);
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
}

.ticket-link {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--cat-color, var(--text));
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--stub-line);
  padding: 2rem 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-faint);
}

/* ---------- Página de nota individual ---------- */

.post-header {
  padding: 3rem 0 1.5rem;
  border-bottom: 1px solid var(--stub-line);
}

.back-link {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 1.5rem;
}

.back-link:hover { color: var(--text); }

.post-cat {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--cat-color, var(--text-muted));
}

.post-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  line-height: 1.25;
  margin: 0.6rem 0 1rem;
}

.post-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.post-body {
  padding: 2rem 0 4rem;
  max-width: 680px;
}

.post-body h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-top: 2rem;
}

.post-body h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-top: 1.5rem;
}

.post-body p { color: var(--text); }

.post-body blockquote {
  margin: 1.5rem 0;
  padding: 0.75rem 1.25rem;
  border-left: 3px solid var(--cat-color, var(--text-muted));
  background: var(--bg-alt);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.post-body ul, .post-body ol { padding-left: 1.25rem; }

.post-body code {
  font-family: var(--font-mono);
  background: var(--bg-alt);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  font-size: 0.85em;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
}
