/* ============================================
   🎨 UNIDELAFE - DISEÑO ELEGANTE Y MODERNO
   ============================================ */

:root{
  /* Paleta refinada */
  --bg: linear-gradient(145deg, #f8fafc 0%, #e2e8f0 100%);
  --card:#ffffff;
  --text:#1a202c;
  --text-secondary:#4a5568;
  --muted:#718096;
  --line:#e2e8f0;
  --primary:#5a7a8a;
  --primary-dark:#4a6a7a;
  --primary-light:#6f93a3;
  --accent:#e8b923;
  --accent-glow: rgba(232, 185, 35, 0.3);
  --success:#48bb78;
  --success-light:#9ae6b4;

  /* Sombras elegantes */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.06);
  --shadow: 0 4px 20px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.04);
  --shadow-glow: 0 0 30px rgba(90,122,138,0.15);
  
  /* Bordes */
  --radius: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;

  /* Control sizes */
  --ctrl-h: 56px;

  /* Espaciado para botones de cantidad */
  --amount-gap-x: 16px;
  --amount-gap-y: 16px;

  /* Extras */
  --soft-border: #e2e8f0;
  --soft-bg: #f7fafc;
  --input-bg: #fafbfc;
}

/* ----- Reset / base ----- */
*{ box-sizing:border-box; }
html{ -webkit-text-size-adjust:100%; scroll-behavior: smooth; }

body{
  margin:0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button, input, select{ font: inherit; }
button{ -webkit-tap-highlight-color: transparent; }

/* ============================================
   PAGE LAYOUT
   ============================================ */
.page{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: max(32px, env(safe-area-inset-top)) 20px max(32px, env(safe-area-inset-bottom));
}

.card{
  width: min(520px, 100%);
  background: var(--card);
  border: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  overflow:hidden;
  position: relative;
}

/* Decoración superior sutil */
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light), var(--accent));
  opacity: 0.9;
}

/* ============================================
   TOP BAR - Elegante
   ============================================ */
