/* RestoPedidos — mundo "comanda": el talonario con papel carbón.
   Original blanco, copias celeste (cocina), rosada (caja) y amarilla (reparto),
   tinta de bolígrafo azul en vez de negro, folios en rojo de numerador. */

@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Bolígrafo";
  src: url("/fonts/nanum-pen-latin.woff2") format("woff2");
  font-display: swap;
}

:root {
  --papel: #FFFFFF;
  --celeste: #D7E9F7;
  --celeste-2: #BFD9F0;
  --rosa: #F7D5DE;
  --rosa-2: #EFBDCB;
  --amarillo: #FBEFB4;
  --amarillo-2: #F3E08A;
  --tinta: #1B3A9E;
  --tinta-2: #2F4A9A;
  --tinta-3: #4A5D9C;
  --tinta-suave: #E7EDFA;
  --folio: #C8102E;
  --renglon: #C4D5EE;
  --carbon: #1A2342;
  --ok: #1E7A3C;
  --ok-suave: #E1F2E6;
  --aviso: #8A5A00;
  --aviso-suave: #FBF0D2;
  --error: #B3261E;
  --error-suave: #FBE3E1;

  --imprenta: "Archivo", "Arial Narrow", sans-serif;
  --mano: "Bolígrafo", "Segoe Print", cursive;

  --r-1: 4px;
  --r-2: 10px;
  --r-3: 16px;
  --sombra-hoja: 0 1px 1px rgba(27, 58, 158, .06), 0 12px 28px -14px rgba(27, 58, 158, .35);
  --sombra-boton: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 8px 18px -10px rgba(27, 58, 158, .8);
  --salida: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--imprenta);
  font-size: 17px;
  line-height: 1.55;
  color: var(--tinta);
  background: var(--papel);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Lo que el navegador dibuja también es parte del diseño */
::selection { background: var(--amarillo-2); color: var(--tinta); }
:focus-visible { outline: 3px solid var(--folio); outline-offset: 3px; border-radius: 4px; }
a { color: var(--tinta); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--folio); }
input, textarea, select, button { font: inherit; color: inherit; }
input, textarea { caret-color: var(--folio); }
html { scrollbar-color: var(--celeste-2) transparent; }

/* Tipografía de imprenta de talonario */
.titular {
  font-stretch: 82%;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 0.98;
  text-wrap: balance;
  margin: 0;
}
.subtitulo { font-stretch: 88%; font-weight: 750; letter-spacing: -0.015em; line-height: 1.1; text-wrap: balance; margin: 0; }
.ancha { font-stretch: 118%; }
.folio { color: var(--folio); font-stretch: 75%; font-weight: 700; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.mano { font-family: var(--mano); font-weight: 400; letter-spacing: 0; line-height: 1; color: var(--tinta); }
.texto { max-width: 62ch; color: var(--tinta-2); text-wrap: pretty; }

/* Botones: rellenos de tinta, como un sello */
.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 52px; padding: 0 1.4rem;
  border: 0; border-radius: var(--r-2);
  background: var(--tinta); color: var(--papel);
  font-weight: 750; font-stretch: 92%; font-size: 1.05rem; letter-spacing: .005em;
  text-decoration: none; cursor: pointer;
  box-shadow: var(--sombra-boton);
  transition: transform .18s var(--salida), background-color .18s var(--salida), box-shadow .18s var(--salida);
}
.boton:hover { background: #142D7E; color: var(--papel); }
.boton:active { transform: translateY(1px) scale(.99); }
.boton:disabled { opacity: .55; cursor: progress; }
.boton-folio { background: var(--folio); box-shadow: 0 8px 18px -10px rgba(200, 16, 46, .8); }
.boton-folio:hover { background: #A50D26; }
.boton-linea { background: transparent; color: var(--tinta); box-shadow: inset 0 0 0 2px var(--tinta); }
.boton-linea:hover { background: var(--tinta-suave); color: var(--tinta); }

/* Campos: renglones del talonario */
.campo { display: block; }
.campo > span { display: block; font-size: .82rem; font-weight: 650; font-stretch: 85%; color: var(--tinta-2); margin-bottom: .2rem; }
.campo input, .campo textarea, .campo select {
  width: 100%; min-height: 48px; padding: .55rem .2rem .35rem;
  font-size: 1.15rem; color: var(--tinta);
  background: transparent; border: 0; border-bottom: 2px solid var(--renglon); border-radius: 0;
  outline: none; transition: border-color .15s;
}
.campo textarea { min-height: 84px; resize: vertical; }
.campo input:focus, .campo textarea:focus { border-color: var(--tinta); }
.campo input::placeholder, .campo textarea::placeholder { color: #7D8BBA; }

/* Hojas de papel: original y copias */
.hoja { background: var(--papel); border-radius: var(--r-1); box-shadow: var(--sombra-hoja); position: relative; }
.hoja-celeste { background: var(--celeste); }
.hoja-rosa { background: var(--rosa); }
.hoja-amarilla { background: var(--amarillo); }
/* Perforado del talonario */
.perforado { height: 10px; background: radial-gradient(circle at 5px 5px, var(--fondo-perforado, var(--celeste)) 2.6px, transparent 3px) 0 0 / 14px 10px repeat-x; }
/* Renglones */
.renglones { background-image: linear-gradient(transparent calc(100% - 1px), var(--renglon) calc(100% - 1px)); background-size: 100% 2.1rem; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.icono { width: 1.25em; height: 1.25em; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
