/* =========================================================
   Confirmar Pago – Starlyn Moya Scanner
   Extiende scanner.css (no redefine estilos base)
========================================================= */

/* =========================
   Layout general
========================= */

.pago-section {
  padding: 56px 0 72px;
}

.pago-container {
  width: min(560px, calc(100% - 32px));
  margin-inline: auto;
  position: relative;
}

/* =========================
   Header superior
========================= */

.pago-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
}

/* Botón regresar */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.04);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background .2s ease, color .2s ease, transform .15s ease;
}

.back-btn:hover {
  background: rgba(255,255,255,.08);
  color: var(--text);
}

.back-btn:active {
  transform: translateY(1px);
}

/* =========================
   Card principal
========================= */

.pago-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius2);
  padding: 24px;
  box-shadow: var(--shadow);
}

/* =========================
   Header interno
========================= */

.pago-head {
  margin-bottom: 20px;
}

.pago-head h1 {
  margin: 0 0 6px;
  font-size: clamp(22px, 5vw, 30px);
  letter-spacing: -0.3px;
}

.pago-head p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

/* =========================
   Formulario
========================= */

.pago-form {
  display: grid;
  gap: 16px;
}

/* Campo base */
.field {
  display: flex;
  flex-direction: column;
}

.field label {
  margin-bottom: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(0,0,0,.35);
  color: var(--text);
  font-size: 14px;
}

.field textarea {
  resize: vertical;
  min-height: 84px;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted2);
}

/* Focus */
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(255,213,74,.35);
  background: rgba(0,0,0,.45);
}

/* Texto de ayuda */
.field small {
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted2);
  line-height: 1.45;
}

/* =========================
   WhatsApp row
========================= */

.wa-row {
  display: flex;
  gap: 8px;
}

.wa-row select {
  max-width: 180px;
}

/* =========================
   Upload bonito (comprobante)
========================= */

.upload-box {
  position: relative;
  display: block;
  cursor: pointer;
}

.upload-box input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.upload-inner {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px dashed rgba(255,255,255,.18);
  background: radial-gradient(
    circle at top,
    rgba(255,255,255,.05),
    rgba(0,0,0,.55)
  );
  text-align: center;
  transition: border-color .2s ease, background .2s ease, transform .15s ease;
}

.upload-inner strong {
  font-size: 13.5px;
  font-weight: 850;
  color: rgba(255,255,255,.92);
}

.upload-inner span {
  font-size: 12px;
  color: var(--muted2);
  line-height: 1.4;
}

/* Hover upload */
.upload-box:hover .upload-inner {
  border-color: rgba(57,255,136,.35);
  background: radial-gradient(
    circle at top,
    rgba(57,255,136,.10),
    rgba(0,0,0,.60)
  );
  transform: translateY(-1px);
}

/* =========================
   Confirmación
========================= */

.confirm-box {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255,255,255,.04);
}

.confirm-box input {
  margin-top: 3px;
}

.confirm-box p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

/* =========================
   Acciones
========================= */

.actions {
  margin-top: 6px;
}

.actions .btn {
  width: 100%;
}

/* =========================
   Responsive
========================= */

@media (min-width: 860px) {
  .pago-section {
    padding: 72px 0 80px;
  }

  .pago-card {
    padding: 28px;
  }
}
/* =========================================================
   UX Explicativo – Confirmar Pago
   (pasos, info boxes, notas educativas)
========================================================= */

/* =========================
   Mini steps (1 → 2 → 3)
========================= */

.steps-mini{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:10px;
  margin: 18px 0 22px;
}

.s-item{
  display:flex;
  gap:10px;
  align-items:center;
  padding:12px;
  border-radius:14px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.04);
}

.s-num{
  width:34px;
  height:34px;
  border-radius:12px;
  display:grid;
  place-items:center;
  font-weight:900;
  font-size:14px;
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
  color: var(--muted);
}

.s-text b{
  font-size:13.5px;
  font-weight:850;
}

