/* Recoge y Pide — Estación.
 *
 * Standalone (no extends portal admin CSS). Diseño optimizado para uso
 * en caja/recepción: legible a un metro, tipografía grande, jerarquía
 * fuerte, color semántico por columna, animaciones que comunican
 * cambios sin distraer.
 *
 * Paleta SITI: naranja primary (#F97316). Columnas con accent propio
 * para que el cajero ubique de un vistazo qué pedido sigue.
 */

:root {
  --st-bg: #f6f7fb;
  --st-bg-2: #eef0f6;
  --st-surface: #ffffff;
  --st-surface-2: #fafbfd;
  --st-border: #e3e6ee;
  --st-border-soft: #eef0f6;
  --st-text: #0f172a;
  --st-text-2: #334155;
  --st-muted: #64748b;
  --st-muted-2: #94a3b8;

  --st-primary: #f97316;      /* SITI orange */
  --st-primary-dark: #ea580c;
  --st-primary-light: #fb923c;
  --st-primary-surface: #fff7ed;

  --st-new: #f59e0b;          /* amber: requiere acción */
  --st-new-surface: #fffbeb;
  --st-prep: #3b82f6;         /* blue: en curso */
  --st-prep-surface: #eff6ff;
  --st-ready: #10b981;        /* emerald: listo para entregar */
  --st-ready-surface: #ecfdf5;

  --st-danger: #dc2626;
  --st-danger-surface: #fef2f2;
  --st-success: #16a34a;
  --st-warn: #f59e0b;

  --st-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --st-shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
  --st-shadow-lg: 0 10px 30px rgba(15, 23, 42, 0.12);
  --st-shadow-pop: 0 20px 50px rgba(15, 23, 42, 0.18);

  --st-radius: 14px;
  --st-radius-sm: 10px;
  --st-radius-xs: 8px;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  color: var(--st-text);
  background:
    radial-gradient(1200px 600px at 110% -10%, #ffe4cc 0%, transparent 60%),
    radial-gradient(900px 500px at -10% 110%, #dbeafe 0%, transparent 55%),
    var(--st-bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'cv11', 'ss01';
}

/* ── Login ─────────────────────────────────────────────────────── */
.st-login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.st-login-box {
  background: var(--st-surface);
  border: 1px solid var(--st-border);
  border-radius: 20px;
  padding: 36px 32px;
  width: min(380px, 100%);
  box-shadow: var(--st-shadow-lg);
  position: relative;
  overflow: hidden;
  animation: stPop 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.2) both;
}
.st-login-box::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  background: linear-gradient(90deg, var(--st-primary), var(--st-primary-light));
}
.st-login-logo {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--st-primary) 0%, var(--st-primary-dark) 100%);
  display: grid; place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 24px;
  margin: 0 auto 14px;
  box-shadow: 0 8px 24px rgba(249, 115, 22, 0.35);
}
.st-login-box h1 {
  margin: 0 0 4px;
  font-size: 24px;
  text-align: center;
  letter-spacing: -0.02em;
}
.st-login-hint {
  color: var(--st-muted);
  margin: 0 0 22px;
  font-size: 14px;
  text-align: center;
}
.st-pin-input {
  width: 100%;
  font-size: 30px;
  letter-spacing: 12px;
  text-align: center;
  padding: 16px 12px;
  border: 2px solid var(--st-border);
  border-radius: var(--st-radius-sm);
  outline: none;
  margin-bottom: 14px;
  font-weight: 700;
  font-family: 'SF Mono', 'JetBrains Mono', Menlo, monospace;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  background: var(--st-surface-2);
}
.st-pin-input:focus {
  border-color: var(--st-primary);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.15);
  background: #fff;
}
.st-login-error {
  color: var(--st-danger);
  font-size: 14px;
  min-height: 20px;
  margin-top: 8px;
  text-align: center;
  font-weight: 500;
}
.st-login-box .st-btn-primary { width: 100%; justify-content: center; }

