/* ============================================================
   ESCÁNER DE TICKETS
   ============================================================ */

.es-pasos {
  list-style: none;
  counter-reset: paso;
}
.es-pasos li {
  counter-increment: paso;
  position: relative;
  padding: 0.5rem 0 0.5rem 2rem;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--muted-2);
  border-bottom: 0.5px solid var(--line-sutil);
}
.es-pasos li:last-child { border-bottom: none; }
.es-pasos li::before {
  content: counter(paso);
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  background: var(--black);
  color: var(--white);
  font-size: 0.6rem;
  font-weight: 700;
}
.es-pasos li b { color: var(--black); font-weight: 700; }
.es-pasos code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
  color: var(--black);
  word-break: break-all;
}

/* ---------- mientras lee ---------- */

.es-cargando {
  padding: 4rem var(--pad-x);
  text-align: center;
}
.es-cargando p {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 1.4rem;
  line-height: 1.6;
}

.es-barra {
  height: 3px;
  background: var(--line-sutil);
  overflow: hidden;
}
.es-barra i {
  display: block;
  height: 100%;
  width: 35%;
  background: var(--accent);
  animation: esperando 1.3s var(--curva) infinite;
}
@keyframes esperando {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(340%); }
}

/* ---------- revisión ---------- */

.es-linea {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0;
  border-bottom: 0.5px solid var(--line-sutil);
}
.es-linea[data-suelto="true"] {
  border-left: 2px solid var(--accent);
  padding-left: 0.6rem;
}
.es-linea .res-icono { width: 20px; height: 20px; font-size: 17px; }

.es-n {
  flex: 1;
  min-width: 0;
  font-size: 0.88rem;
  font-weight: 300;
}
.es-n em {
  display: block;
  font-style: normal;
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-top: 2px;
}
.es-linea b { font-size: 0.9rem; font-weight: 700; letter-spacing: -0.02em; }

/* ---------- la foto dentro del ticket ---------- */

.tk-foto {
  margin-top: 1.4rem;
  padding-top: 1.2rem;
  border-top: 0.5px dashed rgba(10,10,10,0.22);
}
.tk-foto-label {
  font-size: 0.55rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.7rem;
}
.tk-foto img {
  width: 100%;
  height: auto;
  display: block;
  border: 0.5px solid var(--line);
}

/* ---------- espacio en ajustes ---------- */

.db-panel { margin-top: 0.9rem; }
.db-barra {
  height: 3px;
  background: var(--line-sutil);
  margin: 0.7rem 0 0.5rem;
  overflow: hidden;
}
.db-barra i {
  display: block;
  height: 100%;
  background: var(--accent);
  transition: width 0.5s var(--curva);
}
