.importador-body{
  min-height:100vh;
  margin:0;
  background:#f4f6fb;
  color:#12151c;
  overflow-y:auto;
  -webkit-user-select:auto;
  user-select:auto
}
.importador-shell{
  width:100%;
  max-width:520px;
  min-height:100vh;
  margin:0 auto;
  padding:14px 14px 104px;
  display:flex;
  flex-direction:column;
  gap:14px
}
.importador-appbar{
  position:sticky;
  top:0;
  z-index:30;
  width:100%;
  max-width:520px;
  min-height:58px;
  margin:0 auto;
  padding:10px 14px 8px;
  display:grid;
  grid-template-columns:42px 1fr auto;
  align-items:center;
  gap:10px;
  background:rgba(244,246,251,.94);
  backdrop-filter:blur(16px);
  border-bottom:1px solid rgba(222,228,238,.8)
}
.importador-menu-btn{
  width:42px;
  height:42px;
  border:0;
  border-radius:14px;
  display:grid;
  place-items:center;
  background:#fff;
  box-shadow:0 8px 18px rgba(16,22,38,.08)
}
.importador-menu-btn span{
  width:18px;
  height:2px;
  margin:2px 0;
  border-radius:2px;
  background:#12151c;
  display:block
}
.importador-brand,
.importador-home-link{
  color:#12151c;
  text-decoration:none;
  font-weight:900
}
.importador-home-link{
  min-height:36px;
  display:inline-flex;
  align-items:center;
  padding:0 12px;
  border-radius:999px;
  background:#e8f0fe;
  color:#0b57d0;
  font-size:13px
}
.importador-drawer{
  position:fixed;
  inset:0;
  z-index:50;
  background:rgba(15,23,42,.38);
  opacity:0;
  pointer-events:none;
  transition:opacity .18s ease
}
.importador-drawer.open{
  opacity:1;
  pointer-events:auto
}
.importador-drawer-panel{
  width:min(82vw,310px);
  min-height:100%;
  padding:72px 14px 18px;
  background:#fff;
  box-shadow:0 24px 60px rgba(16,22,38,.24);
  transform:translateX(-100%);
  transition:transform .2s ease;
  display:flex;
  flex-direction:column;
  gap:8px
}
.importador-drawer.open .importador-drawer-panel{
  transform:translateX(0)
}
.importador-drawer-panel a{
  min-height:48px;
  border-radius:14px;
  padding:0 14px;
  display:flex;
  align-items:center;
  color:#12151c;
  text-decoration:none;
  font-weight:800;
  background:#f4f6fb
}
.importador-drawer-panel a.active{
  background:#0b57d0;
  color:#fff
}
.importador-bottom-nav{
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  z-index:25;
  height:72px;
  padding:7px max(12px,env(safe-area-inset-right)) calc(7px + env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));
  background:rgba(255,255,255,.94);
  backdrop-filter:blur(18px);
  border-top:1px solid #dfe5ef;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px
}
.importador-bottom-nav a{
  min-width:0;
  border-radius:14px;
  color:#687283;
  text-decoration:none;
  display:grid;
  place-items:center;
  font-size:12px;
  font-weight:900
}
.importador-bottom-nav a.active{
  color:#0b57d0;
  background:#e8f0fe
}
.importador-top{
  padding:4px 2px 2px
}
.back-link{
  display:inline-flex;
  align-items:center;
  min-height:38px;
  color:#0b57d0;
  text-decoration:none;
  font-size:15px;
  font-weight:700
}
.importador-top h1{
  margin:8px 0 4px;
  font-size:25px;
  line-height:1.1;
  letter-spacing:0;
  color:#12151c
}
.importador-top p{
  margin:0;
  color:#616977;
  font-size:15px;
  line-height:1.35
}
.upload-card,
.detail-card,
.actions-card,
.import-list,
.thumbs-section{
  background:#fff;
  border:1px solid #e5e9f1;
  border-radius:18px;
  box-shadow:0 10px 24px rgba(16,22,38,.08)
}
.upload-card{
  padding:14px
}
.file-drop{
  min-height:174px;
  border:2px dashed #c8d3e6;
  border-radius:16px;
  background:#f9fbff;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:7px;
  padding:18px;
  text-align:center;
  cursor:pointer
}
.file-drop input{
  width:100%;
  max-width:290px;
  margin-top:8px
}
.file-icon{
  width:52px;
  height:52px;
  border-radius:18px;
  display:grid;
  place-items:center;
  background:#e8f0fe;
  font-size:25px
}
.file-drop strong{
  font-size:18px
}
.file-drop small{
  max-width:280px;
  color:#687283;
  line-height:1.35
}
.primary-btn,
.secondary-btn{
  width:100%;
  min-height:50px;
  border:0;
  border-radius:16px;
  padding:0 16px;
  margin-top:12px;
  font-size:16px;
  font-weight:800
}
.primary-btn{
  display:grid;
  place-items:center;
  background:#0b57d0;
  color:#fff;
  text-decoration:none;
  box-shadow:0 8px 18px rgba(11,87,208,.24)
}
.primary-btn.alt{
  background:#1558a6;
  margin-top:10px
}
.secondary-btn{
  background:#edf1f7;
  color:#7a8494
}
.secondary-btn:disabled{
  opacity:1
}
.import-progress{
  margin-top:14px;
  border:1px solid #dbe4f2;
  border-radius:16px;
  background:#f8fbff;
  padding:12px;
}
.progress-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  font-size:13px;
}
.progress-head strong{
  color:#12151c;
}
.progress-head span{
  color:#0b57d0;
  font-weight:900;
}
.progress-track{
  height:9px;
  margin-top:10px;
  border-radius:999px;
  background:#e4eaf4;
  overflow:hidden;
}
.progress-track div{
  width:0;
  height:100%;
  border-radius:999px;
  background:#0b57d0;
  transition:width .22s ease;
}
.import-progress p{
  margin:9px 0 0;
  color:#687283;
  font-size:13px;
  line-height:1.35;
}
.import-progress.has-error{
  border-color:#f4c7c7;
  background:#fff7f7;
}
.import-progress.has-error .progress-head span,
.import-progress.has-error p{
  color:#9f2525;
}
.import-progress.has-error .progress-track div{
  background:#d93025;
}
.retry-btn{
  margin-top:10px;
}
.auto-thumbs{
  margin-top:14px;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.auto-thumbs > strong{
  font-size:14px;
}
.auto-thumb-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:8px;
}
.auto-thumb-grid img{
  width:100%;
  aspect-ratio:3/4;
  object-fit:cover;
  border-radius:10px;
  background:#edf1f7;
  border:1px solid #e1e7f0;
}
.notice{
  border-radius:14px;
  padding:12px 14px;
  font-size:14px;
  line-height:1.35
}
.notice.ok{
  background:#e7f7ee;
  color:#116b38;
  border:1px solid #bde7cc
}
.notice.error{
  background:#fff0f0;
  color:#9f2525;
  border:1px solid #f4c7c7
}
.notice.warning{
  background:#fff7e8;
  color:#8a5a0a;
  border:1px solid #f1d39b
}
.import-list,
.thumbs-section{
  padding:14px
}
.import-list h2,
.thumbs-section h2{
  margin:0 0 10px;
  font-size:16px
}
.import-row{
  min-height:58px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:10px 0;
  color:#12151c;
  text-decoration:none;
  border-top:1px solid #edf0f5
}
.import-row:first-of-type{
  border-top:0
}
.import-row span{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:3px
}
.import-row strong{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap
}
.import-row small{
  color:#778193
}
.status{
  display:inline-flex;
  align-items:center;
  min-height:28px;
  padding:0 10px;
  border-radius:999px;
  background:#edf1f7;
  color:#566070;
  font-size:12px;
  font-style:normal;
  font-weight:800;
  white-space:nowrap
}
.status.pendiente{
  background:#fff4dc;
  color:#9b650d
}
.status.procesando{
  background:#e8f0fe;
  color:#0b57d0
}
.status.convertido{
  background:#e7f7ee;
  color:#116b38
}
.status.error{
  background:#fff0f0;
  color:#9f2525
}
.status.procesado{
  background:#e7f7ee;
  color:#116b38
}
.detail-card{
  padding:4px 14px
}
.info-row{
  min-height:52px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  border-top:1px solid #edf0f5;
  font-size:15px
}
.info-row:first-child{
  border-top:0
}
.info-row span{
  color:#667083
}
.info-row strong,
.info-row a{
  color:#12151c;
  font-weight:800
}
.info-row a{
  color:#0b57d0;
  text-decoration:none
}
.actions-card{
  padding:14px
}
.actions-card .primary-btn{
  margin-top:0
}
.empty-state{
  min-height:90px;
  border-radius:14px;
  display:grid;
  place-items:center;
  text-align:center;
  background:#f7f9fd;
  color:#717b8d;
  padding:14px
}
.thumb-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px
}
.thumb-card{
  margin:0;
  border:1px solid #e5e9f1;
  border-radius:14px;
  overflow:hidden;
  background:#fff;
  display:flex;
  flex-direction:column
}
.thumb-card img{
  width:100%;
  aspect-ratio:3/4;
  object-fit:cover;
  background:#edf1f7
}
.thumb-card strong{
  padding:9px 10px;
  font-size:13px
}
.ia-meta{
  padding:0 10px 10px;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:6px
}
.ia-meta small{
  color:#687283;
  line-height:1.25
}
.ia-meta .warning{
  color:#9b650d
}
.mini-btn,
.mini-link{
  min-height:38px;
  margin:0 10px 10px;
  border:0;
  border-radius:12px;
  display:grid;
  place-items:center;
  background:#e8f0fe;
  color:#0b57d0;
  font-size:13px;
  font-weight:800;
  text-decoration:none
}
.review-image-card{
  background:#fff;
  border:1px solid #e5e9f1;
  border-radius:18px;
  padding:10px;
  box-shadow:0 10px 24px rgba(16,22,38,.08)
}
.review-image-card img{
  width:100%;
  max-height:62vh;
  object-fit:contain;
  border-radius:12px;
  background:#edf1f7
}
.info-row.stacked{
  min-height:auto;
  padding:12px 0;
  flex-direction:column;
  align-items:flex-start
}
.review-form{
  background:#fff;
  border:1px solid #e5e9f1;
  border-radius:18px;
  padding:14px;
  box-shadow:0 10px 24px rgba(16,22,38,.08);
  display:flex;
  flex-direction:column;
  gap:12px
}
.review-field{
  display:flex;
  flex-direction:column;
  gap:6px
}
.review-field span{
  color:#667083;
  font-size:13px;
  font-weight:800
}
.review-field input,
.review-field textarea,
.responsable-field select{
  width:100%;
  border:1px solid #d9e0eb;
  border-radius:14px;
  background:#f9fbff;
  color:#12151c;
  padding:12px;
  font:inherit;
  resize:vertical
}
.operational-card{
  border-top:1px solid #edf0f5;
  padding-top:14px;
  display:flex;
  flex-direction:column;
  gap:12px
}
.operational-head{
  display:flex;
  flex-direction:column;
  gap:4px
}
.section-kicker{
  color:#0b57d0;
  font-size:12px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.04em
}
.operational-head h2{
  margin:0;
  color:#12151c;
  font-size:17px;
  line-height:1.25
}
.operational-list{
  display:flex;
  flex-direction:column;
  gap:8px
}
.op-item{
  border:1px solid #e1e7f0;
  border-radius:16px;
  padding:10px;
  background:#fbfcff;
  display:grid;
  gap:8px
}
.op-item.estado-confirmada{
  border-color:#bde7cc;
  background:#f3fbf6
}
.op-item.estado-posible_revision{
  border-color:#f1d39b;
  background:#fff9ed
}
.op-check{
  min-height:54px;
  display:grid;
  grid-template-columns:30px 1fr;
  gap:10px;
  align-items:center;
  cursor:pointer
}
.op-check input{
  position:absolute;
  opacity:0;
  pointer-events:none
}
.op-box{
  width:28px;
  height:28px;
  border-radius:9px;
  border:2px solid #b9c4d5;
  background:#fff;
  display:grid;
  place-items:center
}
.op-check input:checked + .op-box{
  border-color:#0b57d0;
  background:#0b57d0
}
.op-check input:checked + .op-box::after{
  content:"";
  width:8px;
  height:14px;
  border:solid #fff;
  border-width:0 3px 3px 0;
  transform:rotate(45deg) translateY(-1px)
}
.op-text{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:3px
}
.op-text strong{
  font-size:15px;
  line-height:1.2
}
.op-text small{
  color:#667083;
  font-size:12px;
  line-height:1.3
}
.ia-state{
  justify-self:start;
  min-height:26px;
  display:inline-flex;
  align-items:center;
  border-radius:999px;
  padding:0 9px;
  background:#edf1f7;
  color:#566070;
  font-size:12px;
  font-weight:900
}
.estado-confirmada .ia-state{
  background:#dff5e8;
  color:#116b38
}
.estado-posible_revision .ia-state{
  background:#fff1cc;
  color:#8a5a0a
}
.responsable-field{
  display:flex;
  flex-direction:column;
  gap:6px
}
.responsable-field span{
  color:#667083;
  font-size:12px;
  font-weight:900
}
.responsable-field select{
  min-height:46px;
  resize:none
}
.responsable-field select:disabled{
  opacity:.6
}
.ia-evidence{
  border-top:1px solid rgba(176,188,207,.5);
  padding-top:8px
}
.ia-evidence summary{
  min-height:34px;
  display:flex;
  align-items:center;
  color:#0b57d0;
  font-size:13px;
  font-weight:900;
  cursor:pointer
}
.ia-evidence blockquote{
  margin:4px 0;
  padding:9px 10px;
  border-left:3px solid #0b57d0;
  border-radius:10px;
  background:#fff;
  color:#12151c;
  font-size:13px;
  line-height:1.35
}
.ia-evidence small,
.ia-evidence p{
  margin:0;
  color:#667083;
  font-size:12px;
  line-height:1.35
}
.deadline-card{
  border:1px solid #dbe4f2;
  border-radius:16px;
  background:#f8fbff;
  padding:12px;
  display:flex;
  flex-direction:column;
  gap:10px
}
.deadline-summary{
  border-radius:14px;
  background:#fff;
  border:1px solid #e4eaf4;
  padding:11px;
  display:flex;
  flex-direction:column;
  gap:4px
}
.deadline-summary span{
  color:#667083;
  font-size:12px;
  font-weight:900
}
.deadline-summary strong{
  color:#12151c;
  font-size:18px
}
.deadline-summary small{
  color:#667083;
  line-height:1.35
}
.deadline-edit-btn{
  margin-top:0
}
.manual-note{
  margin:0;
  border-radius:12px;
  background:#fff7e8;
  color:#8a5a0a;
  border:1px solid #f1d39b;
  padding:10px 12px;
  font-size:13px;
  font-weight:800
}
.save-success-actions{
  display:grid;
  gap:8px
}
.success-action{
  min-height:46px;
  border-radius:14px;
  display:grid;
  place-items:center;
  text-align:center;
  text-decoration:none;
  color:#0b57d0;
  background:#e8f0fe;
  font-weight:900
}
.success-action.primary{
  color:#fff;
  background:#0b57d0
}
.save-result{
  border-radius:14px;
  padding:12px 14px;
  font-size:14px;
  line-height:1.35
}
.save-result.ok{
  background:#e7f7ee;
  color:#116b38;
  border:1px solid #bde7cc
}
.save-result.error{
  background:#fff0f0;
  color:#9f2525;
  border:1px solid #f4c7c7
}

@media (min-width:680px){
  .importador-shell{
    padding-top:28px
  }
  .thumb-grid{
    grid-template-columns:repeat(3,minmax(0,1fr))
  }
}
