:root {
  --bg:#f5f7fb;
  --panel:#ffffff;
  --ink:#0f172a;
  --muted:#64748b;
  --line:#e2e8f0;
  --brand:#335d99;
  --brand-dark:#3ed4e7;
  --brand-soft:rgba(255,106,0,0.08);
  --success:#16a34a;
  --danger:#ef4444;
  --blue-soft:#eff6ff;
  --radius-lg:16px;
  --shadow-soft:0 18px 45px rgba(15,23,42,0.08);
}

*,
*::before,
*::after{
  box-sizing:border-box;
}

html,body{
  margin:0;
  padding:0;
  font-family:Manrope,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:var(--ink);
  background-color:var(--bg);
}

a {
    color: #335d99;
    text-decoration: unset;
}

/* LAYOUT GENERAL */

.page{
  min-height:100vh;
  display:flex;
  flex-direction:column;
}

.site-header{
  background-color:var(--panel);
  border-bottom:1px solid var(--line);
}

.site-header__inner{
  max-width:1120px;
  margin:0 auto;
  padding:16px 24px;
}

.site-header__logo{
  margin:0;
  font-size:1.5rem;
  font-weight:800;
  color:var(--brand);
}

.subheader{
  background-color:var(--panel);
  border-bottom:1px solid var(--line);
}

.subheader__inner{
  max-width:1120px;
  margin:0 auto;
  padding:16px 24px;
  display:flex;
  flex-direction:column;
  gap:16px;
}

@media (min-width:768px){
  .subheader__inner{
    flex-direction:row;
    justify-content:space-between;
    align-items:center;
  }
}

.subheader__title{
  margin:0;
  font-size:1.25rem;
  font-weight:700;
}

.subheader__subtitle{
  margin-top:4px;
  color:var(--muted);
  font-size:0.95rem;
}

.subheader__badge{
  background-color:var(--brand-soft);
  border-radius:999px;
  padding:8px 16px;
  display:inline-flex;
  flex-direction:column;
  gap:2px;
}

.subheader__badge-title{
  font-size:0.8rem;
  font-weight:700;
  text-transform:uppercase;
}

.subheader__badge-text{
  font-size:0.8rem;
  color:var(--muted);
}

.site-main{
  flex:1;
  padding:32px 16px 40px;
}

.layout{
  max-width:1120px;
  margin:0 auto;
  display:grid;
  grid-template-columns:minmax(0,320px) minmax(0,1fr);
  gap:32px;
}

@media (max-width:900px){
  .layout{
    grid-template-columns:minmax(0,1fr);
  }
}

/* STEPPER */

.steps{
  background-color:var(--panel);
  border-radius:var(--radius-lg);
  padding:24px;
  border:1px solid var(--line);
  box-shadow:var(--shadow-soft);
}

.steps__title{
  margin:0;
  font-size:1.1rem;
  font-weight:700;
}

.steps__desc{
  margin-top:4px;
  color:var(--muted);
  font-size:0.9rem;
}

.steps__list{
  list-style:none;
  padding:0;
  margin:20px 0 0;
  display:flex;
  flex-direction:column;
  gap:12px;
}

.steps__item{
  display:flex;
  gap:12px;
  align-items:flex-start;
  padding:10px 12px;
  border-radius:12px;
  transition:background-color .2s,border-color .2s;
  border:1px solid transparent;
}

.steps__item--active{
  background-color:var(--brand-soft);
  border-color:var(--brand);
}

.steps__item--completed{
  opacity:.7;
}

.steps__number{
  width:28px;
  height:28px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:.85rem;
  font-weight:700;
  background-color:#e5e7eb;
}

.steps__item--active .steps__number{
  background-color:var(--brand);
  color:#fff;
}

.steps__item-title{
  font-size:.9rem;
  font-weight:600;
  margin:0;
}

.steps__item-text{
  font-size:.8rem;
  color:var(--muted);
  margin:0;
}

.steps__help{
  margin-top:24px;
  padding-top:16px;
  border-top:1px dashed var(--line);
  font-size:.85rem;
  color:var(--muted);
}

/* PANEL / STEPS */

.panel{
  display:flex;
  flex-direction:column;
  gap:16px;
}

.step{
  display:none;
}

.step--active{
  display:block;
}

.step__header{
  margin-bottom:16px;
}

.step__title{
  margin:0;
  font-size:1.4rem;
  font-weight:700;
}

.step__subtitle{
  margin-top:4px;
  font-size:.95rem;
  color:var(--muted);
}

/* CARD / CAMPOS */

.card{
  background-color:var(--panel);
  border-radius:var(--radius-lg);
  border:1px solid var(--line);
  padding:20px 20px 18px;
  box-shadow:var(--shadow-soft);
  margin-bottom:12px;
}

