/* =========================================================
   Flujo de compra — checkout limpio (superficie blanca)
   El home sigue en #f4f4f1; acá evitamos el choque blanco/gris.
   ========================================================= */

.ct-compra {
  background: #fff;
  min-height: 70vh;
  padding-bottom: 2.5rem;
}

.ct-compra-inner,
.ct-compra-step {
  max-width: 1120px;
}

.ct-compra-panel {
  background: #fff;
  border: none;
  border-radius: 0;
  box-shadow: none;
  margin-top: 0.5rem;
  padding: 1.5rem 0 2rem;
}

@media (min-width: 768px) {
  .ct-compra-panel {
    padding: 1.75rem 0 2.5rem;
  }
}

.ct-compra-panel-head {
  border-bottom: 1px solid #e6e6e6;
  margin-bottom: 1.5rem;
  padding-bottom: 0.85rem;
}

.ct-compra-title {
  margin: 0 0 0.35rem;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 800;
  color: #0a0a0a;
}

.ct-compra-subtitle {
  margin: 0;
  font-size: 0.95rem;
  color: #666;
}

.ct-compra-importante {
  margin: 1.5rem 0 0.75rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: #0a0a0a;
}

.ct-compra-alert {
  background: #fff8d6 !important;
  border: 1px solid #ffcc03 !important;
  color: #0a0a0a !important;
  border-radius: 0.5rem !important;
}

.ct-compra-fineprint {
  margin-top: 1rem;
  font-size: 0.75rem;
  color: #666;
  line-height: 1.45;
}

.ct-compra-tickets {
  width: 100%;
}

.grupo-container {
  margin: 0 0 1rem;
  padding: 0.65rem 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid #e6e6e6;
  border-radius: 0;
}

.grupo-titulo {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: #0a0a0a !important;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.ct-compra-ticket-block {
  margin-bottom: 1.5rem;
  padding: 0 0 1rem;
  background: transparent;
  border: none;
  border-bottom: 1px solid #eee;
  border-radius: 0;
}

.ticket-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.ticket-badge {
  display: inline-block;
  padding: 0.3rem 0.65rem;
  background: #ffcc03;
  color: #0a0a0a;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  border-radius: 0.35rem;
}

.ticket-ubicacion-nombre {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0a0a0a;
}

.ticket-denominacion-badge {
  display: inline-block !important;
  margin-left: 0 !important;
  padding: 0.25rem 0.6rem !important;
  background: #f4f4f1 !important;
  color: #0a0a0a !important;
  border: 1px solid #ddd !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  border-radius: 999px !important;
  background-image: none !important;
}

/* Inputs: blanco sobre blanco pero con borde visible suave */
.ct-compra .form-control,
.ct-compra .form-select,
.ct-compra-panel .form-control,
.ct-compra-panel .form-select,
.ct-compra-ticket-block .form-control,
.ct-compra-ticket-block .form-select {
  background: #fff !important;
  border: 1px solid #cfcfcf !important;
  border-radius: 0.5rem !important;
  min-height: 2.75rem;
  box-shadow: none !important;
}

.ct-compra .form-control:focus,
.ct-compra .form-select:focus,
.ct-compra-panel .form-control:focus,
.ct-compra-panel .form-select:focus {
  border-color: #ffcc03 !important;
  box-shadow: 0 0 0 3px rgba(255, 204, 3, 0.28) !important;
}

.ct-compra .label-text,
.ct-compra-panel .label-text {
  font-weight: 600;
  color: #333;
  font-size: 0.85rem;
}

/* Legacy white rows → flat on white page */
.ct-compra .row[style*="background-color: #fff"],
.ct-compra .row[style*="background-color:#fff"],
.ct-compra .row[style*="background-color: #FFF"],
.ct-compra .menu-seleccion-wrapper {
  background-color: #fff !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: visible;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.ct-compra .card {
  background: #fff !important;
  border: 1px solid #e6e6e6 !important;
  border-radius: 0.65rem !important;
  box-shadow: none !important;
}

.ct-compra .card-header,
.ct-compra .card .card-header {
  background: #f8f8f6 !important;
  border-bottom: 1px solid #e6e6e6 !important;
  color: #0a0a0a !important;
}

