/* Sitio público. Va después de app.css, que trae la base y los componentes compartidos con el panel
   (botones, campos, tarjetas, la entrada): acá se les cambian los tokens y se suman los componentes que
   sólo usa el público. Todo aplica dentro de body.pub.

   Idea: el programa impreso de una fiesta en la playa. Papel arena, tinta casi negra y un solo color de
   imprenta (azul, como un riso). Lo que se vende es una entrada, así que las piezas son de papelería:
   el talón con los datos de la fecha y su borde troquelado, los precios con línea de puntos como en una
   carta, los títulos de sección bajo un filete grueso como en un diario y el total con doble raya como en
   un ticket de caja. Esquinas casi rectas, sin sombras ni brillos.

   Una fecha con fondo propio (el panel lo propone del flyer) es "de noche": modules/events/palette.js manda
   fondo, texto y grises en el style del <body> y layout.js le pone la clase .night. Por eso todo color sale
   de una variable y las líneas se mezclan desde --text.
   Para el celular: nada de blur, sombras ni fondos fijos; las animaciones sólo mueven transform/opacity y
   se apagan con prefers-reduced-motion. */

body.pub {
  --bg: #EFE8DA;
  --bg-2: #E8E0CF;
  --surface: #F7F3EA;
  --surface-2: #E2D9C6;
  --text: #17150F;
  --dim: #5A5346;
  --dim-2: #635B4E;
  --accent: #2338A8;
  --accent-2: #1A2A86;
  --accent-ink: #FFFFFF;
  --rule: color-mix(in srgb, var(--text) 14%, transparent);
  --rule-2: color-mix(in srgb, var(--text) 32%, transparent);
  --paper-qr: #FFFDF8;
  --f-sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "Geist Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --f-display: "Instrument Serif", "Times New Roman", Georgia, serif;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --top: 60px;

  /* Tokens de los componentes compartidos de app.css */
  --ink: var(--text);
  --muted: var(--dim);
  --line: var(--rule-2);
  --r-sm: 3px;
  --r: 4px;
  --r-btn: 3px;
  --r-pill: 2px;
  --btn-weight: 600;
  --field: var(--surface);
  --field-focus: var(--accent);
  --field-ring: color-mix(in srgb, var(--accent) 18%, transparent);
  --focus: var(--accent);
  --card-shadow: none;
  --ticket-bg: var(--surface);
  --ticket-ink: var(--text);
  --ticket-qr: var(--paper-qr);

  color-scheme: light;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-sans);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
/* De noche: controles nativos oscuros y colores de estado claros (auditoría F-Q-1: contraste en el checkout) */
body.pub.night { color-scheme: dark; --ok: #8BE3AE; --bad: #FF9C8C; --warn: #FFCB7A; --ok-bg: rgba(70, 200, 120, .12); --bad-bg: rgba(255, 90, 70, .12); --warn-bg: rgba(255, 180, 60, .12); }

body.pub [hidden] { display: none !important; }
body.pub ::selection { background: var(--accent); color: var(--accent-ink); }
body.pub a { color: var(--text); text-decoration-color: var(--rule-2); text-underline-offset: 3px; text-decoration-thickness: 1px; }
body.pub a:hover { text-decoration-color: currentColor; }
body.pub :focus-visible { outline-width: 2px; outline-offset: 3px; }
body.pub h1, body.pub h2 { font-family: var(--f-display); font-weight: 400; letter-spacing: -.02em; line-height: .95; }
body.pub h3 { font-weight: 600; letter-spacing: -.01em; line-height: 1.2; }
body.pub h1 { font-size: clamp(2.8rem, 7vw, 4.6rem); }
body.pub .mono { font-family: var(--f-mono); letter-spacing: 0; }
body.pub .wrap { max-width: 1240px; }
body.pub .page-pad { padding-top: clamp(40px, 8vw, 96px); padding-bottom: 96px; }
body.pub .skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--text); color: var(--bg); font-weight: 600; border-radius: var(--r-sm); }
body.pub .skip:focus { top: 12px; }
.pub .tag { font-size: .9rem; color: var(--dim); }
.pub .muted { color: var(--dim); }

/* "Bisonte presenta", "Venta oficial de entradas": una línea de crédito, en el color de imprenta */
.pub .eyebrow { margin: 0; font-size: .95rem; font-weight: 500; color: var(--accent); }

/* ---------- Header: barra de papel con un filete abajo al bajar ---------- */
.pub .topbar { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid transparent; transition: border-color .2s; }
.pub .topbar.scrolled { border-bottom-color: var(--text); }
.pub .topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: var(--top); }
/* Firma ONTICKETS × BISONTE */
.pub .brand { flex-direction: row; align-items: center; gap: .5em; min-height: 44px; color: var(--text); white-space: nowrap; }
.pub .brand b { font-size: .8rem; font-weight: 700; letter-spacing: .16em; margin-right: -.16em; }
.pub .brand i { color: var(--accent); font-style: normal; font-weight: 400; font-size: 1rem; line-height: 0; }
.pub .topbar nav { display: flex; align-items: center; gap: 4px; }
.pub .topbar nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--text); text-decoration: none; font-weight: 500; font-size: .875rem; }
.pub .topbar nav a:hover { text-decoration: underline; }
.pub .topbar nav a.nav-cta { border: 1px solid var(--text); border-radius: var(--r-btn); min-height: 40px; }
.pub .topbar nav a.nav-cta:hover { background: var(--text); color: var(--bg); text-decoration: none; }
@media (max-width: 520px) {
  .pub .brand { gap: .35em; }
  .pub .brand b { font-size: .68rem; letter-spacing: .1em; margin-right: -.1em; }
  .pub .topbar nav a:not(.nav-cta) { display: none; }
  .pub .topbar nav a.nav-cta { padding: 0 10px; font-size: .8rem; }
}

