/* luja punto & brunch — socials (lista, evento y boleto).
   Usa los tokens, tipografías y botones de styles.css. */

/* Los botones que son enlaces no van subrayados. */
a.btn-line, a.btn-wa { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }

/* ---------- Barra ---------- */
.sbar {
  position: sticky;
  top: var(--safe-t);
  z-index: 50;
  background: var(--paper-a);
  -webkit-backdrop-filter: saturate(1.3) blur(16px);
  backdrop-filter: saturate(1.3) blur(16px);
  border-bottom: 1px solid var(--line);
}
.sbar__in {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: var(--max);
  height: 56px;
  margin: 0 auto;
  padding-left: var(--pad-l);
  padding-right: var(--pad-r);
}
.sbar__brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.sbar__icon { display: block; width: 26px; height: 26px; }
.sbar__word { display: block; width: 50px; }
.sbar__word .wm { width: 100%; height: auto; transform: translateY(3px); }
.sbar__nav { display: flex; gap: 16px; margin-left: auto; }
.sbar__nav a { color: var(--ink-3); font: 500 14px/1 var(--sans); text-decoration: none; padding: 8px 0; }
.sbar__nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px var(--ink); }

.smain {
  max-width: var(--max);
  margin: 0 auto;
  padding-block: 28px calc(64px + var(--safe-b));
  padding-left: var(--pad-l);
  padding-right: var(--pad-r);
}
.stitle { margin: 0; font: 400 clamp(64px, 20vw, 150px)/0.9 var(--serif); letter-spacing: -0.02em; }
.slede { margin: 10px 0 0; font: 400 20px/1.35 var(--serif); color: var(--ink-2); }
.slist__h { margin: 44px 0 16px; padding-bottom: 10px; border-bottom: 1px solid var(--ink); }
.snone { margin: 24px 0; font: 400 20px/1.4 var(--serif); color: var(--ink-2); max-width: 40ch; }

/* ---------- Tarjetas de evento ---------- */
.egrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 28px 22px; }
.ecard { display: grid; gap: 6px; color: var(--ink); text-decoration: none; min-width: 0; }
.ecard__poster {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
  max-width: 100%;
  overflow: hidden;
  background: var(--photo);
  border-radius: 4px;
}
.ecard__poster img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.ecard__poster--empty, .ecard__poster--wide { aspect-ratio: 16 / 9; }
.ecard__poster video { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.ecard__poster--empty .scribble { width: 22%; height: auto; aspect-ratio: 1; }
.ecard__poster .scribble { width: 34%; height: 34%; color: var(--ink); }
.ecard:hover .ecard__poster img, .ecard:hover .ecard__poster video { transform: scale(1.03); }
.ecard__date { margin-top: 6px; font: 500 11px/1.2 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); }
.ecard__date b { color: var(--ink); font-weight: 600; }
.ecard__title { font: 400 26px/1.1 var(--serif); }
.ecard__price { font: 500 15px/1.2 var(--sans); }
.ecard__price small { font-weight: 400; color: var(--ink-2); }
.ecard--past { opacity: 0.55; }
/* Evento con video: en tablet y computadora la tarjeta ocupa dos columnas, como una pantalla. */
@media (min-width: 640px) { .ecard--wide { grid-column: span 2; } }
.ecard--past .ecard__poster img { filter: grayscale(1); }
.ebadge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font: 600 10.5px/1 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.ebadge--ink { background: var(--ink); color: var(--paper); }

/* ---------- Mis boletos ---------- */
.mine { margin-top: 28px; padding: 16px 18px; border: 1px solid var(--line-2); border-radius: 14px; }
.mine ul { list-style: none; margin: 10px 0 0; padding: 0; }
.mine a { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 15px; }
.mine a span:last-child { color: var(--ink-2); white-space: nowrap; }

/* ---------- Página del evento ---------- */
.ev { display: grid; gap: 26px; }
.ev__top, .ev__more { min-width: 0; display: grid; gap: 18px; align-content: start; }
.ev__more:empty { display: none; }
.ev__top .label a { color: inherit; text-decoration: none; }
.has-feature .stitle, .has-feature .slede { display: none; }
.mine-wrap { margin-top: 40px; }