/* ── Botones ───────────────────────────────────────────────────── */
.st-btn {
  border: 0;
  border-radius: var(--st-radius-xs);
  padding: 10px 16px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.1s ease, box-shadow 0.15s ease, background-color 0.15s ease;
  font-family: inherit;
}
.st-btn:active { transform: translateY(1px); }
.st-btn-primary {
  background: linear-gradient(135deg, var(--st-primary) 0%, var(--st-primary-dark) 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}
.st-btn-primary:hover { box-shadow: 0 6px 18px rgba(249, 115, 22, 0.4); transform: translateY(-1px); }
.st-btn-primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; box-shadow: none; }
.st-btn-secondary {
  background: var(--st-surface);
  color: var(--st-text);
  border: 1px solid var(--st-border);
}
.st-btn-secondary:hover { background: var(--st-bg-2); border-color: var(--st-muted-2); }
.st-btn-ghost {
  background: transparent;
  color: var(--st-text-2);
  padding: 8px 12px;
}
.st-btn-ghost:hover { background: rgba(15, 23, 42, 0.05); }

/* Botones inline del kanban (los emite shared/pickup/kanban.js como .btn / .btn-* / .btn-sm) */
.btn {
  border: 0;
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  margin: 0;
  font-family: inherit;
  transition: transform 0.1s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1;
  letter-spacing: 0.01em;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--st-primary) 0%, var(--st-primary-dark) 100%);
  color: #fff;
  box-shadow: 0 3px 10px rgba(249, 115, 22, 0.3);
}
.btn-primary:hover { box-shadow: 0 5px 16px rgba(249, 115, 22, 0.42); transform: translateY(-1px); }
.btn-secondary {
  background: #fff;
  color: var(--st-text);
  border: 1px solid var(--st-border);
}
.btn-secondary:hover { background: var(--st-bg-2); border-color: var(--st-muted-2); }
.btn-danger {
  background: var(--st-surface);
  color: var(--st-danger);
  border: 1px solid #fecaca;
}
.btn-danger:hover { background: var(--st-danger-surface); border-color: var(--st-danger); }
.btn-sm { padding: 7px 12px; font-size: 12.5px; }

/* Chips de tiempo (10/15/20/30 min). El JS marca presets como .btn .btn-primary .btn-sm.
 * Los reestilizamos cuando aparecen en una fila .pk-prep-row para que se vean
 * como pills agrupadas.
 */
.pk-prep-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pk-prep-row .btn-primary {
  background: #fff;
  color: var(--st-primary-dark);
  border: 1.5px solid var(--st-primary);
  box-shadow: none;
}
.pk-prep-row .btn-primary:hover {
  background: var(--st-primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.35);
}

/* ── Header ────────────────────────────────────────────────────── */
.st-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 22px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #fff;
  gap: 16px;
  flex-wrap: wrap;
  position: relative;
  box-shadow: var(--st-shadow-md);
}
.st-header::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--st-new) 0%, var(--st-prep) 50%, var(--st-ready) 100%);
}
.st-header-left { display: flex; align-items: center; gap: 14px; }
.st-brand {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--st-primary), var(--st-primary-dark));
  display: grid; place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.02em;
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.4);
}
.st-header-title { display: flex; flex-direction: column; line-height: 1.25; }
.st-label {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.st-places {
  color: rgba(255, 255, 255, 0.65);
  font-size: 13px;
  font-weight: 500;
}
.st-header-right { display: flex; gap: 10px; align-items: center; }

.st-clock {
  color: rgba(255, 255, 255, 0.85);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  font-size: 14px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.st-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
}
.st-status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--st-muted-2);
  display: inline-block;
  position: relative;
  transition: background-color 0.2s ease;
}
.st-status-dot.ok { background: #4ade80; }
.st-status-dot.ok::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: #4ade80;
  opacity: 0.5;
  animation: stPulse 1.8s ease-out infinite;
}
.st-status-dot.err { background: #f87171; }

.st-header .st-btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.st-header .st-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.25);
}
.st-header .st-sound-banner {
  background: linear-gradient(135deg, var(--st-primary), var(--st-primary-dark));
  color: #fff;
  border: 0;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
  animation: stWiggle 2.5s ease-in-out infinite;
}
.st-header .st-sound-banner:hover { box-shadow: 0 6px 18px rgba(249, 115, 22, 0.5); }