.ct-compra .card-header .card-title,
.ct-compra .card-header .float-end {
  color: #0a0a0a !important;
}

.ct-compra .card-footer,
.ct-compra .card .card-footer {
  background: #f8f8f6 !important;
  border-top: 1px solid #e6e6e6 !important;
}

.ct-compra .card-body {
  background: #fff !important;
}

.ct-compra .table {
  --bs-table-bg: transparent;
  --bs-table-color: #0a0a0a;
}

.ct-compra .table > :not(caption) > * > * {
  background-color: transparent;
}

/* ---- Resumen de compra (claro + atractivo, desktop first) ---- */
.ct-compra-resumen-title {
  margin: 1.75rem 0 0.9rem;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-transform: none;
  color: #0a0a0a;
}

.ct-compra-resumen {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.ct-compra .ct-compra-resumen-table {
  margin: 0;
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
}

.ct-compra .ct-compra-resumen-table > :not(caption) > * > * {
  border-bottom-width: 0;
  box-shadow: none;
}

/* Header columnas: contraste alto */
html body .ct-compra .ct-compra-resumen-table thead tr,
html body .ct-compra .ct-compra-resumen-head,
html body .ct-compra .ct-compra-resumen-table thead th,
html body .ct-compra .ct-compra-resumen-head th,
html body .ct-compra .ct-compra-resumen-table thead td,
html body .ct-compra .ct-compra-resumen-head td {
  background-color: #0a0a0a !important;
  color: #ffcc03 !important;
  border: none !important;
  font-size: 0.78rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  padding: 1rem 1.25rem !important;
  opacity: 1 !important;
}

html body .ct-compra .ct-compra-resumen-table thead th *,
html body .ct-compra .ct-compra-resumen-head * {
  color: #ffcc03 !important;
}

html body .ct-compra .ct-compra-resumen-head th:nth-child(2),
html body .ct-compra .ct-compra-resumen-head th:nth-child(3),
html body .ct-compra .ct-compra-resumen-head th:nth-child(4) {
  text-align: right !important;
}

.ct-compra .ct-compra-resumen-table tbody td {
  padding: 0.85rem 1.25rem;
  font-size: 0.98rem;
  color: #0a0a0a;
  vertical-align: middle;
  border: none;
  background: #fff !important;
}

/* Grupo / categoría: acento marca */
.ct-compra .ct-compra-resumen-group td {
  padding: 0.95rem 1.25rem;
  font-size: 1.02rem;
  font-weight: 800;
  color: #0a0a0a !important;
  background: #ffcc03 !important;
  border-top: 1px solid #f0c000;
}

.ct-compra .ct-compra-resumen-line td {
  border-bottom: 1px solid #f0f0f0 !important;
}

.ct-compra .ct-compra-resumen-indent {
  padding-left: 1.75rem !important;
  font-weight: 600;
  color: #222;
}

.ct-compra .ct-compra-resumen-line td:nth-child(2),
.ct-compra .ct-compra-resumen-line td:nth-child(3),
.ct-compra .ct-compra-resumen-line td:nth-child(4),
.ct-compra .ct-compra-resumen-fee td:nth-child(2),
.ct-compra .ct-compra-resumen-fee td:nth-child(3),
.ct-compra .ct-compra-resumen-fee td:nth-child(4) {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  font-weight: 600;
}

.ct-compra .ct-compra-resumen-line td:last-child {
  font-weight: 800;
  font-size: 1.02rem;
}

/* Sección anidada (menú / extras) */
.ct-compra .ct-compra-resumen-section td {
  padding: 0.7rem 1.25rem 0.35rem 1.75rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #666 !important;
  background: #f7f7f5 !important;
  border-bottom: none !important;
}

.ct-compra .ct-compra-resumen-nested td {
  padding-top: 0.45rem;
  padding-bottom: 0.45rem;
  font-size: 0.92rem;
  color: #333 !important;
  background: #f7f7f5 !important;
  border-bottom: 1px solid #ecece8 !important;
}

.ct-compra .ct-compra-resumen-nested td:first-child {
  padding-left: 2.1rem !important;
}

.ct-compra .ct-compra-resumen-nested td:first-child::before {
  content: "";
  display: inline-block;
  width: 0.4rem;
  height: 0.4rem;
  margin-right: 0.55rem;
  border-radius: 50%;
  background: #ffcc03;
  vertical-align: middle;
}

/* Costo de servicio */
.ct-compra .ct-compra-resumen-fee td {
  padding: 1.05rem 1.25rem;
  border-top: 2px solid #0a0a0a !important;
  font-size: 0.95rem;
  font-weight: 600;
  color: #333 !important;
  background: #fff !important;
}

.ct-compra .ct-compra-resumen-fee td:last-child {
  font-weight: 800;
  color: #0a0a0a !important;
}

/* Total */
.ct-compra-resumen-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  border-top: 1px solid #e6e6e6;
  background: linear-gradient(180deg, #fffef5 0%, #fff 100%);
}

.ct-compra-resumen-total-label {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0a0a0a;
}

.ct-compra-resumen-total-amount {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0a0a0a;
  font-variant-numeric: tabular-nums;
  padding: 0.45rem 0.95rem;
  border-radius: 0.55rem;
  background: #ffcc03;
  box-shadow: 0 2px 8px rgba(255, 204, 3, 0.35);
}

@media (min-width: 768px) {
  .ct-compra .ct-compra-resumen-table tbody td {
    font-size: 1rem;
  }

  .ct-compra .ct-compra-resumen-group td {
    font-size: 1.08rem;
  }

  .ct-compra-resumen-total {
    padding: 1.25rem 1.5rem;
  }

  .ct-compra-resumen-total-amount {
    font-size: 1.5rem;
  }
}

/* Mobile resumen */
.ct-compra-resumen-mobile {
  padding: 0.85rem 1rem 0;
}

.ct-compra-resumen-mobile-item {
  padding: 0.95rem 0;
  border-bottom: 1px solid #ececec;
}

.ct-compra-resumen-mobile-item:last-of-type {
  border-bottom: none;
}

.ct-compra-resumen-mobile-main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
}

