/* Vitrina POS — mostrador de tienda de moda.
   Lo memorable: las tallas como etiquetas tejidas de prenda y los precios en numeral condensado de etiqueta.
   Todo lo demás es tranquilo: superficies planas, líneas finas, un solo color de acción (buganvilla). */
:root {
  --fondo: #ECEFF3;
  --superficie: #FFFFFF;
  --superficie-2: #F6F7F9;
  --tinta: #1B2433;
  --tinta-2: #556072;
  --tinta-3: #8A93A3;
  --linea: #D9DEE5;
  --linea-fuerte: #B9C1CD;
  --buganvilla: #B8326B;
  --buganvilla-osc: #93244F;
  --buganvilla-suave: #F8E4ED;
  --cobalto: #2547A6;
  --cobalto-suave: #E5EBFA;
  --ok: #1F7A4D;
  --ok-suave: #E1F2E8;
  --aviso: #9A5F0A;
  --aviso-suave: #FBEFD9;
  --error: #B42318;
  --error-suave: #FBE5E3;
  --radio: 8px;
  --radio-sm: 5px;
  --nav: 212px;
  --ticket: 380px;
  --f-ui: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-num: "Barlow Condensed", "Figtree", system-ui, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--f-ui);
  font-size: 15px;
  line-height: 1.45;
  color: var(--tinta);
  background: var(--fondo);
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}
h1, h2, h3, h4 { margin: 0; line-height: 1.2; font-weight: 650; }
h1 { font-size: 22px; letter-spacing: -0.01em; }
h2 { font-size: 18px; }
h3 { font-size: 15px; }
p { margin: 0 0 .6em; }
a { color: var(--cobalto); }
small, .suave { color: var(--tinta-2); }
.muy-suave { color: var(--tinta-3); }
.num { font-family: var(--f-num); font-weight: 600; letter-spacing: .01em; }
.derecha { text-align: right; }
.centro { text-align: center; }
.oculto { display: none !important; }
:focus-visible { outline: 2.5px solid var(--cobalto); outline-offset: 2px; }
::selection { background: var(--buganvilla-suave); }

