/* Bodega central: mismos colores y tipografía de la tienda. Celular primero (360 px). */
* { box-sizing: border-box; }
body { font-family: 'Poppins', 'Segoe UI', Tahoma, sans-serif; background: #f3e8d3; color: #0a2a5e; margin: 0; padding: 14px; }
.hidden { display: none !important; }
.bd-cab { background: #0a2a5e; color: #fff; padding: 12px 16px; border-radius: 12px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.bd-cab h1 { font-size: 1.1rem; flex: 1; margin: 0; }
.bd-cab a { color: #d9c9a8; font-size: .85rem; text-decoration: none; }
.bd-quien { font-size: .8rem; color: #d9c9a8; }
.bd-nota { background: #fffaf0; border: 1.5px solid #e2d2b2; border-radius: 14px; padding: 22px; max-width: 480px; margin: 30px auto; text-align: center; }
.bd-nota h2 { margin: 0 0 8px; font-size: 1.1rem; }

.bd-resumen { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 12px; }
.bd-resumen div { background: #fffaf0; border: 1.5px solid #e2d2b2; border-radius: 12px; padding: 10px 8px; text-align: center; }
.bd-resumen b { display: block; font-size: 1.15rem; }
.bd-resumen span { font-size: .68rem; color: #6f6a5c; }
.bd-barra { display: flex; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.bd-barra input { flex: 1 1 200px; min-height: 46px; border: 2px solid #e2d2b2; border-radius: 12px; padding: 0 14px; font: inherit; background: #fff; color: #0a2a5e; }
.bd-barra input:focus, .bd-hoja input:focus, .bd-hoja textarea:focus, .bd-caja input:focus { outline: none; border-color: #d81e8f; }
.bd-nueva { min-height: 46px; border: 0; border-radius: 12px; padding: 0 18px; background: #d81e8f; color: #fff; font: 700 .92rem inherit; font-family: inherit; cursor: pointer; flex: 0 0 auto; }
.bd-filtros { display: flex; gap: 8px; margin-bottom: 12px; overflow-x: auto; }
.bd-filtros button { min-height: 40px; border: 0; border-radius: 99px; padding: 0 16px; background: #e2d2b2; color: #0a2a5e; font: 600 .82rem inherit; font-family: inherit; cursor: pointer; white-space: nowrap; }
.bd-filtros button.on { background: #0a4aa0; color: #fff; }

.bd-lista { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 700px) { .bd-lista { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .bd-lista { grid-template-columns: repeat(3, 1fr); } }
.bd-card { display: flex; gap: 12px; text-align: left; width: 100%; background: #fffaf0; border: 1.5px solid #e2d2b2; border-radius: 14px; padding: 10px; cursor: pointer; font-family: inherit; color: #0a2a5e; }
.bd-card:hover { border-color: #d81e8f; }
.bd-card.off { opacity: .6; }
.bd-foto { width: 84px; height: 104px; flex: none; border-radius: 10px; background: #f3e8d3; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; overflow: hidden; }
.bd-foto img { width: 100%; height: 100%; object-fit: cover; }
.bd-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.bd-info b { font-size: .92rem; line-height: 1.25; }
.bd-fila { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.bd-precio { font-style: normal; font-weight: 700; color: #fff; background: #0a4aa0; border-radius: 99px; padding: 2px 10px; font-size: .82rem; }
.bd-tag { font-size: .7rem; background: #f3e8d3; border-radius: 99px; padding: 2px 9px; font-weight: 600; }
.bd-tag.cod { background: #e8efff; } .bd-tag.oculta { background: #fde68a; color: #92400e; }
.bd-u { font-size: .78rem; font-weight: 700; border-radius: 8px; padding: 2px 9px; }
.bd-u.verde { background: #d1fae5; color: #047857; } .bd-u.ambar { background: #fef3c7; color: #b45309; } .bd-u.rojo { background: #fee2e2; color: #b91c1c; }
.bd-vacio { grid-column: 1 / -1; text-align: center; color: #8a8068; padding: 40px 10px; line-height: 1.6; }

/* ---------- editor ---------- */
.bd-velo { position: fixed; inset: 0; background: rgba(10, 42, 94, .55); z-index: 200; display: flex; align-items: flex-end; justify-content: center; }
.bd-velo.bd-peq { z-index: 300; align-items: center; padding: 16px; }
.bd-hoja { background: #fffaf0; width: 100%; max-width: 760px; height: 100%; max-height: 100%; display: flex; flex-direction: column; }
@media (min-width: 761px) { .bd-velo { align-items: center; } .bd-hoja { height: 94vh; border-radius: 18px; overflow: hidden; } }
.bd-tope { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: #0a2a5e; color: #fff; }
.bd-x { width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: inherit; font-size: 1.1rem; cursor: pointer; flex: none; }
.bd-tope .bd-x { color: #fff; }
.bd-cuerpo { flex: 1; overflow-y: auto; padding: 14px 16px 20px; -webkit-overflow-scrolling: touch; }
.bd-cuerpo section { background: #fff; border: 1.5px solid #e2d2b2; border-radius: 14px; padding: 14px; margin-bottom: 14px; }
.bd-cuerpo h3 { margin: 0 0 6px; font-size: .95rem; }
.bd-ayuda { margin: 0 0 10px; font-size: .78rem; color: #6f6a5c; }
.bd-hoja label { display: block; font-weight: 600; font-size: .82rem; margin: 12px 0 6px; }
.bd-hoja label small, .bd-caja label small { font-weight: 400; color: #8a8068; }
.bd-hoja input:not([type=checkbox]), .bd-hoja textarea, .bd-caja input { width: 100%; min-height: 46px; border: 2px solid #e2d2b2; border-radius: 12px; padding: 0 12px; font: inherit; font-family: inherit; background: #fff; color: #0a2a5e; }
.bd-hoja textarea { padding: 10px 12px; resize: vertical; }
.bd-dolar { display: flex; align-items: center; gap: 8px; } .bd-dolar span { font-weight: 700; font-size: 1.1rem; } .bd-dolar input { max-width: 160px; }
.bd-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.bd-chip { min-height: 44px; border: 2px solid #e2d2b2; background: #fff; color: #0a2a5e; border-radius: 12px; padding: 0 14px; font: 600 .85rem inherit; font-family: inherit; cursor: pointer; }
.bd-chip.on { border-color: #0a2a5e; background: #eef5ff; } .bd-chip small { color: #6f6a5c; font-weight: 500; }
.bd-chk { display: flex !important; align-items: center; gap: 10px; min-height: 44px; font-weight: 600; margin: 0 !important; } .bd-chk input { width: 22px; height: 22px; }
.bd-b { min-height: 48px; border: 0; border-radius: 12px; padding: 0 20px; font: 700 .92rem inherit; font-family: inherit; color: #fff; cursor: pointer; }
.bd-b.azul { background: #0a4aa0; } .bd-b.gris { background: #6f6a5c; } .bd-b.rojo { background: #dc2626; }
.bd-b:disabled { opacity: .45; cursor: not-allowed; }
.bd-elim { width: 100%; margin-top: 12px; }
.bd-pie { display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: #fff; border-top: 1.5px solid #e2d2b2; }
.bd-pie .bd-b { flex: none; min-width: 130px; }
.bd-falta { flex: 1; font-size: .76rem; color: #b45309; line-height: 1.3; } .bd-falta.ok { color: #047857; font-weight: 600; }

/* bloque de un color */
.bd-bq { border: 2px solid #e2d2b2; border-radius: 14px; padding: 10px; margin-bottom: 12px; background: #fffaf0; }
.bd-bq-top { display: flex; align-items: center; gap: 10px; }
.bd-bq-img { width: 72px; height: 90px; flex: none; border: 2px dashed #d9c9a8; border-radius: 10px; background: #f3e8d3; font-size: 1.6rem; cursor: pointer; padding: 0; overflow: hidden; }
.bd-bq-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bd-bq-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.bd-bq-info small { color: #6f6a5c; font-size: .76rem; }
.bd-color { min-height: 44px; border: 2px solid #0a2a5e; background: #fff; border-radius: 12px; padding: 0 14px; font: 700 .9rem inherit; font-family: inherit; color: #0a2a5e; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.bd-color.falta { border-color: #d81e8f; color: #d81e8f; }
.bd-color i { width: 18px; height: 18px; border-radius: 50%; border: 1px solid #0003; display: inline-block; }
.bd-tallas { margin-top: 10px; display: grid; grid-template-columns: 1fr; gap: 6px; }
@media (min-width: 480px) { .bd-tallas { grid-template-columns: 1fr 1fr; } }
.bd-tr { display: flex; align-items: center; gap: 6px; background: #fff; border: 1.5px solid #e2d2b2; border-radius: 12px; padding: 4px 6px; }
.bd-tr b { width: 52px; font-size: .88rem; padding-left: 4px; }
.bd-tr button { width: 44px; height: 44px; border: 0; border-radius: 10px; background: #f3e8d3; color: #0a2a5e; font-size: 1.2rem; font-weight: 700; cursor: pointer; flex: none; }
.bd-tr button.q { background: transparent; color: #b91c1c; font-size: 1rem; width: 36px; }
.bd-hoja .bd-tr input { width: 56px; min-height: 44px; text-align: center; padding: 0; font-weight: 700; flex: none; }
.bd-presets { display: flex; gap: 6px; margin: 10px 0 6px; flex-wrap: wrap; }
.bd-presets button { min-height: 34px; border: 0; border-radius: 99px; padding: 0 12px; background: #e2d2b2; color: #0a2a5e; font: 600 .74rem inherit; font-family: inherit; cursor: pointer; }
.bd-presets button.on { background: #0a2a5e; color: #fff; }
.bd-chips.ch .bd-chip { min-width: 48px; padding: 0 10px; }
.bd-hoja input.bd-otra { width: 70px; min-height: 44px; padding: 0 8px; text-align: center; }
.bd-copiar { margin-top: 10px; min-height: 40px; border: 2px dashed #0a4aa0; background: transparent; color: #0a4aa0; border-radius: 12px; padding: 0 14px; font: 600 .8rem inherit; font-family: inherit; cursor: pointer; }
.bd-add { width: 100%; min-height: 50px; border: 2px dashed #d81e8f; background: #fff; color: #d81e8f; border-radius: 14px; font: 700 .92rem inherit; font-family: inherit; cursor: pointer; }

/* ventanas pequeñas */
.bd-caja { background: #fffaf0; border-radius: 16px; padding: 18px; width: 100%; max-width: 380px; max-height: 90vh; overflow-y: auto; }
.bd-caja h3 { margin: 0 0 6px; font-size: 1rem; } .bd-caja p { margin: 0 0 12px; font-size: .85rem; color: #4a4636; line-height: 1.45; }
.bd-caja label { display: block; font-weight: 600; font-size: .82rem; margin: 10px 0 6px; }
.bd-bts { display: flex; gap: 10px; justify-content: flex-end; margin-top: 14px; } .bd-bts .bd-b { flex: 1; }
.bd-colores { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.bd-colores button { display: flex; flex-direction: column; align-items: center; gap: 4px; min-height: 64px; border: 2px solid #e2d2b2; background: #fff; border-radius: 12px; padding: 8px 4px; cursor: pointer; font: 600 .72rem inherit; font-family: inherit; color: #0a2a5e; }
.bd-colores button.on { border-color: #0a2a5e; background: #eef5ff; } .bd-colores button:disabled { opacity: .35; cursor: not-allowed; }
.bd-colores i { width: 26px; height: 26px; border-radius: 50%; border: 1px solid #0003; }

.bd-toast { position: fixed; left: 50%; bottom: 80px; transform: translate(-50%, 20px); background: #0a2a5e; color: #fff; padding: 12px 18px; border-radius: 12px; font-size: .85rem; max-width: 92vw; opacity: 0; pointer-events: none; transition: .2s; z-index: 400; text-align: center; }
.bd-toast.on { opacity: 1; transform: translate(-50%, 0); } .bd-toast.err { background: #b91c1c; }
@media (max-width: 760px) { body { padding-bottom: 76px; } }

/* ---------- etapa B: pestañas, catálogo, carrito y pedidos ---------- */
.bd-tabs { display: flex; gap: 6px; margin-bottom: 12px; background: #fffaf0; border: 1.5px solid #e2d2b2; border-radius: 14px; padding: 4px; }
.bd-tabs button { flex: 1; min-height: 46px; border: 0; border-radius: 11px; background: transparent; color: #0a2a5e; font: 600 .84rem inherit; font-family: inherit; cursor: pointer; position: relative; white-space: nowrap; }
.bd-tabs button.on { background: #d81e8f; color: #fff; }
.bd-pt { font-style: normal; background: #dc2626; color: #fff; border-radius: 99px; font-size: .68rem; padding: 1px 7px; margin-left: 6px; }
.bd-tabs button.on .bd-pt { background: #fff; color: #d81e8f; }
.bd-pt-c { width: 14px; height: 14px; border-radius: 50%; border: 1px solid #0003; display: inline-block; }
.bd-enpedido { font-size: .74rem; font-weight: 700; color: #0a4aa0; background: #e8efff; border-radius: 8px; padding: 2px 9px; align-self: flex-start; }
.bd-grande { width: 100%; height: 34vh; min-height: 200px; background: #f3e8d3; border-radius: 14px; overflow: hidden; display: flex; align-items: center; justify-content: center; font-size: 3rem; margin-bottom: 12px; }
.bd-grande img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.bd-prod-cab { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; font-size: .78rem; color: #6f6a5c; }
.bd-precio.gr { font-size: 1.15rem; padding: 4px 14px; }
.bd-desc { font-size: .85rem; color: #4a4636; margin: 6px 0; }
.bd-sub { margin: 14px 0 8px !important; font-size: .82rem !important; color: #6f6a5c; }
.bd-cols { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.bd-cols button { position: relative; flex: none; width: 72px; border: 2px solid #e2d2b2; background: #fff; border-radius: 12px; padding: 4px; cursor: pointer; font: 600 .66rem inherit; font-family: inherit; color: #0a2a5e; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.bd-cols button.on { border-color: #d81e8f; }
.bd-cols img { width: 100%; height: 64px; object-fit: cover; border-radius: 8px; } .bd-cols i { width: 100%; height: 64px; border-radius: 8px; }
.bd-cols b { position: absolute; top: -6px; right: -6px; background: #0a4aa0; color: #fff; border-radius: 99px; font-size: .68rem; padding: 1px 7px; }
.bd-tr small { flex: 1; color: #6f6a5c; font-size: .74rem; }
.bd-q { width: 44px; text-align: center; font-weight: 700; font-size: 1.05rem; color: #8a8068; } .bd-q.on { color: #0a4aa0; }
.bd-carro { position: fixed; left: 0; right: 0; bottom: 74px; z-index: 150; padding: 0 14px; }
.bd-carro button { width: 100%; max-width: 560px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 52px; border: 0; border-radius: 14px; padding: 0 18px; background: #0a4aa0; color: #fff; font: 600 .9rem inherit; font-family: inherit; box-shadow: 0 6px 18px rgba(10, 74, 160, .45); cursor: pointer; }
@media (min-width: 761px) { .bd-carro { bottom: 18px; } }
.bd-lin { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid #ead9bd; }
.bd-lin:last-child { border-bottom: 0; } .bd-lin.ch { padding: 6px 0; }
.bd-mini { width: 46px; height: 56px; flex: none; border-radius: 8px; background: #f3e8d3; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.bd-mini img { width: 100%; height: 100%; object-fit: cover; }
.bd-lin-t { flex: 1; min-width: 0; display: flex; flex-direction: column; } .bd-lin-t b { font-size: .86rem; } .bd-lin-t small { color: #6f6a5c; font-size: .74rem; }
.bd-lin em { font-style: normal; font-weight: 700; font-size: .85rem; flex: none; }
.bd-lin-q { display: flex; align-items: center; gap: 4px; flex: none; }
.bd-lin-q button { width: 40px; height: 40px; border: 0; border-radius: 10px; background: #f3e8d3; color: #0a2a5e; font-size: 1.15rem; font-weight: 700; cursor: pointer; }
.bd-lin-q b { min-width: 24px; text-align: center; }
.bd-ped { background: #fffaf0; border: 1.5px solid #e2d2b2; border-radius: 14px; padding: 12px; margin-bottom: 12px; }
.bd-ped-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.bd-est { font-size: .72rem; font-weight: 700; border-radius: 99px; padding: 3px 11px; }
.bd-est.amb { background: #fef3c7; color: #b45309; } .bd-est.azu { background: #dbeafe; color: #1d4ed8; } .bd-est.rojo { background: #fee2e2; color: #b91c1c; } .bd-est.gris { background: #e2e8f0; color: #475569; } .bd-est.ver { background: #d1fae5; color: #047857; }
.bd-meta { font-size: .76rem; color: #6f6a5c; margin: 4px 0 6px; }
.bd-ped-tot { display: flex; justify-content: space-between; font-size: .9rem; padding-top: 8px; border-top: 1.5px solid #e2d2b2; margin-top: 4px; }
.bd-nota-p { background: #fdeecb; color: #92400e; border-radius: 8px; padding: 6px 10px; font-size: .8rem; margin-top: 8px; } .bd-nota-p.rojo { background: #fee2e2; color: #b91c1c; }
.bd-ped-acc { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; } .bd-ped-acc .bd-b { flex: 1 1 120px; }
.bd-b.verde { background: #10b981; }

/* ---------- costo de compra (solo gerente y bodega) ---------- */
.bd-res2 { grid-column: 1 / -1; background: #fff; border: 1.5px dashed #d9c9a8; border-radius: 12px; padding: 8px 12px; font-size: .78rem; color: #4a4636; text-align: center; }
.bd-tag.cos { background: #ecfdf5; color: #047857; }
.bd-tag.sin { background: #fee2e2; color: #b91c1c; font-weight: 700; }
.bd-dos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bd-dos .bd-dolar input { max-width: none; min-width: 0; }
.bd-margen { margin-top: 10px; font-size: .8rem; font-weight: 600; color: #047857; background: #ecfdf5; border-radius: 10px; padding: 8px 12px; }
.bd-margen:empty { display: none; } .bd-margen.mal { background: #fee2e2; color: #b91c1c; } .bd-margen.cero { background: #fef3c7; color: #b45309; }
.bd-resumen .bd-res2 b { display: inline; font-size: .85rem; }
.bd-resumen .bd-res2 { padding: 8px 12px; }

/* ---------- etapa C: pagar, recibir y recibo ---------- */
.bd-ancha { max-width: 440px !important; }
.bd-ops { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.bd-op { min-height: 58px; border: 2px solid #e2d2b2; background: #fff; border-radius: 12px; padding: 6px 10px; text-align: left; cursor: pointer; font-family: inherit; color: #0a2a5e; display: flex; flex-direction: column; justify-content: center; gap: 2px; }
.bd-op b { font-size: .9rem; } .bd-op span { font-size: .72rem; color: #047857; font-weight: 600; }
.bd-op.on { border-color: #0a4aa0; background: #eef5ff; } .bd-op:disabled { opacity: .5; cursor: not-allowed; } .bd-op:disabled span { color: #b91c1c; }
.bd-nota-p.ok { background: #ecfdf5; color: #047857; }
.bd-fila-i { display: flex; gap: 8px; } .bd-fila-i input { flex: 1; min-width: 0; } .bd-fila-i .bd-b { flex: none; }
.bd-enlace { display: flex; align-items: center; justify-content: center; text-decoration: none; margin: 8px 0 12px; }
.bd-rc-fotos { display: flex; gap: 8px; overflow-x: auto; margin: 6px 0 8px; }
.bd-rc-f { flex: none; width: 64px; text-align: center; font-size: .66rem; } .bd-rc-f img { width: 64px; height: 80px; object-fit: cover; border-radius: 8px; display: block; background: #f3e8d3; }
.bd-rc-res { font-size: .78rem; color: #4a4636; margin-bottom: 4px; line-height: 1.5; }
.bd-recibo { background: #fff; border: 1.5px dashed #c9b88f; border-radius: 12px; padding: 14px; font-size: .84rem; color: #0a2a5e; }
.rb-cab { display: flex; flex-direction: column; align-items: center; margin-bottom: 8px; } .rb-cab span { font-size: .72rem; color: #6f6a5c; }
.rb-t { text-align: center; font-weight: 700; margin-bottom: 8px; } .rb-m { font-size: .78rem; line-height: 1.6; margin-bottom: 8px; }
.rb-l { display: flex; justify-content: space-between; gap: 8px; padding: 5px 0; border-top: 1px solid #ead9bd; } .rb-l small { display: block; color: #6f6a5c; font-size: .72rem; }
.rb-tot { display: flex; justify-content: space-between; border-top: 2px solid #0a2a5e; margin-top: 6px; padding-top: 8px; font-size: 1rem; }
.fn-rango { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; margin: 0 0 8px; } .fn-rango label { display: flex; flex-direction: column; flex: 1 1 130px; font-size: .72rem; color: #6f6a5c; gap: 2px; } .fn-rango input { min-height: 40px; border: 1.5px solid #e2d2b2; border-radius: 12px; padding: 0 8px; font: inherit; font-size: .84rem; background: #fff; } .fn-rango button { min-height: 40px; border: 0; background: none; color: #d81e8f; font: 700 .8rem inherit; font-family: inherit; cursor: pointer; }
.fn-totr { background: #eef4ff; border-radius: 12px; padding: 8px 12px; margin: 0 0 8px; font-size: .82rem; color: #0a2a5e; }
.et-ops { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 8px; font-size: .78rem; color: #6f6a5c; } .et-ops button { min-height: 40px; padding: 0 14px; border-radius: 99px; border: 1.5px solid #e2d2b2; background: #fff; font: 700 .8rem inherit; font-family: inherit; color: #0a2a5e; cursor: pointer; } .et-ops button.on { background: #0a4aa0; border-color: #0a4aa0; color: #fff; }
.et-hoja { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; max-height: 40vh; overflow: auto; margin-bottom: 10px; } .et { border: 1.5px dashed #0a2a5e; border-radius: 8px; padding: 6px 8px; display: flex; flex-direction: column; gap: 1px; break-inside: avoid; background: #fff; } .et b { font-size: .8rem; line-height: 1.2; } .et span { font-size: .74rem; } .et em { font-style: normal; font-weight: 800; font-size: 1.05rem; color: #0a2a5e; } .et small { font-size: .66rem; color: #6f6a5c; }
@media print { body > *:not(#rb-velo):not(#et-velo) { display: none !important; } #et-velo { position: static !important; background: none !important; display: block !important; padding: 0 !important; } #et-velo h3, #et-velo p, #et-velo .et-ops, .et-bts { display: none !important; } #et-velo .et-hoja { max-height: none !important; overflow: visible !important; grid-template-columns: repeat(3, 1fr); } #rb-velo { position: static !important; background: none !important; display: block !important; padding: 0 !important; } .rb-bts { display: none !important; } .bd-caja { box-shadow: none !important; max-width: none !important; } }
.bd-lista-c { margin: 0 0 12px; padding-left: 18px; font-size: .84rem; color: #4a4636; line-height: 1.5; } .bd-lista-c li { margin-bottom: 4px; }

/* ---------- etapa D: finanzas de la bodega ---------- */
.bd-per { margin-bottom: 12px; }
.bd-resumen b.gan { color: #047857; }
.bd-sec { margin: 18px 0 8px; font-size: .92rem; color: #0a2a5e; }
.bd-aviso-f { background: #fef3c7; color: #92400e; border-radius: 12px; padding: 10px 12px; font-size: .8rem; margin-bottom: 10px; line-height: 1.4; }
.bd-fcajas { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 700px) { .bd-fcajas { grid-template-columns: 1fr 1fr; } }
.bd-fcaja { background: #fffaf0; border: 1.5px solid #e2d2b2; border-left: 5px solid var(--c); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.bd-fc-t { display: flex; flex-direction: column; } .bd-fc-t span { font-weight: 700; font-size: .92rem; color: var(--c); } .bd-fc-t small, .bd-fc-d { color: #6f6a5c; font-size: .74rem; line-height: 1.4; }
.bd-fcaja > b { font-size: 1.6rem; color: #0a2a5e; } .bd-fcaja > b.neg { color: #b91c1c; }
.bd-fc-b { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.bd-fc-b button { min-height: 44px; border: 2px solid var(--c); background: #fff; color: #0a2a5e; border-radius: 12px; padding: 0 12px; font: 600 .8rem inherit; font-family: inherit; cursor: pointer; flex: 1 1 auto; }
.bd-reparto { margin-top: 10px; background: #fff; border: 1.5px dashed #d9c9a8; border-radius: 12px; padding: 10px 12px; font-size: .78rem; color: #4a4636; display: flex; gap: 10px; align-items: center; justify-content: space-between; line-height: 1.5; }
.bd-reparto button { flex: none; min-height: 40px; border: 0; border-radius: 10px; background: #e2d2b2; color: #0a2a5e; font: 600 .78rem inherit; font-family: inherit; padding: 0 14px; cursor: pointer; }
.bd-fbox { background: #fffaf0; border: 1.5px solid #e2d2b2; border-radius: 14px; padding: 4px 12px; }
.bd-fl { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid #ead9bd; font-size: .84rem; } .bd-fl:last-child { border-bottom: 0; }
.bd-fl > span { flex: 1; min-width: 0; display: flex; flex-direction: column; } .bd-fl small { color: #6f6a5c; font-size: .72rem; }
.bd-fl em { font-style: normal; font-size: .72rem; color: #047857; background: #ecfdf5; border-radius: 99px; padding: 2px 9px; flex: none; }
.bd-fl b.pos { color: #047857; } .bd-fl b.neg { color: #b91c1c; }
.bd-x2 { width: 36px; height: 36px; border: 0; background: transparent; color: #b91c1c; cursor: pointer; font-size: 1rem; flex: none; }
.bd-disp { background: #eef5ff; border-radius: 10px; padding: 8px 12px; font-size: .82rem; margin-bottom: 4px; }
.bd-tabs button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-height: 54px; font-size: .72rem; padding: 0 2px; min-width: 0; }
.bd-tabs .ic { font-size: 1.15rem; line-height: 1.2; }
.bd-tabs .bd-pt { position: absolute; top: 2px; right: 6px; margin: 0; }

/* girar fotos y panel de tallas para todas (igual que en la tienda) */
.bd-gira { display: flex; gap: 6px; margin-top: 6px; } .bd-gira button { width: 44px; height: 44px; border: 1.5px solid #d9c9a8; background: #fff; border-radius: 50%; color: #0a2a5e; font-size: 1.2rem; cursor: pointer; } .bd-gira button:active { background: #d81e8f; color: #fff; }
.ed-giro { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 2px 8px; font-size: .74rem; color: #0a4aa0; font-weight: 600; } .ed-giro:empty { display: none; }
.ed-giro button { border: 1.5px solid #d9c9a8; background: #fff; border-radius: 99px; min-height: 36px; padding: 0 12px; font-size: .72rem; font-weight: 700; color: #6f6a5c; cursor: pointer; }
.bd-pn { border: 2px solid #d81e8f; background: #fff5fa; border-radius: 16px; padding: 10px 12px 12px; margin-bottom: 12px; display: flex; flex-direction: column; gap: 6px; }
.bd-pn > b { color: #0a2a5e; font-size: .92rem; } .bd-pn > small { color: #6f6a5c; font-size: .72rem; }
.bd-pn-g { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pn-on { display: flex; align-items: center; gap: 4px; border: 2px solid #0a2a5e; background: #eef5ff; border-radius: 12px; min-height: 44px; padding: 0 4px 0 10px; }
.pn-on b { color: #0a2a5e; font-size: .85rem; margin-right: 2px; } .pn-on span { min-width: 22px; text-align: center; font-weight: 700; color: #0a2a5e; }
.pn-on button { width: 36px; height: 36px; border: 0; border-radius: 50%; background: #fff; color: #0a2a5e; font-size: 1.1rem; font-weight: 700; cursor: pointer; }
.bd-pn-r > span { flex-basis: 100%; }
.bd-pn-r { font-size: .74rem; color: #6f6a5c; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; } .bd-pn-r button { width: 44px; height: 44px; border: 1.5px solid #d9c9a8; background: #fff; border-radius: 12px; font-weight: 700; color: #0a2a5e; cursor: pointer; }
.bd-pn-ap { width: 100%; min-height: 48px; margin-top: 4px; border: 0; border-radius: 14px; background: #d81e8f; color: #fff; font: 700 .92rem/1.2 inherit; font-family: inherit; cursor: pointer; } .bd-pn-ap:disabled { background: #e2d2b2; color: #8a7f65; cursor: not-allowed; }
.bd-pn-un { width: 100%; min-height: 44px; border: 1.5px dashed #0a4aa0; background: #fff; border-radius: 12px; color: #0a4aa0; font: 700 .8rem inherit; font-family: inherit; cursor: pointer; }

.bd-asist { width: 100%; min-height: 48px; margin: 0 0 10px; border: 2px solid #12a150; background: #e9f8ef; color: #0a5a2e; border-radius: 14px; font: 800 .88rem inherit; font-family: inherit; cursor: pointer; }

/* tipos de prenda escritos a mano */
.bd-chip.propio { border-style: dashed; }
.bd-tipo-par { display: inline-flex; } .bd-tipo-par > .bd-chip:first-child { border-radius: 12px 0 0 12px; border-right-width: 0; }
.bd-tipo-par > .bd-tipo-x { border-radius: 0 12px 12px 0; padding: 0 12px; min-width: 44px; color: #8a7f65; font-size: .8rem; }
.bd-tipo-otro { width: 100%; box-sizing: border-box; min-height: 46px; margin-top: 8px; border: 2px solid #e2d2b2; border-radius: 12px; padding: 0 12px; font: 500 .88rem inherit; font-family: inherit; background: #fff; }

/* editor en 3 pasos (igual que la tienda) */
.bd-pasos { display: flex; gap: 6px; padding: 8px 12px; background: #f3e8d3; border-bottom: 1px solid #e2d2b2; }
.bd-pasos button { flex: 1; min-height: 44px; border: 2px solid #e2d2b2; background: #fff; border-radius: 99px; font: 700 .8rem inherit; font-family: inherit; color: #0a2a5e; cursor: pointer; }
.bd-pasos button.on { background: #0a4aa0; border-color: #0a4aa0; color: #fff; }
.bd-pasos button.ok:not(.on) { border-color: #12a150; color: #0a5a2e; background: #e9f8ef; }
.bd-sube { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.bd-sb { min-height: 92px; border: 2px dashed #d81e8f; background: #fff5fa; color: #b0156f; border-radius: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-family: inherit; cursor: pointer; padding: 8px; }
.bd-sb i { font-style: normal; font-size: 1.8rem; } .bd-sb b { font-size: .88rem; } .bd-sb small { font-size: .7rem; color: #8a8068; } .bd-sb:active { background: #fde7f3; }
.bd-hoja .bd-ayuda { margin-top: 10px; }
.bd-res { margin: 4px 2px 6px; font-size: .82rem; color: #0a2a5e; }
.bd-fotos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; } @media (min-width: 600px) { .bd-fotos { grid-template-columns: repeat(3, 1fr); } }
.bd-ft { position: relative; display: flex; flex-direction: column; gap: 6px; }
.bd-ft-img { position: relative; width: 100%; aspect-ratio: 4 / 5; border: 2px dashed #d9c9a8; border-radius: 14px; background: #f3e8d3; padding: 0; overflow: hidden; cursor: pointer; font-size: 1.8rem; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #8a8068; font-family: inherit; }
.bd-ft-img img { width: 100%; height: 100%; object-fit: cover; display: block; } .bd-ft-img small { font-size: .72rem; }
.bd-ft-x { position: absolute; top: 6px; right: 6px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(10,42,94,.8); color: #fff; font-size: 1rem; cursor: pointer; }
.bd-ft .bd-gira { position: absolute; left: 6px; right: 6px; bottom: 56px; margin: 0; justify-content: space-between; pointer-events: none; }
.bd-ft .bd-gira button { pointer-events: auto; background: rgba(10,42,94,.82); color: #fff; border: 0; box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.bd-ft .bd-color { width: 100%; justify-content: center; }
.bd-vacio-f { text-align: center; padding: 26px 10px; color: #6f6a5c; display: flex; flex-direction: column; align-items: center; gap: 6px; } .bd-vacio-f b { font-size: 2rem; } .bd-vacio-f small { font-size: .78rem; margin-bottom: 6px; }
.bd-pie { flex-wrap: wrap; gap: 8px; padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
.bd-pie .bd-falta { flex: 1 1 100%; }
.bd-pie .bd-pie-b { display: flex; gap: 8px; width: 100%; }
.bd-pie .bd-pie-b .bd-b { flex: 1; min-width: 0; padding: 0 10px; font-size: .86rem; } .bd-pie .bd-pie-b .bd-sig { flex: 2; }
span.bd-bq-img { display: flex; align-items: center; justify-content: center; width: 56px; height: 70px; border-style: solid; font-size: 1.3rem; }
.bd-bq-col { display: inline-flex; align-items: center; gap: 8px; font-size: .95rem; color: #0a2a5e; } .bd-bq-col i { width: 18px; height: 18px; border-radius: 50%; border: 1px solid #0003; display: inline-block; }
.bd-pie .bd-pie-b .bd-atras { flex: .7; } .bd-pie .bd-pie-b .bd-otra2 { flex: 1.3; line-height: 1.15; }

/* catálogo de la bodega: tarjetas con foto, filtros y cantidades rápidas */
.bd-barra select { min-height: 46px; border: 2px solid #e2d2b2; border-radius: 12px; padding: 0 10px; font: 600 .82rem inherit; font-family: inherit; background: #fff; color: #0a2a5e; max-width: 100%; }
.bd-lista.bd-lista-f { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px; }
@media (min-width: 700px) { .bd-lista.bd-lista-f { grid-template-columns: repeat(3, minmax(0, 1fr)); } } @media (min-width: 1100px) { .bd-lista.bd-lista-f { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.bd-pc { display: flex; flex-direction: column; gap: 6px; padding: 0; border: 0; background: transparent; text-align: left; cursor: pointer; font-family: inherit; color: #0a2a5e; min-width: 0; }
.bd-pc-f { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden; background: #f0e6d0; box-shadow: 0 8px 20px rgba(40,30,10,.2); }
.bd-pc-f > img { width: 100%; height: 100%; object-fit: cover; display: block; } .bd-pc-n { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 3rem; opacity: .45; }
.bd-pc-f::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 55%; background: linear-gradient(to top, rgba(8,18,45,.85), rgba(8,18,45,.4) 60%, transparent); pointer-events: none; }
.bd-pc-i { position: absolute; left: 10px; right: 10px; bottom: 9px; z-index: 2; color: #fff; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.bd-pc-i b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .82rem; line-height: 1.18; text-shadow: 0 1px 4px rgba(0,0,0,.5); }
.bd-pc-i .bd-precio { background: #fff; color: #b0156f; font-size: .86rem; padding: 1px 10px; }
.bd-pc-en { position: absolute; top: 8px; right: 8px; z-index: 2; background: #12a150; color: #fff; font-style: normal; font-weight: 800; font-size: .74rem; border-radius: 99px; padding: 4px 10px; border: 2px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.3); }
.bd-pc.en .bd-pc-f { box-shadow: 0 0 0 3px #12a150, 0 10px 22px rgba(18,161,80,.35); }
.bd-pc-p { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 0 2px; }
.bd-pc-cs { display: flex; gap: 3px; } .bd-pc-cs i { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid #fff; box-shadow: 0 0 0 1px #cdbd9c; }
.bd-pf { display: grid; grid-template-columns: 38% minmax(0, 1fr); gap: 12px; align-items: start; margin-bottom: 4px; }
.bd-pf-f { aspect-ratio: 3 / 4; border-radius: 14px; overflow: hidden; background: #f3e8d3; display: flex; align-items: center; justify-content: center; font-size: 2.4rem; } .bd-pf-f img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bd-pf-i { display: flex; flex-direction: column; gap: 6px; min-width: 0; } .bd-pf-s { font-size: .76rem; color: #6f6a5c; } .bd-pf-i .bd-desc { margin: 2px 0 0; }
.bd-rap { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 8px; font-size: .76rem; color: #6f6a5c; }
.bd-rap button { min-width: 44px; min-height: 44px; border: 2px solid #e2d2b2; background: #fff; color: #0a2a5e; border-radius: 12px; font: 800 .9rem inherit; font-family: inherit; cursor: pointer; } .bd-rap button:active { background: #eef5ff; border-color: #0a4aa0; }
.bd-rap button.q { color: #b42318; font-size: .78rem; padding: 0 12px; }
.bd-hoja input.bd-qi { width: 62px; min-height: 44px; text-align: center; padding: 0; font: 800 1.05rem inherit; font-family: inherit; color: #8a8068; flex: none; } .bd-hoja input.bd-qi.on { color: #0a4aa0; border-color: #0a4aa0; background: #eef5ff; }
.bd-ped-acc .bd-repetir { min-height: 44px; font-size: .84rem; }
.bd-barra input#cat-buscar { flex: 1 1 140px; min-width: 0; } .bd-barra select#cat-orden { flex: 0 0 132px; }
.bd-pf-i .bd-precio.gr { align-self: flex-start; }

/* ---------- Inicio ---------- */
.ini-hero { background: linear-gradient(135deg, #0a4aa0, #0a2a5e); color: #fff; border-radius: 18px; padding: 16px 16px 14px; margin-bottom: 14px; box-shadow: 0 8px 22px rgba(10,42,94,.28); }
.ini-sal small { color: #cfe0fb; font-size: .8rem; } .ini-sal h2 { color: #fff; margin: 0; font-size: 1.35rem; line-height: 1.2; }
.ini-hero > p { margin: 4px 0 0; font-size: .8rem; color: #cfe0fb; }
.ini-dinero { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; margin-top: 12px; padding: 10px 4px; border: 0; border-radius: 14px; background: rgba(255,255,255,.12); color: #fff; font-family: inherit; cursor: pointer; text-align: center; }
.ini-dinero b { display: block; font-size: 1.02rem; } .ini-dinero b.gan { color: #86efac; } .ini-dinero span { font-size: .64rem; color: #cfe0fb; line-height: 1.2; display: block; }
.ini-sec { margin-bottom: 14px; } .ini-sec h3 { margin: 0 0 8px 2px; font-size: .9rem; }
.ini-t, .ini-av, .ini-p { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 54px; margin-bottom: 8px; padding: 8px 12px; background: #fff; border: 1.5px solid #e2d2b2; border-left-width: 5px; border-radius: 14px; font-family: inherit; color: #0a2a5e; cursor: pointer; text-align: left; box-shadow: 0 2px 8px rgba(60,45,20,.06); }
.ini-t:active, .ini-av:active, .ini-p:active, .ini-acc button:active { transform: scale(.98); }
.ini-t.ama, .ini-av.ama { border-left-color: #f59e0b; } .ini-t.azul { border-left-color: #0a4aa0; } .ini-t.verde { border-left-color: #12a150; } .ini-t.rojo, .ini-av.rojo { border-left-color: #dc2626; }
.ini-ico { font-size: 1.3rem; flex: none; width: 30px; text-align: center; } .ini-tt { flex: 1; font-weight: 600; font-size: .88rem; line-height: 1.25; }
.ini-t b { background: #d81e8f; color: #fff; border-radius: 99px; min-width: 28px; padding: 3px 9px; text-align: center; font-size: .85rem; }
.ini-t i, .ini-av i { font-style: normal; color: #8a8068; font-size: 1.3rem; } .ini-av { font-weight: 600; font-size: .86rem; } .ini-av span { font-size: 1.2rem; } .ini-av i { margin-left: auto; }
.ini-ok { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; background: #ecfdf5; border: 1.5px solid #a7f3d0; color: #047857; border-radius: 14px; padding: 12px 14px; font-size: .86rem; } .ini-ok span { flex: 1 1 100%; font-size: .76rem; color: #3f7f66; }
.ini-acc { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.ini-acc button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 76px; padding: 8px; background: #fff; border: 1.5px solid #e2d2b2; border-radius: 16px; font: 700 .84rem inherit; font-family: inherit; color: #0a2a5e; cursor: pointer; box-shadow: 0 2px 8px rgba(60,45,20,.06); }
.ini-acc button span { font-size: 1.4rem; line-height: 1.1; } .ini-acc small { font-weight: 500; font-size: .7rem; color: #6f6a5c; }
.ini-acc button.rosa { background: #d81e8f; border-color: transparent; color: #fff; } .ini-acc button.rosa small { color: #ffe3f3; }
.ini-pocas { background: #fffbeb; border: 1.5px solid #fde68a; border-radius: 14px; padding: 10px 12px; margin-bottom: 8px; }
.ini-pocas h4 { margin: 0 0 6px; font-size: .84rem; color: #92400e; } .ini-pocas div { display: flex; justify-content: space-between; gap: 8px; font-size: .82rem; padding: 3px 0; } .ini-pocas div span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ini-pocas b { flex: none; border-radius: 8px; padding: 0 8px; } .ini-pocas b.a { background: #fef3c7; color: #b45309; } .ini-pocas b.r { background: #fee2e2; color: #b91c1c; } .ini-pocas button { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 8px; min-height: 40px; padding: 3px 0; background: none; border: 0; border-top: 1px solid #fde68a; font: inherit; font-size: .82rem; color: #0a2a5e; cursor: pointer; text-align: left; } .ini-pocas button span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .ini-pocas em { font-style: normal; font-weight: 700; color: #d81e8f; font-size: .74rem; flex: none; }
.ini-sem { margin-top: 10px; padding: 10px 12px 6px; border-radius: 14px; background: rgba(255,255,255,.12); } .ini-sem-t { display: flex; justify-content: space-between; font-size: .72rem; color: #cfe0fb; } .ini-sem-t b { color: #fff; }
.ini-bar { display: flex; align-items: flex-end; gap: 6px; height: 64px; margin-top: 6px; } .ini-bar div { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 3px; } .ini-bar i { width: 100%; max-width: 26px; background: linear-gradient(#ff7cc6, #d81e8f); border-radius: 6px 6px 2px 2px; display: block; } .ini-bar span { font-size: .6rem; color: #cfe0fb; }
.ini-pocas small { color: #92400e; }
.ini-p { border-left-width: 1.5px; flex-wrap: wrap; } .ini-p > span:first-child { flex: 1; min-width: 0; } .ini-p b { display: block; font-size: .86rem; } .ini-p small { color: #6f6a5c; font-size: .72rem; } .ini-p em { font-style: normal; font-weight: 700; font-size: .86rem; }
@media (min-width: 761px) { #ini-cont { max-width: 720px; margin: 0 auto; } .ini-acc { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Inventario: tarjeta con tallas y «＋ Stock» ---------- */
.bd-barra2 { margin: -2px 0 10px; } .bd-barra2 select { flex: 1 1 140px; min-height: 42px; border: 2px solid #e2d2b2; border-radius: 12px; padding: 0 10px; font: 600 .84rem inherit; font-family: inherit; background: #fff; color: #0a2a5e; }
.bd-item { background: #fffaf0; border: 1.5px solid #e2d2b2; border-radius: 14px; overflow: hidden; } .bd-item.off { opacity: .65; }
.bd-item .bd-card { border: 0; border-radius: 0; background: transparent; } .bd-item:hover { border-color: #d81e8f; }
.bd-pie-i { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-top: 1px dashed #e2d2b2; background: #fff; }
.bd-tls { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; gap: 4px; } .bd-tls small { color: #8a8068; }
.bd-tl { font-style: normal; font-size: .7rem; font-weight: 700; background: #eef5ff; color: #0a2a5e; border-radius: 8px; padding: 2px 4px 2px 7px; display: inline-flex; gap: 5px; align-items: center; } .bd-tl b { background: #0a4aa0; color: #fff; border-radius: 6px; padding: 0 6px; font-size: .68rem; }
.bd-tl.c1 { background: #fef3c7; } .bd-tl.c1 b { background: #d97706; } .bd-tl.c0 { background: #fee2e2; } .bd-tl.c0 b { background: #dc2626; }
.bd-mas { flex: none; min-height: 44px; border: 0; border-radius: 99px; padding: 0 16px; background: #d81e8f; color: #fff; font: 700 .84rem inherit; font-family: inherit; cursor: pointer; } .bd-mas:active { transform: scale(.96); }
.bd-stk h3 { margin: 0 0 4px; font-size: 1rem; } .bd-stk-l { max-height: 52vh; overflow-y: auto; margin: 6px 0; } .bd-stk-c h4 { margin: 10px 0 4px; font-size: .84rem; color: #6f6a5c; }
.bd-stk-f { display: flex; align-items: center; gap: 8px; padding: 5px 0; border-bottom: 1px solid #f1e7d0; } .bd-stk-f > span { flex: 1; font-weight: 600; font-size: .88rem; }
.bd-stk-f button { width: 44px; height: 44px; border: 2px solid #e2d2b2; border-radius: 12px; background: #fff; color: #0a2a5e; font-size: 1.2rem; font-weight: 700; cursor: pointer; } .bd-stk-f button:disabled { opacity: .35; } .bd-stk-f button.d5 { width: 48px; font-size: .85rem; }
.bd-stk-f b { min-width: 46px; text-align: center; font-size: 1.1rem; } .bd-stk-f b small { display: block; font-size: .64rem; font-weight: 600; color: #8a8068; } .bd-stk-f.cambia b { color: #d81e8f; } .bd-stk-f.cambia b small { color: #d81e8f; }
.bd-stk-pie { display: flex; gap: 8px; margin-top: 10px; } .bd-stk-pie .bd-b { flex: 1; }

#v-inv .bd-barra:not(.bd-barra2) { flex-wrap: nowrap; } #v-inv .bd-barra input { flex: 1 1 0; min-width: 0; }

/* ---------- Inventario v2: filas compactas, cabecera fija, hoja de stock desde abajo ---------- */
.inv-top { position: sticky; top: 0; z-index: 20; margin: 0 -14px 8px; padding: 6px 14px 6px; background: rgba(228, 226, 248, .93); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(10, 42, 94, .08); }
#v-inv .bd-resumen { display: block; background: #0a2a5e; color: #fff; border: 0; border-radius: 14px; padding: 8px 12px; margin: 0 0 6px; text-align: left; }
.ir-a { display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: .74rem; color: #cfe0fb; } .ir-a b { color: #fff; font-size: .95rem; }
.ir-b { font-size: .68rem; color: #a9c4ee; margin-top: 2px; } .ir-b b { color: #86efac; }
.inv-b1 { display: flex; gap: 8px; margin-bottom: 6px; }
.inv-b1 input { flex: 1 1 0; min-width: 0; min-height: 46px; border: 2px solid #e2d2b2; border-radius: 99px; padding: 0 16px; font: inherit; font-size: .92rem; background: #fff; color: #0a2a5e; } .inv-b1 input:focus { outline: none; border-color: #d81e8f; }
.inv-mas { flex: none; min-height: 46px; display: inline-flex; align-items: center; gap: 4px; border: 0; border-radius: 99px; padding: 0 16px 0 12px; background: linear-gradient(135deg, #d81e8f, #b0156f); color: #fff; font-family: inherit; cursor: pointer; box-shadow: 0 4px 12px rgba(216,30,143,.35); } .inv-mas span { font-size: 1.4rem; line-height: 1; font-weight: 600; } .inv-mas em { font-style: normal; font-weight: 700; font-size: .84rem; }
.inv-b2 { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.inv-b2 .bd-filtros { display: contents; }
.inv-b2 .bd-filtros button { min-height: 36px; padding: 0 12px; font-size: .78rem; background: #fff; border: 1.5px solid #e2d2b2; } .inv-b2 .bd-filtros button.on { background: #0a4aa0; border-color: #0a4aa0; color: #fff; }
.inv-b2 .bd-filtros button i { font-style: normal; font-size: .66rem; font-weight: 800; background: #fde68a; color: #92400e; border-radius: 99px; padding: 1px 6px; margin-left: 5px; } .inv-b2 .bd-filtros button.on i { background: rgba(255,255,255,.25); color: #fff; }
.inv-b2 select { min-height: 36px; max-width: 120px; border: 1.5px solid #e2d2b2; border-radius: 99px; padding: 0 8px; font: 600 .76rem inherit; font-family: inherit; background: #fff; color: #0a2a5e; } .inv-b2 select.on { border-color: #d81e8f; color: #d81e8f; }
.inv-b2 small { font-size: .7rem; color: #6f6a5c; margin-left: auto; }
#v-inv .bd-lista { gap: 6px; }
.iv { display: flex; align-items: stretch; background: #fffaf0; border: 1.5px solid #e2d2b2; border-radius: 14px; overflow: hidden; } .iv.off { opacity: .6; }
.iv-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 8px; border: 0; background: transparent; font-family: inherit; color: #0a2a5e; text-align: left; cursor: pointer; } .iv-main:active { background: #f6ecd6; }
.iv-f { width: 54px; height: 68px; flex: none; border-radius: 9px; background: #f3e8d3; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; overflow: hidden; } .iv-f img { width: 100%; height: 100%; object-fit: cover; }
.iv-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; } .iv-t > b { font-size: .88rem; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.iv-m { font-size: .7rem; color: #6f6a5c; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .iv-m em { font-style: normal; font-weight: 800; color: #0a4aa0; font-size: .78rem; } .iv-m .sc { text-decoration: none; color: #b45309; font-weight: 700; }
.iv-tl { display: flex; flex-wrap: wrap; gap: 3px; } .iv-tl small { color: #8a8068; font-size: .68rem; }
.ivt { font-style: normal; font-size: .64rem; font-weight: 700; background: #eef5ff; color: #0a2a5e; border-radius: 6px; padding: 1px 5px; } .ivt b { color: #0a4aa0; }
.ivt.c1 { background: #fef3c7; } .ivt.c1 b { color: #b45309; } .ivt.c0 { background: #fee2e2; } .ivt.c0 b { color: #b91c1c; }
.iv-u { flex: none; width: 52px; text-align: center; border-radius: 12px; padding: 6px 0; } .iv-u b { display: block; font-size: 1.2rem; line-height: 1.1; } .iv-u small { font-size: .58rem; font-weight: 700; }
.iv-u.verde { background: #d1fae5; color: #047857; } .iv-u.ambar { background: #fef3c7; color: #b45309; } .iv-u.rojo { background: #fee2e2; color: #b91c1c; }
.iv-e { flex: none; width: 46px; border: 0; border-left: 1px solid #efe2c4; background: #fff; font-size: 1.05rem; cursor: pointer; } .iv-e:active { background: #f6ecd6; }
@media (min-width: 761px) { .inv-top { margin: 0 0 8px; border-radius: 14px; } }
.bd-velo.bd-abajo { align-items: flex-end; padding: 0; } .bd-velo.bd-abajo .bd-caja { width: 100%; max-width: 520px; border-radius: 20px 20px 0 0; padding-bottom: calc(16px + env(safe-area-inset-bottom)); max-height: 92vh; overflow-y: auto; animation: bd-sube .2s ease-out; }
@keyframes bd-sube { from { transform: translateY(40px); opacity: .6; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .bd-velo.bd-abajo .bd-caja { animation: none; } }
@media (min-width: 761px) { .bd-velo.bd-abajo { align-items: center; padding: 16px; } .bd-velo.bd-abajo .bd-caja { border-radius: 18px; } }
.bd-stk-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; } .bd-stk-h h3 { margin: 0; flex: 1; min-width: 0; font-size: .98rem; }
.bd-stk-ed { flex: none; min-height: 40px; border: 1.5px solid #e2d2b2; background: #fff; border-radius: 99px; padding: 0 12px; font: 700 .76rem inherit; font-family: inherit; color: #0a2a5e; cursor: pointer; }

#v-inv .bd-resumen div { background: none; border: 0; padding: 0; border-radius: 0; text-align: left; }
#v-inv .bd-resumen { margin-bottom: 8px; }
.inv-top { margin-top: 0; }
#v-inv .bd-resumen b { display: inline; font-size: inherit; } #v-inv .bd-resumen .ir-a b { font-size: .95rem; } #v-inv .bd-resumen span { font-size: .74rem; color: #cfe0fb; }
#v-inv .bd-resumen .ir-a span b { color: #fff; } #v-inv .bd-resumen .ir-b b { color: #86efac; font-size: .72rem; }

/* ---------- Editor interactivo ---------- */
.bd-vivo { position: relative; display: flex; align-items: center; gap: 10px; padding: 8px 14px 10px; background: #fff; border-bottom: 1px solid #e2d2b2; }
.bv-f { width: 40px; height: 50px; flex: none; border-radius: 8px; background: #f3e8d3; display: flex; align-items: center; justify-content: center; overflow: hidden; font-size: 1.2rem; } .bv-f img { width: 100%; height: 100%; object-fit: cover; }
.bv-t { flex: 1; min-width: 0; display: flex; flex-direction: column; } .bv-t b { font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .bv-t small { font-size: .7rem; color: #6f6a5c; }
.bv-p { flex: none; min-width: 44px; text-align: center; font-size: .78rem; font-weight: 800; color: #0a4aa0; background: #eef5ff; border-radius: 99px; padding: 4px 8px; } .bv-p.ok { background: #d1fae5; color: #047857; }
.bv-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: #efe2c4; } .bv-bar i { display: block; height: 100%; background: linear-gradient(90deg, #0a4aa0, #d81e8f); transition: width .35s ease; }
.bd-falta[role=button] { cursor: pointer; } .bd-falta[role=button]:not(.ok) { text-decoration: underline dotted; text-underline-offset: 3px; }
.bd-cuerpo.ir-sig { animation: bd-sig .22s ease-out; } .bd-cuerpo.ir-atr { animation: bd-atr .22s ease-out; }
@keyframes bd-sig { from { opacity: 0; transform: translateX(26px); } to { opacity: 1; transform: none; } } @keyframes bd-atr { from { opacity: 0; transform: translateX(-26px); } to { opacity: 1; transform: none; } }
.bd-ft.pop { animation: bd-pop .35s cubic-bezier(.3, 1.5, .5, 1); } @keyframes bd-pop { from { transform: scale(.7); opacity: 0; } to { transform: none; opacity: 1; } }
.bd-ft-carga .bd-ft-img { border-style: solid; border-color: #0a4aa0; color: #0a4aa0; gap: 6px; background: linear-gradient(110deg, #f3e8d3 30%, #fffaf0 50%, #f3e8d3 70%) 0 0 / 200% 100%; animation: bd-brillo 1.1s linear infinite; }
.bd-ft-carga.lista .bd-ft-img { border-color: #12a150; color: #047857; animation: none; background: #e9f8ef; } .bd-ft-carga.lista .spin { display: none; }
@keyframes bd-brillo { to { background-position: -200% 0; } }
.spin { width: 26px; height: 26px; border: 3px solid #cfe0fb; border-top-color: #0a4aa0; border-radius: 50%; animation: bd-gira .7s linear infinite; } @keyframes bd-gira { to { transform: rotate(360deg); } }
.bd-sug-f { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; } .bd-sug-f:empty { display: none; } .bd-sug-f small { font-size: .72rem; color: #6f6a5c; flex-basis: 100%; }
.bd-sug { min-height: 40px; border: 1.5px dashed #0a4aa0; background: #f4f8ff; color: #0a2a5e; border-radius: 99px; padding: 0 14px; font: 700 .82rem inherit; font-family: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; } .bd-sug:active { transform: scale(.95); } .bd-sug i { font-style: normal; font-size: .66rem; font-weight: 600; color: #6f6a5c; } .bd-sug.on { background: #0a4aa0; color: #fff; border-style: solid; } .bd-sug.on i { color: #cfe0fb; }
input.sacude { animation: bd-sacude .5s; border-color: #d81e8f !important; } @keyframes bd-sacude { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.bd-ok { width: 100%; max-width: 420px; margin: auto; background: #fffaf0; border-radius: 22px; padding: 26px 20px 20px; text-align: center; display: flex; flex-direction: column; gap: 10px; animation: bd-pop .4s cubic-bezier(.3, 1.4, .5, 1); }
.bd-velo:has(.bd-ok) { align-items: center; padding: 16px; } .bd-ok h2 { margin: 0; font-size: 1.3rem; } .bd-ok p { margin: 0; color: #6f6a5c; font-size: .86rem; }
.bd-ok-c { position: relative; width: 84px; height: 84px; margin: 0 auto; } .bd-ok-c svg { width: 100%; height: 100%; } .bd-ok-c circle { fill: #d1fae5; stroke: #12a150; stroke-width: 3; stroke-dasharray: 151; stroke-dashoffset: 151; animation: bd-trazo .5s .1s forwards; } .bd-ok-c path { fill: none; stroke: #047857; stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: bd-trazo .35s .5s forwards; }
@keyframes bd-trazo { to { stroke-dashoffset: 0; } }
.bd-ok-c s { position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; border-radius: 50%; background: #d81e8f; opacity: 0; animation: bd-conf .8s var(--d) .45s ease-out forwards; } .bd-ok-c s:nth-child(3n) { background: #0a4aa0; } .bd-ok-c s:nth-child(3n+1) { background: #f59e0b; }
@keyframes bd-conf { 0% { opacity: 1; transform: rotate(var(--a)) translateY(0); } 100% { opacity: 0; transform: rotate(var(--a)) translateY(-70px) scale(.5); } }
.bd-ok-card { display: flex; align-items: center; gap: 12px; text-align: left; background: #fff; border: 1.5px solid #e2d2b2; border-radius: 14px; padding: 10px; } .bd-ok-card b { display: block; font-size: .92rem; } .bd-ok-card small { color: #6f6a5c; font-size: .74rem; }
.bd-ok-f { width: 52px; height: 64px; flex: none; border-radius: 9px; background: #f3e8d3; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; overflow: hidden; } .bd-ok-f img { width: 100%; height: 100%; object-fit: cover; }
.bd-ok-n { color: #8a8068; font-size: .72rem; margin-top: -6px; }
@media (prefers-reduced-motion: reduce) { .bd-cuerpo.ir-sig, .bd-cuerpo.ir-atr, .bd-ft.pop, .bd-ok, .bd-ok-c s, input.sacude { animation: none; } .bd-ok-c circle, .bd-ok-c path { animation: none; stroke-dashoffset: 0; } .bd-ft-carga .bd-ft-img, .spin { animation-duration: 3s; } }

/* ---------- Catálogo interactivo ---------- */
#v-cat .bd-barra { flex-wrap: nowrap; margin-bottom: 6px; } #v-cat .bd-barra input { flex: 1 1 0; min-width: 0; border-radius: 99px; } #v-cat .bd-barra select { flex: none; max-width: 118px; min-height: 46px; border: 2px solid #e2d2b2; border-radius: 99px; padding: 0 8px; font: 600 .78rem inherit; font-family: inherit; background: #fff; color: #0a2a5e; }
.bd-vista { flex: none; width: 46px; height: 46px; border: 2px solid #e2d2b2; border-radius: 50%; background: #fff; color: #0a2a5e; font-size: 1.2rem; cursor: pointer; } .bd-vista:active { transform: scale(.94); }
#v-cat .bd-filtros { margin-bottom: 0; gap: 6px; } #v-cat .bd-filtros button { min-height: 36px; padding: 0 12px; font-size: .78rem; background: #fff; border: 1.5px solid #e2d2b2; } #v-cat .bd-filtros button.on { background: #0a4aa0; border-color: #0a4aa0; color: #fff; }
.bd-pc { cursor: default; } .bd-pc-w { position: relative; }
.bd-pc-f { width: 100%; padding: 0; border: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; display: block; position: relative; } .bd-pc-f:active { transform: scale(.985); }
.bd-fav { position: absolute; top: 4px; left: 4px; z-index: 3; width: 44px; height: 44px; border: 0; background: none; font-size: 1.5rem; color: #fff; text-shadow: 0 1px 5px rgba(0,0,0,.6); cursor: pointer; } .bd-fav.on { color: #fbbf24; } .bd-fav:active { transform: scale(1.25); }
.bd-pc-tag { position: absolute; top: 8px; right: 8px; z-index: 2; font-style: normal; font-weight: 800; font-size: .66rem; border-radius: 99px; padding: 3px 9px; color: #fff; } .bd-pc-tag.ult { background: #dc2626; } .bd-pc-tag.nue { background: #d81e8f; }
.bd-pc-h { display: none; }
.bd-pc-cs { display: flex; align-items: center; gap: 2px; padding: 0 2px; min-height: 30px; flex-wrap: wrap; } .bd-pc-cs small { font-size: .7rem; font-weight: 600; color: #6f6a5c; margin-left: 4px; }
.bd-pc-cs button { width: 34px; height: 34px; border: 0; background: none; padding: 0; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; } .bd-pc-cs button i { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px #cdbd9c; transition: transform .15s, box-shadow .15s; } .bd-pc-cs button.on i { box-shadow: 0 0 0 2.5px #d81e8f; transform: scale(1.15); }
.bd-pc-t { display: flex; flex-wrap: wrap; gap: 5px; padding: 0 2px 2px; }
.bd-tb { position: relative; min-width: 42px; min-height: 40px; padding: 0 10px; border: 1.5px solid #d9c9a8; background: #fff; color: #0a2a5e; border-radius: 12px; font: 800 .82rem inherit; font-family: inherit; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 5px; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; touch-action: manipulation; }
.bd-tb:active { transform: scale(.93); } .bd-tb.low { border-color: #f59e0b; } .bd-tb.on { background: #0a4aa0; border-color: #0a4aa0; color: #fff; } .bd-tb b { background: #fff; color: #0a4aa0; border-radius: 99px; font-size: .68rem; min-width: 18px; padding: 0 5px; line-height: 18px; text-align: center; }
.bd-tb.bump { animation: bd-bump .38s cubic-bezier(.3, 1.6, .5, 1); } @keyframes bd-bump { 0% { transform: scale(.8); } 60% { transform: scale(1.18); } 100% { transform: none; } }
.bd-carro button.bump { animation: bd-bump .4s cubic-bezier(.3, 1.6, .5, 1); } .bd-cb-th { display: inline-flex; } .bd-cb-th img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; margin-left: -8px; } .bd-cb-th img:first-child { margin-left: 0; }
.bd-pf-f { position: relative; } .bd-pf-dots { position: absolute; left: 0; right: 0; bottom: 6px; display: flex; justify-content: center; gap: 5px; } .bd-pf-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.6); box-shadow: 0 0 3px rgba(0,0,0,.5); } .bd-pf-dots i.on { background: #fff; width: 16px; border-radius: 4px; }
.bd-cols .lowt, small.lowt { color: #dc2626; font-weight: 700; } .bd-sub-t { margin: 8px 0 2px; padding: 8px 12px; background: #eef5ff; border-radius: 12px; font-size: .82rem; color: #0a2a5e; }
.bd-vaciar { width: 100%; min-height: 44px; margin-top: 6px; border: 1.5px dashed #dc2626; background: #fff; color: #b42318; border-radius: 12px; font: 700 .8rem inherit; font-family: inherit; cursor: pointer; }
/* vista de lista compacta */
.bd-lista-f.lista { grid-template-columns: 1fr; gap: 8px; }
.lista .bd-pc { display: grid; grid-template-columns: 92px minmax(0, 1fr); grid-template-areas: "w h" "w c" "w t"; column-gap: 10px; row-gap: 2px; align-content: start; background: #fffaf0; border: 1.5px solid #e2d2b2; border-radius: 16px; padding: 8px; }
.lista .bd-pc-w { grid-area: w; } .lista .bd-pc-f { aspect-ratio: 3 / 4; border-radius: 12px; box-shadow: none; } .lista .bd-pc-f::after, .lista .bd-pc-i { display: none; } .lista .bd-fav { width: 36px; height: 36px; font-size: 1.2rem; top: 0; left: 0; } .lista .bd-pc-tag { top: 4px; right: 4px; font-size: .58rem; padding: 2px 6px; } .lista .bd-pc-en { top: 4px; right: 4px; font-size: .64rem; padding: 2px 7px; }
.lista .bd-pc-h { grid-area: h; display: flex; flex-direction: column; gap: 2px; } .lista .bd-pc-h b { font-size: .88rem; line-height: 1.2; } .lista .bd-pc-h span { display: flex; align-items: center; gap: 8px; } .lista .bd-pc-h small { font-size: .7rem; color: #6f6a5c; }
.lista .bd-pc-cs { grid-area: c; } .lista .bd-pc-t { grid-area: t; align-content: flex-start; }
@media (min-width: 700px) { .bd-lista-f.lista { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .bd-tb.bump, .bd-carro button.bump { animation: none; } }

/* ---------- Pedidos v2 ---------- */
.pd-res { display: flex; flex-wrap: wrap; gap: 6px 14px; background: #0a2a5e; color: #cfe0fb; border-radius: 14px; padding: 8px 14px; margin-bottom: 8px; font-size: .76rem; } .pd-res b { color: #fff; font-size: .95rem; } .pd-res .yo b { color: #f9a8d4; } .pd-res:empty { display: none; }
.pd-bus { width: 100%; min-height: 46px; border: 2px solid #e2d2b2; border-radius: 99px; padding: 0 16px; font: inherit; font-size: .9rem; background: #fff; color: #0a2a5e; margin-bottom: 6px; } .pd-bus:focus { outline: none; border-color: #d81e8f; }
#v-ped .bd-filtros { margin-bottom: 0; gap: 6px; } #v-ped .bd-filtros button { min-height: 36px; padding: 0 12px; font-size: .78rem; background: #fff; border: 1.5px solid #e2d2b2; } #v-ped .bd-filtros button.on { background: #0a4aa0; border-color: #0a4aa0; color: #fff; }
#v-ped .bd-filtros button i { font-style: normal; font-size: .66rem; font-weight: 800; background: #fde68a; color: #92400e; border-radius: 99px; padding: 1px 6px; margin-left: 5px; } #v-ped .bd-filtros button.on i { background: rgba(255,255,255,.25); color: #fff; }
.pd-dia { margin: 12px 4px 6px; font-size: .78rem; color: #6f6a5c; text-transform: uppercase; letter-spacing: .04em; }
.bd-ped.pd { padding: 0; margin-bottom: 8px; overflow: hidden; border-left: 5px solid #e2d2b2; } .bd-ped.pd.turno { border-left-color: #d81e8f; box-shadow: 0 4px 14px rgba(216,30,143,.18); }
.pd-cab { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 64px; padding: 10px 12px; border: 0; background: transparent; font-family: inherit; color: #0a2a5e; text-align: left; cursor: pointer; } .pd-cab:active { background: #f6ecd6; }
.pd-th { flex: none; display: inline-flex; min-width: 46px; font-size: 1.3rem; } .pd-th img { width: 38px; height: 46px; object-fit: cover; border-radius: 8px; border: 2px solid #fffaf0; margin-left: -14px; box-shadow: 0 1px 4px rgba(0,0,0,.2); } .pd-th img:first-child { margin-left: 0; }
.pd-t { flex: 1; min-width: 0; display: flex; flex-direction: column; } .pd-t b { font-size: .92rem; } .pd-t small { font-size: .72rem; color: #6f6a5c; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pd-d { flex: none; text-align: right; } .pd-d b { font-size: .95rem; } .pd-fl { flex: none; color: #8a8068; font-size: .9rem; }
.pd-pasos { display: flex; justify-content: space-between; padding: 0 14px 8px; position: relative; } .pd-pasos::before { content: ""; position: absolute; left: 14%; right: 14%; top: 10px; height: 2px; background: #e2d2b2; }
.pd-pasos span { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: .62rem; font-weight: 600; color: #8a8068; } .pd-pasos i { font-style: normal; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 2px solid #e2d2b2; display: flex; align-items: center; justify-content: center; font-size: .66rem; font-weight: 800; z-index: 1; }
.pd-pasos .hecho { color: #047857; } .pd-pasos .hecho i { background: #12a150; border-color: #12a150; color: #fff; } .pd-pasos .ahora { color: #0a4aa0; } .pd-pasos .ahora i { background: #0a4aa0; border-color: #0a4aa0; color: #fff; animation: pd-late 1.6s ease-in-out infinite; }
@keyframes pd-late { 0%, 100% { box-shadow: 0 0 0 0 rgba(10,74,160,.45); } 50% { box-shadow: 0 0 0 6px rgba(10,74,160,0); } }
.pd-pasos.x { display: block; padding: 0 14px 8px; color: #b91c1c; font-weight: 700; font-size: .78rem; } .pd-pasos.x::before { display: none; }
.pd-turno { margin: 0 12px 8px; padding: 6px 10px; border-radius: 10px; font-size: .78rem; font-weight: 600; } .pd-turno.yo { background: #fdf2f8; color: #b0156f; } .pd-turno.esp { background: #f3f4f6; color: #6f6a5c; }
.bd-ped.pd > .bd-ped-acc { margin: 0 12px 12px; } .pd-det { padding: 0 12px 12px; border-top: 1px dashed #e2d2b2; } .pd-det .bd-ped-acc { margin-top: 8px; }
@media (prefers-reduced-motion: reduce) { .pd-pasos .ahora i { animation: none; } }
#v-ped .bd-filtros { flex-wrap: wrap; overflow: visible; }

.ini-suc { background: #fff; border: 1.5px solid #e2d2b2; border-radius: 14px; padding: 6px 12px; }
.ini-sr { display: grid; grid-template-columns: minmax(70px, 1fr) 1.4fr auto; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid #f1e7d0; } .ini-sr:last-child { border-bottom: 0; }
.ini-sr span { display: flex; flex-direction: column; min-width: 0; } .ini-sr b { font-size: .84rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .ini-sr small { font-size: .68rem; color: #6f6a5c; }
.ini-sr i { display: block; height: 10px; background: #f1e7d0; border-radius: 99px; overflow: hidden; } .ini-sr u { display: block; height: 100%; background: linear-gradient(90deg, #0a4aa0, #d81e8f); border-radius: 99px; text-decoration: none; } .ini-sr em { font-style: normal; font-weight: 700; font-size: .84rem; }
.ini-top { margin-top: 8px; background: #fffbeb; border: 1.5px solid #fde68a; border-radius: 14px; padding: 10px 12px; } .ini-top h4 { margin: 0 0 4px; font-size: .84rem; color: #92400e; } .ini-top div { display: flex; justify-content: space-between; gap: 8px; font-size: .82rem; padding: 3px 0; } .ini-top span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .ini-top b { flex: none; color: #b0156f; }

/* ---------- Finanzas de la bodega v2 ---------- */
.fn-hero { background: linear-gradient(135deg, #0a4aa0, #0a2a5e); color: #fff; border-radius: 18px; padding: 14px 14px 12px; margin-bottom: 12px; box-shadow: 0 8px 22px rgba(10,42,94,.28); }
.fn-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; } .fn-top small { color: #cfe0fb; font-size: .76rem; display: block; } .fn-top b { font-size: 1.9rem; line-height: 1.15; }
.fn-sh { flex: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255,255,255,.15); color: #fff; font-size: 1.1rem; cursor: pointer; }
.fn-per { display: flex; gap: 6px; margin: 10px 0; } .fn-per button { flex: 1; min-height: 38px; border: 1.5px solid rgba(255,255,255,.35); border-radius: 99px; background: transparent; color: #fff; font: 600 .78rem inherit; font-family: inherit; cursor: pointer; } .fn-per button.on { background: #fff; color: #0a2a5e; border-color: #fff; }
.fn-kp { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; background: rgba(255,255,255,.12); border-radius: 14px; padding: 8px 4px; text-align: center; } .fn-kp b { display: block; font-size: .98rem; } .fn-kp b.gan { color: #86efac; } .fn-kp span { font-size: .64rem; color: #cfe0fb; }
.fn-cajas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; } @media (min-width: 900px) { .fn-cajas { grid-template-columns: repeat(4, 1fr); } }
.fn-caja { background: #fff; border: 1.5px solid #e2d2b2; border-top: 5px solid var(--c); border-radius: 14px; padding: 10px 10px 8px; display: flex; flex-direction: column; gap: 3px; min-width: 0; box-shadow: 0 2px 8px rgba(60,45,20,.06); }
.fn-ct span { font-weight: 700; font-size: .8rem; color: var(--c); } .fn-caja > b { font-size: 1.3rem; color: #0a2a5e; } .fn-caja > b.neg { color: #b91c1c; }
.fn-bar { display: block; height: 7px; background: #f1e7d0; border-radius: 99px; overflow: hidden; } .fn-bar u { display: block; height: 100%; background: var(--c); border-radius: 99px; text-decoration: none; transition: width .5s ease; }
.fn-caja > small { font-size: .64rem; color: #6f6a5c; line-height: 1.3; min-height: 2.6em; }
.fn-cb { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 2px; } .fn-cb button { flex: 1 1 auto; min-height: 44px; border: 1.5px solid var(--c); background: #fff; color: #0a2a5e; border-radius: 12px; font: 700 .76rem inherit; font-family: inherit; cursor: pointer; padding: 0 6px; } .fn-cb button:active { background: #f6ecd6; }
.fn-rep { background: #fff; border: 1.5px solid #e2d2b2; border-radius: 14px; padding: 10px 12px; margin-bottom: 4px; } .fn-rt { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: .84rem; } .fn-rt button { min-height: 38px; border: 1.5px solid #e2d2b2; background: #fff; border-radius: 99px; padding: 0 14px; font: 700 .76rem inherit; font-family: inherit; color: #0a4aa0; cursor: pointer; }
.fn-rb { display: flex; height: 14px; border-radius: 99px; overflow: hidden; margin: 8px 0; gap: 2px; } .fn-rb u { display: block; min-width: 4px; text-decoration: none; }
.fn-rl { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .72rem; color: #6f6a5c; } .fn-rl span { display: inline-flex; align-items: center; gap: 5px; } .fn-rl i { width: 10px; height: 10px; border-radius: 3px; } .fn-rl b { color: #0a2a5e; }
.fn-ch { margin: 0 0 6px; flex-wrap: wrap; gap: 6px; } .fn-ch button { min-height: 36px; padding: 0 12px; font-size: .78rem; background: #fff; border: 1.5px solid #e2d2b2; } .fn-ch button.on { background: #0a4aa0; border-color: #0a4aa0; color: #fff; }
.fn-mvs { background: #fff; border: 1.5px solid #e2d2b2; border-radius: 14px; padding: 2px 12px 6px; } .fn-mvs .pd-dia { margin: 10px 0 2px; }
.fn-mv { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid #f1e7d0; } .fn-mv:last-child { border-bottom: 0; }
.fn-mi { flex: none; width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1rem; } .fn-mt { flex: 1; min-width: 0; display: flex; flex-direction: column; } .fn-mt b { font-size: .84rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .fn-mt small { font-size: .7rem; color: #6f6a5c; }
.fn-mv > b.pos { color: #047857; } .fn-mv > b.neg { color: #b91c1c; } .fn-mv > b { font-size: .86rem; flex: none; }
.ini-top small { color: #92400e; font-weight: 400; }
#v-fin .ini-sr small { white-space: normal; }
@media (prefers-reduced-motion: reduce) { .fn-bar u { transition: none; } }
.fn-cb button { flex: 1 1 70px; font-size: .72rem; }

.bd-ped.foco { animation: pd-foco 2.4s ease; } @keyframes pd-foco { 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); } }
@media (prefers-reduced-motion: reduce) { .bd-ped.foco { animation: none; outline: 3px solid #d81e8f; } }

/* ---------- subir fotos: cámara destacada, avance de colores, sugerencia de color y visor ---------- */
.bd-sb.cam { background: #d81e8f; border: 2px solid #d81e8f; color: #fff; box-shadow: 0 6px 16px rgba(216,30,143,.28); } .bd-sb.cam small { color: rgba(255,255,255,.88); } .bd-sb.cam:active { background: #b0156f; }
.bd-sube:not(.compacto) .bd-sb { min-height: 116px; }
.bd-sube.compacto .bd-sb { min-height: 52px; flex-direction: row; gap: 8px; border-radius: 14px; } .bd-sube.compacto .bd-sb i { font-size: 1.3rem; } .bd-sube.compacto .bd-sb:not(.cam) { border-style: solid; border-color: #d9c9a8; background: #fff; color: #0a2a5e; }
.bd-velo.arr .bd-hoja { outline: 3px dashed #d81e8f; outline-offset: -6px; }
.bd-prog { margin: 8px 2px; font-size: .82rem; color: #0a2a5e; display: flex; flex-direction: column; gap: 5px; } .bd-prog i { display: block; height: 8px; border-radius: 99px; background: #f3e8d3; overflow: hidden; } .bd-prog u { display: block; height: 100%; background: #12a150; border-radius: 99px; transition: width .3s; }
.bd-asist.sug { border-color: #d81e8f; background: #fff5fa; color: #b0156f; }
.bd-ft .bd-ft-img { border-style: solid; border-color: #d81e8f; } .bd-ft.con .bd-ft-img { border-color: #12a150; }
.bd-sugc { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; min-height: 44px; border: 1.5px dashed #d81e8f; background: #fff5fa; color: #b0156f; border-radius: 12px; font: 600 .8rem inherit; font-family: inherit; cursor: pointer; padding: 0 8px; } .bd-sugc i { width: 16px; height: 16px; border-radius: 50%; border: 1px solid #0003; flex: none; } .bd-sugc b { color: #0a4aa0; }
.bd-vz { max-width: 440px; } .vz-img { background: #f3e8d3; border-radius: 14px; overflow: hidden; margin-bottom: 8px; } .vz-img img { display: block; width: 100%; max-height: 52vh; object-fit: contain; }
.vz-info { display: flex; justify-content: space-between; gap: 8px; font-size: .84rem; margin-bottom: 8px; color: #0a2a5e; } .vz-info span { color: #6f6a5c; }
.vz-acc { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 8px; } .vz-acc button { min-height: 56px; border: 1.5px solid #d9c9a8; background: #fff; border-radius: 12px; font-size: 1.25rem; color: #0a2a5e; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; font-family: inherit; } .vz-acc button small { font-size: .66rem; font-weight: 600; } .vz-acc button:active { background: #eef5ff; }
.bd-ft-w { position: relative; } .bd-ft-w .bd-gira { bottom: 6px; }

/* ---------- portada y editor de fotos ---------- */
.vz-acc { grid-template-columns: repeat(auto-fit, minmax(60px, 1fr)); }
.bd-ft-por { position: absolute; left: 8px; top: 8px; background: #d81e8f; color: #fff; font-size: .68rem; font-weight: 800; padding: 3px 9px; border-radius: 99px; box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.bd-port.vacia { border: 2px dashed #d81e8f; background: #fff5fa; border-radius: 16px; padding: 12px; display: flex; flex-direction: column; gap: 4px; } .bd-port.vacia b { color: #b0156f; font-size: .9rem; } .bd-port.vacia small { color: #6f6a5c; font-size: .76rem; margin-bottom: 6px; }
.bd-port { display: flex; gap: 12px; align-items: stretch; } .bd-port:not(.vacia) { border: 2px solid #12a150; border-radius: 16px; padding: 8px; background: #fff; }
.bd-port-f { position: relative; flex: none; width: 46%; aspect-ratio: 4 / 5; border: 0; padding: 0; border-radius: 12px; overflow: hidden; background: #f3e8d3; cursor: pointer; } .bd-port-f img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bd-port-b { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 6px; } .bd-port-b button { min-height: 44px; border: 1.5px solid #d9c9a8; background: #fff; border-radius: 12px; font: 700 .82rem inherit; font-family: inherit; color: #0a2a5e; cursor: pointer; text-align: left; padding: 0 12px; } .bd-port-b button:active { background: #eef5ff; }

.bd-fondo { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 10px; } .bd-fondo .bd-b { flex: 1 1 150px; min-height: 48px; }
.ef-pin { margin-top: 0; } .ef button.ef-pb.on { background: #0a4aa0; color: #fff; }

.bd-ft.port .bd-ft-img { border-color: #d81e8f; } .bd-ft.port .bd-color { color: #b0156f; border-color: #d81e8f; font-size: .78rem; justify-content: center; }

.bd-cam-bar { position: sticky; bottom: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; background: #fff5fa; border: 2px solid #d81e8f; border-radius: 16px; padding: 10px 12px; margin: 8px 0; box-shadow: 0 6px 18px rgba(216,30,143,.25); } .bd-cam-bar b { flex: 1 1 100%; color: #b0156f; font-size: .88rem; } .bd-cam-bar .bd-b { flex: 1 1 140px; min-height: 48px; }
.bd-b.rosa { background: #d81e8f; color: #fff; }

.bd-asa { position: absolute; left: 6px; top: 6px; z-index: 3; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(10,42,94,.82); color: #fff; font-size: 1.3rem; line-height: 1; box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.bd-ft:has(.bd-asa) .bd-ft-por { left: 56px; }
.bd-prev { min-height: 40px; padding: 0 12px; border: 0; border-radius: 99px; background: #d81e8f; color: #fff; font: 700 .76rem inherit; font-family: inherit; cursor: pointer; margin-left: auto; margin-right: 8px; }

.bd-prev { white-space: nowrap; } .vp-card { margin: 0 auto; }

.ac-ed:has(button:nth-child(3)) { gap: 6px; }

.bd-mej { position: absolute; left: 6px; bottom: 6px; z-index: 3; background: #d81e8f; color: #fff; font-size: .66rem; font-weight: 800; padding: 3px 8px; border-radius: 99px; box-shadow: 0 2px 6px rgba(0,0,0,.3); pointer-events: none; } .bd-ft:has(.bd-gira) .bd-mej { bottom: auto; top: 58px; }

.bd-mt { max-width: 520px; } .bd-mt .bd-caja, .bd-caja.bd-mt { max-height: 92vh; overflow-y: auto; }
.mt-acc { margin-bottom: 4px; } #mt-q { width: 100%; min-height: 44px; border: 1.5px solid #e2d2b2; border-radius: 12px; padding: 0 12px; font: inherit; margin: 8px 0 6px; box-sizing: border-box; }
.mt-rap { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; } .mt-rap button { min-height: 40px; padding: 0 12px; border-radius: 99px; border: 1.5px solid #e2d2b2; background: #fff; font: 700 .76rem inherit; font-family: inherit; color: #0a2a5e; cursor: pointer; }
.mt-lista { max-height: 36vh; overflow-y: auto; border: 1.5px solid #efe3c8; border-radius: 12px; background: #fff; margin-bottom: 8px; }
.mt-f { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 6px 10px; border-bottom: 1px solid #f3ead6; cursor: pointer; } .mt-f:last-child { border-bottom: 0; } .mt-f input { width: 22px; height: 22px; flex: none; accent-color: #0a4aa0; }
.mt-i { flex: none; width: 40px; height: 48px; border-radius: 8px; background: #f3e8d3; display: flex; align-items: center; justify-content: center; overflow: hidden; } .mt-i img { width: 100%; height: 100%; object-fit: cover; }
.mt-t { display: flex; flex-direction: column; min-width: 0; } .mt-t b { font-size: .84rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .mt-t small { font-size: .72rem; color: #6f6a5c; }
.bd-caja label.mt-f { display: flex !important; flex-direction: row; align-items: center; margin: 0; font-weight: 400; } .bd-caja .mt-f input { width: 22px; height: 22px; min-height: 0; padding: 0; margin: 0; flex: none; } .bd-caja .mt-i { flex: none; }

.ir-extra { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-height: 46px; margin-top: 8px; padding: 0 12px; border: 1.5px solid #e2d2b2; background: #fff; border-radius: 12px; font: 600 .84rem inherit; font-family: inherit; color: #0a2a5e; cursor: pointer; } .ir-extra span { color: #d81e8f; font-weight: 800; font-size: .78rem; }
.ex-ej { background: #eef5ff; border-radius: 12px; padding: 8px 12px; margin: 8px 0 10px; font-size: .82rem; color: #0a2a5e; line-height: 1.5; }

.cat-modo { display: flex; gap: 6px; margin-bottom: 8px; } .cat-modo:empty { display: none; } .cat-modo button { flex: 1; min-height: 46px; border-radius: 99px; border: 2px solid #e2d2b2; background: #fff; font: 800 .84rem inherit; font-family: inherit; color: #0a2a5e; cursor: pointer; } .cat-modo button.on { background: #12a150; border-color: #12a150; color: #fff; }

.cb-lin { display: grid; grid-template-columns: 44px 1fr auto; gap: 6px 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid #f3ead6; } .cb-lin .bd-mini { grid-row: span 2; } .cb-p { grid-column: 2 / 4; display: flex; align-items: center; gap: 8px; margin: 0; } .cb-p small { white-space: nowrap; color: #6f6a5c; } .cb-p .bd-dolar { flex: 1; margin: 0; } .cb-p input { min-height: 44px; }
.cb-tot { display: flex; gap: 10px; margin-bottom: 8px; } .cb-tot div { flex: 1; background: #eef5ff; border-radius: 12px; padding: 8px 12px; display: flex; flex-direction: column; } .cb-tot span { font-size: .72rem; color: #6f6a5c; } .cb-tot b { font-size: 1.3rem; color: #0a2a5e; } .cb-tot div:nth-child(2) { background: #ecfdf5; } .cb-tot div:nth-child(2) b { color: #047857; } .cb-tot .neg { background: #fef2f2 !important; } .cb-tot .neg b { color: #b91c1c !important; }
.fn-mv.anul { opacity: .55; }

.ini-vh { display: flex; gap: 10px; width: 100%; border: 0; background: none; padding: 0; cursor: pointer; font-family: inherit; text-align: left; } .ini-vh div { flex: 1; background: #ecfdf5; border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; } .ini-vh b { font-size: 1.35rem; color: #0a2a5e; font-variant-numeric: tabular-nums; } .ini-vh b.gan { color: #047857; } .ini-vh span { font-size: .72rem; color: #6f6a5c; }

.ini-sv { margin-top: 8px; padding: 10px 12px 6px; border-radius: 14px; background: #fff; border: 1.5px solid #efe3c8; } .ini-sv-t { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 8px; font-size: .74rem; color: #6f6a5c; } .ini-sv-t b { color: #0a2a5e; } .ini-sv-t b.gan { color: #047857; }
.ini-sv-b { display: flex; align-items: flex-end; gap: 6px; height: 70px; margin-top: 6px; } .ini-sv-b div { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 3px; } .ini-sv-b i { display: block; width: 100%; background: #12a150; border-radius: 6px 6px 2px 2px; min-height: 4px; } .ini-sv-b span { font-size: .62rem; color: #6f6a5c; }

.ini-pg { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; } .ini-pg span { flex: 1 1 30%; background: #fff; border: 1.5px solid #efe3c8; border-radius: 12px; padding: 6px 10px; font-size: .72rem; color: #6f6a5c; display: flex; flex-direction: column; } .ini-pg b { font-size: .98rem; color: #0a2a5e; font-variant-numeric: tabular-nums; }
.ini-sv-c { margin-top: 4px; font-size: .74rem; font-weight: 700; color: #6f6a5c; } .ini-sv-c.sube { color: #047857; } .ini-sv-c.baja { color: #b91c1c; }

.ini-cierre { width: 100%; min-height: 46px; margin-top: 8px; border: 2px solid #12a150; background: #ecfdf5; color: #065f46; border-radius: 14px; font: 800 .86rem inherit; font-family: inherit; cursor: pointer; }
.ini-meta { margin-top: 8px; padding-top: 8px; border-top: 1px dashed #e2d2b2; } .ini-meta-t { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 8px; font-size: .76rem; color: #6f6a5c; } .ini-meta-t b { color: #0a2a5e; }
.ini-meta-b { display: block; height: 10px; border-radius: 99px; background: #f3e8d3; overflow: hidden; margin: 6px 0; } .ini-meta-b u { display: block; height: 100%; background: linear-gradient(90deg, #12a150, #d81e8f); border-radius: 99px; }
.ini-meta button, .ini-meta-n { min-height: 40px; border: 0; background: none; color: #d81e8f; font: 700 .78rem inherit; font-family: inherit; cursor: pointer; padding: 0 4px; } .ini-meta-n { width: 100%; margin-top: 6px; border: 1.5px dashed #e2d2b2; border-radius: 12px; color: #0a2a5e; }

.cat-modo button.rap { flex: 0 0 auto; padding: 0 14px; background: #fff5fa; border-color: #d81e8f; color: #b0156f; }
.cb-lin.rap { grid-template-columns: 44px 1fr auto auto; } .cb-lin.rap .cb-qr { grid-row: auto; } .rp-q { margin: 4px 0 8px; }

.bd-vaciar.cb-otra { border-color: #d81e8f; color: #b0156f; background: #fff5fa; }

/* ---------- Inicio v2 (tablero): encabezado, acciones grandes, tareas, ventas de hoy y salud del inventario ---------- */
.i2-hero { position: relative; overflow: hidden; padding: 16px 16px 46px; margin-bottom: 0; background: linear-gradient(135deg, #0a4aa0 0%, #0a2a5e 70%); }
.i2-hero::before { content: ""; position: absolute; right: -40px; top: -50px; width: 170px; height: 170px; border-radius: 50%; background: radial-gradient(circle, rgba(216,30,143,.55), transparent 70%); pointer-events: none; }
.i2-hero::after { content: ""; position: absolute; left: -30px; bottom: -60px; width: 150px; height: 150px; border-radius: 50%; background: radial-gradient(circle, rgba(134,239,172,.25), transparent 70%); pointer-events: none; }
.i2-hero > * { position: relative; z-index: 1; }
.i2-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; } .i2-fecha { font-size: .7rem; color: #cfe0fb; background: rgba(255,255,255,.14); border-radius: 99px; padding: 4px 10px; white-space: nowrap; margin-top: 2px; }
.i2-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; } .i2-pills span { font-size: .74rem; color: #e8f0ff; background: rgba(255,255,255,.12); border-radius: 99px; padding: 4px 10px; } .i2-pills b { color: #fff; }
.i2-hero .ini-dinero { background: rgba(255,255,255,.14); backdrop-filter: blur(4px); } .i2-hero .ini-dinero b { font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.i2-acc { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: -32px 8px 12px; position: relative; z-index: 2; } .i2-acc.dos { grid-template-columns: repeat(2, 1fr); }
.i2-g { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 84px; padding: 8px 4px; background: #fff; border: 1.5px solid #e2d2b2; border-radius: 18px; font: 700 .8rem inherit; font-family: inherit; color: #0a2a5e; cursor: pointer; box-shadow: 0 8px 18px rgba(10,42,94,.16); transition: transform .15s; }
.i2-g span { font-size: 1.55rem; line-height: 1.1; } .i2-g:active { transform: scale(.96); } .i2-g.rosa { background: linear-gradient(135deg, #ec4aa8, #d81e8f); border-color: transparent; color: #fff; }
.i2-seguir { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 56px; margin: 0 0 12px; padding: 8px 14px; border: 2px solid #d81e8f; background: #fff5fa; border-radius: 16px; font-family: inherit; color: #0a2a5e; cursor: pointer; text-align: left; animation: i2-pulso 2.4s ease-in-out infinite; }
.i2-seguir > span:first-child { font-size: 1.5rem; } .i2-st { flex: 1; display: flex; flex-direction: column; } .i2-st b { font-size: .9rem; } .i2-st small { font-size: .72rem; color: #6f6a5c; } .i2-seguir i { font-style: normal; font-size: 1.4rem; color: #d81e8f; }
@keyframes i2-pulso { 0%, 100% { box-shadow: 0 0 0 0 rgba(216,30,143,.35); } 50% { box-shadow: 0 0 0 7px rgba(216,30,143,0); } }
.ini-sec h3 { display: flex; align-items: center; gap: 6px; } .i2-n { font-style: normal; background: #d81e8f; color: #fff; border-radius: 99px; font-size: .7rem; padding: 1px 8px; } .i2-vt { margin-left: auto; border: 0; background: none; color: #d81e8f; font: 700 .76rem inherit; font-family: inherit; min-height: 36px; cursor: pointer; }
.i2-t { animation: i2-sube .35s ease both; animation-delay: calc(var(--i) * 60ms); } .ini-tt small { display: block; font-weight: 400; font-size: .7rem; color: #6f6a5c; }
.ini-t .ini-ico { background: #fff7e6; border-radius: 12px; width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; } .ini-t.azul .ini-ico { background: #eaf2ff; } .ini-t.verde .ini-ico { background: #e8f8ef; } .ini-t.rojo .ini-ico { background: #fdecec; }
@keyframes i2-sube { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.i2-pbar, .i2-sbar { display: flex; height: 12px; border-radius: 99px; overflow: hidden; background: #f1e7d0; margin-top: 10px; gap: 2px; } .i2-pbar i, .i2-sbar i { display: block; min-width: 0; } .i2-sbar i.v { background: #12a150; } .i2-sbar i.a { background: #f59e0b; } .i2-sbar i.r { background: #dc2626; }
.i2-pleg { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 6px 2px 8px; } .i2-pleg span { display: flex; align-items: center; gap: 5px; font-size: .72rem; color: #6f6a5c; } .i2-pleg u { width: 9px; height: 9px; border-radius: 50%; display: inline-block; } .i2-pleg b { color: #0a2a5e; font-variant-numeric: tabular-nums; }
.i2-sal { background: #fff; border: 1.5px solid #efe3c8; border-radius: 14px; padding: 2px 12px 2px; margin-bottom: 8px; }
.i2-vacio { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; background: #fff; border: 1.5px dashed #e2d2b2; border-radius: 16px; padding: 16px 14px; } .i2-vacio > span { font-size: 1.8rem; } .i2-vacio small { color: #6f6a5c; font-size: .76rem; margin-bottom: 6px; } .i2-vacio .bd-b { min-height: 46px; padding: 0 22px; }
.i2-rep { width: 100%; margin-bottom: 8px; }
.i2-mas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; } .i2-mas button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 64px; background: #fff; border: 1.5px solid #e2d2b2; border-radius: 14px; font: 600 .76rem inherit; font-family: inherit; color: #0a2a5e; cursor: pointer; } .i2-mas span { font-size: 1.2rem; }
@media (prefers-reduced-motion: reduce) { .i2-t, .i2-seguir { animation: none; } .i2-g { transition: none; } }
@media (max-width: 340px) { .i2-g { font-size: .72rem; } .i2-fecha { display: none; } }
@media (min-width: 761px) { .i2-acc { margin-left: 16px; margin-right: 16px; } }

.ini-p > span:first-child { min-width: 120px; } .ini-p > span:first-child b { white-space: nowrap; } .ini-p .bd-est { flex: 0 1 auto; }

/* ---------- cabecera y pestañas con el mismo estilo del Inicio v2 ---------- */
.bd-cab { background: linear-gradient(135deg, #0a4aa0, #0a2a5e); border-radius: 18px; padding: 12px 14px; gap: 8px 10px; box-shadow: 0 6px 16px rgba(10,42,94,.22); }
.bd-cab h1 { font-size: 1.05rem; letter-spacing: .1px; min-width: 150px; }
.bd-quien { background: rgba(255,255,255,.14); color: #e8f0ff; border-radius: 99px; padding: 3px 10px; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .72rem; }
.bd-cab a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: 99px; background: rgba(255,255,255,.14); color: #fff; font-weight: 600; font-size: .78rem; }
.bd-tabs { position: sticky; top: 6px; z-index: 30; border-radius: 18px; background: rgba(255,250,240,.96); backdrop-filter: blur(6px); box-shadow: 0 6px 16px rgba(60,45,20,.14); }
.bd-tabs button { border-radius: 14px; transition: background .2s, color .2s; }
.bd-tabs button.on { background: linear-gradient(135deg, #ec4aa8, #d81e8f); box-shadow: 0 3px 10px rgba(216,30,143,.4); }
.bd-tabs button.on .ic { animation: i2-bota .35s ease; } @keyframes i2-bota { 0% { transform: scale(.7); } 60% { transform: scale(1.25); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .bd-tabs button, .bd-tabs button.on .ic { transition: none; animation: none; } }
.i2-ult { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 52px; margin-top: 8px; padding: 8px 12px; background: #fff; border: 1.5px solid #efe3c8; border-radius: 14px; font-family: inherit; color: #0a2a5e; cursor: pointer; text-align: left; } .i2-ult > span:first-child { font-size: 1.3rem; } .i2-ult em { font-style: normal; font-weight: 800; color: #047857; font-size: .95rem; }

/* ---------- Inventario v3: resumen en cifras, tarjetas con barra de stock, cuadrícula de fotos ---------- */
.bd-tabs { transition: transform .25s ease, opacity .25s; } body.tabs-ocultas .bd-tabs { transform: translateY(-130%); opacity: 0; pointer-events: none; }
.inv-top { top: 76px; transition: top .25s ease; } body.tabs-ocultas .inv-top { top: 0; }
@media (prefers-reduced-motion: reduce) { .bd-tabs, .inv-top { transition: none; } }
#v-inv .ir3 { background: linear-gradient(135deg, #0a4aa0, #0a2a5e); border-radius: 18px; padding: 12px; box-shadow: 0 6px 16px rgba(10,42,94,.22); }
.ir3-k3 { display: grid; grid-template-columns: .8fr .9fr 1.5fr; gap: 6px; }
#v-inv .ir3 .ir3-k { background: rgba(255,255,255,.14); border-radius: 12px; padding: 8px 6px; text-align: center; min-width: 0; }
#v-inv .ir3 .ir3-k b { display: block; font-size: 1.12rem; color: #fff; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; } #v-inv .ir3 .ir3-k span { display: block; font-size: .62rem; color: #cfe0fb; line-height: 1.2; }
.ir3-c { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 10px; margin-top: 8px; font-size: .72rem; color: #cfe0fb; } .ir3-c b { color: #fff; } .ir3-c b.g { color: #86efac; }
.inv-b2 .bd-filtros button.av:not(.on) { border-color: #f59e0b; } .inv-b2 .bd-filtros button.rj:not(.on) { border-color: #dc2626; }
.inv-vista { flex: none; width: 36px; height: 36px; border: 1.5px solid #e2d2b2; border-radius: 99px; background: #fff; color: #0a2a5e; font-size: 1rem; cursor: pointer; padding: 0; }
.iv3 { position: relative; border-radius: 16px; box-shadow: 0 2px 8px rgba(60,45,20,.07); transition: box-shadow .15s, transform .15s; } .iv3:active { transform: scale(.99); }
.iv3 .iv-f { position: relative; width: 62px; height: 78px; border-radius: 11px; } .iv-bd { position: absolute; left: 3px; bottom: 3px; font-style: normal; font-size: .7rem; background: rgba(255,255,255,.92); border-radius: 99px; padding: 0 5px; line-height: 18px; box-shadow: 0 1px 4px rgba(0,0,0,.2); } .iv-bd.of { background: #6f6a5c; color: #fff; font-weight: 700; font-size: .58rem; left: 3px; top: 3px; bottom: auto; }
.iv-bar { display: block; height: 5px; border-radius: 99px; background: #f1e7d0; overflow: hidden; margin-top: 2px; } .iv-bar u { display: block; height: 100%; border-radius: 99px; text-decoration: none; transition: width .5s ease; } .iv-bar u.verde { background: #12a150; } .iv-bar u.ambar { background: #f59e0b; } .iv-bar u.rojo { background: #dc2626; }
.iv-e2 { flex: none; width: 46px; display: flex; flex-direction: column; border-left: 1px solid #efe2c4; } .iv-e2 .iv-e { flex: 1; width: 100%; min-height: 44px; border: 0; background: #fff; font-size: 1.05rem; cursor: pointer; } .iv-e2 .iv-e + .iv-e { border-top: 1px solid #efe2c4; } .iv-e2 .iv-e:active { background: #f6ecd6; }
.iv-mas { grid-column: 1 / -1; min-height: 48px; }
.iv-vacio { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 28px 16px; } .iv-vacio > span { font-size: 2.2rem; } .iv-vacio small { color: #6f6a5c; } .iv-vacio .bd-b { min-height: 46px; padding: 0 22px; margin-top: 6px; }
/* cuadrícula de fotos: 2 columnas en celular, más en pantallas grandes */
#v-inv .bd-lista.iv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 700px) { #v-inv .bd-lista.iv-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } } @media (min-width: 1100px) { #v-inv .bd-lista.iv-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.iv-grid .iv { flex-direction: column; } .iv-grid .iv-main { flex-direction: column; align-items: stretch; padding: 0; gap: 0; }
.iv-grid .iv3 .iv-f { width: 100%; height: auto; aspect-ratio: 3 / 4; border-radius: 0; } .iv-grid .iv-t { padding: 8px 10px 10px; } .iv-grid .iv-t > b { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.iv-grid .iv-m .x, .iv-grid .iv-tl { display: none; } .iv-grid .iv-m em { font-size: .9rem; }
.iv-grid .iv-u { position: absolute; top: 8px; right: 8px; width: auto; min-width: 46px; padding: 4px 8px; box-shadow: 0 2px 8px rgba(0,0,0,.2); } .iv-grid .iv-e2 { width: 100%; flex-direction: row; border-left: 0; border-top: 1px solid #efe2c4; } .iv-grid .iv-e2 .iv-e + .iv-e { border-top: 0; border-left: 1px solid #efe2c4; }
/* ajustes Inventario v3: valor extra legible, buscador ancho y una sola fila de filtros que se desliza */
#v-inv .bd-resumen .ir-extra span { color: #d81e8f; font-weight: 800; }
#v-inv .ir3 .ir-extra { width: 100%; min-height: 44px; margin-top: 8px; }
.inv-b1 .inv-mas { padding: 0 12px; } .inv-b1 .inv-tienda em { display: none; } .inv-b1 .inv-mas span { font-size: 1.3rem; }
.inv-b2 { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding-bottom: 2px; } .inv-b2::-webkit-scrollbar { display: none; } .inv-b2 > *, .inv-b2 .bd-filtros button { flex: none; white-space: nowrap; }
@media (min-width: 761px) { .inv-b1 .inv-tienda em { display: inline; } }

/* ---------- Inventario: elegir varias prendas y salidas recientes ---------- */
.inv-elegir { width: auto; padding: 0 12px; font: 700 .76rem inherit; font-family: inherit; } .inv-elegir.on { background: #0a4aa0; border-color: #0a4aa0; color: #fff; }
.iv-ck { display: none; position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; border: 2px solid #fff; background: rgba(10,42,94,.35); color: transparent; font-style: normal; font-weight: 800; font-size: .8rem; line-height: 20px; text-align: center; box-shadow: 0 1px 4px rgba(0,0,0,.3); }
.iv-sel-on .iv-ck { display: block; } .iv.sel { border-color: #d81e8f; box-shadow: 0 0 0 2px #d81e8f; } .iv.sel .iv-ck { background: #d81e8f; color: #fff; } .iv-sel-on .iv-e2 { display: none; }
.inv-selbar { position: fixed; left: 10px; right: 10px; bottom: 78px; z-index: 160; display: flex; align-items: center; gap: 4px; padding: 6px; background: #0a2a5e; color: #fff; border-radius: 18px; box-shadow: 0 10px 24px rgba(10,42,94,.4); max-width: 620px; margin: 0 auto; animation: bd-sube .2s ease-out; }
.inv-selbar .isb-n { flex: none; padding: 0 8px; font-size: .74rem; line-height: 1.1; } .inv-selbar .isb-n b { display: block; font-size: 1.1rem; }
.inv-selbar button { flex: 1 1 auto; min-height: 44px; border: 0; border-radius: 12px; background: rgba(255,255,255,.14); color: #fff; font: 700 .72rem inherit; font-family: inherit; cursor: pointer; padding: 0 6px; } .inv-selbar button:disabled { opacity: .4; } .inv-selbar button.x { flex: none; width: 44px; background: #d81e8f; }
@media (min-width: 761px) { .inv-selbar { bottom: 18px; } }
.bd-mov { margin-top: 10px; border: 1.5px solid #efe3c8; border-radius: 14px; background: #fff; padding: 0 12px; } .bd-mov summary { min-height: 44px; display: flex; align-items: center; font: 700 .84rem inherit; font-family: inherit; color: #0a2a5e; cursor: pointer; }
.bd-mov-f { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-top: 1px solid #f1e7d0; } .bd-mov-t { flex: 1; min-width: 0; display: flex; flex-direction: column; } .bd-mov-t b { font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .bd-mov-t small, .bd-mov-n { font-size: .68rem; color: #6f6a5c; } .bd-mov-f em { font-style: normal; font-weight: 800; color: #b91c1c; } .bd-mov-n { display: block; padding: 4px 0 8px; }

/* ---------- Catálogo: mismo estilo que el Inicio y el Inventario ---------- */
.cat-modo { background: #fffaf0; border: 1.5px solid #e2d2b2; border-radius: 99px; padding: 4px; gap: 4px; }
.cat-modo button { border: 0; background: transparent; min-height: 42px; } .cat-modo button.on { background: linear-gradient(135deg, #ec4aa8, #d81e8f); color: #fff; box-shadow: 0 3px 10px rgba(216,30,143,.35); }
.cat-modo button.rap { background: #fff5fa; border: 1.5px solid #d81e8f; }
#cat-ayuda { display: inline-block; margin: 0 0 10px; padding: 4px 12px; background: #fff; border: 1.5px solid #efe3c8; border-radius: 99px; font-size: .74rem; font-weight: 600; color: #0a2a5e; } #cat-ayuda:empty { display: none; }
.bd-pc { border-radius: 18px; box-shadow: 0 3px 10px rgba(60,45,20,.09); transition: box-shadow .15s, transform .15s; } .bd-pc.en { box-shadow: 0 0 0 2px #0a4aa0, 0 6px 16px rgba(10,74,160,.2); }
.bd-pc-f img { transition: transform .35s ease; } .bd-pc-f:hover img { transform: scale(1.04); }
.bd-pc-i .bd-precio, .bd-pc-h .bd-precio { background: #d81e8f; color: #fff; border-radius: 99px; padding: 1px 9px; font-style: normal; font-weight: 800; }
@media (prefers-reduced-motion: reduce) { .bd-pc, .bd-pc-f img { transition: none; } .inv-selbar { animation: none; } }
#lista.iv-sel-on { padding-bottom: 96px; }

/* ---------- Pedidos y Finanzas de la bodega: mismo estilo que el Inicio y el Inventario ---------- */
.pd-res { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; background: linear-gradient(135deg, #0a4aa0, #0a2a5e); border-radius: 18px; padding: 10px; box-shadow: 0 6px 16px rgba(10,42,94,.22); }
.pd-res .pd-k { background: rgba(255,255,255,.14); border-radius: 12px; padding: 8px 4px; text-align: center; min-width: 0; } .pd-res .pd-k b { display: block; font-size: 1.1rem; color: #fff; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; } .pd-res .pd-k span { font-size: .62rem; color: #cfe0fb; } .pd-res .pd-k.yo { background: rgba(236,74,168,.55); }
#v-ped .bd-filtros { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; } #v-ped .bd-filtros::-webkit-scrollbar { display: none; } #v-ped .bd-filtros button { flex: none; white-space: nowrap; }
.pd-dia { display: inline-block; margin: 14px 4px 6px; padding: 2px 10px; background: #fff; border: 1.5px solid #efe3c8; border-radius: 99px; font-size: .7rem; font-weight: 700; color: #0a2a5e; }
.bd-ped.pd { border-radius: 18px; box-shadow: 0 3px 10px rgba(60,45,20,.09); } .pd-d { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; } .pd-d .bd-est { font-size: .62rem; padding: 2px 8px; white-space: nowrap; }
.bd-ped.pd .bd-ped-acc .bd-b { min-height: 48px; border-radius: 14px; }
.fn-hero { position: relative; overflow: hidden; } .fn-hero::before { content: ""; position: absolute; right: -40px; top: -50px; width: 170px; height: 170px; border-radius: 50%; background: radial-gradient(circle, rgba(216,30,143,.5), transparent 70%); pointer-events: none; } .fn-hero > * { position: relative; }
.fn-top b { font-variant-numeric: tabular-nums; } .fn-kp { background: rgba(255,255,255,.14); }
.fn-nav { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: -2px 0 12px; padding: 2px 0; } .fn-nav::-webkit-scrollbar { display: none; } .fn-nav button { flex: none; min-height: 40px; padding: 0 14px; border: 1.5px solid #e2d2b2; border-radius: 99px; background: #fff; color: #0a2a5e; font: 700 .76rem inherit; font-family: inherit; cursor: pointer; } .fn-nav button:active { background: #f6ecd6; }
#fn-s-cajas, #fn-s-rep, #fn-s-ven, #fn-s-mov { scroll-margin-top: 90px; }
.fn-ct { display: flex; align-items: center; gap: 8px; } .fn-ci { font-style: normal; width: 32px; height: 32px; border-radius: 10px; background: color-mix(in srgb, var(--c) 14%, #fff); display: flex; align-items: center; justify-content: center; font-size: 1.05rem; flex: none; }
.fn-caja { border-radius: 18px; } .fn-rep, .fn-mvs, .ini-suc { border-radius: 18px; }
.bd-sec { display: flex; align-items: center; gap: 6px; } .bd-sec::before { content: ""; width: 4px; height: 16px; border-radius: 2px; background: #d81e8f; }

/* ---------- la portada es la foto del modelo, no un color: se rotula igual que en la tienda ---------- */
.bd-pc-ref { position: absolute; left: 44px; top: 10px; z-index: 2; background: rgba(10,42,94,.85); color: #fff; font-style: normal; font-size: .6rem; font-weight: 700; line-height: 1; padding: 5px 8px; border-radius: 99px; pointer-events: none; } .lista .bd-pc-ref { left: 40px; top: 6px; font-size: .54rem; padding: 4px 6px; }
.bd-ref { position: absolute; left: 0; right: 0; top: 0; z-index: 3; padding: 8px 12px; background: linear-gradient(180deg, rgba(10,42,94,.88), rgba(10,42,94,.55) 70%, transparent); color: #fff; pointer-events: none; } .bd-ref b { display: block; font-size: .78rem; } .bd-ref small { display: block; font-size: .66rem; opacity: .9; }
.bd-nota-c { margin: -2px 0 8px; font-size: .74rem; color: #6f6a5c; line-height: 1.35; }
.bd-cols button.bd-col-mod { border-style: dashed; border-color: #0a2a5e; background: #eef5ff; } .bd-cols button.bd-col-mod.on { border-color: #d81e8f; }
.iv-pt { position: absolute; left: 0; right: 0; bottom: 0; text-align: center; background: rgba(10,42,94,.85); color: #fff; font-style: normal; font-size: .52rem; font-weight: 700; line-height: 14px; } .iv-f .iv-bd { bottom: 18px; }
.bd-pc-ref { left: 10px; top: 50px; max-width: calc(100% - 20px); } .lista .bd-pc-ref { left: 4px; top: auto; bottom: 6px; max-width: calc(100% - 8px); font-size: .5rem; padding: 3px 5px; }
.bd-ref { padding: 6px 8px; } .bd-ref b { font-size: .62rem; line-height: 1.2; } .bd-ref small { display: none; }

/* ---------- cuenta para pagos en el Inicio de la bodega ---------- */
.ini-cta { background: linear-gradient(135deg, #eef5ff, #fff); border: 1.5px solid #cfe0fb; border-radius: 18px; padding: 12px 14px; box-shadow: 0 3px 10px rgba(10,42,94,.08); }
.cta-t { display: flex; flex-direction: column; gap: 1px; margin-bottom: 8px; font-size: .88rem; color: #0a2a5e; } .cta-t small { font-size: .7rem; color: #6f6a5c; }
.cta-f { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px dashed #cfe0fb; } .cta-f span { flex: none; width: 64px; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #6f6a5c; } .cta-f b { flex: 1; min-width: 0; font-size: .95rem; color: #0a2a5e; word-break: break-all; user-select: all; font-variant-numeric: tabular-nums; }
.cta-c { flex: none; min-height: 44px; padding: 0 12px; border: 1.5px solid #0a4aa0; background: #fff; color: #0a4aa0; border-radius: 12px; font: 700 .76rem inherit; font-family: inherit; cursor: pointer; } .cta-c:active { background: #eef5ff; }
.cta-n { margin: 8px 0 0; padding: 8px 10px; background: #fffbeb; border: 1.5px solid #fde68a; border-radius: 12px; font-size: .76rem; color: #92400e; line-height: 1.4; white-space: pre-line; }
.cta-s { width: 100%; min-height: 46px; margin-top: 10px; border: 0; border-radius: 14px; background: #0a4aa0; color: #fff; font: 700 .86rem inherit; font-family: inherit; cursor: pointer; }
.ini-cta.vacia { display: flex; flex-direction: column; gap: 6px; background: #fff; border-style: dashed; } .ini-cta.vacia small { color: #6f6a5c; font-size: .76rem; } .ini-cta.vacia .bd-b { align-self: flex-start; text-decoration: none; display: inline-flex; align-items: center; padding: 0 18px; min-height: 44px; }

.bd-caja textarea { width: 100%; border: 2px solid #e2d2b2; border-radius: 12px; padding: 10px 12px; font: inherit; font-size: .9rem; background: #fff; color: #0a2a5e; resize: vertical; box-sizing: border-box; } .bd-caja textarea:focus { outline: none; border-color: #d81e8f; }

/* ---------- pagar un pedido: forma de pago, cuenta, comprobante y reparto por categorías ---------- */
.bd-ops.dos { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .bd-ops.dos .bd-op { min-width: 0; }
.pg-cuenta { margin: 10px 0 4px; padding: 10px 12px; background: #eef5ff; border: 1.5px solid #cfe0fb; border-radius: 14px; }
.pg-file { display: flex !important; align-items: center; justify-content: center; min-height: 52px; margin: 10px 0 0 !important; padding: 8px 12px; border: 2px dashed #0a4aa0; border-radius: 14px; background: #fff; color: #0a4aa0; font-weight: 700 !important; font-size: .84rem !important; text-align: center; cursor: pointer; } .pg-file.ok { border-style: solid; border-color: #12a150; color: #047857; background: #ecfdf5; }
.pg-rep { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; } .pg-r { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: #fff; border: 1.5px solid #e2d2b2; border-radius: 12px; } .pg-r > div { flex: 1; min-width: 0; display: flex; flex-direction: column; } .pg-r b { font-size: .88rem; } .pg-r small { font-size: .7rem; color: #6f6a5c; line-height: 1.3; } .pg-r em { font-style: normal; font-weight: 800; color: #b91c1c; font-size: .95rem; white-space: nowrap; }

/* ---------- el pedido empieza eligiendo la sucursal que compra ---------- */
.bd-sucs { display: flex; flex-direction: column; gap: 8px; margin: 8px 0; max-height: 52vh; overflow-y: auto; }
.bd-suc { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-height: 56px; padding: 8px 14px; border: 2px solid #e2d2b2; border-radius: 14px; background: #fff; font-family: inherit; color: #0a2a5e; text-align: left; cursor: pointer; } .bd-suc b { font-size: .92rem; } .bd-suc small { font-size: .72rem; color: #6f6a5c; } .bd-suc.on { border-color: #d81e8f; background: #fff5fa; } .bd-suc:active { transform: scale(.98); }
.cat-modo button.suc { flex: 0 0 auto; padding: 0 12px; background: #eef5ff; border-color: #0a4aa0; color: #0a2a5e; max-width: 46%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cta-f b { word-break: normal; overflow-wrap: anywhere; }

.cta-wa { display: inline-flex; align-items: center; text-decoration: none; color: #047857; border-color: #12a150; }
.pg-wa { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; } .pg-wa .bd-b { flex: 1 1 200px; min-height: 48px; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; text-align: center; } .pg-wa small { flex: 1 1 100%; font-size: .72rem; color: #6f6a5c; }