.card__grid{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:16px;
}

/**********DOS COLUMNAS EN EL FORMULARIO************/
@media (min-width:768px){
  /*.card__grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }*/
}

.card__center{
  text-align:center;
  max-width:460px;
  margin:0 auto;
}

.card__title{
  font-size:1.2rem;
  font-weight:700;
  margin:16px 0 8px;
}

.card__text{
  margin:0 0 8px;
  font-size:.95rem;
  color:var(--muted);
}

.card__note{
  margin-top:16px;
  margin-bottom: 16px;
  padding-top:12px;
  border-top:1px solid var(--line);
  text-align:left;
}

.card__note-title{
  font-weight:600;
  margin-bottom:4px;
}

.card__list{
  margin:0;
  padding-left:18px;
  font-size:.9rem;
  color:var(--muted);
}

.card__list li+li{
  margin-top:4px;
}

/* CAMPOS */

.field{
  display:flex;
  flex-direction:column;
  gap:4px;
}

.field__label{
  font-size:.9rem;
  font-weight:500;
}

.field__input{
  border-radius:10px;
  border:1px solid var(--line);
  padding:9px 11px;
  font-size:.9rem;
  outline:none;
  transition:border-color .15s,box-shadow .15s;
  margin-bottom: 5px;
}

.field__input:focus{
  border-color:var(--brand);
  box-shadow:0 0 0 1px rgba(255,106,0,0.18);
}

/* CHECKBOX */

.checkbox{
  display:flex;
  align-items:flex-start;
  gap:8px;
  font-size:.85rem;
  margin-top:14px;
  color:var(--muted);
}

.checkbox input{
  margin-top:2px;
}

/* BOTONES */

.step__footer{
  margin-top:18px;
  display:flex;
  justify-content:flex-end;
  gap:12px;
}

.btn{
  border-radius:999px;
  padding:10px 18px;
  font-size:.9rem;
  font-weight:600;
  border:none;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  transition:background-color .15s,transform .05s;
}

.btn:active{
  transform:translateY(1px);
}

.btn--primary{
  background-color:var(--brand);
  color:#fff;
}

.btn--primary:hover{
  background-color:var(--brand-dark);
}

.btn--ghost{
  background-color:transparent;
  color:var(--muted);
  border:1px solid var(--line);
}

.btn--ghost:hover{
  background-color:#f9fafb;
}

.btn--lg{
  padding:12px 22px;
}

/* ESPECÍFICOS: EVAL / BURÓ / ICONOS */

.icon-circle{
  width:64px;
  height:64px;
  border-radius:999px;
  background-color:var(--brand-soft);
  color:var(--brand);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:1.7rem;
  font-weight:800;
}

.alert{
  margin-top:16px;
  background-color:var(--blue-soft);
  border-radius:12px;
  padding:12px 14px;
  border:1px solid #bfdbfe;
  font-size:.9rem;
}

.alert__title{
  font-weight:600;
  margin-bottom:4px;
}

.alert__text{
  color:#1d4ed8;
}

.note{
  margin-top:12px;
  font-size:.85rem;
  color:var(--muted);
}

.loader{
  width:32px;
  height:32px;
  border-radius:999px;
  border:3px solid var(--line);
  border-top-color:var(--brand);
  animation:spin .7s linear infinite;
  margin-bottom:12px;
}

@keyframes spin{
  to{transform:rotate(360deg);}
}

.card--status{
  margin-top:12px;
}

.status-icon{
  width:48px;
  height:48px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:700;
  margin-bottom:10px;
}

.status-icon--success{
  background:rgba(22,163,74,0.1);
  color:var(--success);
}

.status-icon--warning{
  background:rgba(248,113,113,0.12);
  color:#b91c1c;
}

.buro-summary{
  border-radius:8px;
  background:#f8fafc;
  padding:10px 12px;
  margin-top:10px;
}

.buro-row{
  display:flex;
  justify-content:space-between;
  font-size:.9rem;
  margin-bottom:4px;
}

.buro-label{
  color:var(--muted);
}

.buro-value{
  font-weight:600;
}

.buro-ok{
  color:var(--success);
}

.buro-bad{
  color:#b91c1c;
}

/* FINAL */

.final{
  text-align:center;
  max-width:520px;
  margin:0 auto;
}

.final__icon{
  width:80px;
  height:80px;
  border-radius:999px;
  background-color:rgba(22,163,74,0.08);
  color:var(--success);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:2rem;
  margin:0 auto 18px;
}

.final__title{
  font-size:1.6rem;
  font-weight:700;
  margin-bottom:8px;
}

.final__text{
  font-size:.95rem;
  color:var(--muted);
}