/* ---------- Botones y formularios ---------- */
.pub .btn { min-height: 52px; padding: 0 26px; font-size: .95rem; letter-spacing: 0; white-space: nowrap; transition: background .2s, color .2s, transform .15s; }
.pub .btn .arrow { transition: transform .25s var(--ease); }
.pub .btn:hover .arrow { transform: translateX(4px); }
.pub .btn.ghost { color: var(--text); box-shadow: inset 0 0 0 1px var(--text); }
.pub .btn.ghost:hover { background: var(--text); color: var(--bg); }
.pub .btn.dark { background: var(--text); color: var(--bg); }
.pub .btn.dark:hover { background: var(--accent); color: var(--accent-ink); }
.pub .btn.sm { min-height: 44px; padding: 0 16px; font-size: .875rem; }
.pub .btn[disabled] { opacity: 1; background: var(--surface-2); color: var(--dim-2); }
.pub .linkbtn { color: var(--dim); text-decoration-color: var(--rule-2); text-underline-offset: 3px; }
.pub .linkbtn:hover { color: var(--text); }
.pub label { font-weight: 500; font-size: .85rem; }
.pub .hint { color: var(--dim); font-weight: 400; }
.pub input, .pub select, .pub textarea { border-width: 1px; border-color: var(--rule-2); color: var(--text); transition: border-color .2s, box-shadow .2s; }
.pub input:hover, .pub select:hover, .pub textarea:hover { border-color: var(--text); }
.pub input::placeholder, .pub textarea::placeholder { color: var(--dim-2); }
.pub .check { font-weight: 400; color: var(--dim); font-size: .92rem; }
.pub .check a { color: var(--text); }
.pub .err { color: var(--bad); font-weight: 500; }
.pub .field.has-err input { border-color: var(--bad); }
.pub fieldset { border-color: var(--rule); }

/* ---------- Avisos, tarjetas y etiquetas ---------- */
.pub .alert { border-left: 3px solid; border-radius: 0 var(--r-sm) var(--r-sm) 0; font-weight: 500; }
.pub .alert.ok { background: var(--ok-bg); color: var(--ok); }
.pub .alert.bad { background: var(--bad-bg); color: var(--bad); }
.pub .alert.warn { background: var(--warn-bg); color: var(--warn); }
.pub .alert.info { background: var(--surface); color: var(--text); border-color: var(--accent); }
.pub .alert a { color: inherit; }
.pub .card { background: var(--surface); border: 1px solid var(--rule); }
.pub .pill { font-weight: 500; font-size: .74rem; padding: 2px 8px; background: var(--surface-2); color: var(--text); }
.pub .pill.ok { background: var(--ok-bg); color: var(--ok); }
.pub .pill.bad { background: var(--bad-bg); color: var(--bad); }
.pub .pill.warn { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 1px currentColor; }
.pub .pill.info { background: var(--accent); color: var(--accent-ink); }
.pub .section-title { margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--text); font-weight: 600; font-size: .95rem; color: var(--text); }
.pub details > summary { cursor: pointer; }
.pub pre.bank { white-space: pre-wrap; font: inherit; background: var(--bg-2); border: 1px solid var(--rule); padding: 14px; border-radius: var(--r-sm); }
.pub .btn.danger { background: #B3261E; color: #fff; }
.pub .summary-line { padding: 7px 0; }
.pub .summary-line span:last-child { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.pub .summary-line.discount { color: var(--ok); }
/* Total como en un ticket de caja: doble raya arriba */
.pub .summary-line.total { border-top: 3px double var(--text); margin-top: 10px; padding-top: 12px; font-weight: 600; font-size: 1.1rem; }

/* ---------- Animaciones de entrada (sólo con JS: sin JS se ve todo) ---------- */
.js .pub .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 60ms); }
.js .pub .reveal.in { opacity: 1; transform: none; }

/* ---------- Secciones: el título bajo un filete grueso, como en un diario ---------- */
.pub .blk { padding: clamp(56px, 8vw, 96px) 0 0; }
.pub .blk-title { margin: 0 0 24px; padding-top: 14px; border-top: 3px solid var(--text); font-size: clamp(2.2rem, 4.4vw, 3.4rem); }

/* Troquel: fila de agujeritos, el borde por donde se corta una entrada */
.pub .ev-stub::before, .pub .buy-panel .card::before, .pub footer.site::before {
  content: ''; display: block; height: 4px;
  background: radial-gradient(circle, var(--text) 1.3px, transparent 1.8px) 0 50% / 9px 4px repeat-x;
}

