:root{
  --bg:#f4f6f8;
  --card:#ffffff;
  --text:#101828;
  --muted:#667085;
  --line:#eaecf0;
  --primary:#6f93a3;
  --primary-dark:#5f8394;
  --accent:#f97316;
  --shadow: 0 12px 36px rgba(16,24,40,.12);
  --radius: 16px;
}

.ur-page{
  min-height: 80vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 28px 14px;
  background: transparent;
}

.ur-card{
  width: min(560px, 100%);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow:hidden;
}

.ur-header{
  padding: 22px 22px 10px;
  text-align:center;
}

.ur-logo{
  width: 120px;
  height: 120px;
  margin: 6px auto 10px;
  border-radius: 999px;
  display:grid;
  place-items:center;
  overflow:hidden;
  background: #e9eef1;
  border: 1px solid #d7e0e6;
}

.ur-logo img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ur-title{
  margin-top: 6px;
  font-weight: 800;
  letter-spacing: .5px;
  color: var(--accent);
  font-size: 18px;
}

.ur-divider{
  height: 1px;
  background: var(--line);
  margin: 18px auto 16px;
  width: 88%;
}

.ur-subtitle{
  font-weight: 800;
  letter-spacing: .6px;
  color: var(--primary);
  font-size: 22px;
}

.ur-form{
  padding: 14px 22px 22px;
}

.ur-field{
  margin: 16px 0;
}

.ur-field label{
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
  letter-spacing: 0.3px;
}

.ur-field input{
  width: 100%;
  height: 56px;
  padding: 0 18px;
  border: 2px solid var(--line);
  border-radius: 12px;
  font-size: 16px;
  outline: none;
  background: #fff;
  transition: all 0.2s ease;
  font-weight: 500;
  color: var(--text);
}

.ur-field input:hover{
  border-color: rgba(111,147,163,.3);
  background: #fafbfc;
}

.ur-field input:focus{
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(111,147,163,.12);
  background: #fff;
}

.ur-field input::placeholder{
  color: #98a2b3;
  font-weight: 400;
}

/* Estado de error - DEBE IR DESPUÉS para tener más prioridad */
.ur-field.ur-field-error input,
.ur-field.ur-field-error input:hover,
.ur-field.ur-field-error input:focus,
.ur-field.ur-field-error input:active{
  border-color: #ef4444 !important;
  background: #fff !important;
  box-shadow: 0 0 0 4px rgba(239,68,68,.15) !important;
  animation: shake 0.3s ease;
}

.ur-field-error-msg{
  display: none;
  margin-top: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #dc2626;
  letter-spacing: 0.2px;
}

.ur-field.ur-field-error .ur-field-error-msg{
  display: block;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-8px); }
  75% { transform: translateX(8px); }
}

.ur-hint{
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
}

.ur-aporte{
  margin-top: 24px;
  padding-top: 20px;
}

.ur-aporte-title{
  margin: 0 0 20px;
  padding: 20px 24px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(15,23,42,.06);
  display: flex;
  align-items: center;
  gap: 12px;
}

.ur-aporte-title::before{
  content: '✓';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(111,147,163,.25);
}

.ur-aporte-title-text{
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 15.5px;
  line-height: 1.4;
}

.ur-aporte-title-red{
  color: #dc2626;
  font-weight: 800;
}

.ur-aporte-note{
  color: #475569;
  font-weight: 600;
  font-size: 14px;
  margin: 0 0 24px;
  padding: 14px 18px;
  background: #f9fafb;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  line-height: 1.6;
  text-align: center;
}

.ur-aporte-note strong{
  color: #475569;
  font-weight: 900;
  text-transform: uppercase;
}

.ur-aporte-note .ur-nota-big{
  color: #dc2626;
  font-weight: 900;
  font-size: 16px;
  letter-spacing: 0.5px;
}

/* ====== OPCIONES MEJORADAS - DOS RECUADROS INTERNOS ====== */
.ur-options{
  display: grid;
  gap: 12px;
  margin: 16px 0 12px;
}

.ur-opt{
  display: flex;
  align-items: stretch;
  gap: 14px;
  padding: 14px;
  border: 2px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
  user-select: none;
  background: #fff;
  transition: all 0.2s ease;
  min-height: 70px;
}

.ur-opt:hover{
  border-color: rgba(111,147,163,.4);
  background: #fafbfc;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16,24,40,.06);
}

.ur-opt:has(input:checked){
  border-color: var(--primary);
  background: rgba(111,147,163,.04);
  box-shadow: 0 0 0 3px rgba(111,147,163,.12);
}