/* ── Toast ─────────────────────────────────────────────────────── */
.st-toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: var(--st-text);
  color: #fff;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--st-shadow-pop);
  z-index: 99;
  max-width: 90vw;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.25s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
.st-toast:not(:empty) {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.st-toast.warn { background: var(--st-warn); }
.st-toast.err  { background: var(--st-danger); }
.st-toast.info { background: var(--st-primary); }

/* ── Kanban ────────────────────────────────────────────────────── */
.st-kanban.pk-root {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 20px;
  align-items: start;
}

.pk-col {
  background: var(--st-surface);
  border: 1px solid var(--st-border);
  border-radius: var(--st-radius);
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--st-shadow-sm);
  overflow: hidden;
  position: relative;
}
.pk-col::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--col-accent, var(--st-muted-2));
}
.pk-col[data-col="new"]       { --col-accent: var(--st-new);   --col-surface: var(--st-new-surface);   }
.pk-col[data-col="preparing"] { --col-accent: var(--st-prep);  --col-surface: var(--st-prep-surface);  }
.pk-col[data-col="ready"]     { --col-accent: var(--st-ready); --col-surface: var(--st-ready-surface); }

.pk-col-head {
  padding: 14px 16px 12px;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--st-text-2);
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--col-surface, transparent);
  border-bottom: 1px solid var(--st-border-soft);
}
.pk-col-head-label { flex: 1; }
.pk-col-count {
  background: #fff;
  color: var(--col-accent, var(--st-muted));
  font-size: 12px;
  font-weight: 700;
  min-width: 24px;
  height: 24px;
  border-radius: 999px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--col-accent, var(--st-border));
  letter-spacing: 0;
  transition: transform 0.25s cubic-bezier(0.2, 0.9, 0.3, 1.4);
}
.pk-col-count.bump { transform: scale(1.18); }
.pk-col-count.zero { opacity: 0.45; }

.pk-col-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.pk-empty {
  padding: 32px 16px;
  text-align: center;
  color: var(--st-muted-2);
  font-size: 13px;
  border: 2px dashed var(--st-border);
  border-radius: var(--st-radius-sm);
  background: var(--st-surface-2);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.pk-empty .pk-empty-icon,
.pk-empty .pk-empty-icon svg {
  width: 30px;
  height: 30px;
  opacity: 0.5;
}
.pk-empty-text { font-weight: 500; }

/* ── SVG icons ─────────────────────────────────────────────────── */
.pk-ico,
.st-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  line-height: 0;
}
.pk-ico svg,
.st-ico svg { width: 100%; height: 100%; display: block; }
.pk-time .pk-ico { width: 12px; height: 12px; }
.btn .pk-ico { width: 14px; height: 14px; }
.st-btn .st-ico { width: 15px; height: 15px; }

/* ── Card ──────────────────────────────────────────────────────── */
.pk-card {
  background: #fff;
  border: 1px solid var(--st-border);
  border-radius: var(--st-radius-sm);
  padding: 14px 16px 12px;
  font-size: 14px;
  position: relative;
  box-shadow: var(--st-shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.15s ease;
  border-left: 4px solid var(--col-accent, var(--st-muted-2));
}
.pk-card:hover { box-shadow: var(--st-shadow-md); transform: translateY(-1px); }

.pk-card-fresh {
  animation: stCardIn 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.15) both;
}
.pk-card-fresh.pk-card-new-order {
  animation: stCardIn 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.15) both,
             stHighlight 2.5s ease-out 0.4s 2;
}