/* ---------- Portada del evento ---------- */
.pub .ev-hero { position: relative; overflow: hidden; }
.pub .ev-hero__inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 clamp(28px, 5vw, 72px); padding-top: clamp(36px, 7vw, 96px); padding-bottom: clamp(28px, 4vw, 48px); }
.pub .ev-hero__text { align-self: end; }
.pub .ev-title { font-family: var(--f-display); font-weight: 400; font-size: clamp(4.2rem, 15vw, 13.5rem); line-height: .8; letter-spacing: -.04em; margin: 14px 0 0; overflow-wrap: anywhere; hyphens: auto; text-wrap: balance; }
.pub .ev-sub { margin: 18px 0 0; max-width: 32ch; font-size: clamp(1.15rem, 2.2vw, 1.6rem); line-height: 1.3; letter-spacing: -.015em; color: var(--dim); }
/* Sin flyer: la fecha en grande a la derecha, como en un afiche (en el celular ya está en el talón) */
.pub .ev-bigdate { display: none; }
@media (min-width: 900px) {
  .pub .ev-hero.flat .ev-hero__inner { grid-template-columns: minmax(0, 1fr) auto; }
  .pub .ev-hero.flat .ev-stub { grid-column: 1 / -1; }
  .pub .ev-bigdate { display: block; align-self: end; margin: 0; text-align: right; font-family: var(--f-display); color: var(--accent); line-height: .8; }
  .pub .ev-bigdate b { display: block; font-weight: 400; font-size: clamp(7rem, 15vw, 14rem); letter-spacing: -.05em; font-variant-numeric: lining-nums; }
  .pub .ev-bigdate span { display: block; margin-top: 10px; font-size: clamp(1.6rem, 2.6vw, 2.4rem); letter-spacing: -.01em; }
}
/* Con flyer: el flyer entero, como un afiche pegado al lado del título */
.pub .ev-poster { margin: 0 0 28px; order: -1; }
.pub .ev-poster img { display: block; width: 100%; max-height: 72svh; object-fit: cover; aspect-ratio: 4 / 5; border-radius: var(--r-sm); background: var(--surface-2); }
@media (min-width: 900px) {
  .pub .ev-hero.has-img .ev-hero__inner { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .pub .ev-hero.has-img .ev-poster { order: 0; grid-column: 2; grid-row: 1 / 3; margin: 0; align-self: start; }
  .pub .ev-hero.has-img .ev-poster img { max-height: calc(100svh - var(--top) - 48px); }
  .pub .ev-hero.has-img .ev-title { font-size: clamp(4rem, 9vw, 9rem); }
}

/* Talón: los datos de la fecha en celdas y la compra al final */
.pub .ev-stub { margin-top: clamp(32px, 5vw, 56px); }
.pub .ev-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin: 0; border-bottom: 1px solid var(--text); }
.pub .ev-facts > div { padding: 14px 16px 16px 0; border-top: 1px solid var(--rule); }
.pub .ev-facts > div + div { padding-left: 16px; border-left: 1px solid var(--rule); }
.pub .ev-facts dt { margin-bottom: 4px; font-size: .78rem; color: var(--dim); }
.pub .ev-facts dd { margin: 0; font-size: 1.05rem; font-weight: 500; letter-spacing: -.01em; line-height: 1.3; }
.pub .ev-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; padding-top: 18px; }
.pub .ev-from { font-size: .95rem; color: var(--dim); }
.pub .ev-from b { font-family: var(--f-mono); font-weight: 500; color: var(--text); }
.pub .ev-closed { font-weight: 500; color: var(--dim); }

/* Cuenta regresiva en línea: sale calculada del servidor y public.js la mantiene al segundo */
.pub .countdown { display: flex; gap: 10px; font-family: var(--f-mono); }
.pub .countdown div { display: flex; align-items: baseline; gap: 2px; }
.pub .countdown b { font-weight: 500; font-variant-numeric: tabular-nums; }
.pub .countdown small { font-size: .78rem; color: var(--dim); }

/* ---------- Line up corriendo: una faja impresa en el color de la casa ---------- */
.pub .marquee { overflow: hidden; padding: clamp(12px, 2vw, 22px) 0; user-select: none; cursor: pointer; background: var(--accent); color: var(--accent-ink); }
.pub .marquee ::selection { background: var(--accent-ink); color: var(--accent); }
.pub .marquee__track { display: flex; width: max-content; animation: marquee var(--marquee-s, 38s) linear infinite; }
.pub .marquee:hover .marquee__track, .pub .marquee.paused .marquee__track { animation-play-state: paused; }
.pub .marquee__group { display: flex; align-items: center; flex: none; }
.pub .marquee__group span { font-family: var(--f-display); font-size: clamp(2rem, 5.4vw, 4.6rem); line-height: 1; padding: 0 .35em; white-space: nowrap; letter-spacing: -.015em; }
.pub .marquee__group i { width: .16em; height: .16em; flex: none; border-radius: 50%; background: currentColor; font-size: clamp(2rem, 5.4vw, 4.6rem); }
@keyframes marquee { to { transform: translate3d(-50%, 0, 0); } }

/* ---------- Cuerpo del evento: info + panel de compra ---------- */
.pub .ev-body { display: grid; grid-template-columns: 1fr; gap: 0 clamp(32px, 5vw, 80px); padding-bottom: clamp(72px, 10vw, 128px); }
@media (min-width: 960px) {
  .pub .ev-body { grid-template-columns: minmax(0, 1fr) minmax(360px, 420px); align-items: start; }
  .pub .ev-body .buy-panel { position: sticky; top: calc(var(--top) + 20px); margin-top: clamp(56px, 8vw, 96px); }
}
@media (max-width: 959px) { .pub .ev-body .buy-panel { order: -1; margin-top: 32px; } }
.pub .ev-desc p { font-size: clamp(1.05rem, 1.5vw, 1.18rem); line-height: 1.65; color: var(--dim); max-width: 60ch; margin: 0 0 1em; }
.pub .ev-desc p:first-child { font-family: var(--f-display); font-size: clamp(1.8rem, 3.4vw, 2.7rem); line-height: 1.12; letter-spacing: -.015em; color: var(--text); max-width: 24ch; }