.ur-opt input{
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: var(--primary);
  margin-top: 4px;
  flex-shrink: 0;
}

.ur-opt span{
  flex: 1;
  display: flex;
}

/* ====== DISEÑO INTERNO - DOS RECUADROS ====== */
.ur-optText{
  display: flex;
  align-items: stretch;
  gap: 28px;
  width: 100%;
  position: relative;
}

/* ✅ Símbolo ≈ en el CENTRO entre los dos recuadros */
.ur-optText::after{
  content: '≈';
  font-size: 16px;
  font-weight: 900;
  color: #98a2b3;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 1;
}

/* Recuadro USD (sin label "Monto") */
.ur-usd{
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 14px;
  background: #f9fafb;
  border: 1px solid #eaecf0;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 900;
  color: var(--text);
  white-space: nowrap;
  letter-spacing: 0.3px;
  gap: 6px;
}

/* Recuadro Equivalente (sin label "Equivalente") */
.ur-eq{
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 14px;
  background: #f9fafb;
  border: 1px solid #eaecf0;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  color: #5d6b7a;
  white-space: nowrap;
  letter-spacing: 0.2px;
  gap: 6px;
}

.ur-eq:empty{
  opacity: 0.5;
}

.ur-eq:empty::after{
  content: '—';
  color: #d0d5dd;
  font-size: 18px;
}

/* ====== CASO ESPECIAL: CUANDO ES USD (sin equivalente) ====== */
.ur-opt.ur-usd-only .ur-optText::after{
  display: none !important;
}

.ur-opt.ur-usd-only .ur-optText{
  gap: 0;
}

.ur-opt.ur-usd-only .ur-eq{
  display: none;
}

.ur-opt.ur-usd-only .ur-usd{
  flex: 1;
}

/* ✅ Ocultar recuadros de Monto/Equivalente cuando es USD en "Otro monto" */
.ur-opt:has(input[value="custom"]).ur-usd-only ~ .ur-custom{
  display: none !important;
}

/* ====== CASO ESPECIAL: "OTRO MONTO" ====== */
/* Para "Otro monto" quitamos el símbolo ≈, los recuadros */
.ur-opt:has(input[value="custom"]) .ur-optText::after{
  display: none;
}

.ur-opt:has(input[value="custom"]) .ur-optText{
  gap: 10px;
}

.ur-opt:has(input[value="custom"]) .ur-usd{
  background: transparent;
  border: none;
  padding: 0;
  justify-content: flex-start;
}

.ur-opt:has(input[value="custom"]) .ur-eq{
  display: none;
}

/* ====== RESPONSIVE MOBILE ====== */
@media (max-width: 580px) {
  .ur-opt{
    padding: 12px;
    gap: 10px;
    flex-wrap: wrap;
  }

  .ur-opt input{
    margin-top: 18px;
  }

  .ur-optText{
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }

  .ur-optText::before{
    display: none;
  }

  .ur-usd, .ur-eq{
    font-size: 14px;
    padding: 10px 12px;
  }

  .ur-usd::before, .ur-eq::before{
    font-size: 12px;
  }
}

/* ====== FIN OPCIONES MEJORADAS ====== */

.ur-custom{
  margin-top: 10px;
}

.ur-custom input{
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px dashed #d0d5dd;
  border-radius: 12px;
  outline: none;
}

/* ✅ Cuando es USD, ocultar el símbolo ≈ y el recuadro de Equivalente en customWrap */
body.ur-currency-usd .ur-custom .ur-optText::after,
body.ur-currency-usd #urCustomWrap + * .ur-optText::after{
  display: none !important;
}

body.ur-currency-usd .ur-custom .customEqCurrency,
body.ur-currency-usd .customEqLabel{
  display: none !important;
}

.ur-btn{
  width: 100%;
  height: 56px;
  margin-top: 22px;
  border: 0;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  font-weight: 900;
  letter-spacing: .7px;
  cursor:pointer;
}

.ur-btn:hover{ background: var(--primary-dark); }
.ur-btn[disabled]{ opacity:.7; cursor:not-allowed; }

