/* ============================================================
   Dreamtrackdays - Página de Evento (evento.php) - ALIGNMENT DESIGN
   ============================================================ */

.page-evento {
  width: 100%;
}

/* ------------------ Grid layout (alineado con circuito) ------------------ */
.page-evento .evento-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1rem;
}

@media (min-width: 768px) {
  .page-evento .evento-grid {
    padding: 1.5rem 2rem;
    gap: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .page-evento .evento-grid {
    display: grid !important;
    grid-template-columns: repeat(10, minmax(0, 1fr)) !important;
    grid-template-rows: auto auto;
    gap: 1.5rem;
    padding: 2rem 5rem;
  }

  .page-evento .evento-col-izq {
    grid-column: span 6 !important;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  .page-evento #evento-photo {
    height: 500px !important;
  }

  .page-evento #evento-info {
    grid-column: span 4 !important;
    align-self: start;
    position: sticky;
    top: calc(7rem + 1rem);
    background-color: #FFFFFF !important;
  }
}

#evento-descripcion,
#evento-info {
  background-color: #FFFFFF !important;
}

/* ------------------ Grayscale Hover Pattern ------------------ */
.grayscale-hover {
  overflow: hidden;
}

.grayscale-hover img {
  filter: grayscale(100%);
  transition: filter 1s ease, transform 1s ease;
}

.grayscale-hover:hover img {
  filter: grayscale(0%);
}

/* ------------------ Contenedores principales ------------------ */
.page-evento .main-photo-container {
  height: 300px;
  width: 100%;
  overflow: hidden;
  border-radius: var(--border-radius-sm);
  border: 1px solid #D1D0CF;
  background-color: #FFFFFF !important;
  display: flex;
  justify-content: center;
  align-items: center;
}

@media (min-width: 1024px) {
  .page-evento .main-photo-container {
    height: 500px !important;
  }
}

.page-evento .main-photo-container img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  transition: all 1s ease;
}

/* ------------------ Detalles de precios (site pattern) ------------------ */
.circuit-info-list li {
  padding: 1.25rem 0;
  border-bottom: 1px solid #D1D0CF;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.circuit-info-label {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 10px;
  color: var(--color-text-muted);
}

.circuit-info-value {
  font-weight: 500;
  color: var(--color-text-primary);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ------------------ Responsive ------------------ */
@media (max-width: 768px) {
  .page-evento .main-photo-container {
    height: auto !important;
    aspect-ratio: 16 / 9;
  }
}


/* ------------------ Configurador de Entradas (Combinación A + B) ------------------ */
.ticket-sub-heading {
  font-size: 10px;
  font-weight: 700;
  color: #6B7280;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  padding: 0.5rem 0;
  margin-top: 1.5rem;
  border-bottom: 1px solid #111827;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ticket-sub-heading:first-of-type {
  margin-top: 0.25rem;
}

.ticket-list-interactive {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ticket-list-interactive li.ticket-row {
  padding: 1rem 0;
  border-bottom: 1px solid #D1D0CF;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.85rem;
  transition: background-color 0.2s ease, border-color 0.2s ease, padding 0.2s ease;
}

.ticket-list-interactive li.ticket-row.is-selected {
  background-color: #FAFAFA;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  margin-left: -0.5rem;
  margin-right: -0.5rem;
  border-bottom-color: #111827;
}

.ticket-list-interactive li.ticket-row.is-soldout {
  opacity: 0.55;
}

.ticket-row-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  min-width: 0;
  flex: 1;
}

.ticket-row-title {
  font-size: 12px;
  font-weight: 700;
  color: #111827;
  line-height: 1.35;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ticket-row-meta {
  font-size: 10px;
  color: #9CA3AF;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.ticket-row-soldout {
  font-size: 10px;
  color: #F87171;
  font-style: italic;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.ticket-row-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.ticket-row-price {
  font-size: 12px;
  font-weight: 600;
  color: #f36958;
  white-space: nowrap;
  letter-spacing: 0.04em;
}

.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid #D1D0CF;
  border-radius: 2px;
  background: #FFFFFF;
  height: 30px;
}

.qty-btn {
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  color: #111827;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
  user-select: none;
  padding: 0;
}

.qty-btn:hover:not(:disabled) {
  background: #111827;
  color: #FFFFFF;
}

.qty-btn:disabled {
  color: #D1D5DB;
  cursor: not-allowed;
}

.qty-value {
  min-width: 26px;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: #111827;
  border-left: 1px solid #E5E7EB;
  border-right: 1px solid #E5E7EB;
  line-height: 28px;
}

.qty-soldout-badge {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #9CA3AF;
  border: 1px solid #E5E7EB;
  padding: 5px 8px;
  border-radius: 2px;
}

.order-summary-box {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid #D1D0CF;
}

.order-summary-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #6B7280;
  margin-bottom: 0.75rem;
}

.order-summary-lines {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1rem;
  padding: 0.75rem;
  background: #F9FAFB;
  border: 1px solid #E5E7EB;
  border-radius: 2px;
}

.order-summary-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  font-size: 11px;
  color: #374151;
}

.order-summary-line-name {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 500;
}

.order-summary-line-qty {
  font-weight: 700;
  color: #111827;
  margin-right: 0.35rem;
}

.order-summary-line-subtotal {
  font-weight: 600;
  color: #111827;
  white-space: nowrap;
}

.order-summary-empty {
  font-size: 10px;
  color: #9CA3AF;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-align: center;
  padding: 0.35rem 0;
}

.order-summary-total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 0.75rem;
  margin-bottom: 1.25rem;
}

.order-summary-total-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #6B7280;
  font-weight: 600;
}

.order-summary-total-amount {
  font-size: 20px;
  font-weight: 800;
  color: #111827;
}

.btn-buy-submit {
  width: 100%;
  padding: 0.85rem 1.5rem;
  background-color: #111827;
  color: #FFFFFF !important;
  border: 1px solid #111827;
  border-radius: 2px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  display: block;
  text-decoration: none;
  box-sizing: border-box;
}

.btn-buy-submit:hover:not(:disabled) {
  background-color: #000000;
  border-color: #000000;
}

.btn-buy-submit:disabled {
  background-color: #E5E7EB;
  border-color: #D1D0CF;
  color: #9CA3AF !important;
  cursor: not-allowed;
}
