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;
}

.logo {
  width: 2.25rem;
  height: 2.75rem;
  flex-shrink: 0;
}

.pizarra {
  position: relative;
  padding: 1rem;
  border: 6px solid #6b4a2f;
  border-radius: 10px;
  background:
    radial-gradient(circle at 20% 15%, rgb(255 255 255 / 0.05), transparent 45%),
    radial-gradient(circle at 80% 85%, rgb(255 255 255 / 0.04), transparent 40%),
    #24302b;
  color: #f5efe2;
  box-shadow: inset 0 0 24px rgb(0 0 0 / 0.35), 0 2px 6px rgb(42 33 27 / 0.2);
}

.pizarra-titulo {
  font-family: Caveat, cursive;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.1;
}

.pizarra-categoria {
  font-family: Caveat, cursive;
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffc9a8;
}

.pizarra-precio {
  display: flex;
  gap: 0.5rem;
  flex: 1;
  min-width: 0;
}

.pizarra-precio span:first-child {
  display: flex;
  flex: 1;
  align-items: baseline;
  min-width: 0;
}

.pizarra-precio span:first-child::after {
  content: '';
  flex: 1;
  min-width: 0.75rem;
  margin-left: 0.4rem;
  border-bottom: 2px dotted rgb(245 239 226 / 0.35);
}

.pizarra button {
  border-color: rgb(245 239 226 / 0.55);
  color: #f5efe2;
}

.pizarra button:hover {
  background: rgb(245 239 226 / 0.15);
}

.agotado {
  color: #b9b0a0;
}

.riel {
  position: relative;
  padding: 0.75rem;
  padding-top: 1.1rem;
  border-radius: 0.75rem;
  background: #f0e7d6;
}

.riel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 7px;
  border-radius: 0.75rem 0.75rem 0 0;
  background: var(--color-riel);
}

.comanda-tarjeta {
  position: relative;
  margin-bottom: 1.1rem;
  padding: 0.75rem;
  background: #fffdf7;
  border-top: 3px solid var(--color-riel);
  box-shadow: 0 2px 4px rgb(42 33 27 / 0.12);
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
}

.comanda-tarjeta::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;
}

.comanda-tarjeta button,
.comanda-tarjeta a,
.comanda-tarjeta input {
  font-family: 'DM Sans', system-ui, sans-serif;
}

.dato-pico {
  animation: aparecer 0.4s ease-out both;
}

@keyframes aparecer {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

.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,
  .dato-pico,
  .pedido-nuevo {
    animation: none;
  }
}
