/* ════════════════════════════════════════════════════════════════════
   ENELDO · APP DE CARGA
   Estilos: dark mode + dorado · tipografía Inter · mobile first
   ════════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:wght@400;500;600;700;800&family=Fraunces:ital@1&display=swap');

:root {
  --bg:           #0b0d0c;
  --bg-elev:      #14171a;
  --bg-card:      #1a1e22;
  --bg-input:     #0f1214;
  --border:       #2a2f35;
  --border-soft:  #1f2428;
  --text:         #e6e4dd;
  --text-dim:     #8a8f96;
  --text-muted:   #5a6068;
  --gold:         #c8a84a;
  --gold-soft:    rgba(200,168,74,.12);
  --gold-glow:    rgba(200,168,74,.3);
  --green:        #2e5c35;
  --green-bright: #5d9966;
  --red:          #d04848;
  --red-soft:     rgba(208,72,72,.15);
  --orange:       #d68a3a;
  --orange-soft:  rgba(214,138,58,.15);
  --blue:         #4a8ab8;
  --blue-soft:    rgba(74,138,184,.12);
  --radius:       10px;
  --radius-lg:    16px;
  --radius-pill:  999px;
  --font:         'Inter Tight', system-ui, -apple-system, sans-serif;
  --font-display: 'Fraunces', serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
*::before, *::after { box-sizing: border-box; }

html, body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

input, textarea, select {
  font-family: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

/* ─────────────────────────────────────────────────────────
   LAYOUT BASE — Mobile first, pero adaptable
───────────────────────────────────────────────────────── */
.app {
  min-height: 100vh;
  max-width: 480px;
  margin: 0 auto;
  background: var(--bg);
  position: relative;
}

.screen {
  display: none;
  padding: 12px 20px 80px;
  animation: fadeIn .3s ease;
}
.screen.active { display: block; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─────────────────────────────────────────────────────────
   PANTALLA SPLASH (la primera que se ve al cargar)
───────────────────────────────────────────────────────── */
.splash {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  text-align: center;
}
.splash-logo {
  width: 96px;
  height: 96px;
  background: var(--green);
  color: var(--gold);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 64px;
  font-weight: 700;
  margin-bottom: 24px;
  box-shadow: 0 16px 40px rgba(46,92,53,.4);
}
.splash-title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 38px;
  font-weight: 400;
  color: var(--gold);
  letter-spacing: -.02em;
  margin-bottom: 4px;
}
.splash-sub {
  font-size: 13px;
  color: var(--text-dim);
  letter-spacing: .15em;
  text-transform: uppercase;
  font-weight: 500;
}
.splash-loader {
  margin-top: 48px;
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ─────────────────────────────────────────────────────────
   BIENVENIDA · ONBOARDING SLIDES
───────────────────────────────────────────────────────── */
.welcome {
  min-height: 100vh;
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
}
.welcome-hero {
  margin-top: 16px;
  text-align: center;
}
.welcome-icon {
  margin-bottom: 16px;
  display: inline-block;
}
.welcome-logo-img {
  width: 88px;
  height: auto;
  display: block;
  margin: 0 auto;
}
.welcome-title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 32px;
  color: var(--gold);
  margin-bottom: 8px;
  line-height: 1.1;
}
.welcome-sub {
  color: var(--text-dim);
  font-size: 15px;
  margin-bottom: 32px;
}
.welcome-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.welcome-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 32px;
}
.welcome-feature {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.feature-icon {
  font-size: 28px;
  flex-shrink: 0;
  line-height: 1;
}
.feature-text { flex: 1; }
.feature-name {
  font-weight: 600;
  margin-bottom: 4px;
  font-size: 14px;
}
.feature-note {
  margin-top: 8px;
  padding: 8px 10px;
  background: var(--blue-soft);
  border-left: 2px solid var(--blue);
  border-radius: 4px;
  font-size: 11px;
  color: #a5cef0;
  line-height: 1.45;
}

/* ─────────────────────────────────────────────────────────
   FORMULARIOS (registro y login)
───────────────────────────────────────────────────────── */
.form-screen {
  padding: 32px 20px 80px;
}
.form-header {
  margin-bottom: 28px;
}
.form-title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 28px;
  color: var(--gold);
  margin-bottom: 6px;
  line-height: 1.1;
}
.form-sub {
  color: var(--text-dim);
  font-size: 13px;
}
.form-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-dim);
  font-size: 13px;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
  margin-left: -12px;
  transition: all .15s;
}
.form-back:hover, .form-back:active {
  color: var(--gold);
  background: var(--gold-soft);
}

