/* Punto de venta: venta interactiva (catálogo + venta actual), cobro, ticket y caja */

/* ---------- pantalla de venta ---------- */
.vender { display: grid; grid-template-columns: minmax(0, 1fr) var(--vw, 390px); gap: 14px; align-items: start; }
.vender .cat { min-width: 0; }
.buscador { position: relative; }
.buscador #q { padding-right: 44px; }
.q-x { position: absolute; right: 8px; top: 8px; border: 0; background: #f5ecd8; color: #0a2a5e; width: 30px; height: 30px; border-radius: 50%; font-size: .9rem; cursor: pointer; }
.atajos { font-size: .72rem; color: #6f6a5c; margin: 2px 0 10px; }
.atajos kbd { background: #f5ecd8; border: 1px solid #d9c9a8; border-radius: 4px; padding: 0 5px; font-family: inherit; font-weight: 700; color: #0a2a5e; }

.venta { position: sticky; top: 12px; max-height: calc(100vh - 24px); display: flex; flex-direction: column; padding: 14px; }
.venta-cab { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-bottom: 2px solid #f5ecd8; padding-bottom: 8px; margin-bottom: 8px; }
.venta-cab h2 { margin: 0; padding: 0; border: 0; }
.venta-cab .n { background: #d81e8f; color: #fff; border-radius: 99px; font-size: .75rem; padding: 1px 9px; margin-left: 6px; vertical-align: middle; }
.cerrar-hoja { display: none; border: 0; background: #f5ecd8; width: 34px; height: 34px; border-radius: 50%; font-size: 1rem; cursor: pointer; color: #0a2a5e; }
#carrito { overflow: auto; flex: 1; min-height: 70px; margin: 0 -4px; padding: 0 4px; }
.lin { display: grid; grid-template-columns: 52px 1fr auto; gap: 9px; padding: 9px 0; border-bottom: 1px solid #f5ecd8; align-items: center; animation: entra .18s ease-out; }
@keyframes entra { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.lin img, .lin .sinf { width: 52px; height: 58px; border-radius: 8px; object-fit: cover; background: #f5ecd8; display: flex; align-items: center; justify-content: center; color: #a39a82; font-size: .6rem; }
.lin .nom { font-size: .86rem; font-weight: 700; line-height: 1.2; }
.lin .sub { font-size: .72rem; color: #6f6a5c; margin-top: 1px; }
.lin .sub .tacha { text-decoration: line-through; color: #a39a82; margin-right: 3px; }
.lin .desc-tag { display: inline-block; background: #fde7f3; color: #b0156f; font-weight: 700; border-radius: 99px; padding: 0 7px; font-size: .68rem; margin-left: 3px; }
.lin .acc { display: flex; align-items: center; gap: 6px; margin-top: 5px; flex-wrap: wrap; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid #d9c9a8; border-radius: 99px; background: #fff; }
.qty button { border: 0; background: none; width: 30px; height: 30px; font-size: 1.1rem; font-weight: 700; cursor: pointer; color: #0a4aa0; }
.qty button:active { background: #e7eefa; border-radius: 50%; }
.qty span { min-width: 22px; text-align: center; font-weight: 700; font-size: .9rem; }
.lin .mini { border: 1.5px solid #e2d2b2; background: #fffaf0; border-radius: 99px; font-size: .72rem; font-weight: 700; padding: 4px 9px; cursor: pointer; color: #0a2a5e; }
.lin .mini:hover { border-color: #0a4aa0; }
.lin .mini.rojo { color: #b91c1c; }
.lin .imp { font-weight: 700; font-size: .95rem; text-align: right; white-space: nowrap; }
.sucursal-nota { font-size: .72rem; color: #6f6a5c; background: #f5ecd8; border-radius: 8px; padding: 5px 9px; margin-bottom: 4px; }

.venta-pie { border-top: 2px solid #0a2a5e; margin-top: 8px; padding-top: 8px; }
.fila-t { display: flex; justify-content: space-between; font-size: .85rem; color: #4a4636; padding: 1px 0; }
.fila-t.desc { color: #b0156f; font-weight: 600; }
.venta-pie .total { margin: 6px 0 10px; padding-top: 6px; border-top: 1px dashed #d9c9a8; }
.herr { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; align-items: center; }
.herr .mini { border: 1.5px solid #e2d2b2; background: #fffaf0; border-radius: 99px; font-size: .75rem; font-weight: 700; padding: 5px 11px; cursor: pointer; color: #0a2a5e; }
.herr .mini.on { background: #0a4aa0; color: #fff; border-color: #0a4aa0; }
.herr .gdesc { display: inline-flex; align-items: center; gap: 4px; font-size: .75rem; font-weight: 700; }
.herr .gdesc input { width: 62px; padding: 4px 6px; border-radius: 8px; }
.herr .gdesc select { width: auto; padding: 4px; border-radius: 8px; }
.btn-cobrar { width: 100%; border: 0; border-radius: 12px; background: #12a150; color: #fff; font-weight: 700; font-size: 1.1rem; padding: 14px; cursor: pointer; box-shadow: 0 3px 0 #0c7a3b; }
.btn-cobrar:disabled { background: #cfc6b0; box-shadow: none; cursor: not-allowed; }
.btn-cobrar:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 1px 0 #0c7a3b; }
.btn-cobrar kbd { background: rgba(255,255,255,.25); border-radius: 4px; padding: 0 6px; font-size: .7rem; margin-left: 6px; font-family: inherit; }
.fila-btn { display: flex; gap: 8px; margin-top: 8px; }
.fila-btn button { flex: 1; border: 1.5px solid #e2d2b2; background: #fffaf0; color: #0a2a5e; border-radius: 10px; padding: 9px; font-weight: 700; font-size: .82rem; cursor: pointer; }
.fila-btn button:hover { border-color: #0a4aa0; }

.espera { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.espera .e-chip { display: inline-flex; align-items: center; gap: 4px; background: #fff3d6; border: 1.5px solid #f0c75e; border-radius: 99px; padding: 3px 4px 3px 10px; font-size: .75rem; font-weight: 700; color: #7a5200; cursor: pointer; }
.espera .e-chip button { border: 0; background: rgba(0,0,0,.08); width: 20px; height: 20px; border-radius: 50%; cursor: pointer; font-size: .7rem; }

/* barra flotante (celular) */
.barra-venta { display: none; position: fixed; left: 10px; right: 10px; bottom: calc(66px + env(safe-area-inset-bottom)); z-index: 60; background: #0a2a5e; color: #fff; border: 0; border-radius: 14px; padding: 12px 16px; font-size: 1rem; font-weight: 700; box-shadow: 0 6px 20px rgba(10,42,94,.4); align-items: center; justify-content: space-between; cursor: pointer; }
.barra-venta .b-der { background: #d81e8f; border-radius: 99px; padding: 5px 14px; }
.barra-venta.pop { animation: pop .25s; }
@keyframes pop { 50% { transform: scale(1.04); } }

@media (max-width: 980px) {
  .vender { grid-template-columns: minmax(0, 1fr); }
  .venta { display: none; position: fixed; inset: 0; z-index: 130; max-height: none; border-radius: 0; padding: 14px 14px calc(14px + env(safe-area-inset-bottom)); }
  .venta.abierta { display: flex; }
  .cerrar-hoja { display: inline-block; }
  .barra-venta.hay { display: flex; }
  .atajos { display: none; }
  #aviso { bottom: 130px; }
}
@media (min-width: 981px) { .barra-venta { display: none !important; } }

/* catálogo más táctil */
.grid.vis { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.grid.vis .card img, .grid.vis .noimg { height: 200px; }
.talla { min-width: 46px; min-height: 44px; }
.talla.flash { animation: flash .35s; }
@keyframes flash { 40% { background: #12a150; color: #fff; border-color: #12a150; } }

/* ---------- ventanas (cobro, ticket, precio) ---------- */
.pv-velo { position: fixed; inset: 0; background: rgba(15,23,42,.72); z-index: 160; display: flex; align-items: center; justify-content: center; padding: 10px; }
.pv { background: #fffaf0; border-radius: 16px; width: 100%; max-width: 480px; max-height: 96vh; overflow: auto; padding: 18px; box-shadow: 0 20px 60px rgba(0,0,0,.4); }
.pv h3 { margin: 0 0 4px; color: #0a2a5e; }
.pv .tot-grande { font-size: 2.2rem; font-weight: 700; letter-spacing: -.02em; color: #0a2a5e; line-height: 1.1; }
.pagos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0; }
.pago { border: 2px solid #e2d2b2; background: #fff; border-radius: 12px; padding: 12px 4px; font-weight: 700; cursor: pointer; font-size: .85rem; color: #0a2a5e; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.pago span { font-size: 1.4rem; }
.pago.on { border-color: #d81e8f; background: #fde7f3; color: #b0156f; }
.billetes { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0; }
.billetes button { border: 1.5px solid #d9c9a8; background: #fff; border-radius: 99px; padding: 7px 14px; font-weight: 700; cursor: pointer; color: #0a2a5e; }
.billetes button:hover { border-color: #0a4aa0; }
.input-grande { width: 100%; font-size: 1.5rem; font-weight: 700; padding: 10px 12px; border: 2px solid #d9c9a8; border-radius: 12px; }
.input-grande:focus { outline: none; border-color: #0a4aa0; }
.vuelto { margin: 8px 0; padding: 12px; border-radius: 12px; font-weight: 700; font-size: 1.15rem; text-align: center; }
.vuelto.ok { background: #e6f6ec; color: #0c7f3f; } .vuelto.mal { background: #fee2e2; color: #b91c1c; } .vuelto.neutro { background: #f5ecd8; color: #6f6a5c; font-size: .9rem; font-weight: 600; }
.pv details { margin-top: 8px; border: 1px solid #e2d2b2; border-radius: 10px; padding: 6px 10px; }
.pv details summary { cursor: pointer; font-weight: 700; font-size: .85rem; }
.pv .acciones { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.pv .acciones button { flex: 1; min-width: 120px; border: 0; border-radius: 12px; padding: 12px; font-weight: 700; font-size: 1rem; cursor: pointer; }
.b-ok { background: #12a150; color: #fff; } .b-ok:disabled { background: #cfc6b0; cursor: not-allowed; }
.b-sec { background: #f5ecd8; color: #0a2a5e; } .b-az { background: #0a4aa0; color: #fff; } .b-wa { background: #25d366; color: #fff; }
.precios-op { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0; }
.precios-op button { border: 1.5px solid #d9c9a8; background: #fff; border-radius: 10px; padding: 9px 13px; font-weight: 700; cursor: pointer; color: #0a2a5e; }
.precios-op button.on { border-color: #d81e8f; background: #fde7f3; color: #b0156f; }

/* ---------- ticket ---------- */
.ticket { background: #fff; border: 1px dashed #bbb; border-radius: 8px; padding: 14px 12px; font-family: "Courier New", ui-monospace, monospace; font-size: .8rem; color: #111; max-width: 340px; margin: 10px auto; }
.ticket h4 { text-align: center; font-size: 1rem; margin: 0; }
.ticket .c { text-align: center; }
.ticket hr { border: 0; border-top: 1px dashed #777; margin: 8px 0; }
.ticket .f { display: flex; justify-content: space-between; gap: 8px; }
.ticket .it { margin: 3px 0; }
.ticket .it small { display: block; color: #555; }
.ticket .t { font-weight: 700; font-size: .95rem; }
.ok-grande { text-align: center; font-size: 2.4rem; }

/* ---------- caja ---------- */
.caja-res { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 10px 0 14px; }
.caja-res .r { background: #fff; border: 1px solid #e2d2b2; border-left: 4px solid #0a4aa0; border-radius: 12px; padding: 10px 14px; }
.caja-res .r:nth-child(1) { border-left-color: #12a150; } .caja-res .r:nth-child(2) { border-left-color: #d81e8f; }
.caja-res .r b { display: block; font-size: 1.4rem; letter-spacing: -.02em; }
.caja-res .r span { font-size: .74rem; color: #6f6a5c; }
.caja-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; align-items: end; }
.dif { margin: 10px 0; padding: 12px; border-radius: 12px; font-weight: 700; text-align: center; }
.dif.ok { background: #e6f6ec; color: #0c7f3f; } .dif.mal { background: #fee2e2; color: #b91c1c; } .dif.neutro { background: #f5ecd8; color: #6f6a5c; font-weight: 600; }

/* ---------- impresión del ticket (80 mm) ---------- */
@media print {
  body * { visibility: hidden !important; }
  #ticket-impr, #ticket-impr * { visibility: visible !important; }
  #ticket-impr { position: absolute; left: 0; top: 0; width: 72mm; border: 0; margin: 0; padding: 2mm; font-size: 10pt; }
  @page { margin: 4mm; }
}

.hidden { display: none !important; }

.pv-velo { margin: 0 !important; }


/* ---------- personalizar el punto de venta ---------- */
.pd-btn { margin-left: auto; } nav#nav .pd-btn.on { background: #12a150; border-color: #12a150; color: #fff; }
[data-bloques] > .blq:not(.venta) { position: relative; }
.pd-oculto { display: none !important; } .pd-atenuado { opacity: .45; }
.pd-titulo { cursor: pointer; user-select: none; } .pd-flecha { display: inline-block; width: 1.1em; color: #d81e8f; font-size: .9em; }
.blq.plegado > :not(.pd-tools):not(:nth-child(2)) { display: none !important; } .blq.plegado { padding-bottom: 6px; }
.pd-tools { display: none; position: absolute; top: 6px; right: 8px; gap: 2px; align-items: center; background: #0a2a5e; border-radius: 99px; padding: 2px 4px; z-index: 6; box-shadow: 0 3px 10px rgba(0,0,0,.25); }
.pd-edicion > .blq > .pd-tools { display: flex; }
.pd-tools button { border: 0; background: none; color: #fff; width: 26px; height: 26px; border-radius: 50%; cursor: pointer; font-size: .8rem; display: inline-flex; align-items: center; justify-content: center; }
.pd-tools button:hover { background: rgba(255,255,255,.2); }
.pd-edicion > .blq { outline: 2px dashed #c9b690; outline-offset: -2px; }
.pd-barra { background: #fff3d6; border: 1px solid #f0c75e; border-radius: 12px; padding: 7px 12px; margin-bottom: 10px; font-size: .78rem; color: #7a5200; display: flex; gap: 8px 12px; flex-wrap: wrap; align-items: center; }
.pd-barra button { border: 1.5px solid #c9b690; background: #fff; border-radius: 99px; padding: 3px 10px; font-size: .74rem; font-weight: 700; cursor: pointer; color: #0a2a5e; margin-left: 4px; }
[data-bloques] > .blq.conacento { border-top: 4px solid var(--acento); } .blq.conacento h2 { color: var(--acento); } .blq.conacento h2::before { background-color: var(--acento); }
/* formas del catálogo */
[data-id="catalogo"][data-forma="mediana"] .grid.vis { grid-template-columns: repeat(auto-fill, minmax(135px, 1fr)); gap: 8px; }
[data-id="catalogo"][data-forma="mediana"] .grid.vis .card img, [data-id="catalogo"][data-forma="mediana"] .grid.vis .noimg { height: 125px; }
[data-id="catalogo"][data-forma="mediana"] .card .body { padding: 6px 8px 8px; } [data-id="catalogo"][data-forma="mediana"] .card h3 { font-size: .8rem; } [data-id="catalogo"][data-forma="mediana"] .card .meta { display: none; }
[data-id="catalogo"][data-forma="mediana"] .talla { min-width: 36px; min-height: 38px; padding: 4px 7px; font-size: .78rem; }
[data-id="catalogo"][data-forma="lista"] .grid.vis { grid-template-columns: 1fr; gap: 6px; }
[data-id="catalogo"][data-forma="lista"] .grid.vis .card { flex-direction: row; align-items: center; }
[data-id="catalogo"][data-forma="lista"] .grid.vis .card .foto { width: 82px; flex: none; }
[data-id="catalogo"][data-forma="lista"] .grid.vis .card img, [data-id="catalogo"][data-forma="lista"] .grid.vis .noimg { height: 82px; }
[data-id="catalogo"][data-forma="lista"] .card .body { flex: 1; padding: 6px 12px; } [data-id="catalogo"][data-forma="lista"] .card .meta, [data-id="catalogo"][data-forma="lista"] .rama-tag { display: none; }
[data-id="catalogo"][data-forma="lista"] .card .tallas { margin-top: 4px; }
/* formas de la venta actual */
[data-id="venta"][data-forma="compacta"] .lin { grid-template-columns: 1fr auto; padding: 6px 0; } [data-id="venta"][data-forma="compacta"] .lin img, [data-id="venta"][data-forma="compacta"] .lin .sinf { display: none; }
/* formas de la lista del inventario */
#lista-inv[data-forma="compacta"] { grid-template-columns: 1fr; gap: 6px; }
#lista-inv[data-forma="compacta"] .pc { flex-direction: row; align-items: center; border-radius: 14px; }
#lista-inv[data-forma="compacta"] .pc-foto { width: 74px; aspect-ratio: 1; flex: none; } #lista-inv[data-forma="compacta"] .pc-puntos, #lista-inv[data-forma="compacta"] .pc-merch { display: none; }
#lista-inv[data-forma="compacta"] .pc-est { top: 4px; left: 4px; font-size: .6rem; padding: 1px 6px; }
#lista-inv[data-forma="compacta"] .pc-info { flex: 1; padding: 6px 12px; } #lista-inv[data-forma="compacta"] .pc-acc { flex: none; padding: 6px 10px; width: 250px; }
@media (max-width: 700px) { #lista-inv[data-forma="compacta"] .pc { flex-wrap: wrap; } #lista-inv[data-forma="compacta"] .pc-acc { width: 100%; } }
/* ventana de edición */
.pd-velo { position: fixed; inset: 0; background: rgba(15,23,42,.65); z-index: 230; display: flex; align-items: center; justify-content: center; padding: 12px; margin: 0 !important; }
.pd-caja { background: #fffaf0; border-radius: 20px; width: 100%; max-width: 440px; max-height: 94vh; overflow: auto; padding: 18px 20px; box-shadow: 0 20px 60px rgba(0,0,0,.4); }
.pd-caja h3 { margin: 0 0 4px; color: #0a2a5e; } .pd-caja label { display: block; font-size: .76rem; font-weight: 700; color: #0a2a5e; margin: 12px 0 5px; }
.pd-caja input[type=text] { width: 100%; padding: 8px 12px; border: 2px solid #e2d2b2; border-radius: 12px; font-size: .9rem; }
.pd-pills { display: flex; gap: 6px; flex-wrap: wrap; } .pd-pills button { border: 2px solid #e2d2b2; background: #fff; border-radius: 99px; padding: 6px 14px; font-weight: 600; font-size: .8rem; cursor: pointer; color: #0a2a5e; } .pd-pills button.on { background: #fde7f3; border-color: #d81e8f; color: #b0156f; }
.pd-sw { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; } .pd-sw button { width: 28px; height: 28px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1.5px #c9b690; cursor: pointer; } .pd-sw button.on { box-shadow: 0 0 0 3px #0a2a5e; }
.pd-sw button[data-c=""] { width: auto; border-radius: 99px; padding: 0 12px; font-size: .74rem; font-weight: 700; background: #fff; color: #0a2a5e; }
.pd-acc { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; } .pd-acc button { flex: 1; min-width: 90px; border: 0; border-radius: 99px; padding: 10px; font-weight: 700; cursor: pointer; font-size: .85rem; }
.pd-acc .b-sec { background: #f3e8d3; color: #0a2a5e; } .pd-acc .b-ok { background: #12a150; color: #fff; flex: 1.4; }

@media (max-width: 700px) { nav#nav { flex-wrap: wrap; gap: 6px; } nav#nav button { padding: 8px 12px; font-size: .82rem; } .pd-btn { margin-left: 0; } }

/* ================= rediseño compacto del punto de venta ================= */
.cat-barra { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 8px 0; }
.cat-barra .hoy-chip { border: 0; background: linear-gradient(120deg, #0a2a5e, #0a4aa0); color: #fff; font-weight: 700; font-size: .78rem; border-radius: 99px; padding: 6px 13px; cursor: pointer; white-space: nowrap; }
.cat-barra select { width: auto; padding: 5px 10px; border-radius: 99px; font-size: .78rem; border: 1.5px solid #e2d2b2; background: #fff; color: #0a2a5e; font-weight: 600; max-width: 190px; }
.solo-stock { display: inline-flex; align-items: center; gap: 4px; font-size: .74rem; font-weight: 600; color: #4a4636; margin: 0; cursor: pointer; white-space: nowrap; } .solo-stock input { width: auto; margin: 0; }
.dens { display: inline-flex; border: 1.5px solid #e2d2b2; border-radius: 99px; overflow: hidden; background: #fff; }
.dens button { border: 0; background: none; padding: 4px 11px; cursor: pointer; font-size: .95rem; color: #6f6a5c; } .dens button.on { background: #fde7f3; color: #b0156f; }
.cat-barra .atajos { margin: 0 0 0 auto; font-size: .68rem; }
.ramas { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; margin-bottom: 6px; } .ramas .chip, .grupo-f { flex: none; white-space: nowrap; } .grupo-f { flex-wrap: nowrap; }
.venta { padding: 10px 12px; } .lin { padding: 6px 0; grid-template-columns: 44px 1fr auto; gap: 8px; } .lin img, .lin .sinf { width: 44px; height: 50px; }
.dto-rap { display: inline-flex; gap: 4px; } .dto-rap .mini { padding: 3px 9px; }
.fila-btn button { padding: 7px; font-size: .78rem; }
.btn-cobrar { padding: 12px; }

/* ventas */
.h-ctl { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 10px; }
.h-fecha { display: inline-flex; align-items: center; border: 1.5px solid #e2d2b2; border-radius: 99px; background: #fff; overflow: hidden; }
.h-fecha button { border: 0; background: none; padding: 6px 11px; cursor: pointer; color: #0a2a5e; font-weight: 700; } .h-fecha button.hoy { background: #f5ecd8; font-size: .8rem; }
.h-fecha input { border: 0; width: auto; padding: 4px; background: none; font-size: .85rem; }
#h-q { flex: 1; min-width: 180px; padding: 7px 14px; border-radius: 99px; font-size: .85rem; }
.h-pagos { display: inline-flex; gap: 6px; flex-wrap: wrap; } .h-pagos button { border: 1.5px solid #e2d2b2; background: #fff; border-radius: 99px; padding: 4px 11px; font-size: .75rem; cursor: pointer; color: #0a2a5e; } .h-pagos button.on { background: #fde7f3; border-color: #d81e8f; color: #b0156f; } .h-pagos small { color: #6f6a5c; }
.h-res { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; margin-bottom: 10px; }
.h-res > div { background: #fff; border: 1px solid #e2d2b2; border-left: 4px solid #12a150; border-radius: 12px; padding: 6px 12px; } .h-res > div:nth-child(2) { border-left-color: #d81e8f; } .h-res > div:nth-child(3) { border-left-color: #0a4aa0; } .h-res > div:nth-child(4) { border-left-color: #b91c1c; }
.h-res b { display: block; font-size: 1.2rem; color: #0a2a5e; line-height: 1.2; } .h-res span { font-size: .72rem; color: #6f6a5c; }
.h-lista { display: flex; flex-direction: column; gap: 6px; }
.vrow { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto 70px auto; gap: 10px; align-items: center; background: #fff; border: 1px solid #e8dcc0; border-radius: 12px; padding: 7px 12px; }
.vrow.anulada { opacity: .55; background: #faf3f3; } .vrow.anulada .v-tot { text-decoration: line-through; }
.v-hora b { display: block; font-size: .92rem; color: #0a2a5e; } .v-hora span { font-size: .7rem; color: #6f6a5c; }
.v-prendas { display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: .84rem; color: #0a2a5e; font-weight: 600; } .v-prendas small { font-weight: 400; color: #6f6a5c; }
.v-meta { font-size: .7rem; color: #6f6a5c; margin-top: 1px; } .vrow .dev { color: #b91c1c; font-size: .72rem; font-style: normal; }
.v-pago { font-size: .76rem; font-weight: 700; background: #f5ecd8; border-radius: 99px; padding: 3px 10px; color: #4a4636; white-space: nowrap; }
.v-tot { text-align: right; font-weight: 700; font-size: 1.05rem; color: #0a2a5e; }
.v-acc { display: flex; gap: 5px; align-items: center; } .v-acc button { border: 1.5px solid #e2d2b2; background: #fffaf0; border-radius: 99px; padding: 4px 10px; cursor: pointer; font-size: .76rem; font-weight: 700; color: #0a2a5e; } .v-acc button:hover { border-color: #0a4aa0; }
@media (max-width: 760px) { .vrow { grid-template-columns: 48px minmax(0, 1fr) auto; } .v-pago { grid-column: 2; justify-self: start; } .v-tot { grid-row: 1; grid-column: 3; } .v-acc { grid-column: 2 / 4; } }

/* caja */
#caja-bloques { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 12px; align-items: start; } #caja-bloques > .panel { margin-bottom: 0 !important; }
@media (max-width: 980px) { #caja-bloques { grid-template-columns: minmax(0, 1fr); } }
.caja-res { grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 7px; margin: 8px 0; } .caja-res .r { padding: 6px 10px; } .caja-res .r b { font-size: 1.1rem; }
.caja-form { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; } .dif { margin: 8px 0; padding: 8px; }
.cierres-l { display: flex; flex-direction: column; gap: 6px; max-height: 520px; overflow: auto; }
.cierre { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: center; background: #fff; border: 1px solid #e8dcc0; border-radius: 12px; padding: 7px 12px; }
.ci-dia b { display: block; font-size: .9rem; color: #0a2a5e; } .ci-dia span, .ci-num { font-size: .72rem; color: #6f6a5c; } .ci-num { display: flex; gap: 10px; grid-column: 1 / 3; }
.ci-dif { font-weight: 700; font-size: .8rem; border-radius: 99px; padding: 4px 12px; } .ci-dif.ok { background: #e6f6ec; color: #0c7f3f; } .ci-dif.mal { background: #fee2e2; color: #b91c1c; }
.ci-nota { grid-column: 1 / 3; color: #6f6a5c; font-style: italic; }

/* inventario más denso */
.inv-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.pc { border-radius: 14px; } .pc-foto { aspect-ratio: 1 / .85; }
.inv-top .dens { margin-left: 4px; }
#lista-inv.inv-grid { grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 10px; }
#lista-inv .pc { border-radius: 14px; } #lista-inv .pc-foto { aspect-ratio: 1 / .8; }
#lista-inv .pc-info { padding: 8px 10px 4px; } #lista-inv .pc-acc { padding: 4px 8px 8px; }
#lista-inv[data-forma="compacta"] { grid-template-columns: 1fr; }


/* ================= celular: todo el proceso de venta en una sola pantalla ================= */
.barra-venta { padding: 0 !important; background: none !important; box-shadow: none !important; gap: 8px; }
@media (max-width: 760px) {
  body.con-menu > header { display: none !important; }
  nav#nav { flex-wrap: nowrap !important; gap: 4px !important; margin-top: 8px !important; } nav#nav button { flex: 1; min-width: 0; padding: 7px 4px !important; font-size: .74rem !important; display: flex; flex-direction: column; align-items: center; gap: 1px; border-radius: 12px !important; }
  nav#nav button svg { margin: 0 !important; width: 18px !important; height: 18px !important; } nav#nav .pd-btn { display: none; }
  #s-vender { padding-bottom: 150px; }
  .vender .cat { padding: 8px !important; }
  .buscador #q { padding: 8px 40px 8px 14px; font-size: 1rem; } .q-x { top: 5px; }
  .cat-barra { margin: 6px 0; flex-wrap: nowrap; } .cat-barra .solo-stock, .cat-barra .dens, .cat-barra .atajos { display: none; } .cat-barra select { flex: 1; min-width: 0; max-width: none; } .cat-barra .hoy-chip { flex: none; font-size: .72rem; padding: 6px 10px; }
  .ramas { margin-bottom: 4px; } .ramas .chip { padding: 4px 11px; font-size: .74rem; } .grupo-f > span { display: none; }
  .grid.vis, [data-id="catalogo"][data-forma] .grid.vis { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 6px !important; }
  .grid.vis .card img, .grid.vis .noimg, [data-id="catalogo"][data-forma] .grid.vis .card img, [data-id="catalogo"][data-forma] .grid.vis .noimg { height: 96px !important; }
  .grid.vis .card .body { padding: 5px 7px 7px; } .grid.vis .card h3 { font-size: .76rem; margin: 0 0 1px; } .grid.vis .card .meta { display: none; } .grid.vis .card .precio { font-size: .9rem; }
  .grid.vis .rama-tag { display: none; } .sws { margin: 2px 0; } .sw { width: 18px; height: 18px; }
  .grid.vis .talla { min-width: 34px; min-height: 36px; padding: 2px 6px; font-size: .78rem; } .grid.vis .talla small { font-size: .56rem; }
  /* barra fija abajo: ver la venta + cobrar con un toque */
  .barra-venta { left: 8px; right: 8px; bottom: calc(60px + env(safe-area-inset-bottom)); }
  .barra-venta .bv-ver { flex: 1; display: flex; justify-content: space-between; align-items: center; background: #0a2a5e; color: #fff; border: 0; border-radius: 14px; padding: 11px 14px; font-size: .95rem; font-weight: 700; box-shadow: 0 6px 18px rgba(10,42,94,.35); }
  .barra-venta .bv-tot { background: #d81e8f; border-radius: 99px; padding: 3px 12px; }
  .barra-venta .bv-cobrar { border: 0; background: #12a150; color: #fff; border-radius: 14px; padding: 0 20px; font-size: 1.05rem; font-weight: 700; box-shadow: 0 6px 18px rgba(18,161,80,.4); }
  /* hoja de la venta, compacta */
  .venta .lin { grid-template-columns: 1fr auto; } .venta .lin img, .venta .lin .sinf { display: none; }
  .venta-cab { padding-bottom: 4px; margin-bottom: 4px; } #carrito { min-height: 0; }
  .barra-venta.hay { display: flex; }
}
@media (max-width: 760px) {
  .barra-venta { bottom: calc(72px + env(safe-area-inset-bottom)); align-items: stretch; }
  #s-vender { padding-bottom: 130px; }
}
body:not(.en-vender) .barra-venta { display: none !important; }
@media (max-width: 760px) {
  body:not(.en-vender) #s-hist, body:not(.en-vender) #s-caja, body:not(.en-vender) #s-inv { padding-bottom: 12px; }
  #s-hist .panel > h2, #s-caja .panel > h2 { display: none; }
  .h-res { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; } .h-res > div { padding: 5px 8px; } .h-res b { font-size: 1rem; } .h-res span { font-size: .62rem; }
  .h-pagos { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; } .h-pagos button { flex: none; font-size: .7rem; padding: 3px 9px; }
  #h-q { min-width: 0; }
}
.auto-cobro { display: flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 700; color: #0a2a5e; margin: 0; width: 100%; cursor: pointer; }
.auto-cobro input { width: auto; margin: 0; }

/* color y talla: dos bloques separados y con nombre, para no equivocarse */
.sel-bloque { margin-top: 6px; }
.sel-lbl { font-size: .6rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #6f6a5c; margin-bottom: 3px; }
.sel-lbl small { text-transform: none; letter-spacing: 0; font-weight: 500; }
.cols { display: flex; flex-wrap: wrap; gap: 5px; }
.col { display: inline-flex; align-items: center; gap: 5px; border: 2px solid #e2d2b2; background: #fff; border-radius: 99px; padding: 5px 11px 5px 6px; font-size: .74rem; font-weight: 700; color: #0a2a5e; cursor: pointer; min-height: 34px; }
.col i { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid rgba(0,0,0,.25); display: block; flex: none; }
.col.sel { border-color: #0a4aa0; background: #eaf1fb; box-shadow: 0 0 0 2px #0a4aa0 inset; }
.col.unico { cursor: default; border-style: dashed; }
.col:disabled { opacity: .4; cursor: not-allowed; }
.sel-bloque.tl { border-top: 2px dashed #e2d2b2; padding-top: 6px; margin-top: 8px; }
.grid.vis .talla { min-width: 48px; min-height: 46px; }
@media (max-width: 760px) {
  .col { min-height: 34px; padding: 4px 9px 4px 5px; font-size: .72rem; } .col i { width: 16px; height: 16px; }
  .grid.vis .talla { min-width: 44px; min-height: 44px; }
  .grid.vis .card .sws { display: none; }
}
.un-col { display: flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 700; color: #0a2a5e; margin-top: 3px; }
.un-col i { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid rgba(0,0,0,.25); display: block; }
.sel-bloque.tl.solo { border-top: 0; padding-top: 0; margin-top: 4px; }


/* la venta se arma libremente: lo que ya está en el carrito se ve en la tarjeta y se cambia ahí mismo */
.card.en-venta { border-color: #12a150; box-shadow: 0 0 0 2px #12a150 inset; }
.talla.en { display: inline-flex; align-items: center; gap: 0; background: #12a150; border: 2px solid #12a150 !important; color: #fff !important; border-radius: 8px; padding: 0; min-height: 46px; overflow: hidden; }
.talla.en b { padding: 0 6px; font-size: .8rem; white-space: nowrap; }
.talla.en button { border: 0; background: rgba(255,255,255,.22); color: #fff; width: 30px; align-self: stretch; font-size: 1.15rem; font-weight: 700; cursor: pointer; padding: 0; }
.talla.en button:active { background: rgba(255,255,255,.45); } .talla.en button:disabled { opacity: .4; }
.talla.en.ult { background: #0c7f3f; }
#b-deshacer { margin-left: auto; margin-right: 6px; }
.bv-undo { border: 0; background: #f5ecd8; color: #0a2a5e; border-radius: 14px; padding: 0 14px; font-size: 1.25rem; font-weight: 700; cursor: pointer; }
@media (min-width: 761px) { .bv-undo { display: none !important; } }
.grid.vis .talla.en, .grid.vis .talla.en:hover, .grid.vis .talla.en.flash { background: #12a150 !important; border-color: #12a150 !important; color: #fff !important; }
.grid.vis .talla.en.ult, .grid.vis .talla.en.ult:hover { background: #0c7f3f !important; }
.grid.vis .talla.en small { display: none; }


/* elegir color y talla → aparece "Agregar" */
.grid.vis .talla { position: relative; }
.grid.vis .talla.sel, .grid.vis .talla.sel:hover { background: #0a4aa0; border-color: #0a4aa0; color: #fff; box-shadow: 0 0 0 2px #fff inset; }
.grid.vis .talla.sel small { color: #cfe0fb; }
.talla .bd { position: absolute; top: -6px; right: -6px; background: #12a150; color: #fff; border-radius: 99px; min-width: 18px; height: 18px; font-size: .66rem; font-weight: 700; font-style: normal; display: flex; align-items: center; justify-content: center; padding: 0 4px; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.add-fila { display: flex; gap: 6px; margin-top: 8px; align-items: stretch; animation: entra .15s ease-out; }
.qty-s { display: inline-flex; align-items: center; border: 2px solid #d9c9a8; border-radius: 12px; background: #fff; overflow: hidden; }
.qty-s button { border: 0; background: none; width: 30px; font-size: 1.15rem; font-weight: 700; color: #0a4aa0; cursor: pointer; align-self: stretch; } .qty-s button:active { background: #e7eefa; }
.qty-s b { min-width: 22px; text-align: center; font-size: .95rem; color: #0a2a5e; }
.b-add { flex: 1; border: 0; border-radius: 12px; background: #12a150; color: #fff; font-weight: 700; font-size: .86rem; cursor: pointer; padding: 8px 6px; line-height: 1.15; box-shadow: 0 2px 0 #0c7a3b; }
.b-add small { display: block; font-size: .66rem; font-weight: 600; opacity: .9; } .b-add:active { transform: translateY(1px); box-shadow: none; }
.add-ayuda { margin-top: 7px; font-size: .68rem; color: #8a7f65; text-align: center; }
@media (max-width: 760px) { .add-ayuda { display: none; } .b-add { font-size: .8rem; } .qty-s button { width: 28px; } }

/* ================= carrito en el celular: hoja desde abajo, total y Cobrar juntos ================= */
.solo-movil { display: none; }
@media (max-width: 980px) {
  .solo-movil { display: block; }
  .venta { position: fixed; inset: auto 0 0 0; max-height: 86vh; border-radius: 22px 22px 0 0; padding: 6px 12px calc(10px + env(safe-area-inset-bottom)); box-shadow: 0 0 0 100vmax rgba(15,23,42,.55), 0 -8px 30px rgba(0,0,0,.25); }
  .venta.abierta { display: flex; }
  .venta::before { content: ""; display: block; width: 42px; height: 5px; border-radius: 9px; background: #d9c9a8; margin: 2px auto 6px; flex: none; }
  .venta-cab { padding-bottom: 6px; margin-bottom: 2px; }
  .venta-cab h2 { font-size: 1rem; }
  #carrito { min-height: 0; max-height: 46vh; }
  .venta .lin { grid-template-columns: 46px 1fr auto; gap: 4px 10px; padding: 8px 0; align-items: start; }
  .venta .lin img, .venta .lin .sinf { display: flex; width: 46px; height: 52px; }
  .venta .lin .nom { font-size: .88rem; } .venta .lin .sub { font-size: .72rem; }
  .venta .lin .imp { font-size: 1rem; padding-top: 2px; }
  .venta .qty button { width: 36px; height: 34px; font-size: 1.2rem; } .venta .qty span { min-width: 26px; font-size: 1rem; }
  .venta .lin .mini { padding: 7px 10px; font-size: .74rem; } .venta .lin .mini.rojo { padding: 7px 12px; }
  /* pie: totales a la izquierda, Cobrar a la derecha */
  .venta-pie { margin-top: 4px; padding-top: 8px; display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; align-items: center; }
  .venta-pie > .herr, .venta-pie > .fila-t, .venta-pie > .fila-btn { grid-column: 1 / -1; }
  .venta-pie .total { grid-column: 1; margin: 0; padding: 0; border: 0; display: block; font-size: 1.5rem; }
  .venta-pie .total span:first-child { display: block; font-size: .7rem; font-weight: 600; color: #6f6a5c; }
  .btn-cobrar { grid-column: 2; width: auto; padding: 14px 26px; font-size: 1.1rem; border-radius: 14px; }
  .btn-cobrar kbd { display: none; }
  .venta .herr { display: none; margin-bottom: 0; } .venta.ver-desc .herr { display: flex; }
  .venta .herr .mini { padding: 7px 12px; } .dto-rap .mini { padding: 7px 12px; }
  .fila-btn { margin-top: 0; gap: 6px; } .fila-btn button { padding: 9px 4px; font-size: .78rem; white-space: nowrap; }
  #b-dto.on { background: #fde7f3; border-color: #d81e8f; }
  .venta .espera { margin-bottom: 2px; }
}
#b-deshacer { border: 1.5px solid #e2d2b2; background: #fffaf0; border-radius: 99px; padding: 6px 12px; font-size: .78rem; font-weight: 700; color: #0a2a5e; cursor: pointer; }
@media (max-width: 980px) { .venta-pie > .fila-t:not(.desc) { display: none; } }
@media (max-width: 980px) { .venta.abierta { animation: subeHoja .22s ease-out; touch-action: pan-y; } }
@keyframes subeHoja { from { transform: translateY(40%); opacity: .4; } }


/* ================= vender: lo más rápido posible ================= */
/* buscador y barra de herramientas en la misma fila (computador) */
.cat-top { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.cat-top .buscador { flex: 1 1 260px; min-width: 200px; } .cat-top .buscador #q { padding-top: 9px; padding-bottom: 9px; }
.cat-top .cat-barra { margin: 0; flex: 0 1 auto; } .cat-top .cat-barra .atajos { display: none; }
.vender .cat { padding: 10px 12px; }
.ramas { margin-top: 6px; }
/* filas (forma por defecto) */
[data-id="catalogo"][data-forma="filas"] .grid.vis { grid-template-columns: 1fr !important; gap: 5px !important; }
.fila { display: grid; grid-template-columns: 54px minmax(0, 1fr) 210px; gap: 8px 10px; align-items: center; background: #fffaf0; border: 1px solid #e2d2b2; border-radius: 12px; padding: 5px 8px; }
.fila.en-venta { border-color: #12a150; box-shadow: 0 0 0 1.5px #12a150 inset; } .fila.eligiendo { background: #f4f9ff; }
.f-foto { width: 54px; height: 62px; border-radius: 9px; overflow: hidden; background: #f3e8d3; } .f-foto img { width: 100%; height: 100%; object-fit: cover; display: block; } .f-foto .noimg { height: 100%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; opacity: .5; }
.f-cuerpo { min-width: 0; }
.f-l1 { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; } .f-l1 b { color: #0a2a5e; font-size: .92rem; } .f-p { color: #d81e8f; font-weight: 700; font-size: .95rem; } .f-m { color: #8a7f65; font-size: .68rem; }
.f-l2 { display: flex; align-items: center; gap: 4px 12px; flex-wrap: wrap; margin-top: 3px; }
.f-cols { display: inline-flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.f-tl { display: inline-flex; gap: 5px; flex-wrap: wrap; align-items: center; }
.fila .col { min-height: 30px; padding: 3px 10px 3px 5px; font-size: .72rem; } .fila .col i { width: 15px; height: 15px; }
.fila .un-col { margin: 0; font-size: .72rem; }
.fila .talla { min-width: 40px; min-height: 36px; padding: 2px 7px; border: 1.5px solid #d9c9a8; background: #fff; border-radius: 9px; font-weight: 700; font-size: .84rem; color: #0a2a5e; cursor: pointer; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.05; position: relative; }
.fila .talla small { font-size: .58rem; font-weight: 600; color: #8a7f65; } .fila .talla.ult { border-color: #d81e8f; } .fila .talla:disabled { opacity: .35; cursor: not-allowed; }
.fila .talla.sel, .fila .talla.sel:hover { background: #0a4aa0; border-color: #0a4aa0; color: #fff; } .fila .talla.sel small { color: #cfe0fb; }
.fila .talla:hover:not(.sel):not(:disabled) { border-color: #0a4aa0; }
.f-acc { display: flex; gap: 6px; align-items: stretch; justify-content: flex-end; min-height: 38px; }
.f-acc .qty-s button { width: 28px; } .f-acc .b-add { padding: 4px 10px; font-size: .8rem; white-space: nowrap; }
.fila.eligiendo .f-acc { animation: entra .12s ease-out; }
@media (max-width: 760px) {
  .cat-top { display: block; } .cat-top .buscador { min-width: 0; }
  .fila { grid-template-columns: 46px minmax(0, 1fr); gap: 4px 8px; padding: 5px 6px; }
  .f-foto { width: 46px; height: 54px; grid-row: 1 / span 2; }
  .f-acc { grid-column: 2; min-height: 0; justify-content: stretch; } .f-acc:empty { display: none; } .f-acc .b-add { flex: 1; }
  .fila .talla { min-width: 42px; min-height: 40px; }
  .f-l1 b { font-size: .86rem; } .f-m { display: none; }
}
@media (min-width: 761px) {
  body.con-menu > header { margin-top: 8px; padding-top: 7px; padding-bottom: 7px; } body.con-menu > header h1 { font-size: 1.05rem; }
  nav#nav { margin-top: 6px; margin-bottom: 6px; } nav#nav button { padding: 6px 14px; }
}

/* ================================================================
   PULIDO VISUAL · vender
   ================================================================ */
.vender .cat, .vender .venta { border-radius: 20px; border: 1px solid #ecdfc3; box-shadow: 0 2px 4px rgba(60,45,20,.04), 0 14px 34px rgba(60,45,20,.09); background: linear-gradient(180deg, #fffdf8, #fff9ec); }

/* buscador */
.cat-top .buscador { position: relative; }
.cat-top .buscador #q { border: 2px solid #eadcbc; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236f6a5c' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") no-repeat 15px center / 19px; padding-left: 44px; border-radius: 16px; font-size: 1rem; box-shadow: 0 1px 2px rgba(60,45,20,.05); transition: border-color .15s, box-shadow .15s; }
.cat-top .buscador #q:focus { outline: none; border-color: #d81e8f; box-shadow: 0 0 0 4px rgba(216,30,143,.14); }
.cat-top .buscador #q::placeholder { color: #a39a82; }

/* barra de herramientas */
.cat-barra .hoy-chip { background: linear-gradient(120deg, #0a2a5e, #0a4aa0); box-shadow: 0 3px 10px rgba(10,42,94,.25); display: inline-flex; align-items: center; gap: 7px; }
.cat-barra .hoy-chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 0 rgba(74,222,128,.7); animation: latido 2s infinite; }
@keyframes latido { 70% { box-shadow: 0 0 0 7px rgba(74,222,128,0); } 100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); } }
.cat-barra select { border-color: #eadcbc; box-shadow: 0 1px 2px rgba(60,45,20,.05); }
.dens { box-shadow: 0 1px 2px rgba(60,45,20,.05); border-color: #eadcbc; } .dens button { transition: background .12s; } .dens button.on { background: #0a2a5e; color: #fff; }

/* filtros */
.ramas .chip { border: 1.5px solid #eadcbc; background: #fff; color: #0a2a5e; font-weight: 600; box-shadow: 0 1px 2px rgba(60,45,20,.04); transition: all .12s; }
.ramas .chip:hover { border-color: #d81e8f; transform: translateY(-1px); }
.ramas .chip.sel { background: linear-gradient(135deg, #d81e8f, #b0156f); border-color: transparent; color: #fff; box-shadow: 0 4px 12px rgba(216,30,143,.32); }
.grupo-f > span { color: #b0a58b; }

/* fila de prenda */
.fila { background: #fff; border: 1px solid #f0e4c8; border-radius: 16px; padding: 8px 12px 8px 14px; position: relative; box-shadow: 0 1px 2px rgba(60,45,20,.05); transition: box-shadow .15s, transform .15s, border-color .15s; overflow: hidden; }
.fila::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: #eadcbc; transition: background .15s; }
.fila:hover { box-shadow: 0 8px 22px rgba(60,45,20,.12); transform: translateY(-1px); border-color: #e3cf9f; }
.fila.eligiendo { background: linear-gradient(90deg, #eef5ff, #fff 55%); border-color: #bcd3f5; } .fila.eligiendo::before { background: #0a4aa0; }
.fila.en-venta { border-color: #bfe6cd; box-shadow: 0 0 0 1px #bfe6cd inset, 0 1px 2px rgba(60,45,20,.05); background: linear-gradient(90deg, #effaf3, #fff 55%); } .fila.en-venta::before { background: #12a150; }
.fila.en-venta.eligiendo::before { background: #0a4aa0; }
.f-foto { width: 58px; height: 66px; border-radius: 12px; box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 3px 8px rgba(60,45,20,.15); }
.f-l1 b { font-size: .98rem; font-weight: 700; letter-spacing: -.005em; }
.f-p { background: #fde7f3; color: #b0156f; border-radius: 99px; padding: 1px 10px; font-size: .86rem; }
.f-m { text-transform: capitalize; color: #9a8f74; }
.f-l2 { margin-top: 5px; gap: 6px 14px; }
.f-tl { padding-left: 12px; border-left: 2px solid #f1e7d0; }
.f-cols:empty + .f-tl { border-left: 0; padding-left: 0; }

/* colores */
.fila .col { border: 1.5px solid #eadcbc; background: #fff; color: #0a2a5e; transition: all .12s; }
.fila .col:hover:not(:disabled) { border-color: #0a4aa0; }
.fila .col.sel { background: #0a2a5e; border-color: #0a2a5e; color: #fff; box-shadow: 0 3px 9px rgba(10,42,94,.3); } .fila .col.sel i { box-shadow: 0 0 0 2px rgba(255,255,255,.85); }
.fila .un-col { background: #faf4e4; border-radius: 99px; padding: 4px 11px 4px 6px; border: 1px solid #f0e4c8; }

/* tallas con indicador de stock */
.fila .talla { border: 1.5px solid #e6d8b6; background: linear-gradient(180deg, #fff, #fbf6e9); border-radius: 11px; min-width: 44px; min-height: 42px; box-shadow: 0 1px 2px rgba(60,45,20,.06); transition: transform .1s, box-shadow .12s, border-color .12s, background .12s; }
.fila .talla::after { content: ""; position: absolute; top: 4px; right: 4px; width: 7px; height: 7px; border-radius: 50%; background: #12a150; }
.fila .talla.st-m::after { background: #f59e0b; } .fila .talla.st-b::after { background: #d81e8f; }
.fila .talla:hover:not(.sel):not(:disabled) { border-color: #0a4aa0; transform: translateY(-2px); box-shadow: 0 6px 14px rgba(10,74,160,.18); }
.fila .talla:active:not(:disabled) { transform: scale(.94); }
.fila .talla.sel, .fila .talla.sel:hover { background: linear-gradient(180deg, #1163c9, #0a4aa0); border-color: #0a4aa0; box-shadow: 0 6px 14px rgba(10,74,160,.38); transform: translateY(-2px); }
.fila .talla.sel::after { background: #fff; }
.fila .talla small { margin-top: 1px; }
.fila .talla .bd { top: -7px; right: -7px; left: auto; width: auto; height: 19px; background: #12a150; border: 2px solid #fff; box-shadow: 0 2px 5px rgba(0,0,0,.25); }
.fila .talla:has(.bd)::after { display: none; }

/* cantidad y agregar */
.qty-s { border: 1.5px solid #e6d8b6; border-radius: 99px; background: #fff; box-shadow: 0 1px 2px rgba(60,45,20,.06); }
.qty-s button { width: 30px; transition: background .1s; } .qty-s button:hover { background: #eef5ff; }
.b-add { background: linear-gradient(135deg, #16b35a, #0c8c43); border-radius: 99px; box-shadow: 0 4px 12px rgba(18,161,80,.38); transition: transform .1s, box-shadow .12s; position: relative; overflow: hidden; }
.b-add:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(18,161,80,.45); } .b-add:active { transform: scale(.97); }
.b-add::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent); transform: skewX(-20deg); animation: brilla 2.6s infinite 1s; }
@keyframes brilla { 60%, 100% { left: 130%; } }

/* venta actual */
.venta { padding: 0 0 12px; overflow: hidden; }
.venta-cab { background: linear-gradient(115deg, #0a2a5e, #0a4aa0 60%, #6a2a9a); color: #fff; padding: 12px 14px; margin: 0; border: 0; }
.venta-cab h2 { color: #fff; font-size: 1.05rem; } .venta-cab h2::before { display: none; }
.venta-cab .n { background: #fff; color: #0a2a5e; font-weight: 700; }
#b-deshacer { background: rgba(255,255,255,.16); border: 0; color: #fff; }
.venta .espera, #carrito, .venta-pie { margin-left: 14px; margin-right: 14px; }
#carrito { margin-top: 4px; }
.venta .lin { border-bottom: 1px dashed #eadcbc; } .venta .lin:last-child { border-bottom: 0; }
.venta .lin img, .venta .lin .sinf { border-radius: 10px; box-shadow: 0 2px 6px rgba(60,45,20,.18); }
.venta .lin .nom { color: #0a2a5e; } .venta .lin .imp { color: #0a2a5e; font-size: 1rem; }
.venta-pie { border-top: 0; background: #fff; border-radius: 16px; padding: 12px; box-shadow: 0 0 0 1px #f0e4c8 inset; }
.venta-pie .total { border-top: 0; font-size: 1.7rem; letter-spacing: -.02em; color: #0a2a5e; }
.btn-cobrar { background: linear-gradient(135deg, #16b35a, #0c8c43); border-radius: 16px; box-shadow: 0 6px 0 #0a6d34, 0 12px 22px rgba(18,161,80,.35); font-size: 1.15rem; letter-spacing: .01em; transition: transform .1s, box-shadow .1s; }
.btn-cobrar:hover:not(:disabled) { transform: translateY(-1px); } .btn-cobrar:active:not(:disabled) { transform: translateY(5px); box-shadow: 0 1px 0 #0a6d34; }
.btn-cobrar:disabled { background: #d8cfba; box-shadow: 0 4px 0 #bdb399; }
.fila-btn button { background: #fff; border-color: #eadcbc; border-radius: 12px; } .fila-btn button:hover { background: #f4f9ff; }
#carrito .empty { color: #a39a82; text-align: center; padding: 28px 10px; font-size: .85rem; }
#carrito .empty::before { content: "🛒"; display: block; font-size: 2rem; margin-bottom: 6px; opacity: .5; }
.dto-rap .mini { background: #fff; }

/* avisos */
#aviso { border-radius: 14px; background: #0a2a5e; box-shadow: 0 10px 28px rgba(10,42,94,.4); }

/* celular */
@media (max-width: 760px) {
  .vender .cat { border-radius: 16px; }
  .fila { padding: 7px 8px 7px 12px; } .f-foto { width: 48px; height: 56px; } .f-tl { padding-left: 0; border-left: 0; }
  .barra-venta .bv-ver { background: linear-gradient(120deg, #0a2a5e, #0a4aa0); backdrop-filter: blur(6px); }
  .barra-venta .bv-cobrar { background: linear-gradient(135deg, #16b35a, #0c8c43); }
  .venta { border-radius: 22px 22px 0 0; } .venta::before { display: none; }
  .venta-cab { border-radius: 22px 22px 0 0; position: relative; padding-top: 18px; }
  .venta-cab::before { content: ""; position: absolute; top: 7px; left: 50%; transform: translateX(-50%); width: 44px; height: 5px; border-radius: 9px; background: rgba(255,255,255,.45); }
  .cerrar-hoja { background: rgba(255,255,255,.18); color: #fff; }
}
.fila { padding-top: 6px; padding-bottom: 6px; } .f-foto { width: 54px; height: 62px; } .fila .talla { min-height: 38px; }
.f-l2 { margin-top: 3px; } .fila .col { min-height: 28px; }
@media (max-width: 760px) {
  .f-foto { width: 46px; height: 54px; } .fila { padding-top: 7px; padding-bottom: 7px; }
  .btn-cobrar { box-shadow: 0 4px 0 #0a6d34, 0 8px 16px rgba(18,161,80,.3); } .venta-pie { row-gap: 10px; }
}


/* ================================================================
   MENOS ESPACIO ARRIBA: más pantalla para las prendas
   ================================================================ */
body.con-menu > header { display: none !important; }
nav#nav { align-items: center; }
nav#nav #sucursal { width: auto; max-width: 160px; padding: 5px 10px; border-radius: 99px; border: 1.5px solid #e2d2b2; font-size: .78rem; background: #fff; color: #0a2a5e; font-weight: 600; }
nav#nav #modo { font-size: 0; width: 10px; height: 10px; padding: 0; border-radius: 50%; background: #12a150; box-shadow: 0 0 0 3px rgba(18,161,80,.2); flex: none; margin-left: auto; }
nav#nav #modo + .pd-btn { margin-left: 8px; }
nav#nav .pd-btn { margin-left: 8px; }
.ramas:empty { display: none; }
.hoy-chip small { font-weight: 500; opacity: .85; }

@media (min-width: 761px) {
  nav#nav { margin-top: 10px; margin-bottom: 8px; }
  .vender .cat { padding-top: 10px; }
  .cat-top { margin-bottom: 6px; } .ramas { margin-top: 0; margin-bottom: 8px; }
}

@media (max-width: 760px) {
  /* selector de vista: bien delgado */
  .vistas-top { padding: 3px 8px !important; } .vistas-top .vistas { padding: 2px; } .vistas-top .v-op { padding: 5px 4px; font-size: .7rem; } .vistas-top .v-op span { font-size: .8rem; }
  /* pestañas en una sola línea baja */
  nav#nav { gap: 4px !important; margin: 6px 8px 4px !important; }
  nav#nav button { flex-direction: row !important; gap: 5px !important; padding: 8px 4px !important; font-size: .76rem !important; border-radius: 12px !important; justify-content: center; }
  nav#nav button svg { width: 16px !important; height: 16px !important; }
  nav#nav #sucursal { flex: 1; max-width: none; } nav#nav #modo { display: none; }
  /* buscador, total de hoy y orden en UNA fila */
  .vender .cat { padding: 6px !important; border-radius: 14px; }
  .cat-top { display: flex !important; gap: 6px; align-items: center; flex-wrap: nowrap; margin-bottom: 5px; }
  .cat-top .buscador { flex: 1; min-width: 0; } .cat-top .buscador #q { padding-top: 8px; padding-bottom: 8px; font-size: .95rem; border-radius: 13px; }
  .cat-top .cat-barra { display: flex; gap: 6px; flex-wrap: nowrap; margin: 0; flex: none; align-items: center; }
  .cat-barra .hoy-chip { padding: 8px 11px; font-size: .78rem; } .cat-barra .hoy-chip .h-l, .cat-barra .hoy-chip small { display: none; }
  .cat-barra select { flex: none; width: 40px; height: 38px; padding: 0; color: transparent; appearance: none; -webkit-appearance: none; border-radius: 12px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a2a5e' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 4v16M4 8l4-4 4 4M16 20V4M12 16l4 4 4-4'/%3E%3C/svg%3E") no-repeat center / 20px; }
  .cat-barra select option { color: #0a2a5e; }
  .ramas { margin: 0 0 4px; } .ramas .chip { padding: 4px 11px; font-size: .74rem; }
  #s-vender { padding-bottom: 120px; }
}


/* ================================================================
   FOTOS GRANDES, SIN MARCO · al tocar una se abre su selección
   ================================================================ */
[data-id="catalogo"]:not([data-forma]) .grid.vis, [data-id="catalogo"][data-forma="fotos"] .grid.vis { grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)) !important; gap: 18px 14px !important; padding: 6px 4px 14px; }
.ft { position: relative; display: block; padding: 0; border: 0; background: #f0e6d0; cursor: pointer; text-align: left; border-radius: 20px; overflow: hidden; aspect-ratio: 3 / 4; box-shadow: 0 10px 24px rgba(40,30,10,.22), 0 2px 5px rgba(40,30,10,.12); transition: transform .18s, box-shadow .18s; font-family: inherit; }
.ft:hover { transform: translateY(-4px) scale(1.02); box-shadow: 0 18px 34px rgba(40,30,10,.3); } .ft:active { transform: scale(.97); }
.ft img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s; } .ft:hover img { transform: scale(1.05); }
.ft .noimg { height: 100%; display: flex; align-items: center; justify-content: center; font-size: 3rem; opacity: .4; }
.ft::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 52%; background: linear-gradient(to top, rgba(8,18,45,.82), rgba(8,18,45,.45) 55%, transparent); pointer-events: none; }
.ft-info { position: absolute; left: 11px; right: 11px; bottom: 10px; z-index: 2; color: #fff; }
.ft-info b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .84rem; line-height: 1.18; font-weight: 700; text-shadow: 0 1px 4px rgba(0,0,0,.5); }
.ft-p { display: inline-block; margin-top: 4px; background: #fff; color: #b0156f; font-weight: 700; font-size: .84rem; border-radius: 99px; padding: 1px 10px; box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.ft-dots { position: absolute; top: 10px; left: 10px; z-index: 2; display: flex; gap: 4px; } .ft-dots i { width: 13px; height: 13px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.4); display: block; }
.ft-en, .ft-ult { position: absolute; top: 9px; right: 9px; z-index: 2; font-style: normal; font-weight: 700; border-radius: 99px; box-shadow: 0 3px 10px rgba(0,0,0,.35); }
.ft-en { background: #12a150; color: #fff; min-width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; font-size: .86rem; border: 2px solid #fff; }
.ft-ult { background: #d81e8f; color: #fff; font-size: .66rem; padding: 3px 9px; }
.ft.en-venta { box-shadow: 0 0 0 3px #12a150, 0 12px 26px rgba(18,161,80,.38); }

/* ventana de selección */
.sx-velo { position: fixed; inset: 0; z-index: 170; background: rgba(15,23,42,.62); display: flex; align-items: center; justify-content: center; padding: 14px; margin: 0 !important; backdrop-filter: blur(2px); animation: sxFondo .15s ease-out; }
@keyframes sxFondo { from { opacity: 0; } }
.sx { position: relative; background: #fffaf0; border-radius: 26px; width: min(780px, 100%); max-height: 94vh; overflow: auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); grid-template-areas: "ventas ventas" "foto top" "foto abajo"; grid-template-rows: auto auto 1fr; gap: 0 22px; padding: 20px; box-shadow: 0 30px 80px rgba(0,0,0,.5); animation: sxEntra .2s ease-out; }
@keyframes sxEntra { from { transform: translateY(18px) scale(.97); opacity: .4; } }
.sx-x { position: absolute; top: 12px; right: 12px; z-index: 5; border: 0; width: 36px; height: 36px; border-radius: 50%; background: rgba(15,23,42,.08); color: #0a2a5e; font-size: 1.05rem; cursor: pointer; } .sx-x:hover { background: rgba(15,23,42,.18); }
.sx-foto { grid-area: foto; }
.sx-foto > img, .sx-foto > .noimg { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 22px; display: block; box-shadow: 0 16px 36px rgba(40,30,10,.3); background: #f0e6d0; }
.sx-foto .noimg { display: flex; align-items: center; justify-content: center; font-size: 4rem; opacity: .4; }
.sx-mini { display: flex; gap: 8px; margin-top: 12px; overflow-x: auto; padding: 2px 2px 6px; } .sx-mini img { width: 52px; height: 62px; object-fit: cover; border-radius: 12px; cursor: pointer; flex: none; box-shadow: 0 3px 8px rgba(40,30,10,.25); opacity: .7; transition: all .12s; } .sx-mini img.on { opacity: 1; box-shadow: 0 0 0 3px #d81e8f, 0 3px 8px rgba(40,30,10,.25); }
.sx-top { grid-area: top; padding-top: 4px; padding-right: 40px; } .sx-top h3 { margin: 0 0 6px; font-size: 1.35rem; line-height: 1.15; color: #0a2a5e; }
.sx-pm { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; } .sx-pm .f-p { font-size: 1.1rem; padding: 3px 14px; }
.sx-l { font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: #8a7f65; margin: 12px 0 6px; }
.sx-top .cols { display: flex; flex-wrap: wrap; gap: 6px; } .sx-top .col { min-height: 38px; padding: 5px 13px 5px 7px; font-size: .84rem; }
.sx-top .col.sel { background: #0a2a5e; color: #fff; border-color: #0a2a5e; box-shadow: 0 4px 12px rgba(10,42,94,.32); }
.sx-abajo { grid-area: abajo; display: flex; flex-direction: column; }
.sx-tallas { display: flex; flex-wrap: wrap; gap: 8px; }
.sx-tallas .talla { position: relative; min-width: 60px; min-height: 56px; padding: 4px 10px; border: 1.5px solid #e6d8b6; background: linear-gradient(180deg, #fff, #fbf6e9); border-radius: 14px; font-weight: 700; font-size: 1.05rem; color: #0a2a5e; cursor: pointer; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; box-shadow: 0 1px 3px rgba(60,45,20,.08); transition: transform .1s, box-shadow .12s; }
.sx-tallas .talla small { font-size: .62rem; font-weight: 600; color: #8a7f65; }
.sx-tallas .talla::after { content: ""; position: absolute; top: 6px; right: 6px; width: 8px; height: 8px; border-radius: 50%; background: #12a150; } .sx-tallas .talla.st-m::after { background: #f59e0b; } .sx-tallas .talla.st-b::after { background: #d81e8f; }
.sx-tallas .talla:hover:not(.sel):not(:disabled) { border-color: #0a4aa0; transform: translateY(-2px); box-shadow: 0 8px 16px rgba(10,74,160,.2); }
.sx-tallas .talla.sel { background: linear-gradient(180deg, #1163c9, #0a4aa0); border-color: #0a4aa0; color: #fff; box-shadow: 0 8px 18px rgba(10,74,160,.4); transform: translateY(-2px); } .sx-tallas .talla.sel small { color: #cfe0fb; } .sx-tallas .talla.sel::after { background: #fff; }
.sx-tallas .talla:disabled { opacity: .35; cursor: not-allowed; }
.sx-tallas .talla .bd { position: absolute; top: -7px; right: -7px; left: auto; background: #12a150; color: #fff; border-radius: 99px; min-width: 20px; height: 20px; font-size: .7rem; font-style: normal; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; box-shadow: 0 2px 5px rgba(0,0,0,.3); }
.sx-tallas .talla:has(.bd)::after { display: none; }
.sx-add { display: flex; gap: 10px; align-items: stretch; margin-top: auto; padding-top: 18px; min-height: 76px; }
.sx-add .qty-s { align-self: center; } .sx-add .qty-s button { width: 40px; height: 44px; font-size: 1.3rem; } .sx-add .qty-s b { min-width: 30px; font-size: 1.15rem; }
.sx-add .b-add { flex: 1; font-size: 1.1rem; padding: 12px 14px; border-radius: 16px; } .sx-add .b-add small { font-size: .78rem; }
.sx-ayuda { color: #a39a82; font-size: .86rem; align-self: center; }

@media (max-width: 760px) {
  [data-id="catalogo"]:not([data-forma]) .grid.vis, [data-id="catalogo"][data-forma="fotos"] .grid.vis { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 12px 9px !important; padding: 4px 2px 10px; }
  .ft { border-radius: 15px; box-shadow: 0 6px 14px rgba(40,30,10,.22); } .ft-info { left: 7px; right: 7px; bottom: 7px; } .ft-info b { font-size: .7rem; } .ft-p { font-size: .74rem; padding: 0 7px; margin-top: 3px; }
  .ft-dots { top: 6px; left: 6px; } .ft-dots i { width: 10px; height: 10px; border-width: 1.5px; } .ft-en { top: 5px; right: 5px; min-width: 22px; height: 22px; font-size: .74rem; } .ft-ult { top: 5px; right: 5px; font-size: .56rem; padding: 2px 6px; }
  .sx-velo { align-items: flex-end; padding: 0; }
  .sx { width: 100%; border-radius: 24px 24px 0 0; grid-template-columns: 34% minmax(0, 1fr); grid-template-areas: "ventas ventas" "foto top" "abajo abajo"; grid-template-rows: auto auto auto; gap: 8px 14px; padding: 16px 14px calc(14px + env(safe-area-inset-bottom)); }
  .sx-foto > img, .sx-foto > .noimg { border-radius: 16px; } .sx-mini { margin-top: 8px; } .sx-mini img { width: 38px; height: 46px; }
  .sx-top h3 { font-size: 1.05rem; } .sx-pm { margin-bottom: 4px; } .sx-l { margin: 6px 0 4px; }
  .sx-tallas .talla { min-width: 56px; min-height: 52px; } .sx-add { padding-top: 10px; min-height: 0; }
}


/* ===== varias ventas abiertas: pestañas ===== */
.vtabs { display: flex; gap: 6px; overflow-x: auto; padding: 2px 2px 6px; margin: 0 0 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.vtabs::-webkit-scrollbar { display: none; }
.vt { flex: none; display: inline-flex; align-items: center; gap: 6px; border: 2px solid color-mix(in srgb, var(--c) 35%, #fff); background: #fff; border-radius: 99px; padding: 5px 6px 5px 10px; font-size: .8rem; font-weight: 700; color: #26324d; cursor: pointer; max-width: 70vw; transition: transform .1s; }
.vt:active { transform: scale(.97); }
.vt.on { background: var(--c); border-color: var(--c); color: #fff; box-shadow: 0 3px 10px color-mix(in srgb, var(--c) 45%, transparent); }
.vt-d { width: 9px; height: 9px; border-radius: 50%; background: var(--c); flex: none; } .vt.on .vt-d { background: #fff; }
.vt-n { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 120px; }
.vt-c { background: var(--c); color: #fff; border-radius: 99px; min-width: 20px; height: 20px; padding: 0 6px; display: inline-flex; align-items: center; justify-content: center; font-size: .72rem; } .vt.on .vt-c { background: #fff; color: var(--c); }
.vt-t { font-size: .74rem; opacity: .85; white-space: nowrap; } .vt-t.vacia { opacity: .55; font-weight: 600; }
.vt-x, .vt-e { border: 0; background: rgba(0,0,0,.08); color: inherit; width: 22px; height: 22px; border-radius: 50%; cursor: pointer; font-size: .7rem; line-height: 1; padding: 0; flex: none; } .vt.on .vt-x, .vt.on .vt-e { background: rgba(255,255,255,.25); }
.vt-nueva { flex: none; border: 2px dashed #9fb3d6; background: #f3f7ff; color: #0a4aa0; border-radius: 99px; padding: 6px 14px; font: 700 .8rem/1 inherit; font-family: inherit; cursor: pointer; white-space: nowrap; }
.cat-top > .vtabs { padding-top: 4px; }
.sx-ventas { grid-area: ventas; padding: 0; margin: 0 46px 2px 0; min-width: 0; }
.sx-envta { margin: 8px 0 4px; } .sx-ev { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px solid #ead9bd; font-weight: 700; color: #0a2a5e; }
.sx-ev i { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 6px; border: 1px solid rgba(0,0,0,.2); }

/* pestañas de ventas: ocupan toda la fila encima de la búsqueda (también en el celular) */
.cat-top > .vtabs { flex: 0 0 100%; width: 100%; min-width: 0; order: -1; }
@media (max-width: 700px) { .cat-top { flex-wrap: wrap !important; } .cat-top > .vtabs { margin-bottom: 2px; } }

/* miniatura de la prenda en cada venta del historial */
.v-prendas { gap: 6px 14px; }
.v-prendas > span { display: inline-flex; align-items: center; gap: 7px; }
.v-mini { width: 42px; height: 50px; border-radius: 9px; object-fit: cover; flex: none; background: #f3e8d3; box-shadow: 0 1px 4px rgba(60,45,20,.18); }
.v-mini.sinf { display: inline-flex; align-items: center; justify-content: center; font-size: 1.15rem; font-style: normal; opacity: .55; }
.vrow.anulada .v-mini { filter: grayscale(1); opacity: .6; }

/* recibo: miniatura de cada prenda */
.ticket .it { display: flex; gap: 8px; align-items: flex-start; margin: 5px 0; }
.ticket .tk-img { width: 34px; height: 42px; object-fit: cover; border-radius: 4px; flex: none; border: 1px solid #ccc; }
.ticket .tk-t { flex: 1; min-width: 0; }

/* ===== Cambio de prenda (todo el personal) ===== */
.v-acc .v-cam { background: #f3ecff; border-color: #cdb8f5; color: #5b21b6; font-weight: 700; }
.cx-velo { position: fixed; inset: 0; z-index: 250; background: rgba(15,23,42,.72); display: flex; align-items: center; justify-content: center; padding: 10px; }
.cx { background: #fffaf0; border-radius: 22px; width: min(680px, 100%); max-height: 94vh; display: flex; flex-direction: column; box-shadow: 0 30px 80px rgba(0,0,0,.5); overflow: hidden; }
.cx-cab { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid #ead9bd; background: #fff; }
.cx-cab h3 { margin: 0; flex: 1; font-size: 1.05rem; color: #0a2a5e; }
.cx-x, .cx-at { border: 0; width: 38px; height: 38px; border-radius: 50%; background: #f3e8d3; color: #0a2a5e; font-size: 1.05rem; cursor: pointer; flex: none; }
.cx-cuerpo { overflow-y: auto; padding: 12px 14px 16px; flex: 1; -webkit-overflow-scrolling: touch; }
.cx-fila { width: 100%; display: flex; align-items: center; gap: 10px; text-align: left; border: 2px solid #ead9bd; background: #fff; border-radius: 14px; padding: 8px 10px; margin-bottom: 8px; cursor: pointer; font-family: inherit; }
.cx-fila:active { border-color: #7c3aed; }
.cx-fila span { flex: 1; min-width: 0; } .cx-fila b { display: block; color: #0a2a5e; } .cx-fila small { color: #6f6a5c; } .cx-fila em { font-style: normal; font-size: 1.4rem; color: #7c3aed; }
.cx-res { display: flex; align-items: center; gap: 10px; background: #f3ecff; border: 2px solid #cdb8f5; border-radius: 14px; padding: 8px 10px; margin-bottom: 8px; }
.cx-res span { flex: 1; min-width: 0; } .cx-res b { display: block; color: #0a2a5e; } .cx-res small { display: block; color: #6f6a5c; }
.cx-q { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: center; } .cx-q button { width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid #cdb8f5; background: #fff; font-size: 1.1rem; font-weight: 700; color: #5b21b6; cursor: pointer; } .cx-q b { min-width: 22px; text-align: center; }
.cx-nota { margin: 0 0 8px; font-size: .78rem; color: #6f6a5c; }
.cx-buscar { width: 100%; box-sizing: border-box; padding: 11px 14px; border: 2px solid #eadcbc; border-radius: 14px; font: inherit; background: #fff; margin-bottom: 10px; }
.cx-buscar:focus { outline: none; border-color: #7c3aed; }
.cx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 8px; }
.cx-t { position: relative; border: 2px solid #ead9bd; border-radius: 14px; background: #fff; padding: 0 0 7px; overflow: hidden; cursor: pointer; text-align: left; font-family: inherit; display: flex; flex-direction: column; }
.cx-t:active { transform: scale(.98); } .cx-t.on { border-color: #7c3aed; box-shadow: 0 0 0 3px rgba(124,58,237,.2); }
.cx-t img, .cx-sf { width: 100%; aspect-ratio: 1 / 1.1; object-fit: cover; display: block; background: #f3e8d3; } .cx-sf { display: flex; align-items: center; justify-content: center; font-size: 2rem; opacity: .5; }
.cx-t b { font-size: .8rem; color: #0a2a5e; padding: 5px 8px 0; line-height: 1.2; } .cx-p { font-size: .82rem; font-weight: 800; color: #b8157a; padding: 0 8px; }
.cx-t.dis { opacity: .5; cursor: not-allowed; } .cx-b { font-style: normal; font-size: .64rem; font-weight: 700; color: #b91c1c; padding: 2px 8px 0; }
.cx-vp { background: #fff; border: 2px solid #7c3aed; border-radius: 14px; padding: 10px 12px; margin-bottom: 10px; }
.cx-vt { color: #0a2a5e; margin-bottom: 4px; } .cx-vt span { color: #b8157a; font-weight: 800; margin-left: 6px; }
.cx-l { font-size: .74rem; font-weight: 700; color: #6f6a5c; margin: 8px 0 4px; text-transform: uppercase; letter-spacing: .03em; }
.cx-chs { display: flex; flex-wrap: wrap; gap: 6px; }
.cx-ch { min-height: 44px; min-width: 52px; padding: 6px 14px; border: 2px solid #d9c9a8; background: #fff; border-radius: 12px; font: 700 .92rem/1.1 inherit; font-family: inherit; color: #0a2a5e; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; flex-direction: row; }
.cx-ch.on { background: #0a2a5e; color: #fff; border-color: #0a2a5e; } .cx-ch i { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0,0,0,.25); }
.cx-ch.talla-b { flex-direction: column; gap: 0; } .cx-ch small { font-size: .62rem; font-weight: 500; color: #6f6a5c; } .cx-ch:disabled { opacity: .4; cursor: not-allowed; }
.cx-ch.talla-b:not(:disabled):active { background: #7c3aed; color: #fff; border-color: #7c3aed; } .cx-ch.talla-b:not(:disabled):active small { color: #fff; }
.cx-dos { display: flex; align-items: stretch; gap: 8px; }
.cx-lado { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; background: #fff; border: 2px solid #ead9bd; border-radius: 14px; padding: 10px 6px; }
.cx-lado .v-mini { width: 64px; height: 78px; } .cx-lado b { color: #0a2a5e; font-size: .88rem; } .cx-lado small { color: #6f6a5c; }
.cx-flecha { align-self: center; font-size: 1.4rem; color: #7c3aed; }
.cx-dif { margin: 10px 0; padding: 12px; border-radius: 12px; text-align: center; font-weight: 800; background: #eef5ff; color: #0a4aa0; }
.cx-dif.pagar { background: #fff3cd; color: #8a4b00; } .cx-dif.favor { background: #e7f6ec; color: #0c6b34; }
.cx-preg { margin: 12px 0 8px; padding: 10px 12px; background: #f3ecff; border-radius: 12px; display: flex; flex-direction: column; gap: 2px; color: #3b1a7a; }
.cx-bs { display: flex; flex-direction: column; gap: 8px; } .cx-bs button { border: 0; border-radius: 14px; padding: 15px 12px; font: 700 1rem/1.2 inherit; font-family: inherit; cursor: pointer; } .cx-bs button:disabled { opacity: .55; }
.cx-err { margin: 10px 0 0; padding: 10px 12px; background: #fde2e2; color: #b91c1c; border-radius: 12px; font-weight: 600; font-size: .85rem; }
@media (max-width: 700px) { .cx-velo { padding: 0; align-items: flex-end; } .cx { width: 100%; border-radius: 22px 22px 0 0; max-height: 94dvh; } .cx-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ventana de selección: todas las fotos del modelo para tocar la que se vende */
.sx-fotos { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; margin-bottom: 4px; }
.sx-pf { position: relative; border: 2.5px solid transparent; border-radius: 14px; padding: 0; background: #fff; overflow: hidden; cursor: pointer; box-shadow: 0 2px 8px rgba(60,45,20,.18); display: flex; flex-direction: column; font-family: inherit; }
.sx-pf:active { transform: scale(.97); }
.sx-pf img, .sx-pf .sx-sinf { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; } .sx-pf .sx-sinf { opacity: .55; }
.sx-pf .sx-pc { display: flex; align-items: center; gap: 4px; padding: 3px 6px 5px; font-size: .68rem; font-weight: 700; color: #0a2a5e; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sx-pf .sx-pc i { width: 9px; height: 9px; border-radius: 50%; flex: none; border: 1px solid rgba(0,0,0,.25); }
.sx-pf.sel { border-color: #0a4aa0; box-shadow: 0 0 0 3px rgba(10,74,160,.28); } .sx-pf.mismo { border-color: #9fb7e0; }
.sx-pf .sx-n { position: absolute; top: 4px; right: 4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; background: #12a150; color: #fff; font-size: .7rem; font-style: normal; font-weight: 700; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 6px rgba(0,0,0,.3); }
@media (max-width: 700px) { .sx-fotos { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; } }

/* ===== Venta rápida ===== */
.rv-btn { border: 0; border-radius: 99px; padding: 8px 14px; background: linear-gradient(135deg, #f59e0b, #d97706); color: #fff; font: 800 .8rem/1 inherit; font-family: inherit; cursor: pointer; white-space: nowrap; box-shadow: 0 3px 10px rgba(217,119,6,.4); flex: none; }
.rv-btn:active { transform: scale(.97); }
.rv-otro { width: 92px; min-height: 44px; box-sizing: border-box; border: 2px solid #d9c9a8; border-radius: 12px; padding: 0 10px; font: 700 .95rem inherit; font-family: inherit; background: #fff; color: #0a2a5e; } .rv-otro.on { border-color: #0a2a5e; background: #eef5ff; } .rv-otro:focus { outline: none; border-color: #7c3aed; }
.rv-fila { display: flex; gap: 12px; align-items: flex-end; margin-top: 2px; }
.rv-add { width: 100%; margin-top: 12px; border: 0; border-radius: 14px; padding: 14px; font: 800 1rem/1.2 inherit; font-family: inherit; cursor: pointer; } .rv-add:disabled { opacity: .45; cursor: not-allowed; }
.rv-lin { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid #ead9bd; } .rv-lin span { flex: 1; min-width: 0; } .rv-lin b { display: block; color: #0a2a5e; } .rv-lin small { color: #6f6a5c; } .rv-lin em { font-style: normal; font-weight: 800; color: #0a2a5e; }
.rv-lin button { border: 0; background: #f3e8d3; width: 30px; height: 30px; border-radius: 50%; cursor: pointer; color: #b91c1c; }
.v-mini.sinf.rap { opacity: 1; background: #fff3cd; color: #b45309; font-size: 1.3rem; }

.cx-chs .rv-otro { width: 118px; flex: none; }

/* prenda rápida dentro de la venta abierta (act. 41) */
.lin .sinf.rap { background: linear-gradient(135deg, #fde9bd, #f5c26b); color: #b45309; font-size: 1.5rem; }
.lin-rap .sub { color: #b45309; }
.fila-btn .rap-b { color: #b45309; font-weight: 800; }

/* tallas a un toque en cada prenda + cabecera fija del catálogo en el celular */
.fq { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fq > .ft { width: 100%; }
.fq-q { background: #fff; border: 1.5px solid #ecdfc3; border-radius: 14px; padding: 6px; display: flex; flex-direction: column; gap: 6px; }
.fq-cols { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.fq-c { position: relative; width: 30px; height: 30px; border-radius: 50%; border: 2px solid #fff; background: var(--c); box-shadow: 0 0 0 1.5px #cdbd9c; cursor: pointer; padding: 0; }
.fq-c::before { content: ""; position: absolute; inset: -8px; }
.fq-c.sel { box-shadow: 0 0 0 3px #0a4aa0; }
.fq-cn { margin-left: auto; font-size: .7rem; font-weight: 700; color: #6f6a5c; }
.fq-tw { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
.fq > .ft { aspect-ratio: 4 / 5; }
.fq-t { position: relative; min-width: 0; min-height: 46px; border: 2px solid #e2d2b2; background: #fffaf0; color: #0a2a5e; border-radius: 11px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-family: inherit; cursor: pointer; padding: 0 2px; line-height: 1.05; -webkit-touch-callout: none; user-select: none; touch-action: manipulation; }
.fq-t b { font-size: .88rem; } .fq-t small { font-size: .58rem; color: #8a8068; }
.fq-t.ult { border-color: #f59e0b; } .fq-t.en { background: #12a150; border-color: #12a150; color: #fff; } .fq-t.en small { color: #d9f6e5; }
.fq-t:disabled { opacity: .35; text-decoration: line-through; cursor: not-allowed; } .fq-t:active { transform: scale(.94); }
.fq-n { position: absolute; top: -7px; right: -5px; min-width: 20px; height: 20px; border-radius: 99px; background: #0a2a5e; color: #fff; font-size: .7rem; font-style: normal; font-weight: 800; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; padding: 0 3px; }
@media (max-width: 760px) {
  [data-id="catalogo"]:not([data-forma]) .grid.vis, [data-id="catalogo"][data-forma="fotos"] .grid.vis { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 14px 10px !important; }
  .ft-info b { font-size: .8rem; } .ft-p { font-size: .84rem; padding: 1px 9px; }
  .cat-cab { position: sticky; top: var(--cab-top, 0px); z-index: 45; background: #fffaf0; margin: 0 -10px 4px; padding: 6px 10px 2px; transition: transform .22s ease; box-shadow: 0 8px 10px -9px rgba(40,30,10,.45); }
  .cat-cab.oculta { transform: translateY(-110%); box-shadow: none; }
}


/* ================= Ventas (historial) y Caja: mismo lenguaje del Panel y de la tienda ================= */
/* barra de fecha, búsqueda y formas de pago */
.h-ctl { gap: 10px; margin-bottom: 12px; }
.h-fecha { background: #fff; border-color: #e2d2b2; }
.h-fecha button { min-height: 44px; min-width: 44px; }
.h-fecha button.hoy { padding: 0 16px; color: #0a4aa0; background: #e7eefa; }
.h-fecha input { font: 600 .9rem inherit; font-family: inherit; color: #0a2a5e; min-height: 44px; }
#h-q { -webkit-appearance: none; appearance: none; min-height: 44px; padding: 0 16px 0 42px; border: 1.5px solid #e2d2b2; border-radius: 99px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d81e8f' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-4-4'/%3E%3C/svg%3E") 14px center / 18px no-repeat; font-size: .9rem; }
#h-q:focus { outline: none; border-color: #d81e8f; box-shadow: 0 0 0 3px #fde7f3; }
.h-pagos { flex: 1 1 100%; gap: 8px; }
.h-pagos button { min-height: 40px; padding: 0 14px; font-weight: 600; border-color: color-mix(in srgb, var(--c, #e2d2b2) 38%, #e2d2b2); }
.h-pagos button b { color: var(--c, #0a2a5e); }
.h-pagos button.on { background: color-mix(in srgb, var(--c, #d81e8f) 13%, #fff); border-color: var(--c, #d81e8f); color: #0a2a5e; }

/* encabezado azul con el total y las horas del día */
.hv-hero { position: relative; overflow: hidden; color: #fff; border-radius: 18px; padding: 16px 18px 14px; margin-bottom: 12px; background: linear-gradient(110deg, #0a2a5e 0%, #0a4aa0 62%, #3b78d6 100%); box-shadow: 0 1px 3px rgba(60,45,20,.1), 0 8px 24px rgba(60,45,20,.12); }
.hv-hero::after { content: ""; position: absolute; right: -50px; top: -90px; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, rgba(216,30,143,.55), transparent 68%); pointer-events: none; }
.hv-hero > * { position: relative; z-index: 1; }
.hv-hero small { display: inline-block; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.5); border-radius: 99px; padding: 2px 12px; font-size: .64rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.hv-hero > b { display: block; font-size: 2.5rem; font-weight: 700; line-height: 1.1; letter-spacing: -.03em; margin-top: 6px; font-variant-numeric: tabular-nums; }
.hv-hero > span { display: block; font-size: .82rem; color: #dbe6fb; }
.hv-graf { margin-top: 12px; max-width: 520px; }
.hv-hero .gh svg { height: 78px; } .hv-hero .gh text { fill: #c9d8f5; } .hv-hero .gh-fondo { fill: rgba(255,255,255,.16); } .hv-hero .gh-barra { fill: #a9c6f7; } .hv-hero .gh-pico { fill: #ff7cc4; } .hv-hero .gh-nota { color: #dbe6fb; }

/* tarjetas de venta */
.h-lista { gap: 10px; }
.vc { background: #fff; border: 1px solid #e2d2b2; border-radius: 16px; padding: 12px 14px; display: flex; flex-direction: column; gap: 9px; box-shadow: 0 1px 3px rgba(60,45,20,.07); }
.vc.anulada { opacity: .6; background: #faf3f3; } .vc.anulada .vc-tot { text-decoration: line-through; } .vc.anulada .v-mini { filter: grayscale(1); opacity: .6; }
.vc-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.vc-hora { font-weight: 700; font-size: .8rem; color: #0a4aa0; background: #e7eefa; border-radius: 99px; padding: 3px 11px; font-variant-numeric: tabular-nums; }
.vc-tk { font-size: .74rem; font-weight: 600; color: #6f6a5c; }
.vc-pago { font-size: .72rem; font-weight: 700; border-radius: 99px; padding: 3px 10px; background: color-mix(in srgb, var(--c) 13%, #fff); color: var(--c); white-space: nowrap; }
.vc-tot { margin-left: auto; font-size: 1.3rem; color: #0a2a5e; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.vc-items { display: flex; flex-direction: column; gap: 7px; }
.vc-it { display: flex; align-items: center; gap: 10px; }
.vc-it .v-mini { width: 38px; height: 46px; }
.vc-it .v-txt b { display: block; font-size: .86rem; color: #0a2a5e; line-height: 1.25; } .vc-it .v-txt small { font-size: .72rem; color: #6f6a5c; }
.vc-meta { font-size: .72rem; color: #6f6a5c; } .vc .dev { color: #b91c1c; font-size: .72rem; font-style: normal; }
.vc-acc { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; border-top: 1px solid #f1e6d0; padding-top: 9px; }
.vc-acc button { min-height: 40px; border: 1.5px solid #e2d2b2; background: #fffaf0; border-radius: 99px; padding: 0 14px; cursor: pointer; font-size: .78rem; font-weight: 700; color: #0a2a5e; }
.vc-acc button:hover { border-color: #0a4aa0; } .vc-acc .v-del { margin-left: auto; min-width: 40px; padding: 0; }
.vc-vacio { text-align: center; padding: 34px 10px; color: #6f6a5c; } .vc-vacio span { display: block; font-size: 2.2rem; } .vc-vacio b { color: #0a2a5e; font-size: .95rem; }

/* caja */
.cj-fecha { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.cj-fecha label { margin: 0; font-weight: 700; color: #0a2a5e; }
.cj-fecha input[type=date] { width: auto; min-height: 44px; border: 1.5px solid #e2d2b2; border-radius: 99px; padding: 0 14px; background: #fff; font: 600 .9rem inherit; font-family: inherit; color: #0a2a5e; }
.cj-hoy { min-height: 44px; border: 1.5px solid #e2d2b2; background: #e7eefa; border-radius: 99px; padding: 0 18px; font-weight: 700; color: #0a4aa0; cursor: pointer; font-family: inherit; }
.cj-hero { position: relative; overflow: hidden; color: #fff; border-radius: 18px; padding: 16px 18px; background: linear-gradient(110deg, #0a2a5e 0%, #0a4aa0 62%, #3b78d6 100%); box-shadow: 0 1px 3px rgba(60,45,20,.1), 0 8px 24px rgba(60,45,20,.12); }
.cj-hero::after { content: ""; position: absolute; right: -50px; top: -90px; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, rgba(216,30,143,.55), transparent 68%); pointer-events: none; }
.cj-hero > * { position: relative; z-index: 1; }
.cj-hero small { display: inline-block; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.5); border-radius: 99px; padding: 2px 12px; font-size: .64rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.cj-hero b { display: block; font-size: 2.5rem; font-weight: 700; line-height: 1.1; letter-spacing: -.03em; margin: 6px 0 10px; font-variant-numeric: tabular-nums; }
.cj-bar { display: flex; gap: 2px; height: 10px; border-radius: 99px; overflow: hidden; background: rgba(255,255,255,.2); } .cj-bar i { display: block; height: 100%; }
.cj-met { display: flex; flex-direction: column; gap: 8px; margin: 10px 0; }
.cj-met > div { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 12px; background: #fff; border: 1px solid #e2d2b2; border-left: 5px solid var(--c); border-radius: 14px; padding: 8px 14px 8px 12px; }
.cj-met .ic { width: 40px; height: 40px; border-radius: 50%; background: color-mix(in srgb, var(--c) 13%, #fff); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; }
.cj-met .nm { font-weight: 600; font-size: .92rem; color: #0a2a5e; } .cj-met .nm small { display: block; font-weight: 400; font-size: .72rem; color: #6f6a5c; }
.cj-met > div > b { font-size: 1.2rem; color: #0a2a5e; font-variant-numeric: tabular-nums; }
.cj-chips { display: flex; flex-wrap: wrap; gap: 6px; } .cj-chips span { background: #f5ecd8; border-radius: 99px; padding: 5px 12px; font-size: .76rem; color: #4a4636; } .cj-chips b { color: #0a2a5e; }
.cj-t { display: flex; align-items: center; gap: 8px; font-size: 1rem; font-weight: 700; color: #0a2a5e; margin: 18px 0 10px; } .cj-t::before { content: ""; width: 5px; height: 18px; border-radius: 3px; background: #d81e8f; }
.cj-pasos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.cj-paso { display: flex; gap: 10px; align-items: flex-start; background: #fff; border: 1.5px solid #e2d2b2; border-radius: 16px; padding: 12px; min-width: 0; }
.cj-paso > i { flex: none; width: 26px; height: 26px; border-radius: 50%; background: #d81e8f; color: #fff; font-style: normal; font-weight: 700; font-size: .8rem; display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.cj-paso > div { flex: 1; min-width: 0; } .cj-paso label { margin: 0 0 6px; font-size: .78rem; font-weight: 700; color: #0a2a5e; } .cj-paso small { display: block; margin-top: 5px; font-size: .7rem; color: #6f6a5c; }
.cj-paso.esp { background: #f5ecd8; border-style: dashed; }
.cj-esp { font-size: 1.9rem; font-weight: 700; letter-spacing: -.02em; color: #0a2a5e; font-variant-numeric: tabular-nums; line-height: 1.2; }
.cj-in { display: flex; align-items: center; border: 2px solid #e2d2b2; border-radius: 12px; background: #fff; padding: 0 12px; } .cj-in:focus-within { border-color: #d81e8f; box-shadow: 0 0 0 3px #fde7f3; }
.cj-in span { font-weight: 700; color: #6f6a5c; } .cj-in input { border: 0 !important; outline: 0 !important; box-shadow: none !important; width: 100%; min-width: 0; font-size: 1.5rem; font-weight: 700; padding: 8px 6px; background: transparent; color: #0a2a5e; }
.cj-cerrar { display: block; width: 100%; min-height: 52px; margin-top: 12px; border: 0; border-radius: 99px; background: #d81e8f; color: #fff; font: 700 1rem/1 inherit; font-family: inherit; cursor: pointer; box-shadow: 0 6px 18px rgba(216,30,143,.35); }
.cj-cerrar:hover { background: #b0156f; } .cj-cerrar:disabled { background: #e6dcc4; color: #a39a82; box-shadow: none; cursor: not-allowed; }
#s-caja .dif { font-size: 1.05rem; padding: 14px; border-radius: 14px; margin: 12px 0; }
.cj-res3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0; text-align: center; }
.cj-res3 > div { background: #f5ecd8; border-radius: 12px; padding: 10px 6px; } .cj-res3 span { display: block; font-size: .7rem; color: #6f6a5c; font-weight: 600; } .cj-res3 b { font-size: 1.15rem; color: #0a2a5e; }
.cj-res3 .ok { background: #e6f6ec; } .cj-res3 .ok b { color: #0c7f3f; } .cj-res3 .mal { background: #fee2e2; } .cj-res3 .mal b { color: #b91c1c; }
.cierre { border-radius: 16px; padding: 10px 14px; }

@media (max-width: 760px) {
  .cat-top .buscador { flex: 1 1 100%; }                         /* el buscador ocupa toda la fila y se lee completo */
  #s-hist .panel > h2, #s-caja .cj > h2 { display: none; }
  .hv-hero > b, .cj-hero b { font-size: 2.1rem; }
  .cj-pasos { grid-template-columns: 1fr; }
  .vc-acc { gap: 5px; } .vc-acc button { min-height: 44px; padding: 0 11px; font-size: .74rem; } .vc-acc .v-del { min-width: 44px; padding: 0; }
  #s-caja [data-id="anteriores"] > h2 { display: block !important; font-size: 1rem; margin-bottom: 10px; }
  .h-pagos { flex-wrap: nowrap; }
}
@media (prefers-reduced-motion: reduce) { .hv-hero *, .cj-hero * { transition: none !important; } }
#s-caja #c-nota { min-height: 44px; border: 1.5px solid #e2d2b2; border-radius: 12px; padding: 0 14px; }
#s-caja #c-nota:focus { outline: none; border-color: #d81e8f; box-shadow: 0 0 0 3px #fde7f3; }


/* ================= Vender: cobro, ticket y carrito con el mismo lenguaje (solo aspecto) ================= */
.pv { border-radius: 22px; padding: 16px; }
.pv-cobro .cb-hero { position: relative; overflow: hidden; color: #fff; border-radius: 16px; padding: 14px 16px; margin-bottom: 14px; background: linear-gradient(110deg, #0a2a5e 0%, #0a4aa0 62%, #3b78d6 100%); box-shadow: 0 8px 22px rgba(10,42,94,.25); }
.pv-cobro .cb-hero::after { content: ""; position: absolute; right: -40px; top: -80px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, rgba(216,30,143,.55), transparent 68%); pointer-events: none; }
.pv-cobro .cb-hero > * { position: relative; z-index: 1; }
.cb-hero small { display: inline-block; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.5); border-radius: 99px; padding: 2px 12px; font-size: .64rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.cb-hero .tot-grande { color: #fff; font-size: 2.7rem; margin: 6px 0 2px; font-variant-numeric: tabular-nums; }
.cb-hero > span { font-size: .8rem; color: #dbe6fb; }
.cb-lbl { font-size: .78rem; font-weight: 700; color: #0a2a5e; margin-top: 2px; }
.pago[data-m="efectivo"] { --c: #12a150; } .pago[data-m="transferencia"] { --c: #0a4aa0; } .pago[data-m="tarjeta"] { --c: #b8893a; }
.pago { --c: #d81e8f; min-height: 78px; border-radius: 16px; border-color: color-mix(in srgb, var(--c) 30%, #e2d2b2); transition: border-color .12s, background .12s, box-shadow .12s; }
.pago.on { border-color: var(--c); background: color-mix(in srgb, var(--c) 12%, #fff); color: #0a2a5e; box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 20%, transparent); }
.cb-in { display: flex; align-items: center; border: 2px solid #e2d2b2; border-radius: 14px; background: #fff; padding: 0 14px; }
.cb-in:focus-within { border-color: #d81e8f; box-shadow: 0 0 0 3px #fde7f3; }
.cb-in span { font-size: 1.5rem; font-weight: 700; color: #6f6a5c; }
.cb-in .input-grande { border: 0 !important; outline: 0 !important; box-shadow: none !important; background: transparent; padding: 10px 8px; min-width: 0; }
.billetes { gap: 8px; margin: 8px 0; }
.billetes button { min-height: 44px; padding: 0 18px; font-size: .95rem; }
.billetes button:first-child { background: #e7eefa; border-color: #0a4aa0; color: #0a4aa0; }
.vuelto { font-size: 1.4rem; border-radius: 14px; } .vuelto.neutro { font-size: .85rem; }
.pv details { border-radius: 14px; background: #fff; padding: 8px 12px; }
.pv .acciones button { border-radius: 99px; min-height: 52px; }
.pv .acciones .b-ok { box-shadow: 0 6px 16px rgba(18,161,80,.3); } .pv .acciones .b-ok:disabled { box-shadow: none; }

/* venta registrada: marca animada y vuelto bien visible */
.ok-anim { width: 76px; height: 76px; margin: 2px auto 6px; animation: okPop .35s ease-out; }
.ok-anim svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 6px 10px rgba(18,161,80,.35)); }
.ok-anim circle { fill: #12a150; }
.ok-anim path { fill: none; stroke: #fff; stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: okTrazo .45s .15s ease-out forwards; }
@keyframes okTrazo { to { stroke-dashoffset: 0; } } @keyframes okPop { from { transform: scale(.5); opacity: 0; } to { transform: none; opacity: 1; } }
.ok-tit { text-align: center; font-size: 1.35rem; margin: 0; color: #0a2a5e; } .ok-sub { text-align: center; color: #6f6a5c; font-size: .82rem; margin-bottom: 8px; }
.vuelto.vgrande { display: flex; flex-direction: column; align-items: center; padding: 10px; margin: 8px 0; }
.vuelto.vgrande small { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; } .vuelto.vgrande b { font-size: 2.2rem; line-height: 1.15; font-variant-numeric: tabular-nums; }

/* carrito: foto de cada prenda también en el celular (menos errores) y botones más cómodos */
.qty button { width: 38px; height: 38px; }
.lin .mini { min-height: 36px; padding: 0 12px; }
@media (max-width: 760px) {
  #panel-venta:not([data-forma="compacta"]) .lin { grid-template-columns: 44px 1fr auto; }
  #panel-venta:not([data-forma="compacta"]) .lin img, #panel-venta:not([data-forma="compacta"]) .lin .sinf { display: flex; width: 44px; height: 54px; }
}
.btn-cobrar { border-radius: 99px; font-size: 1.15rem; padding: 14px; }
@media (prefers-reduced-motion: reduce) { .ok-anim, .ok-anim path { animation: none !important; stroke-dashoffset: 0; } }


/* ================= Vender con vida: filtros en círculos, respuesta al agregar, carga y estados vacíos ================= */
.ramas { align-items: flex-start; }
.rail { display: flex; gap: 6px; flex: none; align-items: flex-start; padding-right: 8px; margin-right: 2px; border-right: 1px solid #eadcbc; }
.rail:last-child { border-right: 0; }
.rc { flex: none; width: 62px; display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 3px 0 0; background: none; border: 0; cursor: pointer; font-family: inherit; }
.rc-c { position: relative; width: 48px; height: 48px; border-radius: 50%; background: #fff; border: 3px solid #fffaf0; box-shadow: 0 0 0 2px #e2d2b2, 0 4px 10px rgba(60,45,20,.14); display: flex; align-items: center; justify-content: center; font-size: 1.35rem; transition: transform .15s, box-shadow .15s, background .15s; }
.rc:hover .rc-c { transform: translateY(-2px) scale(1.06); box-shadow: 0 0 0 2px #0a4aa0, 0 8px 16px rgba(60,45,20,.2); }
.rc:active .rc-c { transform: scale(.94); }
.rc.sel .rc-c { background: #fde7f3; transform: scale(1.07); box-shadow: 0 0 0 3px #d81e8f, 0 6px 16px rgba(216,30,143,.38); }
.rc-n { position: absolute; top: -6px; right: -8px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; background: #0a4aa0; color: #fff; border: 2px solid #fffaf0; font-size: .62rem; font-style: normal; font-weight: 700; display: flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums; }
.rc.sel .rc-n { background: #d81e8f; }
.rc-t { max-width: 62px; font-size: .66rem; font-weight: 600; color: #0a2a5e; line-height: 1.1; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rc.sel .rc-t { color: #b0156f; font-weight: 700; }
.rc:focus-visible { outline: 3px solid #d81e8f; outline-offset: 2px; border-radius: 14px; }

.res-info { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 2px 2px 8px; font-size: .8rem; color: #6f6a5c; min-height: 30px; }
.res-info b { color: #0a2a5e; font-size: .95rem; }
.res-info button { min-height: 36px; border: 1.5px solid #e2d2b2; background: #fff; border-radius: 99px; padding: 0 14px; font: 700 .76rem/1 inherit; font-family: inherit; color: #b0156f; cursor: pointer; } .res-info button:hover { border-color: #d81e8f; }
.vacio-cat { grid-column: 1 / -1; text-align: center; padding: 44px 14px; color: #6f6a5c; background: #fffaf0; border: 2px dashed #e2d2b2; border-radius: 22px; }
.vacio-cat span { display: block; font-size: 2.6rem; } .vacio-cat b { display: block; color: #0a2a5e; font-size: 1.05rem; margin: 4px 0 2px; } .vacio-cat small { display: block; margin-bottom: 12px; }
.vacio-cat button { min-height: 44px; border: 0; border-radius: 99px; background: #d81e8f; color: #fff; padding: 0 22px; font: 700 .88rem/1 inherit; font-family: inherit; cursor: pointer; box-shadow: 0 6px 16px rgba(216,30,143,.35); }

/* carga: tarjetas que «respiran» mientras llegan las prendas */
.sk-card { aspect-ratio: 3 / 4; border-radius: 20px; background: linear-gradient(90deg, #efe3c9 25%, #f8f1e0 50%, #efe3c9 75%); background-size: 200% 100%; animation: skMueve 1.2s linear infinite; }
@keyframes skMueve { to { background-position: -200% 0; } }

/* respuesta al agregar una prenda */
.flota { position: fixed; z-index: 300; font-weight: 800; font-size: 1.05rem; color: #fff; background: #12a150; border: 2px solid #fff; border-radius: 99px; padding: 1px 11px; pointer-events: none; box-shadow: 0 4px 12px rgba(18,161,80,.5); animation: flotaSube .85s ease-out forwards; }
@keyframes flotaSube { 0% { opacity: 1; transform: translate(-50%, 0) scale(.8); } 60% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -58px) scale(1.15); } }
.fq-t.pop { animation: tallaPop .38s ease-out; } @keyframes tallaPop { 40% { transform: scale(1.2); } }
.fq.agregada .ft { animation: cardBrilla .75s ease-out; } @keyframes cardBrilla { 0% { box-shadow: 0 0 0 0 rgba(18,161,80,.75), 0 10px 24px rgba(40,30,10,.22); } 100% { box-shadow: 0 0 0 16px rgba(18,161,80,0), 0 10px 24px rgba(40,30,10,.22); } }
#total, #bv-tot { display: inline-block; } #total.tick, #bv-tot.tick { animation: totalLate .45s ease-out; }
@keyframes totalLate { 35% { transform: scale(1.16); color: #12a150; } }
.ft-new { position: absolute; top: 9px; left: 9px; z-index: 2; background: #0a4aa0; color: #fff; font-style: normal; font-size: .6rem; font-weight: 800; letter-spacing: .07em; border-radius: 99px; padding: 3px 9px; box-shadow: 0 3px 10px rgba(0,0,0,.35); }

/* venta vacía */
#carrito .vacia { text-align: center; padding: 26px 12px; color: #6f6a5c; font-size: .82rem; }
#carrito .vacia b { display: block; color: #0a2a5e; font-size: .95rem; margin-bottom: 2px; }
.vc-ic { display: flex; align-items: center; justify-content: center; width: 66px; height: 66px; margin: 0 auto 10px; border-radius: 50%; background: #fde7f3; font-size: 1.9rem; animation: vcFlota 3s ease-in-out infinite; }
@keyframes vcFlota { 50% { transform: translateY(-5px); } }

@media (max-width: 760px) {
  .rc { width: 54px; gap: 3px; } .rc-c { width: 40px; height: 40px; font-size: 1.1rem; border-width: 2px; } .rc-n { top: -5px; right: -7px; min-width: 17px; height: 17px; font-size: .56rem; } .rc-t { font-size: .6rem; max-width: 54px; }
  .rail { gap: 2px; padding-right: 6px; }
}
@media (prefers-reduced-motion: reduce) { .sk-card, .vc-ic, .flota { animation: none !important; } .fq-t.pop, .fq.agregada .ft, #total.tick, #bv-tot.tick { animation: none !important; } }


/* ================= Vender · herramientas: filtros rápidos (precio, talla, orden) y lo más vendido hoy ================= */
#orden { display: none !important; }                       /* el orden ahora se elige con los botones de «Orden» (el selector sigue ahí, oculto, y trabaja igual) */
.qf { display: flex; gap: 14px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 6px; margin-top: 2px; align-items: center; } .qf::-webkit-scrollbar { display: none; }
.qf-g { display: flex; align-items: center; gap: 5px; flex: none; padding-right: 12px; border-right: 1px solid #eadcbc; } .qf-g:last-child { border-right: 0; padding-right: 0; }
.qf-g > span { font-size: .6rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #8a8372; margin-right: 2px; }
.qf-g button { position: relative; flex: none; min-height: 38px; min-width: 38px; padding: 0 13px; border: 1.5px solid #eadcbc; background: #fff; border-radius: 99px; font: 700 .8rem/1 inherit; font-family: inherit; color: #0a2a5e; cursor: pointer; transition: background .12s, border-color .12s, transform .12s; }
.qf-g button:hover { border-color: #d81e8f; transform: translateY(-1px); } .qf-g button:active { transform: scale(.94); }
.qf-g button.on { background: linear-gradient(135deg, #d81e8f, #b0156f); border-color: transparent; color: #fff; box-shadow: 0 4px 12px rgba(216,30,143,.32); }
.qf-t small { margin-left: 4px; font-size: .6rem; font-weight: 700; opacity: .6; } .qf-t.on small { opacity: .85; }
.qf-p { color: #0c7f3f !important; } .qf-p.on { color: #fff !important; }
.qf-o { font-weight: 600 !important; font-size: .74rem !important; }

/* lo más vendido hoy */
.top-hoy { background: linear-gradient(120deg, #fff3dc, #fde7f3); border: 1px solid #f1d9b0; border-radius: 18px; padding: 10px 12px 8px; margin: 0 0 12px; }
.top-hoy.hidden { display: none; }
.th-t { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 8px; } .th-t b { color: #0a2a5e; font-size: .95rem; } .th-t small { color: #8a6a2a; font-size: .7rem; font-weight: 600; }
.th-l { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 4px; } .th-l::-webkit-scrollbar { display: none; }
.th-it { flex: none; width: 92px; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 0; border: 0; background: none; cursor: pointer; text-align: left; font-family: inherit; transition: transform .15s; }
.th-it:hover { transform: translateY(-3px); } .th-it:active { transform: scale(.96); }
.th-f { position: relative; display: block; width: 92px; height: 112px; border-radius: 14px; overflow: hidden; background: #f3e8d3; box-shadow: 0 6px 14px rgba(40,30,10,.22); }
.th-f img { width: 100%; height: 100%; object-fit: cover; display: block; } .th-f i { display: flex; height: 100%; align-items: center; justify-content: center; font-size: 2rem; font-style: normal; opacity: .4; }
.th-f em { position: absolute; top: 6px; left: 6px; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 99px; background: #e0561a; color: #fff; font-style: normal; font-weight: 800; font-size: .74rem; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.35); }
.th-it > b { font-size: .72rem; color: #0a2a5e; line-height: 1.15; max-width: 92px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.th-p { font-size: .78rem; font-weight: 800; color: #b0156f; }

/* talla elegida en el filtro: se resalta en cada tarjeta */
.fq-t.hl { background: linear-gradient(135deg, #d81e8f, #b0156f) !important; border-color: transparent !important; color: #fff !important; transform: scale(1.06); box-shadow: 0 5px 14px rgba(216,30,143,.4); } .fq-t.hl small { color: #ffd9ee !important; }
.fq-t.dim:not(.en) { opacity: .45; }
.ft-u { display: inline-block; margin-left: 6px; vertical-align: 1px; background: rgba(255,255,255,.22); color: #fff; border-radius: 99px; padding: 1px 8px; font-size: .66rem; font-weight: 700; backdrop-filter: blur(2px); }

@media (max-width: 760px) {
  .qf { gap: 10px; margin-top: 0; } .qf-g { padding-right: 8px; gap: 4px; } .qf-g > span { font-size: .54rem; }
  .qf-g button { min-height: 40px; }
  .top-hoy { padding: 8px 10px 6px; margin-bottom: 8px; border-radius: 16px; } .th-f { width: 82px; height: 100px; } .th-it { width: 82px; } .th-it > b { max-width: 82px; }
}
@media (prefers-reduced-motion: reduce) { .th-it, .qf-g button { transition: none !important; } }

/* celular: el encabezado fijo de Vender ocupa menos alto (círculos más chicos, lo más vendido más compacto) */
@media (max-width: 760px) {
  .rc { width: 50px; gap: 2px; padding-top: 1px; } .rc-c { width: 34px; height: 34px; font-size: .95rem; } .rc-t { font-size: .56rem; max-width: 50px; } .rc-n { min-width: 15px; height: 15px; font-size: .5rem; top: -5px; right: -6px; }
  .qf-g button { min-height: 36px; padding: 0 11px; } .qf { padding-bottom: 2px; }
  .th-f { width: 68px; height: 82px; } .th-it { width: 68px; } .th-it > b { max-width: 68px; font-size: .66rem; } .th-p { font-size: .72rem; } .th-t small { display: none; }
}


/* ================= Vender · más espacio para las prendas: encabezado de una fila y tarjetas compactas e interactivas ================= */
/* encabezado: buscar + filtros + rápida en UNA fila. Los filtros se abren sobre el catálogo solo cuando se necesitan. */
@media (min-width: 761px) { .cat-cab { position: relative; top: auto; } }          /* en el celular conserva su posición «pegada arriba» */
.cat-cab .cat-top { display: flex; flex-wrap: nowrap !important; align-items: center; gap: 8px; margin: 0; }
.cat-cab .cat-top .buscador { flex: 1 1 0; min-width: 0; }
.fb-btn { position: relative; flex: none; display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 16px; border: 2px solid #e2d2b2; background: #fff; border-radius: 99px; font: 700 .85rem/1 inherit; font-family: inherit; color: #0a2a5e; cursor: pointer; transition: background .15s, border-color .15s, transform .12s; }
.fb-btn svg { width: 19px; height: 19px; color: #d81e8f; } .fb-btn:hover { border-color: #d81e8f; } .fb-btn:active { transform: scale(.95); }
.fb-btn.on { background: #fde7f3; border-color: #d81e8f; color: #b0156f; }
.fb-n { position: absolute; top: -6px; right: -4px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: #d81e8f; color: #fff; border: 2px solid #fffaf0; font-size: .68rem; font-style: normal; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.fb-n.hidden { display: none; }
.cat-cab .rv-btn { flex: none; min-height: 44px; }
.cat-cab .rv-btn .rv-i { font-size: 1.1rem; }

/* panel de filtros: flota sobre las prendas (no empuja nada); «📌 Fijar» lo deja siempre abierto */
.fb-panel { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 60; background: #fffaf0; border: 1px solid #e2d2b2; border-radius: 20px; box-shadow: 0 22px 46px rgba(40,30,10,.3); padding: 10px 12px 12px; max-height: 74vh; overflow: auto; animation: fbAbre .18s ease-out; }
@keyframes fbAbre { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.fb-panel.fijo { position: static; margin-top: 8px; box-shadow: none; max-height: none; animation: none; border-radius: 16px; background: #fff; }
.fb-cab { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; } .fb-cab b { flex: 1; color: #0a2a5e; font-size: .95rem; }
.fb-cab button { min-height: 40px; border: 1.5px solid #e2d2b2; background: #fff; border-radius: 99px; padding: 0 13px; font: 700 .74rem/1 inherit; font-family: inherit; color: #0a2a5e; cursor: pointer; }
.fb-cab .fb-q { color: #b0156f; } .fb-cab .fb-pin.on { background: #e7eefa; border-color: #0a4aa0; color: #0a4aa0; } .fb-cab .fb-x { width: 40px; padding: 0; }
.fb-panel .ramas { flex-wrap: nowrap; overflow-x: auto; margin: 0 0 4px; padding-bottom: 6px; }
.fb-extra { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; border-top: 1px solid #eadcbc; margin-top: 4px; padding-top: 8px; }
.fb-extra .solo-stock { min-height: 40px; display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; }
.fb-extra .solo-stock input { width: 20px; height: 20px; }
.qf-f { color: #8a5a00 !important; } .qf-f.on { color: #fff !important; }

/* fila de información: cuántas prendas hay y qué filtros tienen puestos (cada uno se quita con un toque) */
.res-fila { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 6px 2px 8px; min-height: 36px; }
.res-info { flex: 1 1 auto; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 0; min-width: 0; }
.ri-n { font-size: .8rem; color: #6f6a5c; margin-right: 2px; } .ri-n b { color: #0a2a5e; font-size: 1rem; }
.ri-c { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px; border: 1.5px solid #f4b3da; background: #fde7f3; border-radius: 99px; font: 700 .74rem/1 inherit; font-family: inherit; color: #b0156f; cursor: pointer; transition: transform .12s; }
.ri-c i { font-style: normal; opacity: .6; font-size: .7rem; } .ri-c:hover { border-color: #d81e8f; } .ri-c:active { transform: scale(.94); }
.ri-x { min-height: 34px; border: 0; background: none; font: 700 .74rem/1 inherit; font-family: inherit; color: #6f6a5c; text-decoration: underline; cursor: pointer; padding: 0 6px; }
.ri-venta { flex: none; min-height: 34px; padding: 0 12px; border: 1.5px solid var(--c, #0a4aa0); background: color-mix(in srgb, var(--c, #0a4aa0) 12%, #fff); border-radius: 99px; font: 700 .74rem/1 inherit; font-family: inherit; color: #0a2a5e; cursor: pointer; }
.ri-venta.hidden { display: none; }
.res-fila .hoy-chip { flex: none; min-height: 34px; padding: 0 12px; margin-left: auto; }

/* pestañas de las ventas: ahora arriba de la venta actual (ya no le quitan lugar al catálogo) */
#panel-venta .vtabs { margin: 6px 0 4px; padding: 2px 0 6px; }

/* la tarjeta de la prenda: foto más baja, colores sobre la foto, tallas pegadas debajo, estrella de favorita */
.fq { gap: 5px; }
.fq > .ft { display: block; aspect-ratio: 1 / 1.1; cursor: pointer; }
.ft-foto { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: pointer; display: block; }
.ft-foto img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s, opacity .2s; } .fq > .ft:hover .ft-foto img { transform: scale(1.06); }
.ft-foto .noimg { display: flex; height: 100%; align-items: center; justify-content: center; font-size: 3rem; opacity: .4; }
.ft-star { position: absolute; top: 7px; left: 7px; z-index: 3; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.88); color: #8a8372; font-size: 1.1rem; line-height: 1; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.28); transition: transform .15s, color .15s; }
.ft-star::before { content: ""; position: absolute; inset: -6px; } .ft-star:hover { transform: scale(1.12); color: #e08a00; } .ft-star:active { transform: scale(.9); }
.ft-star.on { color: #f59e0b; background: #fff; }
.ft-cols { position: absolute; right: 7px; top: 44px; z-index: 3; display: flex; flex-direction: column; flex-wrap: wrap; gap: 6px; max-height: calc(100% - 128px); padding: 5px; background: rgba(255,255,255,.78); border-radius: 99px; backdrop-filter: blur(4px); box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.ft-c { position: relative; width: 20px; height: 20px; padding: 0; border-radius: 50%; border: 2px solid #fff; background: var(--c); box-shadow: 0 0 0 1px rgba(0,0,0,.25); cursor: pointer; transition: transform .12s; }
.ft-c::before { content: ""; position: absolute; inset: -6px; } .ft-c:hover { transform: scale(1.2); } .ft-c.sel { box-shadow: 0 0 0 2.5px #0a4aa0; }
.fq > .ft .ft-info { left: 9px; right: 9px; bottom: 8px; cursor: pointer; }
.ft-pie { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; margin-top: 4px; }
.ft-pie .ft-p { margin: 0; } .ft-pie .ft-new { position: static; background: #0a4aa0; color: #fff; font-style: normal; font-size: .56rem; font-weight: 800; letter-spacing: .06em; border-radius: 99px; padding: 2px 7px; box-shadow: none; }
.ft-pie .ft-u { margin: 0; }
.fq > .fq-tw { display: grid; grid-template-columns: repeat(auto-fit, minmax(38px, 1fr)); gap: 4px; }
.fq > .fq-tw .fq-t { min-width: 0; min-height: 40px; flex: none; }

/* celular: la barra de abajo trae «＋» (otra venta) y el encabezado queda en una sola fila delgada */
.bv-nueva { display: none; }
@media (max-width: 760px) {
  .fb-btn span { display: none; } .fb-btn { padding: 0 14px; }
  .cat-cab .rv-btn { padding: 0 13px; } .cat-cab .rv-btn .rv-t { display: none; }
  .cat-cab .dens { display: none; }
  .fq > .ft { border-radius: 16px; }
  .ft-info b { font-size: .74rem; } .ft-star { width: 30px; height: 30px; font-size: 1rem; }
  .grid.vis, [data-id="catalogo"][data-forma] .grid.vis { gap: 10px 8px !important; }
  .fb-panel { max-height: 68vh; }
  .res-fila { margin: 4px 0 6px; }
  .barra-venta .bv-nueva { display: block; flex: none; width: 46px; border: 0; border-radius: 14px; background: #fff; color: #d81e8f; font-size: 1.5rem; font-weight: 700; box-shadow: 0 6px 18px rgba(10,42,94,.25); cursor: pointer; }
  .barra-venta.sin-prendas .bv-cobrar { display: none; } .barra-venta.sin-prendas .bv-tot { display: none; }
}
@media (min-width: 761px) { .fb-panel:not(.fijo) { right: auto; width: min(640px, 100%); } }
@media (prefers-reduced-motion: reduce) { .fb-panel { animation: none; } .ft-foto img, .ft-star, .ft-c { transition: none !important; } }

/* pulido de Vender: «Hoy» con su estilo, franja plegable y colores sobre la foto */
.res-fila .hoy-chip { border: 0; background: linear-gradient(120deg, #0a2a5e, #0a4aa0); color: #fff; font-weight: 700; font-size: .76rem; border-radius: 99px; cursor: pointer; white-space: nowrap; }
.res-fila .hoy-chip b { color: #fff; } .res-fila .hoy-chip small { color: #c9d8f5; } .res-fila .hoy-chip .h-l { opacity: .85; font-weight: 600; }
.ft-cols { border-radius: 18px; }
.th-t { width: 100%; display: flex; align-items: baseline; gap: 8px; padding: 2px 0; border: 0; background: none; cursor: pointer; text-align: left; font-family: inherit; min-height: 34px; }
.th-t i { margin-left: auto; font-style: normal; color: #8a6a2a; } .th-t small { margin-left: 4px; }
.top-hoy.plegado { padding-bottom: 4px; } .top-hoy.plegado .th-l { display: none; } .top-hoy.plegado .th-t { margin-bottom: 0; }
@media (min-width: 761px) { .th-f { width: 72px; height: 88px; } .th-it { width: 72px; } .th-it > b { max-width: 72px; font-size: .68rem; } }

/* «Para quién» y «Tipo» siempre visibles bajo el buscador (el resto de filtros sigue en la tarjeta «Filtros») */
.fbar { display: flex; flex-direction: column; gap: 5px; margin: 6px 0 0; padding: 0 0 2px; } .fbar:empty { display: none; }
.fb-f { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; } .fb-s { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
.fbar .chip { flex: none; white-space: nowrap; }
.fp { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 12px; border: 1.5px solid #e2d2b2; background: #fff; color: #0a2a5e; border-radius: 99px; font: 700 .8rem/1 inherit; font-family: inherit; cursor: pointer; white-space: nowrap; transition: transform .12s, background .15s, border-color .15s; box-shadow: 0 1px 3px rgba(60,45,20,.06); }
.fp span { font-size: 1.05rem; line-height: 1; } .fp i { font-style: normal; font-size: .66rem; font-weight: 800; background: #f1e7d0; color: #6f6a5c; border-radius: 99px; padding: 2px 7px; min-width: 20px; text-align: center; }
.fp:hover { border-color: #0a4aa0; } .fp:active { transform: scale(.95); } .fp:focus-visible { outline: 3px solid #d81e8f; outline-offset: 2px; }
.fp.g.sel { background: linear-gradient(135deg, #0a4aa0, #0a2a5e); border-color: transparent; color: #fff; box-shadow: 0 4px 12px rgba(10,74,160,.35); }
.fp.m.sel { background: linear-gradient(135deg, #d81e8f, #b0156f); border-color: transparent; color: #fff; box-shadow: 0 4px 12px rgba(216,30,143,.35); }
.fp.sel i { background: rgba(255,255,255,.25); color: #fff; }
.fsep { flex: none; width: 2px; height: 24px; background: #e2d2b2; border-radius: 2px; margin: 0 2px; }
@media (max-width: 760px) { .fbar { margin-top: 4px; gap: 4px; } .fb-f { gap: 5px; } .fp { min-height: 34px; padding: 0 10px; gap: 5px; font-size: .76rem; } .fp i { font-size: .62rem; padding: 1px 6px; min-width: 18px; } }

/* Celular: la cabecera de Vender ocupa lo mínimo (dos filas de botones sin contadores, buscador y resumen más bajos) */
@media (max-width: 760px) {
  .fp i { display: none; }
  .fbar { gap: 4px; margin-top: 4px; } .fb-f { gap: 4px; }
  .fp { min-height: 34px; padding: 0 10px; font-size: .76rem; }
  .fb-f:not(.fb-s) .fp { flex: 1 1 auto; justify-content: center; }
  .cat-cab .cat-top .fb-btn, .cat-cab .cat-top .rv-btn { min-height: 40px; } .cat-cab .cat-top .buscador #q { padding-top: 7px; padding-bottom: 7px; }
  .res-fila { margin: 2px 0 4px; min-height: 30px; gap: 6px; } .res-fila .hoy-chip { min-height: 30px; padding: 0 10px; font-size: .72rem; }
}

/* Celular: «para quién» pasa a iconos junto al buscador y debajo queda solo la fila de categorías */
.gm { display: none; flex: none; flex-wrap: nowrap; }
.gm .fp .gt { margin-left: 0; }
@media (max-width: 760px) {
    .fb-f:not(.fb-s) .fp.m { min-height: 32px; }
}
@media (max-width: 760px) {
  .cat-cab .cat-top { gap: 5px; } .cat-cab .cat-top .fb-btn { padding: 0 11px; min-width: 40px; } .cat-cab .cat-top .rv-btn { padding: 0 10px; min-width: 40px; }
}

/* Celular: el buscador nunca tapa los iconos de «para quién»; si no caben en una fila (pantallas de 320 px), bajan a la siguiente */
@media (max-width: 760px) {
  html .cat-cab .cat-top { flex-wrap: wrap !important; }
  html .cat-cab .cat-top .buscador { flex: 1 1 112px; min-width: 0; } html .cat-top .buscador #q { min-width: 0; width: 100%; }
}

@media (max-width: 760px) {
  html .cat-cab .cat-top .buscador { flex: 1 1 90px; }
  html .cat-cab .cat-top .fb-btn, html .cat-cab .cat-top .rv-btn { width: 40px; min-width: 40px; padding: 0; justify-content: center; }
}

/* Celular (versión final): arriba buscador ancho + ⚡ + filtros; debajo, en un mismo bloque que se acomoda solo, los 3 iconos de «para quién» y las categorías */
@media (max-width: 760px) {
  html .cat-cab .cat-top { flex-wrap: nowrap !important; gap: 6px; }
  html .cat-cab .cat-top .buscador { flex: 1 1 0; min-width: 0; }
  html .cat-top .buscador #q { padding-left: 38px; padding-right: 34px; }
  .fbar { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px; }
  .fbar .fb-s { flex: 0 0 100%; }
  .fbar .fb-g, .fbar .fb-m { display: contents; }
  .fp.g { width: 38px; padding: 0; justify-content: center; } .fp.g span { font-size: 1.2rem; } .fp.g .gt { display: none; }
  .fp.m { flex: 1 1 auto; justify-content: center; }
}
@media (min-width: 761px) { .gt { display: inline; } }

@keyframes foco-p { 0%,100% { box-shadow: 0 0 0 0 rgba(216,30,143,.0); } 20%,60% { box-shadow: 0 0 0 5px rgba(216,30,143,.55); } }

.hv-gan { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-top: 4px; font-size: .9rem; font-weight: 600; } .hv-gan b { font-size: 1.45rem; font-weight: 700; color: #8dffbd; font-variant-numeric: tabular-nums; letter-spacing: -.02em; } .hv-gan em { font-style: normal; font-size: .72rem; font-weight: 500; opacity: .85; } .hv-gan.neg b { color: #ffb4b4; }

/* ---------- Vender más dinámico: «−» en la talla, miniaturas en la barra, «Solo lo de la venta» y «Deshacer» al agregar ---------- */
.fq-t .fq-minus { position: absolute; left: 3px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.28); color: #fff; font-style: normal; font-weight: 900; font-size: 1.15rem; line-height: 32px; text-align: center; cursor: pointer; } .fq-t .fq-minus:active { background: rgba(255,255,255,.5); transform: translateY(-50%) scale(.92); }
.bv-l { display: inline-flex; align-items: center; gap: 6px; } .bv-th { display: inline-flex; } .bv-th img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; border: 2px solid #0a2a5e; margin-left: -8px; background: #f3e8d3; } .bv-th img:first-child { margin-left: 0; } .bv-th:empty { display: none; }
.ri-solo { border: 1.5px solid #12a150; background: #ecfdf5; color: #065f46; border-radius: 99px; min-height: 36px; padding: 0 12px; font: 700 .76rem inherit; font-family: inherit; cursor: pointer; } .ri-solo.on { background: #12a150; color: #fff; } .ri-solo.hidden { display: none; }
#aviso .av-undo { margin-left: 10px; min-height: 36px; padding: 0 12px; border: 0; border-radius: 99px; background: #d81e8f; color: #fff; font: 700 .76rem inherit; font-family: inherit; cursor: pointer; pointer-events: auto; } #aviso:has(.av-undo) { pointer-events: auto; }
#hoy-bar.pulso { animation: hoyPulso .8s ease; } @keyframes hoyPulso { 0% { transform: scale(1); } 30% { transform: scale(1.12); box-shadow: 0 0 0 8px rgba(18,161,80,.25); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { #hoy-bar.pulso { animation: none; } }
.bv-th:not(:empty) ~ .bv-ic { display: none; } .barra-venta .bv-ver { min-width: 0; gap: 6px; } .barra-venta .bv-l { min-width: 0; } #bv-txt { white-space: nowrap; font-size: .8rem; } .barra-venta .bv-tot { white-space: nowrap; }
.bv-th img { width: 22px; height: 22px; margin-left: -6px; } .barra-venta .bv-l { flex: 1 1 auto; overflow: hidden; gap: 4px; } #bv-txt { overflow: hidden; text-overflow: ellipsis; font-size: .74rem; } .barra-venta .bv-tot { flex: none; padding: 5px 10px; }
.barra-venta .bv-tot { font-size: .8rem !important; padding: 4px 8px !important; } .barra-venta .bv-ver { padding-left: 10px !important; padding-right: 8px !important; } #bv-txt { font-size: .78rem; overflow: visible; }

/* ---------- «Combina con esto» y clientes anteriores en el cobro ---------- */
.combina { margin-top: 10px; padding: 10px 0 2px; border-top: 1px dashed #e2d2b2; } .cm-t { font-size: .78rem; font-weight: 700; color: #0a2a5e; margin-bottom: 6px; }
.cm-f { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; } .cm-f::-webkit-scrollbar { display: none; }
.cm-i { flex: none; width: 84px; border: 1.5px solid #e2d2b2; background: #fff; border-radius: 12px; padding: 0 0 6px; display: flex; flex-direction: column; align-items: center; gap: 2px; font-family: inherit; color: #0a2a5e; cursor: pointer; overflow: hidden; } .cm-i:active { transform: scale(.97); }
.cm-i img, .cm-i > span { width: 100%; height: 88px; object-fit: cover; background: #f3e8d3; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; } .cm-i b { font-size: .8rem; color: #b0156f; } .cm-i small { font-size: .62rem; color: #6f6a5c; padding: 0 4px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cb-sug:empty { display: none; } .cb-sug { margin-top: 6px; } .cs-t { font-size: .7rem; color: #6f6a5c; margin-bottom: 4px; }
.cs-b { display: flex; justify-content: space-between; align-items: center; gap: 8px; width: 100%; min-height: 44px; margin-top: 4px; padding: 0 12px; border: 1.5px solid #e2d2b2; background: #fff; border-radius: 12px; font-family: inherit; color: #0a2a5e; cursor: pointer; text-align: left; } .cs-b b { font-size: .84rem; } .cs-b small { font-size: .74rem; color: #6f6a5c; }

/* ---------- colores de la prenda en una fila propia (antes iban sobre la foto y en pantallas chicas quedaban ocultos) ---------- */
.fq-cr { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 6px 4px 4px; }
.fq-cr .ft-c { width: 26px; height: 26px; flex: none; } .fq-cr .ft-c::before { inset: -9px; } .fq-cr .ft-c.sel { box-shadow: 0 0 0 3px #0a4aa0; transform: scale(1.08); }
.fq-cn { flex: 1 1 auto; min-width: 0; font-size: .7rem; font-weight: 700; color: #6f6a5c; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- portada de los álbumes en Vender: siempre rotulada como foto del modelo (no es un color) ---------- */
.ft-mod { position: absolute; left: 54px; top: 14px; z-index: 3; background: rgba(10,42,94,.88); color: #fff; font-size: .6rem; font-weight: 700; line-height: 1; padding: 5px 9px; border-radius: 99px; pointer-events: none; }
.sx-foto { position: relative; } .sx-ref { position: absolute; left: 0; right: 0; top: 0; padding: 10px 14px; border-radius: 22px 22px 0 0; background: linear-gradient(180deg, rgba(10,42,94,.9), rgba(10,42,94,.55) 70%, transparent); color: #fff; pointer-events: none; } .sx-ref b { display: block; font-size: .8rem; } .sx-ref small { font-size: .68rem; opacity: .9; }
.sx-mini img.mod { outline: 2px dashed #0a2a5e; outline-offset: 1px; }
.sx-pf.modelo { border-style: dashed; border-color: #0a2a5e; } .sx-pf.modelo.sel { border-style: solid; border-color: #d81e8f; }
@media (max-width: 700px) { .sx-ref { padding: 7px 10px; } .sx-ref b { font-size: .64rem; line-height: 1.2; } .sx-ref small { display: none; } }

.ft-c .ft-v { font-style: normal; display: flex; align-items: center; justify-content: center; height: 100%; font-size: .6rem; font-weight: 800; color: #fff; text-shadow: 0 0 3px #000, 0 0 2px #000; }
.sx-foto { touch-action: pan-y; } .sx-fl { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255,255,255,.9); color: #0a2a5e; font-size: 1.5rem; line-height: 1; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.25); padding: 0 0 3px; } .sx-fl.izq { left: 8px; } .sx-fl.der { right: 8px; } .sx-fl:active { transform: translateY(-50%) scale(.92); }
.sx-fl { top: 38%; }

/* Vender: la cabecera del catálogo (buscador, Filtros, ⚡ Rápida, para quién y categoría) va dentro del MISMO cuadro azul que usa el Inventario */
.cat-cab { background: linear-gradient(110deg, #0a2a5e 0%, #0a4aa0 62%, #3b78d6 100%) !important; border-radius: 18px; padding: 10px 12px 10px !important; margin: 0 0 8px !important; box-shadow: 0 1px 3px rgba(60,45,20,.1), 0 8px 24px rgba(60,45,20,.16) !important; }
.cat-cab.oculta { box-shadow: none !important; }
.cat-cab::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(circle at 100% 100%, rgba(216,30,143,.45), transparent 46%); pointer-events: none; }
.cat-cab > * { position: relative; z-index: 1; }
.cat-cab .fp { background: #fff; } .cat-cab .fp.sel { box-shadow: 0 0 0 2px #fff, 0 4px 12px rgba(0,0,0,.3); }
.cat-cab .fb-s .chip { background: #fff; }

/* botón cuadrícula ↔ listado: solo en el celular (en computador están los botones de siempre) */
.vista-btn { display: none; }
@media (max-width: 760px) {
  .cat-cab .vista-btn { display: inline-flex; flex: none; align-items: center; justify-content: center; gap: 5px; min-height: 44px; min-width: 44px; padding: 0 12px; border: 2px solid #e2d2b2; background: #fff; border-radius: 99px; font: 700 .8rem/1 inherit; font-family: inherit; color: #0a2a5e; cursor: pointer; }
  .vista-btn i { font-style: normal; font-size: 1.15rem; line-height: 1; color: #d81e8f; } .vista-btn span { display: none; }
  html .cat-cab .cat-top .vista-btn { width: 40px; min-width: 40px; min-height: 40px; padding: 0; }
}
