/* ==========================================================================
   Lunary — landing de evento
   Se apoya en styles.css (paleta, fuentes, grano, aviso de cookies).
   --ev es el color de acento de cada evento, tomado de su flyer.
   ========================================================================== */

body.event {
  --ev: #E0A08E;           /* salmón del flyer Human Safari + Ricardo Garduno */
  --wrap: 1200px;
  --pad: 16px;
  --top-h: 56px;
  --grid-cell: 48px;
  min-height: 100svh;
  overflow-x: hidden;
  padding-bottom: 84px;    /* espacio para la barra fija de compra */
}
@media (min-width: 960px) {
  body.event { --pad: 24px; --grid-cell: 72px; padding-bottom: 0; }
}

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Retícula fija de fondo */
.ev-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: var(--grid-cell) var(--grid-cell);
}
body.event main, body.event .ev-foot { position: relative; z-index: 1; }

/* --------------------------------------------------------------------------
   Barra superior
   -------------------------------------------------------------------------- */
.ev-top {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--top-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 var(--pad);
  background: var(--black);
  border-bottom: 1px solid var(--line-2);
}
.ev-top__logo { width: 32px; height: 32px; }
.ev-top__logo img { width: 100%; height: 100%; }
.ev-top__title { margin: 0; font-size: 11px; color: var(--gray-2); }
.ev-top__title .x, .kicker .x { text-transform: lowercase; }
.ev-top__tickets {
  justify-self: end;
  font-size: 12px;
  color: var(--black);
  background: var(--accent);
  padding: 9px 12px;
  transition: background-color .16s steps(2);
}
.ev-top__tickets:hover, .ev-top__tickets:focus-visible { background: var(--text); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 20px var(--pad) 56px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.hero__art {
  position: relative;
  border: 1px solid var(--line-2);
  background: var(--black);
}
.hero__flyer { width: 100%; height: auto; aspect-ratio: 1; }
.hero__tag {
  position: absolute;
  left: 0;
  top: 0;
  font-size: 10px;
  color: var(--gray-2);
  background: var(--black);
  padding: 5px 7px;
}

.hero__info { display: flex; flex-direction: column; gap: 22px; }
.kicker { margin: 0; font-size: 11px; color: var(--gray-2); }

.date { display: flex; align-items: flex-end; gap: 16px; }
.date__num { line-height: 0; }
.bignum { height: clamp(64px, 17vw, 112px); width: auto; fill: var(--text); }
.date__meta {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12px;
  color: var(--gray-1);
  padding-bottom: 2px;
}
.date__month { font-size: 15px; color: var(--ev); }

.headliners {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1.05;
}
.headliners .hl { display: block; font-size: clamp(30px, 7.4vw, 58px); color: var(--text); }
.headliners .support { display: block; font-size: clamp(20px, 4.6vw, 30px); color: var(--gray-1); margin-top: 6px; }
.headliners .support + .support { margin-top: 2px; }
.headliners small {
  display: inline-block;
  vertical-align: middle;
  font-size: 11px;
  line-height: 1;
  color: var(--ev);
  border: 1px solid var(--ev);
  padding: 4px 6px;
  margin-left: 6px;
  transform: translateY(-4px);
}

.venue { margin: 0; font-size: 12px; color: var(--gray-1); display: flex; align-items: center; gap: 10px; }
.venue .dot { width: 8px; height: 8px; background: var(--accent); animation: blink 1.2s steps(1) infinite; }

/* Cuenta regresiva */
.countdown__label { margin: 0 0 8px; font-size: 11px; color: var(--gray-2); }
.countdown__cells {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line-2);
  background: var(--black);
}
.cd { display: flex; flex-direction: column; gap: 6px; padding: 12px 10px; border-right: 1px solid var(--line-2); }
.cd:last-child { border-right: 0; }
.cd__n { font-family: var(--font-display); font-size: clamp(28px, 8vw, 44px); line-height: 1; font-variant-numeric: tabular-nums; }
.cd__l { font-size: 10px; color: var(--gray-2); }
.countdown__done { margin: 0; font-size: clamp(22px, 5vw, 32px); color: var(--ev); }