/* --- controles ------------------------------------------------------------------------- */
button, input, select, textarea { font: inherit; color: inherit; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 0 16px; border-radius: var(--radio);
  border: 1px solid var(--linea-fuerte); background: var(--superficie);
  font-weight: 600; cursor: pointer; white-space: nowrap; text-decoration: none; color: var(--tinta);
}
.btn:hover { background: var(--superficie-2); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.primario { background: var(--buganvilla); border-color: var(--buganvilla); color: #fff; }
.btn.primario:hover { background: var(--buganvilla-osc); }
.btn.oscuro { background: var(--tinta); border-color: var(--tinta); color: #fff; }
.btn.oscuro:hover { background: #2B3A52; }
.btn.peligro { color: var(--error); border-color: #E7B7B1; }
.btn.peligro:hover { background: var(--error-suave); }
.btn.texto { border-color: transparent; background: transparent; color: var(--cobalto); padding: 0 8px; }
.btn.texto:hover { background: var(--cobalto-suave); }
.btn.chico { min-height: 32px; padding: 0 10px; font-size: 14px; }
.btn.grande { min-height: 56px; font-size: 18px; }
.btn .tecla { font-size: 12px; font-weight: 500; opacity: .75; border: 1px solid currentColor; border-radius: 4px; padding: 0 5px; }
.btn svg { width: 18px; height: 18px; }

label.campo { display: grid; gap: 4px; font-size: 13px; font-weight: 600; color: var(--tinta-2); }
input.ctrl, select.ctrl, textarea.ctrl {
  width: 100%; min-height: 40px; padding: 8px 11px; border-radius: var(--radio);
  border: 1px solid var(--linea-fuerte); background: var(--superficie); font-weight: 500; color: var(--tinta);
}
textarea.ctrl { min-height: 72px; resize: vertical; }
input.ctrl:focus, select.ctrl:focus, textarea.ctrl:focus { outline: none; border-color: var(--cobalto); box-shadow: 0 0 0 3px var(--cobalto-suave); }
input.ctrl[readonly] { background: var(--superficie-2); }
.casilla { display: flex; align-items: center; gap: 8px; font-weight: 500; cursor: pointer; }
.casilla input { width: 18px; height: 18px; accent-color: var(--cobalto); }
.rejilla { display: grid; gap: 12px; }
.rejilla.dos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rejilla.tres { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fila { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.fila.entre { justify-content: space-between; }
.empuja { margin-left: auto; }
.segmento { display: inline-flex; border: 1px solid var(--linea-fuerte); border-radius: var(--radio); overflow: hidden; background: var(--superficie); }
.segmento button { border: 0; background: transparent; padding: 0 14px; min-height: 38px; font-weight: 600; cursor: pointer; color: var(--tinta-2); }
.segmento button + button { border-left: 1px solid var(--linea); }
.segmento button[aria-pressed="true"] { background: var(--tinta); color: #fff; }

/* --- estructura -------------------------------------------------------------------------- */
.marco { display: grid; grid-template-columns: var(--nav) 1fr; min-height: 100vh; }
.nav {
  background: var(--tinta); color: #DCE2EC; display: flex; flex-direction: column;
  padding: 18px 12px; gap: 2px; position: sticky; top: 0; height: 100vh;
}
.marca { display: flex; align-items: center; gap: 10px; padding: 2px 8px 18px; color: #fff; }
.marca svg { width: 30px; height: 30px; flex: none; }
.marca b { font-size: 17px; letter-spacing: -.01em; display: block; }
.marca span { font-size: 12px; color: #9FAABD; display: block; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav a {
  display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: var(--radio);
  color: inherit; text-decoration: none; font-weight: 500;
}
.nav a svg { width: 19px; height: 19px; opacity: .8; flex: none; }
.nav a:hover { background: #26324A; }
.nav a[aria-current="page"] { background: #F2A7C6; color: var(--tinta); font-weight: 650; }
.nav a[aria-current="page"] svg { opacity: 1; }
.nav .pie { margin-top: auto; padding: 12px 10px 0; border-top: 1px solid #2E3B55; font-size: 13px; color: #9FAABD; }
.nav .pie b { color: #fff; font-weight: 600; display: block; }
.nav .pie button { margin-top: 8px; background: none; border: 0; color: #F2A7C6; padding: 0; cursor: pointer; font-weight: 600; }
.contenido { min-width: 0; padding: 22px 26px 40px; }
.cabecera { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.cabecera h1 { margin-right: auto; }
.banda {
  display: flex; gap: 10px; align-items: center; padding: 9px 14px; border-radius: var(--radio);
  background: var(--aviso-suave); color: #6B4206; font-weight: 500; margin-bottom: 14px; font-size: 14px;
}
.banda.error { background: var(--error-suave); color: #7A1810; }
.banda.info { background: var(--cobalto-suave); color: #1B347A; }

.hoja { background: var(--superficie); border: 1px solid var(--linea); border-radius: var(--radio); }
.hoja > .tit { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--linea); }
.hoja > .tit h2 { margin-right: auto; font-size: 16px; }
.hoja > .cuerpo { padding: 16px; }
.pila { display: grid; gap: 16px; }

/* tablas */
.tabla-env { overflow-x: auto; }
table.tabla { width: 100%; border-collapse: collapse; font-size: 14px; }
.tabla th { text-align: left; font-weight: 600; color: var(--tinta-2); font-size: 13px; padding: 10px 12px; border-bottom: 1px solid var(--linea); white-space: nowrap; background: var(--superficie-2); position: sticky; top: 0; }
.tabla td { padding: 10px 12px; border-bottom: 1px solid var(--linea); vertical-align: middle; }
.tabla tr:last-child td { border-bottom: 0; }
.tabla tbody tr.clic { cursor: pointer; }
.tabla tbody tr.clic:hover td { background: #F3F6FB; }
.tabla td.dinero, .tabla th.dinero { text-align: right; white-space: nowrap; }
.vacio { padding: 40px 20px; text-align: center; color: var(--tinta-2); }
.vacio b { display: block; color: var(--tinta); font-size: 16px; margin-bottom: 4px; }

.estado { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: var(--superficie-2); color: var(--tinta-2); white-space: nowrap; }
.estado.ok { background: var(--ok-suave); color: var(--ok); }
.estado.aviso { background: var(--aviso-suave); color: var(--aviso); }
.estado.error { background: var(--error-suave); color: var(--error); }
.estado.info { background: var(--cobalto-suave); color: var(--cobalto); }

/* indicadores */
.cifras { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1px; background: var(--linea); border: 1px solid var(--linea); border-radius: var(--radio); overflow: hidden; }
.cifra { background: var(--superficie); padding: 14px 16px; }
.cifra small { display: block; font-weight: 500; }
.cifra .valor { font-family: var(--f-num); font-weight: 600; font-size: 30px; line-height: 1.1; }

/* --- etiqueta tejida (talla) --------------------------------------------------------------- */
.talla {
  position: relative; display: inline-grid; place-items: center; min-width: 46px; height: 42px; padding: 0 8px;
  font-family: var(--f-num); font-weight: 700; font-size: 19px; color: var(--tinta);
  background: var(--superficie); border: 1px solid var(--linea-fuerte); border-radius: 4px; cursor: pointer;
}
.talla::before { content: ""; position: absolute; inset: 3px; border: 1px dashed #C9CFD9; border-radius: 2px; pointer-events: none; }
.talla .cant { position: absolute; right: -6px; top: -7px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; font: 600 11px/18px var(--f-ui); background: var(--tinta); color: #fff; }
.talla:hover { border-color: var(--tinta); }
.talla:hover::before { border-color: var(--tinta-3); }
.talla.agotada { color: var(--tinta-3); background: var(--superficie-2); cursor: not-allowed; text-decoration: line-through; }
.talla.agotada .cant { background: var(--tinta-3); }
.talla.poca .cant { background: var(--aviso); }
.talla.sel { background: var(--tinta); color: #fff; border-color: var(--tinta); }
.talla.sel::before { border-color: #56627A; }
.talla.chica { min-width: 34px; height: 28px; font-size: 15px; }
.talla.chica::before { inset: 2px; }
.muestra { display: inline-block; width: 12px; height: 12px; border-radius: 50%; border: 1px solid rgba(27,36,51,.25); vertical-align: -1px; flex: none; }

/* --- POS --------------------------------------------------------------------------------------- */
.pos { display: grid; grid-template-columns: minmax(0, 1fr) var(--ticket); gap: 18px; align-items: start; }
.escaner { display: flex; gap: 10px; align-items: center; position: sticky; top: 0; z-index: 5; padding: 2px 0 12px; background: var(--fondo); }
.escaner .entrada { position: relative; flex: 1; }
.escaner .entrada svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; color: var(--tinta-2); }
.escaner input { width: 100%; height: 54px; padding: 0 16px 0 46px; font-size: 18px; font-weight: 500; border-radius: var(--radio); border: 1.5px solid var(--linea-fuerte); background: var(--superficie); }
.escaner input:focus { outline: none; border-color: var(--tinta); box-shadow: 0 0 0 4px rgba(27,36,51,.08); }
.resultados { display: grid; gap: 10px; }
.prenda { background: var(--superficie); border: 1px solid var(--linea); border-radius: var(--radio); padding: 12px 14px; display: grid; grid-template-columns: 1fr auto; gap: 6px 14px; }
.prenda .nombre { font-weight: 650; }
.prenda .ref { font-size: 13px; color: var(--tinta-2); }
.prenda .precio { font-family: var(--f-num); font-weight: 600; font-size: 24px; text-align: right; line-height: 1; }
.prenda .colores { grid-column: 1 / -1; display: grid; gap: 8px; margin-top: 4px; }
.color-fila { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.color-fila .color-nombre { display: flex; align-items: center; gap: 6px; min-width: 110px; font-size: 14px; font-weight: 500; }
.color-fila .tallas { display: flex; gap: 10px; flex-wrap: wrap; padding: 6px 0 2px; }

.ticket {
  position: sticky; top: 12px; background: var(--superficie); border: 1px solid var(--linea); border-radius: var(--radio) var(--radio) 0 0;
  display: flex; flex-direction: column; max-height: calc(100vh - 24px);
}
.ticket::after {
  content: ""; position: absolute; left: -1px; right: -1px; bottom: -8px; height: 8px;
  background: linear-gradient(-45deg, transparent 6px, var(--superficie) 0) 0 0 / 12px 8px repeat-x,
              linear-gradient(45deg, transparent 6px, var(--superficie) 0) 0 0 / 12px 8px repeat-x;
  filter: drop-shadow(0 1px 0 var(--linea));
}
.ticket .cab { padding: 12px 14px; border-bottom: 1px dashed var(--linea-fuerte); display: grid; gap: 8px; }
.ticket .quien { display: flex; align-items: center; gap: 8px; }
.ticket .quien button { flex: 1; justify-content: flex-start; min-width: 0; }
.ticket .quien .btn span.t { overflow: hidden; text-overflow: ellipsis; }
.ticket .lineas { overflow-y: auto; flex: 1; min-height: 120px; }
.linea { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 10px 14px; border-bottom: 1px solid var(--superficie-2); }
.linea .desc { font-weight: 600; font-size: 14px; }
.linea .det { font-size: 13px; color: var(--tinta-2); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.linea .tot { font-family: var(--f-num); font-weight: 600; font-size: 19px; text-align: right; }
.linea .ctrls { grid-column: 1 / -1; display: flex; gap: 6px; align-items: center; }
.cant-ctrl { display: inline-flex; align-items: center; border: 1px solid var(--linea-fuerte); border-radius: var(--radio-sm); }
.cant-ctrl button { width: 30px; height: 28px; border: 0; background: transparent; cursor: pointer; font-size: 17px; font-weight: 600; color: var(--tinta-2); }
.cant-ctrl span { min-width: 26px; text-align: center; font-weight: 650; }
.linea .desc-tag { font-size: 12px; font-weight: 600; color: var(--buganvilla); background: var(--buganvilla-suave); border-radius: 4px; padding: 0 6px; }
.ticket .totales { padding: 12px 14px 14px; border-top: 1px dashed var(--linea-fuerte); display: grid; gap: 4px; }
.ticket .totales .r { display: flex; justify-content: space-between; font-size: 14px; color: var(--tinta-2); }
.ticket .total { display: flex; justify-content: space-between; align-items: baseline; margin: 4px 0 10px; }
.ticket .total span { font-weight: 650; }
.ticket .total b { font-family: var(--f-num); font-size: 40px; font-weight: 700; line-height: 1; letter-spacing: -.005em; }
.ticket .acciones { display: grid; grid-template-columns: 1fr 2fr; gap: 8px; }
.ticket .vacio { padding: 36px 20px; }

/* cobro */
.cobro-total { text-align: center; padding: 4px 0 14px; }
.cobro-total small { display: block; font-weight: 600; }
.cobro-total b { font-family: var(--f-num); font-size: 52px; font-weight: 700; line-height: 1; }
.medios { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; margin-bottom: 14px; }
.mp { min-height: 46px; border-radius: var(--radio); border: 1px solid var(--linea-fuerte); background: var(--superficie); font-weight: 600; cursor: pointer; display: grid; place-items: center; padding: 4px 6px; line-height: 1.15; }
.mp small { font-weight: 500; font-size: 12px; }
.mp[aria-pressed="true"] { border-color: var(--tinta); box-shadow: inset 0 0 0 1px var(--tinta); background: var(--superficie-2); }
.pago-fila { display: grid; grid-template-columns: 120px minmax(0, 1fr) minmax(0, 1fr) 32px; gap: 8px; align-items: center; padding: 5px 0; }
.pago-fila .rapidos { grid-column: 2 / 4; }
.pago-fila .medio-nom { font-weight: 600; }
.rapidos { display: flex; gap: 6px; flex-wrap: wrap; }
.cambio { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 14px; border-radius: var(--radio); background: var(--superficie-2); margin-top: 10px; }
.cambio b { font-family: var(--f-num); font-size: 30px; }
.cambio.falta { background: var(--error-suave); color: var(--error); }
.cambio.listo { background: var(--ok-suave); color: var(--ok); }

.barra-movil { display: none; }
.barra-movil[hidden] { display: none !important; }
@media (max-width: 860px) {
  .barra-movil { display: flex; position: fixed; left: 10px; right: 10px; bottom: 74px; z-index: 25; align-items: center; justify-content: space-between;
    gap: 10px; padding: 10px 14px; border-radius: var(--radio); background: var(--tinta); color: #fff; box-shadow: 0 10px 30px rgba(14,20,32,.3); }
  .barra-movil b { font-family: var(--f-num); font-size: 24px; }
  #avisos { left: 12px; right: 12px; bottom: 140px; }
}

/* --- modal y avisos ---------------------------------------------------------------------- */
#capa-modal[hidden] { display: none; }
#capa-modal { position: fixed; inset: 0; background: rgba(20, 27, 40, .5); display: grid; place-items: center; z-index: 50; padding: 16px; }
.modal { background: var(--superficie); border-radius: 12px; width: min(560px, 100%); max-height: calc(100vh - 32px); display: flex; flex-direction: column; box-shadow: 0 24px 60px rgba(14, 20, 32, .28); }
.modal.ancho { width: min(880px, 100%); }
.modal.medio { width: min(680px, 100%); }
.modal header { display: flex; align-items: center; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--linea); }
.modal header h2 { margin-right: auto; }
.modal header .cerrar { width: 36px; height: 36px; border-radius: 50%; border: 0; background: transparent; cursor: pointer; font-size: 22px; color: var(--tinta-2); }
.modal header .cerrar:hover { background: var(--superficie-2); }
.modal .cuerpo { padding: 18px; overflow-y: auto; }
.modal footer { display: flex; gap: 10px; justify-content: flex-end; padding: 14px 18px; border-top: 1px solid var(--linea); flex-wrap: wrap; }
#avisos { position: fixed; left: calc(var(--nav) + 18px); bottom: 18px; display: grid; gap: 8px; z-index: 80; }
.toast { background: var(--tinta); color: #fff; padding: 11px 16px; border-radius: var(--radio); box-shadow: 0 10px 30px rgba(14,20,32,.25); max-width: 380px; font-weight: 500; animation: entra .18s ease-out; }
.toast.error { background: var(--error); }
.toast.ok { background: var(--ok); }
@keyframes entra { from { transform: translateY(8px); opacity: 0; } }

/* matriz talla x color */
.matriz { border-collapse: separate; border-spacing: 6px; margin: -6px; }
.matriz th { font-weight: 600; font-size: 13px; color: var(--tinta-2); text-align: center; padding: 0 2px; }
.matriz th.col-color { text-align: left; white-space: nowrap; padding-right: 8px; }
.matriz td { text-align: center; }
.matriz input { width: 58px; text-align: center; }
.celda-stock { width: 58px; height: 40px; border-radius: var(--radio-sm); border: 1px solid var(--linea); background: var(--superficie); font-family: var(--f-num); font-size: 19px; font-weight: 600; cursor: pointer; }
.celda-stock:hover { border-color: var(--tinta); }
.celda-stock.cero { color: var(--tinta-3); background: var(--superficie-2); }
.celda-stock.baja { color: var(--aviso); border-color: #E8C98E; background: var(--aviso-suave); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 6px 3px 10px; border-radius: 999px; background: var(--superficie-2); border: 1px solid var(--linea); font-weight: 600; font-size: 14px; }
.chip button { border: 0; background: transparent; cursor: pointer; color: var(--tinta-2); font-size: 15px; line-height: 1; padding: 0 3px; }

/* gráficas simples */
.barras { display: grid; gap: 6px; }
.barra { display: grid; grid-template-columns: 110px 1fr 110px; gap: 10px; align-items: center; font-size: 14px; }
.barra .pista { height: 12px; background: var(--superficie-2); border-radius: 6px; overflow: hidden; }
.barra .relleno { height: 100%; background: var(--tinta); border-radius: 6px; }
.barra:first-child .relleno { background: var(--buganvilla); }
.barra .val { text-align: right; font-family: var(--f-num); font-weight: 600; font-size: 17px; }
.dias { display: flex; align-items: flex-end; gap: 3px; height: 150px; padding-top: 10px; }
.dias .d { flex: 1; max-width: 46px; background: var(--tinta); border-radius: 3px 3px 0 0; min-height: 2px; position: relative; }
.dias .d:hover { background: var(--buganvilla); }
.dias-eje { display: flex; justify-content: space-between; font-size: 12px; color: var(--tinta-2); margin-top: 6px; }

/* pestañas */
.pestanas { display: flex; gap: 4px; border-bottom: 1px solid var(--linea); margin-bottom: 16px; overflow-x: auto; }
.pestanas button { border: 0; background: transparent; padding: 10px 14px; font-weight: 600; color: var(--tinta-2); cursor: pointer; border-bottom: 2.5px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.pestanas button[aria-selected="true"] { color: var(--tinta); border-bottom-color: var(--buganvilla); }

/* acceso */
.acceso { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 460px); }
.acceso .lado { background: var(--tinta); color: #DCE2EC; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; position: relative; }
.acceso .lado h1 { color: #fff; font-size: 40px; font-weight: 700; letter-spacing: -.02em; max-width: 12ch; line-height: 1.05; }
.acceso .lado p { max-width: 38ch; color: #AEB8C9; }
.acceso .etiquetas { display: flex; gap: 14px; align-items: flex-start; }
.acceso .colgante { width: 92px; padding: 26px 0 14px; border-radius: 6px; background: #F2A7C6; color: var(--tinta); text-align: center; position: relative; transform-origin: 50% 0; }
.acceso .colgante::before { content: ""; position: absolute; top: 9px; left: 50%; width: 9px; height: 9px; margin-left: -4.5px; border-radius: 50%; background: var(--tinta); }
.acceso .colgante b { font-family: var(--f-num); font-size: 30px; display: block; line-height: 1; }
.acceso .colgante small { color: #5B2240; font-weight: 600; }
.acceso .colgante:nth-child(2) { background: #fff; transform: rotate(4deg); margin-top: 18px; }
.acceso .colgante:nth-child(3) { background: #CFD8EA; transform: rotate(-3deg); margin-top: 6px; }
.acceso form { padding: 48px 40px; display: grid; gap: 14px; align-content: center; background: var(--superficie); }
.acceso form h2 { font-size: 22px; margin-bottom: 6px; }

/* --- impresión ---------------------------------------------------------------------------- */
@media print { body * { visibility: hidden; } }

/* --- responsive ---------------------------------------------------------------------------- */
@media (max-width: 1180px) { :root { --ticket: 340px; --nav: 76px; } .nav a span, .marca div, .nav .pie span, .nav .pie b { display: none; } .nav a { justify-content: center; } .nav .pie { text-align: center; } }
@media (max-width: 860px) {
  .marco { grid-template-columns: 1fr; }
  .nav { position: fixed; bottom: 0; top: auto; left: 0; right: 0; height: auto; flex-direction: row; padding: 6px; z-index: 30; overflow-x: auto; }
  .marca, .nav .pie { display: none; }
  .nav a { flex: 1; flex-direction: column; gap: 2px; padding: 6px 4px; font-size: 11px; min-width: 60px; }
  .nav a span { display: block; }
  .contenido { padding: 14px 16px 90px; }
  .pos { grid-template-columns: 1fr; }
  .ticket { position: static; max-height: none; }
  .rejilla.dos, .rejilla.tres { grid-template-columns: 1fr; }
  .pago-fila { grid-template-columns: 1fr 1fr; }
  .acceso { grid-template-columns: 1fr; }
  .acceso .lado { padding: 28px 24px; gap: 24px; }
  .acceso .lado h1 { font-size: 30px; }
  .acceso form { padding: 28px 24px; }
  .barra { grid-template-columns: 80px 1fr 90px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
