/* Mi Puesto — estilos. Colores: azul noche, turquesa y naranja, como la presentación. */
@font-face {
  font-family: "Nunito Sans";
  src: url("fuentes/nunito-sans.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}
:root {
  --navy: #0F2E3A;
  --navy-2: #1F5A73;
  --teal: #1AA8A4;
  --teal-d: #0B7A74;
  --teal-l: #D6F0EE;
  --orange: #F28C28;
  --orange-d: #B85A0A;
  --orange-l: #FDE7D1;
  --bg: #EEF4F4;
  --card: #FFFFFF;
  --line: #D5E3E4;
  --text: #0F2E3A;
  --muted: #4E6A73;
  --ok: #1E7A3C;
  --bad: #B42318;
  --radio: 16px;
  --sombra: 0 1px 2px rgba(15, 46, 58, .06), 0 6px 18px rgba(15, 46, 58, .06);
  --info-l: #E3EEF7;
  --fuente: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --nav-h: 64px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.45 var(--fuente); }
img { max-width: 100%; display: block; }
a { color: var(--teal-d); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; text-wrap: balance; }
h2 { font-size: 1.15rem; font-weight: 800; }
h3 { font-size: 1rem; font-weight: 800; margin-top: 1em; }
p { margin: 0 0 .75em; }
small { font-size: .85em; }
.ico { flex: none; vertical-align: middle; }
.muted { color: var(--muted); }
.centro { text-align: center; }
.pos { color: var(--ok); }
.neg { color: var(--bad); }
.der { text-align: right; }
.tachado { text-decoration: line-through; color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

/* Estructura */
.wrap { max-width: 980px; margin: 0 auto; padding: 16px max(16px, env(safe-area-inset-right)) calc(var(--nav-h) + 40px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); }
.publica .wrap { padding-bottom: 40px; }
.angosto { max-width: 520px; }
.h1 { font-size: 1.5rem; font-weight: 800; margin: 4px 0 14px; }
.titulo-fila { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.titulo-fila .h1 { margin-bottom: 10px; }

.top { background: var(--navy); color: #F3F7F7; position: sticky; top: 0; z-index: 20; padding-top: env(safe-area-inset-top); }
.top-in { max-width: 980px; margin: 0 auto; display: flex; align-items: center; gap: 8px; padding: 10px max(16px, env(safe-area-inset-right)) 10px max(16px, env(safe-area-inset-left)); }
.top-atras { color: #F3F7F7; display: grid; place-items: center; width: 40px; height: 40px; margin-left: -8px; border-radius: 12px; }
.top-negocio { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; min-width: 0; }
.top-txt { display: flex; flex-direction: column; min-width: 0; }
.top-txt b { font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-txt small { color: #A9CFCB; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.logo { width: 40px; height: 40px; border-radius: 12px; object-fit: contain; background: #fff; flex: none; }
.logo-ini { display: grid; place-items: center; background: var(--orange); color: var(--navy); font-weight: 800; }

.nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; justify-content: space-around; background: var(--card); border-top: 1px solid var(--line); padding: 6px max(8px, env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left)); box-shadow: 0 -4px 16px rgba(15, 46, 58, .06); }
.nav a { flex: 1; max-width: 120px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; min-width: 0; color: var(--muted); text-decoration: none; font-size: .75rem; font-weight: 700; border-radius: 12px; }
.nav a.activo { color: var(--teal-d); background: var(--teal-l); }

/* Avisos */
.aviso { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 12px; margin: 0 0 12px; font-weight: 600; }
.aviso .ico { margin-top: 1px; }
.aviso-info { background: var(--info-l); color: #14385A; }
.aviso-ok { background: #DDF3E4; color: #14532D; }
.aviso-error { background: #FDE4E1; color: #8A1C12; }
.exito { align-items: center; font-size: 1.1rem; }

/* Tarjetas */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radio); padding: 18px; margin-bottom: 14px; box-shadow: var(--sombra); }
.card-cab { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.card-cab h2 { display: flex; align-items: center; gap: 6px; margin: 0; }
.card-cab a { font-weight: 700; font-size: .9rem; }
.card-guia { background: var(--orange-l); border-color: #F6C795; }
.vacio { text-align: center; padding: 28px 18px; }
.texto h3 { color: var(--teal-d); }
.plegable summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; }
.plegable summary::-webkit-details-marker { display: none; }
.plegable summary h2 { margin: 0; }
.plegable summary::after { content: "+"; font-size: 1.5rem; font-weight: 700; color: var(--teal-d); }
.plegable[open] summary::after { content: "−"; }
.plegable[open] summary { margin-bottom: 12px; }
.dos-col { display: grid; gap: 0 14px; }
@media (min-width: 760px) { .dos-col { grid-template-columns: 1fr 1fr; } }

/* Formularios */
.campo { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; min-width: 0; }
.campo > span { font-weight: 700; font-size: .92rem; }
.campo small { font-weight: 400; color: var(--muted); }
input, select, textarea { font: inherit; color: var(--text); width: 100%; min-height: 48px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 12px; background: #FBFDFD; }
input:focus, select:focus { border-color: var(--teal); outline: none; box-shadow: 0 0 0 3px rgba(26, 168, 164, .2); }
input[type="checkbox"], input[type="radio"] { width: 22px; min-height: 22px; height: 22px; accent-color: var(--teal-d); }
.campo-grande input { font-size: 1.8rem; font-weight: 800; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 16px; font-size: .95rem; }
.check input { flex: none; margin-top: 2px; }
.fila-campos { display: grid; gap: 0 12px; }
@media (min-width: 520px) { .fila-campos { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); } }
.fila-boton { align-items: end; grid-template-columns: 1fr auto; }
.fila-boton .btn { margin-bottom: 14px; }
.campo-foto { display: block; margin-bottom: 16px; cursor: pointer; position: relative; }
.campo-foto input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.foto-prev { width: 100%; max-height: 260px; object-fit: contain; border-radius: 14px; background: #F3F7F7; border: 1px solid var(--line); }
.foto-vacia { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; height: 150px; border: 2px dashed #9DBBBF; border-radius: 14px; color: var(--muted); font-weight: 700; text-align: center; padding: 12px; background: #F6FAFA; }
.campo-logo .foto-prev, .campo-logo .foto-vacia { height: 120px; max-width: 220px; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 18px; border-radius: 14px; border: 2px solid transparent; font: inherit; font-weight: 800; text-decoration: none; cursor: pointer; background: var(--teal-l); color: var(--navy); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primario { background: var(--orange); color: var(--navy); }
.btn-primario:hover { background: #E67E17; }
.btn-teal { background: var(--teal-d); color: #fff; }
.btn-borde { background: transparent; border-color: var(--teal-d); color: var(--teal-d); }
.btn-texto { background: transparent; color: var(--teal-d); padding-left: 8px; padding-right: 8px; }
.btn-peligro { color: var(--bad); }
.btn-wa { background: #1F9D55; color: #fff; }
.btn-bloque { display: flex; width: 100%; margin-bottom: 10px; }
.btn-grande { min-height: 58px; font-size: 1.15rem; }
.btn-icono { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; color: var(--navy); font-size: 1.3rem; font-weight: 800; cursor: pointer; padding: 0; }
.botones { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.botones form { margin: 0; }

/* Acceso */
.pantalla-acceso { background: linear-gradient(180deg, var(--navy) 0, var(--navy) 300px, var(--bg) 300px) no-repeat, var(--bg); min-height: 100vh; }
.acceso { max-width: 440px; margin: 0 auto; padding-top: calc(16px + env(safe-area-inset-top)); }
.acceso-marca { color: #F3F7F7; text-align: center; padding: 8px 8px 20px; }
.acceso-marca h1 { font-size: 1.6rem; font-weight: 800; margin: 12px 0 6px; }
.acceso-marca p { color: #BFD8D5; margin: 0; }
.logo-app { display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 22px; background: var(--teal); color: var(--navy); }
.acceso-extra { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px; font-weight: 700; text-decoration: none; }
.marca { display: flex; align-items: center; gap: 12px; margin: 8px 0 16px; }
.marca div { display: flex; flex-direction: column; }
.checks { list-style: none; padding: 0; margin: 0 0 8px; }
.checks li { display: flex; align-items: center; gap: 8px; padding: 6px 0; }
.checks .ok { color: var(--ok); }
.checks .mal { color: var(--bad); font-weight: 700; }

/* Inicio */
.saludo { font-weight: 700; margin: 2px 0 12px; }
.hero { display: flex; flex-direction: column; gap: 2px; padding: 20px; border-radius: 20px; margin-bottom: 14px; color: #F3F7F7; background: linear-gradient(135deg, var(--navy-2), var(--navy)); box-shadow: var(--sombra); }
.hero-fiado { background: linear-gradient(135deg, #8A4307, #5A2C05); }
.hero-lbl { color: #BFD8D5; font-weight: 700; }
.hero-fiado .hero-lbl { color: #F8D9B8; }
.hero-num { font-size: 2.4rem; font-weight: 800; line-height: 1.1; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.hero-sub { color: #BFD8D5; }
.hero-fiado .hero-sub { color: #F8D9B8; }
.acciones { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
@media (min-width: 640px) { .acciones { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.accion { display: flex; flex-direction: column; justify-content: center; gap: 6px; min-height: 92px; padding: 12px; font-size: .92rem; line-height: 1.2; border-radius: 18px; background: var(--card); border: 1px solid var(--line); color: var(--navy); text-decoration: none; font-weight: 800; box-shadow: var(--sombra); }
.accion .ico { color: var(--teal-d); }
.accion-principal { background: var(--orange); border-color: var(--orange); grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: center; font-size: 1.15rem; min-height: 64px; }
.accion-principal .ico { color: var(--navy); }
@media (min-width: 640px) { .accion-principal { grid-column: auto; flex-direction: column; } }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 14px; }
.kpi { display: flex; flex-direction: column; gap: 2px; padding: 14px; border-radius: var(--radio); background: var(--card); border: 1px solid var(--line); color: var(--text); text-decoration: none; box-shadow: var(--sombra); min-width: 0; }
.kpi span { font-size: .85rem; font-weight: 700; color: var(--muted); }
.kpi b { font-size: 1.3rem; font-weight: 800; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.kpi small { color: var(--muted); }
.kpi-fiado { background: var(--orange-l); border-color: #F6C795; }
@media (max-width: 519px) { .kpis > .kpi:nth-child(odd):last-child { grid-column: 1 / -1; } }
.kpi-fiado b { color: #8A4307; }

/* Listas */
.lista { list-style: none; margin: 0; padding: 0; }
.lista > li + li { border-top: 1px solid #E6EEEF; }
.fila-item { display: flex; align-items: center; gap: 12px; padding: 12px 2px; color: inherit; text-decoration: none; min-height: 56px; }
.fila-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.fila-txt b { overflow: hidden; text-overflow: ellipsis; }
.fila-txt small { color: var(--muted); }
.fila-monto { font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }
.enlace-mini { font-size: .85rem; font-weight: 700; }
.avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--teal-l); color: var(--teal-d); font-weight: 800; flex: none; }
.thumb { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; flex: none; }
.thumb-ini { display: grid; place-items: center; background: var(--teal-l); color: var(--teal-d); font-weight: 800; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .82rem; font-weight: 800; white-space: nowrap; }
.badge-ok { background: var(--teal-l); color: var(--teal-d); }
.badge-alerta { background: var(--orange-l); color: #8A4307; }
.lista-gastos { margin-top: 10px; }
.fila-borrar { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px solid #E6EEEF; padding: 4px 0; }

/* Búsqueda y pestañas */
.buscador { display: flex; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.buscador select { width: auto; flex: 1 1 160px; }
.buscar { flex: 3 1 220px; display: flex; align-items: center; gap: 8px; background: #FBFDFD; border: 1.5px solid var(--line); border-radius: 12px; padding: 0 12px; color: var(--muted); margin-bottom: 12px; }
.buscador .buscar { margin-bottom: 0; }
.buscar input { border: 0; padding-left: 0; background: transparent; box-shadow: none; }
.pestanas { display: flex; gap: 6px; margin-bottom: 14px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.pestanas a { flex: none; padding: 9px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--navy); text-decoration: none; font-weight: 700; font-size: .92rem; }
.pestanas a.activa { background: var(--navy); border-color: var(--navy); color: #fff; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.chip { padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--navy); font: inherit; font-weight: 700; font-size: .9rem; cursor: pointer; min-height: 40px; }
.chip.activa { background: var(--teal-d); border-color: var(--teal-d); color: #fff; }

/* Productos */
.grid-productos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.prod { display: flex; flex-direction: column; height: 100%; background: var(--card); border: 1px solid var(--line); border-radius: var(--radio); overflow: hidden; color: inherit; text-decoration: none; box-shadow: var(--sombra); }
.prod-foto { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: #F3F7F7; }
span.prod-foto { display: grid; place-items: center; font-size: 2rem; }
.prod-info { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px 12px; flex: 1; }
.prod-info b { line-height: 1.25; }
.prod-pie { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: auto; padding-top: 6px; }
.stock-cab { display: flex; align-items: center; gap: 16px; }
.stock-foto { width: 96px; height: 96px; border-radius: 16px; object-fit: cover; flex: none; font-size: 1.6rem; }
.stock-datos { display: flex; flex-direction: column; gap: 2px; }
.stock-num { font-size: 2.4rem; font-weight: 800; line-height: 1.1; }
.stock-num small { font-size: 1rem; color: var(--muted); }

/* Tablas */
.tabla-scroll { overflow-x: auto; margin: 0 -4px; }
.tabla { width: 100%; border-collapse: collapse; font-size: .95rem; font-variant-numeric: tabular-nums; }
.tabla th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 8px 6px; border-bottom: 1.5px solid var(--line); white-space: nowrap; }
.tabla td { padding: 10px 6px; border-bottom: 1px solid #E6EEEF; vertical-align: top; }
.tabla .der { text-align: right; white-space: nowrap; }

/* Vender */
.punto-venta { display: grid; gap: 16px; }
.pos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-bottom: 12px; }
.pos-prod { display: flex; flex-direction: column; text-align: left; gap: 2px; padding: 0 0 10px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--card); color: var(--navy); font: inherit; cursor: pointer; overflow: hidden; box-shadow: var(--sombra); }
.pos-prod:active { transform: scale(.98); }
.pos-prod img, .pos-prod .thumb-ini { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 6px; font-size: 1.6rem; }
.pos-prod-nom, .pos-prod small, .pos-prod-pie { padding: 0 10px; }
.pos-prod-nom { font-weight: 800; line-height: 1.2; }
.pos-prod small { color: var(--muted); }
.pos-prod-pie { display: flex; justify-content: space-between; align-items: baseline; gap: 4px; margin-top: auto; padding-top: 4px; }
.pos-prod-pie small { padding: 0; }
.pos-prod.agotado { opacity: .5; }
.pos-carrito { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 18px; box-shadow: var(--sombra); align-self: start; }
.carrito-cab { display: flex; align-items: center; justify-content: space-between; }
.carrito-cab h2 { margin: 0 0 8px; font-size: 1.3rem; }
.otro-form { background: #F6FAFA; border: 1px dashed #9DBBBF; border-radius: 14px; padding: 14px; margin-bottom: 12px; }
.lineas { list-style: none; margin: 0 0 8px; padding: 0; }
.linea { display: grid; grid-template-columns: 1fr auto auto; grid-template-areas: "nom nom x" "precio cant sub"; gap: 6px 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid #E6EEEF; }
.linea-nom { grid-area: nom; display: flex; flex-direction: column; }
.linea-nom small { color: var(--muted); }
.linea-precio { grid-area: precio; display: flex; align-items: center; gap: 4px; font-weight: 700; color: var(--muted); }
.linea-precio input { width: 92px; min-height: 40px; padding: 6px 8px; }
.linea-cant { grid-area: cant; display: flex; align-items: center; gap: 8px; font-weight: 800; }
.linea-cant span { min-width: 22px; text-align: center; }
.linea-sub { grid-area: sub; font-weight: 800; text-align: right; min-width: 84px; font-variant-numeric: tabular-nums; }
.linea-x { grid-area: x; width: 32px; height: 32px; border: 0; color: var(--muted); }
.totales { border-top: 1.5px solid var(--line); padding-top: 10px; margin-bottom: 8px; }
.fila-total { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; font-weight: 700; }
.fila-total input { width: 120px; min-height: 42px; text-align: right; }
.total-grande strong { font-size: 2rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.metodos { border: 0; padding: 0; margin: 0 0 12px; display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.metodos legend { font-weight: 800; margin-bottom: 8px; padding: 0; }
.metodo { position: relative; }
.metodo input { position: absolute; opacity: 0; }
.metodo span { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 8px; border-radius: 12px; border: 1.5px solid var(--line); font-weight: 800; text-align: center; cursor: pointer; background: #fff; }
.metodo input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.metodo input:focus-visible + span { outline: 3px solid var(--orange); outline-offset: 2px; }
.panel-metodo { margin-bottom: 10px; }
.vuelto { font-size: 1.1rem; margin: 0; }
.vuelto b { font-size: 1.4rem; color: var(--ok); }
.nota-tarjeta { background: var(--teal-l); border-radius: 12px; padding: 10px 12px; }
.mas-opciones { margin: 6px 0 14px; }
.mas-opciones summary { cursor: pointer; font-weight: 700; color: var(--teal-d); padding: 6px 0; }
.pos-barra { position: fixed; left: 12px; right: 12px; bottom: calc(var(--nav-h) + 10px + env(safe-area-inset-bottom)); z-index: 25; display: flex; align-items: center; gap: 12px; padding: 14px 18px; border: 0; border-radius: 16px; background: var(--navy); color: #fff; font: inherit; font-weight: 700; box-shadow: 0 10px 24px rgba(15, 46, 58, .3); cursor: pointer; }
.pos-barra b { font-size: 1.15rem; margin-left: auto; }
.pos-barra-ir { background: var(--orange); color: var(--navy); padding: 6px 12px; border-radius: 10px; font-weight: 800; }
@media (max-width: 899px) {
  .pos-carrito { display: none; }
  .carrito-abierto .pos-carrito { display: block; }
  .carrito-abierto .pos-catalogo, .carrito-abierto .pos-barra { display: none; }
}
@media (min-width: 900px) {
  .punto-venta { grid-template-columns: 1fr 380px; align-items: start; }
  .pos-carrito { position: sticky; top: 76px; max-height: calc(100vh - 96px); overflow-y: auto; }
  .pos-barra, .solo-movil { display: none !important; }
}

/* Ticket */
.ticket { background: #fff; max-width: 380px; margin: 0 auto 16px; padding: 20px 18px; border-radius: 6px; box-shadow: var(--sombra); font-family: ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace; font-size: .92rem; position: relative; border-top: 6px solid var(--teal); }
.ticket hr { border: 0; border-top: 1.5px dashed #9DBBBF; margin: 10px 0; }
.ticket-cab { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; margin-bottom: 10px; font-family: var(--fuente); }
.ticket-cab b { font-size: 1.15rem; }
.ticket-logo { width: 64px; height: 64px; border-radius: 14px; object-fit: contain; margin-bottom: 6px; }
span.ticket-logo { display: grid; place-items: center; background: var(--orange); color: var(--navy); font-weight: 800; font-size: 1.3rem; }
.ticket-num { text-align: center; font-weight: 800; margin-bottom: 8px; letter-spacing: .04em; }
.ticket-fila, .ticket-item { display: flex; justify-content: space-between; gap: 12px; padding: 2px 0; }
.ticket-item span:last-child, .ticket-fila span:last-child { white-space: nowrap; text-align: right; }
.ticket-item small { color: var(--muted); }
.ticket-total { font-size: 1.2rem; font-weight: 800; padding: 6px 0; }
.ticket-nota, .ticket-msj { text-align: center; margin: 10px 0 0; }
.ticket-legal { text-align: center; color: var(--muted); font-size: .8rem; margin: 10px 0 0; }
.ticket-sello { position: absolute; top: 40%; left: 50%; transform: translate(-50%, -50%) rotate(-18deg); font-size: 2.6rem; font-weight: 900; color: rgba(180, 35, 24, .35); border: 4px solid rgba(180, 35, 24, .35); padding: 2px 16px; border-radius: 10px; }
.anular { text-align: center; }

/* Caja */
.form-fecha input { min-height: 42px; width: auto; }
.cuadre { background: var(--teal-l); border-radius: 12px; padding: 12px; }

/* Reportes */
.resultado { padding: 8px 18px; }
.res-fila b { white-space: nowrap; }
.res-fila { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 0; border-bottom: 1px solid #E6EEEF; font-variant-numeric: tabular-nums; }
.res-fila.menos { color: var(--muted); }
.res-fila.sub { font-weight: 800; }
.res-fila.total { font-size: 1.35rem; font-weight: 800; border-bottom: 0; padding-top: 14px; }
.res-fila small { font-weight: 400; color: var(--muted); }
.resultado .muted { font-size: .85rem; }
.barras { display: flex; align-items: flex-end; gap: 3px; height: 170px; padding-top: 10px; overflow-x: auto; }
.barra { flex: 1 0 14px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; }
.barra-col { width: 100%; max-width: 30px; background: var(--teal); border-radius: 6px 6px 2px 2px; min-height: 0; }
.barra-top .barra-col { background: var(--orange); }
.barra small { font-size: .7rem; color: var(--muted); }
.fila-medida { padding: 10px 0; }
.fila-medida-txt { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.medida { height: 10px; border-radius: 99px; background: #E6EEEF; overflow: hidden; }
.medida span { display: block; height: 100%; background: var(--teal); border-radius: 99px; }
.medida-gasto span { background: var(--orange); }

/* Simulador */
.selector { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: #EEF4F4; border-radius: 14px; padding: 4px; margin-bottom: 10px; }
.selector button { min-height: 48px; border: 0; border-radius: 10px; background: transparent; font: inherit; font-weight: 800; color: var(--muted); cursor: pointer; }
.selector button.activa { background: var(--navy); color: #fff; }
.ticket-sim { background: #fff; border: 1.5px dashed #9DBBBF; border-radius: 10px; padding: 16px; margin-bottom: 10px; font-variant-numeric: tabular-nums; }
.ticket-sim .sub { color: var(--muted); font-size: .9rem; padding-left: 12px; }
.ticket-sim .ticket-total { border-top: 1.5px dashed #9DBBBF; margin-top: 8px; padding-top: 10px; color: var(--ok); }
.nota-sim { background: var(--orange-l); border-left: 4px solid var(--orange); padding: 10px 12px; border-radius: 6px; margin-bottom: 14px; }
.res-mes b { font-size: 1.3rem; color: var(--bad); }
.aviso-imprimible { display: none; }

/* Menú */
.menu { list-style: none; padding: 0; margin: 0 0 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radio); overflow: hidden; box-shadow: var(--sombra); }
.menu li + li { border-top: 1px solid #E6EEEF; }
.menu a { display: flex; align-items: center; gap: 14px; padding: 14px 16px; color: inherit; text-decoration: none; min-height: 64px; }
.menu-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--teal-l); color: var(--teal-d); flex: none; }
.menu-salir .menu-ico { background: #FDE4E1; color: var(--bad); }

/* Administración */
.negocio-admin-cab { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.datos { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px 16px; margin: 0 0 14px; }
.datos dt { font-size: .8rem; color: var(--muted); font-weight: 700; }
.datos dd { margin: 0; }
.clave-temp { font-size: 1.3rem; letter-spacing: .1em; }

/* QR */
.qr-hoja { background: #fff; border-radius: 20px; padding: 28px 20px; text-align: center; margin-bottom: 14px; box-shadow: var(--sombra); border-top: 10px solid var(--orange); }
.qr-marca { font-weight: 800; color: var(--teal-d); text-transform: uppercase; letter-spacing: .12em; margin: 0; }
.qr-titulo { font-size: 1.6rem; margin: 6px 0 16px; }
.qr-caja { display: inline-block; padding: 14px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.qr-caja img, .qr-caja canvas { width: 280px !important; height: 280px !important; max-width: 100%; }
.qr-enlace { word-break: break-all; font-weight: 700; margin: 14px 0 4px; }
.qr-pie { color: var(--muted); }

/* Impresión */
@media print {
  @page { margin: 8mm; }
  body { background: #fff; }
  .top, .nav, .no-imprimir, .aviso, .pos-barra, .botones { display: none !important; }
  .wrap { padding: 0; max-width: none; }
  .ticket { box-shadow: none; border: 0; max-width: 72mm; margin: 0 auto; padding: 0; font-size: 11px; }
  .ticket-logo { width: 40px; height: 40px; }
  .qr-hoja { box-shadow: none; }
  .aviso-imprimible { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; min-height: 90vh; border: 6px solid #0F2E3A; border-radius: 18px; text-align: center; padding: 24px; background: #FFD23F; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .ap-negocio { font-size: 28pt; font-weight: 800; text-transform: uppercase; }
  .ap-texto { font-size: 32pt; font-weight: 800; line-height: 1.15; }
  .ap-pct { font-size: 90pt; font-weight: 900; line-height: 1; }
  .ap-pie { font-size: 18pt; }
}

/* ---------- v1.1 ---------- */
.chico { font-size: .85rem; }
.btn-chico { min-height: 40px; padding: 8px 14px; font-size: .92rem; }
textarea { font: inherit; color: var(--text); width: 100%; padding: 12px; border: 1.5px solid var(--line); border-radius: 12px; background: #FBFDFD; resize: vertical; min-height: 110px; line-height: 1.45; }
textarea:focus { border-color: var(--teal); outline: none; box-shadow: 0 0 0 3px rgba(26, 168, 164, .2); }
.contador-txt { align-self: flex-end; color: var(--muted); font-variant-numeric: tabular-nums; }
.checks li span { min-width: 0; }

/* Encabezado */
.top-demo { margin-left: auto; background: var(--orange); color: var(--navy); font-size: .75rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.logo-app-mini { display: grid; place-items: center; background: var(--teal); color: var(--navy); }
.logo-app-chico { width: 48px; height: 48px; border-radius: 14px; }

/* Menú inferior con contadores */
.nav-ico { position: relative; display: inline-flex; }
.contador { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--orange); color: var(--navy); font-size: .72rem; font-weight: 900; line-height: 1; }
.nav-ico .contador { position: absolute; top: -6px; right: -12px; box-shadow: 0 0 0 2px var(--card); }
.menu .contador { margin-left: auto; }

/* Contraseña con botón ver */
.clave-caja { position: relative; display: block; }
.clave-caja input { padding-right: 52px; }
.ver-clave { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 44px; height: 40px; border: 0; background: transparent; color: var(--muted); border-radius: 10px; cursor: pointer; display: grid; place-items: center; }
.ver-clave.activa { color: var(--teal-d); }

/* Inicio: gráfico de 7 días dentro del recuadro principal */
.mini-barras { display: flex; align-items: flex-end; gap: 8px; height: 74px; margin-top: 14px; }
.mini-barra { flex: 1; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; }
.mini-col { width: 100%; max-width: 30px; min-height: 2px; border-radius: 6px 6px 2px 2px; background: rgba(191, 216, 213, .35); }
.mini-barra.hoy .mini-col { background: var(--orange); }
.mini-barra small { font-size: .7rem; color: #A9CFCB; font-weight: 700; }
.mini-barra.hoy small { color: #fff; }
.card-sug { display: flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; background: linear-gradient(135deg, #FFF6EC, #FDE7D1); border-color: #F6C795; }
.card-sug .menu-ico { background: var(--orange); color: var(--navy); }
.card-sug > .ico:last-child { transform: rotate(180deg); color: var(--orange-d); }

/* Indicadores del administrador */
.kpi-alerta { background: #FDE4E1; border-color: #F4B4AC; }
.kpi-alerta b { color: var(--bad); }
.kpi-ok b { color: var(--ok); }
.card-alerta { border-color: #F4B4AC; background: #FFF8F7; }
.resaltado { box-shadow: 0 0 0 3px var(--teal), var(--sombra); }

/* Estados (negocios y sugerencias) */
.estado-nueva, .estado-pendiente { background: var(--orange-l); color: #8A4307; }
.estado-revision { background: var(--info-l); color: #14385A; }
.estado-planificada { background: #EDE7F8; color: #4B2E83; }
.estado-hecha, .estado-activo { background: #DDF3E4; color: #14532D; }
.estado-descartada, .estado-suspendido { background: #ECEFF1; color: #46545A; }
.badge-tipo { background: var(--navy); color: #fff; display: inline-flex; align-items: center; gap: 4px; }
.badge-seccion { background: var(--teal-l); color: var(--teal-d); }

/* Sugerencias */
.hero-sug { background: linear-gradient(135deg, #2A6B5F, var(--navy)); gap: 6px; }
.hero-ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--orange); color: var(--navy); margin-bottom: 6px; }
.hero-titulo { font-size: 1.4rem; font-weight: 900; line-height: 1.2; }
.opciones-tipo { border: 0; padding: 0; margin: 0 0 14px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.opciones-tipo legend { font-weight: 800; margin-bottom: 8px; padding: 0; }
.tipo { position: relative; }
.tipo input { position: absolute; opacity: 0; }
.tipo span { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-height: 76px; padding: 12px; border-radius: 14px; border: 1.5px solid var(--line); font-weight: 800; cursor: pointer; background: #fff; line-height: 1.2; }
.tipo span .ico { color: var(--teal-d); }
.tipo input:checked + span { border-color: var(--teal-d); background: var(--teal-l); box-shadow: inset 0 0 0 1px var(--teal-d); }
.tipo input:focus-visible + span { outline: 3px solid var(--orange); outline-offset: 2px; }
.lista-sug > li { padding: 14px 0; }
.sug-cab { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; margin-bottom: 6px; }
.sug-cab small { margin-left: auto; }
.sug-texto { margin: 6px 0 0; white-space: normal; overflow-wrap: anywhere; }
.sug-resp { margin-top: 10px; padding: 12px 14px; border-radius: 12px; background: var(--teal-l); border-left: 4px solid var(--teal-d); }
.sug-resp b { display: flex; align-items: center; gap: 6px; color: var(--teal-d); }
.sug-resp p { margin: 6px 0 4px; overflow-wrap: anywhere; }
.sug-nueva .sug-resp { background: #FFF6EC; border-left-color: var(--orange); }
.sug-nueva .sug-resp b { color: var(--orange-d); }
.sug-admin .sug-quien { margin: 4px 0 0; }
.sug-admin .sug-texto { background: #F6FAFA; border-radius: 12px; padding: 12px 14px; margin: 10px 0 14px; }
.sug-form .botones { margin-bottom: 0; }
.sug-borrar { margin-top: 4px; }

/* Actividad */
.punto { width: 12px; height: 12px; border-radius: 50%; flex: none; background: var(--ok); }
.punto-aviso { background: var(--orange); }
.punto-alerta { background: var(--bad); box-shadow: 0 0 0 4px #FDE4E1; }
.bitacora .fila-item { min-height: 48px; padding: 10px 2px; }

/* Caja: métodos */
.metodos-caja .menu-ico { width: 40px; height: 40px; }
.responder { margin: -4px 0 12px; }
.responder summary { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-weight: 800; color: var(--teal-d); padding: 6px 0; list-style: none; }
.responder summary::-webkit-details-marker { display: none; }
.responder[open] summary { margin-bottom: 8px; }

/* ---------- Menú: barra inferior en celular, barra lateral en PC ---------- */
.nav-marca, .nav-pc { display: none !important; }
.nav-txt { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

@media (min-width: 1024px) {
  :root { --lateral: 252px; }
  .con-menu { padding-left: var(--lateral); }
  .con-menu .wrap { max-width: 1180px; padding-bottom: 48px; padding-left: 32px; padding-right: 32px; }
  .con-menu .top-in { max-width: 1180px; padding-left: 32px; padding-right: 32px; }
  .con-menu .top .logo-app-mini { display: none; }

  .nav {
    top: 0; bottom: 0; left: 0; right: auto; width: var(--lateral);
    flex-direction: column; justify-content: flex-start; gap: 2px;
    padding: 18px 14px calc(18px + env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
    background: var(--navy); border-top: 0; box-shadow: none; overflow-y: auto; z-index: 40;
  }
  .nav-movil { display: none !important; }
  .nav-pc { display: flex !important; }
  .nav a { flex: none; max-width: none; flex-direction: row; justify-content: flex-start; gap: 12px; padding: 11px 14px; font-size: .95rem; color: #BFD8D5; border-radius: 12px; }
  .nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
  .nav a.activo { background: transparent; color: #BFD8D5; }
  .nav a.activo-pc { background: var(--teal); color: var(--navy); }
  .nav a.activo-pc:hover { background: var(--teal); color: var(--navy); }
  .nav a { position: relative; }
  .nav .nav-ico { position: static; }
  .nav a .contador { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); box-shadow: none; }
  .nav-marca { display: flex !important; align-items: center; gap: 12px; padding: 6px 10px 20px !important; margin-bottom: 10px; border-bottom: 1px solid rgba(255, 255, 255, .1); border-radius: 0 !important; color: #fff !important; }
  .nav-marca:hover { background: transparent !important; }
  .nav-marca span:last-child { display: flex; flex-direction: column; line-height: 1.2; }
  .nav-marca small { color: #A9CFCB; font-weight: 600; font-size: .78rem; }
  .nav-logo { width: 40px; height: 40px; border-radius: 12px; }
  .nav-salir { margin-top: auto; }

  /* Más espacio para el contenido en PC */
  .acciones { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .accion-principal { grid-column: auto; flex-direction: column; }
  .kpis { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
  .grid-productos { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
  .punto-venta { grid-template-columns: 1fr 400px; }
  .pos-carrito { top: 84px; }
  .pos-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .h1 { font-size: 1.75rem; }
  .hero-num { font-size: 2.8rem; }

  /* Inicio: resumen y alertas en dos columnas */
  .inicio-pc { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; align-items: start; }
  .inicio-pc > * { min-width: 0; }
  .menu { max-width: 720px; }
}
@media (min-width: 1024px) and (max-width: 1180px) {
  .punto-venta { grid-template-columns: 1fr 360px; }
}
@media (min-width: 1024px) { .inicio-pc > :only-child { grid-column: 1 / -1; } }