.field { margin-bottom: 18px; }
.field-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 8px;
}
.field-input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 16px;  /* 16px evita zoom en iOS al focus */
  color: var(--text);
  transition: border-color .15s, background .15s;
}
.field-input::placeholder {
  color: var(--text-muted);
}
.field-input:focus {
  border-color: var(--gold);
  background: var(--bg-elev);
}
.field-help {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
}
.field-error {
  font-size: 12px;
  color: #f0a5a5;
  margin-top: 6px;
  display: none;
}
.field.has-error .field-input {
  border-color: var(--red);
}
.field.has-error .field-error {
  display: block;
}

/* Campo password con ojito */
.field-password {
  position: relative;
}
.field-password .field-input {
  padding-right: 48px;
}
.password-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  border-radius: var(--radius);
  transition: color .15s;
}
.password-toggle:hover, .password-toggle:active {
  color: var(--gold);
}
.password-toggle svg {
  width: 20px;
  height: 20px;
}

/* Selector de local (botones) */
.local-picker {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.local-option {
  padding: 14px 8px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  cursor: pointer;
  transition: all .15s;
  text-align: center;
}
.local-option:hover {
  border-color: var(--border-soft);
  color: var(--text);
}
.local-option.selected {
  background: var(--gold-soft);
  border-color: var(--gold);
  color: var(--gold);
}

/* ─────────────────────────────────────────────────────────
   BOTONES
───────────────────────────────────────────────────────── */
.btn {
  width: 100%;
  padding: 16px 20px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all .15s;
  -webkit-tap-highlight-color: transparent;
}
.btn:disabled {
  opacity: .5;
  cursor: not-allowed;
}
.btn-primary {
  background: var(--gold);
  color: var(--bg);
  box-shadow: 0 4px 14px var(--gold-glow);
}
.btn-primary:hover:not(:disabled),
.btn-primary:active:not(:disabled) {
  background: #dbb955;
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--text-dim);
  border: 1px solid var(--border);
}
.btn-ghost:hover, .btn-ghost:active {
  color: var(--text);
  background: var(--bg-elev);
}
.btn-text {
  background: transparent;
  color: var(--gold);
  padding: 10px;
  font-weight: 500;
}
.btn-text:hover, .btn-text:active {
  background: var(--gold-soft);
}

.btn + .btn {
  margin-top: 10px;
}

