/* ============================================================
   CONCERT DETAIL MODAL — PRO UX
   Integra en style.css o en el <style> del index.html
   ============================================================ */

.btn-tickets {
  background: linear-gradient(45deg, #f59e0b, #f97316);
  color: #000;
  padding: .75rem 1.5rem;
  border: none;
  border-radius: .5rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .3s ease;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  text-decoration: none;
}
.btn-tickets:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(245,158,11,.3);
  color: #000;
}

/* ── Overlay ── */
#concert-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(5, 8, 22, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  overflow-y: auto;
  padding: 1.5rem 1rem;
  /* Centrado vertical con flexbox */
  display: none;
  align-items: center;
  justify-content: center;
}

#concert-modal.is-open {
  display: flex !important;
}

/* ── Contenedor del modal ── */
#concert-modal .modal-content {
  position: relative;
  width: min(920px, 94vw) !important;
  max-width: none !important;
  max-height: 92vh;
  background: #1e2a3a;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.04),
    0 30px 80px rgba(0, 0, 0, 0.7),
    0 0 120px rgba(124, 58, 237, 0.08);
  animation: modalReveal 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}

#concert-modal .modal-content::-webkit-scrollbar { width: 4px; }
#concert-modal .modal-content::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 4px; }

@keyframes modalReveal {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(24px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* ── Botón de cierre ── */
#concert-modal .close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  width: 2.25rem;
  height: 2.25rem;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e2e8f0;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  float: none;
  text-decoration: none;
}

#concert-modal .close:hover {
  background: rgba(255,255,255,0.15);
  transform: rotate(90deg);
  color: #fff;
}

/* ── Zona imagen (poster horizontal) ── */
.cm-poster-wrap {
  position: relative;
  width: calc(100% - 2rem);
  height: 340px;
  overflow: hidden;
  background: #070c1a;
  flex-shrink: 0;
  border-radius: 0.75rem;
  margin: 1rem 1rem 0;
}

.cm-poster-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 6s ease;
  border-radius: 0.75rem;
}

/* Leve zoom-in al abrir — sensación cinematográfica */
#concert-modal.is-open .cm-poster-wrap img {
  transform: scale(1.04);
}

/* Gradiente sobre el poster: fade hacia el cuerpo del modal */
.cm-poster-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.05) 40%,
    rgba(13, 18, 37, 0.95) 100%
  );
  pointer-events: none;
}

/* Badge de estado — sobre la imagen, esquina sup izquierda */
.cm-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  border-radius: 2rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}

.cm-badge.upcoming {
  background: rgba(34, 197, 94, 0.2);
  border: 1px solid rgba(34, 197, 94, 0.45);
  color: #86efac;
}

.cm-badge.past {
  background: rgba(100, 116, 139, 0.25);
  border: 1px solid rgba(100, 116, 139, 0.35);
  color: #94a3b8;
}

/* ── Cuerpo del modal ── */
.cm-body {
  padding: 1.75rem 2rem 2rem;
}

/* Título y artista */
.cm-title {
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  font-weight: 800;
  color: #ffffff !important;
  line-height: 1.2;
  margin: 0 0 0.35rem;
  letter-spacing: -0.02em;
  text-shadow: none;
  -webkit-text-fill-color: #ffffff;
}

.cm-artist {
  font-size: 1.05rem;
  font-weight: 600;
  color: #c4b5fd !important;
  margin: 0 0 1.5rem;
  letter-spacing: 0.01em;
}

/* ── Chips de metadatos ── */
.cm-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.cm-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.6rem;
  padding: 0.45rem 0.85rem;
  font-size: 0.875rem;
  color: #cbd5e1;
  transition: background 0.2s;
}

.cm-chip i {
  color: #7c3aed;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.cm-chip strong {
  color: #f1f5f9;
  font-weight: 600;
}

/* ── Descripción ── */
.cm-description {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #94a3b8;
  margin-bottom: 2rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 1.25rem;
}

/* ── Descripciones lado a lado ── */
.cm-desc-row {
  display: flex;
  gap: .75rem;
  margin-bottom: 1.25rem;
  border-top: 1px solid rgba(255,255,255,.06);
  padding-top: 1.25rem;
}

.cm-desc-box {
  flex: 1;
  font-size: .9rem;
  line-height: 1.65;
  color: #94a3b8;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: .6rem;
  padding: .85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}


/* ── Fila de enlaces de artista ── */
.cm-links-row {
  display: flex;
  gap: .5rem;
  margin-bottom: .6rem;
}

.cm-links-row .cm-link-btn {
  flex: 1;
  justify-content: center;
}

/* ── Zona CTA ── */
.cm-cta {
  display: flex;
  gap: 0.6rem;
  align-items: stretch;
  flex-wrap: wrap;
  margin-top: .5rem;
}

.cm-cta .cm-link-btn {
  flex: 0 0 auto;
}

/* Botón reserva — override del .btn-tickets original mejorado */
.cm-cta .btn-tickets {
  flex: 1 1 auto;
  justify-content: center;
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 0.75rem;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 24px rgba(245, 158, 11, 0.25);
}

/* Alerta de concierto pasado */
.cm-alert-past {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 0.75rem;
  padding: 0.85rem 1rem;
  color: #94a3b8;
  font-size: 0.9rem;
}

