/* =============================================
   tickets.css — página de boletos
   Extraído de cocoweb.css (.tickets-section).
   Fonts/grid/nav/footer en base.css.
   ============================================= */

/* El padding-top antes vivía en el <style> inline de head.hbs */
.section-tickets {
  padding-top: 80px;
}

#tickets.tickets-section {
  max-width: 1536px;
  margin: auto;
}

/* Subtítulos de sección (En venta / Próximamente) */
.tickets-section .cards-title {
  padding-bottom: 2rem;
}
.tickets-section .cards-title h2 {
  font-size: clamp(1.5rem, 2vw, 3rem);
  font-weight: 700;
  font-family: CircularStdBold, sans-serif;
  margin: 0;
}

/* Grid de cards */
.tickets-section .cards {
  max-width: 1700px;
  margin: 0 auto;
  display: grid;
  gap: 3rem;
  padding: 0 1rem;
}

@media (min-width: 600px) {
  .tickets-section .cards {
    gap: 2rem;
    padding: 0;
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .tickets-section .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

.tickets-section .tickets-upcoming {
  margin-top: 8rem;
}
.tickets-section .tickets-upcoming .experience-card--static {
  cursor: default;
}

/* Cada card — height progresivo por breakpoint (igual que cocoweb.css) */
.tickets-section .experience-card {
  position: relative;
  height: 28rem;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

@media (min-width: 600px) {
  .tickets-section .experience-card {
    height: 35rem;
  }
}

@media (min-width: 900px) {
  .tickets-section .experience-card {
    height: 40rem;
  }
}

/* Overlay link — efecto hover desktop únicamente.
   En touch pointer-events:none para que el primer tap
   no active el hover y requiera doble tap. */
.tickets-section .ticket-link-card {
  position: absolute;
  display: inline-block;
  width: 100%;
  height: 100%;
  opacity: 0;
  background: #fff;
  transition: opacity 0.33s ease-in-out;
  pointer-events: none;
}
@media (hover: hover) {
  .tickets-section .ticket-link-card {
    pointer-events: auto;
  }
  .tickets-section .ticket-link-card:hover {
    opacity: 0.2;
  }
}

/* Info panel — ancho completo del card (left:0 right:0).
   z-index:2 para quedar sobre el ticket-link-card overlay. */
.tickets-section .card-info {
  position: absolute;
  background: #fff;
  bottom: 1.5rem;
  padding: 1.5rem 2rem 1.5rem 1.5rem;
  left: 0;
  right: 0;
  z-index: 2;
}

@media (min-width: 600px) {
  .tickets-section .card-info {
    bottom: 2.5rem;
    padding: 2rem 5rem 2rem 2rem;
    left: auto;
    right: auto;
  }
}
.tickets-section .card-info .card-info-title {
  font-size: 1.8rem;
  font-weight: 700;
  white-space: pre-line;
  margin: 0;
}
.tickets-section .card-info .card-info-link {
  font-size: 1.5rem;
  cursor: pointer;
  display: block;
  color: #000;
  text-decoration: none;
}
.tickets-section .card-info .card-info-link:hover {
  text-decoration: underline;
}
.tickets-section .card-info .card-info-location {
  font-size: 1.3rem;
  font-style: italic;
  color: gray;
  margin: 0;
}

/* Título del mapa */
.tickets-section .map-title {
  margin-top: 8rem;
}

/* Mapa */
.comp-map-tickets {
  position: relative;
  width: 100%;
  max-width: 1740px;
  height: 70rem;
  margin: 0 auto;
  filter: grayscale(100%) contrast(150%) invert(1);
  overflow: hidden;
}
.comp-map-tickets iframe {
  position: relative;
  top: -80px;
}

/* Animaciones reveal (antes inline en tickets.hbs; ahora las gestiona reveal.js
   usando las clases fade-up/fade-in de base.css, pero tickets.hbs usa .reveal
   con data-delay — se mantiene aquí como alias hasta migrar el markup) */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .tickets-section .experience-card {
    height: 28rem;
  }
  .comp-map-tickets {
    height: 47rem;
    margin-top: 7rem;
  }
  .comp-map-tickets iframe {
    top: -45px;
  }
}