/* ===== Contenedor de botones (Atrás + Enviar) ===== */
.ur-btn-container{
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

.ur-btn-back{
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border: 2px solid var(--primary);
  border-radius: 10px;
  background: #fff;
  color: var(--primary);
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ur-btn-back:hover{
  background: var(--primary);
  color: #fff;
  transform: translateX(-2px);
}

.ur-btn-submit{
  flex: 1;
  height: 56px;
  border: 0;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  font-weight: 900;
  letter-spacing: .7px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ur-btn-submit:hover{
  background: var(--primary-dark);
}

.ur-btn-submit[disabled]{
  opacity: .7;
  cursor: not-allowed;
}

.ur-error, .ur-success{
  margin-top: 12px;
  padding: 12px 12px;
  border-radius: 12px;
  font-weight: 700;
}
.ur-error{ background:#fff1f2; color:#9f1239; border:1px solid #fecdd3; }
.ur-success{ background:#ecfdf3; color:#166534; border:1px solid #bbf7d0; }

.ur-footer{
  margin-top: 16px;
  text-align:center;
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
}

/* ===== Pantallas Loading / Done ===== */
.ur-screen{
  padding: 32px 24px 24px;
}

/* Ocultar logo FE en pantalla de confirmación */
#urScreenDone .ur-logo{
  display: none !important;
}

/* ===== Ocultar elementos en Paso 2 ===== */
body.ur-step-2 .ur-logo,
body.ur-step-2 .ur-title,
body.ur-step-2 .ur-subtitle{
  display: none !important;
}

/* ===== Indicadores de paso ===== */
.ur-step-indicator{
  text-align: center;
  margin: 0 0 20px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.ur-step-indicator-current{
  color: var(--primary);
  font-weight: 900;
}

/* Mensaje "TU REGISTRO HA SIDO ENVIADO" */
.ur-registro-enviado{
  text-align: center;
  margin: 0 auto 32px;
  padding: 20px 28px;
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 2px solid #86efac;
  border-radius: 14px;
  max-width: 500px;
  box-shadow: 0 2px 8px rgba(22,163,74,.08);
}

.ur-registro-enviado-text{
  font-size: 19px;
  font-weight: 800;
  color: #15803d;
  letter-spacing: 0.8px;
  line-height: 1.3;
}

.ur-loader{
  display:flex;
  justify-content:center;
  gap:10px;
  margin: 14px 0 10px;
}

.ur-loader span{
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #58b368; /* verde */
  opacity:.35;
  animation: urDot 1s infinite ease-in-out;
}

.ur-loader span:nth-child(2){ animation-delay: .15s; }
.ur-loader span:nth-child(3){ animation-delay: .30s; }

@keyframes urDot{
  0%, 100% { transform: translateY(0); opacity:.35; }
  50% { transform: translateY(-6px); opacity: 1; }
}

.ur-loading-text{
  color: var(--muted);
  font-weight: 700;
}

/* ===== PANTALLA DE CONFIRMACIÓN REDISEÑADA ===== */
.ur-check{
  width: 90px;
  height: 90px;
  margin: 28px auto 40px;
  border-radius: 50%;
  background: #16a34a;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 4px solid #15803d;
  position: relative;
  animation: checkPop 0.4s ease-out;
  font-size: 0; /* Ocultar cualquier texto del HTML */
  box-shadow: 0 4px 16px rgba(22,163,74,.3);
}

/* Ocultar cualquier contenido del HTML */
.ur-check *{
  display: none !important;
}

/* Check profesional - SOLO ESTE */
.ur-check::after{
  content: '✓';
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  font-weight: 700;
  font-size: 52px;
  line-height: 1;
  color: #fff;
  display: block !important;
}

@keyframes checkPop {
  0% { transform: scale(0.8); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.ur-important{
  color: #dc2626;
  font-weight: 900;
  letter-spacing: 1.2px;
  margin: 0 0 20px;
  font-size: 21px;
  text-transform: uppercase;
  padding: 16px 28px;
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  border: 2px solid #fca5a5;
  border-radius: 12px;
  display: inline-block;
  box-shadow: 0 2px 8px rgba(220,38,38,.1);
}

.ur-done-text{
  max-width: 520px;
  margin: 0 auto 32px;
  color: #475569;
  font-weight: 600;
  line-height: 1.65;
  font-size: 15.5px;
  padding: 0 16px;
}

.ur-done-text b{
  color: #16a34a;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* Contenedor del botón de WhatsApp mejorado */
.ur-wa-container{
  max-width: 440px;
  margin: 0 auto;
  padding: 28px;
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border-radius: 16px;
  border: 2px solid #86efac;
  box-shadow: 0 4px 16px rgba(22,163,74,.1);
}

.ur-wa-btn{
  display: block;
  width: 100%;
  padding: 18px 32px;
  border-radius: 12px;
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  color: #fff;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: 0.8px;
  box-shadow: 0 6px 16px rgba(22,163,74,.25);
  transition: all 0.3s ease;
  font-size: 16px;
  text-align: center;
  border: none;
}

.ur-wa-btn:hover{
  background: linear-gradient(135deg, #15803d 0%, #166534 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(22,163,74,.35);
}

.ur-wa-btn:active{
  transform: translateY(0);
}

/* =====================================================
   PASO 2: DISCLAIMER - ESTILOS
   ===================================================== */

.ur-disclaimer-container{
  padding: 24px 22px 22px;
}

.ur-disclaimer-title{
  font-size: 24px;
  font-weight: 900;
  color: var(--accent);
  text-align: center;
  letter-spacing: 1px;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.ur-disclaimer-subtitle{
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  margin-bottom: 24px;
  padding: 14px 18px;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 2px solid #fbbf24;
  border-radius: 12px;
  line-height: 1.5;
}

.ur-disclaimer-content{
  background: #f8fafc;
  border: 2px solid var(--line);
  border-radius: 14px;
  padding: 20px 22px;
  margin-bottom: 24px;
}

.ur-disclaimer-confirm-text{
  font-size: 15px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 16px;
  letter-spacing: 0.3px;
}

.ur-disclaimer-list{
  list-style: none;
  margin: 0;
  padding: 0;
}

.ur-disclaimer-list li{
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  font-weight: 600;
  color: #475569;
  line-height: 1.5;
}

.ur-disclaimer-list li:last-child{
  border-bottom: none;
  padding-bottom: 0;
}

.ur-disclaimer-list li:first-child{
  padding-top: 0;
}

.ur-disclaimer-icon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  min-width: 22px;
  flex-shrink: 0;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  margin-top: 1px;
}

.ur-disclaimer-list li span:not(.ur-disclaimer-icon){
  flex: 1;
}

/* ===== Checkbox personalizado ===== */
.ur-disclaimer-checkbox-container{
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 2px solid #86efac;
  border-radius: 14px;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
  margin-bottom: 20px;
}

.ur-disclaimer-checkbox-container:hover{
  border-color: #4ade80;
  box-shadow: 0 4px 12px rgba(22,163,74,.12);
  transform: translateY(-1px);
}

.ur-disclaimer-checkbox{
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.ur-disclaimer-checkbox-custom{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  min-width: 28px;
  border: 3px solid #86efac;
  border-radius: 8px;
  background: #fff;
  transition: all 0.2s ease;
  position: relative;
}

.ur-disclaimer-checkbox-custom::after{
  content: '✓';
  font-size: 16px;
  font-weight: 900;
  color: #fff;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.15s ease;
}

.ur-disclaimer-checkbox:checked + .ur-disclaimer-checkbox-custom{
  background: #16a34a;
  border-color: #16a34a;
}

.ur-disclaimer-checkbox:checked + .ur-disclaimer-checkbox-custom::after{
  opacity: 1;
  transform: scale(1);
}

.ur-disclaimer-checkbox-text{
  font-size: 16px;
  font-weight: 800;
  color: #166534;
  letter-spacing: 0.3px;
}

/* ===== Estado de error del checkbox ===== */
.ur-checkbox-error{
  border-color: #ef4444 !important;
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%) !important;
  animation: shakeCheckbox 0.4s ease;
}

.ur-checkbox-error .ur-disclaimer-checkbox-custom{
  border-color: #ef4444 !important;
}

.ur-checkbox-error .ur-disclaimer-checkbox-text{
  color: #dc2626 !important;
}

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

/* ===== Botón deshabilitado ===== */
.ur-btn-disabled{
  opacity: 0.5 !important;
  cursor: not-allowed !important;
  background: #9ca3af !important;
}

.ur-btn-disabled:hover{
  transform: none !important;
  box-shadow: none !important;
}

/* ===== Responsive para disclaimer ===== */
@media (max-width: 580px) {
  .ur-disclaimer-container{
    padding: 20px 16px 18px;
  }

  .ur-disclaimer-title{
    font-size: 20px;
  }

  .ur-disclaimer-subtitle{
    font-size: 14px;
    padding: 12px 14px;
  }

  .ur-disclaimer-content{
    padding: 16px 14px;
  }

  .ur-disclaimer-list li{
    font-size: 13px;
    gap: 10px;
    padding: 10px 0;
  }

  .ur-disclaimer-icon{
    width: 20px;
    height: 20px;
    min-width: 20px;
    font-size: 11px;
  }

  .ur-disclaimer-checkbox-container{
    padding: 14px 16px;
    gap: 12px;
  }

  .ur-disclaimer-checkbox-custom{
    width: 26px;
    height: 26px;
    min-width: 26px;
  }

  .ur-disclaimer-checkbox-text{
    font-size: 14px;
  }
}