/* ─────────────────────────────────────────────────────────
   TOAST (notificaciones flotantes)
───────────────────────────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 440px;
  margin: 0 auto;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.toast {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 13px;
  box-shadow: 0 12px 32px rgba(0,0,0,.4);
  animation: toastIn .3s ease;
  pointer-events: auto;
}
.toast.success { border-left-color: var(--green-bright); }
.toast.error   { border-left-color: var(--red); }
.toast.info    { border-left-color: var(--blue); }
@keyframes toastIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.toast.leaving {
  animation: toastOut .25s ease forwards;
}
@keyframes toastOut {
  to { opacity: 0; transform: translateY(20px); }
}

/* ─────────────────────────────────────────────────────────
   HOME LOGUEADO — Vista funcional del empleado
───────────────────────────────────────────────────────── */
.home-screen {
  padding: 10px 20px 80px;
}
.home-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
}
.home-greeting {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  color: var(--gold);
  line-height: 1.1;
}
.home-local {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-top: 4px;
  font-weight: 500;
}
.home-user-chip {
  display: none; /* reemplazado por .home-user-area */
}
.home-user-chip:hover, .home-user-chip:active {
  background: unset;
}
.home-avatar {
  width: 28px;
  height: 28px;
  background: var(--gold);
  color: var(--bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
}

/* Botones grandes de acción (Cargar / Soporte) */
.action-card {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 18px 18px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 12px;
  text-align: left;
  transition: all .15s;
}
.action-card:hover, .action-card:active {
  border-color: var(--gold);
  background: var(--bg-card);
  transform: translateY(-1px);
}
.action-card.primary {
  background: linear-gradient(135deg, var(--gold), #b89540);
  color: var(--bg);
  border-color: var(--gold);
  box-shadow: 0 8px 24px var(--gold-glow);
}
.action-card.primary:hover, .action-card.primary:active {
  background: linear-gradient(135deg, #dbb955, #c8a84a);
  border-color: #dbb955;
}
.action-icon {
  font-size: 32px;
  line-height: 1;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.action-card.primary .action-icon svg { color: var(--bg); }
.action-card:not(.primary) .action-icon svg { color: var(--green-bright); }
.action-text {
  flex: 1;
}
.action-title {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 2px;
}
.action-sub {
  font-size: 12px;
  opacity: .75;
}
.action-card.primary .action-sub { color: rgba(11,13,12,.7); }
.action-card:not(.primary) .action-sub { color: var(--text-dim); }
.action-arrow {
  font-size: 20px;
  opacity: .5;
  margin-left: 4px;
  flex-shrink: 0;
}

/* Sección "Tus productos" */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 28px;
  margin-bottom: 12px;
  padding: 0 4px;
}
.section-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.btn-refresh {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all .2s;
}
.btn-refresh:hover, .btn-refresh:active {
  color: var(--gold);
  background: var(--gold-soft);
}
.btn-refresh.spinning svg {
  animation: spin .8s linear;
}

/* Lista de productos del empleado */
.products-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.products-loading {
  text-align: center;
  padding: 24px;
  color: var(--text-muted);
  font-size: 13px;
}

.product-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  animation: fadeIn .3s ease;
}
.product-icon {
  width: 36px;
  height: 36px;
  background: var(--bg-card);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.product-info {
  flex: 1;
  min-width: 0;
}
.product-name {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}
.product-meta {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.product-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .05em;
}
.product-status.pendiente {
  background: var(--orange-soft);
  color: #f0c489;
}
.product-status.publicado {
  background: rgba(93,153,102,.15);
  color: #7fc88a;
}
.product-status .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* Estado vacío amigable */
.products-empty {
  text-align: center;
  padding: 40px 20px;
  background: var(--bg-elev);
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
}
.products-empty-icon {
  font-size: 48px;
  margin-bottom: 12px;
  opacity: .8;
}
.products-empty-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.products-empty-text {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.5;
}
/* ─────────────────────────────────────────────────────────
   SCROLLBAR (que se vea ordenada en mobile y desktop)
───────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }
/* ═══════════════════════════════════════════════════════
   WIZARD DE CARGA DE PRODUCTO
═══════════════════════════════════════════════════════ */
.wizard-screen {
  padding: 0;
  min-height: 100vh;
}

/* Header con back + progress bar */
.wizard-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px 12px;
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--border-soft);
}
.wizard-back {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .15s;
  flex-shrink: 0;
}
.wizard-back:hover, .wizard-back:active {
  background: var(--bg-card);
  border-color: var(--border-soft);
}
.wizard-progress {
  flex: 1;
  height: 4px;
  background: var(--bg-elev);
  border-radius: 2px;
  overflow: hidden;
}
.wizard-progress-bar {
  height: 100%;
  width: 25%; /* Paso 1 de 4 = 25% */
  background: var(--gold);
  transition: width .35s cubic-bezier(.16, 1, .3, 1);
  border-radius: 2px;
}
.wizard-step-indicator {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}
.wizard-step-indicator .dim {
  color: var(--text-muted);
  margin-left: 1px;
}

/* Cuerpo del wizard */
.wizard-body {
  padding: 24px 20px 80px;
}

.wizard-step {
  display: none;
  animation: stepFadeIn .35s ease;
}
.wizard-step.active {
  display: block;
}
@keyframes stepFadeIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

.wizard-step-header {
  margin-bottom: 24px;
}
.wizard-step-title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 28px;
  color: var(--gold);
  line-height: 1.1;
  margin-bottom: 6px;
}
.wizard-step-sub {
  font-size: 13px;
  color: var(--text-dim);
}

