/* preventa.css — complementos de gta6.css para la página genérica de preventas */

[hidden] { display: none !important; }

/* Cargando / vacío */
.pv-state {
  min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; padding: 120px 24px 60px; text-align: center; color: #8090a8;
}
.pv-state > i { font-size: 34px; color: #ff4da6; }
.pv-state h2 { margin: 0; font-size: clamp(22px, 4vw, 30px); font-weight: 900; color: #fff; }
.pv-state p { margin: 0 0 14px; font-size: 14px; }

/* Lista de preventas */
.pv-list-section { padding: 130px 24px 80px; min-height: 80vh; }
.pv-list-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.pv-card {
  display: flex; flex-direction: column; overflow: hidden; text-decoration: none; color: inherit;
  background: linear-gradient(145deg, #0d0918, #0a0612); border: 1px solid #1a1030; border-radius: 20px;
  transition: transform .22s, border-color .22s, box-shadow .22s;
}
.pv-card:hover { transform: translateY(-4px); border-color: rgba(255, 77, 166, .45); box-shadow: 0 18px 40px rgba(255, 77, 166, .12); }
.pv-card-img { aspect-ratio: 16 / 9; background: #120a20 center / cover no-repeat; }
.pv-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pv-card-date { font-size: 11px; font-weight: 700; color: #ff9d00; text-transform: uppercase; letter-spacing: 1px; }
.pv-card-body h3 { margin: 0; font-size: 19px; font-weight: 800; color: #fff; }
.pv-card-body p { margin: 0; font-size: 13px; color: #8090a8; }
.pv-card-foot { margin-top: auto; padding-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; color: #8090a8; }
.pv-card-foot strong { color: #fff; }
.pv-card-cta { font-weight: 800; color: #ff4da6; white-space: nowrap; }

/* Ediciones: 1, 2 o 3+ columnas según cuántas haya */
.pv-editions-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.pv-editions-grid.is-single { max-width: 520px; margin: 0 auto; }
.pv-ed-action { margin-top: 18px; }
.pv-ed-action .gta6-reserve-btn { width: 100%; justify-content: center; }
.pv-ed-status { display: flex; flex-direction: column; gap: 8px; }
.pv-ed-status .gta6-po-status-badge { align-self: flex-start; }
.pv-ed-done { text-align: center; padding: 10px; font-size: 13px; font-weight: 700; color: #00c46a; }

/* Barras de progreso y filas de montos */
.pv-progress { height: 7px; background: rgba(255, 255, 255, .07); border-radius: 6px; overflow: hidden; }
.pv-progress span { display: block; height: 100%; width: 0; border-radius: 6px; background: linear-gradient(90deg, #ff4da6, #ff9d00); transition: width .5s; }
.pv-abono-row { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: #8090a8; }
.pv-abono-status {
  margin-top: 12px; padding: 12px 14px; border-radius: 12px; text-align: left;
  background: rgba(255, 255, 255, .04); display: flex; flex-direction: column; gap: 8px;
}
.pv-abono-ok { text-align: center; }

/* Consultar reserva por teléfono */
.pv-check {
  max-width: 480px; margin: 32px auto 0; padding: 20px 22px; border-radius: 16px;
  background: rgba(255, 255, 255, .03); border: 1px solid #1a2235;
}
.pv-check-title { font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.pv-check-title i { color: #ff9d00; margin-right: 6px; }
.pv-check-sub { font-size: 12px; color: #667; margin-bottom: 14px; }
.pv-check-row { display: flex; gap: 8px; }
.pv-check-row .gta6-input { flex: 1; margin: 0; }
.pv-check-btn {
  padding: 10px 18px; border: none; border-radius: 10px; cursor: pointer; white-space: nowrap; font-family: inherit;
  font-size: 13px; font-weight: 700; color: #fff; background: linear-gradient(135deg, #ff9d00, #ff4da6);
}
.pv-check-msg { font-size: 12px; margin-top: 8px; color: #8090a8; }
.pv-check-msg.is-error { color: #ff5c5c; }

/* Cómo funciona */
.pv-steps {
  list-style: none; padding: 0; margin: 0 0 36px; text-align: left;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px;
}
.pv-steps li {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 14px;
  background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 77, 166, .12);
}
.pv-steps li > span {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  font-size: 13px; font-weight: 900; color: #fff; background: linear-gradient(135deg, #ff9d00, #ff4da6);
}
.pv-steps strong { display: block; font-size: 13px; color: #fff; }
.pv-steps small { display: block; font-size: 11.5px; color: #8090a8; margin-top: 2px; line-height: 1.4; }

.pv-support { display: inline-flex; align-items: center; gap: 8px; margin-top: 26px; font-size: 13px; font-weight: 600; color: #25d366; text-decoration: none; }
.pv-support:hover { text-decoration: underline; }
.pv-out { color: #ffd700; font-size: 18px; font-weight: 800; }

@media (max-width: 640px) {
  .pv-list-section { padding-top: 110px; }
  .pv-list-grid, .pv-editions-grid { grid-template-columns: 1fr; }
  .gta6-cd-block { min-width: 60px; padding: 10px 12px; }
  .gta6-cd-block span { font-size: 26px; }
}

/* La descripción va centrada bajo el título */
.gta6-section-header .gta6-sec-sub { margin-left: auto; margin-right: auto; }
