/* Don Nacho: base compartida. Los colores salen del logotipo. */
@font-face {
  font-family: "Alfa Slab One";
  src: url("/don-nacho/fuentes/AlfaSlabOne-Regular.woff2") format("woff2");
  font-display: swap;
}

:root {
  --granate: #5a1a10;
  --granate-hondo: #3a0f08;
  --crema: #fbf0c9;
  --filete: #f0cf8a;
  --verde: #3f8f46;
  --naranja: #f0932b;
  --rojo: #d2402c;

  --fondo: #fff9e8;
  --tarjeta: #ffffff;
  --tinta: #2b130d;
  --tenue: #7a5a4e;
  --linea: #ead9ae;
  --acento: var(--granate);
  --sobre-acento: var(--crema);

  --rotulo: "Alfa Slab One", Rockwell, "Rockwell Extra Bold", Georgia, serif;
  --texto: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --radio: 14px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--fondo);
  color: var(--tinta);
  font: 16px/1.45 var(--texto);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--rotulo); font-weight: 400; line-height: 1.15; margin: 0; letter-spacing: .01em; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }

/* Franja de sarape: verde, naranja y rojo separados por crema. */
.sarape {
  height: 8px;
  background: repeating-linear-gradient(90deg,
    var(--verde) 0 28px, var(--crema) 28px 34px,
    var(--naranja) 34px 62px, var(--crema) 62px 68px,
    var(--rojo) 68px 96px, var(--crema) 96px 102px);
}

.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 0 1.25rem;
  border: 2px solid transparent; border-radius: 999px;
  background: var(--acento); color: var(--sobre-acento);
  font-weight: 700; text-decoration: none; white-space: nowrap;
  transition: transform .08s ease, filter .15s ease;
}
.boton:active { transform: scale(.97); }
.boton:disabled { opacity: .5; cursor: not-allowed; }
.boton.secundario { background: transparent; color: var(--acento); border-color: currentColor; }
.boton.verde { background: var(--verde); color: #fff; }
.boton.rojo { background: var(--rojo); color: #fff; }
.boton.chico { min-height: 36px; padding: 0 .9rem; font-size: .9rem; }
.boton.ancho { width: 100%; }
:focus-visible { outline: 3px solid var(--naranja); outline-offset: 2px; }

.etiqueta {
  display: inline-block; padding: .15em .6em; border-radius: 999px;
  font-size: .75rem; font-weight: 700; letter-spacing: .02em;
  background: var(--linea); color: var(--tinta);
}
.etiqueta.por_confirmar { background: #f6d8d2; color: #7d1f12; }
.etiqueta.nuevo { background: #fde3c1; color: #7a4305; }
.etiqueta.preparando { background: #fbefb3; color: #6a5300; }
.etiqueta.listo { background: #cfe9d2; color: #1d5a24; }
.etiqueta.entregado { background: #ece6d6; color: #6b5d4c; }
.etiqueta.cancelado { background: #ece6d6; color: #8a7a68; text-decoration: line-through; }
.etiqueta.qr { background: var(--granate); color: var(--crema); }

.campo { display: grid; gap: .3rem; }
.campo > span { font-size: .85rem; font-weight: 600; color: var(--tenue); }
.campo input, .campo select, .campo textarea {
  width: 100%; min-height: 46px; padding: .55rem .8rem;
  border: 1.5px solid var(--linea); border-radius: 10px; background: var(--tarjeta);
}
.campo textarea { min-height: 80px; resize: vertical; }

.aviso {
  padding: .8rem 1rem; border-radius: var(--radio);
  background: #fde9c8; color: #6b3d05; border: 1.5px solid #f3c98a;
}
.aviso.error { background: #f9dcd6; color: #7d1f12; border-color: #e9a99d; }
.aviso.ok { background: #d8eedb; color: #1d5a24; border-color: #a9d3ae; }

/* Hoja que sube desde abajo (carrito, cobro, edición). */
.velo {
  position: fixed; inset: 0; z-index: 40; background: rgba(43, 19, 13, .55);
  display: flex; align-items: flex-end; justify-content: center;
}
.hoja {
  width: min(100%, 560px); max-height: 92dvh; overflow: auto;
  background: var(--fondo); color: var(--tinta);
  border-radius: 20px 20px 0 0; padding: 1.1rem 1.1rem calc(1.1rem + env(safe-area-inset-bottom));
  box-shadow: 0 -10px 40px rgba(0, 0, 0, .3);
}
.hoja > header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .9rem; }
.hoja > header h2 { font-size: 1.35rem; color: var(--granate); }
.cerrar {
  width: 40px; height: 40px; border-radius: 50%; border: 0; flex: none;
  background: var(--linea); color: var(--tinta); font-size: 1.3rem; line-height: 1;
}
@media (min-width: 700px) {
  .velo { align-items: center; }
  .hoja { border-radius: 20px; }
}

.contador { display: inline-flex; align-items: center; gap: .35rem; }
.contador button {
  width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--acento);
  background: transparent; color: var(--acento); font-size: 1.25rem; font-weight: 700; line-height: 1;
}
.contador button.mas { background: var(--acento); color: var(--sobre-acento); }
.contador output { min-width: 1.6em; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }

.brindis {
  position: fixed; left: 50%; bottom: calc(92px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  z-index: 60; max-width: min(92vw, 420px); padding: .7rem 1.1rem; border-radius: 999px;
  background: var(--tinta); color: #fff; font-weight: 600; text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .3);
}