/* Selector de categoría con buscador */
.category-search {
  position: relative;
}
.category-list {
  margin-top: 8px;
  max-height: 280px;
  overflow-y: auto;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
}
.category-loading {
  padding: 16px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}
.category-item {
  padding: 12px 14px;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
  border-bottom: 1px solid var(--border-soft);
  transition: all .15s;
  display: flex;
  align-items: center;
  gap: 10px;
}
.category-item:last-child { border-bottom: none; }
.category-item:hover {
  background: var(--bg-elev);
}
.category-item.selected {
  background: var(--gold-soft);
  color: var(--gold);
  font-weight: 600;
}
.category-item.selected::before {
  content: '✓';
  margin-right: 4px;
}
.category-empty {
  padding: 20px 16px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

.suggest-cat-btn {
  width: 100%;
  margin-top: 10px;
  padding: 10px;
  background: transparent;
  color: var(--gold);
  font-size: 12px;
  font-weight: 500;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all .15s;
}
.suggest-cat-btn:hover, .suggest-cat-btn:active {
  background: var(--gold-soft);
  border-color: var(--gold);
}

/* Textarea */
.field-textarea {
  resize: vertical;
  min-height: 80px;
  padding-top: 12px;
  padding-bottom: 12px;
  font-family: inherit;
  line-height: 1.5;
}

/* Modal genérico (para sugerir categoría y otros) */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .75);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
  animation: fadeIn .25s ease;
}
.modal-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  max-width: 440px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  animation: modalIn .3s cubic-bezier(.16, 1, .3, 1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .6);
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(.95) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  border-bottom: 1px solid var(--border-soft);
}
.modal-title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 20px;
  color: var(--gold);
}
.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .05);
  color: var(--text-dim);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: all .15s;
}
.modal-close:hover {
  background: rgba(255, 255, 255, .1);
  color: var(--text);
}
.modal-body {
  padding: 20px 22px;
  overflow-y: auto;
}
.modal-note {
  background: rgba(74, 138, 184, .12);
  border-left: 2px solid var(--blue);
  border-radius: 4px;
  padding: 10px 12px;
  font-size: 11px;
  color: #a5cef0;
  line-height: 1.5;
  margin-top: 12px;
}
.modal-footer {
  display: flex;
  gap: 10px;
  padding: 16px 22px 20px;
  border-top: 1px solid var(--border-soft);
}
.modal-footer .btn {
  margin-top: 0;
  flex: 1;
}
/* ═══════════════════════════════════════════════════════
   PANTALLA INSTRUCTIVO
═══════════════════════════════════════════════════════ */
.instructions-screen {
  padding: 32px 20px 80px;
}
.instructions-header {
  text-align: center;
  margin-bottom: 28px;
}
.instructions-icon {
  font-size: 48px;
  margin-bottom: 12px;
}
.instructions-title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 28px;
  color: var(--gold);
  line-height: 1.1;
  margin-bottom: 6px;
}
.instructions-sub {
  font-size: 13px;
  color: var(--text-dim);
}
.instructions-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.instructions-step {
  display: flex;
  gap: 14px;
  padding: 14px 16px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.instructions-step.highlight {
  background: var(--gold-soft);
  border-color: var(--gold);
  border-left-width: 3px;
}
.step-number {
  font-size: 22px;
  font-weight: 700;
  color: var(--gold);
  flex-shrink: 0;
  line-height: 1;
}
.step-content {
  flex: 1;
}
.step-title {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 4px;
}
.step-desc {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.5;
}
.step-note {
  margin-top: 8px;
  padding: 8px 10px;
  background: var(--orange-soft);
  border-left: 2px solid var(--orange);
  border-radius: 4px;
  font-size: 11px;
  color: #f0c489;
  line-height: 1.4;
}
.step-note strong {
  font-weight: 600;
}
.instructions-tip {
  margin: 8px 0 4px;
  padding: 12px 14px;
  background: var(--blue-soft);
  border-left: 2px solid var(--blue);
  border-radius: 6px;
  font-size: 12px;
  color: #a5cef0;
  line-height: 1.5;
}
.instructions-tip strong {
  font-weight: 600;
  color: #c8def0;
}

/* ═══════════════════════════════════════════════════════
   TARJETA DESTACADA DEL CÓDIGO AYRESPOS
═══════════════════════════════════════════════════════ */
.code-card {
  background: linear-gradient(135deg, var(--gold-soft), rgba(200, 168, 74, .05));
  border: 1px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 18px 16px;
  margin-bottom: 22px;
  box-shadow: 0 4px 16px rgba(200, 168, 74, .15);
}
.code-card-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: .05em;
  margin-bottom: 8px;
}
.code-card-warning {
  background: rgba(214, 138, 58, .15);
  border-left: 2px solid var(--orange);
  border-radius: 4px;
  padding: 8px 10px;
  font-size: 11px;
  color: #f0c489;
  line-height: 1.45;
  margin-bottom: 14px;
}
.code-input {
  font-size: 18px !important;
  font-weight: 600;
  letter-spacing: .05em;
  text-align: center;
  font-family: 'JetBrains Mono', 'Consolas', monospace;
  background: var(--bg) !important;
  border-color: var(--gold) !important;
}
.code-input:focus {
  background: var(--bg-elev) !important;
  box-shadow: 0 0 0 3px rgba(200, 168, 74, .15);
}
.code-status {
  margin-top: 10px;
  font-size: 12px;
  min-height: 18px;
  text-align: center;
  font-weight: 500;
}
.code-status.checking {
  color: var(--text-dim);
}
.code-status.exists {
  color: var(--orange);
  font-weight: 600;
}
.code-status.available {
  color: var(--green-bright);
}

