
/* v10.7 - Flujo guiado para certificado de residencia */
html body .ji-cert-steps{margin:1.4rem 0}
html body .ji-cert-steps__nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.65rem;list-style:none;margin:0 0 1.2rem;padding:0}
html body .ji-cert-steps__nav li{padding:.85rem .9rem;border-radius:16px;background:#eef4ff;color:#51627f;font-weight:900;border:1px solid #d8e2fb;font-size:.9rem}
html body .ji-cert-steps__nav li.is-active{background:#2457e6;color:#fff;border-color:#2457e6}
html body .ji-cert-steps__nav li.is-done{background:#e8fff1;color:#126b39;border-color:#9ed8b5}
html body .ji-cert-step{border:1px solid #d8e2fb;border-radius:22px;padding:1.1rem;background:#fff}
html body .ji-cert-step h2{margin:0 0 1rem;color:#0f2b63;font-size:1.45rem;line-height:1.1}
html body .ji-cert-step__grid{display:grid;grid-template-columns:repeat(2,minmax(280px,1fr));gap:1.15rem 1.25rem}
html body .ji-cert-step__grid .ji-jjvv-form__field--textarea,
html body .ji-cert-step__grid .ji-jjvv-form__field--file{grid-column:1/-1!important}
html body .ji-cert-steps__actions{display:flex;gap:.75rem;justify-content:space-between;margin-top:1rem}
html body .ji-cert-steps__actions button,
html body .ji-cert-final-submit{border:0;border-radius:999px;padding:.9rem 1.2rem;font-weight:950;cursor:pointer}
html body .ji-cert-steps__prev{background:#eef4ff;color:#14346f}
html body .ji-cert-steps__next{background:#2457e6;color:#fff;margin-left:auto}
html body .ji-jjvv-form__declaration{display:flex!important;gap:.75rem;align-items:flex-start;margin:1rem 0;padding:1rem;border:1px solid #bfd0ff;border-radius:16px;background:#f8fbff;color:#0d214a;font-weight:800!important}
html body .ji-jjvv-form__declaration input{width:auto!important;margin:.15rem 0 0!important;flex:0 0 auto}
html body .ji-jjvv-form__review{margin:1rem 0;padding:1rem;border-radius:16px;background:#f8fafc;border:1px solid #d8e2fb}
html body .ji-jjvv-form__review strong{display:block;margin-bottom:.6rem;color:#0f2b63}
html body .ji-jjvv-form__review dl,
html body .ji-status-result dl{display:grid;grid-template-columns:minmax(130px,.35fr) 1fr;gap:.45rem .8rem;margin:0}
html body .ji-jjvv-form__review dt,
html body .ji-status-result dt{font-weight:900;color:#0f2b63}
html body .ji-jjvv-form__review dd,
html body .ji-status-result dd{margin:0;color:#334155}
html body .ji-status-result{margin-top:1.2rem;padding:1.2rem;border-radius:20px;background:#f4f7ff;border:1px solid #bfd0ff}
html body .ji-status-result>strong{display:inline-flex;padding:.45rem .7rem;border-radius:999px;background:#fff;color:#2457e6;margin-bottom:.7rem}
html body .ji-status-result h2{margin:.2rem 0 .5rem;color:#0f2b63;font-size:2rem}
@media(max-width:860px){
  html body .ji-cert-steps__nav{grid-template-columns:1fr}
  html body .ji-cert-step__grid{grid-template-columns:1fr}
  html body .ji-jjvv-form__review dl,
  html body .ji-status-result dl{grid-template-columns:1fr}
}


/* v10.9 - Previsualización de adjuntos y resumen visual */
html body .ji-file-preview{
  display:grid;
  grid-template-columns:96px 1fr auto;
  gap:1rem;
  align-items:center;
  margin-top:.75rem;
  padding:.85rem;
  border:1px solid #d8e2fb;
  border-radius:16px;
  background:#fff;
}
html body .ji-file-preview__visual{
  width:96px;
  height:72px;
  border-radius:12px;
  overflow:hidden;
  background:#eef4ff;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#2457e6;
  font-weight:950;
}
html body .ji-file-preview__visual img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
html body .ji-file-preview__info{
  min-width:0;
}
html body .ji-file-preview__info strong,
html body .ji-file-preview__info small{
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
html body .ji-file-preview__remove{
  border:0;
  border-radius:999px;
  padding:.7rem .9rem;
  background:#fee2e2;
  color:#991b1b;
  font-weight:900;
  cursor:pointer;
}
html body .ji-review-files{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:1rem;
  margin-top:1rem;
}
html body .ji-review-file{
  border:1px solid #d8e2fb;
  border-radius:16px;
  padding:.75rem;
  background:#fff;
}
html body .ji-review-file strong,
html body .ji-review-file span{
  display:block;
}
html body .ji-review-file img,
html body .ji-review-file__pdf{
  width:100%;
  height:130px;
  border-radius:12px;
  object-fit:cover;
  background:#eef4ff;
  margin:.55rem 0;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#2457e6;
  font-weight:950;
}
html body .ji-review-file span{
  font-size:.86rem;
  color:#51627f;
  overflow:hidden;
  text-overflow:ellipsis;
}
@media(max-width:860px){
  html body .ji-file-preview{
    grid-template-columns:76px 1fr;
  }
  html body .ji-file-preview__visual{
    width:76px;
    height:60px;
  }
  html body .ji-file-preview__remove{
    grid-column:1/-1;
    width:100%;
  }
  html body .ji-review-files{
    grid-template-columns:1fr;
  }
}


/* v11.0 - Navegación clicable por pasos */
html body .ji-cert-steps__nav li{
  padding:0!important;
  overflow:hidden;
}
html body .ji-cert-steps__nav button{
  appearance:none;
  border:0;
  width:100%;
  min-height:100%;
  padding:.85rem .9rem;
  background:transparent;
  color:inherit;
  font:inherit;
  font-weight:900;
  text-align:left;
  cursor:pointer;
}
html body .ji-cert-steps__nav li.is-active button{
  color:#fff;
}
html body .ji-cert-steps__nav li.is-done button{
  color:#126b39;
}
html body .ji-cert-steps__nav button:hover,
html body .ji-cert-steps__nav button:focus{
  outline:3px solid rgba(36,87,230,.22);
  outline-offset:-3px;
}