.pk-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 6px;
}
.pk-customer {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--st-text);
  line-height: 1.25;
}
.pk-time {
  font-size: 12px;
  color: var(--st-muted);
  font-weight: 500;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  background: var(--st-bg-2);
  border-radius: 999px;
}
.pk-time.warn { color: #b45309; background: #fef3c7; }
.pk-time.urgent {
  color: #991b1b;
  background: #fee2e2;
  animation: stUrgentPulse 1.6s ease-in-out infinite;
}
.pk-time.scheduled { color: var(--st-prep); background: var(--st-prep-surface); }

.pk-phone {
  font-size: 13px;
  color: var(--st-muted);
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  font-weight: 500;
}
.pk-phone:hover { color: var(--st-text); }
.pk-phone .pk-ico { width: 13px; height: 13px; opacity: 0.7; }

.pk-items {
  margin: 8px 0 6px;
  padding: 0;
  list-style: none;
  background: var(--st-surface-2);
  border-radius: var(--st-radius-xs);
  border: 1px solid var(--st-border-soft);
}
.pk-item {
  padding: 8px 12px;
  border-top: 1px solid var(--st-border-soft);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: baseline;
}
.pk-item:first-child { border-top: 0; }
.pk-item-qty {
  font-weight: 700;
  color: #fff;
  background: var(--st-primary);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  min-width: 28px;
  text-align: center;
  align-self: start;
  margin-top: 2px;
}
.pk-item-name {
  font-weight: 600;
  color: var(--st-text);
  font-size: 14px;
  line-height: 1.35;
}
.pk-mods {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 4px 0 0;
}
.pk-mod {
  font-size: 11.5px;
  background: var(--st-surface);
  padding: 2px 8px;
  border-radius: 999px;
  color: var(--st-text-2);
  border: 1px solid var(--st-border);
  font-weight: 500;
}
.pk-item-note {
  grid-column: 2;
  font-size: 12px;
  color: #b45309;
  margin-top: 4px;
  font-style: italic;
  padding-left: 8px;
  border-left: 2px solid #fbbf24;
}

.pk-note {
  font-size: 13px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  padding: 8px 12px;
  border-radius: var(--st-radius-xs);
  margin: 8px 0;
  color: #78350f;
  font-weight: 500;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  line-height: 1.4;
}
.pk-note .pk-ico {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  margin-top: 2px;
  color: #b45309;
}

.pk-total {
  margin-top: 10px;
  font-size: 13px;
  color: var(--st-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0 0;
  border-top: 1px dashed var(--st-border);
}
.pk-total strong {
  color: var(--st-text);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.pk-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--st-border-soft);
}

/* ── Recientes ─────────────────────────────────────────────────── */
.pk-history {
  grid-column: 1 / -1;
  margin-top: 4px;
  background: var(--st-surface);
  border: 1px solid var(--st-border);
  border-radius: var(--st-radius);
  box-shadow: var(--st-shadow-sm);
  overflow: hidden;
}
.pk-history-head {
  padding: 12px 18px;
  font-weight: 700;
  border-bottom: 1px solid var(--st-border-soft);
  font-size: 13px;
  text-transform: uppercase;
  color: var(--st-text-2);
  letter-spacing: 0.08em;
  background: var(--st-surface-2);
  display: flex;
  align-items: center;
  gap: 10px;
}
.pk-history-body { padding: 4px 8px; }
.pk-history-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 14px;
  padding: 10px 12px;
  border-top: 1px solid var(--st-border-soft);
  font-size: 13px;
  align-items: center;
}
.pk-history-row:first-child { border-top: 0; }
.pk-history-status {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--st-bg-2);
  color: var(--st-muted);
}
.pk-history-status[data-status="delivered"] { background: var(--st-ready-surface); color: var(--st-success); }
.pk-history-status[data-status="rejected"],
.pk-history-status[data-status="cancelled_by_business"],
.pk-history-status[data-status="no_show"] { background: var(--st-danger-surface); color: var(--st-danger); }
.pk-history-status[data-status="cancelled_by_customer"],
.pk-history-status[data-status="expired"] { background: var(--st-bg-2); color: var(--st-muted); }