/* ═══════════════════════════════════════════════════════
   BOTÓN AYUDA EN HEADER DEL WIZARD
═══════════════════════════════════════════════════════ */
.wizard-help {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  color: var(--text-dim);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
  flex-shrink: 0;
}
.wizard-help:hover,
.wizard-help:active {
  color: var(--gold);
  border-color: var(--gold);
  background: var(--gold-soft);
}

/* ═══════════════════════════════════════════════════════
   CHECKBOX PARA GRANEL
═══════════════════════════════════════════════════════ */
.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 18px;
}
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  cursor: pointer;
}
.checkbox-label input {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

/* ═══════════════════════════════════════════════════════
   ATRIBUTOS (CHIPS)
═══════════════════════════════════════════════════════ */
.attr-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}
.chip {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
  cursor: pointer;
  transition: all .15s;
}
.chip.selected {
  background: var(--gold);
  color: var(--bg-deep);
  border-color: var(--gold);
}
/* ─────────────────────────────────────────────────────────
   PASO 2 — Peso (chips unidad) + Precio (centavos)
───────────────────────────────────────────────────────── */
.peso-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.peso-num {
  width: 100%;
}
.unit-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.unit-chip {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
  cursor: pointer;
  transition: all .15s;
}
.unit-chip.selected {
  background: var(--gold);
  color: var(--bg-deep);
  border-color: var(--gold);
}
.centavos-toggle {
  margin-top: 8px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-dim);
  cursor: pointer;
  transition: all .15s;
}
.centavos-toggle.active {
  background: var(--gold);
  color: var(--bg-deep);
  border-color: var(--gold);
}

