:root{--nav:#08172c;--blue:#183b8f;--yellow:#ffc400;--text:#16213a;--muted:#6b7690;--line:#e1e6ef;--bg:#f6f8fc;--green:#13a05a}*{box-sizing:border-box}body{margin:0;font-family:Inter,Segoe UI,Arial,sans-serif;color:var(--text);background:var(--bg)}a{text-decoration:none;color:inherit}.store-header{background:linear-gradient(90deg,#07111f,#13253d);color:#fff;position:sticky;top:0;z-index:50}.head-main{height:86px;display:flex;align-items:center;gap:28px;padding:0 32px}.store-logo{font-weight:900;font-size:24px;white-space:nowrap}.store-logo b{display:inline-grid;place-items:center;width:44px;height:44px;border-radius:10px;background:#2457d6;margin-right:10px}.search-wrap{flex:1;max-width:650px;display:flex;background:#fff;border-radius:12px;overflow:hidden}.search-wrap input{flex:1;border:0;padding:16px;font-size:16px;outline:0}.search-wrap button{border:0;background:#fff;padding:0 18px;font-size:20px}.header-actions{display:flex;align-items:center;gap:14px}.cart-btn{background:var(--yellow);color:#151515;padding:14px 20px;border-radius:10px;font-weight:800}.head-nav{height:58px;display:flex;align-items:center;gap:28px;padding:0 32px;border-top:1px solid rgba(255,255,255,.08)}.products-trigger{background:transparent;color:#fff;border:0;font-size:16px;font-weight:800;cursor:pointer}.mega{display:none;position:fixed;inset:144px 0 auto 0;height:calc(100vh - 144px);background:#fff;color:var(--text);box-shadow:0 20px 50px #0004;z-index:70}.mega.open{display:grid;grid-template-columns:260px 310px 1fr}.mega-search{position:absolute;top:14px;left:20px;width:420px;height:44px;border:1px solid var(--line);border-radius:9px;padding:0 14px}.mega-col{padding:72px 18px 20px;border-right:1px solid var(--line);overflow:auto}.mega-item{display:flex;justify-content:space-between;padding:13px 14px;border-radius:8px;cursor:pointer;margin-bottom:3px}.mega-item:hover,.mega-item.active{background:#eaf0ff;color:var(--blue);font-weight:700}.mega-title{font-size:21px;font-weight:900;margin:0 0 14px}.mega-grid{display:grid;grid-template-columns:repeat(3,minmax(150px,1fr));gap:10px 28px}.mega-leaf{padding:9px 0;color:#42506b}.overlay{display:none;position:fixed;inset:144px 0 0;background:#0008;z-index:60}.overlay.open{display:block}.catalog-shell{display:grid;grid-template-columns:250px 1fr;gap:22px;max-width:1500px;margin:0 auto;padding:24px}.filters{background:#fff;border-right:1px solid var(--line);padding:18px;border-radius:14px;height:max-content;position:sticky;top:166px}.filter-block{padding:16px 0;border-bottom:1px solid var(--line)}.filter-block h4{margin:0 0 12px}.filter-block label{display:block;padding:7px 0;color:#48546b}.catalog-main{min-width:0}.breadcrumb{font-size:14px;color:#63708a;margin-bottom:18px}.catalog-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.catalog-top h1{margin:0;font-size:30px}.sort{padding:11px;border:1px solid var(--line);border-radius:9px;background:#fff}.product-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.product-card{background:#fff;border:1px solid var(--line);border-radius:14px;overflow:hidden;display:flex;flex-direction:column;min-height:510px;transition:.2s}.product-card:hover{box-shadow:0 10px 28px #22365a1c;transform:translateY(-2px)}.product-image{height:245px;background:#f2f5fa;display:flex;align-items:center;justify-content:center;padding:14px}.product-image img{width:100%;height:100%;object-fit:contain}.product-body{padding:14px;display:flex;flex-direction:column;flex:1}.brand{font-size:12px;color:var(--green);font-weight:900;text-transform:uppercase}.title{font-size:15px;line-height:1.3;color:#173d92;margin:9px 0;min-height:58px}.model{font-weight:800;font-size:14px}.price{font-size:25px;font-weight:900;margin-top:12px}.iva{font-size:12px;font-weight:700}.stock{font-size:13px;color:var(--green);margin:10px 0}.buy-row{display:grid;grid-template-columns:92px 1fr;gap:8px;margin-top:auto}.qty{display:flex;border:1px solid var(--line);border-radius:8px;overflow:hidden}.qty button,.qty input{border:0;background:#fff;width:30px;text-align:center}.add-btn{background:var(--yellow);border:0;border-radius:8px;font-weight:900;cursor:pointer}.empty,.loading{background:#fff;border:1px solid var(--line);padding:30px;border-radius:14px;text-align:center;grid-column:1/-1}.cart-drawer{position:fixed;right:-430px;top:0;width:410px;max-width:95vw;height:100vh;background:#fff;z-index:100;box-shadow:-10px 0 40px #0003;transition:.25s;display:flex;flex-direction:column}.cart-drawer.open{right:0}.cart-head{padding:20px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between}.cart-items{padding:16px;overflow:auto;flex:1}.cart-item{display:grid;grid-template-columns:55px 1fr auto;gap:10px;padding:12px 0;border-bottom:1px solid var(--line)}.cart-item img{width:55px;height:55px;object-fit:contain}.cart-foot{padding:18px;border-top:1px solid var(--line)}.checkout{display:block;background:var(--yellow);padding:14px;text-align:center;border-radius:9px;font-weight:900}.mobile-menu{display:none}@media(max-width:1150px){.product-grid{grid-template-columns:repeat(3,1fr)}}@media(max-width:850px){.head-main{padding:10px 14px;height:auto;flex-wrap:wrap}.search-wrap{order:3;flex-basis:100%;max-width:none}.head-nav{padding:0 14px}.catalog-shell{grid-template-columns:1fr;padding:14px}.filters{display:none}.product-grid{grid-template-columns:repeat(2,1fr)}.mega.open{grid-template-columns:1fr;inset:150px 0 0}.mega-col:nth-child(n+2){display:none}.header-actions .hide-mobile{display:none}}@media(max-width:520px){.product-grid{grid-template-columns:1fr}.product-card{min-height:470px}.store-logo{font-size:18px}.head-nav a{display:none}}
.account-bg{background:#f4f7fb}.account-wrap{min-height:75vh;display:grid;place-items:center;padding:40px 20px}.account-card{width:min(460px,100%);background:#fff;border:1px solid #dfe6ef;border-radius:18px;padding:26px;box-shadow:0 18px 55px rgba(10,31,68,.12)}.account-tabs{display:grid;grid-template-columns:1fr 1fr;margin-bottom:22px;border-bottom:1px solid #e5eaf1}.account-tabs a{text-align:center;padding:12px;font-weight:700}.account-tabs a.active{color:#1d4ed8;border-bottom:3px solid #1d4ed8}.account-form{display:grid;gap:16px}.account-form label{font-weight:700;display:grid;gap:7px}.account-form input{padding:13px;border:1px solid #cfd8e6;border-radius:10px;font-size:16px}.account-error{padding:12px;background:#fee2e2;color:#991b1b;border-radius:10px;margin-bottom:15px}.account-dashboard{max-width:1180px;margin:35px auto;padding:0 20px;display:grid;grid-template-columns:280px 1fr;gap:24px}.profile-card,.orders-card{background:#fff;border:1px solid #dfe6ef;border-radius:18px;padding:24px}.profile-card h2{margin-top:0}.order-row{display:grid;grid-template-columns:1fr 1fr auto;gap:20px;align-items:center;padding:18px 0;border-bottom:1px solid #e5eaf1}.order-row small{display:block;color:#64748b;margin-top:5px}.order-status{display:inline-block;background:#e0ecff;color:#1641a6;border-radius:999px;padding:5px 10px;font-weight:700;text-transform:capitalize}@media(max-width:760px){.account-dashboard{grid-template-columns:1fr}.order-row{grid-template-columns:1fr}}

.breadcrumb{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.breadcrumb a{color:#3659ad}.breadcrumb a:last-child{font-weight:700;color:#24314d}.syscom-banners{position:relative;width:100%;margin:0 0 22px;border-radius:16px;overflow:hidden;background:#e8edf5;min-height:190px;box-shadow:0 8px 25px rgba(23,42,79,.08)}.syscom-banner{display:none;width:100%;height:100%}.syscom-banner.active{display:block}.syscom-banner img{display:block;width:100%;height:auto;max-height:340px;object-fit:cover}.banner-dots{position:absolute;left:50%;bottom:12px;transform:translateX(-50%);display:flex;gap:7px;padding:6px 9px;border-radius:999px;background:rgba(7,17,31,.42)}.banner-dots button{width:9px;height:9px;padding:0;border:0;border-radius:50%;background:#fff8;cursor:pointer}.banner-dots button.active{background:#fff;transform:scale(1.2)}@media(max-width:700px){.syscom-banners{min-height:100px;border-radius:10px}.syscom-banner img{max-height:210px}}

/* V3.4.2: carrusel horizontal Syscom */
.syscom-banners{position:relative!important;width:100%!important;height:clamp(180px,22vw,330px)!important;min-height:0!important;margin:0 0 24px!important;border-radius:16px!important;overflow:hidden!important;background:#eef2f7!important}
.syscom-banners .syscom-banner{display:none!important;position:absolute!important;inset:0!important;width:100%!important;height:100%!important}
.syscom-banners .syscom-banner.active{display:block!important}
.syscom-banners .syscom-banner img{display:block!important;width:100%!important;height:100%!important;max-height:none!important;object-fit:cover!important;object-position:center!important}
.syscom-banners .banner-dots{z-index:2!important}
@media(max-width:700px){.syscom-banners{height:130px!important;border-radius:10px!important}}

/* V3.4.3: solamente banners panorámicos; evita deformación antes de validar */
.syscom-banners{height:clamp(170px,18vw,300px)!important;max-width:100%!important}
.syscom-banner[hidden]{display:none!important}
.syscom-banner:not(.active){display:none!important}
.syscom-banner.active{display:block!important}
.syscom-banner img{width:100%!important;height:100%!important;object-fit:cover!important;object-position:center!important}
@media(max-width:700px){.syscom-banners{height:120px!important}}
.store-logo img{height:44px;max-width:180px;object-fit:contain}.notice a{color:inherit;text-decoration:underline}

/* MS Solar: estados comerciales por sucursal */
.stock.local{color:#07883d;font-weight:800}.stock.on-order{color:#1f5aa6;font-weight:800}.stock.out{color:#b42318;font-weight:800}.stock-note{font-size:11px;line-height:1.35;color:#6b7690;margin:-5px 0 10px}.cart-availability{font-weight:800;color:#1f5aa6}
.availability-legend{display:flex;gap:14px;flex-wrap:wrap;margin-top:7px;font-size:12px;font-weight:800}.availability-legend .local{color:#07883d}.availability-legend .order{color:#1f5aa6}


/* ===== MS SOLAR V3 UI REFRESH ===== */
:root{
  --nav:#081b34;
  --nav-soft:#12365f;
  --blue:#1f5fae;
  --blue-dark:#163a74;
  --yellow:#f6be00;
  --yellow-soft:#ffe08a;
  --text:#17324d;
  --muted:#64748b;
  --line:#d9e4f0;
  --bg:#f3f7fb;
  --soft:#eef5ff;
  --green:#18864e;
  --shadow:0 18px 40px rgba(8, 27, 52, 0.10);
}
body{background:linear-gradient(180deg,#f7f9fc 0%,#eef3f9 100%);color:var(--text)}
.store-header{background:linear-gradient(90deg,var(--nav) 0%, #0f294d 45%, var(--nav-soft) 100%);box-shadow:0 18px 38px rgba(8,27,52,.18)}
.head-main{min-height:92px;padding:16px 26px;gap:20px;align-items:center}
.store-logo{display:flex;align-items:center;gap:14px;color:#fff;text-decoration:none;min-width:0}
.store-logo b,.store-logo .logo{display:inline-flex;align-items:center;justify-content:center;width:56px;height:56px;border-radius:18px;background:rgba(255,255,255,.12);font-size:24px;font-weight:900;box-shadow:inset 0 0 0 1px rgba(255,255,255,.14)}
.store-logo img.brand-mark{width:60px;height:60px;object-fit:contain;border-radius:18px;background:rgba(255,255,255,.08);padding:5px;box-shadow:inset 0 0 0 1px rgba(255,255,255,.14)}
.store-logo .brand-copy{display:flex;flex-direction:column;gap:3px;min-width:0}
.store-logo .brand-copy strong{font-size:30px;line-height:1;font-weight:900;letter-spacing:-.03em;color:#fff}
.store-logo .brand-copy small{font-size:11px;line-height:1.2;text-transform:uppercase;letter-spacing:.08em;color:rgba(255,255,255,.78);font-weight:800}
.search-wrap{display:flex;align-items:center;gap:8px;background:#fff;border:1px solid rgba(13,49,97,.08);border-radius:18px;padding:10px 12px;box-shadow:0 12px 30px rgba(9,30,66,.12)}
.search-wrap input{min-height:42px;padding:0 4px;font-size:16px;color:var(--text)}
.search-wrap button{width:42px;height:42px;border-radius:12px;background:linear-gradient(180deg,#ffd54a,#f6be00);color:#102447;font-weight:900;box-shadow:0 8px 18px rgba(246,190,0,.25)}
.header-actions a,.head-nav a,.head-nav button{transition:all .2s ease}
.header-actions a,.head-nav a{color:#fff;text-decoration:none}
.header-actions a:hover,.head-nav a:hover,.head-nav button:hover{color:#fff;opacity:.92;transform:translateY(-1px)}
.cart-btn,.checkout,.buy-row .add-btn,.btn-pay,.back-store,.payment-actions .primary{background:linear-gradient(180deg,#ffd54a,#f6be00)!important;color:#102447!important;border:0;box-shadow:0 12px 26px rgba(246,190,0,.26)}
.cart-btn:hover,.checkout:hover,.buy-row .add-btn:hover{filter:brightness(.98);transform:translateY(-1px)}
.head-nav{background:rgba(255,255,255,.02);border-top:1px solid rgba(255,255,255,.10)}
.products-trigger{background:transparent;color:#fff}
.overlay.open{backdrop-filter:blur(2px)}
.mega{top:118px;background:rgba(255,255,255,.98);box-shadow:0 24px 48px rgba(7,23,43,.16);border:1px solid rgba(15,42,78,.08);border-radius:0 0 22px 22px;padding:84px 22px 22px;gap:18px}
.mega-search{left:22px;top:20px;width:min(420px,calc(100% - 44px));height:48px;border:1px solid var(--line);border-radius:14px;padding:0 16px;font-size:15px;background:#fbfdff;box-shadow:0 8px 16px rgba(15,42,78,.06)}
.mega-col{background:#fff;border:1px solid var(--line);border-radius:18px;padding:14px;min-height:310px;box-shadow:0 10px 28px rgba(15,42,78,.05)}
.mega-title{margin:4px 0 12px;font-size:20px;color:var(--text)}
.mega-item{border-radius:12px;padding:13px 14px;margin-bottom:6px;display:flex;align-items:center;justify-content:space-between;gap:10px;color:var(--text)}
.mega-item b{color:#8ca0b8}
.mega-item.active,.mega-item:hover{background:linear-gradient(180deg,#f4f8ff,#e9f1ff);color:var(--blue);box-shadow:inset 0 0 0 1px rgba(31,95,174,.10)}
.mega-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:10px}
.mega-leaf{display:flex;align-items:center;min-height:52px;padding:12px 14px;border-radius:12px;border:1px solid var(--line);background:#fbfdff;color:var(--text);text-decoration:none;transition:all .18s ease}
.mega-leaf:hover{border-color:#b7cae2;background:#f4f8ff;color:var(--blue);transform:translateY(-1px)}
.mega-leaf.view-all{font-weight:800;background:#eef5ff;color:var(--blue);border-color:#cfe0f8}
.mega-empty{padding:14px;border:1px dashed #cbd8e7;border-radius:12px;background:#f8fbff;color:var(--muted)}
.mega.single-root{grid-template-columns:minmax(280px,340px) minmax(0,1fr)}
.mega.single-root .root-column{display:none}
.catalog-shell,.home-shell{max-width:1480px}
.filters,.product-card,.home-content-card,.home-block,.catalog-top,.cart-drawer,.checkout-panel,.account-card,.pay-card,.mp-card,.content-frame,.video-frame,.preview-card{box-shadow:var(--shadow)}
.filters,.catalog-top,.checkout-panel,.account-card,.pay-card,.mp-card{border:1px solid var(--line);background:#fff}
.filters{border-radius:22px;padding:18px;position:sticky;top:136px}
.filter-block{padding:16px 0;border-color:#e9eef5}
.filter-block h4,.catalog-top h1,.home-intro h1,.home-block-head h2{color:var(--text)}
.facet-search,.sort,select,input[type="search"],input[type="text"],input[type="email"],input[type="password"],input[type="number"],textarea{border-radius:12px;border:1px solid #ccd8e6;box-shadow:inset 0 1px 2px rgba(15,42,78,.04)}
.product-grid,.home-product-grid{gap:18px}
.product-card{border:1px solid var(--line);border-radius:22px;overflow:hidden;background:#fff;transition:transform .18s ease, box-shadow .18s ease,border-color .18s ease}
.product-card:hover{transform:translateY(-3px);border-color:#bdd1e7;box-shadow:0 24px 42px rgba(11,36,73,.12)}
.product-image{background:radial-gradient(circle at top right,#f3f7ff 0,#eef4fb 35%,#ffffff 100%);padding:18px}
.product-body{padding:16px 16px 18px}
.product-card .brand{color:var(--blue);font-weight:800;letter-spacing:.02em}
.product-card .title{font-size:17px;line-height:1.35;min-height:44px;color:var(--text)}
.product-card .model{font-size:13px;color:var(--muted);margin-bottom:4px}
.product-card .price{font-size:29px;color:var(--blue-dark);letter-spacing:-.02em}
.product-card .iva{display:inline-flex;margin-top:2px;padding:4px 9px;border-radius:999px;background:#f1f5f9;color:#64748b;font-size:11px;font-weight:700}
.product-card .stock{margin-top:12px;border-radius:999px;padding:8px 12px;font-weight:800;background:#eef5ff;color:var(--blue);display:inline-flex}
.product-card .stock.local{background:#e8f8ee;color:var(--green)}
.product-card .stock.on-order{background:#eef5ff;color:var(--blue)}
.product-card .stock.out{background:#fff1f2;color:#b42318}
.stock-note{margin-top:8px;color:#64748b;font-size:12px;line-height:1.4}
.buy-row{margin-top:14px;display:flex;align-items:center;gap:12px}
.qty{border-radius:14px;background:#f5f8fc;padding:4px;border:1px solid #dbe4ef}
.qty button{border-radius:10px;background:#fff;color:var(--blue-dark);font-weight:900}
.qty input{min-width:40px;background:transparent;color:var(--text)}
.catalog-top{border-radius:24px;padding:26px}
.breadcrumb{margin-bottom:16px;color:#73839a}
.breadcrumb a{color:var(--blue)}
.syscom-banners,.home-content-card,.home-block,.catalog-top,.filters{border-radius:22px}
.syscom-banners{overflow:hidden;border:1px solid var(--line);box-shadow:var(--shadow)}
.banner-dots button.active{background:var(--yellow)}
.availability-legend span{padding:8px 12px;border-radius:999px;background:#fff;border:1px solid var(--line)}
.availability-legend .local{color:var(--green)}
.availability-legend .order{color:var(--blue)}
.home-tab{border-radius:12px;padding:10px 16px;font-weight:700}
.home-tab.active{background:linear-gradient(180deg,var(--blue),var(--blue-dark));box-shadow:0 10px 22px rgba(31,95,174,.24)}
.home-block{padding:22px;background:#fff;border:1px solid var(--line);margin:20px 0}
.home-content-card{border:1px solid var(--line)}
.cart-drawer{border-left:1px solid var(--line);background:#fbfdff}
.cart-head{background:linear-gradient(90deg,#fff,#f6f9fd)}
.cart-item{border-color:#e6edf5}
.cart-item img{border-radius:14px;background:#fff;border:1px solid #e6edf5}
.cart-foot{background:#fff;border-top:1px solid var(--line)}
.account-card,.checkout-panel,.pay-card,.mp-card{border-radius:22px}
.account-form input,.account-form textarea,.checkout-fields input,.checkout-fields textarea,.checkout-fields select{background:#fbfdff}
@media(max-width:980px){
  .head-main{grid-template-columns:1fr;min-height:auto;padding:16px}
  .store-logo .brand-copy strong{font-size:26px}
  .mega{top:136px}
}
@media(max-width:760px){
  .head-main{padding:14px 12px;gap:14px}
  .store-logo img.brand-mark,.store-logo b,.store-logo .logo{width:52px;height:52px}
  .store-logo .brand-copy strong{font-size:24px}
  .search-wrap{width:100%}
  .mega{top:154px;padding:76px 12px 12px;grid-template-columns:1fr;max-height:calc(100vh - 164px);overflow:auto}
  .mega.single-root{grid-template-columns:1fr}
  .mega-search{left:12px;top:14px;width:calc(100% - 24px)}
  .mega-col{min-height:auto}
  .filters{position:static;top:auto}
  .catalog-shell{padding:14px 12px 28px}
  .catalog-top{padding:18px}
  .product-card .price{font-size:24px}
}