.pk-history-name { font-weight: 600; color: var(--st-text); }
.pk-history-time { color: var(--st-muted); font-size: 12px; }
.pk-history-total { color: var(--st-text); font-weight: 700; font-variant-numeric: tabular-nums; }

/* ── Modal genérico (prompt/confirm bonito) ────────────────────── */
.st-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  z-index: 100;
  padding: 20px;
  animation: stFadeIn 0.18s ease-out both;
}
.st-modal {
  background: var(--st-surface);
  border-radius: 18px;
  width: min(420px, 100%);
  box-shadow: var(--st-shadow-pop);
  overflow: hidden;
  animation: stPop 0.28s cubic-bezier(0.2, 0.9, 0.3, 1.25) both;
}
.st-modal-head {
  padding: 18px 22px 6px;
  font-size: 17px;
  font-weight: 700;
  color: var(--st-text);
  letter-spacing: -0.01em;
}
.st-modal-hint {
  padding: 0 22px;
  color: var(--st-muted);
  font-size: 13px;
  margin: 0 0 14px;
  line-height: 1.4;
}
.st-modal-body {
  padding: 0 22px 18px;
}
.st-modal-input {
  width: 100%;
  font-size: 16px;
  padding: 12px 14px;
  border: 2px solid var(--st-border);
  border-radius: var(--st-radius-xs);
  outline: none;
  font-family: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.st-modal-input:focus {
  border-color: var(--st-primary);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.15);
}
.st-modal-foot {
  padding: 12px 18px;
  background: var(--st-surface-2);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  border-top: 1px solid var(--st-border-soft);
}
.st-modal-error {
  color: var(--st-danger);
  font-size: 13px;
  min-height: 18px;
  margin-top: 6px;
  font-weight: 500;
}
.st-modal-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.st-modal-chip {
  background: var(--st-bg-2);
  border: 1px solid var(--st-border);
  color: var(--st-text);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 500;
  transition: background-color 0.15s, border-color 0.15s;
}
.st-modal-chip:hover { background: #fff; border-color: var(--st-primary); color: var(--st-primary-dark); }

.st-fatal { padding: 40px; text-align: center; color: var(--st-danger); }

/* ── Animaciones ───────────────────────────────────────────────── */
@keyframes stPop {
  from { opacity: 0; transform: scale(0.95) translateY(8px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes stFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes stCardIn {
  from { opacity: 0; transform: translateY(-10px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes stHighlight {
  0%   { box-shadow: var(--st-shadow-sm), 0 0 0 0 rgba(245, 158, 11, 0.7); }
  40%  { box-shadow: var(--st-shadow-md), 0 0 0 8px rgba(245, 158, 11, 0); }
  100% { box-shadow: var(--st-shadow-sm), 0 0 0 0 rgba(245, 158, 11, 0); }
}
@keyframes stPulse {
  0%   { transform: scale(1);   opacity: 0.55; }
  80%  { transform: scale(2.2); opacity: 0;    }
  100% { transform: scale(2.2); opacity: 0;    }
}
@keyframes stUrgentPulse {
  0%, 100% { opacity: 1;   }
  50%      { opacity: 0.55; }
}
@keyframes stWiggle {
  0%, 92%, 100% { transform: rotate(0deg);   }
  94%           { transform: rotate(-4deg);  }
  96%           { transform: rotate(4deg);   }
  98%           { transform: rotate(-2deg);  }
}

@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .st-kanban.pk-root { grid-template-columns: 1fr 1fr; }
  .pk-history { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .st-kanban.pk-root { grid-template-columns: 1fr; padding: 12px; gap: 12px; }
  .pk-col { min-height: auto; }
  .st-header { padding: 12px 14px; }
  .st-label { font-size: 15px; }
  .st-clock { display: none; }
}