/* ── Panel centavos ── */
.precio-display {
  background: var(--bg-input);
  color: var(--gold);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 1px;
  text-align: right;
  pointer-events: none;
}
.centavos-panel {
  margin-top: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
}
.centavos-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}
.centavos-parte {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.centavos-label {
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: .5px;
}
.centavos-input {
  text-align: center;
  font-size: 18px;
  font-weight: 600;
}
.centavos-sep {
  font-size: 28px;
  font-weight: 700;
  color: var(--gold);
  padding-bottom: 6px;
}

/* ── Preview total en modo centavos ── */
.precio-display-preview {
  font-size: 26px;
  font-weight: 700;
  color: var(--gold);
  text-align: center;
  letter-spacing: 1px;
  padding: 8px 0 12px;
}

/* ── Chip usuario rediseñado (viejo, reemplazado por home-user-area) ── */
.home-user-chip {
  display: none;
}
.chip-logout { display: none; }
.chip-divider { display: none; }
.chip-profile { display: none; }
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  transition: background .15s, color .15s;
}
.chip-logout:hover, .chip-logout:active {
  background: rgba(200,60,60,.15);
  color: #e06060;
}
.chip-divider {
  width: 1px;
  height: 20px;
  background: var(--border);
  flex-shrink: 0;
}
.chip-profile {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 10px;
  background: transparent;
  border: none;
  color: var(--text);
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: background .15s;
}
.chip-profile:hover, .chip-profile:active {
  background: rgba(200,168,74,.08);
}

/* ── Pantalla selección de local ── */
.local-select-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
}
.local-select-inner {
  width: 100%;
  max-width: 360px;
  text-align: center;
}
.local-select-icon {
  font-size: 48px;
  margin-bottom: 20px;
}
.local-select-title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 26px;
  color: var(--gold);
  margin-bottom: 8px;
  line-height: 1.2;
}
.local-select-sub {
  color: var(--text-dim);
  font-size: 15px;
  margin-bottom: 32px;
}
.local-select-btns {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.local-select-btn {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 20px 24px;
  text-align: left;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  width: 100%;
}
.local-select-btn:hover, .local-select-btn:active {
  border-color: var(--gold);
  background: rgba(200,168,74,.08);
}
.local-select-nombre {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}
.local-select-dir {
  font-size: 13px;
  color: var(--text-dim);
}

/* ── Chip usuario separado en 2 burbujas ── */
.home-user-area {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.chip-logout-solo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 99px;
  color: var(--text-dim);
  cursor: pointer;
  transition: background .15s, color .15s;
  flex-shrink: 0;
}
.chip-logout-solo:hover, .chip-logout-solo:active {
  background: rgba(200,60,60,.15);
  color: #e06060;
  border-color: rgba(200,60,60,.3);
}
.chip-profile-solo {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 6px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 99px;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.chip-profile-solo:hover, .chip-profile-solo:active {
  background: rgba(200,168,74,.08);
  border-color: rgba(200,168,74,.3);
}
.chip-profile-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}
.chip-username {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
}
.chip-micuenta {
  font-size: 10px;
  color: var(--gold);
  line-height: 1.2;
  font-weight: 500;
}
/* ── Banner modo edición en wizard ── */
.edit-mode-banner {
  background: rgba(200,168,74,.1);
  border: 1px solid rgba(200,168,74,.35);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 18px;
}
.edit-mode-top {
  font-size: 12px;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 4px;
}
.edit-mode-nombre {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}
.edit-mode-historia {
  font-size: 12px;
  color: var(--text-dim);
}

/* ── Tarjetas con código y botón editar ── */
.product-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.product-codigo {
  font-size: 11px;
  font-weight: 600;
  color: var(--gold);
  background: rgba(200,168,74,.1);
  border: 1px solid rgba(200,168,74,.2);
  border-radius: 6px;
  padding: 2px 7px;
  letter-spacing: .3px;
  flex-shrink: 0;
}
.product-edit-btn {
  margin-left: auto;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-dim);
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.product-edit-btn:hover, .product-edit-btn:active {
  background: rgba(200,168,74,.12);
  color: var(--gold);
  border-color: rgba(200,168,74,.3);
}

/* ── Pantalla confirmación código existente ── */
.confirm-codigo-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
}
.confirm-codigo-inner {
  width: 100%;
  max-width: 360px;
  text-align: center;
}
.confirm-codigo-icon {
  font-size: 44px;
  margin-bottom: 16px;
}
.confirm-codigo-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 20px;
}
.confirm-codigo-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 20px;
  text-align: left;
  margin-bottom: 20px;
}
.confirm-prod-nombre {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}
.confirm-prod-marca {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 10px;
}
.confirm-prod-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 6px;
}
.confirm-prod-estado {
  font-size: 13px;
  color: var(--text-dim);
}
.confirm-codigo-sub {
  font-size: 15px;
  color: var(--text-dim);
  margin-bottom: 20px;
}
.confirm-codigo-btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ── Módulo de fotos (paso 5) ── */
.fotos-aviso {
  background: rgba(88,129,87,.12);
  border: 1px solid rgba(88,129,87,.3);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 12.5px;
  color: var(--text-dim);
  margin-bottom: 18px;
  line-height: 1.4;
}
.fotos-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}
.foto-slot {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
}
.foto-input {
  position: absolute;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}