.cm-alert-past i {
  color: #64748b;
  flex-shrink: 0;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .cm-desc-row {
    flex-direction: column;
  }
  #concert-modal {
    padding: 1rem;
    align-items: center;
  }

  #concert-modal .modal-content {
    width: 100%;
    max-height: calc(100vh - 2rem);
    border-radius: 1.25rem;
    animation: modalSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    overflow-y: auto;
  }

  @keyframes modalSlideUp {
    from { opacity: 0; transform: translateY(60px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  .cm-poster-wrap {
    height: 220px;
  }

  .cm-body {
    padding: 1.25rem 1.25rem 1.75rem;
  }

  .cm-title {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    font-size: 1.35rem;
  }

  .cm-artist {
    color: #c4b5fd !important;
  }

  .cm-chip {
    font-size: 0.82rem;
    padding: 0.4rem 0.7rem;
    color: #e2e8f0;
  }

  .cm-chip strong {
    color: #ffffff;
  }

  .cm-description {
    color: #cbd5e1;
    font-size: 0.9rem;
  }

  .cm-cta .btn-tickets {
    padding: 0.8rem 1.25rem;
    font-size: 0.95rem;
  }
}

/* ============================================================
   CONCERT CARDS — PRO UX homogéneo con el modal
   ============================================================ */

@keyframes cc-fade-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Tarjeta base ── */
.cc-card {
  background: #1e2a3a;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 1rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: cc-fade-in 0.4s ease both;
}

.cc-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Pasada: imagen desaturada */
.cc-card--past .cc-poster-wrap img {
  filter: grayscale(0.6) brightness(0.85);
}

/* ── Poster ── */
.cc-poster-wrap {
  position: relative;
  width: calc(100% - 1.25rem);
  margin: 0.625rem 0.625rem 0;
  border-radius: 0.65rem;
  overflow: hidden;
  height: 200px;
  flex-shrink: 0;
  background: #070c1a;
}

.cc-poster-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.cc-card:hover .cc-poster-wrap img {
  transform: scale(1.04);
}

/* Gradiente sobre el poster */
.cc-poster-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 50%,
    rgba(13, 18, 37, 0.7) 100%
  );
  pointer-events: none;
}

/* ── Badge sobre la imagen ── */
.cc-badge {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.6rem;
  border-radius: 2rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}

.cc-badge--upcoming {
  background: rgba(34, 197, 94, 0.2);
  border: 1px solid rgba(34, 197, 94, 0.45);
  color: #86efac;
}

.cc-badge--past {
  background: rgba(100, 116, 139, 0.25);
  border: 1px solid rgba(100, 116, 139, 0.35);
  color: #94a3b8;
}

/* ── Cuerpo ── */
.cc-body {
  padding: 1rem 1.1rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.cc-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  margin: 0 0 0.25rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
  text-align: center;
}

.cc-artist {
  font-size: 0.875rem;
  font-weight: 600;
  color: #c4b5fd;
  margin: 0 0 0.85rem;
  text-align: center;
}

/* ── Chips ── */
.cc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
  flex: 1;
}

.cc-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  padding: 0.3rem 0.65rem;
  font-size: 0.78rem;
  color: #cbd5e1;
}

.cc-chip i {
  color: #7c3aed;
  font-size: 0.72rem;
  flex-shrink: 0;
}

.cc-chip strong {
  color: #f1f5f9;
  font-weight: 600;
}

/* ── Botones ── */
.cc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.6rem 1rem;
  border-radius: 0.6rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 0;
  text-decoration: none;
  font-family: inherit;
}

/* Botón principal — próximos */
.cc-btn--primary {
  width: 100%;
  background: linear-gradient(45deg, #f59e0b, #f97316);
  color: #000;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.2);
}

.cc-btn--primary:hover {
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.35);
  transform: translateY(-1px);
  color: #000;
}

/* Botón ghost — pasados */
.cc-btn--ghost {
  flex: 1;
  width: 100%;
  background: linear-gradient(45deg, #f59e0b, #f97316);
  border: 0;
  color: #000;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.2);
}

.cc-btn--ghost:hover {
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.35);
  transform: translateY(-1px);
  color: #000;
}

/* ── past-actions con nuevas clases ── */
.past-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
}

/* El gal-slot hereda el mismo ancho que el ghost */
.past-actions .gal-slot,
.past-actions .com-slot {
  width: 100%;
  display: flex;
  min-width: 0;
}

/* El botón dentro del gal-slot ocupa todo su espacio */
.past-actions .gal-slot .btn-concert-purple,
.past-actions .gal-slot button {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.6rem 1rem;
  border-radius: 0.6rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  background: linear-gradient(45deg, #f59e0b, #f97316);
  border: 0;
  color: #000;
  font-family: inherit;
  transition: all 0.2s ease;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.2);
}

.past-actions .gal-slot .btn-concert-purple:hover,
.past-actions .gal-slot button:hover {
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.35);
  transform: translateY(-1px);
  color: #000;
}

/* ── Responsive cards ── */
@media (max-width: 768px) {
  .cc-poster-wrap {
    height: 180px;
  }
}

@media (max-width: 420px) {
  .cc-poster-wrap {
    height: 160px;
  }

  .cc-title {
    font-size: 0.95rem;
  }
}