/* Line up: cabezas de cartel en fichas grandes (una sola ocupa todo el ancho), el resto en filas */
.pub .acts { display: grid; gap: clamp(14px, 2vw, 20px); }
.pub .act { display: grid; align-content: start; overflow: hidden; background: var(--surface); border-radius: var(--r); container-type: inline-size; }
.pub .act-photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.pub .act-text { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 20px; }
/* El nombre escala con el ancho de su ficha (cqi), así una palabra larga entra entera */
.pub .act h3 { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: clamp(2rem, 12cqi, 4rem); letter-spacing: -.025em; line-height: .92; overflow-wrap: break-word; }
.pub .act-from { margin: 0; font-size: .9rem; font-weight: 500; color: var(--accent); }
.pub .act-bio { margin: 0; max-width: 56ch; color: var(--dim); line-height: 1.6; }
.pub .act-links { display: flex; flex-wrap: wrap; gap: 0 18px; margin: 0; font-size: .9rem; }
.pub .act-links a { display: inline-flex; align-items: center; min-height: 44px; }
/* Sin foto: la ficha es un afiche de un color, impreso en el azul de la casa */
.pub .act.no-photo { background: var(--accent); color: var(--accent-ink); }
.pub .act.no-photo .act-text { min-height: clamp(220px, 28vw, 360px); justify-content: flex-end; }
.pub .act.no-photo h3 { font-size: clamp(2.6rem, 16cqi, 6.4rem); }
.pub .act.no-photo .act-from, .pub .act.no-photo .act-bio, .pub .act.no-photo .act-links a { color: inherit; }
.pub .act.no-photo .act-links a { text-decoration-color: currentColor; }
.pub .act.no-photo ::selection { background: var(--accent-ink); color: var(--accent); }
@media (min-width: 720px) {
  .pub .acts-1 .act:not(.no-photo) { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: end; }
  .pub .acts-1 .act h3 { font-size: clamp(2.4rem, 7cqi, 5rem); }
  .pub .acts-1 .act.no-photo h3 { font-size: clamp(3rem, 10cqi, 7.4rem); }
  .pub .acts-1 .act-text { padding: 26px 30px 28px; }
  .pub .acts-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pub .acts-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* Tres o más cabezas de cartel: en el celular, de a dos (una por fila hace una lista eterna) */
@media (max-width: 719px) { .pub .acts-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pub .acts-3 .act-text { padding: 12px 12px 14px; } }
.pub .support { list-style: none; margin: 16px 0 0; padding: 0; }
.pub .support li { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 4px 16px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.pub .support li.no-photo { grid-template-columns: minmax(0, 1fr) auto; }
.pub .support img { width: 52px; height: 52px; object-fit: cover; border-radius: var(--r-sm); }
.pub .support b { display: block; font-family: var(--f-display); font-weight: 400; font-size: clamp(1.7rem, 3vw, 2.3rem); letter-spacing: -.015em; line-height: 1; }
.pub .support span { color: var(--dim); font-size: .88rem; }
.pub .support .act-links { justify-content: flex-end; }
@media (max-width: 640px) {
  .pub .support li { grid-template-columns: 44px minmax(0, 1fr); }
  .pub .support li.no-photo { grid-template-columns: minmax(0, 1fr); }
  .pub .support img { width: 44px; height: 44px; }
  .pub .support .act-links { grid-column: 1 / -1; justify-content: flex-start; }
}

/* Horarios: como una tabla de mareas, la hora en mono y el nombre al lado */
.pub .sets { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 40px; margin-top: -8px; }
.pub .sets-stage h3 { margin: 16px 0 4px; font-size: .95rem; color: var(--accent); }
.pub .sets ol { list-style: none; margin: 0; padding: 0; }
.pub .sets li { display: grid; grid-template-columns: 8em minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.pub .sets time { font-family: var(--f-mono); font-size: .88rem; color: var(--dim); font-variant-numeric: tabular-nums; }
.pub .sets li span { font-family: var(--f-display); font-size: 1.5rem; line-height: 1.05; }

/* ---------- Pack: una tira de talones, uno por noche; las noches sin revelar dejan el casillero vacío ---------- */
.pub .pk-lead { margin: -6px 0 22px; max-width: 46ch; color: var(--dim); }
.pub .pk-lead b { font-family: var(--f-mono); font-weight: 500; color: var(--text); }
.pub .pk { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.pub .pk-night { position: relative; display: flex; flex-direction: column; gap: 6px; min-height: 196px; padding: 18px 16px 16px; background: var(--surface); border-radius: var(--r); }
.pub .pk-night::before {
  content: ''; position: absolute; inset: 0 auto 0 -6px; width: 4px;
  background: radial-gradient(circle, var(--rule-2) 1.3px, transparent 1.8px) 50% 0 / 4px 9px repeat-y;
}
.pub .pk-night:first-child::before { content: none; }
.pub .pk-n { font-family: var(--f-mono); font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; }
.pub .pk-day { display: block; font-family: var(--f-display); font-weight: 400; font-size: clamp(3.6rem, 6vw, 4.8rem); line-height: .82; letter-spacing: -.04em; color: var(--accent); margin-top: 4px; }
.pub .pk-night.is-tba .pk-day { width: 1.2em; height: .82em; border: 2px dashed var(--rule-2); border-radius: var(--r-sm); }
.pub .pk-when { font-family: var(--f-mono); font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; color: var(--dim); }
.pub .pk-acts { display: grid; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--rule); }
.pub .pk-acts b { font-family: var(--f-display); font-weight: 400; font-size: 1.55rem; line-height: 1.02; letter-spacing: -.015em; overflow-wrap: anywhere; }
.pub .pk-time { font-family: var(--f-mono); font-size: .76rem; color: var(--dim); }
@media (max-width: 640px) {
  .pub .pk { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pub .pk-night { min-height: 168px; }
  .pub .pk-night:nth-child(odd)::before { content: none; }
}

/* ---------- Lo que ya pasó: fotos de noches anteriores con epígrafe de programa (nombre ···· fecha) ----------
   En escritorio, la primera foto a todo el ancho (suele ser la de la gente) y las demás de a tres; en el
   celular, una tira que se pasa con el dedo y deja ver el borde de la siguiente. */
.pub .past { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 10px; }
.pub .past-shot { min-width: 0; }
.pub .past-shot:first-child { grid-column: 1 / -1; }
.pub .past figure { margin: 0; display: grid; gap: 12px; }
.pub .past img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r); background: var(--surface-2); }
.pub .past figcaption { display: flex; align-items: baseline; gap: 10px; min-width: 0; padding-bottom: 10px; border-bottom: 1px solid var(--rule); }
.pub .past figcaption b { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.5rem, 2.3vw, 2.1rem); line-height: 1; letter-spacing: -.015em; overflow-wrap: anywhere; }
.pub .past-shot:first-child img { aspect-ratio: 16 / 9; }
.pub .past-shot:first-child figcaption b { font-size: clamp(1.9rem, 3.4vw, 3rem); }
.pub .past-dots { flex: 1; min-width: 14px; border-bottom: 2px dotted var(--rule-2); transform: translateY(-4px); }
.pub .past-date { flex: none; font-family: var(--f-mono); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--dim); white-space: nowrap; }
.pub .past-more { margin: 22px 0 0; max-width: 60ch; font-family: var(--f-display); font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.15; letter-spacing: -.01em; }
@media (max-width: 719px) {
  .pub .past { display: flex; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
  .pub .past::-webkit-scrollbar { display: none; }
  .pub .past-shot, .pub .past-shot:first-child { flex: 0 0 80%; scroll-snap-align: start; }
  .pub .past img, .pub .past-shot:first-child img { aspect-ratio: 4 / 5; }
  .pub .past-shot:first-child figcaption b { font-size: clamp(1.5rem, 7vw, 2.1rem); }
}


/* Ficha técnica */
.pub .specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); margin: -8px 0 0; }
.pub .specs div { padding: 14px 16px 16px 0; border-bottom: 1px solid var(--rule); }
.pub .specs dt { margin-bottom: 4px; font-size: .8rem; color: var(--dim); }
.pub .specs dd { margin: 0; font-size: 1.05rem; font-weight: 500; letter-spacing: -.01em; }
.pub .specs dd small { display: block; margin-top: 2px; color: var(--dim); font-size: .85rem; font-weight: 400; }
.pub .map-link { margin-top: 20px; }

