.ayudante-bodega-page{max-width:820px;margin:0 auto;padding:clamp(10px,3vw,24px);color:var(--txt,#253746)}
.ayudante-bodega-hero{display:flex;align-items:center;gap:14px;padding:18px;border-radius:18px;background:linear-gradient(135deg,#fff8e7,#eef8ff);border:1px solid #ead6a5;box-shadow:0 5px 18px rgba(15,23,42,.06)}
.ayudante-bodega-hero-icon{width:52px;height:52px;display:grid;place-items:center;border-radius:16px;background:#fff0bd;color:#9a650f;font-size:28px;flex:0 0 52px}
.ayudante-bodega-kicker{font-size:11px;letter-spacing:.7px;font-weight:800;color:#9a650f}
.ayudante-bodega-hero h1{font-size:clamp(21px,4vw,30px);margin:3px 0 4px;color:#253746}
.ayudante-bodega-hero p{margin:0;color:#52606d;font-size:14px;line-height:1.4}
.ayudante-bodega-install-btn{margin-top:10px;border:1px solid #c98b1b;border-radius:9px;background:#fffdf7;color:#6e4808;padding:8px 11px;font-size:12px;font-weight:800;cursor:pointer}
.ayudante-bodega-install-btn:hover,.ayudante-bodega-install-btn:focus-visible{background:#fff3c4;outline:0}
.ayudante-bodega-install-btn:disabled{opacity:.75;cursor:default}
.ayudante-bodega-search-wrap{position:sticky;top:0;z-index:4;margin:14px 0 12px;padding:11px 0 8px;background:var(--bg,#f7f8fa)}
.ayudante-bodega-search-row{display:flex;gap:7px;align-items:center}
.ayudante-bodega-search-row input{width:100%;min-width:0;box-sizing:border-box;border:2px solid #d8c7a5;border-radius:12px;padding:13px 14px;background:var(--bg-input,#fff);color:var(--txt,#253746);font-size:16px;outline:none}
.ayudante-bodega-search-row input:focus{border-color:#c98b1b;box-shadow:0 0 0 3px rgba(247,183,49,.18)}
.ayudante-bodega-search-row button{width:46px;height:46px;flex:0 0 46px;border:1px solid #c98b1b;border-radius:11px;background:#c98b1b;color:white;font-size:20px;cursor:pointer}
.ayudante-bodega-search-row button.clear{width:38px;flex-basis:38px;border-color:#d8c7a5;background:var(--bg-card,#fff);color:#64748b;font-size:15px}
.ayudante-bodega-search-help{font-size:12px;color:#64748b;margin:6px 3px 0;line-height:1.35}
.ayudante-bodega-count{font-size:12px;color:#64748b;margin:7px 2px 10px}
.ayudante-bodega-product{background:var(--bg-card,#fff);border:1px solid var(--border,#e5e7eb);border-radius:15px;padding:13px;margin:10px 0;box-shadow:0 3px 12px rgba(15,23,42,.05)}
.ayudante-bodega-product-head{display:flex;align-items:center;gap:11px}
.ayudante-bodega-photo{width:50px;height:50px;flex:0 0 50px;border-radius:11px;background:#f6f1e6;border:1px solid #e7d8b7;display:grid;place-items:center;overflow:hidden;font-size:25px;color:#94a3b8}
.ayudante-bodega-photo img{width:100%;height:100%;object-fit:cover;display:block}
.ayudante-bodega-title{min-width:0}
.ayudante-bodega-title h3{margin:0;color:var(--txt,#253746);font-size:17px;line-height:1.25;overflow-wrap:anywhere}
.ayudante-bodega-code{font-family:monospace;font-size:12px;color:#64748b;margin-top:3px;overflow-wrap:anywhere}
.ayudante-bodega-stock{font-size:12px;color:#15803d;font-weight:700;margin-top:4px}
.ayudante-bodega-locations{margin-top:10px}
.ayudante-bodega-location{padding:10px 11px;border-radius:11px;background:#fffdf7;border:1px solid #eadfca;margin-top:8px;line-height:1.4}
.ayudante-bodega-location.principal{border-color:#c98b1b;box-shadow:inset 3px 0 #c98b1b}
.ayudante-bodega-route{font-weight:800;color:#6e4808;font-size:15px;overflow-wrap:anywhere}
.ayudante-bodega-route span{font-size:9px;background:#eaf3ff;color:#1565c0;border-radius:10px;padding:3px 6px;vertical-align:middle;white-space:nowrap}
.ayudante-bodega-meta{font-size:12px;color:#475569;margin-top:4px;overflow-wrap:anywhere}
.ayudante-bodega-unlocated{padding:11px;border-radius:10px;background:#fffbeb;color:#92400e;font-size:13px;line-height:1.4}
.ayudante-bodega-inherited{display:inline-block;margin-top:8px;padding:4px 8px;border-radius:9px;background:#eff6ff;color:#1e3a8a;font-size:11px;font-weight:700}
.ayudante-bodega-empty,.ayudante-bodega-loading{border:1px dashed #cbd5e1;border-radius:14px;padding:28px 18px;text-align:center;background:rgba(255,255,255,.65);color:#475569;line-height:1.45}
.ayudante-bodega-empty.error{border-color:#fda4af;background:#fff1f2;color:#9f1239}
.ayudante-bodega-empty-icon{font-size:34px;margin-bottom:6px}
.ayudante-bodega-empty p{margin:6px auto 0;max-width:440px;font-size:13px;color:#64748b}
.ayudante-bodega-foot{text-align:center;color:#94a3b8;font-size:11px;padding:16px 0 3px}
@media(max-width:600px){
  .ayudante-bodega-page{padding:10px}
  .ayudante-bodega-hero{padding:14px;gap:10px}
  .ayudante-bodega-hero-icon{width:44px;height:44px;flex-basis:44px;font-size:24px;border-radius:13px}
  .ayudante-bodega-hero p{font-size:13px}
  .ayudante-bodega-search-wrap{margin-top:9px}
  .ayudante-bodega-product{padding:11px}
}
body.dark .ayudante-bodega-hero{background:linear-gradient(135deg,#2a2518,#182631);border-color:rgba(247,183,49,.3)}
body.dark .ayudante-bodega-hero h1,body.dark .ayudante-bodega-title h3{color:#f1f5f9}
body.dark .ayudante-bodega-hero p,body.dark .ayudante-bodega-search-help{color:#cbd5e1}
body.dark .ayudante-bodega-location{background:#28241b;border-color:#67542a}
body.dark .ayudante-bodega-route{color:#f4d58a}
body.dark .ayudante-bodega-meta{color:#cbd5e1}
body.dark .ayudante-bodega-empty,body.dark .ayudante-bodega-loading{background:#20262f;border-color:#475569;color:#e2e8f0}
.ayudante-bodega-scanner{position:fixed;inset:0;z-index:10050;background:rgba(15,23,42,.72);display:flex;align-items:center;justify-content:center;padding:14px;box-sizing:border-box}
.ayudante-bodega-scanner-card{width:min(96vw,520px);max-height:92vh;overflow:auto;background:var(--bg-card,#fff);border-radius:18px;padding:16px;box-sizing:border-box;box-shadow:0 24px 80px rgba(15,23,42,.4)}
.ayudante-bodega-scanner-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:12px}
.ayudante-bodega-scanner-head h2{margin:3px 0 0;color:var(--txt,#253746);font-size:20px}
.ayudante-bodega-scanner-head button{border:0;background:transparent;color:#64748b;font-size:22px;cursor:pointer;padding:1px 4px}
.ayudante-bodega-video-wrap{position:relative;width:100%;aspect-ratio:4/3;background:#0f172a;border-radius:13px;overflow:hidden}
.ayudante-bodega-video-wrap video{width:100%;height:100%;object-fit:cover;display:block}
.ayudante-bodega-scan-line{position:absolute;left:10%;right:10%;top:49%;height:2px;background:#fbbf24;box-shadow:0 0 12px #fbbf24;animation:ayudante-scan-line 1.8s ease-in-out infinite}
@keyframes ayudante-scan-line{0%,100%{transform:translateY(-55px);opacity:.55}50%{transform:translateY(55px);opacity:1}}
.ayudante-bodega-scanner-status{text-align:center;font-weight:800;color:#6e4808;margin:12px 0 5px;line-height:1.4}
.ayudante-bodega-scanner-help{text-align:center;color:#64748b;font-size:12px;line-height:1.45;margin:0 auto 13px;max-width:390px}
.ayudante-bodega-scanner-actions{display:flex;gap:8px}
.ayudante-bodega-scanner-actions>button{flex:1;min-width:0}
.ayudante-bodega-torch{border:1px solid #c98b1b;background:#fff3c4;color:#6e4808;border-radius:10px;padding:10px;font-weight:800;cursor:pointer}
.ayudante-bodega-torch:disabled{opacity:.55;cursor:not-allowed}
.ayudante-bodega-scanner-close{width:100%;border:1px solid #d8c7a5;background:#fffdf7;color:#6e4808;border-radius:10px;padding:10px;font-weight:800;cursor:pointer}
.ayudante-bodega-install-modal{position:fixed;inset:0;z-index:10040;background:rgba(15,23,42,.64);display:flex;align-items:center;justify-content:center;padding:16px;box-sizing:border-box}
.ayudante-bodega-install-card{width:min(94vw,440px);background:var(--bg-card,#fff);border-radius:16px;padding:18px;box-shadow:0 22px 70px rgba(15,23,42,.38);color:var(--txt,#253746)}
.ayudante-bodega-install-card h2{margin:3px 0 0;font-size:19px;color:var(--txt,#253746)}
.ayudante-bodega-install-card p{line-height:1.5;font-size:14px;color:#475569}
.ayudante-bodega-install-actions{display:flex;gap:8px;margin-top:12px}
.ayudante-bodega-install-actions>button{flex:1;min-width:0;border-radius:10px;padding:11px 10px;font-weight:800;cursor:pointer}
.ayudante-bodega-install-open{border:1px solid #b77908;background:#c98b1b;color:#fff}
.ayudante-bodega-install-open:hover,.ayudante-bodega-install-open:focus-visible{background:#a96f08;outline:0}
.ayudante-bodega-install-note{padding:10px;border-radius:9px;background:#eff6ff;color:#1e3a8a!important;font-size:12px!important}
body.dark .ayudante-bodega-scanner-card{background:#20262f}
body.dark .ayudante-bodega-scanner-head h2{color:#f1f5f9}
body.dark .ayudante-bodega-scanner-status{color:#f4d58a}
body.dark .ayudante-bodega-scanner-close{background:#28241b;border-color:#67542a;color:#f4d58a}
body.dark .ayudante-bodega-install-btn{background:#28241b;border-color:#67542a;color:#f4d58a}
body.dark .ayudante-bodega-install-card{background:#20262f;color:#e2e8f0}
body.dark .ayudante-bodega-install-card h2{color:#f1f5f9}
body.dark .ayudante-bodega-install-card p{color:#cbd5e1}

body.dark .ayudante-bodega-install-open{background:#c98b1b;color:#17120a;border-color:#f4d58a}
@media(max-width:420px){.ayudante-bodega-install-actions{flex-direction:column}}

/* Enlaces temporales personales para el Ayudante de bodega */
.ayudante-bodega-access-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.ayudante-bodega-share-btn{margin-top:10px;border:1px solid #167a63;border-radius:9px;background:#e8fff7;color:#075e48;padding:9px 12px;font-size:12px;font-weight:800;cursor:pointer}
.ayudante-bodega-share-btn:hover,.ayudante-bodega-share-btn:focus-visible{background:#d4f8ec;outline:2px solid rgba(22,122,99,.2)}
.ayudante-bodega-geo-status{max-width:820px;margin:12px auto 0;padding:11px 13px;border:1px solid #a7f3d0;border-radius:11px;background:#ecfdf5;color:#065f46;font-size:13px;font-weight:750;line-height:1.4}
.ayudante-bodega-geo-status.warning{border-color:#fcd34d;background:#fffbeb;color:#92400e}
.ayudante-bodega-access-block{max-width:540px;margin:20px auto;padding:24px;border:1px solid #dbeafe;border-radius:16px;background:var(--bg-card,#fff);box-shadow:0 8px 26px rgba(15,23,42,.08);text-align:center}
.ayudante-bodega-access-block h2{margin:5px 0;color:var(--txt,#253746)}
.ayudante-bodega-access-block p{color:#64748b;line-height:1.5}
.ayudante-access-modal{position:fixed;inset:0;z-index:10060;background:rgba(15,23,42,.72);display:flex;align-items:center;justify-content:center;padding:12px;box-sizing:border-box}
.ayudante-access-card{width:min(96vw,640px);max-height:94vh;overflow:auto;background:var(--bg-card,#fff);color:var(--txt,#253746);border-radius:18px;padding:18px;box-sizing:border-box;box-shadow:0 24px 80px rgba(15,23,42,.42)}
.ayudante-access-head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;margin-bottom:8px}
.ayudante-access-head h2{margin:3px 0 0;font-size:20px}
.ayudante-access-head>button{border:0;background:transparent;color:#64748b;font-size:23px;cursor:pointer}
.ayudante-access-intro{font-size:13px;line-height:1.5;color:#475569;margin:8px 0 14px}
.ayudante-access-field{display:flex;flex-direction:column;gap:5px;margin:10px 0;font-size:12px;font-weight:800;color:#475569}
.ayudante-access-field select,.ayudante-access-field input{box-sizing:border-box;width:100%;min-height:42px;padding:9px 10px;border:1px solid #cbd5e1;border-radius:9px;background:var(--bg-input,#fff);color:var(--txt,#253746);font:inherit;font-size:14px}
.ayudante-access-field select:focus,.ayudante-access-field input:focus{outline:2px solid rgba(13,148,136,.25);border-color:#0f766e}
.ayudante-access-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.ayudante-access-note{padding:10px 12px;border-radius:10px;background:#eff6ff;border:1px solid #bfdbfe;color:#1e3a8a;font-size:12px;line-height:1.45;margin:11px 0}
.ayudante-access-note.warning{background:#fff7ed;border-color:#fed7aa;color:#9a3412}
.ayudante-access-primary{width:100%;border:0;border-radius:11px;background:#0f766e;color:#fff;padding:12px;font-weight:850;cursor:pointer}
.ayudante-access-primary:hover{background:#115e59}
.ayudante-access-primary:disabled{opacity:.5;cursor:not-allowed}
.ayudante-access-result{margin:12px 0;padding:13px;border:1px solid #86efac;border-radius:12px;background:#f0fdf4;color:#166534}
.ayudante-access-result>b{display:block;margin-bottom:8px}
.ayudante-access-result input{width:100%;box-sizing:border-box;padding:9px;border:1px solid #bbf7d0;border-radius:8px;background:#fff;color:#334155;font-size:12px}
.ayudante-access-result small{display:block;margin-top:8px;color:#166534;line-height:1.4}
.ayudante-access-result-actions{display:flex;gap:8px;margin-top:8px}
.ayudante-access-result-actions button,.ayudante-access-item button{border:1px solid #0f766e;border-radius:8px;background:#0f766e;color:#fff;padding:8px 10px;font-weight:800;font-size:12px;cursor:pointer}
.ayudante-access-result-actions button.whatsapp{background:#128c7e;border-color:#128c7e}
.ayudante-access-heading{font-size:15px;margin:18px 0 8px}
.ayudante-access-item{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px 0;border-top:1px solid #e2e8f0}
.ayudante-access-item>div{min-width:0;display:flex;flex-direction:column;gap:3px}
.ayudante-access-item b{font-size:13px;overflow-wrap:anywhere}
.ayudante-access-item small{font-size:11px;color:#64748b;line-height:1.35}
.ayudante-access-item button{flex:0 0 auto;background:#b91c1c;border-color:#b91c1c}
.ayudante-access-item button.secondary{background:#fff;border-color:#94a3b8;color:#334155}
.ayudante-access-status{display:inline-block;width:max-content;padding:3px 7px;border-radius:20px;background:#dcfce7;color:#166534;font-size:10px;font-weight:850}
.ayudante-access-status.inactive{background:#fee2e2;color:#991b1b}
.ayudante-access-status.pending{background:#fef3c7;color:#92400e}
.ayudante-access-empty{padding:12px;border:1px dashed #cbd5e1;border-radius:10px;color:#64748b;font-size:12px;text-align:center;line-height:1.4}
.ayudante-access-empty.error{color:#9f1239;background:#fff1f2;border-color:#fda4af}
.ayudante-access-restrictions{margin-top:14px;padding-top:8px;border-top:2px solid #cbd5e1}
.ayudante-access-foot{margin:12px 0 0;color:#64748b;font-size:11px;line-height:1.45}
body.dark .ayudante-bodega-share-btn{background:#12372e;border-color:#2f947a;color:#b6f2de}
body.dark .ayudante-bodega-geo-status{background:#12372e;border-color:#2f947a;color:#b6f2de}
body.dark .ayudante-bodega-geo-status.warning{background:#3a2b12;border-color:#9a6b1e;color:#f4d58a}
body.dark .ayudante-bodega-access-block,body.dark .ayudante-access-card{background:#20262f;color:#e2e8f0}
body.dark .ayudante-bodega-access-block h2,body.dark .ayudante-access-head h2{color:#f1f5f9}
body.dark .ayudante-access-intro,body.dark .ayudante-access-field,body.dark .ayudante-access-item small,body.dark .ayudante-access-foot{color:#cbd5e1}
body.dark .ayudante-access-field select,body.dark .ayudante-access-field input,body.dark .ayudante-access-result input{background:#151b23;color:#e2e8f0;border-color:#475569}
body.dark .ayudante-access-item{border-color:#475569}
body.dark .ayudante-access-note{background:#172b42;border-color:#315b83;color:#bfdbfe}
body.dark .ayudante-access-note.warning{background:#3a2b12;border-color:#9a6b1e;color:#f4d58a}
body.dark .ayudante-access-item button.secondary{background:#20262f;color:#e2e8f0;border-color:#64748b}
@media(max-width:540px){
  .ayudante-access-modal{padding:6px;align-items:flex-end}
  .ayudante-access-card{width:100%;max-height:96vh;border-radius:16px 16px 0 0;padding:15px}
  .ayudante-access-grid{gap:7px}
  .ayudante-access-result-actions{flex-direction:column}
  .ayudante-access-item{align-items:flex-start;flex-wrap:wrap}
  .ayudante-access-item button{margin-left:auto}
}