.top{
  position: relative;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 24px 24px 20px;
  background: linear-gradient(180deg, #fafbfc 0%, #ffffff 100%);
}

.back{
  position:absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  cursor:pointer;
  color: var(--muted);
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size: 18px;
  transition: all .2s ease;
}

.back:hover{ 
  background: var(--soft-bg);
  color: var(--text);
  transform: translateY(-50%) scale(1.05);
}

.topTitle{
  margin:0;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.3px;
  color: var(--text);
}

[data-step="1"] ~ .top .back,
.step[data-step="1"]:not(.hidden) ~ .top .back { display: none; }

/* ============================================
   PROGRESS BAR - Moderna con brillo
   ============================================ */
.progressWrap{
  padding: 0 28px 24px;
  background: #fff;
}

.progressTrack{
  height: 6px;
  background: #edf2f7;
  border-radius: 10px;
  overflow:hidden;
  position: relative;
}

.progressFill{
  height:100%;
  width: 25%;
  background: linear-gradient(90deg, var(--accent), #f6c944);
  border-radius: 10px;
  transition: width .5s cubic-bezier(.4,0,.2,1);
  position: relative;
}

.progressFill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ============================================
   PRIVACY TEXT (Solo en Step 3)
   ============================================ */
.privacy{
  margin: 0 0 16px 0;
  padding: 0;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: -0.1px;
}

/* ============================================
   STEPS CONTAINER
   ============================================ */
.step{
  padding: 8px 28px 32px;
  animation: fadeSlideIn .4s ease;
}

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.step.hidden{ display:none !important; }

/* ============================================
   STEP 1: HERO - Impactante y elegante
   ============================================ */
.heroTitle{
  margin: 12px 0 16px;
  font-size: clamp(26px, 6vw, 32px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.8px;
  color: var(--text);
  background: linear-gradient(135deg, var(--text) 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.heroText{
  margin: 0 0 24px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.heroImg{
  width: 100%;
  aspect-ratio: 16/10;
  border-radius: var(--radius-md);
  object-fit: cover;
  margin-bottom: 28px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,0,0,0.04);
  display: block;
}

/* ============================================
   TÍTULOS DE SECCIÓN - Con estilo
   ============================================ */
.title{
  margin: 8px 0 24px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text);
  line-height: 1.3;
}

/* ============================================
   CURRENCY SELECT - Elegante
   ============================================ */
.currency{ 
  flex-shrink: 0;
  width: 100%;
  margin-bottom: 20px;
}

.row {
  display: flex;
  width: 100%;
}

.currency select{
  width: 100%;
  height: 52px;
  border: 2px solid var(--soft-border);
  border-radius: var(--radius-sm);
  padding: 0 44px 0 16px;
  background: var(--input-bg);
  color: var(--text);
  font-weight: 600;
  font-size: 18px;
  cursor:pointer;
  box-shadow: var(--shadow-sm);
  transition: all .25s ease;

  appearance:none;
  -webkit-appearance:none;
  -moz-appearance:none;

  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 20 20'%3E%3Cpath fill='%23718096' d='M5.3 7.3a1 1 0 0 1 1.4 0L10 10.6l3.3-3.3a1 1 0 1 1 1.4 1.4l-4 4a1 1 0 0 1-1.4 0l-4-4a1 1 0 0 1 0-1.4z'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position: right 16px center;
  background-size: 16px 16px;
  background-color: var(--input-bg);
}

.currency select:hover{
  border-color: #cbd5e0;
  background-color: #fff;
}

.currency select:focus{
  outline:none;
  border-color: var(--primary-light);
  background-color: #fff;
  box-shadow: 0 0 0 4px rgba(90,122,138,.12);
}

/* ============================================
   GRID DE BOTONES DE CANTIDAD - Premium
   ============================================ */
.amountGrid{
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: var(--amount-gap-y) var(--amount-gap-x) !important;
  margin-bottom: 20px !important;
}

.amountBtn{
  position: relative;
  height: 72px !important;
  border: 2px solid var(--soft-border) !important;
  border-radius: var(--radius-sm) !important;
  background: #fff !important;
  cursor: pointer;
  font-weight: 700 !important;
  font-size: 18px !important;
  color: var(--text) !important;
  transition: none !important;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.amountBtn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  opacity: 0;
  transition: none;
}

.amountBtn .amountLabel {
  position: relative;
  z-index: 1;
  letter-spacing: -0.3px;
}

.amountBtn:hover{
  border-color: var(--primary-light) !important;
  box-shadow: var(--shadow), 0 4px 12px rgba(90,122,138,.15);
}

.amountBtn:active {
  transform: scale(0.98);
}

.amountBtn.selected{
  border-color: transparent !important;
  color: #fff !important;
  box-shadow: 0 4px 20px rgba(90,122,138,.35);
}

.amountBtn.selected::before {
  opacity: 1;
}

/* Móvil muy estrecho: 1 columna */
@media (max-width: 360px){
  .amountGrid{
    grid-template-columns: 1fr !important;
  }
}

/* ============================================
   INPUTS - Elegantes
   ============================================ */
.field{
  margin-top: 4px;
  margin-bottom: 20px;
}

.field input,
.form input{
  width:100%;
  height: 56px;
  border: 2px solid var(--soft-border);
  border-radius: var(--radius-sm);
  padding: 0 18px;
  font-size: 15px;
  font-weight: 500;
  outline:none;
  background: var(--input-bg);
  text-align:center;
  color: var(--text);
  transition: all .25s ease;
  box-shadow: var(--shadow-sm);
}

.field input::placeholder,
.form input::placeholder{
  color: #a0aec0;
  font-weight: 400;
}

.field input:focus,
.form input:focus{
  border-color: var(--primary-light);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(90,122,138,.12);
}

/* ✅ Estado de error para inputs */
.form input.input-error,
.field input.input-error {
  border-color: #e53e3e !important;
  background: #fff5f5 !important;
  box-shadow: 0 0 0 3px rgba(229,62,62,.15) !important;
  animation: shake 0.4s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-5px); }
  40%, 80% { transform: translateX(5px); }
}

/* ✅ Mensajes de error debajo de los campos */
.field-error {
  display: none;
  color: #dc2626;
  font-size: 13px;
  font-weight: 500;
  margin-top: 6px;
  margin-bottom: 12px;
  padding-left: 4px;
  animation: fadeIn 0.3s ease;
}

.field-error.show {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   CUSTOM AMOUNT INPUT - Premium
   ============================================ */
.custom-amount-wrapper {
  display: flex;
  align-items: stretch;
  width: 100%;
  height: 56px;
  border: 2px solid var(--soft-border);
  border-radius: var(--radius-sm);
  background: var(--input-bg);
  overflow: hidden;
  transition: all .25s ease;
  box-shadow: var(--shadow-sm);
}

.custom-amount-wrapper:focus-within {
  border-color: var(--primary-light);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(90,122,138,.12);
}

.custom-amount-wrapper input {
  flex: 0 0 60%;
  width: 60%;
  height: 100%;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 16px !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  letter-spacing: -0.3px;
  outline: none;
  background: transparent !important;
  text-align: center !important;
  color: var(--text);
  box-shadow: none !important;
}

.custom-amount-wrapper input::placeholder {
  color: #a0aec0;
  font-weight: 400;
  font-size: 14px;
}

.currency-symbol-box {
  flex: 0 0 40%;
  width: 40%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  border-left: 2px solid var(--soft-border);
  color: var(--text);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.3px;
  transition: all .25s ease;
}

/* Estado activo cuando el campo personalizado está seleccionado */
.custom-amount-wrapper.active {
  border-color: var(--primary);
  box-shadow: 0 4px 20px rgba(90,122,138,.25);
}

.custom-amount-wrapper.active .currency-symbol-box {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  border-left-color: transparent;
  color: #ffffff;
}

/* Estado de error - monto menor a $3 USD */
/* SOLO el borde del input (60%) y los números se ponen rojos */
/* El 40% (símbolo de moneda) usa el color del tema activo */
.custom-amount-wrapper.error {
  border-color: #e53e3e !important;
  box-shadow: 0 0 0 3px rgba(229,62,62,.15) !important;
}

.custom-amount-wrapper.error input {
  color: #e53e3e !important;
}

/* En error SIN tema, el símbolo de moneda usa color de paleta original */
.custom-amount-wrapper.error .currency-symbol-box {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  border-left-color: transparent;
  color: #ffffff;
}

/* Estado válido - monto >= $3 USD */
/* Todo se pone del color de la paleta (mismo del botón continuar) */
.custom-amount-wrapper.valid {
  border-color: var(--primary);
  box-shadow: 0 4px 20px rgba(90,122,138,.25);
}

.custom-amount-wrapper.valid input {
  color: var(--primary);
}

.custom-amount-wrapper.valid .currency-symbol-box {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  border-left-color: transparent;
  color: #ffffff;
}

/* Mensaje de error de monto mínimo */
.min-amount-error {
  color: #e53e3e;
  font-size: 13px;
  text-align: center;
  margin-top: 8px;
  font-weight: 500;
  display: none;
}

.min-amount-error.show {
  display: block;
}

/* Responsive para campo personalizado en móviles */
@media (max-width: 480px) {
  .custom-amount-wrapper {
    height: 52px;
  }
  
  .custom-amount-wrapper input {
    flex: 0 0 58%;
    width: 58%;
    padding: 0 12px !important;
    font-size: 16px !important;
  }
  
  .custom-amount-wrapper input::placeholder {
    font-size: 12px;
  }
  
  .currency-symbol-box {
    flex: 0 0 42%;
    width: 42%;
    font-size: 15px;
  }
}

@media (max-width: 360px) {
  .custom-amount-wrapper input {
    flex: 0 0 55%;
    width: 55%;
    font-size: 15px !important;
  }
  
  .custom-amount-wrapper input::placeholder {
    font-size: 11px;
  }
  
  .currency-symbol-box {
    flex: 0 0 45%;
    width: 45%;
    font-size: 14px;
  }
}

/* ============================================
   FEE BOX - Elegante
   ============================================ */
.usd-equivalent {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  margin: 12px 0;
  min-height: 20px;
  font-weight: 500;
}

.feeBox{
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  background: linear-gradient(135deg, #fafbfc 0%, #f7fafc 100%);
  border: 2px solid var(--soft-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  margin-bottom: 24px;
  transition: all .25s ease;
}

.feeBox:hover {
  border-color: #cbd5e0;
  background: #fff;
}

.feeBox input[type="checkbox"]{
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: var(--primary);
  cursor: pointer;
  flex-shrink: 0;
}

.feeBox span{
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.feeBox b{
  color: var(--primary);
  font-weight: 700;
  font-size: 16px;
}

/* ============================================
   FORM FIELDS - Step 3
   ============================================ */
.form{
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 24px;
}

.form input{
  text-align: left;
  margin-bottom: 14px;
}

.label{
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin: 0 0 8px 0 !important;
  line-height: 1.2;
  color: var(--text);
}

.req{ color: #e53e3e; }

/* ============================================
   SUMMARY BOX - Premium
   ============================================ */
.summary{
  background: linear-gradient(145deg, #fafbfc 0%, #f7fafc 100%);
  border: 2px solid var(--soft-border);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 28px;
}

.sumRow{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
}

.sumRow span{
  font-size: 15px;
  color: var(--text-secondary);
}

.sumRow b{
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.sumRow.big{
  padding-top: 18px;
}

.sumRow.big span{
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
}

.sumRow.big b{
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.5px;
}

.divider{
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--soft-border), transparent);
}

/* ============================================
   PAYMENT SELECTOR - Con efectos de glow
   ============================================ */
.payment-selector {
  margin-bottom: 24px;
}

.payment-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 16px 0;
  letter-spacing: -0.3px;
}

.payment-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border: 2px solid var(--soft-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all .3s ease;
  margin-bottom: 12px;
  background: #fff;
}

.payment-option:hover {
  border-color: #cbd5e0;
  box-shadow: var(--shadow);
}

/* Stripe seleccionado - con glow morado */
.payment-option#optStripe.selected {
  border-color: #635BFF;
  background: linear-gradient(135deg, rgba(99,91,255,.06) 0%, rgba(123,115,255,.12) 100%);
  box-shadow: 0 0 20px rgba(99,91,255,.25), 0 4px 16px rgba(99,91,255,.15);
}

/* PayPal seleccionado - con glow azul */
.payment-option#optPaypal.selected {
  border-color: #0070BA;
  background: linear-gradient(135deg, rgba(0,112,186,.06) 0%, rgba(0,48,135,.12) 100%);
  box-shadow: 0 0 20px rgba(0,112,186,.25), 0 4px 16px rgba(0,112,186,.15);
}

.payment-option-content {
  display: flex;
  align-items: center;
  gap: 16px;
}

.payment-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.stripe-icon {
  background: linear-gradient(135deg, #635BFF, #7B73FF);
}

.paypal-icon {
  background: linear-gradient(135deg, #0070BA, #003087);
}

.payment-icon svg {
  width: 28px;
  height: 28px;
}

.payment-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.payment-name {
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
}

.payment-processor {
  font-size: 13px;
  color: var(--muted);
}

.payment-radio {
  position: relative;
}

.payment-radio input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.radio-custom {
  width: 24px;
  height: 24px;
  border: 2px solid #cbd5e0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s ease;
}

/* Radio Stripe seleccionado */
#optStripe.selected .radio-custom {
  border-color: #635BFF;
  background: #635BFF;
}

/* Radio PayPal seleccionado */
#optPaypal.selected .radio-custom {
  border-color: #0070BA;
  background: #0070BA;
}

.payment-radio input[type="radio"]:checked + .radio-custom::after {
  content: '';
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
}

/* Botón Stripe activo - morado */
.primary.stripe-active {
  background: linear-gradient(135deg, #7B73FF 0%, #635BFF 100%) !important;
  box-shadow: 0 4px 20px rgba(99,91,255,.35) !important;
}

.primary.stripe-active:hover {
  background: linear-gradient(135deg, #635BFF 0%, #5046e5 100%) !important;
  box-shadow: 0 8px 28px rgba(99,91,255,.45) !important;
}

/* Botón PayPal activo - azul */
.primary.paypal-active {
  background: linear-gradient(135deg, #0070BA 0%, #003087 100%) !important;
  box-shadow: 0 4px 20px rgba(0,112,186,.35) !important;
}

.primary.paypal-active:hover {
  background: linear-gradient(135deg, #003087 0%, #001f5c 100%) !important;
  box-shadow: 0 8px 28px rgba(0,112,186,.45) !important;
}

/* ============================================
   BUTTONS - Premium
   ============================================ */
.primary{
  width: 100%;
  height: 58px;
  border: none;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all .3s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 4px 16px rgba(90,122,138,.25);
  letter-spacing: -0.2px;
}

.primary:hover{
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(90,122,138,.35);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.primary:active{
  transform: translateY(0);
}

.primary .arrow {
  transition: transform .3s ease;
}

.primary:hover .arrow {
  transform: translateX(4px);
}

/* ============================================
   SECURE BADGE
   ============================================ */
.secure{
  margin-top: 20px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.lock{ font-size: 14px; }

/* ============================================
   NOTE
   ============================================ */
.note{
  margin: 20px 0 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* ============================================
   HINT
   ============================================ */
.hint{
  display:block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}

/* ============================================
   LOADER OVERLAY
   ============================================ */
.loaderOverlay{
  position:fixed;
  inset:0;
  background:rgba(255,255,255,.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index:9999;
  display:flex;
  align-items:center;
  justify-content:center;
  opacity:1;
  transition:opacity .3s ease;
}

.loaderOverlay.done{ opacity:0; pointer-events:none; }

.loaderOverlay::after{
  content:'';
  width:44px;
  height:44px;
  border: 3px solid #e2e8f0;
  border-top-color: var(--primary);
  border-radius:50%;
  animation:spin .8s linear infinite;
}

@keyframes spin{ to{ transform:rotate(360deg); } }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 540px){
  .card{ 
    border-radius: 20px; 
  }
  
  .step{ 
    padding: 8px 24px 28px; 
  }
  
  .progressWrap{ 
    padding: 0 24px 20px; 
  }
  
  .privacy{ 
    padding: 0 24px 10px; 
  }
  
  .heroTitle{ 
    font-size: 26px; 
  }
  
  .title{ 
    font-size: 20px; 
  }
  
  .amountBtn{ 
    height: 66px !important; 
  }
  
  .primary{ 
    height: 54px; 
    font-size: 15px; 
  }
}

@media (max-width: 380px){
  .step{ 
    padding: 8px 20px 24px; 
  }
  
  .progressWrap{ 
    padding: 0 20px 18px; 
  }
  
  .privacy{ 
    padding: 0 20px 8px; 
  }
  
  .heroTitle{ 
    font-size: 24px; 
  }
  
  .amountBtn{ 
    height: 60px !important; 
    font-size: 16px !important; 
  }
}

/* ============================================
   💳 PASO 2: SELECCIÓN DE MÉTODO DE PAGO
   ============================================ */

.payment-subtitle {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  margin: -8px 0 24px;
}

.payment-method-selector {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}

.method-card {
  display: flex;
  align-items: center;
  padding: 18px 20px;
  background: var(--soft-bg);
  border: 2px solid var(--soft-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.3s ease;
  gap: 16px;
}

.method-card:hover {
  border-color: var(--primary-light);
  background: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.method-card.selected {
  border-color: var(--primary);
  background: linear-gradient(135deg, rgba(90,122,138,0.05) 0%, rgba(90,122,138,0.1) 100%);
  box-shadow: var(--shadow), 0 0 0 3px rgba(90,122,138,0.1);
}

.method-card.selected .method-check {
  opacity: 1;
  transform: scale(1);
}

.method-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stripe-bg {
  background: linear-gradient(135deg, #635BFF 0%, #8B85FF 100%);
  box-shadow: 0 4px 12px rgba(99, 91, 255, 0.3);
}

.paypal-bg {
  background: linear-gradient(135deg, #003087 0%, #009cde 100%);
  box-shadow: 0 4px 12px rgba(0, 48, 135, 0.3);
}

.method-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.method-name {
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
}

.method-desc {
  font-size: 13px;
  color: var(--muted);
}

.method-check {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--success);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.3s ease;
}

/* Nota PayPal USD */
.paypal-usd-note {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: linear-gradient(135deg, rgba(0,48,135,0.05) 0%, rgba(0,156,222,0.08) 100%);
  border: 1px solid rgba(0,156,222,0.2);
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  font-size: 13px;
  color: #003087;
}

.paypal-usd-note .info-icon {
  font-size: 18px;
}

/* Botón continuar con colores según método */
#btnToAmount.stripe-btn {
  background: linear-gradient(135deg, #635BFF 0%, #8B85FF 100%);
  box-shadow: 0 4px 15px rgba(99, 91, 255, 0.3);
}

#btnToAmount.stripe-btn:hover {
  background: linear-gradient(135deg, #5248f0 0%, #7b75ff 100%);
  box-shadow: 0 6px 20px rgba(99, 91, 255, 0.4);
}

#btnToAmount.paypal-btn {
  background: linear-gradient(135deg, #003087 0%, #009cde 100%);
  box-shadow: 0 4px 15px rgba(0, 48, 135, 0.3);
}

#btnToAmount.paypal-btn:hover {
  background: linear-gradient(135deg, #002266 0%, #007bb5 100%);
  box-shadow: 0 6px 20px rgba(0, 48, 135, 0.4);
}

#btnToAmount:disabled {
  background: var(--line);
  color: var(--muted);
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* ============================================
   ✅ PASO 5: MÉTODO SELECCIONADO (DISPLAY)
   ============================================ */

.selected-method-display {
  margin-bottom: 20px;
}

.selected-method {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  background: var(--soft-bg);
  border: 2px solid var(--soft-border);
}

.selected-method.stripe-selected {
  background: linear-gradient(135deg, rgba(99,91,255,0.05) 0%, rgba(139,133,255,0.1) 100%);
  border-color: #635BFF;
}

.selected-method.paypal-selected {
  background: linear-gradient(135deg, rgba(0,48,135,0.05) 0%, rgba(0,156,222,0.1) 100%);
  border-color: #003087;
}

.selected-method .method-icon {
  width: 44px;
  height: 44px;
}

.selected-method-text {
  flex: 1;
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
}

.selected-check {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--success);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: bold;
}

/* Ocultar selector de moneda cuando es PayPal */
#currencyRow.hidden-paypal {
  display: none !important;
}

/* ============================================
   🏦 TÍTULO ELEGANTE PASO 2
   ============================================ */

.payment-title-elegant {
  font-size: 24px !important;
  font-weight: 700 !important;
  color: var(--text) !important;
  text-align: center !important;
  margin-bottom: 28px !important;
  line-height: 1.4 !important;
  letter-spacing: -0.5px !important;
  position: relative !important;
  padding-bottom: 16px !important;
}

.payment-title-elegant::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #635BFF, #0070BA);
  border-radius: 3px;
}

/* ============================================
   💳 BOTÓN STRIPE FINAL (Paso 5)
   ============================================ */

.primary.stripe-btn-final {
  background: linear-gradient(135deg, #635BFF 0%, #8B85FF 100%) !important;
  box-shadow: 0 4px 15px rgba(99, 91, 255, 0.35) !important;
  color: #ffffff !important;
}

.primary.stripe-btn-final:hover {
  background: linear-gradient(135deg, #5248f0 0%, #7b75ff 100%) !important;
  box-shadow: 0 6px 20px rgba(99, 91, 255, 0.45) !important;
  transform: translateY(-2px) !important;
}

.primary.stripe-btn-final:active {
  transform: translateY(0) !important;
  box-shadow: 0 2px 10px rgba(99, 91, 255, 0.3) !important;
}

/* ============================================
   🎨 SISTEMA DE PALETAS DINÁMICAS
   ============================================ */

/* Variables para Stripe */
.theme-stripe {
  --theme-primary: #635BFF;
  --theme-primary-dark: #5248f0;
  --theme-primary-light: #8B85FF;
  --theme-gradient: linear-gradient(135deg, #635BFF 0%, #8B85FF 100%);
  --theme-gradient-dark: linear-gradient(135deg, #5248f0 0%, #7b75ff 100%);
  --theme-glow: rgba(99, 91, 255, 0.3);
  --theme-glow-strong: rgba(99, 91, 255, 0.5);
  --theme-border: rgba(99, 91, 255, 0.4);
  --theme-bg-soft: rgba(99, 91, 255, 0.08);
  --theme-bg-selected: linear-gradient(135deg, #5248f0 0%, #6b63ff 100%);
}

/* Variables para PayPal */
.theme-paypal {
  --theme-primary: #0070BA;
  --theme-primary-dark: #005a96;
  --theme-primary-light: #009cde;
  --theme-gradient: linear-gradient(135deg, #003087 0%, #009cde 100%);
  --theme-gradient-dark: linear-gradient(135deg, #002266 0%, #007bb5 100%);
  --theme-glow: rgba(0, 112, 186, 0.3);
  --theme-glow-strong: rgba(0, 112, 186, 0.5);
  --theme-border: rgba(0, 112, 186, 0.4);
  --theme-bg-soft: rgba(0, 112, 186, 0.08);
  --theme-bg-selected: linear-gradient(135deg, #003087 0%, #0070BA 100%);
}

/* ============================================
   💳 PASO 2: MEJORAS VISUALES SELECCIÓN
   ============================================ */

/* Efecto glow mejorado para tarjetas de método */
.method-card {
  position: relative;
  overflow: hidden;
}

.method-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

/* Glow Stripe */
#methodStripe.selected {
  border-color: #635BFF !important;
  background: linear-gradient(135deg, rgba(99,91,255,0.08) 0%, rgba(139,133,255,0.12) 100%) !important;
  box-shadow: 
    0 0 0 3px rgba(99, 91, 255, 0.15),
    0 0 20px rgba(99, 91, 255, 0.2),
    inset 0 0 30px rgba(99, 91, 255, 0.05) !important;
}

#methodStripe:hover:not(.selected) {
  border-color: rgba(99, 91, 255, 0.5);
  box-shadow: 0 4px 15px rgba(99, 91, 255, 0.15);
}

/* Glow PayPal */
#methodPaypal.selected {
  border-color: #0070BA !important;
  background: linear-gradient(135deg, rgba(0,48,135,0.08) 0%, rgba(0,156,222,0.12) 100%) !important;
  box-shadow: 
    0 0 0 3px rgba(0, 112, 186, 0.15),
    0 0 20px rgba(0, 112, 186, 0.2),
    inset 0 0 30px rgba(0, 112, 186, 0.05) !important;
}

#methodPaypal:hover:not(.selected) {
  border-color: rgba(0, 112, 186, 0.5);
  box-shadow: 0 4px 15px rgba(0, 112, 186, 0.15);
}

/* Check animado con color */
#methodStripe.selected .method-check {
  background: linear-gradient(135deg, #635BFF 0%, #8B85FF 100%);
}

#methodPaypal.selected .method-check {
  background: linear-gradient(135deg, #003087 0%, #009cde 100%);
}

/* ============================================
   🎯 BOTONES DE MONTO CON TEMA
   ============================================ */

/* ✅ STRIPE - Botones de monto */
.theme-stripe .amountBtn {
  border-color: rgba(99, 91, 255, 0.25);
  transition: all 0.3s ease;
}

.theme-stripe .amountBtn:hover:not(.selected) {
  border-color: rgba(99, 91, 255, 0.5) !important;
  background: rgba(99, 91, 255, 0.08) !important;
  box-shadow: 0 4px 15px rgba(99, 91, 255, 0.15) !important;
}

/* ✅ CRÍTICO: Sobrescribir el gradiente del ::before para Stripe */
.theme-stripe .amountBtn::before {
  background: linear-gradient(135deg, #635BFF 0%, #8B85FF 100%) !important;
}

.theme-stripe .amountBtn.selected {
  border-color: #635BFF !important;
  box-shadow: 
    0 4px 20px rgba(99, 91, 255, 0.4),
    inset 0 0 20px rgba(255, 255, 255, 0.1) !important;
}

.theme-stripe .amountBtn.selected .amountLabel {
  color: #ffffff !important;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* ✅ PAYPAL - Botones de monto */
.theme-paypal .amountBtn {
  border-color: rgba(0, 112, 186, 0.25);
  transition: all 0.3s ease;
}

.theme-paypal .amountBtn:hover:not(.selected) {
  border-color: rgba(0, 112, 186, 0.5) !important;
  background: rgba(0, 112, 186, 0.08) !important;
  box-shadow: 0 4px 15px rgba(0, 112, 186, 0.15) !important;
}

/* ✅ CRÍTICO: Sobrescribir el gradiente del ::before para PayPal */
.theme-paypal .amountBtn::before {
  background: linear-gradient(135deg, #003087 0%, #0070BA 100%) !important;
}

.theme-paypal .amountBtn.selected {
  border-color: #0070BA !important;
  box-shadow: 
    0 4px 20px rgba(0, 112, 186, 0.4),
    inset 0 0 20px rgba(255, 255, 255, 0.1) !important;
}

.theme-paypal .amountBtn.selected .amountLabel {
  color: #ffffff !important;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* ============================================
   ✅ CHECKBOX CON TEMA
   ============================================ */

/* ✅ STRIPE - Checkbox */
.theme-stripe .feeBox {
  border-color: rgba(99, 91, 255, 0.2);
}

.theme-stripe .feeBox:hover {
  border-color: rgba(99, 91, 255, 0.4);
  background: rgba(99, 91, 255, 0.03);
}

.theme-stripe .feeBox input[type="checkbox"] {
  accent-color: #635BFF !important;
}

.theme-stripe .feeBox input[type="checkbox"]:focus {
  box-shadow: 0 0 0 3px rgba(99, 91, 255, 0.2);
}

/* ✅ CRÍTICO: Color del texto de impuestos para Stripe */
.theme-stripe .feeBox b,
.theme-stripe #feeValue {
  color: #635BFF !important;
}

/* ✅ PAYPAL - Checkbox */
.theme-paypal .feeBox {
  border-color: rgba(0, 112, 186, 0.2);
}

.theme-paypal .feeBox:hover {
  border-color: rgba(0, 112, 186, 0.4);
  background: rgba(0, 112, 186, 0.03);
}

.theme-paypal .feeBox input[type="checkbox"] {
  accent-color: #0070BA !important;
}

.theme-paypal .feeBox input[type="checkbox"]:focus {
  box-shadow: 0 0 0 3px rgba(0, 112, 186, 0.2);
}

/* ✅ CRÍTICO: Color del texto de impuestos para PayPal */
.theme-paypal .feeBox b,
.theme-paypal #feeValue {
  color: #0070BA !important;
}

/* ============================================
   🔘 BOTONES PRIMARIOS CON TEMA
   ============================================ */

/* Botón Continuar - Stripe */
.theme-stripe .primary {
  background: var(--theme-gradient) !important;
  box-shadow: 0 4px 15px var(--theme-glow) !important;
}

.theme-stripe .primary:hover {
  background: var(--theme-gradient-dark) !important;
  box-shadow: 0 6px 20px var(--theme-glow-strong) !important;
  transform: translateY(-2px);
}

.theme-stripe .primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px var(--theme-glow) !important;
}

/* Botón Continuar - PayPal */
.theme-paypal .primary {
  background: var(--theme-gradient) !important;
  box-shadow: 0 4px 15px var(--theme-glow) !important;
}

.theme-paypal .primary:hover {
  background: var(--theme-gradient-dark) !important;
  box-shadow: 0 6px 20px var(--theme-glow-strong) !important;
  transform: translateY(-2px);
}

.theme-paypal .primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px var(--theme-glow) !important;
}

/* ============================================
   📝 INPUTS CON TEMA
   ============================================ */

/* Inputs - Stripe */
.theme-stripe input:focus,
.theme-stripe select:focus {
  border-color: #635BFF !important;
  box-shadow: 0 0 0 3px rgba(99, 91, 255, 0.15) !important;
  outline: none;
}

.theme-stripe .custom-amount-wrapper.active,
.theme-stripe .custom-amount-wrapper.valid {
  border-color: #635BFF !important;
  box-shadow: 0 4px 20px rgba(99, 91, 255, 0.25) !important;
}

/* ✅ CRÍTICO: Símbolo de moneda con gradiente Stripe */
.theme-stripe .custom-amount-wrapper.active .currency-symbol-box,
.theme-stripe .custom-amount-wrapper.valid .currency-symbol-box {
  background: linear-gradient(135deg, #635BFF 0%, #8B85FF 100%) !important;
  border-left-color: transparent !important;
  color: #ffffff !important;
}

/* Color del input cuando está activo/válido en Stripe */
.theme-stripe .custom-amount-wrapper.valid input {
  color: #635BFF !important;
}

/* Inputs - PayPal */
.theme-paypal input:focus,
.theme-paypal select:focus {
  border-color: #0070BA !important;
  box-shadow: 0 0 0 3px rgba(0, 112, 186, 0.15) !important;
  outline: none;
}

.theme-paypal .custom-amount-wrapper.active,
.theme-paypal .custom-amount-wrapper.valid {
  border-color: #0070BA !important;
  box-shadow: 0 4px 20px rgba(0, 112, 186, 0.25) !important;
}

/* ✅ CRÍTICO: Símbolo de moneda con gradiente PayPal */
.theme-paypal .custom-amount-wrapper.active .currency-symbol-box,
.theme-paypal .custom-amount-wrapper.valid .currency-symbol-box {
  background: linear-gradient(135deg, #003087 0%, #0070BA 100%) !important;
  border-left-color: transparent !important;
  color: #ffffff !important;
}

/* Color del input cuando está activo/válido en PayPal */
.theme-paypal .custom-amount-wrapper.valid input {
  color: #0070BA !important;
}

.theme-paypal .custom-amount-wrapper.active,
.theme-paypal .custom-amount-wrapper.valid {
  border-color: #0070BA !important;
  box-shadow: 0 0 0 3px rgba(0, 112, 186, 0.15) !important;
}

/* ============================================
   📊 BARRA DE PROGRESO CON TEMA
   ============================================ */

.theme-stripe .progressFill {
  background: var(--theme-gradient) !important;
}

.theme-paypal .progressFill {
  background: var(--theme-gradient) !important;
}

/* ============================================
   🔒 SECURE TEXT CON TEMA
   ============================================ */

.theme-stripe .secure .lock {
  color: #635BFF;
}

.theme-paypal .secure .lock {
  color: #0070BA;
}

/* ============================================
   💰 SELECTOR DE MONEDA CON TEMA
   ============================================ */

.theme-stripe .currency select {
  border-color: rgba(99, 91, 255, 0.3);
}

.theme-stripe .currency select:hover {
  border-color: rgba(99, 91, 255, 0.5);
}

.theme-paypal .currency select {
  border-color: rgba(0, 112, 186, 0.3);
}

.theme-paypal .currency select:hover {
  border-color: rgba(0, 112, 186, 0.5);
}

/* ============================================
   📋 RESUMEN CON TEMA
   ============================================ */

.theme-stripe .summary {
  border-color: rgba(99, 91, 255, 0.2);
}

.theme-stripe .sumRow.big b {
  color: #635BFF;
}

.theme-paypal .summary {
  border-color: rgba(0, 112, 186, 0.2);
}

.theme-paypal .sumRow.big b {
  color: #0070BA;
}

/* ============================================
   🏷️ TÍTULOS CON TEMA
   ============================================ */

.theme-stripe .title {
  color: var(--text);
}

.theme-paypal .title {
  color: var(--text);
}

/* ============================================
   💎 USD EQUIVALENT CON TEMA
   ============================================ */

.theme-stripe .usd-equivalent {
  color: #635BFF;
  background: rgba(99, 91, 255, 0.08);
  border-color: rgba(99, 91, 255, 0.2);
}

.theme-paypal .usd-equivalent {
  color: #0070BA;
  background: rgba(0, 112, 186, 0.08);
  border-color: rgba(0, 112, 186, 0.2);
}

/* ============================================
   💰 TÍTULO ELEGANTE PASO 3 (MONTOS)
   ============================================ */

.amount-title-elegant {
  font-size: 19px !important;
  font-weight: 600 !important;
  color: var(--text) !important;
  text-align: center !important;
  margin-bottom: 20px !important;
  line-height: 1.4 !important;
  letter-spacing: -0.2px !important;
  padding: 0 10px !important;
}

/* ============================================
   🔴 ESTADO ERROR CON TEMA (MONTO < $3)
   ============================================ */

/* ✅ STRIPE - Error: Símbolo de moneda con gradiente morado */
.theme-stripe .custom-amount-wrapper.error .currency-symbol-box {
  background: linear-gradient(135deg, #635BFF 0%, #8B85FF 100%) !important;
  border-left-color: transparent !important;
  color: #ffffff !important;
}

/* ✅ PAYPAL - Error: Símbolo de moneda con gradiente azul */
.theme-paypal .custom-amount-wrapper.error .currency-symbol-box {
  background: linear-gradient(135deg, #003087 0%, #0070BA 100%) !important;
  border-left-color: transparent !important;
  color: #ffffff !important;
}