/* Preguntas frecuentes */
.pub .faq { margin-top: -8px; }
.pub .faq details { border-bottom: 1px solid var(--rule); }
.pub .faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 44px; padding: 18px 0; font-size: clamp(1.05rem, 1.7vw, 1.2rem); font-weight: 500; letter-spacing: -.01em; }
.pub .faq summary::-webkit-details-marker { display: none; }
.pub .faq summary::after { content: "+"; flex: none; font-family: var(--f-mono); font-size: 1.2rem; color: var(--accent); transition: transform .3s var(--ease); }
.pub .faq details[open] summary::after { transform: rotate(45deg); }
.pub .faq details p { margin: 0 0 20px; color: var(--dim); max-width: 60ch; line-height: 1.65; }

/* ---------- Panel de compra: una hoja de pedido ---------- */
.pub .buy-panel .card { padding: 0; overflow: hidden; background: var(--surface); border: 1px solid var(--text); border-radius: var(--r); }
.pub .buy-panel .card::before { margin: 10px 14px 0; }
.pub .buy-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 22px 12px; border-bottom: 1px solid var(--text); }
.pub .buy-head h2 { margin: 0; font-size: 2.2rem; }
.pub .buy-head span { font-family: var(--f-mono); font-size: .8rem; color: var(--dim); }
.pub .buy-inner { padding: 4px 22px 22px; }
.pub .buy-inner > .alert:first-child, .pub .buy-inner > .card:first-child { margin-top: 14px; }
.pub .buy-inner details { margin-top: 4px; }
.pub .buy-inner details summary { display: flex; align-items: center; min-height: 44px; color: var(--dim); text-decoration: underline; text-decoration-color: var(--rule-2); text-underline-offset: 3px; }
.pub .buy-inner details summary:hover { color: var(--text); }
.pub .tickets-list { display: flex; flex-direction: column; }
/* Cada tanda: nombre ……… precio en la primera línea, y debajo el cargo o el estado a la izquierda y la
   cantidad a la derecha (el div del nombre se "abre" con display: contents para alinear todo en una grilla) */