.ct-compra-resumen-mobile-name {
  font-weight: 800;
  color: #0a0a0a;
  margin-bottom: 0.25rem;
  line-height: 1.3;
  font-size: 0.98rem;
}

.ct-compra-resumen-mobile-unit {
  font-size: 0.84rem;
  color: #666;
}

.ct-compra-resumen-mobile-price {
  font-weight: 800;
  color: #0a0a0a;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  font-size: 1.02rem;
}

.ct-compra-resumen-mobile-nested,
.ct-compra-resumen-mobile-block {
  margin-top: 0.7rem;
  padding: 0.65rem 0.75rem;
  background: #f7f7f5;
  border-radius: 0.55rem;
}

.ct-compra-resumen-mobile-section {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #666;
  margin-bottom: 0.4rem;
}

.ct-compra-resumen-mobile-nested-line {
  font-size: 0.9rem;
  color: #333;
  margin-bottom: 0.25rem;
  padding-left: 0.15rem;
}

.ct-compra-resumen-mobile-nested-line::before {
  content: "";
  display: inline-block;
  width: 0.35rem;
  height: 0.35rem;
  margin-right: 0.45rem;
  border-radius: 50%;
  background: #ffcc03;
  vertical-align: middle;
}

.ct-compra-resumen-mobile-fee {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-top: 2px solid #0a0a0a;
  font-size: 0.95rem;
  font-weight: 600;
  color: #333;
}

.ct-compra-resumen-mobile .ct-compra-resumen-total {
  margin: 0 -1rem;
  border-radius: 0;
}

.ct-compra .step-progress-container {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.ct-compra .step-progress-bar {
  background: #ececec !important;
  border: none !important;
  border-radius: 2rem !important;
  box-shadow: none !important;
}

.ct-compra [style*="background: #fffdf3"],
.ct-compra [style*="background:#fffdf3"],
.ct-compra [style*="background: #fffbe9"],
.ct-compra [style*="background:#fffbe9"],
.ct-compra [style*="background: #fff9e6"],
.ct-compra [style*="background:#fff9e6"],
.ct-compra [style*="background: #fffef7"],
.ct-compra [style*="background:#fffef7"] {
  background: #fff !important;
  border-color: #e6e6e6 !important;
}

.ct-compra .text-primary {
  color: #0a0a0a !important;
}

.ct-compra .bg-primary {
  background-color: #ffcc03 !important;
  color: #0a0a0a !important;
}
