/* ===========================================================================
   Atlas Core — Mobile CSS v2 (Home · Acciones rápidas · Alertas)
   =========================================================================== */

/* ───────── Home mobile ───────── */
.home-mobile {
  display: flex; flex-direction: column;
  gap: 14px; max-width: 600px; margin: 0 auto;
}

/* Saludo */
.greeting { padding: 4px 0 0; }
.greeting-time { font-size: 0.75rem; color: var(--text3); }
.greeting-name {
  font-family: var(--atl-font-display);
  font-size: 1.7rem; font-weight: 900; margin-top: 1px;
  letter-spacing: .3px;
}

/* CTA Escanear */
.cta-escanear {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; padding: 28px 16px;
  background: linear-gradient(135deg, #f97316 0%, #c2410c 100%);
  border-radius: 14px; color: white;
  font-family: var(--atl-font-display); font-weight: 800; font-size: 1.1rem;
  letter-spacing: .5px; min-height: 130px; width: 100%;
  box-shadow: 0 6px 24px rgba(249,115,22,.35);
  transition: transform .1s, box-shadow .15s;
}
.cta-escanear:active { transform: scale(.98); box-shadow: 0 2px 8px rgba(249,115,22,.25); }
.cta-escanear svg { width: 44px; height: 44px; }
.cta-escanear-sub { font-size: 0.75rem; font-weight: 500; opacity: .85; }

/* Quick actions 2x2 */
.quick-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quick-action {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; padding: 18px 12px;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 12px; color: var(--text);
  min-height: 96px; text-align: center;
  font-weight: 600; font-size: 0.78rem;
  transition: border-color .15s, background .15s;
}
.quick-action:hover { background: var(--bg3); }
.quick-action:active { transform: scale(.97); }
.quick-action-icon { font-size: 1.6rem; line-height: 1; }
.quick-action-label { line-height: 1.2; }
.quick-action.qa-despacho   { color: var(--cyan); }
.quick-action.qa-retorno    { color: var(--green); }
.quick-action.qa-inspeccion { color: var(--yellow); }
.quick-action.qa-dano       { color: var(--red); }
.quick-action.qa-despacho:hover  { border-color: rgba(34,211,238,.3); background: rgba(34,211,238,.06); }
.quick-action.qa-retorno:hover   { border-color: rgba(34,197,94,.3);  background: rgba(34,197,94,.06); }
.quick-action.qa-inspeccion:hover{ border-color: rgba(234,179,8,.3);  background: rgba(234,179,8,.06); }
.quick-action.qa-dano:hover      { border-color: rgba(239,68,68,.3);  background: rgba(239,68,68,.06); }

/* Sección hoy */
.section-hoy { display: flex; flex-direction: column; gap: 8px; }
.section-title {
  font-size: 0.65rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .18em;
  color: var(--text3); margin: 14px 0 4px;
}

/* Alert cards */
.alert-card {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; background: var(--bg2);
  border: 1px solid var(--border); border-radius: 10px;
  cursor: pointer; transition: border-color .15s;
}
.alert-card:hover { border-color: rgba(249,115,22,.3); }
.alert-card:active { transform: scale(.99); }
.alert-icon {
  font-size: 1.2rem; width: 36px; height: 36px;
  border-radius: 8px; display: flex; align-items: center;
  justify-content: center; flex-shrink: 0;
}
.alert-icon.warn { background: rgba(234,179,8,.12); }
.alert-icon.error { background: rgba(239,68,68,.12); }
.alert-icon.info { background: rgba(34,211,238,.1); }
.alert-body { flex: 1; min-width: 0; }
.alert-title { font-size: 13px; font-weight: 600; margin-bottom: 1px; }
.alert-sub { font-size: 11px; color: var(--text2); }
.alert-time { font-size: 10px; color: var(--text3); flex-shrink: 0; }

/* Resumen hoy — kpi strip */
.kpi-strip { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.kpi-item {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 10px; padding: 12px 10px; text-align: center;
}
.kpi-val {
  font-family: var(--atl-font-display);
  font-size: 1.6rem; font-weight: 900; line-height: 1;
}
.kpi-label { font-size: 0.62rem; color: var(--text3); margin-top: 3px; text-transform: uppercase; letter-spacing: .08em; }

/* Progreso línea */
.progress-bar {
  height: 4px; background: var(--bg3);
  border-radius: 2px; overflow: hidden; margin-top: 6px;
}
.progress-fill {
  height: 100%; background: var(--orange);
  border-radius: 2px; transition: width .4s ease;
}
.progress-fill.green  { background: var(--green); }
.progress-fill.red    { background: var(--red); }
.progress-fill.yellow { background: var(--yellow); }

/* ───────── Org selector modal ───────── */
.org-list { display: flex; flex-direction: column; gap: 8px; }
.org-item {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 14px; background: var(--bg3);
  border: 1px solid var(--border); border-radius: 10px;
  cursor: pointer; transition: border-color .15s;
}
.org-item:hover { border-color: rgba(249,115,22,.4); }
.org-item.active { border-color: var(--orange); background: rgba(249,115,22,.08); }
.org-avatar {
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(249,115,22,.2); color: var(--orange);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--atl-font-display); font-weight: 800; font-size: 14px;
  flex-shrink: 0;
}
.org-name { font-size: 13px; font-weight: 600; }
.org-role { font-size: 10px; color: var(--text3); margin-top: 1px; }

/* ───────── Inspección / Wizard steps ───────── */
.step-indicator {
  display: flex; gap: 0; margin-bottom: 16px;
  border-radius: 8px; overflow: hidden;
  border: 1px solid var(--border);
}
.step {
  flex: 1; padding: 8px 4px; text-align: center;
  font-size: 0.65rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .05em; color: var(--text3);
  background: var(--bg2); border-right: 1px solid var(--border);
  transition: all .2s;
}
.step:last-child { border-right: none; }
.step.active { background: rgba(249,115,22,.15); color: var(--orange); }
.step.done   { background: rgba(34,197,94,.1);  color: var(--green); }

/* Radio / Checkbox custom */
.radio-group { display: flex; flex-direction: column; gap: 8px; }
.radio-option {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px; border-radius: 9px;
  border: 1px solid var(--border); cursor: pointer;
  transition: border-color .15s, background .15s;
}
.radio-option:hover { border-color: rgba(249,115,22,.4); background: rgba(249,115,22,.04); }
.radio-option.selected { border-color: var(--orange); background: rgba(249,115,22,.08); }
.radio-option input[type=radio] { display: none; }
.radio-dot {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid var(--border); flex-shrink: 0;
  transition: all .15s;
}
.radio-option.selected .radio-dot {
  border-color: var(--orange);
  background: var(--orange);
  box-shadow: inset 0 0 0 3px var(--bg2);
}
.radio-label { font-size: 13px; font-weight: 500; }

/* ───────── Página título ───────── */
.page-title {
  font-family: var(--atl-font-display);
  font-size: 1.9rem; font-weight: 900; letter-spacing: .4px;
}
.page-sub { color: var(--text3); font-size: 12px; margin-top: 2px; }