/* Botones */
.buy { display: flex; flex-direction: column; gap: 10px; max-width: 460px; }
.buy--center { margin: 0 auto; width: 100%; }
.btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  padding: 0 20px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: background-color .16s steps(2), color .16s steps(2), border-color .16s steps(2);
}
.btn__arrow { font-size: 18px; transition: transform .2s steps(2); }
.btn__icon { width: 20px; height: 20px; flex: none; }
.btn--primary { background: var(--accent); color: var(--black); }
.btn--ghost { border: 1px solid var(--gray-2); color: var(--text); background: var(--black); justify-content: center; }
.btn--ghost .btn__arrow { margin-left: auto; }
.btn:hover, .btn:focus-visible { background: var(--text); color: var(--black); border-color: var(--text); }
.btn:hover .btn__arrow, .btn:focus-visible .btn__arrow { transform: translateX(4px); }
.btn:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
.btn:active { transform: translateY(1px); }
.btn--sm { min-height: 44px; font-size: 12px; margin-top: 18px; }
.btn--icon { width: 56px; padding: 0; justify-content: center; flex: none; }

@media (min-width: 960px) {
  .hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 56px;
    min-height: calc(100svh - var(--top-h));
    padding-top: 32px;
    padding-bottom: 48px;
  }
  .hero__art { max-width: 580px; justify-self: end; width: 100%; }
}

/* --------------------------------------------------------------------------
   Bloques
   -------------------------------------------------------------------------- */
.block {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 56px var(--pad);
  border-top: 1px solid var(--line-2);
}
@media (min-width: 960px) { .block { padding-top: 88px; padding-bottom: 88px; } }

.label { margin: 0; font-size: 11px; color: var(--ev); }
.block__title {
  margin: 10px 0 28px;
  font-weight: 400;
  font-size: clamp(28px, 5.4vw, 48px);
  line-height: 1.08;
  max-width: 20ch;
}

/* La noche */
.story__text { max-width: 700px; background: var(--black); }
.story__text p { margin: 0 0 1.1em; font-size: 17px; line-height: 1.65; color: #D6D6D6; }
.story__text .lead { font-size: clamp(19px, 2.4vw, 22px); line-height: 1.5; color: var(--text); }
.story__text a { color: var(--text); border-bottom: 1px solid var(--accent); transition: color .16s steps(2); }
.story__text a:hover, .story__text a:focus-visible { color: var(--accent); }

/* Line up: tarjetas */
.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
@media (min-width: 960px) { .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; } }
.card { position: relative; display: block; background: var(--black); outline: 1px solid var(--line-2); }
.card img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.card__name {
  position: absolute;
  left: 0;
  bottom: 22px;
  font-size: clamp(15px, 3.6vw, 22px);
  text-transform: uppercase;
  background: var(--black);
  padding: 5px 8px 4px;
  transition: background-color .16s steps(2), color .16s steps(2);
}
.card__tag {
  position: absolute;
  left: 0;
  bottom: 0;
  font-size: 10px;
  color: var(--ev);
  background: var(--black);
  padding: 5px 8px;
}
.card:hover, .card:focus-visible { outline-color: var(--accent); }
.card:hover .card__name, .card:focus-visible .card__name { background: var(--accent); color: var(--black); }
.hint { margin: 16px 0 28px; font-size: 11px; color: var(--gray-2); }

/* Line up: lista desplegable */
.rundown { border-bottom: 1px solid var(--line-2); }
.artist { border-top: 1px solid var(--line-2); background: var(--black); }
.artist summary {
  list-style: none;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto 28px;
  align-items: center;
  gap: 12px;
  padding: 20px 0;
  cursor: pointer;
}
.artist summary::-webkit-details-marker { display: none; }
.artist__idx { font-size: 11px; color: var(--gray-2); }
.artist__name {
  font-size: clamp(22px, 5vw, 44px);
  text-transform: uppercase;
  line-height: 1.05;
  transition: color .16s steps(2);
}
.artist__meta { font-size: 11px; color: var(--gray-1); }
.artist__arrow { font-size: 22px; justify-self: end; transition: transform .2s steps(2); color: var(--gray-1); }
.artist summary:hover .artist__name, .artist summary:focus-visible .artist__name { color: var(--accent); }
.artist summary:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.artist[open] .artist__arrow { transform: rotate(45deg); color: var(--accent); }

