/* Estilos específicos para la página de conciertos */



/* Contenedor principal - Desktop: NO SCROLL global */
.content-box {
  position: fixed;
  top: 6.5rem;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 96vw;
  max-width: 1600px;
  border: 2px solid #ffffff;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  box-sizing: border-box;
  overflow: hidden;
  /* Desktop: No scroll on body/container */
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(5px);
}

.page-title {
  text-align: center;
  color: #ffffff;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  flex-shrink: 0;
}

/* Sections Container */
.sections-container {
  display: flex;
  gap: 2rem;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

/* Sección izquierda - Concierto Grande */
.left-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
  overflow: hidden;
  height: 100%;
}

/* Wrapper for Image and Button - Ensures strict width match */
/* Wrapper for Image and Button - Ensures strict width match */
.concert-feature-wrapper {
  width: fit-content;
  max-width: 70%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
  align-items: center;
  position: relative;
}

.main-concert-image {
  width: 100%;
  /* Fills the wrapper */
  height: auto;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.buy-tickets-btn {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;

  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  border: none;
  box-sizing: border-box;
}

.overlay-button-visual {
  border: 2px solid #ffffff;
  padding: 1rem 2rem;
  background: transparent;
  transition: all 0.3s;
  /* Square corners by default, explicit if needed: border-radius: 0 */
  border-radius: 0;
}

.concert-feature-wrapper:hover .buy-tickets-btn {
  opacity: 1;
}

.concert-feature-wrapper:hover .overlay-button-visual:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Sección derecha - Listado de conciertos */
.right-section {
  flex: 0 0 35%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
  overflow: hidden;
  height: 100%;
}

/* Contenedor escrolleable SOLO para la lista */
.concerts-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 0;
  overflow-y: auto;
  /* Scroll interno permitido */
  overflow-x: hidden;
  padding-right: 0.5rem;
}

.concerts-container::-webkit-scrollbar {
  width: 6px;
}

.concerts-container::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
}

.concerts-container::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.5);
  border-radius: 3px;
}

.small-concert-card {
  display: flex;
  width: 100%;
  cursor: pointer;
  user-select: none;
  min-height: 100px;
  border: 2px solid #ffffff;
  background: transparent;
  transition: all 0.3s;
  gap: 1rem;
  overflow: hidden;
  padding: 0.75rem;
  box-sizing: border-box;
}

.small-concert-card:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(5px);
}

.small-concert-card.active {
  background: rgba(255, 255, 255, 0.1);
}

.small-concert-image {
  width: 100px;
  min-width: 100px;
  height: 100px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid #ffffff;
}

.small-concert-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
  min-width: 0;
}

.small-concert-date {
  font-size: 1.1rem;
  color: #ffffff;
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
}

.small-concert-location {
  font-size: 0.85rem;
  color: #cccccc;
  line-height: 1.4;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

@media (max-width: 640px) {
  .small-concert-location {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
  }

  .small-concert-venue,
  .small-concert-city {
    margin: 0 !important;
    padding: 0 !important;
  }
}

.nav-arrow {
  display: none;
}

/* === RESPONSIVE === */

/* Tablet (max 968px): Vertical stacked, page scroll allowed */
@media (max-width: 968px) {
  .content-box {
    position: fixed;
    /* Keep fixed but scrollable internally */
    top: 7rem;
    bottom: 2rem;
    width: 95vw;
    height: auto;
    padding: 2rem;
    overflow-y: auto;
    /* Scroll permitted */
    display: block;
  }

  .sections-container {
    flex-direction: column;
    gap: 2rem;
    height: auto;
    overflow: visible;
  }

  .left-section {
    flex: none;
    height: auto;
    width: 100%;
    overflow: visible;
    min-height: 400px;
  }

  .right-section {
    flex: none;
    height: auto;
    overflow: visible;
    width: 100%;
  }

  .concerts-container {
    overflow: visible;
    height: auto;
  }

  .small-concert-card {
    min-height: 80px;
  }
}

/* Mobile (max 640px) */
@media (max-width: 640px) {
  .content-box {
    position: relative !important;
    top: auto !important;
    bottom: auto !important;
    left: auto !important;
    transform: none !important;
    width: calc(100vw - 2rem) !important;
    max-width: none !important;
    margin: 4.5rem 1rem 1rem 1rem !important;
    /* Mismo margen que biografía */
    padding: 1.5rem !important;
    border: 2px solid #ffffff !important;
    box-sizing: border-box !important;
    min-height: auto !important;
    gap: 1rem !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    /* Permitir scroll dentro de la sección */
    max-height: calc(100vh - 6.5rem) !important;
    /* Altura máxima para permitir scroll dentro */
  }

  .sections-container {
    padding: 0 !important;
    gap: 0.5rem !important;
    /* Gap muy reducido para subir el recuadro más */
  }

  .page-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    padding: 0 !important;
  }

  .sections-container > *:last-child {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }

  .left-section {
    padding: 0 !important;
    margin-bottom: 0 !important;
    width: 100% !important;
  }

  .concert-feature-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 0.25rem 0 !important;
    /* Margin bottom muy reducido para subir el recuadro más */
    aspect-ratio: 3/4 !important;
    /* Aspect ratio vertical para imagen más grande y alta */
    min-height: 350px !important;
    max-height: 450px !important;
  }

  .main-concert-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    max-height: none !important;
  }

  .buy-tickets-btn {
    padding: 0.8rem;
    font-size: 0.9rem;
  }

  .right-section {
    position: relative;
    padding: 0 !important;
    margin-top: -1rem !important;
    /* Margen negativo aumentado para subir el recuadro más */
    margin-bottom: 0 !important;
    width: 100% !important;
  }

  /* Carousel for concerts on mobile */
  .concerts-container {
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 1rem;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
    scroll-snap-type: x mandatory;
  }

  .concerts-container::-webkit-scrollbar {
    display: none;
  }

  .small-concert-card {
    min-width: 85vw;
    scroll-snap-align: center;
    flex-direction: row;
    height: 100px;
    padding: 0.5rem;
  }

  .small-concert-image {
    width: 80px;
    min-width: 80px;
    height: 80px;
  }



  .nav-arrow {
    display: flex;
    /* Show arrows needed for carousel? Or just swipe? */
    /* Let's keep them hidden if swipe is obvious or just rely on swipe */
    display: none;
  }
}