body {
  min-height: 100vh;
}

.ticket {
  position: relative;
  margin-bottom: 10px;
  padding: 1rem;
  background: #fffdf7;
  border-radius: 6px 6px 0 0;
  box-shadow: 0 1px 2px rgb(42 33 27 / 0.08);
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 0.875rem;
}

.ticket::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -9px;
  height: 10px;
  background:
    linear-gradient(-45deg, transparent 7px, #fffdf7 0) 0 0 / 14px 14px,
    linear-gradient(45deg, transparent 7px, #fffdf7 0) 0 0 / 14px 14px;
  background-repeat: repeat-x;
}

.ticket button,
.ticket input {
  font-family: 'DM Sans', system-ui, sans-serif;
}

.escribiendo span {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 3px;
  border-radius: 50%;
  background: #a89a84;
  animation: salto 1s infinite;
}

.escribiendo span:nth-child(2) {
  animation-delay: 0.15s;
}

.escribiendo span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes salto {
  50% {
    transform: translateY(-4px);
  }
}

.grabando {
  background: #b8321f !important;
  color: #fff !important;
  animation: pulso 1.2s infinite;
}

@keyframes pulso {
  50% {
    box-shadow: 0 0 0 6px rgb(184 50 31 / 0.25);
  }
}

.pedido-nuevo {
  animation: destello 1.5s ease-out;
}

@keyframes destello {
  from {
    box-shadow: 0 0 0 4px #b8321f;
  }
}

.paso {
  flex: 1;
  position: relative;
  min-width: 0;
  padding: 1.75rem 2px 0;
  font-size: 0.6875rem;
  color: #5f5447;
}

.paso::before {
  content: '';
  position: absolute;
  top: 0.25rem;
  left: 50%;
  width: 1rem;
  height: 1rem;
  margin-left: -0.5rem;
  border-radius: 50%;
  background: #dccfb8;
  z-index: 1;
}

.paso::after {
  content: '';
  position: absolute;
  top: 0.65rem;
  left: -50%;
  width: 100%;
  height: 3px;
  background: #dccfb8;
}

.paso:first-child::after {
  display: none;
}

.paso-hecho {
  color: #2a211b;
  font-weight: 600;
}

.paso-hecho::before,
.paso-hecho::after {
  background: #b8321f;
}

@media (prefers-reduced-motion: reduce) {
  .escribiendo span,
  .grabando,
  .pedido-nuevo {
    animation: none;
  }
}
