
:root{--bg:#0f172a;--panel:#111827;--muted:#64748b;--line:#e5e7eb;--white:#fff;--accent:#2563eb;--accent2:#ef4444;--ok:#16a34a;--soft:#f8fafc;--shadow:0 10px 30px rgba(15,23,42,.08)}
*{box-sizing:border-box}body{margin:0;font-family:Inter,Arial,sans-serif;background:#f1f5f9;color:#111827}img{max-width:100%}
a{text-decoration:none;color:inherit}.container{width:min(1220px,92%);margin:auto}.block{display:block}.page{min-height:80vh}
.site-header{position:sticky;top:0;z-index:40;background:rgba(255,255,255,.96);backdrop-filter:blur(10px);border-bottom:1px solid #e2e8f0}
.topbar{display:grid;grid-template-columns:240px 1fr auto;gap:18px;align-items:center;padding:14px 0}.logo{font-size:1.35rem;font-weight:900;color:#0f172a}
.search-wrap{position:relative}.searchbar{display:flex;gap:10px}.searchbar input{flex:1;padding:13px 16px;border:1px solid #cbd5e1;border-radius:999px;background:#fff}.searchbar button,.btn{border:0;border-radius:14px;padding:11px 16px;cursor:pointer;font-weight:700}
.nav-actions{display:flex;gap:14px;align-items:center}.nav-actions a{padding:9px 12px;border-radius:12px}.nav-actions a:hover{background:#eef2ff}.pill{background:#111827;color:#fff;border-radius:999px;padding:2px 8px;font-size:.82rem}
.search-suggest{position:absolute;left:0;right:0;top:calc(100% + 8px);background:#fff;border:1px solid #e5e7eb;border-radius:18px;box-shadow:var(--shadow);display:none;overflow:hidden}.search-suggest.open{display:block}.suggest-item{display:grid;grid-template-columns:56px 1fr;gap:12px;padding:10px 12px;align-items:center}.suggest-item:hover{background:#f8fafc}.suggest-item img{width:56px;height:56px;border-radius:12px;object-fit:cover;border:1px solid #e5e7eb}.suggest-empty{padding:14px;color:#64748b}
.grid{display:grid;gap:20px}.grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}.grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.card,.panel{background:#fff;border:1px solid #e5e7eb;border-radius:22px;padding:18px;box-shadow:var(--shadow)}
.hero{padding:26px 0}.hero-mini{display:grid;grid-template-columns:1.4fr .6fr;gap:20px}.slider{position:relative;border-radius:26px;overflow:hidden;min-height:360px;background:#0f172a}.slide{position:absolute;inset:0;opacity:0;transition:opacity .45s}.slide.active{opacity:1}.slide img{width:100%;height:360px;object-fit:cover}.slide-caption{position:absolute;left:28px;bottom:28px;background:rgba(15,23,42,.66);color:#fff;padding:18px 22px;border-radius:18px;max-width:520px}.stat-mini{display:grid;gap:12px}.kpi{background:#fff;padding:18px;border-radius:20px;border:1px solid #e2e8f0;box-shadow:var(--shadow)}.kpi-value{font-size:1.7rem;font-weight:800}
.section-head{display:flex;justify-content:space-between;align-items:center;margin:26px 0 14px;gap:16px}.section-head h1,.section-head h2,.section-head h3{margin:0}
.categories-grid .category-card{text-align:center;display:grid;gap:10px;align-content:start;min-height:170px}.category-icon{font-size:2.2rem;width:70px;height:70px;margin:auto;border-radius:20px;display:grid;place-items:center;background:#eef2ff}
.product-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.product-card{background:#fff;border:1px solid #e5e7eb;border-radius:24px;overflow:hidden;display:flex;flex-direction:column;min-width:0}.product-image-wrap{position:relative;background:linear-gradient(180deg,#fff,#f8fafc)}.product-image{width:100%;height:230px;object-fit:contain;display:block;padding:14px}.zoom-chip{position:absolute;right:10px;top:10px;border:0;background:rgba(255,255,255,.95);border-radius:999px;padding:8px 10px;box-shadow:var(--shadow);cursor:pointer}
.badge{position:absolute;left:10px;top:10px;background:#111827;color:#fff;padding:6px 10px;border-radius:999px;font-size:.75rem;font-weight:700}.badge.offer{background:#dc2626}.badge.carted{top:auto;bottom:10px;background:#16a34a}
.product-meta{padding:15px;display:grid;gap:8px;flex:1}.product-brand{font-size:.8rem;color:#2563eb;font-weight:700;text-transform:uppercase}.product-title{font-weight:800;line-height:1.25;min-height:44px}.product-usage{font-size:.9rem;color:#64748b;min-height:40px}.clamp-2{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.price-block{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.price-old{text-decoration:line-through;color:#94a3b8}.price{font-size:1.12rem;font-weight:800}.qty-row{display:grid;grid-template-columns:44px 1fr 44px;gap:8px}.qty-row.compact{grid-template-columns:38px 1fr 38px}.qty-btn,.qty-input{height:40px;border:1px solid #cbd5e1;border-radius:10px;background:#fff;text-align:center}.qty-input{padding:0 8px}.btn.primary,.searchbar button{background:#2563eb;color:#fff}.btn.secondary{background:#fff;border:1px solid #cbd5e1}.btn.full{width:100%}.btn.danger{background:#ef4444;color:#fff}
.filters{display:grid;grid-template-columns:2fr 1fr 1fr auto;gap:12px;margin:20px 0}.filters input,.filters select,.form-control{width:100%;padding:11px 12px;border:1px solid #cbd5e1;border-radius:12px;background:#fff}
.shop-layout{display:grid;grid-template-columns:280px 1fr;gap:22px}.sidebar-box{position:sticky;top:94px}
.alert{padding:14px 16px;border-radius:14px;margin:16px 0}.success{background:#dcfce7;color:#166534}.error{background:#fee2e2;color:#991b1b}
.site-footer{background:#0f172a;color:#fff;padding:38px 0;margin-top:40px}.footer-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}.footer-grid a{display:block;color:#cbd5e1;margin:6px 0}
.product-page{display:grid;grid-template-columns:1.1fr .9fr;gap:26px}.gallery-main{background:#fff;border:1px solid #e5e7eb;border-radius:24px;padding:16px}.gallery-main img{width:100%;height:480px;object-fit:contain}.thumbs{display:flex;gap:10px;flex-wrap:wrap;margin-top:10px}.thumbs img{width:76px;height:76px;border-radius:14px;border:1px solid #e5e7eb;object-fit:cover;cursor:pointer}.two-col{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.table{width:100%;border-collapse:collapse}.table th,.table td{padding:12px;border-bottom:1px solid #e5e7eb;text-align:left;vertical-align:top}.table tr:hover td{background:#fafafa}.status{display:inline-block;padding:6px 10px;border-radius:999px;font-size:.8rem;font-weight:700;background:#e2e8f0}.status.pending{background:#fde68a}.status.processing{background:#bfdbfe}.status.shipped{background:#c7d2fe}.status.delivered{background:#bbf7d0}.status.cancelled{background:#fecaca}
.auth-wrap{max-width:560px;margin:34px auto}.form-grid{display:grid;gap:14px}.form-grid.cols-2{grid-template-columns:1fr 1fr}.hint,.small{color:#64748b;font-size:.9rem}.label{display:block;font-weight:700;margin-bottom:6px}.stack{display:grid;gap:12px}
.modal{position:fixed;inset:0;background:rgba(15,23,42,.82);display:none;align-items:center;justify-content:center;padding:30px;z-index:80}.modal.open{display:flex}.modal img{max-width:95vw;max-height:90vh;border-radius:20px;background:#fff}
.admin-body{background:#e2e8f0}.admin-shell{display:grid;grid-template-columns:260px 1fr;min-height:100vh}.admin-sidebar{background:linear-gradient(180deg,#0f172a,#16233f);color:#fff;padding:22px;display:grid;gap:8px;align-content:start}.admin-sidebar a{padding:11px 12px;border-radius:12px;color:#e2e8f0}.admin-sidebar a:hover{background:rgba(255,255,255,.08)}.sidebar-label{margin-top:10px;font-size:.75rem;letter-spacing:.08em;text-transform:uppercase;color:#93c5fd}
.admin-main{padding:24px}.admin-topbar{background:#fff;border:1px solid #e5e7eb;border-radius:18px;padding:14px 18px;display:flex;justify-content:space-between;align-items:center;margin-bottom:18px;box-shadow:var(--shadow)}
.toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:12px 0}.toolbar form{display:flex;gap:10px;flex-wrap:wrap}
.calendar-board{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.calendar-col{background:#f8fafc;border:1px dashed #cbd5e1;border-radius:18px;padding:14px;min-height:220px}.agenda-item{background:#fff;border:1px solid #e5e7eb;border-radius:16px;padding:12px;margin:10px 0;cursor:grab;box-shadow:var(--shadow)}.agenda-item.dragging{opacity:.55}.log-payload{max-width:380px;white-space:pre-wrap;word-break:break-word}
hr{border:none;border-top:1px solid #e5e7eb;margin:16px 0}
@media (max-width:1100px){.product-grid,.grid-4{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:980px){.topbar,.hero-mini,.shop-layout,.product-page,.grid-4,.grid-3,.grid-2,.footer-grid,.product-grid,.two-col,.form-grid.cols-2,.admin-shell,.calendar-board{grid-template-columns:1fr}.nav-actions{flex-wrap:wrap}.slider,.slide img{min-height:240px;height:240px}.gallery-main img{height:320px}.sidebar-box{position:static}.topbar{grid-template-columns:1fr}}

.clean-list{margin:0;padding-left:18px}.clean-list li{margin:6px 0}
.month-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:10px}.month-head{font-weight:800;color:#334155;padding:8px 10px}.month-day{background:#fff;border:1px solid #e5e7eb;border-radius:18px;min-height:120px;padding:10px;box-shadow:var(--shadow)}.month-day.muted-day{opacity:.55}.month-date{font-weight:800;margin-bottom:10px}.month-event{font-size:.82rem;padding:6px 8px;border-radius:10px;background:#eef2ff;margin:6px 0}.hero-note{display:grid;gap:8px}


.thumb-xs{width:56px;height:56px;object-fit:cover;border-radius:12px;border:1px solid #dbe1ea;background:#fff}.mono{font-family:ui-monospace,SFMono-Regular,Menlo,monospace}.actions-inline{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:12px}.tabs{display:flex;gap:10px;margin-bottom:14px}.tab{padding:10px 14px;border-radius:999px;background:#eef2ff;color:#223;text-decoration:none}.tab.active{background:#1f4db8;color:#fff}.table-compact td,.table-compact th{padding:10px}.panel-soft{border:1px dashed #c9d4ea;padding:12px;border-radius:16px;background:#fbfdff}.totals-line{display:flex;justify-content:space-between;margin-bottom:8px}.totals-line.grand{font-size:1.15rem;border-top:1px solid #d9e2f0;padding-top:10px}.selected-card{padding:12px;border:1px solid #d8e1ef;border-radius:16px;background:#f8fbff}.modal{position:fixed;inset:0;background:rgba(15,23,42,.55);display:flex;align-items:center;justify-content:center;padding:20px;z-index:99}.modal.hidden{display:none}.modal-card{width:min(840px,100%);max-height:85vh;overflow:auto;background:#fff;border-radius:22px;padding:18px;box-shadow:0 20px 60px rgba(0,0,0,.25)}.modal-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.modal-list{display:grid;gap:8px;margin-top:12px}.modal-item{text-align:left;padding:12px;border:1px solid #d9e2f0;background:#fff;border-radius:14px;cursor:pointer}.modal-item:hover{background:#f2f6ff}.customer-picker{display:flex;gap:8px}.mt-6{margin-top:6px}.mt-12{margin-top:12px}.link-panel{text-decoration:none;color:inherit;display:block}.link-panel:hover{transform:translateY(-2px)}.pos-grid{grid-template-columns:1.5fr .8fr}.pos-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:12px;max-height:540px;overflow:auto}.pos-card{display:grid;grid-template-columns:64px 1fr;gap:10px;padding:10px;border:1px solid #d7dfef;border-radius:18px;background:#fff;text-align:left;cursor:pointer}.pos-card img{width:64px;height:64px;object-fit:cover;border-radius:14px}.preview-img{width:100%;max-width:220px;max-height:220px;object-fit:cover;border-radius:16px;display:block;margin-bottom:10px}.pos-cart-side{height:max-content}@media (max-width: 980px){.pos-grid{grid-template-columns:1fr}.customer-picker{flex-direction:column}}
.announcement-bar{display:flex;justify-content:space-between;gap:12px;padding:10px 0;color:#fff;font-size:.92rem}
.site-header{background:linear-gradient(180deg,rgba(15,23,42,.98),rgba(15,23,42,.92));color:#fff}
.topbar{padding:16px 0}
.logo{display:flex;gap:12px;align-items:center;color:#fff}
.logo strong{display:block;font-size:1.15rem}
.logo small{display:block;color:#bfdbfe}
.logo-mark{width:42px;height:42px;display:grid;place-items:center;border-radius:14px;background:linear-gradient(135deg,#38bdf8,#2563eb);color:#fff;font-weight:900}
.nav-actions a{color:#fff}
.nav-actions a:hover{background:rgba(255,255,255,.08)}
.searchbar input{background:#fff}
.hero{padding:34px 0 10px;background:
 radial-gradient(circle at top left, rgba(56,189,248,.15), transparent 30%),
 radial-gradient(circle at top right, rgba(37,99,235,.18), transparent 30%),
 linear-gradient(180deg,#eff6ff 0%, #f8fafc 50%, #f1f5f9 100%)}
.slider::after{content:'';position:absolute;inset:0;background:linear-gradient(180deg,rgba(15,23,42,.05),rgba(15,23,42,.45))}
.slide-caption{backdrop-filter:blur(10px)}
.hero-mini{align-items:stretch}
.hero-note{padding:18px;border-radius:20px;background:linear-gradient(135deg,#fff,#eff6ff);border:1px solid #dbeafe;box-shadow:var(--shadow)}
.hero-actions{display:flex;gap:12px;flex-wrap:wrap}
.section-head a{font-weight:700;color:#1d4ed8}
.product-card{transition:transform .2s ease, box-shadow .2s ease}
.product-card:hover{transform:translateY(-3px);box-shadow:0 18px 34px rgba(15,23,42,.12)}
.product-meta .btn{border-radius:12px}
.product-title{font-size:1rem}
.product-grid.product-grid-5{grid-template-columns:repeat(5,minmax(0,1fr))}
.home-panels{display:grid;grid-template-columns:1.2fr .8fr;gap:20px}
.visual-list{display:grid;gap:10px}
.visual-item{display:flex;justify-content:space-between;gap:10px;padding:10px 12px;border-radius:14px;background:#f8fafc;border:1px solid #e2e8f0}
.kpi-card{position:relative;overflow:hidden}
.kpi-card::before{content:'';position:absolute;right:-30px;top:-30px;width:120px;height:120px;background:radial-gradient(circle,rgba(37,99,235,.16),transparent 70%)}
.chart-bars{display:grid;gap:12px}
.chart-row{display:grid;grid-template-columns:160px 1fr 90px;gap:10px;align-items:center}
.chart-row .bar{height:14px;background:#e2e8f0;border-radius:999px;overflow:hidden}
.chart-row .bar>span{display:block;height:100%;background:linear-gradient(90deg,#2563eb,#38bdf8);border-radius:999px}
.admin-body{background:linear-gradient(180deg,#e2e8f0,#f8fafc)}
.admin-sidebar{position:sticky;top:0;height:100vh;overflow:auto}
.admin-topbar{background:linear-gradient(135deg,#fff,#f8fbff)}
.dashboard-grid{display:grid;grid-template-columns:2fr 1fr;gap:20px}
.dashboard-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.kpi-modern{padding:18px;border-radius:22px;background:linear-gradient(135deg,#fff,#f8fbff);border:1px solid #dbeafe;box-shadow:var(--shadow)}
.kpi-modern .kpi-value{font-size:1.6rem}
.status-board{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.status-box{padding:14px;border-radius:18px;background:#fff;border:1px solid #e5e7eb}
.timeline-list{display:grid;gap:12px}
.timeline-item{display:grid;grid-template-columns:16px 1fr;gap:12px}
.timeline-dot{width:14px;height:14px;border-radius:999px;background:#2563eb;margin-top:6px}
.notification-list{display:grid;gap:12px}
.notification-item{background:#fff;border:1px solid #e5e7eb;border-radius:18px;padding:14px}
.notification-item.unread{border-color:#93c5fd;box-shadow:0 0 0 3px rgba(59,130,246,.08)}
.whatsapp-float{position:fixed;right:18px;bottom:18px;width:58px;height:58px;display:grid;place-items:center;border-radius:999px;background:#25D366;color:#fff;font-size:1.7rem;box-shadow:0 16px 30px rgba(37,211,102,.35);z-index:90}
.metric-inline{display:flex;justify-content:space-between;gap:8px;padding:10px 12px;border-bottom:1px solid #eef2f7}
.metric-inline:last-child{border-bottom:0}
.stat-chip{display:inline-flex;padding:6px 10px;border-radius:999px;background:#eff6ff;color:#1d4ed8;font-weight:700;font-size:.82rem}
.updater-drop{padding:20px;border:2px dashed #93c5fd;border-radius:18px;background:#f8fbff}
.pos-summary{display:grid;gap:10px}
.card-actions{display:flex;gap:8px;flex-wrap:wrap}
.stacked-cards{display:grid;gap:14px}
.input-group{display:flex;gap:8px}
.muted{color:#64748b}
@media (max-width:1100px){.dashboard-grid,.home-panels{grid-template-columns:1fr}.dashboard-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.status-board{grid-template-columns:repeat(2,minmax(0,1fr))}.product-grid.product-grid-5{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:980px){.announcement-bar{display:none}.chart-row{grid-template-columns:1fr}.dashboard-stats,.status-board{grid-template-columns:1fr}.product-grid.product-grid-5{grid-template-columns:1fr}}

/* Phase 4.9 POS / search improvements */
.modal.hidden{display:none!important}
.product-image-wrap [data-zoom], .gallery-main [data-zoom]{cursor:zoom-in}
.table-search-layout{display:grid;grid-template-columns:1.1fr .9fr;gap:18px}
.quick-search-panel{display:grid;gap:12px;height:max-content}
.search-result-list{display:grid;gap:10px;max-height:520px;overflow:auto}
.search-result-item{display:grid;grid-template-columns:56px 1fr auto;gap:12px;align-items:center;padding:10px 12px;border:1px solid #d7dfef;border-radius:16px;background:#fff}
.search-result-item img{width:56px;height:56px;object-fit:cover;border-radius:12px;background:#fff;border:1px solid #e5e7eb}
.search-result-item .btn{padding:9px 12px;border-radius:12px}
.document-lines .thumb-xs{width:44px;height:44px}
.document-lines .line-name{display:flex;align-items:center;gap:10px;min-width:260px}
.document-lines .line-actions{display:flex;gap:8px;align-items:center}
.document-lines .line-total{font-weight:800;white-space:nowrap}
.document-lines .form-control{min-width:90px}
.document-empty{padding:18px;border:1px dashed #cbd5e1;border-radius:18px;background:#f8fbff;color:#64748b;text-align:center}
.pos-shell{display:grid;grid-template-columns:1.1fr .9fr;gap:20px}
.pos-catalog-head{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:center;margin-bottom:12px}
.pos-search-input{padding:14px 16px;border:1px solid #cbd5e1;border-radius:16px;background:#fff}
.pos-product-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:12px;max-height:620px;overflow:auto}
.pos-product-card{display:grid;grid-template-columns:72px 1fr;gap:12px;padding:12px;border-radius:18px;border:1px solid #dbe1ea;background:#fff;cursor:pointer;text-align:left}
.pos-product-card img{width:72px;height:72px;object-fit:cover;border-radius:16px;background:#fff;border:1px solid #e5e7eb}
.pos-order-panel{display:grid;gap:14px}
.pos-order-list{display:grid;gap:10px;max-height:420px;overflow:auto}
.pos-order-item{display:grid;grid-template-columns:54px 1fr auto;gap:10px;align-items:center;padding:10px;border:1px solid #dbe1ea;border-radius:16px;background:#fff}
.pos-order-item img{width:54px;height:54px;object-fit:cover;border-radius:12px;background:#fff;border:1px solid #e5e7eb}
.pos-order-item .qty-inline{display:flex;align-items:center;gap:6px}
.pos-order-item .qty-inline button{border:0;background:#eff6ff;border-radius:10px;padding:6px 10px;cursor:pointer;font-weight:700}
.pos-order-item .qty-inline input{width:64px;text-align:center}
.pos-order-item .remove-line{border:0;background:#fee2e2;color:#b91c1c;border-radius:10px;padding:8px 10px;cursor:pointer}
.pos-totals-card{padding:16px;border-radius:18px;border:1px solid #dbeafe;background:linear-gradient(135deg,#fff,#f8fbff)}
.pos-payment-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.receipt-preview{padding:14px;border:1px dashed #cbd5e1;border-radius:16px;background:#f8fbff}
.metric-card{padding:16px;border-radius:18px;border:1px solid #dbeafe;background:#fff}
.card-search-list{display:grid;gap:8px;max-height:280px;overflow:auto}
.search-chip{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border-radius:999px;background:#eef2ff;color:#1d4ed8;font-weight:700;font-size:.8rem}
.responsive-scroll{overflow:auto}
@media (max-width:1100px){.table-search-layout,.pos-shell{grid-template-columns:1fr}}


/* Fase 4.9.2 */
.benefit-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:16px;margin:18px 0 24px}
.benefit-card{background:#fff;border:1px solid #e5e7eb;border-radius:18px;padding:18px;box-shadow:0 10px 25px rgba(15,23,42,.05)}
.benefit-icon{font-size:28px;margin-bottom:8px}
.quick-actions-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:14px}
.quick-action-card{display:flex;flex-direction:column;gap:6px;background:linear-gradient(180deg,#fff,#f8fafc);border:1px solid #dbe4ef;border-radius:18px;padding:16px;text-decoration:none;color:#0f172a;box-shadow:0 10px 24px rgba(15,23,42,.06)}
.quick-action-card span{font-size:26px}
.quick-action-card strong{font-size:15px}
.quick-action-card small{color:#64748b}
.mini-bars{display:grid;grid-template-columns:repeat(7,1fr);gap:12px;align-items:end;min-height:240px}
.mini-bar-col{display:flex;flex-direction:column;gap:8px;align-items:center;text-align:center}
.mini-bar-track{height:150px;width:100%;max-width:44px;border-radius:14px;background:#eef2f7;display:flex;align-items:flex-end;justify-content:center;overflow:hidden}
.mini-bar-track span{display:block;width:100%;background:linear-gradient(180deg,#2563eb,#1d4ed8);border-radius:14px 14px 0 0}
.kpi-stack{display:grid;gap:10px}
.kpi-inline{display:flex;justify-content:space-between;align-items:center;padding:10px 12px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px}
.pos-toolbar{display:flex;gap:8px;flex-wrap:wrap}
.pos-order-item img{cursor:zoom-in}
@media (max-width: 768px){.mini-bars{grid-template-columns:repeat(2,1fr)}.quick-actions-grid{grid-template-columns:repeat(2,1fr)}}

/* Phase 5.1 DGII / fiscal centralization */
.status-pill{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border-radius:999px;font-size:.82rem;font-weight:800;text-transform:capitalize;background:#e2e8f0;color:#0f172a}
.status-pill.queued,.status-pill.draft{background:#dbeafe;color:#1d4ed8}
.status-pill.accepted{background:#dcfce7;color:#166534}
.status-pill.accepted_conditional{background:#fef9c3;color:#854d0e}
.status-pill.rejected,.status-pill.error{background:#fee2e2;color:#b91c1c}
.status-pill.config_pending{background:#f1f5f9;color:#475569}
.mono{font-family:ui-monospace,SFMono-Regular,Menlo,monospace}
.panel-soft{background:#f8fbff;border:1px solid #dbeafe;border-radius:18px;padding:16px}
.sidebar-collapsed .admin-sidebar{width:88px;overflow:hidden}
.sidebar-collapsed .admin-sidebar a,.sidebar-collapsed .admin-sidebar .sidebar-label{white-space:nowrap}
.sidebar-collapsed .admin-main{padding-left:0}
textarea.form-control{min-height:120px}

.user-chip{display:flex;align-items:center;gap:10px;padding:8px 12px;border-radius:14px;background:#f8fafc;border:1px solid #e2e8f0}
.user-chip.compact{padding:6px 10px}
.user-chip-dot{width:10px;height:10px;border-radius:999px;background:#22c55e;box-shadow:0 0 0 4px rgba(34,197,94,.15)}
.sidebar-group{margin:8px 10px;border:1px solid #dbe4ef;border-radius:14px;background:rgba(255,255,255,.8);overflow:hidden}
.sidebar-group summary{cursor:pointer;list-style:none;padding:12px 14px;font-weight:800;color:#0f172a;background:#f8fbff}
.sidebar-group summary::-webkit-details-marker{display:none}
.sidebar-group a{display:block;padding:10px 14px}
.sidebar-logout{display:block;margin:14px 10px;padding:12px 14px;border-radius:14px;background:#fee2e2;color:#991b1b;font-weight:800}
.sidebar-collapsed .sidebar-group a,.sidebar-collapsed .sidebar-group summary,.sidebar-collapsed .sidebar-text,.sidebar-collapsed .sidebar-logout{font-size:0;line-height:0}
.sidebar-collapsed .sidebar-group summary{padding:16px}
.sidebar-collapsed .sidebar-group summary::after{content:'•';font-size:18px;line-height:1;color:#2563eb}
.sidebar-collapsed .admin-sidebar{width:92px}
.tabs{display:grid;gap:12px}.tab-nav{display:flex;gap:8px;flex-wrap:wrap}.tab-btn{border:1px solid #cbd5e1;background:#fff;border-radius:12px;padding:10px 14px;font-weight:700;cursor:pointer}.tab-btn.active{background:#2563eb;color:#fff;border-color:#2563eb}.tab-panel{display:none;padding:14px;border:1px solid #dbeafe;border-radius:16px;background:#f8fbff}.tab-panel.active{display:block}
.modal-card-lg{max-width:860px;width:min(860px,96vw)}
.mt-12{margin-top:12px}
@media (max-width:980px){.topbar{grid-template-columns:1fr;}.nav-actions{flex-wrap:wrap}.user-chip{width:100%}.searchbar{flex-direction:column}.slider,.slide img{min-height:420px;height:420px}.slide-caption{max-width:min(90%,580px)}}


/* Fase 5.3.1 sidebar/menu hotfix */
.pro-sidebar{padding:18px 14px;gap:14px}
.sidebar-brand{display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:18px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.08)}
.sidebar-brand-text{display:grid;line-height:1.05}.sidebar-brand-text strong{font-size:1.4rem;color:#fff}.sidebar-brand-text small{color:#93c5fd}
.sidebar-user-card{display:grid;gap:10px;padding:12px;border-radius:18px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.08)}
.sidebar-user-actions{display:flex;gap:8px;flex-wrap:wrap}.sidebar-user-actions a{flex:1 1 0;text-align:center;background:rgba(255,255,255,.08);padding:8px 10px;border-radius:12px;font-size:.9rem}
.sidebar-nav-pro{display:grid;gap:12px;align-content:start}
.sidebar-section{border:1px solid rgba(148,163,184,.22);border-radius:18px;background:rgba(255,255,255,.06);overflow:hidden}
.sidebar-section-toggle{width:100%;display:flex;justify-content:space-between;align-items:center;border:0;background:rgba(255,255,255,.12);color:#fff;padding:14px 16px;font-size:1.02rem;font-weight:800;cursor:pointer}
.sidebar-section-toggle span{transition:transform .2s ease}
.sidebar-section.is-open .sidebar-section-toggle span{transform:rotate(0deg)}
.sidebar-section:not(.is-open) .sidebar-section-toggle span{transform:rotate(-90deg)}
.sidebar-section-menu{display:grid;gap:2px;padding:8px}.sidebar-section:not(.is-open) .sidebar-section-menu{display:none}
.sidebar-section-menu a{display:flex;align-items:center;justify-content:space-between;padding:10px 12px;border-radius:12px;color:#e2e8f0;font-size:.95rem;background:transparent}
.sidebar-section-menu a:hover{background:rgba(255,255,255,.10)}
.sidebar-logout{display:block;margin-top:4px;text-align:center}
.admin-sidebar .pill{background:#2563eb}
.sidebar-collapsed .sidebar-user-card,.sidebar-collapsed .sidebar-section-menu,.sidebar-collapsed .sidebar-brand-text,.sidebar-collapsed .sidebar-user-actions,.sidebar-collapsed .sidebar-logout{display:none}
.sidebar-collapsed .sidebar-section-toggle{justify-content:center;padding:14px 8px;font-size:0}.sidebar-collapsed .sidebar-section-toggle span{font-size:18px;transform:none!important}
.sidebar-collapsed .sidebar-section{overflow:visible}
.sidebar-collapsed .sidebar-brand{justify-content:center;padding:10px}
.sidebar-collapsed .admin-sidebar{width:92px}
@media (max-width:980px){.pro-sidebar{position:static;height:auto}.sidebar-brand-text strong{font-size:1.2rem}.sidebar-section-toggle{font-size:.98rem}}


/* Fase 5.4 consolidation */
.admin-shell{grid-template-columns:320px 1fr}
.admin-sidebar{overflow-y:auto;overflow-x:hidden}
.sidebar-nav-pro{display:flex;flex-direction:column;gap:12px;padding-bottom:14px}
.sidebar-block{border:1px solid rgba(148,163,184,.22);border-radius:18px;background:rgba(255,255,255,.06);overflow:hidden}
.sidebar-block summary{list-style:none;cursor:pointer;padding:14px 16px;font-weight:800;background:rgba(255,255,255,.12);color:#fff}
.sidebar-block summary::-webkit-details-marker{display:none}
.sidebar-links{display:grid;gap:2px;padding:8px}
.sidebar-links a{display:block;padding:10px 12px;border-radius:12px;color:#e2e8f0;text-decoration:none}
.sidebar-links a:hover{background:rgba(255,255,255,.12)}
.sidebar-collapsed .admin-sidebar{width:92px}.sidebar-collapsed .sidebar-brand-text,.sidebar-collapsed .sidebar-user-card,.sidebar-collapsed .sidebar-links,.sidebar-collapsed .sidebar-logout{display:none}.sidebar-collapsed .sidebar-block summary{font-size:0;text-align:center}.sidebar-collapsed .sidebar-block summary::after{content:'▸';font-size:18px}
.thumb-sm{width:56px;height:56px;border-radius:10px;object-fit:cover;background:#e2e8f0}.thumb-xs{width:42px;height:42px;border-radius:8px;object-fit:cover;background:#e2e8f0}.zoom-btn{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:999px;background:#0f172a;color:#fff;text-decoration:none}
.filters-bar{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:10px;margin-bottom:12px}.filters-bar .form-control{margin:0}
.table-wrap{overflow:auto}
.panel-grid-compact{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px}
.home-hero-modern{min-height:520px;border-radius:28px;overflow:hidden;position:relative;background:linear-gradient(135deg,#0f172a,#2563eb);color:#fff;padding:34px}
.home-hero-modern .hero-copy{position:relative;z-index:2;max-width:620px}.home-hero-modern h1{font-size:clamp(2.3rem,5vw,4.2rem);line-height:1.02;margin-bottom:14px}.home-hero-modern p{font-size:1.08rem;color:#dbeafe;max-width:560px}.home-hero-modern .hero-badges{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}.hero-badge{padding:8px 12px;border-radius:999px;background:rgba(255,255,255,.16)}
.account-hero{display:grid;grid-template-columns:1.2fr .8fr;gap:18px}.account-menu{display:grid;gap:10px}.account-menu a{display:block;padding:14px 16px;border-radius:14px;background:#fff;border:1px solid #e2e8f0;color:#0f172a;text-decoration:none}.account-menu a:hover{border-color:#3b82f6;box-shadow:0 8px 30px rgba(15,23,42,.08)}
@media (max-width:1100px){.admin-shell{grid-template-columns:1fr}.admin-sidebar{position:static;height:auto}.filters-bar{grid-template-columns:1fr 1fr}.account-hero{grid-template-columns:1fr}}
@media (max-width:760px){.filters-bar{grid-template-columns:1fr}.home-hero-modern{min-height:420px;padding:22px}}

/* ==============================
   Fase 10 - Storefront moderno
   Integra diseño tipo Nova Store sin afectar ERP/admin.
   ============================== */
:root{--store-primary:#4f22e8;--store-primary-2:#6d4cff;--store-soft:#f7f5ff;--store-ink:#111827;--store-muted:#667085;--store-line:#e8eaf1;--store-bg:#fbfcff;--store-shadow:0 16px 45px rgba(17,24,39,.08)}
.storefront-modern{background:var(--store-bg);color:var(--store-ink)}
.store-page{padding-top:0}.store-header{position:sticky;top:0;z-index:70;background:rgba(255,255,255,.96);backdrop-filter:blur(16px);border-bottom:1px solid var(--store-line);box-shadow:0 8px 24px rgba(17,24,39,.035)}
.store-topbar{display:grid;grid-template-columns:230px minmax(260px,1fr) auto;gap:26px;align-items:center;padding:14px 0}.store-logo{display:flex;align-items:center;gap:13px}.store-logo-icon{width:44px;height:44px;border:4px solid var(--store-primary);border-radius:13px;display:grid;place-items:center;color:transparent;position:relative}.store-logo-icon:before{content:'';position:absolute;width:16px;height:12px;border:3px solid var(--store-primary);border-bottom:0;border-radius:10px 10px 0 0;top:-12px;left:10px;background:white}.store-logo-text strong{display:block;font-size:1.65rem;letter-spacing:.18em;line-height:1;font-weight:900}.store-logo-text small{display:block;font-size:.63rem;letter-spacing:.55em;color:#7b8190;font-weight:800;margin-left:4px;margin-top:4px}.store-search-wrap{position:relative}.store-search{display:grid;grid-template-columns:1fr 52px;border:1px solid var(--store-line);background:#fff;border-radius:12px;overflow:hidden;box-shadow:0 8px 20px rgba(17,24,39,.04)}.store-search input{border:0;padding:15px 18px;font-weight:600;color:#475467;outline:none}.store-search button{border:0;background:linear-gradient(135deg,var(--store-primary),var(--store-primary-2));color:white;font-size:1.35rem;cursor:pointer}.store-actions{display:flex;align-items:center;gap:18px}.store-action{display:flex;align-items:center;gap:7px;position:relative;color:#344054;font-weight:800;font-size:.95rem}.store-action-ico{font-size:1.5rem;color:#2d3748}.action-badge{position:absolute;right:-10px;top:-12px;background:var(--store-primary);color:#fff;border-radius:999px;font-size:.72rem;padding:2px 6px;min-width:18px;text-align:center}.store-navline{border-top:1px solid #f0f1f5}.store-navinner{display:flex;align-items:center;gap:26px;padding:10px 0}.category-toggle{background:linear-gradient(135deg,var(--store-primary),var(--store-primary-2));color:#fff;border-radius:10px;padding:12px 26px;font-weight:900;box-shadow:0 10px 24px rgba(79,34,232,.18)}.category-menu{display:flex;align-items:center;gap:31px;font-weight:800;color:#344054}.category-menu a{white-space:nowrap}.category-menu a:hover,.text-offer{color:#ef4056}.search-suggest{z-index:120}.home-modern{display:grid;grid-template-columns:260px 1fr;gap:30px;padding:26px 0}.home-filter-card,.filter-card{background:#fff;border:1px solid var(--store-line);border-radius:18px;box-shadow:var(--store-shadow);padding:18px}.home-filter-card h3,.filter-card h3{margin:0 0 18px;font-size:1.05rem}.filter-stack{display:grid;gap:11px}.filter-stack label{font-weight:800;color:#4b5565;font-size:.9rem}.check-row{display:flex!important;align-items:center;gap:9px;font-weight:700!important;color:#667085!important}.check-row input{width:18px;height:18px;accent-color:var(--store-primary)}.form-control{border:1px solid var(--store-line)!important;border-radius:12px!important;padding:12px 13px!important;background:#fff!important}.home-content-modern{min-width:0}.hero-banner-modern,.shop-hero-banner{position:relative;overflow:hidden;background:linear-gradient(110deg,#f3e8ff 0%,#f9f5ff 45%,#e9ddff 100%);border-radius:20px;min-height:280px;padding:42px 56px;display:flex;justify-content:space-between;align-items:center;box-shadow:var(--store-shadow);border:1px solid #eadfff}.hero-copy-modern{max-width:520px;position:relative;z-index:2}.eyebrow{text-transform:uppercase;letter-spacing:.08em;font-size:.78rem;font-weight:900;color:#5b2cff;background:#eee8ff;padding:6px 10px;border-radius:8px;display:inline-flex;align-items:center;width:max-content}.hero-banner-modern h1,.shop-hero-banner h1{font-size:clamp(2.1rem,4vw,3.5rem);line-height:1.05;margin:16px 0 10px}.hero-banner-modern h1 span{color:var(--store-primary)}.hero-banner-modern p,.shop-hero-banner p{font-size:1.08rem;color:#4b5565;max-width:470px}.hero-art-modern{position:relative;width:430px;height:250px}.discount-burst{position:absolute;right:16px;top:8px;width:112px;height:112px;border-radius:999px;background:#7c4dff;color:#fff;display:grid;place-items:center;text-align:center;font-weight:900;line-height:1.05;box-shadow:0 14px 35px rgba(79,34,232,.25);z-index:3}.discount-burst strong{font-size:2.2rem}.hero-product-orb{position:absolute;right:120px;top:38px;font-size:7rem;filter:drop-shadow(0 20px 28px rgba(17,24,39,.16));transform:rotate(-6deg)}.hero-product-orb.small{right:250px;top:52px;font-size:6rem}.hero-product-orb.phone{right:18px;top:86px;font-size:6.5rem}.hero-dots{display:flex;gap:8px;margin-top:28px}.hero-dots i{display:block;width:26px;height:7px;border-radius:999px;background:var(--store-primary);opacity:.35}.hero-dots i:first-child{opacity:1;width:44px}.category-strip{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:16px;margin:20px 0}.category-tile{background:#fff;border:1px solid var(--store-line);border-radius:16px;min-height:88px;display:grid;place-items:center;gap:6px;padding:14px;text-align:center;box-shadow:0 10px 25px rgba(17,24,39,.04);transition:.18s}.category-tile:hover{transform:translateY(-3px);box-shadow:var(--store-shadow);border-color:#d9d4ff}.category-tile span{font-size:2rem}.category-tile strong{font-size:.9rem}.category-tile.highlight span{background:#ffe8ef;border-radius:999px;padding:4px}.store-section{margin-top:28px}.compact-section{margin-top:8px}.modern-head{margin:20px 0 14px}.modern-head h1,.modern-head h2{margin:0}.modern-products{grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:20px}.modern-card{border-radius:18px;border:1px solid var(--store-line);background:#fff;box-shadow:0 12px 32px rgba(17,24,39,.06);overflow:hidden;padding:0;transition:.2s}.modern-card:hover{transform:translateY(-4px);box-shadow:0 22px 55px rgba(17,24,39,.10)}.modern-image-wrap{position:relative;background:#fff;min-height:190px;display:grid;place-items:center;padding:18px}.modern-image-wrap .product-image{height:155px;width:100%;object-fit:contain;transition:.25s}.modern-card:hover .product-image{transform:scale(1.04)}.product-floating-actions{position:absolute;right:12px;top:12px;display:grid;gap:9px}.round-action{width:34px;height:34px;border:1px solid var(--store-line);background:#fff;border-radius:999px;display:grid;place-items:center;cursor:pointer;color:#7b8190;font-weight:900;box-shadow:0 8px 20px rgba(17,24,39,.08)}.round-action:hover,.round-action.active{color:var(--store-primary);border-color:#d8d0ff;background:#fbfaff}.percent-badge{background:#fff0f3!important;color:#ef4056!important;border-radius:7px!important;right:auto!important;left:12px!important;top:12px!important}.modern-meta{padding:0 16px 16px}.product-brand{font-size:.78rem;color:#667085;font-weight:800}.modern-meta .product-title{font-size:.96rem;font-weight:900;margin:7px 0 5px;color:#1d2939;min-height:42px}.rating-line{display:flex;align-items:center;gap:7px;color:#f59e0b;font-weight:900}.rating-line small{color:#7b8190;font-weight:700}.stock-line{font-weight:800;font-size:.84rem;margin-top:6px}.stock-line.ok{color:#12a150}.stock-line.warn{color:#d97706}.stock-line.bad{color:#dc2626}.modern-price{display:flex;align-items:center;gap:9px;margin:10px 0}.modern-price .price{font-size:1.12rem;font-weight:900;color:#111827}.price-old{text-decoration:line-through;color:#9aa3b2;font-size:.88rem}.card-cart-form{display:grid;grid-template-columns:76px 1fr;gap:8px;align-items:center}.qty-row{display:flex;align-items:center;border:1px solid var(--store-line);border-radius:10px;overflow:hidden;background:#fff}.qty-row.compact{height:38px}.qty-btn{border:0;background:#fff;min-width:30px;height:100%;font-weight:900;cursor:pointer;color:#344054}.qty-input{border:0!important;width:42px;text-align:center;font-weight:900;outline:none;background:#fff!important}.add-cart-btn{border-radius:10px!important;padding:10px 10px!important;font-size:.82rem!important}.btn.primary{background:linear-gradient(135deg,var(--store-primary),#4614e8)!important;color:white!important;border:0!important}.btn.secondary{background:#fff!important;color:var(--store-primary)!important;border:1px solid #d9d4ff!important}.btn.ghost{background:#fff!important;border:1px solid var(--store-line)!important;color:#475467!important}.full{width:100%;justify-content:center;text-align:center}.deal-band{margin-top:28px;background:#fff7e8;border:1px solid #ffe3b3;border-radius:18px;padding:18px 26px;display:grid;grid-template-columns:auto auto 1fr auto;gap:22px;align-items:center}.deal-icon{font-size:3rem}.deal-timer span{display:inline-grid;place-items:center;background:#fff;border:1px solid #ffe0ac;border-radius:8px;min-width:36px;height:32px;font-weight:900;margin:0 4px}.deal-items{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.deal-mini{display:grid;grid-template-columns:62px 1fr auto;gap:12px;align-items:center;background:#fff;border:1px solid #ffe4b8;border-radius:12px;padding:9px}.deal-mini img{width:62px;height:52px;object-fit:contain}.deal-mini span{font-weight:800;font-size:.86rem}.deal-mini b{color:#ef4056}.store-footer{margin-top:50px;background:#fff;border-top:1px solid var(--store-line);padding:34px 0 18px}.store-footer-grid{display:grid;grid-template-columns:1.35fr .7fr .7fr 1.2fr;gap:40px}.store-footer a{display:block;margin:9px 0;color:#667085;font-weight:700}.store-footer p{color:#667085}.social-row,.payment-row{display:flex;gap:9px;flex-wrap:wrap;margin-top:14px}.social-row span,.payment-row span{background:#f2f4f7;border:1px solid #e4e7ec;border-radius:8px;padding:6px 9px;font-size:.78rem;font-weight:900}.newsletter-form{display:grid;grid-template-columns:1fr 48px;border:1px solid var(--store-line);border-radius:10px;overflow:hidden}.newsletter-form input{border:0;padding:13px}.newsletter-form button{border:0;background:var(--store-primary);color:#fff}.footer-bottom{margin-top:22px;color:#98a2b3;font-size:.86rem}.shop-modern-page{display:grid;grid-template-columns:260px 1fr;gap:28px;padding-top:26px}.sticky-filter{position:sticky;top:145px}.filter-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.filter-title h3{margin:0}.filter-title a{color:var(--store-primary);font-weight:900;font-size:.86rem}.price-filter-row{display:grid;grid-template-columns:1fr 1fr;gap:8px}.shop-hero-banner{min-height:168px;padding:28px 36px}.shop-strip{margin-top:16px}.modern-toolbar{margin-top:18px}.empty-state{background:#fff;border:1px solid var(--store-line);border-radius:20px;padding:46px;text-align:center;box-shadow:var(--store-shadow)}.empty-icon{font-size:3rem;color:var(--store-primary)}.breadcrumbs{display:flex;gap:10px;align-items:center;color:#667085;font-weight:700;font-size:.88rem;padding:22px 0}.breadcrumbs b{color:#111827}.product-detail-grid{display:grid;grid-template-columns:minmax(320px,1.05fr) minmax(340px,.95fr) 300px;gap:28px;align-items:start}.product-gallery-card,.product-info-card,.purchase-assurance,.product-tabs{background:#fff;border:1px solid var(--store-line);border-radius:18px;box-shadow:var(--store-shadow);padding:18px}.main-image-shell{height:390px;display:grid;place-items:center;position:relative;background:#fff;border:1px solid #eef0f5;border-radius:16px}.main-image-shell img{max-height:330px;object-fit:contain}.gallery-zoom{position:absolute;right:16px;bottom:16px;width:44px;height:44px;border-radius:999px;border:1px solid var(--store-line);background:#fff;box-shadow:0 10px 24px rgba(17,24,39,.12);cursor:pointer}.modern-thumbs{display:flex;gap:12px;margin-top:14px;overflow:auto}.thumb-btn{width:74px;height:70px;border:1px solid var(--store-line);background:#fff;border-radius:12px;padding:6px;cursor:pointer}.thumb-btn.active,.thumb-btn:hover{border-color:var(--store-primary);box-shadow:0 0 0 3px #eee8ff}.thumb-btn img{width:100%;height:100%;object-fit:contain}.product-info-card h1{font-size:2rem;margin:12px 0}.product-price-line{display:flex;align-items:center;gap:13px;margin:16px 0}.product-price-line strong{font-size:1.75rem}.product-price-line span{text-decoration:line-through;color:#98a2b3;font-weight:700}.product-price-line em{font-style:normal;background:#fff0f3;color:#ef4056;padding:6px 10px;border-radius:8px;font-weight:900}.product-summary{color:#475467;line-height:1.6}.product-meta-inline{display:flex;gap:22px;align-items:center;margin:14px 0}.color-dots{display:flex;gap:13px;margin:18px 0}.color-dots span{width:30px;height:30px;border-radius:999px;background:#c9b79f;border:3px solid #fff;box-shadow:0 0 0 1px #e5e7eb}.color-dots span:nth-child(2){background:#20242d}.color-dots span:nth-child(3){background:#efc0bf}.color-dots span:nth-child(4){background:#d9d9d9}.color-dots .active{box-shadow:0 0 0 3px var(--store-primary)}.product-main-cart{display:grid;grid-template-columns:120px 1fr;gap:14px;margin-top:16px}.buy-now{display:block;margin-top:10px}.product-action-row{display:grid;grid-template-columns:1fr 1fr 1fr;gap:10px;margin-top:12px}.product-action-row .btn{font-size:.85rem;padding:10px!important;width:100%}.purchase-price{display:flex;gap:12px;align-items:baseline;margin-bottom:16px}.purchase-price strong{font-size:1.5rem}.purchase-price span{text-decoration:line-through;color:#98a2b3}.assurance-item{display:grid;grid-template-columns:34px 1fr;gap:12px;border-top:1px solid var(--store-line);padding:15px 0}.assurance-item:first-of-type{border-top:0}.assurance-item span{font-size:1.55rem}.assurance-item b{display:block}.assurance-item small,.assurance-item a{display:block;color:#667085;margin-top:4px;font-size:.84rem}.assurance-item em{display:inline-block;background:#e8f8ee;color:#15803d;font-style:normal;padding:4px 8px;border-radius:6px;margin-top:8px;font-weight:900;font-size:.78rem}.feature-list,.recent-list{border-top:1px solid var(--store-line);padding-top:16px;margin-top:8px}.feature-list h4,.recent-list h4{margin:0 0 10px}.feature-list p{display:flex;justify-content:space-between;border-bottom:1px solid #f1f3f7;padding:8px 0;margin:0;color:#667085}.recent-list a{display:grid;grid-template-columns:54px 1fr auto;gap:10px;align-items:center;margin:10px 0}.recent-list img{width:54px;height:48px;object-fit:contain;border:1px solid var(--store-line);border-radius:10px}.recent-list span{font-size:.82rem;font-weight:800}.benefit-strip{display:grid;grid-template-columns:repeat(4,1fr);gap:0;background:#fff;border:1px solid var(--store-line);border-radius:16px;box-shadow:var(--store-shadow);margin:26px 0;padding:14px}.benefit-strip div{display:grid;grid-template-columns:42px 1fr;gap:10px;align-items:center;padding:8px 20px;border-right:1px solid var(--store-line)}.benefit-strip div:last-child{border-right:0}.benefit-strip span{font-size:2rem;color:var(--store-primary)}.benefit-strip b,.benefit-strip small{display:block}.benefit-strip small{color:#667085}.product-tabs{margin-bottom:26px}.tab-buttons{display:flex;gap:8px;border-bottom:1px solid var(--store-line);padding-bottom:10px;overflow:auto}.tab-btn{border:0;background:#fff;color:#667085;font-weight:900;padding:10px 12px;border-radius:10px;cursor:pointer}.tab-btn.active{background:#f1edff;color:var(--store-primary)}.tab-panel{display:none;padding:16px 4px;color:#475467;line-height:1.65}.tab-panel.active{display:block}.spec-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.spec-grid p{display:flex;justify-content:space-between;background:#f8fafc;border-radius:12px;padding:12px;margin:0}.review-summary strong{font-size:3rem;color:#111827}.split-products{display:grid;grid-template-columns:1fr 1fr;gap:28px}.compact-grid{grid-template-columns:repeat(auto-fit,minmax(175px,1fr))}.quick-view-card{display:grid;grid-template-columns:330px 1fr;gap:22px;background:#fff;border-radius:20px;max-width:840px;padding:18px}.quick-view-image{background:#f8fafc;border-radius:16px;display:grid;place-items:center}.quick-view-image img{max-height:300px;object-fit:contain}.quick-view-body h2{margin:10px 0}.price-row{display:flex;gap:12px;align-items:baseline;margin:12px 0}.price-row strong{font-size:1.6rem}.price-row span{text-decoration:line-through;color:#98a2b3}.quick-cart{display:grid;grid-template-columns:110px 1fr;gap:10px}.modal.open{display:flex!important;position:fixed;inset:0;background:rgba(15,23,42,.72);z-index:200;align-items:center;justify-content:center;padding:24px}.modal.hidden{display:none!important}.modal img{max-width:min(980px,92vw);max-height:86vh;background:#fff;border-radius:18px;padding:12px}.modal-close{position:absolute;top:22px;right:26px;width:42px;height:42px;border-radius:999px;border:0;background:#fff;font-size:1.6rem;cursor:pointer}.whatsapp-float{z-index:160}
@media (max-width:1180px){.store-topbar{grid-template-columns:190px 1fr}.store-actions{grid-column:1/-1;justify-content:flex-end}.home-modern,.shop-modern-page{grid-template-columns:1fr}.home-filter-card,.store-filter-sidebar{display:none}.product-detail-grid{grid-template-columns:1fr 1fr}.purchase-assurance{grid-column:1/-1}.deal-band{grid-template-columns:1fr}.deal-items{grid-template-columns:1fr 1fr 1fr}.store-footer-grid{grid-template-columns:1fr 1fr}}
@media (max-width:820px){.store-topbar{grid-template-columns:1fr}.store-actions{justify-content:space-between;gap:10px}.store-action span:last-child{display:none}.store-navinner{align-items:flex-start;flex-direction:column;gap:10px}.category-menu{gap:14px;overflow:auto;width:100%;padding-bottom:4px}.hero-banner-modern{padding:28px;min-height:auto}.hero-art-modern{display:none}.modern-products{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.card-cart-form{grid-template-columns:1fr}.deal-items{grid-template-columns:1fr}.product-detail-grid,.split-products,.quick-view-card{grid-template-columns:1fr}.main-image-shell{height:300px}.benefit-strip{grid-template-columns:1fr}.benefit-strip div{border-right:0;border-bottom:1px solid var(--store-line)}.product-action-row{grid-template-columns:1fr}.product-main-cart{grid-template-columns:1fr}.store-footer-grid{grid-template-columns:1fr}.spec-grid{grid-template-columns:1fr}}


/* Fase 11 - Maestros y UX operativa */
.profile-photo-lg{width:120px;height:120px;border-radius:18px;object-fit:cover;border:1px solid rgba(15,23,42,.12);box-shadow:0 10px 22px rgba(15,23,42,.10)}
.thumb-xs{width:46px;height:46px;border-radius:12px;object-fit:cover;border:1px solid rgba(15,23,42,.10);cursor:zoom-in}
.product-modal-img{width:100%;max-height:360px;object-fit:contain;border-radius:18px;background:#f8fafc;border:1px solid rgba(15,23,42,.08)}
.grid-5{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}
.mb-12{margin-bottom:12px}
.mt-12{margin-top:12px}
.table-wrap{overflow:auto}
.status.failed{background:#fee2e2;color:#991b1b}
.status.passed{background:#dcfce7;color:#166534}
@media(max-width:1000px){.grid-5{grid-template-columns:1fr 1fr}.profile-photo-lg{width:96px;height:96px}}

.mini-input{max-width:82px}.document-origin-badge{display:inline-block;padding:4px 8px;border-radius:999px;background:#e0f2fe;color:#075985;font-size:12px;font-weight:700}


/* Fase 13 - POS moderno */
.pos-lock-banner{border-left:5px solid #ef4444;background:#fff7ed}
.pos-product-card{transition:.15s transform,.15s box-shadow}
.pos-product-card:hover{transform:translateY(-2px);box-shadow:0 14px 26px rgba(37,99,235,.14)}
.pos-order-panel{position:sticky;top:12px;align-self:start}
.pos-totals-card{background:linear-gradient(180deg,#f8fbff,#eef5ff);border:1px solid rgba(37,99,235,.12);border-radius:18px;padding:16px}
.pos-payment-grid .form-control{min-height:44px}


/* Fase 14 - POS estilo moderno y arqueo */
.pos-modern-shell{background:#f7f9ff;border-radius:26px;padding:16px;box-shadow:inset 0 0 0 1px rgba(37,99,235,.06)}
.pos-topbar{display:grid;grid-template-columns:210px minmax(280px,1fr) 340px 180px;gap:14px;align-items:center;margin-bottom:14px}
.pos-brand,.pos-client-box,.pos-cash-status{background:#fff;border:1px solid rgba(15,23,42,.08);border-radius:18px;padding:12px 14px;box-shadow:0 10px 24px rgba(15,23,42,.06)}
.pos-brand{display:flex;gap:12px;align-items:center}.pos-brand strong{display:block;font-size:20px}.pos-brand span,.pos-client-box span,.pos-cash-status small{display:block;color:#64748b;font-size:12px}
.pos-logo-icon{font-size:30px;color:#2563eb}.pos-search-wrap{display:flex;align-items:center;gap:8px;background:#fff;border:1px solid rgba(15,23,42,.08);border-radius:18px;padding:8px 12px;box-shadow:0 10px 24px rgba(15,23,42,.06)}
.pos-search-wrap .pos-search-input{border:0;box-shadow:none;background:transparent}
.pos-client-box{display:flex;gap:12px;align-items:center;cursor:pointer}.avatar-dot{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:#e8f0ff}
.pos-cash-status{display:flex;gap:10px;align-items:center}.pos-cash-status .dot{width:10px;height:10px;border-radius:50%;background:#ef4444}.pos-cash-status.open .dot{background:#22c55e}
.pos-quick-actions{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:14px}.pos-quick-actions .btn{background:#fff}
.pos-shell-enhanced{display:grid;grid-template-columns:230px minmax(500px,1fr) 520px;gap:16px}
.pos-category-panel{background:#fff;border:1px solid rgba(15,23,42,.08);border-radius:20px;padding:14px;box-shadow:0 12px 26px rgba(15,23,42,.06);height:max-content}
.pos-cat{width:100%;border:0;background:transparent;text-align:left;padding:12px 14px;border-radius:12px;font-weight:700;color:#334155;cursor:pointer}
.pos-cat.active,.pos-cat:hover{background:#2563eb;color:#fff}
.pos-side-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:16px}.pos-side-actions button{border:1px solid rgba(15,23,42,.08);border-radius:12px;background:#f8fafc;padding:10px;font-weight:700;cursor:pointer}
.pos-catalog-panel{min-height:680px}.pos-tab{border:0;background:#f1f5f9;border-radius:10px;padding:9px 16px;font-weight:700;cursor:pointer}.pos-tab.active{background:#e8f0ff;color:#2563eb}
.pos-product-grid{grid-template-columns:repeat(auto-fill,minmax(158px,1fr))}
.pos-product-card{position:relative;min-height:210px;border-radius:18px;background:#fff}
.pos-product-card img{height:96px;object-fit:contain}.pos-card-badge{position:absolute;top:10px;left:10px;background:#eef2ff;color:#2563eb;font-size:11px;font-weight:800;padding:4px 8px;border-radius:999px}
.pos-order-panel{border-radius:20px}.pos-order-item{border-radius:16px}.pos-order-item img{width:56px;height:56px;object-fit:contain;background:#f8fafc}
.pos-close-modal{max-width:980px}.cash-count-card{background:#fff;border:1px solid rgba(15,23,42,.08);border-radius:16px;padding:14px}.cash-count-card span{display:block;color:#64748b;font-size:12px}.cash-count-card strong{font-size:18px;display:block;margin:4px 0 10px}
.warning-soft{background:#fff7ed;border-color:#fed7aa}
@media(max-width:1300px){.pos-topbar{grid-template-columns:1fr}.pos-shell-enhanced{grid-template-columns:1fr}.pos-category-panel{display:block}.pos-order-panel{position:relative}}

/* Enterprise polish 2026 */
:root{--primary:#2563eb;--surface:#ffffff;--soft:#f8fafc;--line:#dbe4ef;--text:#0f172a}
.glass-panel{background:linear-gradient(180deg,rgba(255,255,255,.96),rgba(248,251,255,.94));box-shadow:0 18px 45px rgba(15,23,42,.08);border:1px solid rgba(148,163,184,.25)}
.company-logo-preview{max-width:180px;max-height:90px;object-fit:contain;border:1px solid var(--line);border-radius:16px;background:#fff;padding:10px}
.sidebar-logo-img{width:46px;height:46px;object-fit:contain;border-radius:14px;background:#fff;padding:5px}
.product-preview-img{width:140px;height:120px;object-fit:cover;border-radius:18px;border:1px solid var(--line);background:#fff;box-shadow:0 10px 24px rgba(15,23,42,.08)}
.product-view-img{width:100%;max-height:320px;object-fit:contain;border-radius:22px;border:1px solid var(--line);background:#fff;padding:12px}
.permission-matrix th,.permission-matrix td{text-align:center;vertical-align:middle}.permission-matrix td:first-child,.permission-matrix th:first-child{text-align:left;min-width:220px}
.text-warning{color:#b45309}.text-danger{color:#b91c1c}.mt-12{margin-top:12px}.stack{display:grid;gap:12px}
.sidebar-section summary{list-style:none}.sidebar-section summary::-webkit-details-marker{display:none}.sidebar-section[open] .sidebar-section-toggle span{transform:rotate(180deg)}
.status-pill.success{background:#dcfce7;color:#166534}.status-pill.error{background:#fee2e2;color:#991b1b}.status-pill.warning{background:#fef9c3;color:#854d0e}.status-pill.in_progress{background:#dbeafe;color:#1d4ed8}.status-pill.done{background:#dcfce7;color:#166534}.status-pill.blocked{background:#fee2e2;color:#991b1b}.status-pill.pending{background:#f1f5f9;color:#475569}


/* Fase 76 - Pro UX, responsive enterprise y autoayuda */
.pro-hero{display:flex;align-items:center;justify-content:space-between;gap:22px;background:linear-gradient(135deg,#ffffff,#eef2ff)}
.pro-hero h1{margin:.35rem 0;font-size:clamp(1.7rem,3vw,2.6rem)}
.pro-hero p{max-width:760px;color:#475569;line-height:1.55}
.health-ring{width:142px;height:142px;border-radius:999px;display:grid;place-items:center;text-align:center;background:conic-gradient(var(--primary,#2563eb) calc(var(--score)*1%), #e5e7eb 0);position:relative;flex:0 0 auto}
.health-ring:before{content:'';position:absolute;inset:12px;background:#fff;border-radius:999px;box-shadow:inset 0 0 0 1px #e5e7eb}.health-ring strong,.health-ring span{position:relative;z-index:1}.health-ring strong{font-size:1.8rem}.health-ring span{display:block;color:#64748b;font-size:.85rem;font-weight:800;text-transform:uppercase}
.rec-card{border:1px solid #e5e7eb;border-radius:18px;padding:14px;display:grid;grid-template-columns:1fr auto;gap:16px;align-items:start;background:#fff}.rec-card p{margin:.45rem 0 0;color:#475569}.priority-alta{border-left:5px solid #dc2626}.priority-media{border-left:5px solid #f59e0b}.priority-baja{border-left:5px solid #16a34a}.help-list{display:grid;gap:10px}.help-item{border:1px solid #e5e7eb;border-radius:14px;padding:12px;background:#fff}.help-item summary{cursor:pointer;font-weight:800;display:flex;justify-content:space-between;gap:10px}.help-item summary span{font-size:.78rem;background:#eef2ff;color:#3730a3;border-radius:999px;padding:4px 8px}.help-item p{color:#475569;line-height:1.5}.table-compact th,.table-compact td{padding:9px 10px}.search-chip{display:inline-flex;align-items:center;border-radius:999px;background:#eef2ff;color:#3730a3;padding:6px 10px;font-size:.78rem;font-weight:900}.mt-12{margin-top:12px}.card-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.pro-help-fab{position:fixed;right:22px;bottom:22px;z-index:240;width:54px;height:54px;border-radius:999px;border:0;background:var(--primary,#2563eb);color:#fff;font-size:1.4rem;font-weight:900;box-shadow:0 18px 40px rgba(37,99,235,.32);cursor:pointer}.pro-help-drawer{position:fixed;right:20px;bottom:88px;width:min(390px,calc(100vw - 34px));max-height:70vh;overflow:auto;background:#fff;border:1px solid #e5e7eb;border-radius:22px;box-shadow:0 24px 70px rgba(15,23,42,.22);z-index:241;padding:16px}.pro-help-drawer.hidden{display:none}.pro-help-head{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #e5e7eb;padding-bottom:10px;margin-bottom:10px}.modal-close-inline{border:0;background:#f1f5f9;border-radius:10px;width:34px;height:34px;font-size:1.25rem;cursor:pointer}.pro-help-body{display:grid;gap:10px;margin-bottom:12px}.pro-help-mini{border:1px solid #e5e7eb;border-radius:14px;padding:10px;background:#f8fafc}.pro-help-mini strong{display:block}.pro-help-mini p{margin:.35rem 0 0;color:#475569;font-size:.9rem;line-height:1.45}
.ajax-loading{opacity:.65;pointer-events:none}.top-progress{position:fixed;left:0;top:0;height:3px;width:0;background:var(--primary,#2563eb);z-index:9999;transition:width .25s ease}.filterable-table-search{max-width:360px;margin-bottom:10px}.admin-main{min-width:0}.panel{min-width:0}.responsive-table{overflow:auto;width:100%}
@media(max-width:1050px){.admin-shell{grid-template-columns:1fr}.admin-sidebar{position:fixed;inset:0 auto 0 0;width:290px;transform:translateX(-104%);transition:.25s;z-index:260}.admin-shell:not(.sidebar-collapsed) .admin-sidebar{transform:translateX(0)}.admin-main{padding-left:0}.admin-topbar{position:sticky;top:0;z-index:230}.grid-4,.grid-3,.grid-2,.dashboard-grid{grid-template-columns:1fr!important}.pro-hero{align-items:flex-start;flex-direction:column}.health-ring{width:118px;height:118px}.table{min-width:720px}.panel:has(.table){overflow:auto}}
@media(max-width:620px){.admin-topbar{display:grid;gap:10px}.kpi-value{font-size:1.35rem}.pro-help-fab{right:14px;bottom:14px}.pro-help-drawer{right:10px;bottom:76px}.rec-card{grid-template-columns:1fr}.card-actions .form-control{width:100%}.btn{width:auto;min-height:42px}.section-head{align-items:flex-start;flex-direction:column}}