.foto-label {
  display: block;
  cursor: pointer;
}
.foto-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: var(--bg-card);
  border: 2px dashed var(--border);
  border-radius: 14px;
  padding: 28px 16px;
  transition: border-color .2s, background .2s;
}
.foto-label:active .foto-placeholder {
  border-color: var(--gold);
  background: rgba(200,168,74,.06);
}
.foto-icon {
  font-size: 32px;
}
.foto-pos {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.foto-hint {
  font-size: 12px;
  color: var(--text-dim);
}
.foto-preview {
  width: 100%;
  max-height: 240px;
  object-fit: cover;
  border-radius: 14px;
  display: block;
}
.foto-slot.has-foto {
  border: 2px solid rgba(88,129,87,.5);
}
.foto-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(0,0,0,.6);
  border: none;
  color: #fff;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}
.fotos-progress {
  margin-bottom: 16px;
}
.fotos-progress-bar {
  height: 6px;
  width: 0%;
  background: var(--gold);
  border-radius: 99px;
  transition: width .4s ease;
}
.fotos-progress-text {
  font-size: 13px;
  color: var(--text-dim);
  text-align: center;
  margin-top: 8px;
}

/* ────────────────────────────────────────────────────────────
   BANNER DE MENSAJES DE SOPORTE (home empleado)
   ──────────────────────────────────────────────────────────── */
.messages-banner {
  background: linear-gradient(180deg, rgba(200,168,74,.16), rgba(200,168,74,.06));
  border: 1px solid rgba(200,168,74,.45);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 14px;
  animation: msgIn .25s ease;
}
@keyframes msgIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.messages-banner-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.messages-banner-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gold);
  flex: 1;
}
.messages-banner-icon {
  font-size: 18px;
}
.messages-banner-toggle {
  background: var(--gold);
  color: #0b0d0c;
  border: none;
  border-radius: 99px;
  padding: 6px 16px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
}
.messages-banner-toggle:active { transform: scale(.97); }
.messages-list {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.message-item {
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(200,168,74,.2);
  border-radius: 12px;
  padding: 12px 14px;
}
.message-item-cuerpo {
  font-size: 13.5px;
  color: var(--text);
  line-height: 1.5;
  white-space: pre-wrap;
  margin-bottom: 8px;
}
.message-item-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.message-item-fecha {
  font-size: 11px;
  color: var(--text-dim);
}
.message-item-read {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 99px;
  cursor: pointer;
}
.message-item-read:active { background: var(--gold); color: #0b0d0c; }
.message-item.fading {
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .3s, transform .3s;
}