/* Inventario: lista de prendas y editor para subir/editar una prenda */

/* ---------- lista ---------- */
.inv-top { background: linear-gradient(135deg, #fffaf0 0%, #fdeef7 100%); border: 1px solid #ead9bd; border-radius: 22px; padding: 18px 20px; margin-bottom: 14px; box-shadow: 0 6px 22px rgba(60,45,20,.07); }
.inv-top h2 { margin: 0; padding: 0; border: 0; font-size: 1.25rem; color: #0a2a5e; }
.inv-top h2 .meta { font-size: .8rem; font-weight: 500; margin-left: 4px; }
.inv-res { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 14px; }
.inv-res .r { background: #fff; border: 1px solid #ead9bd; border-radius: 99px; padding: 5px 14px; font-size: .78rem; color: #4a4636; }
.inv-res .r b { color: #0a2a5e; font-size: .95rem; margin-right: 3px; }
.inv-res .r.rojo b { color: #b91c1c; } .inv-res .r.ambar b { color: #b45309; }
.inv-herr { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.inv-herr .buscar { position: relative; flex: 1 1 220px; }
.inv-herr .buscar input { width: 100%; padding: 11px 16px 11px 40px; border: 2px solid #e2d2b2; border-radius: 99px; font-size: .95rem; background: #fff; }
.inv-herr .buscar input:focus { outline: none; border-color: #d81e8f; }
.inv-herr .buscar::before { content: "🔍"; position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: .9rem; opacity: .6; }
.inv-filtros { display: flex; gap: 6px; flex-wrap: wrap; }
.inv-filtros button { border: 1.5px solid #e2d2b2; background: #fff; border-radius: 99px; padding: 8px 14px; font-weight: 600; font-size: .8rem; cursor: pointer; color: #0a2a5e; }
.inv-filtros button.on { background: #0a4aa0; border-color: #0a4aa0; color: #fff; }
.btn-nueva { border: 0; border-radius: 99px; background: linear-gradient(135deg, #d81e8f, #b0156f); color: #fff; font-weight: 700; font-size: .95rem; padding: 12px 22px; cursor: pointer; box-shadow: 0 6px 16px rgba(216,30,143,.35); }
.btn-nueva:hover { transform: translateY(-1px); } .btn-nueva:active { transform: translateY(1px); }

.inv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.pc { background: #fffaf0; border: 1px solid #ead9bd; border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 3px 12px rgba(60,45,20,.07); transition: transform .18s, box-shadow .18s; animation: pcIn .3s ease-out both; }
.pc:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(60,45,20,.15); }
@keyframes pcIn { from { opacity: 0; transform: translateY(8px); } }
.pc-foto { position: relative; aspect-ratio: 1 / 1.1; background: #f3e8d3; }
.pc-foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pc-foto .sinf { height: 100%; display: flex; align-items: center; justify-content: center; font-size: 2.4rem; opacity: .4; }
.pc-est { position: absolute; top: 10px; left: 10px; border-radius: 99px; padding: 3px 11px; font-size: .72rem; font-weight: 700; color: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.pc-est.verde { background: #12a150; } .pc-est.ambar { background: #e08a00; } .pc-est.rojo { background: #d62828; }
.pc-puntos { position: absolute; left: 10px; bottom: 10px; display: flex; gap: 4px; background: rgba(255,255,255,.88); padding: 4px 7px; border-radius: 99px; }
.pc-puntos i { width: 12px; height: 12px; border-radius: 50%; border: 1px solid rgba(0,0,0,.25); display: block; }
.pc-info { padding: 12px 14px 4px; flex: 1; }
.pc-info b { display: block; font-size: .95rem; color: #0a2a5e; line-height: 1.25; }
.pc-info small { color: #6f6a5c; font-size: .74rem; }
.pc-precio { font-weight: 700; color: #d81e8f; font-size: 1.1rem; margin-top: 4px; }
.pc-tallas { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.pc-tallas span { background: #e7eefa; color: #0a2a5e; border-radius: 8px; padding: 1px 7px; font-size: .68rem; font-weight: 700; }
.pc-acc { display: flex; gap: 6px; padding: 10px 12px 12px; }
.pc-acc button { flex: 1; border: 1.5px solid #e2d2b2; background: #fff; border-radius: 12px; padding: 8px 4px; font-weight: 700; font-size: .78rem; cursor: pointer; color: #0a2a5e; }
.pc-acc button:hover { border-color: #0a4aa0; }
.pc-acc button.pri { background: #0a4aa0; color: #fff; border-color: #0a4aa0; }
.pc-acc button.pel:hover { border-color: #d62828; color: #b91c1c; }
.inv-vacio { grid-column: 1 / -1; text-align: center; padding: 50px 14px; color: #6f6a5c; background: #fffaf0; border: 2px dashed #e2d2b2; border-radius: 22px; }
.inv-vacio .gr { font-size: 3rem; }
.inv-vacio b { display: block; color: #0a2a5e; font-size: 1.1rem; margin: 4px 0; }

/* ---------- editor ---------- */
.ed-velo { margin: 0 !important; position: fixed; inset: 0; z-index: 140; background: rgba(15,23,42,.6); display: flex; justify-content: center; align-items: stretch; padding: 14px; backdrop-filter: blur(2px); }
.ed { background: #f8f1e1; width: 100%; max-width: 1180px; border-radius: 26px; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.45); animation: edIn .25s ease-out; }
@keyframes edIn { from { opacity: 0; transform: translateY(18px) scale(.98); } }
.ed-cab { display: flex; align-items: center; gap: 12px; padding: 14px 20px; background: linear-gradient(110deg, #0a2a5e, #0a4aa0 55%, #d81e8f); color: #fff; }
.ed-cab h3 { margin: 0; font-size: 1.15rem; flex: 1; }
.ed-cab .suc { font-size: .78rem; opacity: .9; background: rgba(255,255,255,.18); border-radius: 99px; padding: 4px 12px; }
.ed-x { border: 0; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.2); color: #fff; font-size: 1.1rem; cursor: pointer; }
.ed-x:hover { background: rgba(255,255,255,.35); }
.ed-cuerpo { flex: 1; overflow: auto; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px; padding: 18px 20px; align-items: start; }
.ed-bloque { background: #fffaf0; border: 1px solid #ead9bd; border-radius: 20px; padding: 16px; margin-bottom: 14px; }
.ed-bloque > h4 { margin: 0 0 10px; font-size: .95rem; color: #0a2a5e; display: flex; align-items: center; gap: 8px; }
.ed-bloque > h4 i { font-style: normal; background: #d81e8f; color: #fff; width: 24px; height: 24px; border-radius: 50%; font-size: .78rem; display: inline-flex; align-items: center; justify-content: center; }

.ed-drop { border: 3px dashed #c9b690; border-radius: 22px; background: linear-gradient(180deg, #fffaf0, #fdf1e0); padding: 22px 14px; text-align: center; color: #4a4636; transition: .15s; }
.ed-drop.sobre { border-color: #d81e8f; background: #fde7f3; transform: scale(1.01); }
.ed-drop .ed-ic { font-size: 2.4rem; }
.ed-drop b { display: block; font-size: 1rem; color: #0a2a5e; margin: 2px 0; }
.ed-drop small { display: block; color: #6f6a5c; margin-bottom: 10px; }
.ed-drop .bs { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.ed-drop button { border: 0; border-radius: 99px; padding: 10px 20px; font-weight: 700; cursor: pointer; font-size: .88rem; }
.ed-drop .b1 { background: #0a4aa0; color: #fff; } .ed-drop .b2 { background: #fff; color: #0a2a5e; border: 1.5px solid #d9c9a8; }
.ed-info { font-size: .8rem; color: #4a4636; margin: 8px 2px 0; min-height: 1em; }

.ed-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; margin-top: 14px; }
.ic { background: #fff; border: 2px solid #ead9bd; border-radius: 20px; overflow: hidden; animation: pcIn .25s ease-out both; }
.ic.dup { border-color: #d62828; }
.ic-foto { position: relative; aspect-ratio: 4 / 4.4; background: #f3e8d3; }
.ic-foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ic-foto .sinf { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #8a7f65; font-size: .8rem; gap: 6px; }
.ic-foto .sinf i { width: 38px; height: 38px; border-radius: 50%; border: 2px solid rgba(0,0,0,.2); display: block; }
.ic-foto .esq { position: absolute; top: 8px; border: 0; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.92); box-shadow: 0 2px 8px rgba(0,0,0,.25); cursor: pointer; font-size: .9rem; }
.ic-foto .esq.e1 { right: 8px; } .ic-foto .esq.e2 { right: 48px; } .ic-foto .esq:hover { background: #fff; transform: scale(1.08); }
.ic-foto .kb { position: absolute; left: 8px; bottom: 8px; background: rgba(15,23,42,.7); color: #fff; font-size: .66rem; border-radius: 99px; padding: 2px 9px; }
.ic-cargando { aspect-ratio: 4 / 4.4; background: linear-gradient(100deg, #f3e8d3 30%, #fbf4e4 50%, #f3e8d3 70%); background-size: 200% 100%; animation: brillo 1.1s linear infinite; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: #6f6a5c; font-size: .8rem; }
@keyframes brillo { to { background-position: -200% 0; } }
.ic-cargando .rueda { width: 30px; height: 30px; border: 4px solid #e2d2b2; border-top-color: #d81e8f; border-radius: 50%; animation: gira .8s linear infinite; }
@keyframes gira { to { transform: rotate(360deg); } }
.ic-cuerpo { padding: 12px; }
.ic-color { width: 100%; display: flex; align-items: center; gap: 8px; border: 2px solid #e2d2b2; background: #fffaf0; border-radius: 14px; padding: 8px 12px; font-weight: 700; cursor: pointer; color: #0a2a5e; font-size: .9rem; }
.ic-color i { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid rgba(0,0,0,.3); display: block; flex: none; }
.ic-color small { margin-left: auto; font-weight: 500; color: #6f6a5c; font-size: .7rem; }
.ic.dup .ic-color { border-color: #d62828; background: #fef2f2; }
.ic-dup { color: #b91c1c; font-size: .74rem; font-weight: 700; margin: 4px 2px 0; }
.ic-colores { display: grid; grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: 6px; margin-top: 8px; }
.ic-colores button { border: 1.5px solid #e2d2b2; background: #fff; border-radius: 10px; padding: 6px 4px; font-size: .68rem; font-weight: 600; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 3px; color: #0a2a5e; }
.ic-colores button i { width: 20px; height: 20px; border-radius: 50%; border: 1px solid rgba(0,0,0,.3); display: block; }
.ic-colores button.on { border-color: #d81e8f; background: #fde7f3; }
.ic-sub { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: #6f6a5c; font-weight: 700; margin: 12px 2px 5px; }
.ic-tabs { display: flex; gap: 4px; background: #f3e8d3; border-radius: 99px; padding: 3px; }
.ic-tabs button { flex: 1; border: 0; background: none; border-radius: 99px; padding: 6px 2px; font-size: .72rem; font-weight: 700; color: #6f6a5c; cursor: pointer; }
.ic-tabs button.on { background: #fff; color: #0a2a5e; box-shadow: 0 1px 4px rgba(0,0,0,.15); }
.ic-tallas { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ic-tallas button { min-width: 40px; border: 2px solid #d9c9a8; background: #fff; border-radius: 12px; padding: 7px 8px; font-weight: 700; font-size: .85rem; cursor: pointer; color: #0a2a5e; transition: .12s; }
.ic-tallas button.on { background: #0a4aa0; border-color: #0a4aa0; color: #fff; transform: scale(1.05); }
.ic-otra { display: flex; gap: 6px; margin-top: 8px; }
.ic-otra input { flex: 1; padding: 7px 12px; border: 1.5px solid #d9c9a8; border-radius: 99px; font-size: .8rem; }
.ic-stock { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.ic-stock .f { display: flex; align-items: center; gap: 8px; background: #f3f7fd; border-radius: 12px; padding: 5px 8px 5px 12px; }
.ic-stock .f b { min-width: 42px; color: #0a2a5e; font-size: .9rem; }
.ic-stock .f span { font-size: .7rem; color: #6f6a5c; flex: 1; }
.ic-stock .f button { border: 0; width: 30px; height: 30px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); font-weight: 700; cursor: pointer; color: #0a4aa0; font-size: 1.05rem; }
.ic-stock .f input { width: 52px; text-align: center; border: 1.5px solid #d9c9a8; border-radius: 10px; padding: 5px 2px; font-weight: 700; font-size: .95rem; }
.ic-copiar { margin-top: 10px; width: 100%; border: 1.5px dashed #c9b690; background: none; border-radius: 12px; padding: 7px; font-size: .74rem; font-weight: 700; color: #0a4aa0; cursor: pointer; }
.ed-addcolor { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: .78rem; color: #6f6a5c; }
.ed-addcolor button { border: 1.5px solid #e2d2b2; background: #fff; border-radius: 99px; padding: 4px 10px 4px 6px; font-size: .74rem; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; color: #0a2a5e; }
.ed-addcolor button i { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0,0,0,.3); display: block; }

.ed-campo { margin-bottom: 14px; }
.ed-campo > label { display: block; font-size: .78rem; font-weight: 700; color: #0a2a5e; margin-bottom: 6px; }
.ed-campo input[type=text], .ed-campo input[type=number], .ed-campo textarea, .ed-campo select { width: 100%; padding: 11px 14px; border: 2px solid #e2d2b2; border-radius: 14px; font-size: .95rem; background: #fff; }
.ed-campo input:focus, .ed-campo textarea:focus, .ed-campo select:focus { outline: none; border-color: #d81e8f; }
.ed-campo input:disabled { background: #f3e8d3; color: #8a7f65; }
.ed-campo.err input, .ed-campo.err .grupo { border-color: #d62828; }
.ed-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.ed-chips button, .ed-pills button { border: 2px solid #e2d2b2; background: #fff; border-radius: 99px; padding: 7px 13px; font-weight: 600; font-size: .8rem; cursor: pointer; color: #0a2a5e; transition: .12s; }
.ed-chips button.on, .ed-pills button.on { background: #fde7f3; border-color: #d81e8f; color: #b0156f; }
.ed-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.ed-pills .grande { font-size: 1.15rem; font-weight: 700; padding: 10px 26px; }
.ed-precio-otro { width: 110px !important; padding: 9px 12px !important; border-radius: 99px !important; }
.ed-campo details { border: 1.5px solid #e2d2b2; border-radius: 14px; padding: 8px 12px; background: #fff; }
.ed-campo summary { cursor: pointer; font-weight: 700; font-size: .82rem; color: #0a2a5e; }

.ed-prev { background: #fff; border: 1px solid #ead9bd; border-radius: 20px; padding: 12px; }
.ed-prev h5 { margin: 0 0 8px; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: #6f6a5c; }
.ed-prev .tarj { width: 170px; margin: 0 auto; border-radius: 14px; overflow: hidden; border: 1px solid #e2d2b2; background: #fffaf0; }
.ed-prev .tarj .f { aspect-ratio: 1 / 1.12; background: #f3e8d3; }
.ed-prev .tarj .f img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ed-prev .tarj .i { padding: 8px 10px 10px; }
.ed-prev .tarj .p { font-weight: 700; color: #d81e8f; font-size: 1.1rem; }
.ed-prev .tarj .n { font-size: .8rem; font-weight: 600; color: #0a2a5e; margin: 2px 0 4px; min-height: 1.2em; }
.ed-prev .tarj .d { display: flex; gap: 3px; align-items: center; } .ed-prev .tarj .d i { width: 11px; height: 11px; border-radius: 50%; border: 1px solid rgba(0,0,0,.25); display: block; }
.ed-prev .tarj .d span { margin-left: auto; font-size: .62rem; color: #6f6a5c; font-weight: 600; }

.ed-pie { display: flex; align-items: center; gap: 10px; padding: 12px 20px; background: #fffaf0; border-top: 1px solid #ead9bd; flex-wrap: wrap; }
.ed-faltan { flex: 1; min-width: 160px; font-size: .78rem; color: #6f6a5c; }
.ed-faltan b { color: #b45309; } .ed-faltan.ok { color: #0c7f3f; font-weight: 700; }
.ed-pie button { border: 0; border-radius: 99px; padding: 12px 22px; font-weight: 700; font-size: .92rem; cursor: pointer; }
.ed-pie .b-sec { background: #f3e8d3; color: #0a2a5e; }
.ed-pie .b-ok { background: linear-gradient(135deg, #12a150, #0c7f3f); color: #fff; box-shadow: 0 5px 14px rgba(18,161,80,.35); }
.ed-pie button:disabled { background: #d9d0bd; color: #fff; box-shadow: none; cursor: not-allowed; }

@media (max-width: 860px) {
  .ed-velo { padding: 0; }
  .ed { border-radius: 0; max-width: none; }
  .ed-cuerpo { grid-template-columns: minmax(0, 1fr); padding: 12px; gap: 6px; }
  .ed-prev { display: none; }
  .ed-pie { padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); }
  .ed-pie .b-sec.cancel { display: none; }
  .ed-pie button { padding: 12px 10px; flex: 1; font-size: .82rem; }
  .ed-faltan { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) { .pc, .ic, .ed, .ic-cargando, .ic-cargando .rueda { animation: none; } }

.pc-merch { position: absolute; right: 10px; bottom: 10px; background: #0a2a5e; color: #fff; border-radius: 99px; padding: 3px 11px; font-size: .68rem; font-weight: 700; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.pc-merch.sin { background: #e08a00; }
.pc-puntos { max-width: 55%; flex-wrap: wrap; }

/* clasificar varias prendas */
.btn-clasif { border: 2px solid #0a4aa0; background: #fff; color: #0a4aa0; border-radius: 99px; font-weight: 700; font-size: .88rem; padding: 10px 18px; cursor: pointer; }
.btn-clasif:hover { background: #0a4aa0; color: #fff; }
.pc.selmode { cursor: pointer; }
.pc.selmode:hover { transform: none; }
.pc.marcada { outline: 4px solid #d81e8f; outline-offset: -2px; }
.pc-chk { position: absolute; top: 10px; right: 10px; z-index: 2; width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.95); border: 3px solid #0a4aa0; color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.pc.marcada .pc-chk { background: #d81e8f; border-color: #d81e8f; }
.pc.selmode .pc-est { top: 46px; }
.inv-bar { position: fixed; left: 50%; transform: translateX(-50%); bottom: 18px; z-index: 90; width: min(940px, calc(100vw - 24px)); background: #0a2a5e; color: #fff; border-radius: 22px; padding: 12px 16px; box-shadow: 0 14px 40px rgba(10,42,94,.5); display: flex; flex-direction: column; gap: 8px; }
.ib-fila { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.ib-fila b { margin-right: 4px; font-size: .95rem; }
.ib-fila button, .ib-fila select { border: 0; border-radius: 99px; padding: 8px 15px; font-weight: 700; font-size: .8rem; cursor: pointer; background: rgba(255,255,255,.16); color: #fff; }
.ib-fila select { background: #fff; color: #0a2a5e; min-width: 190px; flex: 0 1 320px; }
.ib-fila button:hover { background: rgba(255,255,255,.3); }
.ib-fila button.ok { background: #12a150; } .ib-fila button.ok:disabled { background: rgba(255,255,255,.2); cursor: not-allowed; }
.ib-fila button.aut { background: #d81e8f; }
@media (max-width: 860px) { .inv-bar { bottom: 74px; } .btn-clasif { flex: 1; } }

/* ================= editor de prendas: compacto y con varias fotos por color ================= */
.ed { max-width: 1280px; }
.ed-cuerpo { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 14px; padding: 14px 16px; }
.ed-bloque { padding: 12px 14px; margin-bottom: 10px; border-radius: 18px; }
.ed-drop { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 14px; border-width: 2px; border-radius: 16px; text-align: left; }
.ed-drop .ed-ic { font-size: 1.8rem; } .ed-drop .ed-dt { flex: 1; min-width: 180px; } .ed-drop b { margin: 0; font-size: .92rem; } .ed-drop small { margin: 0; font-size: .72rem; }
.ed-drop .bs { justify-content: flex-start; } .ed-drop button { padding: 8px 15px; font-size: .82rem; }
.ed-items { grid-template-columns: 1fr; gap: 10px; margin-top: 10px; }
.ic { display: grid; grid-template-columns: 150px minmax(0, 1fr); border-radius: 16px; border-width: 1.5px; }
.ic.cargando { display: block; }
.ic-fotos { background: #f3e8d3; padding: 6px; display: flex; flex-direction: column; gap: 6px; }
.ic-foto { aspect-ratio: 1 / 1.1; border-radius: 12px; overflow: hidden; }
.ic-foto .esq { top: 6px; right: 6px; width: 30px; height: 30px; }
.ic-mini { display: flex; flex-wrap: wrap; gap: 5px; }
.ic-mini .m { position: relative; width: 38px; height: 44px; border-radius: 8px; overflow: hidden; background: #fff; border: 1.5px solid #d9c9a8; padding: 0; }
.ic-mini .m img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ic-mini .m button { position: absolute; border: 0; width: 17px; height: 17px; border-radius: 50%; font-size: .55rem; cursor: pointer; background: rgba(255,255,255,.92); line-height: 1; padding: 0; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.ic-mini .m .m1 { left: 2px; bottom: 2px; color: #b8893a; } .ic-mini .m .m2 { right: 2px; top: 2px; color: #b91c1c; }
.ic-mini .m.mas { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; cursor: pointer; border-style: dashed; color: #0a4aa0; width: 100%; height: 34px; flex-direction: row; gap: 5px; background: #fffaf0; }
.ic-mini .m.mas b { font-size: 1.1rem; } .ic-mini .m.mas span { font-size: .72rem; font-weight: 700; }
.ic-cuerpo { padding: 10px 12px; min-width: 0; }
.ic-cab { display: flex; align-items: center; gap: 6px; }
.ic-cab .ic-color { flex: 1; padding: 6px 10px; border-radius: 12px; min-width: 0; }
.ic-total { background: #0a4aa0; color: #fff; border-radius: 99px; padding: 4px 11px; font-size: .78rem; font-weight: 700; white-space: nowrap; } .ic-total.cero { background: #d62828; }
.ic-quitar { border: 0; background: #fef2f2; border-radius: 50%; width: 32px; height: 32px; cursor: pointer; font-size: .9rem; flex: none; }
.ic-dup button { border: 0; background: #d62828; color: #fff; border-radius: 99px; padding: 2px 10px; font-size: .7rem; font-weight: 700; cursor: pointer; margin-left: 6px; }
.ic-sub { margin: 8px 2px 4px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ic-sub .ic-tabs { display: inline-flex; padding: 2px; margin-left: auto; text-transform: none; letter-spacing: 0; } .ic-sub .ic-tabs button { padding: 3px 9px; font-size: .68rem; flex: none; }
.ic-rap { margin-left: auto; text-transform: none; letter-spacing: 0; font-weight: 600; } .ic-rap button { border: 1.5px solid #d9c9a8; background: #fff; border-radius: 99px; width: 26px; height: 24px; font-weight: 700; cursor: pointer; color: #0a4aa0; margin-left: 3px; font-size: .74rem; padding: 0; }
.ic-tallas { margin-top: 0; gap: 5px; } .ic-tallas button { min-width: 36px; padding: 5px 7px; border-radius: 10px; font-size: .8rem; }
.ic-tallas .ic-otra { width: 66px; padding: 5px 9px; border: 1.5px dashed #c9b690; border-radius: 10px; font-size: .75rem; background: #fffaf0; }
.ic-stock { margin-top: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 5px; }
.ic-stock .f { gap: 3px; padding: 3px 5px 3px 9px; border-radius: 10px; }
.ic-stock .f b { min-width: 24px; font-size: .82rem; } .ic-stock .f button { width: 26px; height: 26px; flex: none; } .ic-stock .f input { width: 40px; padding: 3px 0; font-size: .9rem; }
.ic-vacio { background: #fffaf0; border: 1.5px dashed #d9c9a8; border-radius: 12px; padding: 12px; text-align: center; font-size: .78rem; color: #6f6a5c; margin-top: 6px; }
.ic-copiar { margin-top: 6px; padding: 5px; }
.ed-addcolor { margin-top: 10px; }
.ed-campo { margin-bottom: 10px; } .ed-campo > label { margin-bottom: 4px; }
.ed-chips button, .ed-pills button { padding: 6px 12px; }
.ed-merch button.nueva { border-style: dashed; color: #0a4aa0; }
.ed-chips#ed-cats button { padding: 6px 11px; }

@media (max-width: 860px) {
  .ed-cuerpo { grid-template-columns: minmax(0, 1fr); padding: 8px; gap: 4px; }
  .ic { grid-template-columns: 104px minmax(0, 1fr); }
  .ic-fotos { padding: 4px; gap: 4px; } .ic-mini .m { width: 31px; height: 36px; } .ic-mini .m.mas { height: 30px; }
  .ic-cuerpo { padding: 8px; } .ic-sub .ic-tabs { margin-left: 0; }
  .ic-stock { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ed-drop { padding: 8px 10px; } .ed-drop .ed-dt small { display: none; } .ed-drop .ed-ic { font-size: 1.4rem; }
}
@media (max-width: 860px) {
  .ic-stock .f { padding: 2px 3px 2px 6px; gap: 2px; } .ic-stock .f b { min-width: 18px; font-size: .78rem; } .ic-stock .f button { width: 24px; height: 24px; } .ic-stock .f input { width: 32px; font-size: .85rem; }
}

/* ================= editor v3: tallas y unidades en una sola cuadrícula, fluido en el celular ================= */
.ic-cargando { position: relative; overflow: hidden; min-height: 90px; }
.ic-cargando > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; filter: blur(1px); }
.ic-cargando .vel { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 14px; font-size: .78rem; font-weight: 700; color: #0a2a5e; background: rgba(255,250,240,.55); min-height: 90px; }
.ic-grid { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.sc.off { min-width: 40px; height: 34px; border: 2px solid #d9c9a8; background: #fff; border-radius: 10px; font-weight: 700; color: #0a2a5e; cursor: pointer; font-size: .82rem; padding: 0 8px; }
.sc.off:active { background: #0a4aa0; color: #fff; }
.sc.on { display: inline-flex; align-items: center; gap: 2px; background: #eaf1fb; border: 2px solid #0a4aa0; border-radius: 10px; padding: 2px; height: 36px; }
.sc.on b { min-width: 20px; text-align: center; font-size: .8rem; color: #0a2a5e; padding-left: 3px; }
.sc.on button { width: 28px; height: 30px; border: 0; background: #fff; border-radius: 8px; font-weight: 700; color: #0a4aa0; cursor: pointer; font-size: 1.05rem; padding: 0; }
.sc.on button:active { background: #0a4aa0; color: #fff; }
.sc.on input { width: 36px; height: 30px; text-align: center; border: 0; background: #fff; border-radius: 8px; font-weight: 700; font-size: .95rem; padding: 0; }
.sc.on.cero { border-color: #d62828; background: #fef2f2; } .sc.on.cero b { color: #b91c1c; }
.ic-rap { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; margin-top: 6px; font-size: .72rem; font-weight: 600; color: #6f6a5c; }
.ic-rap button { border: 1.5px solid #d9c9a8; background: #fff; border-radius: 99px; min-width: 28px; height: 26px; font-weight: 700; cursor: pointer; color: #0a4aa0; font-size: .76rem; padding: 0 6px; }
.ic-rap .cp { margin-left: auto; border-style: dashed; font-size: .68rem; }
.ic-sub { margin: 6px 2px 5px; font-size: .68rem; }
.ic-stock, .ic-copiar { display: none; }

@media (max-width: 860px) {
  .ed { height: 100%; }
  .ed-cab { padding: 8px 12px; gap: 8px; } .ed-cab h3 { font-size: 1rem; } .ed-x { width: 32px; height: 32px; font-size: 1rem; } .ed-cab .suc { font-size: .68rem; padding: 2px 9px; }
  .ed-cuerpo { padding: 6px; gap: 0; }
  .ed-bloque { padding: 8px 10px; margin-bottom: 6px; border-radius: 14px; } .ed-bloque > h4 { margin: 0 0 6px; font-size: .85rem; gap: 6px; } .ed-bloque > h4 i { width: 20px; height: 20px; font-size: .7rem; }
  .ed-drop { padding: 6px; gap: 8px; border-radius: 12px; } .ed-drop .ed-ic, .ed-drop .ed-dt { display: none; } .ed-drop .bs { flex: 1; gap: 6px; flex-wrap: nowrap; } .ed-drop .bs button { flex: 1; padding: 10px 6px; font-size: .84rem; }
  .ed-info { margin: 4px 0 0; font-size: .7rem; }
  .ed-items { gap: 6px; margin-top: 6px; }
  /* tarjeta de color: foto chica + color/total arriba, tallas a todo el ancho */
  .ic { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 5px 8px; padding: 7px; border-radius: 14px; }
  .ic.cargando { display: block; padding: 0; }
  .ic-fotos, .ic-cuerpo { display: contents; }
  .ic-foto { grid-column: 1; grid-row: 1 / span 2; width: 70px; height: 78px; aspect-ratio: auto; border-radius: 10px; }
  .ic-foto .esq { width: 24px; height: 24px; top: 3px; right: 3px; font-size: .7rem; } .ic-foto .kb { display: none; }
  .ic-cab { grid-column: 2; grid-row: 1; align-self: start; }
  .ic-cab .ic-color { padding: 5px 8px; font-size: .84rem; } .ic-cab .ic-color small { font-size: .62rem; }
  .ic-mini { grid-column: 2; grid-row: 2; flex-wrap: nowrap; overflow-x: auto; gap: 4px; align-self: end; }
  .ic-mini .m { flex: none; width: 34px; height: 38px; } .ic-mini .m.mas { width: 62px; height: 38px; } .ic-mini .m.mas b { font-size: 1rem; }
  .ic-dup, .ic-colores, .ic-sub, .ic-grid, .ic-rap { grid-column: 1 / -1; }
  .ic-sub { margin: 2px 0 0; } .ic-sub .ic-tabs { margin-left: auto; } .ic-sub .ic-tabs button { padding: 3px 8px; }
  .ic-rap { margin-top: 0; }
  .ed-addcolor { margin-top: 6px; gap: 4px; font-size: .72rem; flex-wrap: nowrap; overflow-x: auto; } .ed-addcolor > * { flex: none; }
  /* datos: filas de una sola línea que se deslizan */
  .ed-campo { margin-bottom: 8px; } .ed-campo > label { font-size: .72rem; margin-bottom: 3px; }
  .ed-campo input[type=text], .ed-campo input[type=number], .ed-campo textarea, .ed-campo select { padding: 8px 12px; font-size: .92rem; border-radius: 12px; }
  #ed-cats, #ed-merch, #ed-costos, #ed-gen { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 3px; margin-bottom: 4px; scrollbar-width: none; }
  #ed-cats button, #ed-merch button, #ed-costos button, #ed-gen button { flex: none; padding: 6px 12px; white-space: nowrap; }
  #ed-cat { padding: 6px 12px !important; font-size: .82rem !important; }
  #c-precio { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; } #c-precio > label { flex-basis: 100%; margin: 0; } #c-precio > div { margin: 0 !important; display: flex !important; gap: 6px; align-items: center; }
  .ed-pills .grande { padding: 7px 22px; font-size: 1.05rem; } .ed-precio-otro { width: 96px !important; padding: 7px 10px !important; }
  /* pie fijo, bajito */
  .ed-pie { padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); gap: 6px; }
  .ed-faltan { flex-basis: 100%; font-size: .72rem; line-height: 1.2; }
  .ed-pie button { padding: 11px 8px; font-size: .88rem; }
}
.ic-grid .ic-otra { width: 64px; flex: none; padding: 6px 9px; border: 1.5px dashed #c9b690; border-radius: 10px; font-size: .75rem; background: #fffaf0; height: 34px; }
.ic-rap .cp { white-space: nowrap; flex: none; padding: 0 10px; }


/* ================= editor: pasos en el celular, "Falta" tocable, repetir última ================= */
.ed-pasos, .ed-atras, .ed-sig { display: none; }
.ed-rep { width: 100%; border: 1.5px dashed #0a4aa0; background: #eaf1fb; color: #0a4aa0; border-radius: 12px; padding: 8px 10px; font-weight: 700; font-size: .78rem; cursor: pointer; margin-bottom: 10px; text-align: left; }
.ed-pie .fl { border: 0; background: #fff3d6; color: #92400e; border-radius: 99px; padding: 3px 10px; font-weight: 700; font-size: .72rem; margin: 2px 3px 2px 0; cursor: pointer; }
.resalta { animation: resalta 1.4s ease-out; }
@keyframes resalta { 25% { box-shadow: 0 0 0 4px #d81e8f; background-color: #fde7f3; } }
@media (max-width: 860px) {
  .ed-pasos { display: flex; gap: 6px; padding: 6px 8px; background: #fffaf0; border-bottom: 1px solid #ead9bd; }
  .ed-pasos button { flex: 1; border: 2px solid #e2d2b2; background: #fff; border-radius: 99px; padding: 7px 6px; font-weight: 700; font-size: .8rem; color: #0a2a5e; cursor: pointer; }
  .ed-pasos button.on { background: #0a4aa0; border-color: #0a4aa0; color: #fff; }
  .ed-pasos button.ok::after { content: " ✓"; color: #12a150; } .ed-pasos button.on.ok::after { color: #9be8b8; }
  .ed-cuerpo.paso1 #ed-s2, .ed-cuerpo.paso2 #ed-s1 { display: none; }
  .ed-bloque > h4 { display: none; }
  .ed-drop { position: sticky; top: 0; z-index: 4; background: #fffaf0; }
  .ed-sig { display: block; flex: 1; }
  #ed-velo[data-paso="1"] #ed-otra, #ed-velo[data-paso="1"] #ed-guardar { display: none !important; }
  #ed-velo[data-paso="2"] .ed-sig { display: none; }
  #ed-velo[data-paso="2"] .ed-atras { display: block; flex: none; }
  #ed-velo[data-paso="1"] .ed-pie .ed-faltan { flex-basis: 100%; }
}
@media (max-width: 860px) { .ic-rap .cp { flex-basis: 100%; height: 30px; margin-left: 0; } }


/* ================= reponer stock ================= */
.pc-acc .rep { background: #12a150; color: #fff; border-color: #12a150; font-weight: 700; }
.rp-velo { position: fixed; inset: 0; z-index: 150; background: rgba(15,23,42,.6); display: flex; align-items: center; justify-content: center; padding: 12px; margin: 0 !important; }
.rp { background: #f8f1e1; border-radius: 22px; width: 100%; max-width: 560px; max-height: 92vh; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 24px 70px rgba(0,0,0,.45); }
.rp-cab { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: linear-gradient(110deg, #0a2a5e, #0a4aa0 60%, #12a150); color: #fff; }
.rp-cab img, .rp-cab .sinf { width: 44px; height: 50px; border-radius: 10px; object-fit: cover; background: rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center; }
.rp-cab > div { flex: 1; min-width: 0; } .rp-cab b { display: block; font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .rp-cab small { opacity: .9; font-size: .74rem; }
.rp-x { border: 0; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.2); color: #fff; font-size: 1rem; cursor: pointer; }
.rp-rap { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 8px 14px; font-size: .74rem; font-weight: 700; color: #6f6a5c; background: #fffaf0; border-bottom: 1px solid #ead9bd; }
.rp-rap button { border: 1.5px solid #d9c9a8; background: #fff; border-radius: 99px; padding: 5px 11px; font-weight: 700; font-size: .78rem; color: #0a4aa0; cursor: pointer; } .rp-rap .lim { margin-left: auto; color: #6f6a5c; }
.rp-cuerpo { flex: 1; overflow: auto; padding: 10px 14px; display: flex; flex-direction: column; gap: 10px; }
.rp-color { background: #fff; border: 1px solid #ead9bd; border-radius: 16px; padding: 8px 10px 10px; }
.rp-ch { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; } .rp-ch i { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid rgba(0,0,0,.25); display: block; } .rp-ch b { color: #0a2a5e; } .rp-ch span { margin-left: auto; font-size: .74rem; color: #6f6a5c; }
.rp-celdas { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 6px; }
.rp-c { background: #f3f7fd; border: 2px solid #e2d2b2; border-radius: 12px; padding: 5px 6px 6px; text-align: center; }
.rp-c.on { border-color: #12a150; background: #e9f7ef; } .rp-c.nueva { border-style: dashed; }
.rp-c .t { font-weight: 700; color: #0a2a5e; font-size: .95rem; } .rp-c .t em { font-style: normal; font-size: .6rem; background: #12a150; color: #fff; border-radius: 99px; padding: 1px 6px; vertical-align: 2px; }
.rp-c small { display: block; font-size: .68rem; color: #6f6a5c; margin-bottom: 3px; } .rp-c small b { color: #0c7f3f; }
.rp-c .st { display: flex; align-items: center; justify-content: center; gap: 3px; }
.rp-c .st button { border: 0; width: 28px; height: 30px; border-radius: 9px; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); font-size: 1.1rem; font-weight: 700; color: #0a4aa0; cursor: pointer; padding: 0; }
.rp-c .st input { width: 40px; height: 30px; text-align: center; border: 1.5px solid #d9c9a8; border-radius: 9px; font-weight: 700; font-size: .95rem; padding: 0; }
.rp-nt { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; margin-top: 7px; font-size: .7rem; color: #6f6a5c; }
.rp-nt button { border: 1.5px dashed #c9b690; background: #fffaf0; border-radius: 99px; padding: 4px 10px; font-weight: 700; font-size: .74rem; color: #0a4aa0; cursor: pointer; }
.rp-nt input { width: 92px; padding: 4px 10px; border: 1.5px dashed #c9b690; border-radius: 99px; font-size: .74rem; background: #fffaf0; }
.rp-pie { display: flex; align-items: center; gap: 8px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: #fffaf0; border-top: 1px solid #ead9bd; flex-wrap: wrap; }
.rp-pie #rp-res { flex: 1; min-width: 150px; font-size: .78rem; color: #6f6a5c; } .rp-pie #rp-res b { color: #0c7f3f; }
.rp-pie button { border: 0; border-radius: 99px; padding: 11px 20px; font-weight: 700; font-size: .9rem; cursor: pointer; } .rp-pie .b-sec { background: #f3e8d3; color: #0a2a5e; }
.rp-pie .b-ok { background: linear-gradient(135deg, #12a150, #0c7f3f); color: #fff; box-shadow: 0 4px 12px rgba(18,161,80,.35); } .rp-pie .b-ok:disabled { background: #d9d0bd; box-shadow: none; cursor: not-allowed; }
@media (max-width: 640px) { .rp-velo { padding: 0; align-items: flex-end; } .rp { max-width: none; border-radius: 22px 22px 0 0; max-height: 94vh; } .rp-celdas { grid-template-columns: repeat(2, minmax(0, 1fr)); } .rp-pie { flex-wrap: wrap; } .rp-pie #rp-res { flex-basis: 100%; } .rp-pie .b-sec { display: none; } .rp-pie .b-ok { flex: 1; } }
#lista-inv:not([data-forma="compacta"]) .pc-acc { flex-wrap: wrap; } #lista-inv:not([data-forma="compacta"]) .pc-acc .rep { flex: 1 0 100%; flex-direction: row; justify-content: center; }

/* ================================================================
   EDITOR v4 · galería de fotos por color + lista de tallas (sin amontonar)
   ================================================================ */
.ed-izq { display: flex; flex-direction: column; gap: 0; min-width: 0; }
.ed.arrastrando::after, .ed-velo.arrastrando .ed::after { content: "Suelta las fotos aquí"; position: absolute; inset: 10px; z-index: 20; display: flex; align-items: center; justify-content: center; border: 3px dashed #d81e8f; border-radius: 22px; background: rgba(253,231,243,.92); color: #b0156f; font-weight: 700; font-size: 1.2rem; pointer-events: none; }
.ed { position: relative; }

/* resumen y estados vacíos */
.fg-res { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; font-size: .82rem; color: #0a2a5e; margin: 12px 2px 8px; } .fg-res small { color: #8a7f65; font-size: .7rem; margin-left: auto; }
.fg-vacio { text-align: center; padding: 22px 12px; color: #6f6a5c; font-size: .82rem; background: #fffaf0; border: 2px dashed #e2d2b2; border-radius: 16px; margin-top: 12px; }
.fg-vacio b { display: block; font-size: 1.8rem; margin-bottom: 2px; } .fg-vacio small { display: block; margin-top: 4px; font-size: .72rem; color: #8a7f65; }

/* galería: un grupo por color */
.fg { background: #fff; border: 1px solid #ead9bd; border-radius: 18px; padding: 10px 10px 12px; margin-top: 10px; box-shadow: 0 2px 8px rgba(60,45,20,.05); }
.fg.dup { border-color: #d62828; background: #fffafa; }
.fg-h { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; }
.fg-col { display: inline-flex; align-items: center; gap: 8px; border: 0; background: #f7efdd; border-radius: 99px; padding: 6px 12px 6px 8px; font: 700 .86rem/1 inherit; font-family: inherit; color: #0a2a5e; cursor: pointer; min-width: 0; }
.fg-col i { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid rgba(0,0,0,.28); display: block; flex: none; }
.fg-col small { font-weight: 500; font-size: .62rem; color: #8a7f65; white-space: nowrap; }
.fg-n { font-size: .72rem; color: #8a7f65; margin-left: auto; white-space: nowrap; }
.fg-j { border: 0; background: #d62828; color: #fff; border-radius: 99px; padding: 5px 11px; font: 700 .7rem/1 inherit; font-family: inherit; cursor: pointer; }
.fg-x { border: 0; background: #fef2f2; border-radius: 50%; width: 30px; height: 30px; cursor: pointer; font-size: .85rem; flex: none; padding: 0; }
.fg .ic-colores { margin: 0 0 9px; }
.fg-t { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 8px; }
.ftl { position: relative; display: block; aspect-ratio: 4 / 5; border: 0; padding: 0; border-radius: 14px; overflow: hidden; background: #f0e6d0; cursor: pointer; box-shadow: 0 3px 9px rgba(40,30,10,.18); transition: transform .12s, box-shadow .12s; font-family: inherit; }
.ftl:hover { transform: translateY(-2px); box-shadow: 0 8px 16px rgba(40,30,10,.25); } .ftl:active { transform: scale(.96); }
.ftl img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ftl.prin { box-shadow: 0 0 0 2.5px #d81e8f, 0 3px 9px rgba(40,30,10,.18); }
.ftl.prin span { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 4px 5px; background: linear-gradient(to top, rgba(8,18,45,.75), transparent); color: #fff; font-size: .6rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; text-align: center; }
.ftl.mas { background: #fffaf0; box-shadow: none; border: 2px dashed #c9b690; color: #0a4aa0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; }
.ftl.mas b { font-size: 1.7rem; line-height: 1; font-weight: 500; } .ftl.mas span { font-size: .72rem; font-weight: 700; } .ftl.mas:hover { background: #eef5ff; border-color: #0a4aa0; }
.ftl.vacia { cursor: default; display: flex; align-items: center; justify-content: center; text-align: center; font-size: .7rem; color: #8a7f65; background: #f7efdd; box-shadow: none; border: 2px dashed #e2d2b2; } .ftl.vacia:hover { transform: none; }
.ftl.pend img { opacity: .5; filter: blur(1px); } .ftl.pend .rueda { position: absolute; left: 50%; top: 50%; margin: -15px 0 0 -15px; }
.gira { width: 14px; height: 14px; border-radius: 50%; border: 3px solid #e2d2b2; border-top-color: #d81e8f; animation: gira .8s linear infinite; display: block; flex: none; }

/* menú de una foto */
.fm-velo { position: fixed; inset: 0; z-index: 250; background: rgba(15,23,42,.55); display: flex; align-items: center; justify-content: center; padding: 14px; margin: 0 !important; animation: sxFondo .12s ease-out; }
.fm { width: 100%; max-width: 380px; background: #fffaf0; border-radius: 22px; padding: 14px; box-shadow: 0 24px 60px rgba(0,0,0,.45); animation: sxEntra .18s ease-out; }
.fm-cab { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.fm-cab img { width: 62px; height: 78px; object-fit: cover; border-radius: 12px; box-shadow: 0 4px 12px rgba(40,30,10,.3); flex: none; }
.fm-cab > div { flex: 1; min-width: 0; } .fm-cab b { display: block; color: #0a2a5e; font-size: 1rem; } .fm-cab small { color: #8a7f65; font-size: .72rem; line-height: 1.3; display: block; margin-top: 2px; }
.fm-x { border: 0; background: #f5ecd8; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; align-self: flex-start; }
.fm-acc { display: flex; flex-direction: column; gap: 7px; }
.fm-acc button { display: flex; align-items: center; gap: 12px; border: 1.5px solid #e2d2b2; background: #fff; border-radius: 14px; padding: 13px 14px; font: 600 .92rem/1 inherit; font-family: inherit; color: #0a2a5e; cursor: pointer; text-align: left; }
.fm-acc button i { font-style: normal; width: 26px; text-align: center; font-size: 1.1rem; } .fm-acc button:hover { border-color: #0a4aa0; background: #f4f9ff; }
.fm-acc button.rojo { color: #b91c1c; } .fm-acc button.rojo:hover { border-color: #b91c1c; background: #fef2f2; }

/* tallas: una fila por color; se abre una a la vez */
.tr { background: #fff; border: 1.5px solid #ead9bd; border-radius: 16px; margin-top: 8px; overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.tr.abierto { border-color: #0a4aa0; box-shadow: 0 6px 18px rgba(10,74,160,.14); }
.tr.falta:not(.abierto) { border-color: #f0b44c; background: #fffbf0; }
.tr-h { display: flex; align-items: center; gap: 11px; width: 100%; border: 0; background: none; padding: 8px 12px 8px 8px; cursor: pointer; text-align: left; font-family: inherit; }
.tr-h > img { width: 40px; height: 48px; object-fit: cover; border-radius: 9px; box-shadow: 0 2px 6px rgba(40,30,10,.25); flex: none; }
.tr-h > i { width: 40px; height: 48px; border-radius: 9px; border: 2px dashed #c9b690; flex: none; background-clip: content-box; padding: 9px 11px; box-sizing: border-box; }
.tr-n { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; } .tr-n b { color: #0a2a5e; font-size: .92rem; }
.tr-res { display: flex; gap: 5px; flex-wrap: wrap; font-size: .72rem; color: #8a7f65; }
.tr-res span { background: #eaf1fb; color: #0a2a5e; border-radius: 99px; padding: 1px 8px; font-weight: 600; } .tr-res span b { color: #0a4aa0; margin-left: 4px; } .tr-res em { font-style: normal; color: #b45309; font-weight: 600; }
.tr-fl { font-style: normal; color: #8a7f65; transition: transform .2s; font-size: .8rem; } .tr.abierto .tr-fl { transform: rotate(180deg); }
.tr-c { padding: 2px 12px 12px; border-top: 1px solid #f0e4c8; }
.tr-c .ic-sub { margin-top: 10px; }
.ed-addcolor { margin-top: 10px; }

@media (max-width: 860px) {
  .ed-izq { display: contents; }
  .ed-cuerpo.paso1 #ed-st, .ed-cuerpo.paso1 #ed-s2, .ed-cuerpo.paso2 #ed-sf, .ed-cuerpo.paso2 #ed-s2, .ed-cuerpo.paso3 #ed-sf, .ed-cuerpo.paso3 #ed-st { display: none; }
  .ed-bloque > h4 { display: none; }
  .fg-t { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
  .fg { padding: 9px; margin-top: 8px; }
  .fg-n { display: none; }
  .fg-res small { display: none; }
  #ed-velo[data-paso="1"] #ed-otra, #ed-velo[data-paso="1"] #ed-guardar, #ed-velo[data-paso="2"] #ed-otra, #ed-velo[data-paso="2"] #ed-guardar { display: none !important; }
  #ed-velo[data-paso="1"] .ed-atras { display: none; }
  #ed-velo[data-paso="2"] .ed-atras, #ed-velo[data-paso="3"] .ed-atras { display: block; flex: none; }
  #ed-velo[data-paso="3"] .ed-sig { display: none; }
  #ed-velo[data-paso="1"] .ed-sig, #ed-velo[data-paso="2"] .ed-sig { display: block; flex: 1; }
  .ed-pasos button { font-size: .76rem; padding: 7px 4px; }
  .fm-velo { align-items: flex-end; padding: 0; } .fm { max-width: none; border-radius: 24px 24px 0 0; padding: 16px 14px calc(14px + env(safe-area-inset-bottom)); }
}
@media (max-width: 860px) { .fg-t { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; } .ftl { border-radius: 12px; } }


/* ================= cámara continua ================= */
.cam-velo { position: fixed; inset: 0; z-index: 300; background: #000; display: flex; flex-direction: column; margin: 0 !important; }
.cam-velo video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; } .cam-velo video.espejo { transform: scaleX(-1); }
.cam-flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; } .cam-flash.on { animation: camFlash .25s ease-out; } @keyframes camFlash { from { opacity: .85; } to { opacity: 0; } }
.cam-top { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: calc(10px + env(safe-area-inset-top)) 12px 10px; background: linear-gradient(to bottom, rgba(0,0,0,.55), transparent); }
.cam-b { width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255,255,255,.2); color: #fff; font-size: 1.2rem; cursor: pointer; backdrop-filter: blur(6px); }
.cam-n { color: #fff; font-weight: 700; font-size: .9rem; background: rgba(0,0,0,.4); border-radius: 99px; padding: 7px 14px; text-shadow: 0 1px 3px rgba(0,0,0,.5); }
.cam-msg { position: relative; z-index: 2; margin: auto; color: #fff; font-weight: 600; }
.cam-bajo { position: relative; z-index: 2; margin-top: auto; padding: 18px 16px calc(16px + env(safe-area-inset-bottom)); background: linear-gradient(to top, rgba(0,0,0,.7), transparent); }
.cam-tira { display: flex; gap: 6px; overflow-x: auto; padding: 0 2px 12px; min-height: 12px; scrollbar-width: none; } .cam-tira::-webkit-scrollbar { display: none; }
.cam-tira img { width: 46px; height: 58px; object-fit: cover; border-radius: 9px; border: 2px solid #fff; flex: none; box-shadow: 0 2px 8px rgba(0,0,0,.5); animation: sxEntra .2s ease-out; }
.cam-ctl { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.cam-obt { width: 78px; height: 78px; border-radius: 50%; border: 4px solid #fff; background: transparent; padding: 5px; cursor: pointer; transition: transform .08s; } .cam-obt i { display: block; width: 100%; height: 100%; border-radius: 50%; background: #fff; transition: transform .08s; }
.cam-obt:active i { transform: scale(.86); }
.cam-ok { justify-self: end; border: 0; border-radius: 99px; background: #12a150; color: #fff; font: 700 .95rem/1 inherit; font-family: inherit; padding: 14px 20px; cursor: pointer; box-shadow: 0 6px 16px rgba(18,161,80,.45); }
body.cam-abierta { overflow: hidden; }

/* ================= mover fotos entre colores ================= */
.fg-res { justify-content: space-between; gap: 8px; }
.fg-acc { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.fg-acc button { border: 1.5px solid #d9c9a8; background: #fff; color: #0a2a5e; border-radius: 99px; padding: 6px 12px; font: 700 .74rem/1 inherit; font-family: inherit; cursor: pointer; white-space: nowrap; }
.fg-acc button:hover { border-color: #0a4aa0; } .fg-acc button.on { background: #0a4aa0; border-color: #0a4aa0; color: #fff; }
.fg-ayuda { font-size: .72rem; color: #8a7f65; margin: 0 2px 4px; line-height: 1.35; }
.fg.dudoso { border-color: #f0b44c; background: #fffbf0; } .fg.dudoso .fg-col { background: #fdeecb; }
.fg.dudoso .fg-col small { color: #b45309; font-weight: 700; }
.fg.sobre { border-color: #0a4aa0; background: #eef5ff; box-shadow: 0 0 0 3px rgba(10,74,160,.25); }
.fg-j.sel { background: #0a4aa0; }
.fg-nuevo { margin-top: 10px; border: 2px dashed #c9b690; border-radius: 16px; padding: 13px; text-align: center; color: #0a4aa0; font-weight: 700; font-size: .84rem; cursor: pointer; background: #fffaf0; }
.fg-nuevo b { font-size: 1.1rem; margin-right: 4px; } .fg-nuevo small { color: #8a7f65; font-weight: 500; display: block; font-size: .68rem; margin-top: 2px; }
.fg-nuevo:hover, .fg-nuevo.sobre { background: #eef5ff; border-color: #0a4aa0; }
body:not(.arrastrando-foto) .fg-nuevo small { display: none; }
body.arrastrando-foto .fg-nuevo small { display: block; }
.ftl[draggable="true"] { cursor: grab; } .ftl[draggable="true"]:active { cursor: grabbing; }
body.arrastrando-foto .ftl { opacity: .9; }
.ftl .chk { position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border-radius: 50%; background: rgba(255,255,255,.9); border: 2px solid #0a4aa0; color: #fff; font-style: normal; font-weight: 700; font-size: .85rem; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.ftl.marcada { box-shadow: 0 0 0 3px #0a4aa0, 0 3px 9px rgba(40,30,10,.18); transform: scale(.94); } .ftl.marcada .chk { background: #0a4aa0; }
.ftl.selmodo:not(.marcada) img { opacity: .75; }
.ftl.vacia small { font-size: .6rem; color: #a39a82; }
.fsel-bar { position: sticky; bottom: 0; z-index: 6; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; background: #0a2a5e; color: #fff; border-radius: 18px; padding: 10px 12px; box-shadow: 0 10px 28px rgba(10,42,94,.45); animation: sxEntra .15s ease-out; }
.fsel-bar b { flex: 1; font-size: .86rem; min-width: 90px; }
.fsel-bar button { border: 0; border-radius: 99px; padding: 10px 14px; font: 700 .8rem/1 inherit; font-family: inherit; cursor: pointer; background: rgba(255,255,255,.16); color: #fff; }
.fsel-bar button.p { background: #12a150; } .fsel-bar button.r { background: #d62828; }

/* hojas de "mover a…" y selector de colores */
.fm-mv { width: 52px; height: 52px; border-radius: 16px; background: #fde7f3; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; flex: none; }
.fm-acc.fm-col button { gap: 11px; } .fm-acc.fm-col button .sw { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid rgba(0,0,0,.25); display: block; flex: none; font-style: normal; }
.fm-acc.fm-col button small { margin-left: auto; font-weight: 500; font-size: .72rem; color: #8a7f65; }
.fm-acc button.dest { border-color: #d81e8f; background: #fde7f3; color: #b0156f; } .fm-acc button.dest:hover { background: #fbd5ea; border-color: #b0156f; }
.fm-acc button:disabled { opacity: .45; cursor: default; }
.fm.fm-pal { max-width: 440px; }
.pal-g { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; max-height: 44vh; overflow: auto; padding: 2px; }
.pal-g button { display: flex; align-items: center; gap: 8px; border: 1.5px solid #e2d2b2; background: #fff; border-radius: 12px; padding: 9px 10px; font: 600 .8rem/1.1 inherit; font-family: inherit; color: #0a2a5e; cursor: pointer; text-align: left; }
.pal-g button i { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid rgba(0,0,0,.25); flex: none; display: block; }
.pal-g button:hover { border-color: #0a4aa0; background: #f4f9ff; }
.pal-o { display: flex; gap: 8px; margin-top: 12px; } .pal-o input { flex: 1; min-width: 0; padding: 11px 14px; border: 2px solid #e2d2b2; border-radius: 99px; font-size: .9rem; } .pal-o input:focus { outline: none; border-color: #d81e8f; }
.pal-o button { border: 0; background: #0a4aa0; color: #fff; border-radius: 99px; padding: 0 20px; font-weight: 700; cursor: pointer; }
@media (max-width: 860px) { .fg-res { flex-direction: column; align-items: stretch; } .fg-acc { justify-content: space-between; } .fg-acc button { flex: 1; } .pal-g { grid-template-columns: repeat(2, minmax(0, 1fr)); } .fsel-bar { border-radius: 16px; } }
.fm-cab > .fm-mv { flex: none; width: 52px; }


/* fotos sin color: que se note que falta elegir */
.fg.sinc { border-color: #f0a030; background: #fff8ea; }
.fg.sinc .fg-col { background: #fdeecb; animation: pulsoColor 1.6s ease-in-out infinite; }
@keyframes pulsoColor { 50% { box-shadow: 0 0 0 5px rgba(240,160,48,.35); } }
.ic-colores button.otro { border-style: dashed; color: #0a4aa0; font-weight: 700; }


/* ================= agrupar prendas ================= */
#lista-inv:not([data-forma="compacta"]) .pc-acc .rep, #lista-inv:not([data-forma="compacta"]) .pc-acc .agr { flex: 1 1 calc(50% - 4px); }
.pc-acc .agr { background: #eef5ff; color: #0a4aa0; border-color: #bcd3f5; font-weight: 700; }
.fm.ag { max-width: 460px; max-height: 92vh; overflow: auto; }
.ag-t { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: #8a7f65; margin: 14px 2px 7px; }
.ag-cols { display: flex; flex-direction: column; gap: 7px; }
.ag-c { display: grid; grid-template-columns: 44px 1fr; gap: 4px 10px; align-items: center; background: #fff; border: 1.5px solid #ead9bd; border-radius: 14px; padding: 8px; }
.ag-ci img, .ag-ci i { width: 44px; height: 54px; border-radius: 9px; object-fit: cover; display: block; box-shadow: 0 2px 6px rgba(40,30,10,.25); } .ag-ci i { border: 2px dashed #c9b690; }
.ag-cn b { display: block; color: #0a2a5e; font-size: .92rem; } .ag-cn small { color: #8a7f65; font-size: .7rem; }
.ag-ca { grid-column: 1 / -1; display: flex; gap: 6px; flex-wrap: wrap; }
.ag-ca button { flex: 1; min-width: 110px; border: 1.5px solid #e2d2b2; background: #fffaf0; border-radius: 99px; padding: 8px 10px; font: 700 .74rem/1 inherit; font-family: inherit; color: #0a2a5e; cursor: pointer; } .ag-ca button:hover { border-color: #0a4aa0; background: #f4f9ff; }
.ag-n { font-size: .7rem; color: #8a7f65; margin: 10px 2px 2px; line-height: 1.4; }
.ap-q { width: 100%; padding: 11px 16px; border: 2px solid #e2d2b2; border-radius: 99px; font-size: .92rem; margin-bottom: 10px; } .ap-q:focus { outline: none; border-color: #d81e8f; }
.ap-l { display: flex; flex-direction: column; gap: 7px; max-height: 52vh; overflow: auto; }
.ap-p { display: flex; gap: 11px; align-items: center; border: 1.5px solid #e2d2b2; background: #fff; border-radius: 14px; padding: 8px; text-align: left; cursor: pointer; font-family: inherit; } .ap-p:hover { border-color: #0a4aa0; background: #f4f9ff; }
.ap-f { width: 48px; height: 60px; border-radius: 10px; overflow: hidden; background: #f3e8d3; display: flex; align-items: center; justify-content: center; flex: none; font-size: 1.4rem; } .ap-f img { width: 100%; height: 100%; object-fit: cover; }
.ap-i { min-width: 0; flex: 1; } .ap-i b { display: block; color: #0a2a5e; font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .ap-i small { color: #8a7f65; font-size: .7rem; display: block; }
.ap-d { display: flex; align-items: center; gap: 4px; margin-top: 3px; } .ap-d i { width: 13px; height: 13px; border-radius: 50%; border: 1px solid rgba(0,0,0,.25); display: block; } .ap-d em { font-style: normal; font-size: .68rem; color: #0a4aa0; font-weight: 700; margin-left: 4px; }


/* elegir varias prendas para unir */
.ap-acc { display: flex; gap: 6px; flex-wrap: wrap; margin: -2px 0 8px; }
.ap-acc button { border: 1.5px solid #d9c9a8; background: #fff; color: #0a2a5e; border-radius: 99px; padding: 6px 12px; font: 700 .72rem/1 inherit; font-family: inherit; cursor: pointer; } .ap-acc button:hover { border-color: #0a4aa0; }
.ap-p.on { border-color: #0a4aa0; background: #eef5ff; box-shadow: 0 0 0 2px rgba(10,74,160,.18); }
.ap-chk { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #0a4aa0; flex: none; display: flex; align-items: center; justify-content: center; color: #fff; font-size: .8rem; font-weight: 700; background: #fff; } .ap-p.on .ap-chk { background: #0a4aa0; }
.ap-pie { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding-top: 10px; border-top: 1px solid #ead9bd; }
.ap-pie span { flex: 1; font-size: .8rem; color: #6f6a5c; } .ap-pie b { color: #0a2a5e; }
.ap-pie button { border: 0; border-radius: 99px; padding: 12px 20px; background: linear-gradient(135deg, #12a150, #0c7f3f); color: #fff; font: 700 .9rem/1 inherit; font-family: inherit; cursor: pointer; box-shadow: 0 4px 12px rgba(18,161,80,.35); } .ap-pie button:disabled { background: #d9d0bd; box-shadow: none; cursor: not-allowed; }


/* fotos que no cargan o no se pudieron leer */
.ftl.rota { background: #fef2f2; box-shadow: 0 0 0 2.5px #d62828; }
.ftl.rota::before { content: "⚠ Foto dañada"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 6px; font-size: .68rem; font-weight: 700; color: #b91c1c; z-index: 2; }
.ftl.rota .chk { z-index: 3; }
.fg.fg-err { border-color: #d62828; background: #fffafa; } .fg.fg-err .fg-col { background: #fee2e2; color: #b91c1c; }
.ftl.vacia.err { background: #fef2f2; border: 2px dashed #d62828; color: #b91c1c; } .ftl.vacia.err small { color: #b91c1c; font-size: .58rem; }
.fg-ayuda.err { color: #b91c1c; margin-top: 8px; }
.pc-foto .sinf.rota { flex-direction: column; opacity: 1; gap: 4px; font-size: 2rem; } .pc-foto .sinf.rota small { font-size: .7rem; font-weight: 700; color: #b91c1c; }


/* editar una prenda que ya existe: "Guardar cambios" aparece en cualquier paso en cuanto hay un cambio, y solo entonces */
#ed-velo[data-edit="1"][data-cambio="0"] #ed-guardar { display: none !important; }
#ed-velo[data-edit="1"][data-cambio="1"] #ed-guardar { display: block !important; }
@media (max-width: 860px) { #ed-velo[data-edit="1"][data-cambio="1"] .ed-pie #ed-guardar { flex: 1.4; } #ed-velo[data-edit="1"][data-cambio="1"] .ed-sig { flex: 1; } }

/* posible duplicado */
.pc-dup { position: absolute; left: 10px; top: 42px; z-index: 3; border-radius: 99px; padding: 4px 11px; font-size: .7rem; font-weight: 800; background: #fff3cd; color: #8a4b00; border: 1.5px solid #e08a00; box-shadow: 0 2px 8px rgba(0,0,0,.2); }

/* ficha de la prenda (al tocar una tarjeta del inventario) */
.vp-velo { position: fixed; inset: 0; z-index: 240; background: rgba(15,20,35,.55); display: flex; align-items: center; justify-content: center; padding: 18px; }
.vp { position: relative; background: #fffaf0; border-radius: 22px; width: min(920px, 100%); max-height: 100%; overflow-y: auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.vp-x { position: absolute; top: 10px; right: 10px; z-index: 5; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); box-shadow: 0 2px 8px rgba(0,0,0,.25); font-size: 1rem; cursor: pointer; color: #0a2a5e; }
.vp-fotos { padding: 14px; background: #f3e8d3; }
.vp-grande { aspect-ratio: 1 / 1.1; border-radius: 16px; overflow: hidden; background: #fff; display: flex; align-items: center; justify-content: center; }
.vp-grande img { width: 100%; height: 100%; object-fit: contain; display: block; }
.vp-grande .sinf { text-align: center; font-size: 3rem; opacity: .5; } .vp-grande .sinf small { display: block; font-size: .8rem; }
.vp-mini { display: flex; gap: 6px; overflow-x: auto; padding: 8px 0 2px; }
.vp-mini button { flex: none; width: 58px; height: 64px; border-radius: 10px; border: 2.5px solid transparent; padding: 0; overflow: hidden; background: #fff; cursor: pointer; opacity: .75; }
.vp-mini button.on { border-color: #0a4aa0; opacity: 1; } .vp-mini img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vp-nf { margin: 8px 2px 0; font-size: .75rem; color: #7a6f55; }
.vp-datos { padding: 20px 20px 18px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.vp-datos h3 { margin: 0; font-size: 1.25rem; color: #0a2a5e; padding-right: 40px; }
.vp-sub { font-size: .85rem; color: #7a6f55; } .vp-sub b { color: #0a2a5e; }
.vp-precio { font-size: 1.5rem; font-weight: 800; color: #d91f8c; } .vp-precio small { font-size: .75rem; font-weight: 600; color: #7a6f55; }
.vp-dup { background: #fff3cd; border: 1.5px solid #e08a00; color: #8a4b00; border-radius: 12px; padding: 8px 12px; font-size: .8rem; font-weight: 700; }
.vp-tot { font-size: .85rem; color: #4a4a4a; } .vp-tot b { font-size: 1.1rem; color: #0a2a5e; }
.vp-cols { display: flex; flex-direction: column; gap: 6px; }
.vp-col { text-align: left; border: 2px solid #ead9bd; background: #fff; border-radius: 14px; padding: 8px 10px; cursor: pointer; font-family: inherit; display: flex; flex-direction: column; gap: 6px; }
.vp-col.on { border-color: #0a4aa0; background: #eef5ff; }
.vp-sw { display: flex; align-items: center; gap: 8px; } .vp-sw i { width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(0,0,0,.2); flex: none; } .vp-sw b { color: #0a2a5e; font-size: .88rem; } .vp-sw em { margin-left: auto; font-style: normal; font-size: .72rem; color: #7a6f55; }
.vp-tl { display: flex; flex-wrap: wrap; gap: 5px; } .vp-tl span { background: #e7f6ec; color: #0c6b34; border-radius: 99px; padding: 3px 10px; font-size: .75rem; } .vp-tl span b { margin-left: 2px; }
.vp-tl span.poco { background: #fff1d6; color: #8a4b00; } .vp-tl span.no { background: #fde2e2; color: #b91c1c; }
.vp-desc { margin: 0; font-size: .82rem; color: #555; }
.vp-acc { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.vp-acc button { flex: 1 1 calc(50% - 6px); border: 1.5px solid #e2d2b2; background: #fff; border-radius: 12px; padding: 11px 6px; font: 700 .85rem/1 inherit; font-family: inherit; cursor: pointer; color: #0a2a5e; }
.vp-acc .pri { background: #0a4aa0; color: #fff; border-color: #0a4aa0; } .vp-acc .agr { background: #eef5ff; border-color: #bcd3f5; color: #0a4aa0; } .vp-acc .rep { background: #12a150; color: #fff; border-color: #12a150; }
@media (max-width: 760px) {
  .vp-velo { padding: 0; align-items: flex-end; }
  .vp { grid-template-columns: 1fr; border-radius: 22px 22px 0 0; max-height: 94dvh; }
  .vp-grande { aspect-ratio: 1 / .95; }
}

.pc-acc .adj, .vp-acc .adj { background: #eef5ff; color: #0a4aa0; border-color: #bcd3f5; font-weight: 700; }

/* prenda sin código de costo */
.pc-sc { position: absolute; left: 10px; top: 42px; z-index: 3; border-radius: 99px; padding: 4px 11px; font-size: .7rem; font-weight: 800; background: #fde2e2; color: #b91c1c; border: 1.5px solid #d62828; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.pc-sc ~ .pc-dup { top: 72px; }

/* etiqueta roja: prenda sin costo (bien visible) */
.pc-sc { background: #d62828 !important; color: #fff !important; border: 2px solid #fff !important; font-size: .74rem !important; letter-spacing: .01em; box-shadow: 0 3px 10px rgba(214,40,40,.55) !important; }
.vp-sc { background: #d62828; color: #fff; border-radius: 12px; padding: 9px 12px; font-size: .82rem; font-weight: 800; }

/* el código de costo va primero, antes de las fotos */
.ed-campo.costo-primero { background: #fff6e0; border: 2px solid #e0a800; border-radius: 16px; padding: 12px 14px; margin-bottom: 12px; }
.ed-campo.costo-primero > label { font-weight: 800; color: #7a4b00; }

/* ===== Giro de fotos con un toque y panel «Tallas para todas las fotos» ===== */
.ftl .giro { position: absolute; top: 5px; width: 36px; height: 36px; border-radius: 50%; background: rgba(10,42,94,.8); color: #fff; font-style: normal; font-size: 1.15rem; line-height: 36px; text-align: center; z-index: 3; cursor: pointer; box-shadow: 0 2px 6px rgba(0,0,0,.35); user-select: none; }
.ftl .giro.gi { left: 5px; } .ftl .giro.gd { right: 5px; }
.ftl .giro:active { background: #d81e8f; transform: scale(.92); }
.ftl.prin span { bottom: 0; }
.ed-giro { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 6px 2px 0; 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: 30px; padding: 0 12px; font-size: .72rem; font-weight: 700; color: #6f6a5c; cursor: pointer; }
.pt { border: 2px solid #d81e8f; background: #fff5fa; border-radius: 16px; padding: 10px 12px 12px; margin-bottom: 12px; }
.pt-h { display: flex; flex-direction: column; gap: 1px; } .pt-h b { color: #0a2a5e; font-size: .92rem; } .pt-h small { color: #6f6a5c; font-size: .72rem; }
.pn-n { min-width: 26px; text-align: center; font-weight: 700; font-size: .95rem; color: #0a2a5e; }
.pt-ap { width: 100%; min-height: 48px; margin-top: 10px; border: 0; border-radius: 14px; background: #d81e8f; color: #fff; font: 700 .92rem/1.2 inherit; font-family: inherit; cursor: pointer; }
.pt-ap:disabled { background: #e2d2b2; color: #8a7f65; cursor: not-allowed; }
.pt-un { width: 100%; min-height: 40px; margin-top: 6px; border: 1.5px dashed #0a4aa0; background: #fff; border-radius: 12px; color: #0a4aa0; font: 700 .8rem inherit; font-family: inherit; cursor: pointer; }

/* botón del asistente de colores en el editor de fotos */
.fg-asist { width: 100%; min-height: 48px; margin: 8px 0 4px; 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: se distinguen un poco y se pueden olvidar */
.ed-chips .tipo-par { display: inline-flex; align-items: stretch; }
.ed-chips .tipo-par > button:first-child { border-radius: 99px 0 0 99px; border-right-width: 0; }
.ed-chips .tipo-par > .tipo-x { border-radius: 0 99px 99px 0; padding: 6px 11px; min-width: 40px; color: #8a7f65; font-size: .75rem; }
.ed-chips .tipo-par > .tipo-x:active { background: #fee2e2; color: #b42318; }
.ed-chips button.propio { border-style: dashed; }


/* ================= Inventario rediseñado: encabezado vivo, barra de categorías y tarjetas con interacción ================= */
.inv-top { background: none; border: 0; box-shadow: none; padding: 0; margin-bottom: 14px; display: flex; flex-direction: column; gap: 12px; }
.iv-hero { position: relative; overflow: hidden; display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap; color: #fff; border-radius: 18px; padding: 18px 20px;
  background: linear-gradient(110deg, #0a2a5e 0%, #0a4aa0 62%, #3b78d6 100%); box-shadow: 0 1px 3px rgba(60,45,20,.1), 0 8px 24px rgba(60,45,20,.12); }
.iv-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(rgba(255,255,255,.13) 1.6px, transparent 1.8px) 0 0 / 20px 20px; -webkit-mask-image: linear-gradient(90deg, transparent 40%, #000); mask-image: linear-gradient(90deg, transparent 40%, #000); pointer-events: none; }
.iv-hero::after { content: ""; position: absolute; right: -60px; bottom: -110px; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(circle, rgba(216,30,143,.55), transparent 68%); pointer-events: none; }
.iv-hero > * { position: relative; z-index: 1; }
.inv-top .iv-hero h2 { color: #fff; font-size: .95rem; font-weight: 600; letter-spacing: .02em; opacity: .95; }
.inv-top .iv-hero h2 .meta { color: #ffd1ec; font-weight: 500; }
.iv-kpi { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 4px 0 2px; }
.iv-kpi b { font-size: 3rem; font-weight: 700; letter-spacing: -.03em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.iv-kpi span { font-size: .9rem; color: #dbe6fb; } .iv-kpi span b { font-size: .9rem; color: #fff; letter-spacing: 0; }
.inv-res { margin: 8px 0 0; }
.inv-res .r { background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.45); color: #fff; font-family: inherit; font-weight: 600; font-size: .8rem; min-height: 38px; padding: 0 14px; cursor: default; }
.inv-res button.r { cursor: pointer; transition: background .15s, transform .15s; } .inv-res button.r:hover { background: rgba(255,255,255,.28); transform: translateY(-1px); }
.inv-res .r b, .inv-res .r.rojo b, .inv-res .r.ambar b { color: #fff; font-size: .95rem; }
.inv-res .r.on { background: #fff; color: #0a2a5e; border-color: #fff; } .inv-res .r.on b { color: #b0156f; }
.inv-res .r.ok { background: rgba(18,161,80,.35); border-color: rgba(255,255,255,.5); }
.iv-hero .btn-nueva { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; background: #d81e8f; }
.iv-hero .btn-nueva svg { width: 20px; height: 20px; }

/* categorías: una barra con lo que hay en cada una */
.inv-filtros#inv-cats { display: block; background: #fffaf0; border: 1px solid #e2d2b2; border-radius: 16px; padding: 12px 14px; box-shadow: 0 1px 3px rgba(60,45,20,.07); margin: 0 !important; }
.iv-bar { display: flex; gap: 2px; height: 14px; border-radius: 99px; overflow: hidden; background: #efe3c9; margin-bottom: 10px; }
.iv-bar button { padding: 0; min-width: 6px; height: 100%; border: 0; border-radius: 0; background: var(--c); cursor: pointer; opacity: .8; transition: opacity .15s, filter .15s; }
.iv-bar button:hover { opacity: 1; } .iv-bar button.on { opacity: 1; filter: brightness(.85) saturate(1.2); }
.iv-leg { display: flex; flex-wrap: wrap; gap: 6px; }
#inv-cats .iv-leg button { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 13px; border: 1.5px solid #e2d2b2; background: #fff; border-radius: 99px; font-weight: 600; font-size: .8rem; color: #0a2a5e; cursor: pointer; transition: background .15s, border-color .15s; }
#inv-cats .iv-leg button i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); flex: none; }
#inv-cats .iv-leg button small { color: #6f6a5c; font-weight: 600; }
#inv-cats .iv-leg button.on { background: color-mix(in srgb, var(--c, #0a4aa0) 14%, #fff); border-color: var(--c, #0a4aa0); }

/* búsqueda y filtros */
.inv-herr { gap: 8px; }
.inv-herr .buscar input { min-height: 48px; border-color: #e2d2b2; }
.inv-herr .buscar input:focus { box-shadow: 0 0 0 3px #fde7f3; }
#inv-filtros { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 4px; } #inv-filtros::-webkit-scrollbar { display: none; }
#inv-filtros button { flex: none; min-height: 40px; padding: 0 16px; transition: background .15s, transform .15s; } #inv-filtros button:active { transform: scale(.96); }
#inv-filtros button small { opacity: .7; margin-left: 4px; font-weight: 700; } #inv-filtros button.on small { opacity: .9; }

/* tarjetas */
#lista-inv.inv-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.ivc { background: #fffaf0; border: 1px solid #ead9bd; border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 3px 12px rgba(60,45,20,.07); transition: transform .2s, box-shadow .2s; animation: ivIn .4s ease-out both; animation-delay: calc(var(--i, 0) * 35ms); }
.ivc:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(60,45,20,.17); }
@keyframes ivIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.ivc-foto { position: relative; aspect-ratio: 4 / 4.6; background: #f3e8d3; overflow: hidden; cursor: pointer; }
.ivc-foto img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; } .ivc:hover .ivc-foto img { transform: scale(1.07); }
.ivc-foto .sinf { height: 100%; display: flex; align-items: center; justify-content: center; font-size: 2.6rem; opacity: .4; } .ivc-foto .sinf.rota { flex-direction: column; opacity: 1; gap: 4px; font-size: 2rem; } .ivc-foto .sinf.rota small { font-size: .7rem; font-weight: 700; color: #b91c1c; }
.ivc.agot .ivc-foto img { filter: grayscale(.85); opacity: .65; }
.ivc-est { position: absolute; top: 10px; left: 10px; border-radius: 99px; padding: 3px 11px; font-size: .72rem; font-weight: 700; color: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.ivc-est.verde { background: #12a150; } .ivc-est.ambar { background: #e08a00; } .ivc-est.rojo { background: #d62828; }
.ivc-flags { position: absolute; top: 10px; right: 10px; display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.ivc-sc, .ivc-dup { border-radius: 99px; padding: 3px 10px; font-size: .66rem; font-weight: 800; box-shadow: 0 2px 8px rgba(0,0,0,.25); white-space: nowrap; }
.ivc-sc { background: #d62828; color: #fff; } .ivc-dup { background: #fff3cd; color: #8a4b00; border: 1.5px solid #e08a00; }
.ivc-dots { position: absolute; left: 10px; bottom: 10px; display: flex; flex-wrap: wrap; gap: 4px; background: rgba(255,255,255,.92); padding: 4px 8px; border-radius: 99px; max-width: 75%; }
.ivc-dots i { width: 12px; height: 12px; border-radius: 50%; border: 1px solid rgba(0,0,0,.25); display: block; }
.ivc-info { padding: 12px 14px 4px; flex: 1; cursor: pointer; }
.ivc-info > b { display: block; font-size: .95rem; color: #0a2a5e; line-height: 1.25; } .ivc-info > small { color: #6f6a5c; font-size: .74rem; }
.ivc-fila { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; }
.ivc-precio { font-weight: 700; color: #d81e8f; font-size: 1.15rem; }
.ivc-m { background: #0a2a5e; color: #fff; border-radius: 99px; padding: 2px 10px; font-size: .66rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 60%; } .ivc-m.sin { background: #e08a00; }
.ivc-barra { height: 6px; background: #efe3c9; border-radius: 99px; overflow: hidden; margin: 8px 0 7px; }
.ivc-barra i { display: block; height: 100%; border-radius: 99px; transition: width .7s ease; } .ivc-barra i.verde { background: #12a150; } .ivc-barra i.ambar { background: #e08a00; } .ivc-barra i.rojo { background: #d62828; }
.ivc-tallas { display: flex; flex-wrap: wrap; gap: 4px; }
.ivc-tallas span { background: #e7eefa; color: #0a2a5e; border-radius: 8px; padding: 2px 7px; font-size: .68rem; font-weight: 600; } .ivc-tallas span b { font-weight: 800; }
.ivc-tallas .poco { background: #fdeecb; color: #92400e; } .ivc-tallas .no { background: #f1ece0; color: #a39a82; text-decoration: line-through; } .ivc-tallas .mas { background: none; color: #6f6a5c; }
.ivc-acc { display: flex; gap: 6px; padding: 10px 12px 12px; align-items: center; }
.ivc-acc .rep { flex: 1; min-height: 44px; border: 0; border-radius: 99px; background: #12a150; color: #fff; font-weight: 700; font-size: .85rem; cursor: pointer; box-shadow: 0 4px 12px rgba(18,161,80,.28); transition: transform .12s, background .12s; }
.ivc-acc .rep:hover { background: #0e8a44; } .ivc-acc .rep:active { transform: scale(.96); }
.ivc-acc .ib { flex: none; width: 44px; height: 44px; padding: 0; border: 1.5px solid #e2d2b2; background: #fff; border-radius: 50%; cursor: pointer; font-size: 1rem; transition: border-color .12s, background .12s, transform .12s; }
.ivc-acc .ib:hover { border-color: #0a4aa0; background: #e7eefa; } .ivc-acc .ib:active { transform: scale(.92); } .ivc-acc .ib.agr { background: #eef5ff; border-color: #bcd3f5; } .ivc-acc .ib.pel:hover { border-color: #d62828; background: #fee2e2; }
.ivc.selmode { cursor: pointer; } .ivc.selmode:hover { transform: none; } .ivc.marcada { outline: 4px solid #d81e8f; outline-offset: -2px; }
.ivc.selmode .ivc-est { top: 48px; } .ivc.selmode .ivc-flags { top: 48px; }
.iv-limpia { border: 0; background: none; color: #0a4aa0; font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
/* lista compacta */
#lista-inv[data-forma="compacta"] .ivc { display: grid; grid-template-columns: 96px minmax(0, 1fr); }
#lista-inv[data-forma="compacta"] .ivc-foto { grid-row: 1 / 3; aspect-ratio: auto; min-height: 120px; }
#lista-inv[data-forma="compacta"] .ivc-acc { grid-column: 2; padding-top: 4px; } #lista-inv[data-forma="compacta"] .ivc-est { font-size: .62rem; padding: 2px 8px; top: 6px; left: 6px; } #lista-inv[data-forma="compacta"] .ivc-dots { display: none; }

@media (max-width: 760px) {
  .iv-hero { padding: 16px; } .iv-kpi b { font-size: 2.5rem; }
  #lista-inv.inv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .ivc { border-radius: 16px; } .ivc-info { padding: 10px 11px 2px; } .ivc-info > b { font-size: .86rem; } .ivc-precio { font-size: 1rem; } .ivc-m { display: none; }
  .ivc-acc { padding: 8px 9px 10px; gap: 6px; flex-wrap: wrap; } .ivc-acc .rep { flex: 1 0 100%; font-size: .82rem; } .ivc-acc .ib { flex: 1; width: auto; height: 44px; border-radius: 14px; }
  .ivc-est { font-size: .66rem; padding: 2px 9px; }
  .iv-hero .btn-nueva span { display: inline; }
}
@media (prefers-reduced-motion: reduce) { .ivc { animation: none; } .ivc, .ivc-foto img { transition: none !important; } }

.inv-herr .dens button { min-height: 44px; min-width: 44px; }
.iv-bar { height: 18px; }

#lista-inv.inv-grid[data-forma="compacta"] { grid-template-columns: 1fr; gap: 10px; }
#lista-inv[data-forma="compacta"] .ivc-info { padding-bottom: 0; } #lista-inv[data-forma="compacta"] .ivc-acc { flex-wrap: nowrap; } #lista-inv[data-forma="compacta"] .ivc-acc .rep { flex: 1; }
#lista-inv[data-forma="compacta"] .ivc-acc .rep { flex: 0 1 220px; }


/* ================= Inventario · herramientas: indicadores, «Por reponer», orden, talla rápida y menú ⋯ ================= */
.iv-kpis { display: flex; gap: 10px; flex-wrap: wrap; margin: 8px 0 4px; }
.iv-kpis .kp { min-width: 118px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.4); border-radius: 16px; padding: 9px 16px 8px; backdrop-filter: blur(2px); }
.iv-kpis .kp span { display: block; font-size: .62rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #ffd1ec; }
.iv-kpis .kp b { display: block; font-size: 2.1rem; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.iv-kpis .kp small { font-size: .7rem; color: #dbe6fb; }
.iv-kpis .kp.hidden { display: none; }

/* por reponer */
.iv-rep { background: #fffaf0; border: 1px solid #e2d2b2; border-left: 6px solid #e08a00; border-radius: 18px; padding: 12px 14px 12px; box-shadow: 0 1px 3px rgba(60,45,20,.07); }
.iv-rep.hidden { display: none; }
.ivr-cab { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.ivr-cab b { display: block; font-size: 1rem; color: #0a2a5e; } .ivr-cab span { font-size: .76rem; color: #6f6a5c; }
.ivr-bod { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 99px; background: #0a2a5e; color: #fff; font-weight: 700; font-size: .82rem; text-decoration: none; box-shadow: 0 4px 12px rgba(10,42,94,.25); transition: transform .12s, background .12s; }
.ivr-bod:hover { background: #0a4aa0; transform: translateY(-1px); }
.ivr-lista { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 4px; } .ivr-lista::-webkit-scrollbar { display: none; }
.ivr-it { flex: none; width: 118px; display: flex; flex-direction: column; gap: 6px; background: #fff; border: 1px solid #ead9bd; border-radius: 16px; padding: 8px; }
.ivr-f { position: relative; width: 100%; aspect-ratio: 1 / 1; border-radius: 12px; overflow: hidden; background: #f3e8d3; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; }
.ivr-f img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ivr-f i { position: absolute; top: 5px; right: 5px; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 99px; color: #fff; font-style: normal; font-weight: 800; font-size: .78rem; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.ivr-f i.ambar { background: #e08a00; } .ivr-f i.rojo { background: #d62828; } .ivr-f i.verde { background: #12a150; }
.ivr-it b { font-size: .76rem; color: #0a2a5e; line-height: 1.2; height: 2.4em; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ivr-it button { min-height: 44px; border: 0; border-radius: 99px; background: #12a150; color: #fff; font: 700 .78rem/1 inherit; font-family: inherit; cursor: pointer; box-shadow: 0 3px 10px rgba(18,161,80,.3); }
.ivr-it button:active { transform: scale(.95); }

/* orden de la lista */
.iv-orden { display: flex; align-items: center; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 0 2px; } .iv-orden::-webkit-scrollbar { display: none; }
.iv-orden > span { flex: none; font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #6f6a5c; margin-right: 2px; }
.iv-orden button { flex: none; min-height: 38px; padding: 0 14px; border: 1.5px solid #e2d2b2; background: #fff; border-radius: 99px; font: 600 .78rem/1 inherit; font-family: inherit; color: #0a2a5e; cursor: pointer; transition: background .12s; }
.iv-orden button.on { background: #fde7f3; border-color: #d81e8f; color: #b0156f; }

/* tarjeta: precio sobre la foto, categoría en línea, tallas que se tocan */
.ivc-pr { position: absolute; right: 10px; bottom: 10px; background: #fff; color: #d81e8f; font-weight: 800; font-size: 1.05rem; border-radius: 99px; padding: 3px 13px; box-shadow: 0 3px 10px rgba(0,0,0,.3); }
.ivc-info > small .ivc-m { display: inline-block; vertical-align: 1px; background: #0a2a5e; color: #fff; border-radius: 99px; padding: 1px 8px; font-size: .64rem; font-weight: 700; max-width: 100%; } .ivc-info > small .ivc-m.sin { background: #e08a00; }
.ivc-barra { margin-top: 9px; }
.ivc-tallas .tl { border: 0; background: #e7eefa; color: #0a2a5e; border-radius: 8px; padding: 3px 8px; font: 600 .68rem/1.2 inherit; font-family: inherit; cursor: pointer; transition: transform .12s, box-shadow .12s; min-height: 24px; }
.ivc-tallas .tl b { font-weight: 800; } .ivc-tallas .tl.poco { background: #fdeecb; color: #92400e; } .ivc-tallas .tl.no { background: #f1ece0; color: #a39a82; text-decoration: line-through; }
.ivc-tallas .tl:hover { box-shadow: 0 0 0 2px #0a4aa0; transform: translateY(-1px); } .ivc-tallas .tl:active { transform: scale(.93); }
.ivc-acc .ib.mas { font-size: 1.4rem; font-weight: 800; color: #0a2a5e; line-height: 1; padding-bottom: 5px; }

/* menú ⋯ de la prenda */
.am-velo { position: fixed; inset: 0; z-index: 170; background: rgba(15,23,42,.6); display: flex; align-items: flex-end; justify-content: center; }
.am { width: 100%; max-width: 460px; background: #fffaf0; border-radius: 24px 24px 0 0; padding: 14px 14px 18px; box-shadow: 0 -12px 40px rgba(0,0,0,.35); animation: amSube .22s ease-out; max-height: 92vh; overflow: auto; }
@keyframes amSube { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.am-cab { display: flex; align-items: center; gap: 12px; padding: 2px 2px 12px; border-bottom: 1px solid #ead9bd; margin-bottom: 8px; }
.am-cab img, .am-cab .sinf { width: 52px; height: 62px; border-radius: 12px; object-fit: cover; background: #f3e8d3; display: flex; align-items: center; justify-content: center; flex: none; }
.am-cab > div { flex: 1; min-width: 0; } .am-cab b { display: block; color: #0a2a5e; font-size: 1rem; line-height: 1.2; } .am-cab small { color: #6f6a5c; font-size: .78rem; }
.am-x { flex: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #f3e8d3; font-size: 1rem; cursor: pointer; color: #0a2a5e; }
.am-lista { display: flex; flex-direction: column; gap: 6px; }
.am-lista button { display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 8px 12px; border: 1.5px solid #e2d2b2; background: #fff; border-radius: 16px; cursor: pointer; text-align: left; font-family: inherit; transition: border-color .12s, background .12s; }
.am-lista button:hover { border-color: #0a4aa0; background: #f3f8ff; }
.am-lista button i { flex: none; width: 40px; height: 40px; border-radius: 50%; background: #e7eefa; display: flex; align-items: center; justify-content: center; font-style: normal; font-size: 1.15rem; }
.am-lista button b { display: block; color: #0a2a5e; font-size: .92rem; } .am-lista button small { color: #6f6a5c; font-size: .74rem; }
.am-lista button.pel i { background: #fee2e2; } .am-lista button.pel b { color: #b91c1c; } .am-lista button.pel:hover { border-color: #d62828; background: #fff5f5; }
@media (min-width: 761px) { .am-velo { align-items: center; } .am { border-radius: 24px; } }
.iq-pt { display: inline-block; width: 12px; height: 12px; border-radius: 50%; border: 1px solid rgba(0,0,0,.25); margin-right: 6px; vertical-align: -1px; }

@media (max-width: 760px) {
  .iv-kpis { gap: 8px; } .iv-kpis .kp { flex: 1; min-width: 0; padding: 8px 12px 7px; } .iv-kpis .kp b { font-size: 1.7rem; } .iv-kpis .kp span { font-size: .56rem; letter-spacing: .08em; }
  .ivc-pr { font-size: .95rem; right: 8px; bottom: 8px; }
}
@media (prefers-reduced-motion: reduce) { .am { animation: none; } }
.ivc-tallas .tl { min-height: 30px; padding: 0 10px; display: inline-flex; align-items: center; gap: 4px; }

/* portada de la prenda (act. 52): una foto general del modelo, sin color */
.ed-port { border-color: #f3c6e0; background: #fff8fc; } .ed-port h4 small { font-weight: 500; color: #8a8068; font-size: .72rem; }
.pt-ayuda { margin: 0 0 10px; font-size: .8rem; color: #6f6a5c; }
.pt-fila { display: flex; gap: 12px; align-items: stretch; } .pt-f { position: relative; flex: none; width: 42%; max-width: 180px; aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden; background: #f3e8d3; } .pt-f img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pt-tag { position: absolute; left: 6px; top: 6px; background: #d81e8f; color: #fff; font-size: .66rem; font-weight: 800; padding: 3px 8px; border-radius: 99px; }
.pt-b { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 6px; } .pt-b button { min-height: 44px; border: 1.5px solid #e2d2b2; background: #fff; border-radius: 12px; font: 700 .84rem inherit; font-family: inherit; color: #0a2a5e; cursor: pointer; text-align: left; padding: 0 12px; }

.ed-port .bs { display: flex; gap: 8px; } .ed-port .bs button { flex: 1; min-height: 48px; border-radius: 99px; font: 800 .88rem inherit; font-family: inherit; cursor: pointer; border: 1.5px solid #e2d2b2; background: #fff; color: #0a2a5e; } .ed-port .bs .b1 { background: #d81e8f; border-color: #d81e8f; color: #fff; }

.ed-fondo { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0; } .ed-fondo:empty { display: none; } .ed-fondo button { flex: 1 1 150px; min-height: 46px; border: 1.5px solid #e2d2b2; background: #fff; border-radius: 99px; font: 700 .84rem inherit; font-family: inherit; color: #0a2a5e; cursor: pointer; } .ed-fondo button:disabled { opacity: .6; }

.ed-cam-bar { display: none; } .ed-cam-bar:not(:empty) { 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); } .ed-cam-bar b { flex: 1 1 100%; color: #b0156f; font-size: .88rem; } .ed-cam-bar button { flex: 1 1 140px; min-height: 48px; border-radius: 99px; border: 1.5px solid #e2d2b2; background: #fff; font: 800 .86rem inherit; font-family: inherit; color: #0a2a5e; cursor: pointer; } .ed-cam-bar .c1 { background: #d81e8f; border-color: #d81e8f; color: #fff; } .ed-cam-bar .c2 { background: #0a4aa0; border-color: #0a4aa0; color: #fff; }

.fg-asa { flex: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #0a2a5e; color: #fff; font-size: 1.25rem; line-height: 1; margin-right: 6px; }
.ed-vprev { min-height: 40px; padding: 0 12px; border: 0; border-radius: 99px; background: #d81e8f; color: #fff; font: 700 .78rem inherit; font-family: inherit; cursor: pointer; white-space: nowrap; flex: none; margin-left: auto; }

.ftl .mej { position: absolute; right: 4px; top: 4px; font-size: .7rem; line-height: 1; background: #d81e8f; color: #fff; border-radius: 99px; padding: 3px 5px; pointer-events: none; }

/* ---------- Portadas guardadas (act. 60) ---------- */
.pt-keep { display: flex; gap: 10px; align-items: flex-start; margin-top: 10px; padding: 10px 12px; background: #fff5fa; border: 1.5px solid #f7c3e2; border-radius: 12px; cursor: pointer; } .pt-keep input { width: 22px; height: 22px; flex: none; margin-top: 2px; accent-color: #d81e8f; } .pt-keep span { display: flex; flex-direction: column; gap: 2px; } .pt-keep b { font-size: .86rem; color: #0a2a5e; } .pt-keep small { font-size: .72rem; color: #6f6a5c; line-height: 1.35; }
.btn-port { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-left: 8px; padding: 0 16px; border: 2px solid #d81e8f; border-radius: 99px; background: #fff5fa; color: #b0156f; font: 700 .85rem inherit; font-family: inherit; cursor: pointer; }
.ed-drop .bs .b3 { background: #fff5fa; border-color: #d81e8f; color: #b0156f; }
.pg-velo { position: fixed; inset: 0; z-index: 400; background: rgba(15,23,42,.6); display: flex; align-items: flex-end; justify-content: center; backdrop-filter: blur(3px); }
.pg-caja { width: 100%; max-width: 640px; max-height: 90vh; overflow-y: auto; background: #fffaf0; border-radius: 22px 22px 0 0; padding: 14px 14px calc(16px + env(safe-area-inset-bottom)); animation: pg-sube .2s ease-out; }
@keyframes pg-sube { from { transform: translateY(40px); opacity: .6; } to { transform: none; opacity: 1; } }
@media (min-width: 761px) { .pg-velo { align-items: center; } .pg-caja { border-radius: 20px; } }
.pg-cab { display: flex; align-items: center; justify-content: space-between; gap: 8px; } .pg-cab b { font-size: 1.05rem; color: #0a2a5e; } .pg-ay { margin: 4px 0 10px; font-size: .8rem; color: #6f6a5c; line-height: 1.4; }
.pg-lista { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } @media (min-width: 600px) { .pg-lista { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pg-it { background: #fff; border: 1.5px solid #e2d2b2; border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 2px 8px rgba(60,45,20,.07); }
.pg-f { display: flex; flex-direction: column; gap: 2px; padding: 0 0 8px; border: 0; background: none; font-family: inherit; color: #0a2a5e; text-align: left; cursor: pointer; } .pg-f img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; background: #f3e8d3; } .pg-f b { padding: 6px 10px 0; font-size: .86rem; line-height: 1.2; } .pg-f small { padding: 0 10px; font-size: .72rem; color: #6f6a5c; }
.pg-ac { display: flex; border-top: 1px solid #efe2c4; } .pg-ac button { min-height: 46px; border: 0; background: #fff; font: 700 .82rem inherit; font-family: inherit; cursor: pointer; } .pg-ac .us { flex: 1; color: #d81e8f; } .pg-ac .qt { width: 64px; border-left: 1px solid #efe2c4; font-size: 1rem; } .pg-ac .qt.seg { background: #fee2e2; color: #b91c1c; font-size: .72rem; }
.pg-vacio { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 26px 14px; color: #6f6a5c; } .pg-vacio > span { font-size: 2.2rem; } .pg-vacio b { color: #0a2a5e; } .pg-vacio small { font-size: .78rem; line-height: 1.4; }
@media (prefers-reduced-motion: reduce) { .pg-caja { animation: none; } }

.pg-sug:empty { display: none; } .pg-sug-i { margin: 0 0 10px; padding: 10px 12px; background: #eef5ff; border: 1.5px solid #bcd4f7; border-radius: 14px; } .pg-sug-i > span { display: block; font-size: .78rem; font-weight: 600; color: #0a2a5e; margin-bottom: 6px; }
.pg-sug-i button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 56px; margin-top: 4px; padding: 4px 10px 4px 4px; background: #fff; border: 1.5px solid #e2d2b2; border-radius: 12px; font-family: inherit; color: #0a2a5e; cursor: pointer; text-align: left; } .pg-sug-i img { width: 44px; height: 52px; object-fit: cover; border-radius: 8px; flex: none; background: #f3e8d3; } .pg-sug-i b { flex: 1; font-size: .84rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .pg-sug-i em { font-style: normal; font-weight: 800; color: #d81e8f; font-size: .8rem; }
.pg-marcar { width: 100%; min-height: 44px; margin: 8px 0 0; border: 1.5px dashed #d81e8f; background: #fff5fa; color: #b0156f; border-radius: 12px; font: 700 .8rem inherit; font-family: inherit; cursor: pointer; }
.pm-rap { display: flex; gap: 8px; margin-bottom: 8px; } .pm-rap button { flex: 1; min-height: 40px; border: 1.5px solid #e2d2b2; background: #fff; border-radius: 99px; font: 700 .76rem inherit; font-family: inherit; color: #0a2a5e; cursor: pointer; }
.pm-lista { max-height: 48vh; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; } .pm-f { display: flex; align-items: center; gap: 10px; min-height: 60px; padding: 4px 10px 4px 6px; background: #fff; border: 1.5px solid #e2d2b2; border-radius: 12px; cursor: pointer; } .pm-f input { width: 22px; height: 22px; flex: none; accent-color: #d81e8f; } .pm-f img { width: 44px; height: 52px; object-fit: cover; border-radius: 8px; flex: none; background: #f3e8d3; } .pm-f span { display: flex; flex-direction: column; min-width: 0; } .pm-f b { font-size: .84rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .pm-f small { font-size: .7rem; color: #6f6a5c; }
.pm-pie { display: flex; gap: 8px; margin-top: 10px; } .pm-pie button { flex: 1; min-height: 48px; border: 0; border-radius: 14px; font: 700 .88rem inherit; font-family: inherit; cursor: pointer; } .pm-c { background: #6f6a5c; color: #fff; } .pm-ok { background: #d81e8f; color: #fff; } .pm-ok:disabled { opacity: .6; }

.pg-n { margin-left: 6px; background: #d81e8f; color: #fff; border-radius: 99px; font-style: normal; font-size: .7rem; padding: 1px 7px; }

.ivc-port { position: absolute; left: 6px; bottom: 6px; z-index: 2; background: rgba(10,42,94,.85); color: #fff; font-size: .6rem; font-weight: 700; padding: 3px 8px; border-radius: 99px; pointer-events: none; }

/* ---------- versiones de un color (otro estampado) ---------- */
.fg-v { flex: none; width: 36px; height: 36px; border: 1.5px solid #e2d2b2; border-radius: 10px; background: #fff; font-size: 1rem; cursor: pointer; padding: 0; } .fg-v:active { background: #f6ecd6; }
.fm-ver { max-width: 420px; } .fm-ver label { display: block; margin: 10px 0 4px; font-weight: 700; font-size: .82rem; color: #0a2a5e; } .fm-ver input { width: 100%; min-height: 46px; border: 2px solid #e2d2b2; border-radius: 12px; padding: 0 12px; font: inherit; font-size: .92rem; background: #fff; color: #0a2a5e; box-sizing: border-box; } .fm-ver input:focus { outline: none; border-color: #d81e8f; }
.ver-b { width: 100%; min-height: 46px; margin-top: 8px; border: 0; border-radius: 12px; background: #0a4aa0; color: #fff; font: 700 .86rem inherit; font-family: inherit; cursor: pointer; } .ver-b.ver-c { background: #d81e8f; }
.ver-sep { text-align: center; color: #8a8068; font-size: .74rem; margin: 12px 0 0; } .ver-n { display: block; margin-top: 6px; font-size: .72rem; color: #6f6a5c; line-height: 1.35; }
.ver-b.ver-d { background: #0a2a5e; }

.fg-pista { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 8px 0 2px; padding: 8px 10px; background: #fff5fa; border: 1.5px solid #f7c3e2; border-radius: 12px; font-size: .76rem; color: #0a2a5e; line-height: 1.35; } .fg-pista span { flex: 1 1 100%; } .fg-pista button { min-height: 40px; padding: 0 18px; border: 0; border-radius: 99px; background: #d81e8f; color: #fff; font: 700 .78rem inherit; font-family: inherit; cursor: pointer; } .fg-pista button.no { background: #fff; color: #6f6a5c; border: 1.5px solid #e2d2b2; }
.ag-lista { display: flex; flex-direction: column; gap: 6px; } .ag-h { margin: 8px 2px 2px; font-size: .8rem; color: #6f6a5c; }
.ag-f { display: flex; align-items: center; gap: 10px; background: #fff; border: 1.5px solid #e2d2b2; border-radius: 14px; padding: 6px 8px; } .ag-i { flex: none; width: 46px; height: 56px; border-radius: 9px; background: #f3e8d3; display: flex; align-items: center; justify-content: center; overflow: hidden; } .ag-i img { width: 100%; height: 100%; object-fit: cover; }
.ag-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; } .ag-t b { font-size: .86rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .ag-t small { font-size: .7rem; color: #6f6a5c; line-height: 1.3; }
.ag-b { flex: none; min-height: 44px; min-width: 76px; padding: 0 12px; border: 1.5px solid #e2d2b2; border-radius: 12px; background: #fff; color: #0a2a5e; font: 700 .76rem inherit; font-family: inherit; cursor: pointer; } .ag-b.rojo { border-color: #dc2626; color: #b91c1c; } .ag-b.seg { background: #dc2626; color: #fff; } .ag-b:disabled { opacity: .45; cursor: default; }

/* buscar y filtrar en el inventario (mismas piezas que Vender: fb-btn, fb-panel, fp, rc, qf, ri-c) */
.inv-herr { position: relative; } .inv-herr .buscar input { padding-right: 46px; } .inv-herr .buscar .q-x { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); }
.inv-herr .fb-panel { z-index: 70; } #inv-info { margin: 0 2px; min-height: 34px; flex-wrap: wrap; justify-content: flex-start; }
.qf-pt { display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin-right: 5px; border: 1px solid rgba(0,0,0,.25); vertical-align: -1px; }
#inv-qf { flex-wrap: wrap; overflow: visible; row-gap: 8px; } #inv-qf .qf-g { flex-wrap: wrap; border-right: 0; padding-right: 0; }

/* acciones del inventario: en computador siguen donde estaban; en el celular van TODAS juntas en una fila arriba (nada flota sobre las prendas) */
.iv-acc { display: contents; } .btn-port i, .btn-dif i { font-style: normal; } .btn-port .tc, .btn-dif .tc { display: none; }
@media (max-width: 760px) {
  .iv-acc { order: -1; flex: 1 1 100%; display: flex; gap: 8px; align-items: stretch; }
  .iv-hero .iv-acc .btn-nueva { position: static; flex: 1 1 0; min-width: 0; min-height: 56px; justify-content: center; padding: 0 12px; font-size: .92rem; white-space: nowrap; }
  .iv-acc .btn-port, .iv-acc .btn-dif { position: static; flex: 0 0 62px; min-height: 56px; margin: 0; padding: 4px 2px; border-radius: 16px; flex-direction: column; justify-content: center; gap: 1px; box-shadow: none; background: rgba(255,255,255,.16); border: 1.5px solid rgba(255,255,255,.55); color: #fff; }
  .iv-acc .btn-port i, .iv-acc .btn-dif i { font-size: 1.25rem; line-height: 1; } .iv-acc .tl { display: none; } .iv-acc .tc { display: block; font-size: .6rem; font-weight: 700; line-height: 1.1; letter-spacing: .01em; }
  .iv-hero .btn-nueva span { display: inline; }
}
@media (max-width: 360px) { .iv-acc { gap: 6px; } .iv-acc .btn-port, .iv-acc .btn-dif { flex-basis: 56px; } .iv-hero .iv-acc .btn-nueva { font-size: .85rem; gap: 5px; } }
/* ajuste final: en computador las 4 acciones forman un solo grupo a la derecha; en celular caben en la fila sin recortarse */
@media (min-width: 761px) { .iv-acc { display: flex; flex-wrap: wrap; justify-content: flex-end; align-content: flex-start; gap: 8px; max-width: 440px; margin-left: auto; } .iv-acc .btn-nueva, .iv-acc .btn-port, .iv-acc .btn-dif { margin: 0; } .iv-acc .btn-port, .iv-acc .btn-dif { background: #fff; } }
@media (max-width: 760px) {
  .iv-acc { gap: 6px; }
  .iv-acc .btn-port, .iv-acc .btn-dif { flex: 0 0 54px; min-width: 0; overflow: hidden; } .iv-acc .tc { font-size: .56rem; letter-spacing: 0; max-width: 100%; }
  .iv-hero .iv-acc .btn-nueva { padding: 0 8px; font-size: .88rem; gap: 6px; } .iv-hero .iv-acc .btn-nueva svg { width: 18px; height: 18px; }
}
@media (max-width: 360px) { .iv-acc .btn-port, .iv-acc .btn-dif { flex-basis: 50px; } .iv-hero .iv-acc .btn-nueva { font-size: .8rem; } }
@media (min-width: 761px) { .iv-hero .iv-hero-tx { flex: 1 1 360px; min-width: 0; } .iv-acc { flex: 0 1 420px; align-self: flex-start; } }

/* cabecera del inventario = la de Vender: la barra de categorías y «Por reponer» se retiran; estado y orden viven dentro del panel «Filtros» */
#inv-cats, #iv-rep { display: none !important; }
.inv-est { flex-wrap: wrap; } .inv-est .inv-filtros { flex-wrap: wrap; } .inv-est .inv-filtros button { min-height: 38px; padding: 0 12px; font-size: .76rem; }
.inv-est .iv-orden { flex-wrap: wrap; overflow: visible; } .inv-est .iv-orden > span { display: none; } .inv-est .iv-orden button { min-height: 38px; padding: 0 12px; }
.ri-c.bod { text-decoration: none; background: #effaf3; border-color: #12a150; color: #047857; }
#inv-info { margin: 4px 2px 6px; }
.inv-fb .inv-est, #inv-fb .inv-est { display: block; flex: none; border: 0; padding: 0; margin-top: 8px; width: 100%; } #inv-fb .inv-est > span { display: block; margin-bottom: 6px; }
#inv-fb .inv-filtros { flex-wrap: wrap !important; overflow: visible !important; }
.fp.m.vacia:not(.sel) { opacity: .6; }

/* buscador y filtros DENTRO del cuadro azul (mismo contenido que Vender): se fue el bloque de avisos y el bloque de búsqueda de abajo */
.iv-hero { overflow: visible; }
.iv-hero::after { right: 0; bottom: 0; width: auto; height: auto; inset: 0; border-radius: inherit; background: radial-gradient(circle at 100% 100%, rgba(216,30,143,.5), transparent 46%); }
.iv-hero::before { border-radius: inherit; }
.iv-hero #inv-res { display: none; }
.iv-busca { order: 5; flex: 1 1 100%; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.iv-busca .inv-herr { margin: 0; } .iv-busca .fbar { margin-top: 2px; }
.iv-busca .fp { background: #fff; } .iv-busca .fp.sel { box-shadow: 0 0 0 2px #fff, 0 4px 12px rgba(0,0,0,.3); }
.iv-busca .dens { background: rgba(255,255,255,.95); border-radius: 99px; }
.ri-c.sc { background: #fff3cf; border-color: #e0b84a; color: #8a5a00; }
@media (max-width: 760px) {
  .iv-hero { padding: 12px; gap: 10px; }
  .iv-hero .iv-hero-tx { flex: 1 1 100%; }
  .iv-hero .kp { padding: 8px 10px; } .iv-hero .kp small { display: none; } .iv-hero .kp b { font-size: 1.55rem; } .iv-hero .kp span { font-size: .6rem; }
  .inv-top .iv-hero h2 { margin: 0 0 4px; }
}

#inv-fb .fb-cab { flex-wrap: wrap; } #inv-fb .btn-clasif { min-height: 40px; padding: 0 13px; font-size: .74rem; border-radius: 99px; width: auto; }
.iv-busca .inv-herr { flex-wrap: nowrap; gap: 8px; } .iv-busca .inv-herr .buscar { flex: 1 1 0; min-width: 0; } .iv-busca .inv-herr .dens, .iv-busca .inv-herr .fb-btn { flex: none; }

/* v266: con el botón «Álbumes» son 5 botones en la fila del celular; se aprietan un poco para que ninguno se corte */
@media (max-width: 760px) {
  .iv-acc { gap: 6px; }
  .iv-acc .btn-port, .iv-acc .btn-dif { flex: 0 0 50px; min-width: 0; }
  .iv-acc .tc { font-size: .56rem; }
  .iv-hero .iv-acc .btn-nueva { padding: 0 8px; font-size: .84rem; gap: 5px; }
}
@media (max-width: 360px) { .iv-acc .btn-port, .iv-acc .btn-dif { flex-basis: 46px; } .iv-hero .iv-acc .btn-nueva { font-size: .78rem; } }