/* FOOTER */

.site-footer{
  background-color:var(--panel);
  border-top:1px solid var(--line);
  font-size:.8rem;
  color:var(--muted);
}

.site-footer__inner{
  max-width:1120px;
  margin:0 auto;
  padding:12px 24px 14px;
  text-align:center;
}

/* UTILS */

.hidden{
  display:none !important;
}

/* ==== PASO 3: IDENTIDAD ==== */

.identity-list{
  display:flex;
  flex-direction:column;
  gap:16px;
}

.identity-card{
  display:flex;
  align-items:flex-start;
  gap:16px;
}

.identity-icon{
  width:40px;
  height:40px;
  border-radius:999px;
  background-color:#e5edff;
  color:#1d4ed8;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:1.2rem;
  flex-shrink:0;
}

.identity-body{
  flex:1;
}

.identity-title{
  margin:0 0 4px;
  font-size:1rem;
  font-weight:600;
}

.identity-text{
  margin:0 0 10px;
  font-size:0.9rem;
  color:var(--muted);
}

.identity-actions{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px;
}

.identity-status{
  font-size:0.85rem;
  color:var(--muted);
}

.btn--sm{
  padding:6px 14px;
  font-size:0.85rem;
}

/* ==== AGENDA ASESORÍA (PASO 6) ==== */

.agenda-modal{
  position:fixed;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:50;
}

.agenda-modal.hidden{
  display:none;
}

.agenda-modal__overlay{
  position:absolute;
  inset:0;
  background:rgba(15,23,42,0.45);
}

.agenda-modal__content{
  position:relative;
  z-index:1;
  background:var(--panel);
  border-radius:var(--radius-lg);
  border:1px solid var(--line);
  box-shadow:var(--shadow-soft);
  padding:20px 22px 16px;
  max-width:420px;
  width:100%;
}

.agenda-modal__header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:8px;
}

.agenda-modal__header h3{
  margin:0;
  font-size:1.05rem;
  font-weight:700;
}

.agenda-modal__close{
  border:none;
  background:transparent;
  cursor:pointer;
  font-size:1.1rem;
}

.agenda-modal__text{
  margin:4px 0 10px;
  font-size:0.9rem;
  color:var(--muted);
}

.agenda-modal__text-small{
  margin:10px 0 6px;
  font-size:0.85rem;
  color:var(--muted);
}

.agenda-slots{
  display:flex;
  flex-direction:column;
  gap:6px;
}

.agenda-slot{
  width:100%;
  border-radius:999px;
  border:1px solid var(--line);
  background:#f9fafb;
  padding:8px 12px;
  text-align:left;
  font-size:0.9rem;
  cursor:pointer;
}

.agenda-slot--selected{
  border-color:var(--brand);
  background:var(--brand-soft);
}

.agenda-modal__footer{
  margin-top:10px;
  display:flex;
  justify-content:flex-end;
  gap:8px;
}

/* ==== BARRA DE PROGRESO ==== */

.progress{
  background-color:var(--panel);
  border-bottom:1px solid var(--line);
}

.progress__inner{
  max-width:1120px;
  margin:0 auto;
  padding:10px 24px 12px;
}

.progress__header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-size:0.85rem;
  color:var(--muted);
  margin-bottom:6px;
}

.progress__bar{
  width:100%;
  height:8px;
  border-radius:999px;
  background-color:#e5e7eb;
  overflow:hidden;
}

.progress__bar-fill{
  height:100%;
  width:14%; /* se sobreescribe por JS */
  border-radius:999px;
  background-color:#2563eb; /* azul como en tu ejemplo */
  transition:width .25s ease-out;
}

#lofirmoSignaturePad{
	background-color: #fff!important;
}


.modal__content div{
	background-color: #fff!important;
}

#lofirmoDocPreview {
	  white-space: pre-wrap;
	  line-height: 1.45;
	  font-size: 14px;
	  max-height: 260px;
	  overflow: auto;
	  background: #fff;
	  border: 1px solid #dfe3eb;
	  border-radius: 12px;
	  padding: 16px;
	  color: #1f2937;
	}
	#lofirmoSignaturePad {
	  width: 100%;
	  min-height: 220px;
	  background: #fff;
	  border: 1.5px solid #dfe3eb;
	  border-radius: 12px;
	}
	
	button.is-loading,
.btn.is-loading {
  opacity: 0.9;
  pointer-events: none;
}

.btn-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.45);
  border-top-color: #fff;
  border-radius: 50%;
  display: inline-block;
  animation: credaliaSpin .8s linear infinite;
}

@keyframes credaliaSpin {
  to {
    transform: rotate(360deg);
  }
}

#agendaConfirmar:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}