/* =========================================================
   success.css — comprobante / recibo de pago
   ========================================================= */

.success {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-16, 4rem) 0;
}

/* ── Recibo ────────────────────────────────────────────── */
.recibo {
  width: 100%;
  max-width: 480px;
  border: 1px solid var(--line);
  border-radius: var(--radius, 12px);
  overflow: hidden;
  background: var(--bg);
  box-shadow: 0 4px 32px rgba(0 0 0 / 0.08);
}

/* Header */
.recibo__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px dashed var(--line);
  background: var(--surface);
}

.recibo__marca {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.recibo__check {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(200 241 105 / 0.2);
  color: var(--accent);
  flex-shrink: 0;
}

.recibo__check--fail {
  background: rgba(217 67 67 / 0.1);
  color: var(--danger);
}

.recibo__check--wait {
  background: var(--surface);
  color: var(--muted);
  border: 1px solid var(--line);
}

.recibo__label {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
  font-family: var(--font-mono);
}

.recibo__num {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  font-family: var(--font-display);
}

.recibo__estado {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 99px;
  font-family: var(--font-mono);
  background: rgba(200 241 105 / 0.15);
  color: var(--accent);
  border: 1px solid rgba(200 241 105 / 0.4);
  white-space: nowrap;
}

.recibo__estado--fail {
  background: rgba(217 67 67 / 0.08);
  color: var(--danger);
  border-color: rgba(217 67 67 / 0.3);
}

.recibo__estado--wait {
  background: var(--surface);
  color: var(--muted);
  border-color: var(--line);
}

.recibo__estado--ok {
  background: rgba(200 241 105 / 0.15);
  color: var(--accent);
  border-color: rgba(200 241 105 / 0.4);
}

/* Body */
.recibo__body {
  padding: 0 1.5rem;
}

.recibo__seccion {
  padding: 1rem 0;
  border-bottom: 1px dashed var(--line);
}

.recibo__seccion-titulo {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-family: var(--font-mono);
  margin: 0 0 0.6rem;
}

.recibo__fila {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 0.875rem;
  padding: 0.3rem 0;
  color: var(--muted);
}

.recibo__fila strong {
  color: var(--text);
  font-weight: 500;
  text-align: right;
}

.recibo__fila--highlight strong {
  color: var(--accent);
}

/* Total */
.recibo__total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 0;
  border-top: 2px solid var(--line);
  margin-top: 0.25rem;
}

.recibo__total span {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--font-mono);
  color: var(--muted);
}

.recibo__total-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
}

/* Ref */
.recibo__ref {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--dim);
  padding: 0.5rem 0 1rem;
  margin: 0;
}

.recibo__ref code {
  color: var(--text);
  background: var(--surface);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  border: 1px solid var(--line);
}

/* Ups (declinado / pendiente) */
.recibo__ups {
  padding: 1.5rem 0;
  text-align: center;
}

.recibo__ups-titulo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--danger);
  margin: 0 0 0.5rem;
}

.recibo__ups-sub {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
}

.recibo__spinner {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
  color: var(--accent);
}

/* Footer */
.recibo__footer {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
  padding: 1.25rem 1.5rem;
  border-top: 1px dashed var(--line);
  background: var(--surface);
}

/* Botones */
.success__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 1.3rem;
  border-radius: var(--radius-sm, 6px);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.15s;
  cursor: pointer;
  border: none;
}

.success__btn:hover { opacity: 0.82; }

.success__btn--primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.success__btn--ghost {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--line);
}

.success__btn--danger {
  background: transparent;
  color: var(--danger);
  border: 1px solid var(--danger);
}

.success__btn--danger:hover {
  background: var(--danger);
  color: #fff;
  opacity: 1;
}

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 520px) {
  .recibo {
    border-radius: var(--radius-sm, 8px);
    margin: 0 -0.5rem;
  }

  .recibo__header {
    padding: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .recibo__body {
    padding: 0 1rem;
  }

  .recibo__footer {
    padding: 1rem;
    flex-direction: column;
  }

  .success__btn {
    width: 100%;
    justify-content: center;
  }

  .recibo__total-num {
    font-size: 1.35rem;
  }
}