.hero {
  position: relative;
  display: grid;
  min-height: 510px;
  margin-top: 18px;
  overflow: hidden;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.7fr);
  border: 1px solid var(--line);
  border-radius: var(--radius-large);
  background:
    linear-gradient(115deg, rgba(7, 17, 31, 0.98) 12%, rgba(11, 31, 52, 0.82)),
    var(--surface);
  box-shadow: var(--shadow);
}

.hero-glow {
  position: absolute;
  top: -180px;
  left: 28%;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: rgba(33, 112, 164, 0.22);
  filter: blur(40px);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  padding: clamp(34px, 6vw, 76px);
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
}

.status-pill {
  display: inline-flex;
  margin-bottom: 22px;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid rgba(85, 214, 152, 0.25);
  border-radius: 999px;
  color: #a5edca;
  background: rgba(85, 214, 152, 0.08);
  font-size: 0.75rem;
  font-weight: 750;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(85, 214, 152, 0.09);
}

.event-title {
  max-width: 780px;
  margin-bottom: 18px;
  font-size: clamp(2.7rem, 7vw, 5.8rem);
  line-height: 0.94;
}

.event-summary {
  max-width: 650px;
  margin-bottom: 38px;
  color: #c6d0dc;
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.event-meta {
  display: flex;
  width: 100%;
  max-width: 720px;
  flex-wrap: wrap;
  gap: 2px;
}

.event-meta > div {
  min-width: 145px;
  padding: 14px 22px 14px 0;
}

.meta-label {
  display: block;
  margin-bottom: 4px;
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.event-meta strong {
  font-size: 0.95rem;
}

.hero-art {
  position: relative;
  display: grid;
  min-height: 100%;
  place-items: center;
  overflow: hidden;
  border-left: 1px solid var(--line);
  background:
    radial-gradient(circle, rgba(245, 189, 79, 0.18), transparent 52%),
    repeating-linear-gradient(
      -45deg,
      transparent 0,
      transparent 20px,
      rgba(255, 255, 255, 0.025) 20px,
      rgba(255, 255, 255, 0.025) 21px
    );
}

.hero-monogram {
  color: transparent;
  background: linear-gradient(145deg, var(--gold-bright), #b8771d);
  background-clip: text;
  font-size: clamp(7rem, 15vw, 12rem);
  font-weight: 950;
  letter-spacing: -0.12em;
  line-height: 1;
  filter: drop-shadow(0 25px 40px rgba(0, 0, 0, 0.35));
  transform: translateX(-0.08em);
}

.hero-year {
  position: absolute;
  right: 26px;
  bottom: 22px;
  color: rgba(255, 255, 255, 0.28);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.35em;
}

.purchase-layout {
  display: grid;
  margin-top: 34px;
  align-items: start;
  grid-template-columns: minmax(0, 1.55fr) minmax(290px, 0.65fr);
  gap: 26px;
}

.ticket-panel,
.order-summary {
  border: 1px solid var(--line);
  border-radius: var(--radius-medium);
  background: rgba(11, 21, 35, 0.82);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(18px);
}

.ticket-panel {
  padding: clamp(24px, 4vw, 40px);
}

.order-summary {
  position: sticky;
  top: 20px;
  padding: 28px;
}

.section-heading {
  display: flex;
  margin-bottom: 24px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.section-heading h2,
.order-summary h2,
.platform-proof h2 {
  margin-bottom: 0;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
}

.availability {
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 800;
}

.event-description {
  margin-top: 28px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  color: var(--text-muted);
}

.platform-proof {
  padding: 100px 0 46px;
  text-align: center;
}

.platform-proof > h2 {
  max-width: 620px;
  margin-inline: auto;
}

.proof-grid {
  display: grid;
  margin-top: 38px;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  text-align: left;
}

.proof-grid article {
  min-height: 210px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-medium);
  background: linear-gradient(145deg, rgba(16, 29, 45, 0.95), rgba(8, 17, 29, 0.95));
}

.proof-grid article > strong {
  color: var(--gold);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
}

.proof-grid h3 {
  margin: 42px 0 8px;
  font-size: 1.18rem;
}

.proof-grid p {
  margin-bottom: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .hero-art {
    min-height: 240px;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .purchase-layout {
    grid-template-columns: 1fr;
  }

  .order-summary {
    position: static;
  }
}

@media (max-width: 680px) {
  .hero-content {
    padding: 34px 24px;
  }

  .event-title {
    font-size: clamp(2.5rem, 14vw, 4.2rem);
  }

  .hero-art {
    min-height: 190px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .proof-grid {
    grid-template-columns: 1fr;
  }

  .platform-proof {
    padding-top: 70px;
  }
}

/* =========================================================
   CARTELERA PUBLICA DE EVENTOS
   ========================================================= */

.events-view {
  padding: 34px 0 64px;
}

.events-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(32px, 6vw, 68px);
  border: 1px solid var(--line);
  border-radius: var(--radius-large);
  background:
    radial-gradient(circle at 85% 0%, rgba(245, 189, 79, 0.18), transparent 28rem),
    linear-gradient(145deg, rgba(13, 28, 47, 0.98), rgba(6, 14, 25, 0.98));
  box-shadow: var(--shadow);
}

.events-hero::after {
  position: absolute;
  right: -38px;
  bottom: -72px;
  color: rgba(255, 255, 255, 0.025);
  content: "BQ";
  font-size: clamp(8rem, 22vw, 18rem);
  font-weight: 950;
  letter-spacing: -0.12em;
  line-height: 1;
  pointer-events: none;
}

.events-hero h1 {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin-bottom: 14px;
  font-size: clamp(2.6rem, 7vw, 5.3rem);
  line-height: 0.96;
}

.events-hero > p:last-child {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin-bottom: 0;
  color: #c4cfdb;
  font-size: clamp(1rem, 2vw, 1.15rem);
}

.events-toolbar {
  display: flex;
  margin: 34px 0 18px;
  align-items: center;
  justify-content: space-between;
}

.events-toolbar > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.events-toolbar strong {
  font-size: 1.05rem;
}

#events-count {
  display: grid;
  min-width: 30px;
  height: 30px;
  place-items: center;
  padding-inline: 8px;
  border: 1px solid rgba(245, 189, 79, 0.28);
  border-radius: 999px;
  color: var(--gold-bright);
  background: rgba(245, 189, 79, 0.08);
  font-size: 0.75rem;
  font-weight: 850;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.event-list-card {
  position: relative;
  display: flex;
  min-height: 430px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(15, 29, 46, 0.98), rgba(8, 17, 29, 0.98));
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.24);
  cursor: pointer;
  flex-direction: column;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.event-list-card:hover {
  border-color: rgba(245, 189, 79, 0.42);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.38);
  transform: translateY(-5px);
}

.event-list-card:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.event-card-visual {
  position: relative;
  display: flex;
  min-height: 190px;
  padding: 20px;
  align-items: flex-start;
  justify-content: space-between;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 65% 30%, rgba(245, 189, 79, 0.22), transparent 13rem),
    radial-gradient(circle at 18% 65%, rgba(50, 123, 181, 0.24), transparent 14rem),
    linear-gradient(145deg, #10253c, #08111e 70%);
}

.event-card-visual::after {
  position: absolute;
  right: -5px;
  bottom: -30px;
  color: rgba(255, 255, 255, 0.055);
  content: "BQ";
  font-size: 7.5rem;
  font-weight: 950;
  letter-spacing: -0.12em;
  line-height: 1;
}

.event-card-date,
.event-card-status {
  position: relative;
  z-index: 2;
}

.event-card-date {
  max-width: 125px;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.event-card-status {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(5, 11, 20, 0.72);
  backdrop-filter: blur(10px);
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.event-card-status.status-on_sale {
  border-color: rgba(85, 214, 152, 0.32);
  color: #9aebc4;
  background: rgba(85, 214, 152, 0.1);
}

.event-card-status.status-coming_soon {
  border-color: rgba(245, 189, 79, 0.34);
  color: var(--gold-bright);
  background: rgba(245, 189, 79, 0.08);
}

.event-card-status.status-sold_out,
.event-card-status.status-sales_ended,
.event-card-status.status-ended {
  color: #c4cfdb;
  background: rgba(255, 255, 255, 0.05);
}

.event-card-status.status-paused {
  border-color: rgba(255, 119, 119, 0.32);
  color: #ffaaa8;
  background: rgba(255, 119, 119, 0.08);
}

.event-card-body {
  display: flex;
  min-height: 238px;
  padding: 24px;
  flex: 1;
  flex-direction: column;
}

.event-card-body h2 {
  margin-bottom: 8px;
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  line-height: 1.05;
}

.event-card-meta {
  margin-bottom: 16px;
  color: var(--gold-bright);
  font-size: 0.78rem;
  font-weight: 750;
}

.event-card-summary {
  display: -webkit-box;
  overflow: hidden;
  margin-bottom: 24px;
  color: var(--text-muted);
  font-size: 0.88rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.event-card-footer {
  display: flex;
  margin-top: auto;
  padding-top: 18px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid var(--line);
  color: #d8e0e8;
  font-size: 0.78rem;
  font-weight: 750;
}

.event-card-footer strong {
  color: var(--gold-bright);
  font-size: 1.25rem;
  transition: transform 180ms ease;
}

.event-list-card:hover .event-card-footer strong {
  transform: translateX(4px);
}

.event-list-card-loading {
  cursor: default;
}

.events-empty {
  padding: 70px 24px;
  border: 1px dashed var(--line);
  border-radius: 24px;
  color: var(--text-muted);
  text-align: center;
}

.events-empty h2 {
  color: var(--text);
}

@media (max-width: 960px) {
  .events-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .events-view {
    padding-top: 18px;
  }

  .events-hero {
    padding: 30px 24px;
    border-radius: 22px;
  }

  .events-hero h1 {
    font-size: clamp(2.4rem, 13vw, 4rem);
  }

  .events-toolbar {
    margin-top: 26px;
  }

  .events-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .event-list-card {
    min-height: auto;
    border-radius: 20px;
  }

  .event-card-visual {
    min-height: 160px;
  }

  .event-card-body {
    min-height: auto;
    padding: 20px;
  }
}


/* Regreso permanente desde evento individual */
.event-back-link {
  display: inline-flex;
  margin-bottom: 28px;
  align-items: center;
  gap: 9px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #dce5ee;
  background: rgba(5, 11, 20, 0.48);
  backdrop-filter: blur(12px);
  font-size: 0.78rem;
  font-weight: 800;
  transition:
    border-color 160ms ease,
    color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.event-back-link:hover {
  border-color: rgba(245, 189, 79, 0.42);
  color: var(--gold-bright);
  background: rgba(245, 189, 79, 0.07);
  transform: translateX(-2px);
}

@media (max-width: 680px) {
  .event-back-link {
    margin-bottom: 22px;
  }
}


/* Botón principal de regreso desde cada evento */
.event-back-link {
  padding: 11px 18px;
  border: 1px solid rgba(245, 189, 79, 0.55);
  color: var(--gold-bright);
  background: rgba(245, 189, 79, 0.10);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.event-back-link:hover {
  border-color: var(--gold-bright);
  background: rgba(245, 189, 79, 0.18);
}


/* =========================================================
   FLYERS PUBLICOS - PASO 802
   ========================================================= */

/* CARTELERA */

.event-card-visual.has-flyer {
  min-height: 0;
  aspect-ratio: 9 / 16;
  padding: 16px;
  isolation: isolate;
  background: #050b14;
}

.event-card-visual.has-flyer::after {
  display: none;
}

.event-card-flyer {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #050b14;
}

.event-card-visual.has-flyer::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      rgba(3, 8, 15, 0.58) 0%,
      rgba(3, 8, 15, 0.04) 23%,
      rgba(3, 8, 15, 0.02) 72%,
      rgba(3, 8, 15, 0.36) 100%
    );
}

.event-card-visual.has-flyer .event-card-date,
.event-card-visual.has-flyer .event-card-status {
  z-index: 2;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(3, 8, 15, 0.76);
  backdrop-filter: blur(12px);
}

.event-card-visual.has-flyer .event-card-date {
  max-width: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

/* DETALLE DEL EVENTO */

.hero-art.has-flyer {
  min-height: 610px;
  padding: 18px;
  place-items: center;
  background:
    radial-gradient(circle at center, rgba(245, 189, 79, 0.09), transparent 65%),
    #050b14;
}

.hero-art.has-flyer .hero-monogram,
.hero-art.has-flyer .hero-year {
  display: none;
}

.hero-event-flyer {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  max-height: 680px;
  display: block;
  object-fit: contain;
  border-radius: 14px;
  box-shadow:
    0 26px 70px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.07);
}

/* La tarjeta completa crece naturalmente con el poster */
.event-list-card:has(.event-card-visual.has-flyer) {
  min-height: 0;
}

/* TABLET */

@media (max-width: 900px) {
  .hero-art.has-flyer {
    min-height: 560px;
  }

  .hero-event-flyer {
    max-height: 540px;
  }
}

/* MOVIL */

@media (max-width: 680px) {
  .hero-art.has-flyer {
    min-height: 520px;
    padding: 14px;
  }

  .hero-event-flyer {
    max-height: 500px;
  }

  .event-card-visual.has-flyer {
    max-height: none;
  }
}

/* =========================================================
   CARTELERA MOVIL COMPACTA - PASO 804
   ========================================================= */

@media (max-width: 680px) {

  .event-list-card {
    min-height: 0;
    border-radius: 20px;
  }

  .event-card-visual.has-flyer {
    width: 100%;
    height: 400px;
    min-height: 400px;
    max-height: 400px;
    aspect-ratio: auto;
    padding: 12px;
    background: #050b14;
  }

  .event-card-flyer {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
  }

  .event-card-body {
    min-height: 0;
    padding: 20px;
  }

  .event-card-body h2 {
    font-size: 1.25rem;
  }

  .event-card-summary {
    margin-bottom: 18px;
    -webkit-line-clamp: 2;
  }

  .event-card-visual.has-flyer .event-card-date,
  .event-card-visual.has-flyer .event-card-status {
    padding: 6px 9px;
    font-size: 0.62rem;
  }
}

@media (max-width: 420px) {

  .event-card-visual.has-flyer {
    height: 360px;
    min-height: 360px;
    max-height: 360px;
  }
}



/* ==========================================================
   Información pública del evento
   ========================================================== */

.event-information {
  margin-top: 32px;
  display: grid;
  gap: 24px;
}

.event-information-heading {
  display: grid;
  gap: 6px;
}

.event-information-heading h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.event-information-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.event-info-card {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  background: rgba(8, 25, 42, 0.82);
}

.event-info-wide {
  width: 100%;
}

.event-info-label {
  display: block;
  margin-bottom: 10px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.7;
}

.event-info-card strong {
  font-size: 1.08rem;
}

.event-lineup ul {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 7px;
}

.event-description {
  margin: 0;
  line-height: 1.75;
  white-space: pre-line;
}

.event-location-card {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(320px, 1.2fr);
  gap: 24px;
  align-items: stretch;
}

.event-location-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.event-location-copy address {
  margin-top: 10px;
  font-style: normal;
  line-height: 1.65;
  opacity: 0.82;
}

.event-maps-link {
  display: inline-flex;
  margin-top: 18px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 800;
  background: #ffc247;
  color: #061423;
}

.event-map-wrapper {
  overflow: hidden;
  min-height: 300px;
  border-radius: 16px;
}

.event-map-wrapper iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 300px;
  border: 0;
}

@media (max-width: 760px) {
  .event-information-grid,
  .event-location-card {
    grid-template-columns: 1fr;
  }

  .event-info-card {
    padding: 20px;
  }

  .event-map-wrapper,
  .event-map-wrapper iframe {
    min-height: 260px;
  }
}
