/* ─── Sorteo Tickets Pro — Frontend CSS ─── */
*, *::before, *::after { box-sizing: border-box; }

.st-wrap {
  max-width: 580px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  font-family: -apple-system, 'Inter', sans-serif;
}

/* BADGE */
.st-badge {
  display: inline-block;
  background: linear-gradient(135deg, #7C3AED, #5B21B6);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.4rem 1.1rem;
  border-radius: 999px;
  margin-bottom: 1rem;
  letter-spacing: 0.3px;
}

/* TÍTULO */
.st-title {
  font-size: 2rem;
  font-weight: 800;
  color: #1F1B4B;
  margin: 0 0 1.5rem;
  text-align: center;
}

/* MENSAJES */
.st-msg {
  padding: 0.9rem 1.1rem;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 500;
  margin-bottom: 1rem;
}
.st-msg--success { background: #D1FAE5; color: #065F46; border: 1px solid #6EE7B7; }
.st-msg--error   { background: #FEE2E2; color: #991B1B; border: 1px solid #FCA5A5; }

/* GRID */
.st-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; margin-bottom: 0.85rem; }
@media (max-width: 480px) { .st-grid-2 { grid-template-columns: 1fr; } }

/* CAMPOS */
.st-field { margin-bottom: 0.85rem; }
.st-field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #6B7280;
  margin-bottom: 0.4rem;
}
.st-field input[type="text"],
.st-field input[type="tel"],
.st-field input[type="email"],
.st-field select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #E5E7EB;
  border-radius: 10px;
  font-size: 0.95rem;
  color: #1F2937;
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}
.st-field input:focus,
.st-field select:focus {
  border-color: #7C3AED;
  box-shadow: 0 0 0 3px rgba(124,58,237,0.1);
}

/* TOTAL */
.st-total-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #F5F3FF;
  border: 1.5px solid #DDD6FE;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin: 1rem 0;
}
.st-total-label  { font-size: 0.9rem; color: #6B7280; font-weight: 500; }
.st-total-amount { font-size: 1.6rem; font-weight: 800; color: #7C3AED; }

/* YAPE INFO */
.st-yape-info {
  background: linear-gradient(135deg, #FFF7ED, #FFFBEB);
  border: 1.5px solid #FDE68A;
  border-radius: 14px;
  padding: 1.25rem;
  margin: 1.25rem 0;
  text-align: center;
}
.st-yape-title {
  font-weight: 700;
  font-size: 1rem;
  color: #92400E;
  margin-bottom: 0.75rem;
}
.st-qr {
  width: 160px;
  height: 160px;
  object-fit: contain;
  border-radius: 10px;
  border: 3px solid #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,.12);
  margin-bottom: 0.75rem;
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.st-yape-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.9rem;
  color: #78350F;
}
.st-yape-details strong { font-size: 1.1rem; color: #451A03; }

/* UPLOAD */
.st-upload-area {
  position: relative;
  border: 2px dashed #C4B5FD;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  background: #FAFAFF;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.st-upload-area:hover { border-color: #7C3AED; background: #F5F3FF; }
.st-upload-area input[type="file"] {
  position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer;
}
.st-upload-placeholder { font-size: 0.9rem; color: #7C3AED; }
.st-upload-placeholder span { font-size: 1.8rem; display: block; margin-bottom: 0.4rem; }
.st-upload-placeholder small { color: #9CA3AF; }
.st-upload-preview img {
  max-width: 100%; max-height: 180px; border-radius: 8px;
  border: 2px solid #A78BFA; display: block; margin: 0 auto;
}
.st-upload-preview .st-file-name { font-size: 0.82rem; color: #7C3AED; margin-top: 0.4rem; }

/* CHECKBOX */
.st-check {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: #4B5563;
  margin: 1rem 0;
  cursor: pointer;
  line-height: 1.5;
}
.st-check input { width: 16px; height: 16px; margin-top: 2px; accent-color: #7C3AED; flex-shrink: 0; }
.st-check a { color: #7C3AED; text-decoration: underline; }

/* BOTÓN SUBMIT */
.st-btn-submit {
  width: 100%;
  background: linear-gradient(135deg, #F97316, #EA580C);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 800;
  padding: 1rem;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all .2s;
  letter-spacing: 0.5px;
}
.st-btn-submit:hover { background: linear-gradient(135deg, #FB923C, #F97316); transform: translateY(-1px); }
.st-btn-submit:disabled { opacity: .6; cursor: not-allowed; transform: none; }

.st-note { font-size: 0.78rem; color: #9CA3AF; text-align: center; margin-top: 0.75rem; }

/* PANEL ÉXITO */
.st-success-panel {
  text-align: center;
  padding: 2rem 1rem;
  animation: st-fadein .4s ease;
}
@keyframes st-fadein { from { opacity:0; transform:translateY(16px) } to { opacity:1; transform:none } }
.st-success-icon { font-size: 4rem; margin-bottom: 1rem; }
.st-success-panel h3 { font-size: 1.6rem; font-weight: 800; color: #1F1B4B; margin-bottom: 0.5rem; }
.st-success-panel p { color: #6B7280; margin-bottom: 0.5rem; }
.st-ticket-num {
  font-size: 3.5rem;
  font-weight: 900;
  color: #7C3AED;
  background: #F5F3FF;
  border: 3px solid #DDD6FE;
  border-radius: 16px;
  padding: 1rem 2rem;
  display: inline-block;
  margin: 0.75rem auto 1rem;
  letter-spacing: 4px;
}
.st-ticket-info { font-size: 0.9rem; color: #4B5563; margin-bottom: 0.5rem; }
.st-ticket-note { font-size: 0.82rem; color: #9CA3AF; margin: 0.75rem 0 1.25rem; }
.st-btn-wa {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #25D366;
  color: #fff;
  font-weight: 700;
  padding: 0.85rem 2rem;
  border-radius: 12px;
  text-decoration: none;
  font-size: 1rem;
  transition: background .2s;
}
.st-btn-wa:hover { background: #1DA851; color: #fff; }