.pub .tt { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.pub .tt:last-child { border-bottom: 0; }
.pub .tt > div:first-child { display: contents; }
.pub .tt h3 { grid-column: 1; grid-row: 1; display: flex; align-items: baseline; gap: 8px; margin: 0; font-size: 1rem; font-weight: 600; min-width: 0; }
.pub .tt h3::after { content: ''; flex: 1; min-width: 16px; border-bottom: 2px dotted var(--rule-2); transform: translateY(-4px); }
.pub .tt h3 .pill { flex: none; }
.pub .tt .price { grid-column: 2; grid-row: 1; margin: 0; font-family: var(--f-mono); font-size: 1.05rem; font-weight: 500; font-variant-numeric: tabular-nums; text-align: right; }
.pub .tt .price-note { grid-column: 1; grid-row: 2; margin-top: 4px; font-size: .78rem; color: var(--dim); }
.pub .tt > div:first-child > .pill { grid-column: 1; grid-row: 3; justify-self: start; margin-top: 6px; }
.pub .tt > div:last-of-type { grid-column: 2; grid-row: 2 / 4; justify-self: end; margin-top: 8px; }
.pub .tt > div:last-of-type:empty { display: none; }
.pub .tt .desc { grid-column: 1 / -1; grid-row: 4; margin: 8px 0 0; font-size: .85rem; color: var(--dim); line-height: 1.5; }
.pub .tt.off h3, .pub .tt.off .price { color: var(--dim-2); }
.pub .tt.off .price-note { display: none; }
.pub .tt.is-agotado .price { text-decoration: line-through; }
.pub .tt.picked h3, .pub .tt.picked .price { color: var(--accent); }
.pub .tt.picked h3::after { border-bottom-color: var(--accent); }
.pub .qty { display: inline-flex; align-items: center; overflow: hidden; border: 1px solid var(--text); border-radius: var(--r-btn); background: var(--surface); }
.pub .qty button { width: 44px; height: 44px; border: 0; background: transparent; color: var(--text); font: inherit; font-size: 1.25rem; cursor: pointer; transition: background .15s, color .15s; }
.pub .qty button:disabled { opacity: .3; cursor: not-allowed; }
.pub .qty button:not(:disabled):hover { background: var(--text); color: var(--bg); }
.pub .qty input { width: 34px; min-height: 44px; padding: 0; border: 0; border-inline: 1px solid var(--rule); border-radius: 0; background: transparent; text-align: center; font-family: var(--f-mono); font-weight: 500; -moz-appearance: textfield; }
.pub .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.pub .qty input:focus { box-shadow: none; }
.pub .buy-sum { margin-top: 6px; }
.pub #sumTotal { font-size: 1.2rem; }
.pub .buy-trust { margin: 14px 0 0; font-size: .82rem; color: var(--dim); line-height: 1.5; }

/* Barra de compra fija en el celular: aparece cuando el panel de entradas sale de la pantalla */
.pub .buybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--text); transform: translateY(110%); transition: transform .35s var(--ease); }
.pub .buybar.on { transform: none; }
.pub .buybar > div { min-width: 0; }
.pub .buybar b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--f-display); font-weight: 400; font-size: 1.4rem; line-height: 1.05; }
.pub .buybar small { font-family: var(--f-mono); color: var(--dim); font-size: .78rem; }
@media (min-width: 960px) { .pub .buybar { display: none; } }
@media (max-width: 959px) { body.pub:has([data-buybar]) footer.site { padding-bottom: calc(96px + env(safe-area-inset-bottom)); } }

/* ---------- Inicio: cabecera de diario y la lista de fechas como un programa ---------- */
.pub .home-hero { padding: clamp(40px, 8vw, 104px) 0 clamp(28px, 4vw, 48px); }
.pub .home-word { margin: 10px 0 0; padding-bottom: clamp(16px, 2vw, 24px); border-bottom: 3px solid var(--text); font-family: var(--f-display); font-size: clamp(3rem, 11vw, 10rem); font-weight: 400; letter-spacing: -.04em; line-height: .85; overflow-wrap: anywhere; }
.pub .home-word em { font-style: normal; color: var(--accent); }
/* En el inicio la cabecera ya trae su filete grueso: el título de la lista no repite otro */
.pub .home-hero + .wrap .blk-title { padding-top: 0; border-top: 0; }
.pub .home-lead { max-width: 44ch; font-size: clamp(1.1rem, 2vw, 1.4rem); color: var(--dim); margin: 20px 0 0; letter-spacing: -.01em; line-height: 1.45; }
.pub .home-lead a { color: var(--text); text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.pub .dates { list-style: none; margin: 0 0 clamp(72px, 10vw, 128px); padding: 0; border-top: 1px solid var(--text); }
.pub .date-row { display: grid; grid-template-columns: 6.5em minmax(0, 1fr) auto; gap: 6px 24px; align-items: center; padding: clamp(20px, 3vw, 32px) 0; border-bottom: 1px solid var(--rule); text-decoration: none; position: relative; }
.pub .date-row .d-date { font-family: var(--f-mono); font-size: .8rem; color: var(--dim); line-height: 1.35; }
.pub .date-row .d-date b { display: block; font-size: clamp(1.4rem, 2.4vw, 1.9rem); color: var(--text); font-weight: 500; letter-spacing: -.02em; }
.pub .date-row .d-name { font-family: var(--f-display); font-size: clamp(2.4rem, 6vw, 5rem); font-weight: 400; letter-spacing: -.03em; line-height: .9; transition: transform .4s var(--ease), color .2s; }
.pub .date-row .d-place, .pub .date-row .d-acts { display: block; margin-top: 10px; font-family: var(--f-sans); font-size: .92rem; color: var(--dim); letter-spacing: 0; line-height: 1.4; }
.pub .date-row .d-acts { margin-top: 2px; color: var(--text); }
.pub .date-row .d-go { font-weight: 600; font-size: .9rem; white-space: nowrap; padding: 12px 18px; border: 1px solid var(--text); border-radius: var(--r-btn); transition: background .2s, color .2s, border-color .2s; }
.pub .date-row .d-thumb { display: none; }
@media (hover: hover) {
  .pub .date-row:hover .d-name { transform: translateX(10px); color: var(--accent); }
  .pub .date-row:hover .d-go { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
}
@media (max-width: 640px) {
  .pub .date-row { grid-template-columns: 1fr auto; }
  .pub .date-row .d-date { grid-column: 1 / -1; }
  .pub .date-row .d-thumb { display: block; grid-column: 1 / -1; order: -1; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-sm); }
}
/* Flyer que sigue al cursor sobre la lista (escritorio) */
.pub .peek { position: fixed; left: 0; top: 0; z-index: 30; width: clamp(220px, 22vw, 320px); aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-sm); pointer-events: none; opacity: 0; transform: translate3d(var(--x, 0), var(--y, 0), 0) scale(.94) rotate(-3deg); transition: opacity .25s, transform .5s var(--ease); }
.pub .peek.on { opacity: 1; transform: translate3d(var(--x, 0), var(--y, 0), 0) scale(1) rotate(-3deg); }
.pub .empty-state { padding: 40px 0 120px; }
.pub .empty-state h2 { font-size: clamp(2rem, 4.6vw, 3.2rem); }

