/* ============================================================
   AGENDA PÚBLICA — spositives.com/agenda
   Réplica manual del sistema visual de la Agenda privada
   (spositives-app/src/pages/Agenda.tsx y AgendaEvent.tsx).
   Se apoya en los tokens de /colors_and_type.css (cargado antes que este
   archivo en cada página). Si cambia el look de la app, este archivo hay
   que actualizarlo a mano — no hay sistema de diseño compartido entre
   los dos repos todavía.
   ============================================================ */

html, body { background: var(--bg); color: var(--fg); overflow-x: hidden; }
body { font-family: var(--font-body); }
*::selection { background: var(--accent); color: var(--fg); }

/* Header: usa literalmente header.site/.wordmark de colors_and_type.css (no
   una copia local) — así el layout es idéntico a home/Barcelona/Madrid por
   construcción, no por copiar valores a mano. El link "← Inicio/Agenda" usa
   .head-nav-link, misma tipografía y color que el resto de la navegación. */

.a-wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px 100px; }
@media (min-width: 768px) { .a-wrap { padding: 0 48px 120px; } }

/* ---------- Cabecera de sección Agenda ---------- */
.a-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 40px 0 22px; flex-wrap: wrap; }
.a-title { font-family: var(--font-display); font-size: 44px; line-height: 1; letter-spacing: 0.04em; color: var(--fg); margin: 0; font-weight: 400; }
.a-market { display: flex; gap: 8px; padding-bottom: 6px; }
.a-market button {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 13px; border: 2px solid var(--fg);
  background: transparent; color: var(--fg);
  font-family: var(--font-body); font-weight: 700; font-size: 12px;
  letter-spacing: 0.12em; text-transform: uppercase; line-height: 1;
  cursor: pointer;
}
.a-market button .sq { width: 7px; height: 7px; background: var(--accent); flex-shrink: 0; opacity: 0.45; }
.a-market button[aria-pressed="true"] { background: var(--fg); color: #000; }
.a-market button[aria-pressed="true"] .sq { opacity: 1; }
.a-rule { height: 6px; background: var(--fg); }

/* ---------- Listado de eventos ---------- */
.a-list { display: flex; flex-direction: column; }
.a-card {
  display: grid; grid-template-columns: 220px minmax(0,1fr) auto;
  align-items: center; gap: 26px; padding: 24px 0;
  border-bottom: var(--border-thick);
  text-decoration: none; color: inherit;
  background: var(--bg); transition: background 80ms linear;
}
.a-card:hover { background: #0A0A0A; }
.a-card:hover .a-card-title { color: var(--accent); }
.a-card:hover .a-count-num { color: var(--accent-hot); }
.a-card:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.a-card-flyer { width: 220px; aspect-ratio: 16/9; border: var(--border-thick); position: relative; overflow: hidden; flex-shrink: 0; background: #0A0A0A; }
.a-card-flyer img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.a-card-body { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.a-card-date { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.a-card-date b { color: var(--fg); font-weight: 700; }
.a-card-title { font-family: var(--font-display); font-size: clamp(26px, 3vw, 42px); line-height: 0.9; color: var(--fg); margin: 0 0 12px; font-weight: 400; transition: color 80ms linear; }
.a-card-venue { display: flex; align-items: center; gap: 8px; font-family: var(--font-body); font-size: 15px; color: var(--fg-dim); }
.a-card-venue svg { flex-shrink: 0; color: var(--muted); }
.a-card-sep { color: #666; }
.a-card-metrics { display: flex; flex-direction: column; align-items: flex-end; align-self: center; }
.a-count-row { display: flex; align-items: center; gap: 10px; }
.a-count-num { font-family: var(--font-display); font-size: 58px; line-height: 0.76; color: var(--accent); letter-spacing: -0.01em; transition: color 80ms linear; }
.a-count-lab { font-family: var(--font-display); font-size: 22px; line-height: 0.84; color: var(--fg); text-transform: uppercase; }

.a-empty { font-family: var(--font-body); font-size: 15px; color: var(--muted); padding: 40px 0; margin: 0; text-align: center; }
.a-skeleton { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); padding: 40px 0; text-align: center; }

@media (max-width: 767px) {
  .a-card { grid-template-columns: 1fr; gap: 16px; }
  .a-card-flyer { width: 100%; max-height: 300px; }
  .a-card-title { font-size: 34px; }
  .a-card-metrics { align-items: flex-start; align-self: stretch; }
  .a-count-num { font-size: 30px; }
  .a-count-lab { font-size: 15px; }
}
@media (min-width: 768px) and (max-width: 1024px) {
  .a-card { grid-template-columns: 200px minmax(0,1fr); gap: 22px; }
  .a-card-flyer { width: 200px; }
  .a-card-metrics { grid-column: 1 / -1; align-items: flex-start; align-self: start; margin-top: 6px; }
}

/* ---------- Detalle de evento ---------- */
.a-det-wrap { max-width: 680px; margin: 0 auto; padding: 0 18px; }
@media (min-width: 768px) { .a-det-wrap { max-width: 1080px; padding: 0 48px; } }
.a-det-title { font-family: var(--font-display); font-size: clamp(40px, 5.2vw, 74px); line-height: 0.92; letter-spacing: -0.01em; color: var(--fg); margin: 36px 0 0; font-weight: 400; overflow-wrap: break-word; }
.a-det-img { margin-top: 28px; border: var(--border-thick); background: #0A0A0A; max-height: 560px; overflow: hidden; display: flex; justify-content: center; align-items: center; }
.a-det-img img { width: 100%; max-height: 560px; object-fit: contain; display: block; }

.a-facts { display: grid; grid-template-columns: 1fr 1fr; border: var(--border-thick); margin-top: 34px; }
.a-fact { padding: 22px 22px 24px; }
.a-fact + .a-fact { border-left: var(--border-thick); }
.a-fact-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.a-fact-value { font-family: var(--font-display); font-size: 34px; line-height: 0.92; color: var(--fg); }
.a-fact-sub { font-family: var(--font-body); font-size: 14px; color: var(--fg-dim); margin-top: 8px; }
.a-venue-link { display: inline-flex; align-items: baseline; gap: 9px; color: var(--fg); text-decoration: none; transition: color 80ms linear; }
.a-venue-link:hover { color: var(--accent-hot); }
.a-venue-link .pin { align-self: center; color: var(--fg); }
@media (max-width: 1023px) {
  .a-facts { grid-template-columns: 1fr; }
  .a-fact + .a-fact { border-left: none; border-top: var(--border-thick); }
}

.a-desc { font-family: var(--font-body); font-size: 17px; line-height: 1.6; color: var(--fg-dim); max-width: 660px; margin-top: 44px; }
.a-desc p { margin: 0 0 16px; }
.a-desc h4 { font-family: var(--font-display); font-weight: 400; font-size: 28px; line-height: 1; letter-spacing: 0.01em; color: var(--fg); text-transform: uppercase; margin: 30px 0 12px; }
.a-desc strong { color: var(--fg); font-weight: 700; }
.a-desc em { color: #AAA; }
.a-desc ul { margin: 0 0 16px; padding-left: 0; list-style: none; }
.a-desc li { position: relative; padding-left: 20px; margin-bottom: 7px; }
.a-desc li::before { content: ''; position: absolute; left: 0; top: 9px; width: 7px; height: 7px; background: var(--accent); }
.a-desc a { color: var(--fg); text-decoration: underline; }

.a-tickets {
  display: inline-flex; align-items: center; gap: 16px;
  margin-top: 36px; min-height: 60px; white-space: nowrap;
  background: var(--fg); color: #000; border: var(--border-thick);
  font-family: var(--font-display); font-size: 30px;
  letter-spacing: 0.02em; text-transform: uppercase;
  padding: 0 24px; cursor: pointer; text-decoration: none;
  box-shadow: var(--shadow-hard-r);
  transition: background 80ms linear, color 80ms linear;
}
.a-tickets:hover { background: var(--accent); color: var(--fg); box-shadow: 4px 4px 0 0 var(--fg); }
.a-tickets:active { transform: translate(2px,2px); box-shadow: 2px 2px 0 0 var(--fg); }

/* Quién va — versión pública: solo el contador, sin lista de perfiles */
.a-social { margin-top: 50px; border-top: var(--border-mega); padding-top: 22px; }
.a-social-h { font-family: var(--font-display); font-size: clamp(34px, 5vw, 60px); line-height: 0.88; color: var(--fg); margin: 0; font-weight: 400; }
.a-social-count { display: flex; align-items: last baseline; gap: 16px; margin: 24px 0 8px; flex-wrap: wrap; }
.a-social-num { font-family: var(--font-display); font-size: clamp(72px, 11vw, 132px); line-height: 0.78; color: var(--accent); letter-spacing: -0.02em; }
.a-social-lab { font-family: var(--font-display); font-size: clamp(26px, 3.4vw, 40px); line-height: 0.9; color: var(--fg); }

.a-join {
  border-left: 6px solid var(--accent); padding: 2px 0 2px 20px;
  margin-top: 30px; max-width: 620px;
}
.a-join p.lead { font-family: var(--font-body); font-weight: 700; font-size: 18px; line-height: 1.4; color: var(--fg); margin: 0; }
.a-join p.fine { font-family: var(--font-body); font-size: 14px; line-height: 1.5; color: var(--muted); margin-top: 9px; }
.a-join-cta {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 20px;
  min-width: 280px; min-height: 60px; white-space: nowrap; margin-top: 24px;
  background: var(--accent); color: var(--fg); border: var(--border-thick) solid var(--accent);
  font-family: var(--font-display); font-size: 30px;
  letter-spacing: 0.02em; text-transform: uppercase;
  padding: 0 24px; cursor: pointer; text-decoration: none;
  box-shadow: var(--shadow-hard);
  transition: background 80ms linear;
}
.a-join-cta:hover { background: var(--accent-hot); }
.a-join-cta:active { transform: translate(2px,2px); box-shadow: 2px 2px 0 0 var(--fg); }

.a-loading, .a-notfound { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); padding: 80px 20px; text-align: center; }
.a-notfound a { color: var(--fg); }

/* ---------- Footer (simplificado; consistente en tokens con el resto del sitio) ---------- */
.a-footer { border-top: var(--border-mega); padding: 40px 20px 60px; margin-top: 60px; }
.a-footer .inner { max-width: 1080px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.a-footer .wordmark-foot img { height: 22px; display: block; }
.a-footer .legal-links { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.a-footer .legal-links a { font-family: var(--font-body); font-size: 12px; color: var(--muted); text-decoration: none; }
.a-footer .legal-links a:hover { color: var(--fg); text-decoration: underline; }
.a-footer .copyright { font-family: var(--font-body); font-size: 12px; color: #666; margin: 0; }

/* ---------- Cookie banner (idéntico al de index.html) ---------- */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 100;
  box-sizing: border-box; background: #000; border-top: 3px solid #FFF;
  padding: 14px 16px; display: none; flex-direction: column; gap: 12px;
}
.cookie-banner.is-open { display: flex; }
.cookie-banner .text { font-family: 'Inter', sans-serif; font-size: 13px; line-height: 1.5; color: #FFF; min-width: 0; text-wrap: pretty; }
.cookie-banner .text a { color: #FFF; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 2px; }
.cookie-banner .text a:hover, .cookie-banner .text a:active { color: #CC0000; }
.cookie-banner .actions { display: flex; gap: 8px; width: 100%; }
.cookie-banner .btn {
  flex: 1; font-family: 'Bebas Neue', sans-serif; font-size: 14px; line-height: 1;
  letter-spacing: 0.08em; text-transform: uppercase; border-radius: 0;
  min-height: 44px; padding: 0 12px; cursor: pointer; border: 2px solid #FFF;
  background: #000; color: #FFF; transition: background 80ms linear, color 80ms linear;
}
.cookie-banner .btn.accept { background: #CC0000; color: #FFF; }
.cookie-banner .btn.accept:hover { background: #FF1A1A; }
.cookie-banner .btn.essential:hover { background: #FFF; color: #000; }
@media (min-width: 600px) {
  .cookie-banner { flex-direction: row; align-items: center; justify-content: space-between; padding: 16px 24px; gap: 16px; }
  .cookie-banner .actions { width: auto; }
  .cookie-banner .btn { flex: none; padding: 0 20px; }
}

.u-es, .u-en { }
html[lang="en"] .u-es { display: none !important; }
html[lang="es"] .u-en { display: none !important; }
