/* ================= Botones LLOG (compartidos con LLOG Comparar) ================= */
:root{--llogb-rojo:#c8102e;--llogb-azul:#1f4e9c;--llogb-verde:#1d7a46;--llogb-tinta:#1a1d23;--llogb-linea:#e3e5ea}
.llogb-solo{container:llogsolo/inline-size;display:block;width:100%;margin:6px 0}
.llog-acc{container:llogacc/inline-size;display:block;width:100%}
.llog-acc-in{display:flex;justify-content:space-between;gap:0;width:100%}
.llog-acc-in>.llogb{flex:0 0 48%!important;max-width:48%!important;min-width:0}
.llog-acc-in.llog-acc--apilado{flex-direction:column;gap:6px}
.llog-acc-in.llog-acc--apilado>.llogb{flex:0 0 auto!important;max-width:100%!important}

button.llogb{display:flex!important;align-items:center;justify-content:center;gap:7px;width:100%!important;height:40px!important;min-height:0!important;margin:0!important;padding:0 10px!important;
  border:0!important;border-radius:10px!important;font-family:inherit!important;font-weight:600!important;font-size:13px!important;line-height:1!important;letter-spacing:.1px!important;text-transform:none!important;
  cursor:pointer;white-space:nowrap;overflow:hidden;box-sizing:border-box!important;text-decoration:none!important;text-shadow:none!important;position:relative;
  transition:transform .12s ease,box-shadow .18s ease,background .18s ease,color .18s ease;-webkit-tap-highlight-color:transparent}
button.llogb:hover{transform:translateY(-1px)}
button.llogb:active{transform:scale(.97)}
button.llogb:focus-visible{outline:2px solid var(--llogb-tinta)!important;outline-offset:2px}
button.llogb[disabled]{opacity:.6;cursor:progress}
.llogb .llogb-i{width:15px;height:15px;flex:none;display:inline-block}
.llogb .llogb-t{overflow:hidden;text-overflow:ellipsis}
.llogb .llogb-t-s,.llogb .llogb-t-lo,.llogb .llogb-t-so,.llogb .llogb-i-ok{display:none}
.llogb.ok .llogb-t-l,.llogb.ok .llogb-t-s,.llogb.ok .llogb-i-on{display:none}
.llogb.ok .llogb-t-lo,.llogb.ok .llogb-i-ok{display:inline-block}
.llogb.pop .llogb-i{animation:llogbpop .35s ease}
@keyframes llogbpop{0%{transform:scale(.4)}60%{transform:scale(1.25)}100%{transform:scale(1)}}

/* textos cortos cuando no cabe el largo */
@container llogacc (max-width:300px){
  .llogb .llogb-t-l{display:none}.llogb:not(.ok) .llogb-t-s{display:inline}
  .llogb.ok .llogb-t-lo{display:none}.llogb.ok .llogb-t-so{display:inline}
  button.llogb{font-size:12.5px!important;gap:5px;padding:0 6px!important}
  .llogb .llogb-i{width:14px;height:14px}
}
/* tarjeta angosta (2 columnas en celular): se apilan a lo ancho */
@container llogacc (max-width:240px){
  .llog-acc-in{flex-direction:column;gap:6px}
  .llog-acc-in>.llogb{flex:0 0 auto!important;max-width:100%!important}
  button.llogb{height:36px!important;padding:0 8px!important}
}
@container llogsolo (max-width:200px){
  .llogb .llogb-t-l{display:none}.llogb:not(.ok) .llogb-t-s{display:inline}
  .llogb.ok .llogb-t-lo{display:none}.llogb.ok .llogb-t-so{display:inline}
}

/* A · Tonal */
button.llogb--est-a.llogb--rojo{background:linear-gradient(180deg,color-mix(in srgb,var(--llogb-rojo) 88%,#fff) 0%,var(--llogb-rojo) 100%)!important;color:#fff!important;box-shadow:0 1px 0 rgba(255,255,255,.25) inset,0 4px 12px -4px color-mix(in srgb,var(--llogb-rojo) 60%,transparent)!important}
button.llogb--est-a.llogb--rojo:hover{box-shadow:0 1px 0 rgba(255,255,255,.25) inset,0 8px 18px -6px color-mix(in srgb,var(--llogb-rojo) 65%,transparent)!important}
button.llogb--est-a.llogb--rojo.ok{background:color-mix(in srgb,var(--llogb-verde) 12%,#fff)!important;color:var(--llogb-verde)!important;box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--llogb-verde) 30%,#fff)!important}
button.llogb--est-a.llogb--azul{background:color-mix(in srgb,var(--llogb-azul) 10%,#fff)!important;color:var(--llogb-azul)!important;box-shadow:none!important}
button.llogb--est-a.llogb--azul:hover{background:color-mix(in srgb,var(--llogb-azul) 16%,#fff)!important}
button.llogb--est-a.llogb--azul.ok{background:linear-gradient(180deg,color-mix(in srgb,var(--llogb-azul) 88%,#fff) 0%,var(--llogb-azul) 100%)!important;color:#fff!important;box-shadow:0 1px 0 rgba(255,255,255,.2) inset,0 4px 12px -4px color-mix(in srgb,var(--llogb-azul) 60%,transparent)!important}
/* B · Píldora */
button.llogb--est-b{border-radius:999px!important;height:38px!important}
button.llogb--est-b.llogb--rojo{background:var(--llogb-rojo)!important;color:#fff!important;box-shadow:0 6px 14px -8px var(--llogb-rojo)!important}
button.llogb--est-b.llogb--rojo.ok{background:#fff!important;color:var(--llogb-verde)!important;box-shadow:inset 0 0 0 1.5px var(--llogb-verde)!important}
button.llogb--est-b.llogb--azul{background:#fff!important;color:var(--llogb-azul)!important;box-shadow:inset 0 0 0 1.5px color-mix(in srgb,var(--llogb-azul) 25%,#fff)!important}
button.llogb--est-b.llogb--azul:hover{box-shadow:inset 0 0 0 1.5px var(--llogb-azul)!important}
button.llogb--est-b.llogb--azul.ok{background:var(--llogb-azul)!important;color:#fff!important;box-shadow:0 6px 14px -8px var(--llogb-azul)!important}
/* C · Minimal */
button.llogb--est-c{background:#fff!important;color:var(--llogb-tinta)!important;box-shadow:inset 0 0 0 1px var(--llogb-linea),0 1px 2px rgba(20,24,33,.06)!important}
button.llogb--est-c.llogb--rojo .llogb-i{color:var(--llogb-rojo)}
button.llogb--est-c.llogb--azul .llogb-i{color:var(--llogb-azul)}
button.llogb--est-c:hover{box-shadow:inset 0 0 0 1px #c8ccd4,0 4px 10px -4px rgba(20,24,33,.15)!important}
button.llogb--est-c.llogb--rojo.ok{background:var(--llogb-rojo)!important;color:#fff!important;box-shadow:none!important}
button.llogb--est-c.llogb--azul.ok{background:var(--llogb-azul)!important;color:#fff!important;box-shadow:none!important}
button.llogb--est-c.ok .llogb-i{color:#fff}
@media (prefers-reduced-motion:reduce){button.llogb,.llogb .llogb-i{transition:none!important;animation:none!important}}


/* ================= Bandeja flotante ================= */
.llogcmp-tray{position:fixed;left:50%;bottom:calc(var(--llogcmp-bar,0px) + 18px);transform:translate(-50%,170%);z-index:2147481000;background:#1a1d23;color:#fff;border-radius:14px;padding:10px 10px 10px 16px;display:flex;align-items:center;gap:14px;
  box-shadow:0 12px 34px rgba(0,0,0,.28);transition:transform .3s ease;font:14px/1.25 inherit;max-width:calc(100vw - 20px)}
.llogcmp-tray.on{transform:translate(-50%,0)}
.llogcmp-tray .lbl{font-size:13px;line-height:1.25;white-space:nowrap}
.llogcmp-tray .lbl b{display:block;font-size:14px}
.llogcmp-slots{display:flex;gap:6px}
.llogcmp-slot{width:44px;height:44px;border-radius:8px;background:#2b2f38;border:1px dashed rgba(80,86,99,.6);display:grid;place-items:center;position:relative;flex:none}
.llogcmp-slot.f{background:#fff;border:0}
.llogcmp-slot img{width:100%;height:100%;object-fit:contain;border-radius:8px;display:block}
.llogcmp-slot .ini{color:#5b6270;font:700 11px/1 system-ui,sans-serif}
button.llogcmp-x{position:absolute!important;top:-6px;right:-6px;width:18px!important;height:18px!important;border-radius:50%!important;background:#fff!important;color:#1a1d23!important;border:1px solid #e3e5ea!important;font-size:11px!important;line-height:1!important;display:grid;place-items:center;padding:0!important;margin:0!important;min-height:0!important;cursor:pointer;box-shadow:none!important}
a.llogcmp-ir{display:inline-flex;align-items:center;gap:7px;background:var(--llogb-azul);color:#fff!important;border-radius:10px;padding:0 14px;height:40px;font-weight:600;font-size:13.5px;text-decoration:none!important;white-space:nowrap}
a.llogcmp-ir svg{width:16px;height:16px}
button.llogcmp-limpiar{background:none!important;border:0!important;color:#b9bec8!important;font-size:12.5px!important;text-decoration:underline;cursor:pointer;padding:0!important;margin:0!important;min-height:0!important;box-shadow:none!important;text-transform:none!important}
@media (max-width:600px){
  .llogcmp-tray{left:10px;right:10px;transform:translateY(170%);gap:8px;padding:8px 8px 8px 12px;border-radius:12px}
  .llogcmp-tray.on{transform:none}
  .llogcmp-slot{width:34px;height:34px}.llogcmp-tray .lbl b{display:none}.llogcmp-limpiar{display:none}
  a.llogcmp-ir{margin-left:auto;height:36px;padding:0 12px}
}
/* aviso y ventana */
.llogcmp-toast{position:fixed;left:50%;top:96px;transform:translate(-50%,-160px);z-index:2147482000;background:#1a1d23;color:#fff;border-radius:10px;padding:10px 16px;font-size:14px;transition:transform .3s;box-shadow:0 8px 24px rgba(0,0,0,.25);max-width:calc(100vw - 24px)}
.llogcmp-toast.on{transform:translate(-50%,0)}
.llogcmp-modal{position:fixed;inset:0;z-index:2147482500;background:rgba(15,17,21,.5);display:grid;place-items:center;padding:16px}
.llogcmp-modal>div{background:#fff;color:#1a1d23;border-radius:14px;max-width:420px;width:100%;padding:22px;box-shadow:0 20px 50px rgba(0,0,0,.3);font-size:14.5px;line-height:1.45}
.llogcmp-modal h4{margin:0 0 8px!important;font-size:17px!important;text-transform:none!important;letter-spacing:0!important}
.llogcmp-modal p{margin:0 0 16px}
.llogcmp-modal .acc{display:flex;gap:8px;justify-content:flex-end;flex-wrap:wrap}
.llogcmp-modal button{border-radius:10px!important;padding:10px 16px!important;font-weight:600!important;font-size:14px!important;cursor:pointer;border:1px solid #e3e5ea!important;background:#fff!important;color:#1a1d23!important;margin:0!important;text-transform:none!important;min-height:0!important;height:auto!important}
.llogcmp-modal button.si{background:var(--llogb-azul)!important;color:#fff!important;border-color:var(--llogb-azul)!important}

/* contador */
.llogcmp-cont{position:relative;display:inline-grid;place-items:center;width:40px;height:40px;border-radius:50%;color:inherit;text-decoration:none!important}
.llogcmp-cont svg{width:20px;height:20px}
.llogcmp-cont--blanco{color:#fff;background:rgba(255,255,255,.14)}
.llogcmp-cont .llogcmp-n{position:absolute;top:-3px;right:-3px;min-width:19px;height:19px;border-radius:999px;background:#fff;color:var(--llogb-azul);font:700 11.5px/19px system-ui,sans-serif;font-style:normal;text-align:center;padding:0 5px;border:2px solid var(--llogb-azul);box-sizing:border-box}
.llogcmp-cont .llogcmp-n[hidden]{display:none}

/* ================= Tabla ================= */
.llogcmp-app{color:#1a1d23;font-size:14px;line-height:1.4;margin:0 0 40px}
.llogcmp-app *{box-sizing:border-box}
.llogcmp-bar{display:flex;align-items:center;gap:14px;margin-bottom:14px;flex-wrap:wrap}
.llogcmp-esp{margin-left:auto}
.llogcmp-sw{display:flex!important;align-items:center;gap:8px;font-size:14px!important;font-weight:500!important;cursor:pointer;margin:0!important}
.llogcmp-sw input{appearance:none;-webkit-appearance:none;width:38px!important;height:22px!important;border-radius:999px!important;background:#cfd3da!important;position:relative;cursor:pointer;transition:background .15s;margin:0!important;border:0!important;padding:0!important;min-height:0!important}
.llogcmp-sw input::after{content:"";position:absolute;top:3px;left:3px;width:16px;height:16px;border-radius:50%;background:#fff;transition:left .15s}
.llogcmp-sw input:checked{background:var(--llogb-azul)!important}.llogcmp-sw input:checked::after{left:19px}
.llogcmp-ley{font-size:12.5px;color:#5b6270;display:flex;align-items:center;gap:6px}
.llogcmp-ley i{width:14px;height:14px;border-radius:3px;background:#fff6db;border:1px solid #f0dc9c;display:inline-block}
button.llogcmp-b{background:#fff!important;border:1px solid #e3e5ea!important;color:#1a1d23!important;border-radius:8px!important;padding:7px 12px!important;font-size:12.5px!important;font-weight:600!important;cursor:pointer;margin:0!important;text-transform:none!important;min-height:0!important;height:auto!important;box-shadow:none!important}
.llogcmp-scroll{overflow-x:auto;background:#fff;border:1px solid #e3e5ea;border-radius:12px;-webkit-overflow-scrolling:touch}
table.llogcmp-t{border-collapse:collapse;width:100%;table-layout:auto;margin:0!important;border:0!important}
.llogcmp-t th,.llogcmp-t td{padding:12px 14px!important;border:0!important;border-bottom:1px solid #e3e5ea!important;text-align:left;vertical-align:top;font-size:14px}
.llogcmp-t thead th{vertical-align:bottom;background:#fff;position:relative;min-width:170px;width:auto}
.llogcmp-t thead th.add{min-width:140px}
.llogcmp-t thead th:first-child,.llogcmp-t tbody th{width:170px;min-width:130px;background:#fafbfc!important;font-size:13px;color:#5b6270;font-weight:600}
.llogcmp-t tbody th{position:sticky;left:0;z-index:1}
.llogcmp-ph{display:flex;flex-direction:column;gap:8px}
.llogcmp-ph .th{aspect-ratio:4/3;border-radius:8px;background:#f0f1f4;display:grid;place-items:center;overflow:hidden}
.llogcmp-ph .th img{width:100%;height:100%;object-fit:contain}
.llogcmp-ph a.nom{font-size:14px;font-weight:700;text-transform:uppercase;line-height:1.3;color:#1a1d23!important;text-decoration:none!important}
.llogcmp-ph .sku{font:500 12px/1.3 ui-monospace,monospace;color:#5b6270}
button.llogcmp-qx{position:absolute!important;top:8px;right:8px;width:26px!important;height:26px!important;border-radius:50%!important;background:#fff!important;border:1px solid #e3e5ea!important;color:#5b6270!important;display:grid;place-items:center;padding:0!important;margin:0!important;cursor:pointer;min-height:0!important;font-size:13px!important;z-index:2}
.llogcmp-t tr.dif td{background:#fff6db}
.llogcmp-t tr.grupo th{background:#f5f6f8!important;color:#1a1d23!important;font-size:12.5px!important;padding:8px 14px!important;position:static}
.llogcmp-t tr.oculta{display:none}
.llogcmp-t .nd{color:#9aa1ad}
.llogcmp-add{border:1.5px dashed #cfd3da;border-radius:8px;aspect-ratio:4/3;display:grid;place-items:center;color:#5b6270;font-size:13px;text-align:center;padding:10px;text-decoration:none!important}
.llogcmp-vacio{padding:40px 18px;text-align:center;color:#5b6270}
.llogcmp-vacio a{color:var(--llogb-rojo)!important;font-weight:600}
@media (max-width:600px){.llogcmp-t thead th:first-child,.llogcmp-t tbody th{width:104px;min-width:104px;font-size:12px}.llogcmp-t thead th{min-width:150px}.llogcmp-t th,.llogcmp-t td{padding:10px!important}.llogcmp-esp{display:none}}
@media print{
  .llogcmp-tray,.llogcmp-bar,.llogcmp-qx,.llogcmp-add,.llogb-solo{display:none!important}
  .llogcmp-scroll{border:0;overflow:visible}.llogcmp-t{min-width:0}.llogcmp-t tr.dif td{background:#fff6db!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}
}