/* ---------- Portada del evento: el teaser arriba de todo ---------- */
.ehero__frame { position: relative; margin: 0 auto; }
.ehero--video .ehero__frame { width: 100%; }
.ev__video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: var(--photo); }
@media (min-width: 640px) {
  .ehero--video { padding: 24px var(--pad-r) 0 var(--pad-l); }
  .ehero--video .ehero__frame {
    max-width: min(calc(var(--max) - var(--pad-l) - var(--pad-r)), calc(80vh * 16 / 9));
    max-width: min(calc(var(--max) - var(--pad-l) - var(--pad-r)), calc(80svh * 16 / 9));
    overflow: hidden;
    border-radius: 8px;
  }
}
.ev__play {
  position: absolute; inset: 0; margin: auto; width: 72px; height: 72px; display: grid; place-items: center;
  padding: 0 0 0 4px; border: 1px solid rgba(228, 224, 212, 0.45); border-radius: 50%;
  background: rgba(43, 40, 35, 0.55); color: var(--paper); cursor: pointer;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.ev__play:focus-visible { outline: 2px solid var(--paper); outline-offset: 3px; }
.buy__test { margin: 0; padding: 10px 12px; border: 1px dashed var(--line-2); border-radius: 10px; font: 500 12.5px/1.45 var(--sans); color: var(--ink-2); }
/* Mientras carga, la portada genérica no se asoma (el servidor ya dice si hay evento destacado). */
body[data-page="list"]:not(.is-ready) .stitle, body[data-page="list"]:not(.is-ready) .slede { visibility: hidden; }
.ehero--img { padding: 24px var(--pad-r) 0 var(--pad-l); }
.ehero--img .ehero__frame { max-width: min(520px, calc(68vh * 4 / 5)); }
.ehero--img img { display: block; width: 100%; height: auto; border-radius: 6px; background: var(--photo); }
.ev__sound {
  position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 11px; border: 1px solid rgba(228, 224, 212, 0.35); border-radius: 999px;
  background: rgba(43, 40, 35, 0.62); color: var(--paper); font: 500 12px/1 var(--sans); cursor: pointer;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.ev__sound:focus-visible { outline: 2px solid var(--paper); outline-offset: 2px; }

/* Entrada: la información sube escalonada (el video no se anima: algunos teléfonos no arrancan
   un video que empieza invisible). */
#event.is-enter .ev__top > *, #event.is-enter .ev__side { animation: evRise 0.9s var(--ease) both; }
#event.is-enter .ev__top > :nth-child(2) { animation-delay: 0.08s; }
#event.is-enter .ev__top > :nth-child(3) { animation-delay: 0.16s; }
#event.is-enter .ev__top > :nth-child(4) { animation-delay: 0.24s; }
#event.is-enter .ev__side { animation-delay: 0.3s; }
@keyframes evRise { from { opacity: 0; transform: translateY(18px); } }
@media (prefers-reduced-motion: reduce) {
  #event.is-enter .ev__top > *, #event.is-enter .ev__side { animation: none; }
}
.ev__title { margin: 0; font: 400 clamp(44px, 12vw, 76px)/0.98 var(--serif); letter-spacing: -0.015em; text-wrap: balance; }
.ev__facts { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--ink); }
.ev__facts div { display: grid; grid-template-columns: 92px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.ev__facts dt { margin: 0; }
.ev__facts dd { margin: 0; font: 500 16px/1.35 var(--sans); }
.ev__facts dd.cap::first-letter { text-transform: uppercase; }
.ev__facts small { font-weight: 400; color: var(--ink-2); }
.ev__desc { font: 400 19px/1.45 var(--serif); color: var(--ink); max-width: 60ch; }
.ev__desc p { margin: 0 0 0.8em; }
/* Galería del evento */
.ev__gal { display: grid; gap: 12px; }
.gal { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.gal--odd .gal__item:first-child { grid-column: span 2; aspect-ratio: 16 / 10; }
.gal__item { display: block; aspect-ratio: 1; max-width: 100%; padding: 0; border: 0; border-radius: 10px; overflow: hidden; background: var(--photo); cursor: zoom-in; }
.gal__item img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
@media (hover: hover) { .gal__item:hover img { transform: scale(1.04); } }

/* Visor de fotos a pantalla completa */
.viewer {
  position: fixed; inset: 0; z-index: 120; display: grid; place-items: center;
  background: var(--ink); opacity: 0; transition: opacity 0.35s var(--ease);
}
.viewer.is-on { opacity: 1; }
.viewer__img { max-width: 100vw; max-height: 86vh; max-height: 86dvh; object-fit: contain; transition: opacity 0.25s; }
.viewer__img.is-swap { opacity: 0.25; }
.viewer__btn {
  position: absolute; display: grid; place-items: center; width: 46px; height: 46px; padding: 0;
  border: 1px solid rgba(228, 224, 212, 0.35); border-radius: 50%; background: rgba(43, 40, 35, 0.62); color: var(--paper); cursor: pointer;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.viewer__btn:focus-visible { outline: 2px solid var(--paper); outline-offset: 2px; }
.viewer__close { top: calc(14px + var(--safe-t)); right: max(14px, env(safe-area-inset-right, 0px)); }
.viewer__nav { top: 50%; transform: translateY(-50%); }
.viewer__nav--prev { left: max(10px, env(safe-area-inset-left, 0px)); }
.viewer__nav--next { right: max(10px, env(safe-area-inset-right, 0px)); }
.viewer__count { position: absolute; left: 50%; bottom: calc(18px + var(--safe-b)); transform: translateX(-50%); margin: 0; color: var(--on-ink-2); font: 500 12px/1 var(--sans); letter-spacing: 0.14em; }

.ev__box { padding: 20px; border: 1px solid var(--line-2); border-radius: 16px; background: var(--photo); }
.ev__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ev__policy { border-top: 1px solid var(--line); padding-top: 14px; }
.ev__policy summary { cursor: pointer; }
.ev__policy p { font: 400 16px/1.45 var(--serif); color: var(--ink-2); }
.enote { margin: 0 0 14px; font: 400 18px/1.4 var(--serif); }

.buy, .wait { display: grid; gap: 16px; }
.buy__qty { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.buy__err { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--ink); color: var(--paper); font-size: 14.5px; }
.buy__note { margin: 0; font-size: 13px; line-height: 1.45; color: var(--ink-2); }
.buy .btn-wa, .wait .btn-line { width: 100%; justify-content: center; }
.btn-wa:disabled { opacity: 0.6; }
.field__hint { color: var(--ink-3); font-size: 12.5px; }
.wait__title { margin: 0; font: 400 34px/1 var(--serif); }
.wait__text, .wait__done { margin: 0; font: 400 18px/1.4 var(--serif); color: var(--ink-2); }
.btn-line--full { width: 100%; }
.btn-text { border: 0; background: none; color: var(--ink-2); font: 500 14px/1 var(--sans); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 6px 0; }

.stoast {
  position: fixed; left: 50%; bottom: calc(20px + var(--safe-b)); z-index: 60; margin: 0;
  padding: 11px 18px; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: 14px;
  opacity: 0; transform: translate(-50%, 10px); pointer-events: none; transition: opacity 0.3s, transform 0.4s var(--ease);
}
.stoast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Boleto ---------- */
.tkwrap { max-width: 440px; margin: 0 auto; display: grid; gap: 16px; }
.tk {
  display: grid;
  gap: 10px;
  justify-items: center;
  padding: 26px 22px 22px;
  border-radius: 22px;
  background: var(--ink);
  color: var(--paper);
  text-align: center;
}
.tk .label { color: var(--on-ink-2); }
.tk__head { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.tk__logo { display: block; width: 58px; color: var(--paper); }
.tk__logo .wm { width: 100%; height: auto; }
.tk__name { margin: 8px 0 0; font: 400 34px/1.05 var(--serif); text-wrap: balance; }
.tk__when, .tk__where { margin: 0; font-size: 14.5px; color: var(--on-ink-2); }
.tk__when::first-letter { text-transform: uppercase; }
/* El QR va sobre blanco con margen: así lo lee cualquier cámara. */
.tk__qr { width: min(240px, 70vw); padding: 14px; margin: 10px 0 4px; background: #fff; border-radius: 12px; }
.tk__qr svg { display: block; width: 100%; height: auto; }
.tk__holder { margin: 4px 0 0; font-size: 15px; line-height: 1.45; }
.tk__holder b { font: 400 24px/1.2 var(--serif); }
.tk__hint, .tk__in { margin: 0; font-size: 13.5px; color: var(--on-ink-2); }
.tk__in { color: var(--paper); font-weight: 600; }
.tk__code { margin: 6px 0 0; font: 500 10.5px/1 var(--sans); letter-spacing: 0.08em; color: var(--on-ink-2); word-break: break-all; }
.tk__actions { display: grid; grid-template-columns: 1fr; gap: 10px; }
.tk__actions .btn-line { text-align: center; justify-content: center; display: inline-flex; align-items: center; }
.tk__saved { margin: 0; text-align: center; font-size: 13px; color: var(--ink-2); }

/* Apple Wallet / Google Wallet: badges oficiales, sin recolorear ni recortar (alto 48 px, el mínimo de Google). */
.wallet { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 4px 0 0; }
.wallet__btn { display: inline-block; line-height: 0; border-radius: 10px; }
.wallet__btn img { display: block; width: auto; height: 48px; }
.wallet__btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.wallet__msg { min-height: 1.3em; margin: 0; text-align: center; font-size: 14px; color: var(--ink-2); }
.wallet__msg:empty { display: none; }
.tk__msg { display: grid; gap: 14px; justify-items: start; padding-top: 20px; }
.tk__msg p { margin: 0; font: 400 19px/1.45 var(--serif); color: var(--ink-2); }
.tk__title { margin: 0; font: 400 clamp(40px, 11vw, 60px)/1 var(--serif); }
.tk__spin { display: block; width: 64px; height: 64px; color: var(--ink); animation: spin 2.4s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.tk__event a { color: inherit; text-decoration: none; }

/* ---------- Próximo evento en la carta ---------- */
.next { max-width: var(--max); margin: 30px auto 0; padding-left: var(--pad-l); padding-right: var(--pad-r); }
.next__card {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 16px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--ink);
  border-radius: 16px;
  color: var(--ink);
  text-decoration: none;
}
.next__poster { display: grid; place-items: center; aspect-ratio: 4 / 5; max-width: 100%; overflow: hidden; border-radius: 8px; background: var(--photo); }
.next__poster img, .next__poster video { display: block; width: 100%; height: 100%; object-fit: cover; }
.next__card--wide { grid-template-columns: 136px 1fr; }
.next__card--wide .next__poster { aspect-ratio: 16 / 9; }
.next__poster .scribble { width: 40%; height: 40%; }
.next__info { display: grid; gap: 4px; min-width: 0; }
.next__title { font: 400 25px/1.05 var(--serif); }
.next__meta { font: 500 13.5px/1.3 var(--sans); color: var(--ink-2); }
.next__meta::first-letter { text-transform: uppercase; }
.next__cta { font: 600 11px/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; margin-top: 6px; }

@media (min-width: 900px) {
  .gal { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gal--odd .gal__item:first-child { grid-column: auto; aspect-ratio: 1; }
  .ev { grid-template-columns: minmax(0, 1fr) minmax(320px, 400px); grid-template-areas: "top side" "more side"; gap: 32px 64px; align-items: start; }
  .ev__top { grid-area: top; }
  .ev__more { grid-area: more; }
  .ev__side { grid-area: side; position: sticky; top: calc(80px + var(--safe-t)); }
  .ev__sound { right: 20px; bottom: 20px; gap: 8px; padding: 9px 14px; font-size: 13px; }
}

/* ---------- Pago de demostración (solo en la versión de prueba) ---------- */
.dpay { display: grid; gap: 18px; max-width: 520px; margin: 0 auto; }
.dpay__order { display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: center; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.dpay__img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; background: var(--photo); }
.dpay__title { margin: 0; font: 400 26px/1.05 var(--serif); }
.dpay__meta { margin: 4px 0 0; font: 500 13.5px/1.35 var(--sans); color: var(--ink-2); }
.dpay__total { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 14px; border-bottom: 1px solid var(--ink); font: 400 36px/1 var(--serif); }
.dpay__total small { font: 500 12px/1 var(--sans); letter-spacing: 0.08em; color: var(--ink-2); }
.dpay__form { display: grid; gap: 14px; padding: 20px; border: 1px solid var(--line-2); border-radius: 16px; background: var(--photo); }
.dpay__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dpay__form input[readonly] { color: var(--ink-2); }
.dpay__form .btn-wa { width: 100%; justify-content: center; }
.dpay__held { margin: 0; text-align: center; font: 500 12.5px/1.4 var(--sans); color: var(--ink-2); }
.dpay__held b { color: var(--ink); font-variant-numeric: tabular-nums; }
.dpay__cancel { justify-self: center; }