/* ---------- Sala de espera: el número enorme, como el turno de una fila ---------- */
.pub .queue { min-height: calc(100svh - var(--top)); display: grid; align-content: center; padding: 48px 0 96px; }
.pub .queue-pos { font-family: var(--f-display); font-size: clamp(7rem, 28vw, 18rem); font-weight: 400; letter-spacing: -.05em; line-height: .8; margin: 14px 0 12px; font-variant-numeric: tabular-nums; color: var(--accent); }
.pub .queue h1 { font-size: clamp(2.2rem, 5.4vw, 3.8rem); margin: 0 0 14px; }
.pub .queue p { max-width: 52ch; color: var(--dim); }
.pub .pulse { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-right: 10px; vertical-align: middle; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; } }

/* ---------- Checkout, orden y cuenta ---------- */
/* Reloj de la reserva: una faja invertida, tinta con letras de papel */
.pub .timer { position: sticky; top: var(--top); z-index: 40; padding: 9px 16px; text-align: center; background: var(--text); color: var(--bg); font-weight: 500; font-size: .88rem; }
.pub .timer b { font-family: var(--f-mono); font-weight: 600; font-variant-numeric: tabular-nums; }
.pub .timer.low { background: #A3261E; color: #fff; }
/* Pasos: texto con número, el actual subrayado grueso en el color de la casa */
.pub .steps { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 28px 0 8px; padding: 0; list-style: none; font-weight: 500; font-size: .85rem; }
.pub .steps li { padding: 6px 0; color: var(--dim); white-space: nowrap; border-bottom: 3px solid transparent; }
.pub .steps li.done { color: var(--text); }
.pub .steps li.on { color: var(--text); border-bottom-color: var(--accent); }
.pub .steps-row { align-items: center; gap: 4px 16px; }
.pub .steps-row .steps { margin-bottom: 0; }
.pub .steps-row form { margin-top: 28px; }
.pub .pay-opt { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; margin-bottom: 10px; cursor: pointer; background: var(--surface); border: 1px solid var(--rule-2); border-radius: var(--r-sm); transition: border-color .2s; }
.pub .pay-opt:hover { border-color: var(--text); }
.pub .pay-opt:has(input:checked) { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.pub .att { padding: 14px 0 0; margin: 14px 0 0; border: 0; border-top: 1px dashed var(--rule-2); }
.pub .att legend { padding: 0; }
.pub .fakepay { max-width: 460px; margin: 40px auto; }
.pub .fakepay .badge { margin-bottom: 16px; padding: 8px 12px; text-align: center; background: var(--warn-bg); color: var(--warn); border-left: 3px solid; font-weight: 600; font-size: .85rem; }
.pub .page-title { font-size: clamp(2.8rem, 8vw, 5rem); margin: 22px 0 10px; letter-spacing: -.03em; }
.pub .page-title small { display: block; font-family: var(--f-sans); font-size: max(.28em, 1rem); color: var(--dim); font-weight: 400; letter-spacing: 0; margin-top: 12px; line-height: 1.4; }

/* La entrada (componente compartido): cartulina con el talón del QR en papel claro, que la cámara lee bien */
.pub .ticket { border: 1px solid var(--text); border-radius: var(--r); box-shadow: none; background: var(--surface); }
.pub .ticket .t-info { background: transparent; padding: 24px; }
.pub .ticket .t-flyer { margin: -24px -24px 18px; }
.pub .ticket .t-flyer::after { background: linear-gradient(180deg, transparent 50%, var(--surface)); }
.pub .ticket .t-event { font-family: var(--f-display); font-style: normal; font-weight: 400; font-size: clamp(2.2rem, 5.6vw, 3rem); line-height: .95; letter-spacing: -.025em; color: var(--text); text-wrap: balance; }
.pub .ticket .t-when { margin-top: 8px; font-family: var(--f-mono); color: var(--accent); opacity: 1; font-size: .85rem; }
.pub .ticket .t-info h3 { font-size: 1rem; }
.pub .ticket .tag { padding: 3px 10px; border-radius: var(--r-pill); background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.pub .ticket dl { gap: 6px 18px; }
.pub .ticket dt { font-size: .82rem; opacity: 1; color: var(--dim); }
.pub .ticket dd { font-weight: 500; }
/* Talón: separado por un corte punteado con dos muescas (abajo del todo en el celular) */
.pub .ticket .t-qr { position: relative; color: #141414; border-left: 1px dashed var(--text); }
.pub .ticket .t-qr::before, .pub .ticket .t-qr::after { content: ''; position: absolute; width: 22px; height: 22px; border-radius: 50%; background: var(--bg); border: 1px solid var(--text); }
.pub .ticket .t-qr::before { top: -12px; left: -12px; }
.pub .ticket .t-qr::after { bottom: -12px; left: -12px; }
@media (max-width: 639px) {
  .pub .ticket .t-qr { border-left: 0; border-top: 1px dashed var(--text); }
  .pub .ticket .t-qr::after { bottom: auto; top: -12px; left: auto; right: -12px; }
}
.pub .ticket .t-qr a { color: #141414; }
.pub .ticket .t-qr .pill.ok { background: #DDF3E3; color: #1F6B36; }
.pub .ticket .t-qr .pill.bad { background: #FBE3E0; color: #A3261E; }
.pub .ticket .t-qr .pill.warn { background: #FFF0CF; color: #7A4F0C; box-shadow: none; }
.pub .ticket-actions { padding-top: 12px; }
.pub .qr-live .qr { background: conic-gradient(from var(--qr-turn, 0deg), var(--accent), #141414, var(--accent)); }
.pub .qr-renew { color: #141414; }
.pub .qr-live-note { border-color: rgba(0, 0, 0, .25); }
.pub .wallet-card .qr-live, .pub .wallet-card .qr-live-note { background: var(--ticket-qr); color: #141414; border-radius: var(--r-sm); padding: 12px; }
.pub .wallet-card .balance { font-family: var(--f-display); font-weight: 400; font-size: 3.2rem; line-height: 1; letter-spacing: -.02em; }
.pub .code-input { font-family: var(--f-mono); }

/* ---------- Pie: colofón, con el troquel arriba ---------- */
.pub footer.site { padding: 0 0 28px; background: var(--bg); color: var(--dim); font-size: .9rem; }
.pub footer.site::before { width: calc(100% - 2 * var(--gutter)); max-width: calc(1240px - 2 * var(--gutter)); margin: 0 auto; }
.pub footer.site > .wrap { padding-top: clamp(28px, 4vw, 44px); }
.pub footer.site a { color: var(--text); text-decoration: none; }
.pub footer.site a:hover { text-decoration: underline; }
.pub .foot-mark { display: flex; flex-wrap: wrap; align-items: center; gap: 0 .5em; margin: 0 0 18px; color: var(--text); }
.pub .foot-mark b { font-size: .8rem; font-weight: 700; letter-spacing: .16em; }
.pub .foot-mark i { font-style: normal; color: var(--accent); }
.pub .foot-links { display: flex; flex-wrap: wrap; gap: 0 22px; }
.pub .foot-links a { display: inline-flex; align-items: center; min-height: 44px; }
.pub .foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; margin: 14px 0 0; padding-top: 14px; border-top: 1px solid var(--rule); font-size: .8rem; color: var(--dim); }

/* Los links a #entradas bajan suave y dejan aire bajo el header */
html { scroll-behavior: smooth; }
.pub #entradas { scroll-margin-top: calc(var(--top) + 16px); }

@media (max-width: 640px) {
  .pub .ev-title { font-size: clamp(4.4rem, 23vw, 6.4rem); }
  .pub .ev-facts { grid-template-columns: 1fr 1fr; }
  .pub .ev-facts > div, .pub .ev-facts > div + div { padding: 12px 12px 14px 0; border-left: 0; }
  .pub .ev-facts > div:nth-child(even) { padding-left: 12px; border-left: 1px solid var(--rule); }
  .pub .ev-facts .ev-left { grid-column: 1 / -1; padding-left: 0; border-left: 0; }
  .pub .ev-cta .btn { flex: 1 1 100%; }
  .pub .buy-head, .pub .buy-inner { padding-left: 18px; padding-right: 18px; }
  .pub .ticket .t-info { padding: 20px; }
  .pub .ticket .t-flyer { margin: -20px -20px 16px; }
}

/* app.css ya apaga transiciones y animaciones; acá sólo lo que tiene que quedar distinto quieto */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .pub .reveal { opacity: 1; transform: none; }
  .pub .marquee { display: none; } /* el line up queda en las fichas de abajo */
}

@media print {
  body.pub { --bg: #fff; --surface: #fff; --text: #111; --dim: #555; background: #fff; color: #111; }
  .pub .ticket { border-color: #999; }
  .pub .ticket .t-flyer, .pub .ticket .t-qr::before, .pub .ticket .t-qr::after, .pub footer.site::before { display: none; }
  .pub .buybar, .pub .skip, .pub .foot-mark { display: none !important; }
}
