:root{
  --bg:#f5f7fb;
  --card:#ffffffd9;
  --text:#111827;
  --muted:#6b7280;
  --line:#e5e7eb;
  --primary:#2563eb;
  --primary2:#4f46e5;
  --success:#16a34a;
  --danger:#ef4444;
  --warning:#f59e0b;
  --soft:#eef4ff;
  --shadow:0 18px 45px rgba(17,24,39,.08);
}

*{
  box-sizing:border-box;
}

html,
body{
  max-width:100%;
  overflow-x:hidden;
}

body{
  margin:0;
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,sans-serif;
  color:var(--text);
  background:
    radial-gradient(circle at top left, rgba(37,99,235,.10), transparent 18%),
    radial-gradient(circle at bottom right, rgba(79,70,229,.08), transparent 20%),
    linear-gradient(180deg,#fbfcff 0%,var(--bg) 100%);
}

/* ===== TOP BAR MOVIL ===== */
.mobile-topbar{
  display:none;
}

@media (max-width:640px){

  .mobile-topbar{
    display:flex;
    align-items:center;
    justify-content:center;

    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:64px;

    background:#003399;
    z-index:1000;

    box-shadow:0 4px 12px rgba(0,0,0,.15);
  }

  .mobile-topbar img{
    height:40px;
    object-fit:contain;
  }

  /* empujar el contenido hacia abajo */
  .page-center{
    padding-top:80px !important;
  }

}

.page-center{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px;
}

.form-card{
  width:100%;
  max-width:560px;
  background:#ffffff;
  backdrop-filter:blur(14px);
  /* border-radius:24px; */
  /* box-shadow:var(--shadow); */
  padding:22px;
  overflow:visible;
  position:relative;
}

.form-card::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius:24px;
  pointer-events:none;
  background:linear-gradient(
    135deg,
    rgba(37,99,235,.25),
    rgba(79,70,229,.15),
    rgba(37,99,235,.25)
  );
  mask:linear-gradient(#fff 0 0) padding-box,linear-gradient(#fff 0 0);
  mask-composite:exclude;
  -webkit-mask:linear-gradient(#fff 0 0) padding-box,linear-gradient(#fff 0 0);
  -webkit-mask-composite:xor;
}

.card-head {
    width: calc(100% + 44px);
    margin: -22px -22px 20px -22px;
    padding: 18px 20px;
    background: linear-gradient(294deg, #ffffff, #316ceb);
    /* border-radius: 24px 24px 0 0; */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(37,99,235,.25); 
}

@media (max-width:640px){

  .card-head{
    width:100%;
    margin:0;
    border-radius:16px 16px 0 0;
  }

}
.card-head h1{
  margin:0;
  font-size:1.3rem;
  font-weight:800;
  letter-spacing:-.02em;
  color:#fff;
}

.brand-dot{
  width:34px;
  height:34px;
  margin:0 auto 10px;
  border-radius:12px;
  background:linear-gradient(135deg,var(--primary),var(--primary2));
  box-shadow:0 10px 24px rgba(37,99,235,.22);
}



/* ===== LAYOUT ===== */

.grid{
  display:grid;
  gap:14px;
  margin-bottom:25px;
  min-width:0;
}

.grid.two{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:14px;
}

.grid.two .select2-container{
  width:100% !important;
  max-width:100% !important;
  min-width:0 !important;
}

.grid.two > *{
  min-width:0;
}

.whatsapp-row{
  display:grid;
  grid-template-columns:130px minmax(0,1fr) auto;
  align-items:start;
  gap:10px;
}

.field{
  min-width:0;
}

.birth-row-gap{
  margin-bottom:18px;
}

.password-block{
  margin-top:10px;
}

.submit-row{
  margin-top:16px;
}

.result-box{
  margin-top:14px;
  padding:12px;
  border-radius:14px;
  background:#f8fbff;
  border:1px solid var(--line);
  font-size:.84rem;
  overflow-wrap:anywhere;
}

/* ===== INPUTS ===== */
.float-field{
  position:relative;
  min-width:0;
}

.input-icon{
  position:absolute;
  left:12px;
  top:50%;
  transform:translateY(-50%);
  font-size:.82rem;
  color:#9ca3af;
  z-index:3;
  transition:.18s ease;
  pointer-events:none;
}

.app-input,
.flatpickr-input,
.select2-container--default .select2-selection--single{
  width:100%;
  height:42px !important;
  min-height:42px !important;
  border:none !important;
  border-bottom:1px solid #d1d5db !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  font-size:.9rem !important;
  transition:border-color .18s ease, box-shadow .18s ease, background .18s ease !important;
}

.app-input,
.flatpickr-input{
  padding:18px 0 6px 36px !important;
  color:var(--text) !important;
  font-family:Inter,system-ui,sans-serif !important;
  font-weight:600 !important;
  letter-spacing:-.01em;
}

.app-input::placeholder{
  font-family:Inter,system-ui,sans-serif !important;
  font-weight:400 !important;
  color:#9ca3af !important;
}

.app-input:focus,
.flatpickr-input:focus{
  outline:none;
  border-color:transparent !important;
  border-bottom:2px solid #2563eb !important;
  box-shadow:none !important;
}

.float-field label{
  position:absolute;
  left:36px;
  top:50%;
  transform:translateY(-50%);
  font-size:.84rem;
  color:#9ca3af;
  pointer-events:none;
  background:transparent;
  padding:0;
  transition:.18s ease;
  max-width:calc(100% - 52px);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  font-weight:700 !important;
}

.float-field .app-input:focus + label,
.float-field .app-input:not(:placeholder-shown) + label,
.float-field .flatpickr-input:focus + label,
.float-field .flatpickr-input:not(:placeholder-shown) + label{
  top:0;
  transform:translateY(-50%);
  font-size:.68rem;
  color:#2563eb;
  background:#fff;
  padding:0 4px;
}

.float-field .app-input:focus ~ .input-icon,
.float-field .flatpickr-input:focus ~ .input-icon{
  color:#2563eb;
}

.with-toggle{
  padding-right:42px !important;
}

.toggle-pass{
  position:absolute;
  right:6px;
  top:5px;
  width:32px;
  height:32px;
  border:none;
  background:transparent;
  color:#9ca3af;
  z-index:5;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

/* ===== FEEDBACK ===== */
.feedback{
  display:block;
  min-height:18px;
  margin-top:8px;
  padding-left:2px;
  font-size:.72rem;
  color:var(--muted);
}

.feedback-block{
  margin-top:10px;
}

.feedback-ok{
  color:var(--success) !important;
}

.feedback-bad{
  color:var(--danger) !important;
}

.feedback-warn{
  color:var(--warning) !important;
}

.hidden{
  display:none !important;
}

/* ocultar feedbacks inferiores que no quieres mostrar */
#fb_nombres,
#fb_apellidos,
#documentoFeedback,
#correoFeedback,
#valwhatsapp,
#birthFeedback,
#passwordStrength{
  display:none !important;
}

/* ===== BOTONES ===== */
.app-btn{
  height:42px;
  min-height:42px;
  border:none;
  border-radius:14px;
  padding:0 14px;
  font-size:.82rem;
  font-weight:700;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  cursor:pointer;
  transition:.18s ease;
  white-space:nowrap;
}

.app-btn:hover{
  transform:translateY(-1px);
}

.app-btn-primary{
  color:#fff;
  background: linear-gradient(
134deg, var(--primary), #eb1b96);
  box-shadow:0 10px 22px rgba(37,99,235,.20);
}

.app-btn-soft{
  color: #ffffff;
  background: #4CAF50;
}

.app-btn-soft2{
  color: #ffffff;
  background: #003399;
}


.app-btn-full{
  width:100%;
}

.app-btn-small{
  height:40px;
  min-height:40px;
  padding:0 12px;
  font-size:.78rem;
}

/* ===== SELECT2 ===== */
.select2-container{
  width:100% !important;
}

.select2-container--default .select2-selection--single{
  display:block !important;
  padding:18px 34px 6px 36px !important;
  line-height:normal !important;
  background:transparent !important;
  border:none !important;
  border-bottom:1px solid #d1d5db !important;
  border-radius:0 !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered{
  display:block !important;
  line-height:1.2 !important;
  padding:0 !important;
  margin:0 !important;
  color:var(--text) !important;
  font-size:.9rem !important;
  font-family:Inter,system-ui,sans-serif !important;
  font-weight:600 !important;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder{
  color:transparent !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow{
  height:42px !important;
  right:8px !important;
  width:20px;
}

.select-field label{
  z-index:4;
}

.select-field.active label{
  top:0;
  transform:translateY(-50%);
  font-size:.68rem;
  color:#2563eb;
}

.select-field.active .input-icon{
  color:#2563eb;
}

.select2-container--open .select2-dropdown{
  border:1px solid #dbe3f0 !important;
  border-radius:16px !important;
  box-shadow:0 18px 36px rgba(15,23,42,.12) !important;
  overflow:hidden;
  margin-top:6px;
  min-width:0 !important;
  z-index:99999 !important;
}

.select2-search--dropdown{
  padding:10px !important;
  background:#f8fbff !important;
  border-bottom:1px solid #edf2f7 !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field{
  height:38px !important;
  border:1px solid #dbe3f0 !important;
  border-radius:12px !important;
  padding:0 12px !important;
  font-size:.84rem !important;
  outline:none !important;
  box-shadow:none !important;
}

.select2-results__options{
  padding:8px !important;
  max-height:220px !important;
}

.select2-results__option{
  border-radius:12px !important;
  padding:10px 12px !important;
  font-size:.84rem !important;
  margin-bottom:4px !important;
  transition:background .15s ease,color .15s ease;
  white-space:normal;
  word-break:break-word;
}

.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable{
  background:linear-gradient(135deg,#eef4ff,#f5f3ff) !important;
  color:#1d4ed8 !important;
}

.select2-container--default .select2-results__option--selected{
  background:#eef4ff !important;
  color:#1e3a8a !important;
  font-weight:600;
}

/* ===== PREFIJO ===== */
.prefix-custom-field{
  position:relative;
  min-width:0;
}

.prefix-custom-field label{
  position:absolute !important;
  left:36px !important;
  top:0 !important;
  transform:translateY(-50%) !important;
  font-size:.68rem !important;
  color:#2563eb !important;
  background:#fff !important;
  padding:0 4px !important;
  z-index:4 !important;
}

.prefix-custom-field .input-icon{
  z-index:4 !important;
}

.prefix-trigger{
  width:100% !important;
  height:42px !important;
  border:1px solid #e5e7eb !important;
  background:#fff !important;
  border-radius:14px !important;
  padding:0 12px 0 36px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:8px !important;
  cursor:pointer !important;
  transition:border-color .18s ease,box-shadow .18s ease !important;
}

.prefix-trigger:focus,
.prefix-trigger:focus-visible{
  outline:none !important;
  border-color:#93c5fd !important;
  box-shadow:0 0 0 4px rgba(37,99,235,.08) !important;
}

.prefix-selected{
  display:inline-flex !important;
  align-items:center !important;
  gap:8px !important;
  min-width:0 !important;
  flex:1 1 auto !important;
  overflow:hidden !important;
}

.prefix-selected img,
.prefix-option img{
  width:18px !important;
  height:14px !important;
  object-fit:cover !important;
  border-radius:2px !important;
  flex:0 0 auto !important;
  display:block !important;
  box-shadow:0 0 0 1px rgba(15,23,42,.06) !important;
}

.prefix-selected span{
  font-size:.9rem !important;
  font-weight:600 !important;
  color:#111827 !important;
  line-height:1 !important;
  white-space:nowrap !important;
}

.prefix-caret{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  color:#94a3b8 !important;
  font-size:.72rem !important;
  flex:0 0 auto !important;
}

.prefix-dropdown{
  position:absolute !important;
  top:calc(100% + 6px) !important;
  left:0 !important;
  right:0 !important;
  background:#fff !important;
  border:1px solid #dbe3f0 !important;
  border-radius:14px !important;
  box-shadow:0 15px 30px rgba(0,0,0,.10) !important;
  padding:6px !important;
  display:none !important;
  z-index:999 !important;
}

.prefix-custom-field.open .prefix-dropdown{
  display:block !important;
}

.prefix-option{
  width:100% !important;
  border:none !important;
  background:transparent !important;
  display:grid !important;
  grid-template-columns:18px 1fr auto !important;
  align-items:center !important;
  gap:10px !important;
  padding:10px !important;
  border-radius:10px !important;
  cursor:pointer !important;
  text-align:left !important;
}

.prefix-option:hover{
  background:#f3f6ff !important;
}

.prefix-option.is-active{
  background:#eef4ff !important;
  font-weight:600 !important;
}

.prefix-option strong{
  font-size:.82rem !important;
  white-space:nowrap !important;
}

/* ===== ESTADOS DE VALIDACION ===== */
.is-valid{
  border:none !important;
  border-bottom:2px solid #16a34a !important;
  background:transparent !important;
}

.is-invalid{
  border:none !important;
  border-bottom:2px solid #ef4444 !important;
  background:transparent !important;
}

.select2-valid .select2-selection{
  border:none !important;
  border-bottom:2px solid #16a34a !important;
  background:transparent !important;
}

.select2-invalid .select2-selection{
  border:none !important;
  border-bottom:2px solid #ef4444 !important;
  background:transparent !important;
}

/* ===== INDICADORES SUTILES ===== */
.has-status{
  position:relative;
}

.with-status{
  padding-right:42px !important;
}

.with-status-password{
  padding-right:74px !important;
}

.status-indicator{
  position:absolute;
  right:8px;
  top:5px;
  width:30px;
  height:30px;
  border:none;
  background:transparent;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  z-index:6;
  cursor:default;
}

.status-password{
  right:42px;
}

.status-icon{
  font-size:.88rem;
}

.status-indicator.is-valid .status-icon{
  color:#16a34a;
}

.status-indicator.is-warning .status-icon{
  color:#f59e0b;
}

.status-tooltip{
  position:absolute;
  right:0;
  bottom:calc(100% + 8px);
  min-width:max-content;
  max-width:220px;
  padding:7px 10px;
  border-radius:10px;
  font-size:.72rem;
  font-weight:500;
  line-height:1.2;
  color:#fff;
  background:#111827;
  box-shadow:0 10px 24px rgba(15,23,42,.16);
  opacity:0;
  visibility:hidden;
  transform:translateY(4px);
  transition:.18s ease;
  pointer-events:none;
  white-space:normal;
}

.status-indicator.is-valid .status-tooltip{
  background:#16a34a;
}

.status-indicator.is-warning .status-tooltip{
  background:#f59e0b;
}

.status-indicator:hover .status-tooltip,
.status-indicator:focus-within .status-tooltip{
  opacity:1;
  visibility:visible;
  transform:translateY(0);
}

/* ===== FECHA ===== */
.date-field{
  margin-bottom:12px;
}

.date-field .flatpickr-input{
  cursor:pointer;
}

.flatpickr-calendar{
  background:#fff !important;
  border:1px solid #e5e7eb !important;
  border-radius:18px !important;
  box-shadow:0 20px 50px rgba(15,23,42,.14) !important;
  padding:10px !important;
  font-family:Inter,system-ui,sans-serif !important;
}

.flatpickr-month{
  height:42px !important;
}

.flatpickr-current-month{
  font-size:15px !important;
  font-weight:700 !important;
  color:#111827 !important;
  padding-top:6px !important;
}

.flatpickr-prev-month,
.flatpickr-next-month{
  top:8px !important;
  padding:6px !important;
  border-radius:10px !important;
  color:#64748b !important;
}

.flatpickr-prev-month:hover,
.flatpickr-next-month:hover{
  background:#f3f6ff !important;
  color:#2563eb !important;
}

span.flatpickr-weekday{
  font-size:11px !important;
  font-weight:700 !important;
  color:#94a3b8 !important;
  text-transform:uppercase;
}

.flatpickr-day{
  border-radius:12px !important;
  border:none !important;
  color:#111827 !important;
  font-weight:500 !important;
  height:36px !important;
  line-height:36px !important;
  margin:2px 0 !important;
}

.flatpickr-day:hover{
  background:#f3f6ff !important;
  color:#2563eb !important;
}

.flatpickr-day.today{
  background:#eef4ff !important;
  color:#1d4ed8 !important;
  font-weight:700 !important;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange{
  background:linear-gradient(135deg,#2563eb,#4f46e5) !important;
  color:#fff !important;
  font-weight:700 !important;
}

/* ===== OTP TIPO CODEPEN + BOTON INLINE AJUSTADO ===== */
#codigoVerificacion{
  margin-top:6px;
  width:100%;
  min-width:0;
}

.otp-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:end;
  gap:10px;
  margin-top:12px;
  width:100%;
  min-width:0;
}

.code-input-container{
  width:100%;
  min-width:0;
}

.app-code-field{
  position:relative;
  width:100%;
  max-width:100%;
  min-width:0;
  margin-top:12px;
  padding-top:0;
}

.app-code-field::before{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  border-bottom:1px solid #e6e8f0;
  transition:opacity .3s ease;
}

.app-code-field > span{
  position:absolute;
  left:0;
  top:0;
  right:0;
  z-index:1;
  display:block;
  line-height:40px;
  font-size:18px;
  color:#adafb6;
  font-weight:500;
  transition:all .3s ease;
  pointer-events:none;
}

.app-code-field.active::before{
  opacity:0;
}

.app-code-field.active > span{
  transform:translateY(-100%);
  line-height:20px;
  font-size:14px;
  opacity:.65;
  color:#6b7280;
}

.app-code-field .otp-boxes{
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:8px;
  width:100%;
  min-width:0;
}

.app-code-field .otp-digit{
  -webkit-appearance:none;
  appearance:none;
  width:100%;
  min-width:0;
  height:40px;
  padding:0;
  margin:0;
  border:0;
  border-bottom:1px solid #e6e8f0;
  background:none;
  line-height:40px;
  text-align:center;
  font-size:18px;
  font-weight:600;
  color:#727682;
  outline:none;
  border-radius:0;
  opacity:0;
  transition:all .3s ease;
}

.app-code-field.active .otp-digit{
  opacity:1;
}

.app-code-field .otp-digit:focus{
  border-bottom-color:#5d9bfb;
}

.app-code-field .otp-digit.is-valid{
  border:0 !important;
  border-bottom:1px solid #16a34a !important;
  background:transparent !important;
}

.app-code-field .otp-digit.is-invalid{
  border:0 !important;
  border-bottom:1px solid #f59e0b !important;
  background:transparent !important;
}

.otp-btn{
  height:40px;
  min-height:40px;
  padding:0 14px;
  font-size:.78rem;
  white-space:nowrap;
  border-radius:12px;
  align-self:end;
  flex:0 0 auto;
}

.otp-actions{
  margin-top:14px;
}

/* efecto shake */
@keyframes otpShake{
  0%,100%{transform:translateX(0)}
  20%{transform:translateX(-6px)}
  40%{transform:translateX(6px)}
  60%{transform:translateX(-4px)}
  80%{transform:translateX(4px)}
}

.otp-row.shake{
  animation:otpShake .36s ease;
}

/* movil */
@media (max-width:640px){
  .app-code-field > span{
    font-size:16px;
  }
  
    

  .app-code-field .otp-digit{
    height:42px;
    line-height:42px;
    font-size:16px;
  }

  .otp-row{
    grid-template-columns:1fr;
    gap:12px;
  }

  .otp-btn{
    width:100%;
  }
}

/* ===== LOADING ===== */
.overlay-loading{
  position:fixed;
  inset:0;
  background:rgba(15,23,42,.38);
  backdrop-filter:blur(4px);
  z-index:9999;
  display:none;
  align-items:center;
  justify-content:center;
}

.loading-box{
  background:#fff;
  padding:16px 20px;
  border-radius:18px;
  box-shadow:var(--shadow);
  text-align:center;
}

/* ===== RESPONSIVE ===== */
@media (max-width:640px){
  .page-center{
    padding:12px;
  }
  .genero-ciudad-row{
    grid-template-columns:minmax(0,1fr) minmax(0,1fr) !important;
    gap:12px;
  }
  .app-input{
    font-size:16px !important;
  }
  .prefix-selected span{
    font-size:13px;
  }

  .prefix-selected img{
    width:18px;
  }
  
  .prefix-custom-field > .input-icon{
    display:none !important;
  }

  .prefix-custom-field .prefix-trigger{
    padding-left:12px !important;
  }

  .prefix-custom-field label{
    left:12px !important;
  }

  .form-card{
    padding:16px;
    border-radius:20px;
  }

    .grid.two{
    grid-template-columns:1fr;
    gap:16px;
  }

  .whatsapp-row{
    grid-template-columns:100px minmax(0,1fr);
    gap:10px;
  }

  #btnEnviarCodigo{
    grid-column:1 / -1;
    width:100%;
    margin-top:6px;
  }

  .card-head h1{
    font-size:1.22rem;
  }

  .otp-boxes{
    gap:8px;
  }

  .otp-digit{
    height:42px;
    font-size:.95rem;
  }

  .status-tooltip{
    max-width:180px;
    font-size:.7rem;
  }
}

#resultado{
  display:none !important;
}

#btnEnviarCodigo{
  padding:0 12px;
  font-size:.9rem;
  white-space:nowrap;
}

.select2-container{
  width:100% !important;
  min-width:0 !important;
}

.select2-results__option{
  line-height:1.4;
}



/* resalte del bloque OTP al enviarlo */
.otp-row.highlight-otp{
  padding:10px 12px;
  border-radius:16px;
  background:rgba(37,99,235,.06);
  box-shadow:0 0 0 2px rgba(37,99,235,.10);
  transition:.25s ease;
}

.app-code-field.highlight-otp .otp-digit{
  opacity:1 !important;
  border-bottom-color:#2563eb !important;
}

.app-code-field.highlight-otp > span{
  transform:translateY(-100%);
  line-height:20px;
  font-size:14px;
  opacity:.75;
  color:#2563eb;
}

.app-code-field.highlight-otp::before{
  opacity:0;
}

/* ===== PASSWORD METER ===== */
.password-meter-wrap{
  margin-top:10px;
}

.password-meter{
  width:100%;
  height:8px;
  border-radius:999px;
  background:#e5e7eb;
  overflow:hidden;
  position:relative;
}

.password-meter-bar{
  width:0%;
  height:100%;
  border-radius:999px;
  transition:width .28s ease, background .28s ease, transform .22s ease;
}

.password-meter-bar.strength-0{
  width:0%;
  background:#e5e7eb;
}

.password-meter-bar.strength-1{
  width:20%;
  background:#ef4444;
}

.password-meter-bar.strength-2{
  width:40%;
  background:#f97316;
}

.password-meter-bar.strength-3{
  width:60%;
  background:#f59e0b;
}

.password-meter-bar.strength-4{
  width:80%;
  background:#22c55e;
}

.password-meter-bar.strength-5{
  width:100%;
  background:#16a34a;
}

.password-meter-bar.pop-strong{
  animation:passwordStrongPulse .36s ease;
}

@keyframes passwordStrongPulse{
  0%{transform:scaleX(1)}
  50%{transform:scaleX(1.03)}
  100%{transform:scaleX(1)}
}

.password-strength-text{
  margin-top:8px;
  font-size:.74rem;
  font-weight:600;
  color:#6b7280;
}

.password-checklist{
  margin-top:10px;
  display:grid;
  gap:6px;
}

.password-rule{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:.74rem;
  color:#94a3b8;
  transition:.18s ease;
}

.password-rule i{
  font-size:.82rem;
  color:#cbd5e1;
  transition:.18s ease;
}

.password-rule.is-ok{
  color:#166534;
}

.password-rule.is-ok i{
  color:#16a34a;
}

.password-rule.is-bad{
  color:#94a3b8;
}

.password-rule.is-bad i{
  color:#cbd5e1;
}

/* ===== AUTH LAYOUT ===== */
.auth-layout{
  display:grid;
  grid-template-columns:420px 1fr;
  min-height:100vh;
  background:transparent;
}

/* ===== LADO IZQUIERDO ===== */
.auth-left{
  background: linear-gradient(
198deg, #2563eb, #1e40af);
  display:flex;
  align-items:center;
  justify-content:center;
  height:100%;
  min-height:100vh;
  padding:20px;
  position:relative;
}

.auth-left img{
  width:200px;
  max-width:70%;
  display:block;

  filter:drop-shadow(0 10px 20px rgba(0,0,0,.25));
}

/* ===== LADO DERECHO ===== */
.auth-right{
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px;
}

/* ajusta tu card */
.auth-right .form-card{
  max-width:520px;
  width:100%;
}

/* ===== RESPONSIVE ===== */
@media (max-width:900px){

  .auth-layout{
    grid-template-columns:1fr;
  }

  .auth-left{
    display:none;
  }

  .auth-right{
    padding:14px;
  }

}

/* ===== FONDO PFX INTERACTIVO ===== */
:root{
  --pfx-bg1: 108, 0, 162;   /* morado */
  --pfx-bg2: 0, 17, 82;     /* azul oscuro */

  --pfx-c1: 18, 113, 255;   /* azul */
  --pfx-c2: 221, 74, 255;   /* fucsia */
  --pfx-c3: 100, 220, 255;  /* celeste */
  --pfx-c4: 200, 50, 50;    /* rojo (se mantiene) */
  --pfx-c5: 99, 102, 241;   /* azul-violeta (reemplazo del amarillo) */

  --pfx-ci: 140, 100, 255;  /* interacciÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã¢â‚¬Â ÃƒÂ¢Ã¢â€šÂ¬Ã¢â€žÂ¢ÃƒÆ’Ã†â€™ÃƒÂ¢Ã¢â€šÂ¬Ã‚Â ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬ÃƒÂ¢Ã¢â‚¬Å¾Ã‚Â¢ÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬Ãƒâ€¦Ã‚Â¡ÃƒÆ’Ã†â€™ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â³n */
}

@keyframes pfxMoveInCircle {
  0% { transform: rotate(0deg); }
  50% { transform: rotate(180deg); }
  100% { transform: rotate(360deg); }
}

@keyframes pfxMoveVertical {
  0% { transform: translateY(-50%); }
  50% { transform: translateY(50%); }
  100% { transform: translateY(-50%); }
}

@keyframes pfxMoveHorizontal {
  0% { transform: translateX(-50%) translateY(-10%); }
  50% { transform: translateX(50%) translateY(10%); }
  100% { transform: translateX(-50%) translateY(-10%); }
}

.pfx-bg{
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(40deg, rgb(var(--pfx-bg1)), rgb(var(--pfx-bg2)));
}

.pfx-bg-svg{
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
}

.pfx-bg-blobs{
  width: 100%;
  height: 100%;
  filter: url(#pfx-goo) blur(40px);
}

.pfx-bg-g1,
.pfx-bg-g2,
.pfx-bg-g3,
.pfx-bg-g4,
.pfx-bg-g5,
.pfx-bg-interactive{
  position: absolute;
  mix-blend-mode: var(--pfx-blend);
}

.pfx-bg-g1{
  background: radial-gradient(circle at center, rgba(var(--pfx-c1), .8) 0, rgba(var(--pfx-c1), 0) 50%) no-repeat;
  width: var(--pfx-circle-size);
  height: var(--pfx-circle-size);
  top: calc(50% - var(--pfx-circle-size) / 2);
  left: calc(50% - var(--pfx-circle-size) / 2);
  transform-origin: center center;
  animation: pfxMoveVertical 30s ease infinite;
  opacity: 1;
}

.pfx-bg-g2{
  background: radial-gradient(circle at center, rgba(var(--pfx-c2), .8) 0, rgba(var(--pfx-c2), 0) 50%) no-repeat;
  width: var(--pfx-circle-size);
  height: var(--pfx-circle-size);
  top: calc(50% - var(--pfx-circle-size) / 2);
  left: calc(50% - var(--pfx-circle-size) / 2);
  transform-origin: calc(50% - 400px);
  animation: pfxMoveInCircle 20s reverse infinite;
  opacity: 1;
}

.pfx-bg-g3{
  background: radial-gradient(circle at center, rgba(var(--pfx-c3), .8) 0, rgba(var(--pfx-c3), 0) 50%) no-repeat;
  width: var(--pfx-circle-size);
  height: var(--pfx-circle-size);
  top: calc(50% - var(--pfx-circle-size) / 2 + 200px);
  left: calc(50% - var(--pfx-circle-size) / 2 - 500px);
  transform-origin: calc(50% + 400px);
  animation: pfxMoveInCircle 40s linear infinite;
  opacity: 1;
}

.pfx-bg-g4{
  background: radial-gradient(circle at center, rgba(var(--pfx-c4), .8) 0, rgba(var(--pfx-c4), 0) 50%) no-repeat;
  width: var(--pfx-circle-size);
  height: var(--pfx-circle-size);
  top: calc(50% - var(--pfx-circle-size) / 2);
  left: calc(50% - var(--pfx-circle-size) / 2);
  transform-origin: calc(50% - 200px);
  animation: pfxMoveHorizontal 40s ease infinite;
  opacity: .7;
}

.pfx-bg-g5{
  background: radial-gradient(circle at center, rgba(var(--pfx-c5), .8) 0, rgba(var(--pfx-c5), 0) 50%) no-repeat;
  width: calc(var(--pfx-circle-size) * 2);
  height: calc(var(--pfx-circle-size) * 2);
  top: calc(50% - var(--pfx-circle-size));
  left: calc(50% - var(--pfx-circle-size));
  transform-origin: calc(50% - 800px) calc(50% + 200px);
  animation: pfxMoveInCircle 20s ease infinite;
  opacity: 1;
}

.pfx-bg-interactive{
  background: radial-gradient(circle at center, rgba(var(--pfx-ci), .8) 0, rgba(var(--pfx-ci), 0) 50%) no-repeat;
  width: 100%;
  height: 100%;
  top: -50%;
  left: -50%;
  opacity: .7;
}

/* tu contenido por encima */
.auth-layout,
.page-center,
.form-card{
  position: relative;
  z-index: 1;
}

/* opcional: deja ver mejor el fondo detrÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã¢â‚¬Â ÃƒÂ¢Ã¢â€šÂ¬Ã¢â€žÂ¢ÃƒÆ’Ã†â€™ÃƒÂ¢Ã¢â€šÂ¬Ã‚Â ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬ÃƒÂ¢Ã¢â‚¬Å¾Ã‚Â¢ÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬Ãƒâ€¦Ã‚Â¡ÃƒÆ’Ã†â€™ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â¡s del form */
.auth-layout{
  background: transparent !important;
}

.auth-right{
  background: transparent !important;
}

/* opcional: hacer el panel izquierdo un poco translÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã¢â‚¬Â ÃƒÂ¢Ã¢â€šÂ¬Ã¢â€žÂ¢ÃƒÆ’Ã†â€™ÃƒÂ¢Ã¢â€šÂ¬Ã‚Â ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬ÃƒÂ¢Ã¢â‚¬Å¾Ã‚Â¢ÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬Ãƒâ€¦Ã‚Â¡ÃƒÆ’Ã†â€™ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Âºcido para no matar el fondo */
.auth-left{
  background: linear-gradient(213deg, rgb(0 62 199 / 96%), rgb(84 1 113 / 84%)) !important;
  backdrop-filter: blur(3px);
}

/* en mÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã¢â‚¬Â ÃƒÂ¢Ã¢â€šÂ¬Ã¢â€žÂ¢ÃƒÆ’Ã†â€™ÃƒÂ¢Ã¢â€šÂ¬Ã‚Â ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬ÃƒÂ¢Ã¢â‚¬Å¾Ã‚Â¢ÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬Ãƒâ€¦Ã‚Â¡ÃƒÆ’Ã†â€™ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â³vil baja un poco la intensidad */
@media (max-width: 900px){
  .pfx-bg{
    opacity: .85;
  }
}

/* asegÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã¢â‚¬Â ÃƒÂ¢Ã¢â€šÂ¬Ã¢â€žÂ¢ÃƒÆ’Ã†â€™ÃƒÂ¢Ã¢â€šÂ¬Ã‚Â ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬ÃƒÂ¢Ã¢â‚¬Å¾Ã‚Â¢ÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬Ãƒâ€¦Ã‚Â¡ÃƒÆ’Ã†â€™ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Âºrate que el contenido estÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã¢â‚¬Â ÃƒÂ¢Ã¢â€šÂ¬Ã¢â€žÂ¢ÃƒÆ’Ã†â€™ÃƒÂ¢Ã¢â€šÂ¬Ã‚Â ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬ÃƒÂ¢Ã¢â‚¬Å¾Ã‚Â¢ÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬Ãƒâ€¦Ã‚Â¡ÃƒÆ’Ã†â€™ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â© encima */
.auth-layout,
.page-center{
  position:relative;
  z-index:1;
}

.app-input::placeholder{
  color:#9ca3af;
  opacity:1;
}

.app-input::-webkit-input-placeholder{
  color:#9ca3af;
}

.app-input:-ms-input-placeholder{
  color:#9ca3af;
}

.app-input::-ms-input-placeholder{
  color:#9ca3af;
}

.field:has(#nombres) .input-icon,
.field:has(#apellidos) .input-icon,
.field:has(#tipo_documento) .input-icon,
.field:has(#ciudad) .input-icon{
  display:none;
}

/* ===== SELECT2 FLECHA CUSTOM ===== */

/* ocultar flecha original */
.select2-container--default .select2-selection__arrow b{
  display:none !important;
}

/* contenedor del botÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã¢â‚¬Â ÃƒÂ¢Ã¢â€šÂ¬Ã¢â€žÂ¢ÃƒÆ’Ã†â€™ÃƒÂ¢Ã¢â€šÂ¬Ã‚Â ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬ÃƒÂ¢Ã¢â‚¬Å¾Ã‚Â¢ÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬Ãƒâ€¦Ã‚Â¡ÃƒÆ’Ã†â€™ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â³n circular */
.select2-container--default .select2-selection--single .select2-selection__arrow{
  position:absolute !important;
  top:50% !important;
  right:6px !important;

  width:24px !important;
  height:24px !important;
  min-width:24px !important;
  min-height:24px !important;

  margin:0 !important;
  padding:0 !important;

  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  border: #ccc 1px solid;    
  
  border-radius:50% !important;
  box-shadow:none;
  overflow:hidden;

  transform:translateY(-50%) !important;
  transition:background .25s ease, box-shadow .25s ease, transform .25s ease !important;
}

/* flecha blanca */
.select2-container--default .select2-selection--single .select2-selection__arrow::after{
  content:"";
  display:block;
  width:0;
  height:0;

  border-left:4px solid transparent;
  border-right:4px solid transparent;
  border-top:5px solid #003399;

  margin-top:2px;
  transition:transform .25s ease;
}

/* animaciÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã¢â‚¬Â ÃƒÂ¢Ã¢â€šÂ¬Ã¢â€žÂ¢ÃƒÆ’Ã†â€™ÃƒÂ¢Ã¢â€šÂ¬Ã‚Â ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬ÃƒÂ¢Ã¢â‚¬Å¾Ã‚Â¢ÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬Ãƒâ€¦Ã‚Â¡ÃƒÆ’Ã†â€™ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â³n cuando abre */
.select2-container--open .select2-selection--single .select2-selection__arrow{
  transform:translateY(-50%) rotate(180deg) !important;
}

/* hover */
.select2-container--default .select2-selection--single:hover .select2-selection__arrow{
  background:#d8d8d8 !important;
  transition:background .25s ease !important;
  
}

/* estado abierto */
.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow{
    transition:background .25s ease !important;
  background:#d8d8d8 !important;
}

/* espacio para que el texto no choque con el botÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã¢â‚¬Â ÃƒÂ¢Ã¢â€šÂ¬Ã¢â€žÂ¢ÃƒÆ’Ã†â€™ÃƒÂ¢Ã¢â€šÂ¬Ã‚Â ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬ÃƒÂ¢Ã¢â‚¬Å¾Ã‚Â¢ÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬Ãƒâ€¦Ã‚Â¡ÃƒÆ’Ã†â€™ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â³n */
.select2-container--default .select2-selection--single{
  padding-right:38px !important;
}

/* ===== NUEVO LAYOUT DESKTOP TIPO CARD + IMAGEN ===== */

body{
  position:relative;
  min-height:100vh;
  overflow-x:hidden;
}

/* fondo general */
.desk-scene-bg{
  position:fixed;
  inset:0;
  z-index:0;
  overflow:hidden;
  background: linear-gradient(135deg, #003399 0%, #ffffff 45%, #45b5ff 100%);
}

.desk-bubble{
  position:absolute;
  display:block;
  border-radius:999px;
  background:rgba(37,99,235,.12);
}

.desk-bubble-1{
  width:420px;
  height:420px;
  top:-120px;
  left:-100px;
}

.desk-bubble-2{
  width:520px;
  height:520px;
  top:40px;
  right:-180px;
  background:rgba(59,130,246,.16);
}

.desk-bubble-3{
  width:320px;
  height:320px;
  bottom:-110px;
  left:10%;
  background:rgba(96,165,250,.14);
}

.desk-bubble-4{
  width:220px;
  height:220px;
  bottom:80px;
  right:12%;
  background:rgba(37,99,235,.10);
}

/* contenedor general */
.desk-shell{
  position:relative;
  z-index:1;
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:40px 24px;
}

/* tarjeta principal */
.desk-card{
  width:min(1180px, 100%);
  min-height:680px;
  display:grid;
  grid-template-columns:420px minmax(0,1fr);
  align-items:center;
  background:#fff;
  border-radius:28px;
  box-shadow:0 24px 60px rgba(15,23,42,.14);
  padding:28px 0 28px 28px;
  gap:0;
  position:relative;
  overflow:visible !important;
}

/* columna imagen */
.desk-media{
  position:relative;
  height:100%;
  min-height:620px;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  border-radius:22px;
}

.desk-media img{
  width:100%;
  height:100%;
  max-height:620px;
  object-fit:cover;
  border-radius:22px;
  /* box-shadow:0 18px 40px rgba(15,23,42,.18); */
  display:block;
}

/* columna formulario */
.desk-form-wrap{
  min-width:0;
  display:flex;
  align-items:center;
  justify-content:center;
  height:100%;
}

.page-center-form{
  min-height:auto;
  width:100%;
  padding:0;
}

.page-center-form .form-card{
  width:100%;
  max-width:560px;
  margin:0 auto;
  background:#ffffff;
}

/* desactivar el layout anterior */
.auth-layout,
.auth-left,
.auth-right{
  all:unset;
}

/* desktop: que el card del formulario no parezca pegado arriba */
.page-center-form .form-card{
  position:relative;
}

/* responsive */
@media (max-width:980px){
  .desk-card{
    grid-template-columns:1fr;
    min-height:auto;
    padding:18px;
    gap:18px;
  }

  .desk-media{
    min-height:260px;
    height:260px;
  }

  .desk-media img{
    max-height:none;
    height:100%;
  }

  .page-center-form .form-card{
    max-width:100%;
  }
}

@media (max-width:640px){
  .desk-shell{
    padding:14px;
  }

  .desk-card{
    padding:0;
    background:transparent;
    box-shadow:none;
    backdrop-filter:none;
    -webkit-backdrop-filter:none;
  }

  .desk-media{
    display:none;
  }

  .page-center-form .form-card{
    max-width:100%;
  }
}

#btnEnviarCodigo:disabled{
    background:#ccc;
    color:#898989;
  cursor:not-allowed;
  pointer-events:none;
}

.desk-card > *{
  position:relative;
  z-index:1;
}

.floating-bolis{
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:0;
  overflow:hidden;
}

.boli{
  position:absolute;
  width:140px;
  opacity:.18;
  filter:blur(.3px);
  animation:floatBoli 18s ease-in-out infinite;
}

.b1{ top:10%; left:5%; animation-duration:20s; }
.b2{ top:70%; left:10%; animation-duration:22s; }
.b3{ top:40%; right:8%; animation-duration:18s; }

.b4{ top:80%; right:15%; animation-duration:24s; }
.b5{ top:20%; right:25%; animation-duration:19s; }
.b6{ top:55%; left:30%; animation-duration:21s; }

@keyframes floatBoli{
  0%{
    transform:translateY(0) translateX(0) rotate(0deg);
  }
  50%{
    transform:translateY(-25px) translateX(15px) rotate(6deg);
  }
  100%{
    transform:translateY(0) translateX(0) rotate(0deg);
  }
}