.s-text small{
  display:block;
  margin-top:2px;
  font-size:11.5px;
  color: var(--muted2);
  font-weight:650;
}

/* Estados */
.s-item.done{
  background: rgba(57,255,136,.08);
  border-color: rgba(57,255,136,.25);
}

.s-item.done .s-num{
  background: rgba(57,255,136,.25);
  border-color: rgba(57,255,136,.35);
  color: rgba(57,255,136,.95);
}

.s-item.active{
  background: rgba(255,213,74,.10);
  border-color: rgba(255,213,74,.30);
}

.s-item.active .s-num{
  background: rgba(255,213,74,.30);
  border-color: rgba(255,213,74,.40);
  color: rgba(255,213,74,.95);
}

/* Responsive */
@media (max-width: 640px){
  .steps-mini{
    grid-template-columns:1fr;
  }
}

/* =========================
   Caja informativa “Antes de empezar”
========================= */

.info-box{
  margin: 10px 0 22px;
  padding:16px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.10);
  background: linear-gradient(
    180deg,
    rgba(255,255,255,.06),
    rgba(0,0,0,.45)
  );
}

.info-title{
  font-weight:900;
  font-size:14.5px;
  margin-bottom:10px;
  letter-spacing:-0.2px;
}

.info-list{
  list-style:none;
  padding:0;
  margin:0;
  display:grid;
  gap:8px;
}

.info-list li{
  display:flex;
  gap:10px;
  align-items:flex-start;
  font-size:13px;
  line-height:1.5;
  color: var(--muted);
}

.info-list li span{
  width:26px;
  height:26px;
  flex-shrink:0;
  display:grid;
  place-items:center;
  border-radius:10px;
  font-weight:900;
  font-size:12px;
  background: rgba(255,213,74,.18);
  border:1px solid rgba(255,213,74,.28);
  color: rgba(255,213,74,.95);
}

/* =========================
   Ayudas largas en campos
========================= */

.field small b{
  color: rgba(255,255,255,.90);
  font-weight:850;
}

/* =========================
   Nota final
========================= */

.tiny-note{
  margin-top:14px;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.35);
  font-size:12.5px;
  line-height:1.5;
  color: var(--muted);
}

.tiny-note b{
  color: rgba(255,255,255,.90);
  font-weight:850;
}

/* =========================
   Ajustes móviles finos
========================= */

@media (max-width: 480px){
  .info-box{
    padding:14px;
  }

  .info-list li{
    font-size:12.5px;
  }

  .s-text b{
    font-size:13px;
  }
}
.pre-steps {
  margin-bottom: 22px;
}

.pre-steps h4 {
  margin-bottom: 14px;
  font-size: 15px;
  font-weight: 800;
}

.steps-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.steps-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 12px 14px;
}

.step-num {
  min-width: 26px;
  height: 26px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 13px;
  color: #000;
  background: linear-gradient(135deg, var(--gold), var(--gold2));
}

.step-text {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text);
}
.id-help {
  margin-top: 12px;
  padding: 10px;
  background: rgba(255,255,255,0.03);
  border: 1px dashed rgba(255,255,255,0.12);
  border-radius: 10px;
  text-align: center;
}

.id-help img {
  max-width: 220px;
  width: 100%;
  border-radius: 8px;
  margin-bottom: 6px;
  opacity: 0.95;
}

.id-help span {
  display: block;
  font-size: 12px;
  color: rgba(255,255,255,0.6);
}
.upload-ok {
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 14px;

  background: linear-gradient(
    135deg,
    rgba(57,255,136,0.18),
    rgba(57,255,136,0.08)
  );

  border: 1px solid rgba(57,255,136,0.35);
  color: #39ff88;

  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.3px;

  display: inline-flex;
  align-items: center;
  gap: 8px;

  box-shadow:
    0 6px 18px rgba(57,255,136,0.18),
    inset 0 0 0 1px rgba(255,255,255,0.04);

  animation: uploadFadeIn 0.35s ease-out;
}
@keyframes uploadFadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