.artist__body { display: grid; gap: 22px; padding: 4px 0 32px; }
.artist__photo { width: min(62%, 230px); height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.artist__labels { margin: 0 0 12px; font-size: 11px; color: var(--ev); }
.artist__text > p:not(.artist__labels) { margin: 0; font-size: 16px; line-height: 1.65; color: #D6D6D6; max-width: 640px; }
@media (min-width: 760px) {
  .artist__body { grid-template-columns: 260px minmax(0, 1fr); gap: 32px; padding-left: 48px; }
  .artist__photo { width: 100%; }
}

.links { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.links a {
  display: inline-block;
  font-size: 11px;
  padding: 9px 11px;
  border: 1px solid var(--line-2);
  color: var(--gray-1);
  transition: border-color .16s steps(2), color .16s steps(2);
}
.links a:hover, .links a:focus-visible { border-color: var(--text); color: var(--text); }

/* Reproductores: portada liviana que carga el embed real al tocar */
.media { display: grid; gap: 6px; margin-top: 20px; max-width: 640px; }
.media__item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 12px;
  row-gap: 3px;
  align-items: center;
  width: 100%;
  text-align: left;
  padding: 12px;
  background: #080808;
  border: 1px solid var(--line-2);
  color: var(--text);
  font: inherit;
  cursor: pointer;
  border-radius: 0;
  transition: border-color .16s steps(2);
}
.media__item:hover, .media__item:focus-visible { border-color: var(--accent); outline: none; }
.media__play {
  grid-row: 1 / 3;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--black);
  font-size: 12px;
}
.media__title { font-family: var(--font-body); font-size: 15px; line-height: 1.3; }
.media__src { font-size: 10px; color: var(--gray-2); }
.media__frame { width: 100%; border: 1px solid var(--line-2); background: #080808; }
.media__frame iframe { display: block; width: 100%; border: 0; }
.media__frame--youtube iframe { aspect-ratio: 16 / 9; height: auto; }
.media__frame--soundcloud iframe { height: 300px; }
.media__frame--spotify iframe { height: 352px; }

/* Playlist */
.playlist__intro { margin: 0 0 22px; max-width: 640px; font-size: 17px; line-height: 1.6; color: #D6D6D6; background: var(--black); }
.playlist__intro strong { color: var(--text); font-weight: 600; }
.playlist__intro a { color: var(--text); border-bottom: 1px solid var(--accent); }
.playlist__intro a:hover, .playlist__intro a:focus-visible { color: var(--accent); }
.playlist__frame { max-width: 760px; border: 1px solid var(--line-2); background: var(--black); }
.playlist__frame iframe { display: block; width: 100%; height: 352px; border: 0; }
.playlist__open {
  display: inline-block;
  margin-top: 12px;
  font-size: 11px;
  color: var(--gray-1);
  background: var(--black);
  padding: 5px 7px;
  transition: color .16s steps(2);
}
.playlist__open:hover, .playlist__open:focus-visible { color: var(--text); }

/* Lugar */
.place__grid { display: grid; gap: 24px; }
@media (min-width: 960px) { .place__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 40px; align-items: start; } }
.place__facts { background: var(--black); }
.place__facts p {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-2);
  font-size: 12px;
}
.place__facts .k { color: var(--gray-2); }
.place__facts .v { color: var(--text); text-align: right; }
.place__map { border: 1px solid var(--line-2); background: var(--black); }
.place__map iframe {
  display: block;
  width: 100%;
  height: clamp(280px, 50vw, 420px);
  border: 0;
  filter: grayscale(1) invert(.92) contrast(.88);
}

/* Cierre */
.closing { text-align: center; }
.closing .label { text-align: center; }
.closing__title {
  font-weight: 400;
  font-size: clamp(28px, 6vw, 56px);
  line-height: 1.08;
  margin: 12px auto 32px;
  max-width: 16ch;
}
.closing .buy { align-items: stretch; }

/* Créditos */
.credits { padding-top: 40px; padding-bottom: 40px; }
.credits__list { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.credits__list a { font-size: 13px; color: var(--gray-1); border-bottom: 1px solid var(--line-2); padding-bottom: 3px; transition: color .16s steps(2), border-color .16s steps(2); }
.credits__list a:hover, .credits__list a:focus-visible { color: var(--text); border-color: var(--accent); }

/* Pie */
.ev-foot {
  text-align: center;
  font-size: 11px;
  color: var(--gray-2);
  padding: 28px var(--pad) 36px;
  border-top: 1px solid var(--line-2);
  background: var(--black);
}
.ev-foot a { color: var(--gray-1); }
.ev-foot a:hover, .ev-foot a:focus-visible { color: var(--text); }
.ev-foot .sep { margin: 0 .5em; }

/* --------------------------------------------------------------------------
   Barra fija de compra (solo celular, aparece al pasar el hero)
   -------------------------------------------------------------------------- */
.stickybuy {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  gap: 8px;
  padding: 10px var(--pad) calc(10px + env(safe-area-inset-bottom));
  background: var(--black);
  border-top: 1px solid var(--line-2);
  transform: translateY(110%);
  transition: transform .24s steps(3);
}
.stickybuy .btn--primary { flex: 1; }
.stickybuy.is-visible { transform: translateY(0); }
@media (min-width: 960px) { .stickybuy { display: none; } }

body.event .cookie { z-index: 60; }

@media (prefers-reduced-motion: reduce) {
  .venue .dot { animation: none; }
  .stickybuy { transition: none; }
}
