/* COMERCIAL MONTERROSA · G3 Tienda Visual Premium. CSS público aislado del ERP. */
:root{--premium-red:#af142b;--premium-deep:#8d0b25;--premium-ink:#1c232b;--premium-cream:#fff8f3}
html{scroll-behavior:smooth}
body{overflow-x:hidden}
.cm-nav .cm-nav-active{color:var(--premium-red)!important}
.cm-header .cm-search{border-radius:999px;box-shadow:0 8px 23px #20232a06}
.cm-nav-surface{border-bottom:1px solid #ece2e6}
.cm-hero,.cm-category-grid{display:none!important}
.premium-hero-block{padding-top:16px;padding-bottom:0}
.premium-hero-layout{display:grid;grid-template-columns:minmax(0,1.87fr) minmax(255px,.7fr);grid-template-rows:minmax(410px,440px);gap:16px;position:relative;min-width:0}
.premium-hero-stage{grid-column:1;grid-row:1;min-height:410px;border-radius:22px;position:relative;overflow:hidden;background:#f1e8df;isolation:isolate;box-shadow:0 12px 35px #37091611}
.premium-slide{position:absolute;inset:0;overflow:hidden}
.premium-slide-bg{position:absolute;width:100%;height:100%;inset:0;object-fit:cover;object-position:58% center;display:block;filter:saturate(1.07)}
.premium-slide-shade{position:absolute;inset:0;background:linear-gradient(90deg,rgba(255,250,246,.97) 0%,rgba(255,249,244,.95) 20%,rgba(255,250,246,.86) 34%,rgba(255,250,246,.23) 64%,rgba(255,249,246,.02) 100%)}
.premium-slide-content{position:absolute;left:0;top:0;bottom:0;width:min(60%,580px);display:flex;align-items:flex-start;flex-direction:column;justify-content:center;padding:clamp(25px,4vw,58px) clamp(16px,2.5vw,35px);z-index:1}
.premium-flag{font-weight:900;font-size:10px;letter-spacing:.13em;color:#ac1230;text-transform:uppercase;background:#fff3e7;border-radius:50px;padding:9px 13px;border:1px solid #f4ddcb}
.premium-slide h1{font-size:clamp(34px,3.85vw,56px);font-weight:950;letter-spacing:-.045em;line-height:1.055;color:#252329;margin:21px 0 13px;text-wrap:balance;max-width:500px}
.premium-slide p{font-size:clamp(14px,1.2vw,17px);line-height:1.5;color:#4b4a4d;margin:0 0 21px;max-width:370px;font-weight:550}
.premium-cta{background:var(--premium-red);border:1px solid var(--premium-red);color:#fff;text-decoration:none;display:inline-flex;align-items:center;gap:15px;padding:13px 18px;border-radius:11px;font-size:14px;font-weight:900;box-shadow:0 11px 22px #a70f2f36;transition:transform .2s,background .2s}
.premium-cta:hover{background:#8b0822;transform:translateY(-2px)}
.premium-slide-terms{max-width:360px;color:#59545c;font-size:10px;margin-top:14px;line-height:1.45}
.premium-slide-enter{animation:premiumReveal .42s ease-out both}
@keyframes premiumReveal{from{opacity:.35;transform:scale(1.018)}to{opacity:1;transform:scale(1)}}
.premium-hero-controls{position:absolute;bottom:14px;left:24%;z-index:2;display:flex;align-items:center;gap:9px;border-radius:100px;padding:5px;background:#fffdefe8;border:1px solid #fff9;backdrop-filter:blur(10px);box-shadow:0 6px 22px #2608181a}
.premium-hero-controls>button{width:28px;height:28px;border:0;border-radius:50%;background:#fff;line-height:1;color:#ae1431;font-size:22px;cursor:pointer}
.premium-hero-controls>button:hover{background:#fce9ec}.premium-hero-controls>button[hidden]{display:none}
.premium-hero-dots{display:flex;gap:5px}.premium-hero-dots button{border:0;border-radius:50px;width:8px;height:8px;background:#bdb4b5;padding:0;cursor:pointer;transition:width .2s,background .2s}.premium-hero-dots button.active{background:var(--premium-red);width:23px}
.premium-side-tiles{grid-column:2;grid-row:1;display:grid;grid-template-rows:repeat(2,minmax(0,1fr));gap:15px;min-width:0}
.premium-side-card{position:relative;overflow:hidden;isolation:isolate;border-radius:20px;display:flex;min-height:0;text-decoration:none;color:#fff;box-shadow:0 10px 28px #43112812;transition:transform .18s}
.premium-side-card:hover,.premium-editorial-card:hover{transform:translateY(-3px)}
.premium-side-card img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:65% center;transform:scale(1.05);transition:transform .4s}
.premium-side-card:hover img{transform:scale(1.11)}
.premium-side-card:before{content:"";position:absolute;inset:0;z-index:0;background:linear-gradient(96deg,rgba(123,6,30,.94),rgba(107,11,27,.72) 60%,rgba(63,3,17,.08))}
.premium-side-light:before{background:linear-gradient(95deg,rgba(32,29,37,.94),rgba(34,27,33,.72),rgba(26,17,22,.14))}
.premium-side-card>div{z-index:1;position:relative;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;padding:23px;gap:8px;width:100%;max-width:270px}
.premium-side-card span{font-weight:850;font-size:10px;letter-spacing:.11em;opacity:.9}.premium-side-card strong{font-size:clamp(19px,1.9vw,26px);font-weight:900;line-height:1.1;letter-spacing:-.035em}.premium-side-card small{font-size:12px;font-weight:750;color:#fff5e1}
.cm-benefits{margin-top:18px!important;border:1px solid #eee4e7!important;box-shadow:0 11px 28px #2a1c2409!important}
.premium-category-section{padding-top:53px!important;padding-bottom:40px!important}
.premium-category-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:13px}
.premium-category{display:flex;flex-direction:column;align-items:stretch;text-decoration:none;border:1px solid #eeeaec;border-radius:17px;overflow:hidden;background:#fff;box-shadow:0 5px 20px #1808110a;color:var(--premium-ink);transition:transform .2s,box-shadow .2s,border-color .2s}
.premium-category:hover{transform:translateY(-4px);border-color:#e8bac3;box-shadow:0 14px 29px #23091417}
.premium-category-photo{display:block;width:100%;height:clamp(98px,11.5vw,150px);overflow:hidden;background:radial-gradient(circle at 50% 25%,#fff,#f5eef0);position:relative}
.premium-category-photo img{width:100%;height:100%;object-fit:cover;object-position:center center;transition:transform .35s}.premium-category:hover img{transform:scale(1.07)}
.premium-category strong{font-size:14px;font-weight:850;padding:10px 13px 2px;line-height:1.2;color:#26262a;white-space:normal}
.premium-category small{padding:0 13px 14px;color:#aa1633;font-size:11px;font-weight:800}
.premium-category small span{font-size:15px}
.premium-promotions{padding-top:38px;padding-bottom:62px}
.premium-promo-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.premium-editorial-card{height:250px;position:relative;border-radius:20px;overflow:hidden;isolation:isolate;display:flex;align-items:center;color:#fff;text-decoration:none;box-shadow:0 12px 29px #42071b16;transition:transform .2s}
.premium-editorial-card img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:64% center}
.premium-editorial-card:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(126,9,32,.94),rgba(139,14,39,.72) 42%,rgba(82,10,26,.08) 100%)}
.premium-editorial-card:nth-child(even):after{background:linear-gradient(90deg,rgba(30,33,40,.93),rgba(29,30,42,.74) 47%,rgba(21,28,34,.08))}
.premium-editorial-card>div{z-index:1;padding:30px;max-width:68%;display:flex;flex-direction:column;align-items:flex-start}
.premium-editorial-card small{font-size:10px;letter-spacing:.09em;font-weight:950;color:#ffeaca}.premium-editorial-card strong{font-size:clamp(22px,2.6vw,33px);font-weight:950;line-height:1.12;letter-spacing:-.035em;margin:10px 0 15px}.premium-editorial-card span{display:inline-block;background:#fff;color:#a30c28;padding:9px 12px;border-radius:9px;font-size:12px;font-weight:850}.premium-editorial-card em{font-size:10px;font-style:normal;margin-top:9px;color:#fff8df}
.cm-shop{padding-top:52px!important}
.cm-featured-section{padding-top:48px;padding-bottom:45px}
.cm-featured-grid .cm-featured-card{border:1px solid #eee7e9}
.cm-featured-info b,.cm-shop .price{color:#b30b30!important}
.cm-shop .buy{background:var(--premium-red)}
@media(max-width:1100px){.premium-hero-layout{grid-template-columns:minmax(0,1.65fr) minmax(235px,.75fr)}.premium-hero-stage{min-height:390px}.premium-hero-layout{grid-template-rows:390px}.premium-slide-content{width:65%}.premium-category-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:9px}.premium-category strong{font-size:12px;padding:8px 9px 1px}.premium-category small{padding:0 9px 10px}.premium-hero-controls{left:24%}}
@media(max-width:880px){.premium-hero-layout{grid-template-columns:1fr;grid-template-rows:375px auto}.premium-hero-stage{grid-row:1;min-height:375px}.premium-hero-controls{left:43%;bottom:auto;top:335px}.premium-side-tiles{grid-column:1;grid-row:2;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:155px;gap:12px}.premium-side-card>div{padding:16px}.premium-category-grid{grid-template-columns:repeat(5,minmax(0,1fr))}.premium-category-photo{height:105px}.premium-promotions{padding-top:22px}}
@media(max-width:640px){.premium-hero-block{padding-top:9px}.premium-hero-layout{grid-template-rows:390px auto;gap:9px}.premium-hero-stage{min-height:390px;border-radius:15px}.premium-slide-bg{object-position:62% top}.premium-slide-shade{background:linear-gradient(0deg,rgba(255,250,247,.98) 2%,rgba(255,250,247,.91) 29%,rgba(255,250,247,.38) 61%,rgba(255,250,247,.04) 100%)}.premium-slide-content{width:100%;top:auto;bottom:0;justify-content:flex-end;padding:18px 18px 42px}.premium-flag{padding:7px 10px;font-size:9px}.premium-slide h1{font-size:clamp(29px,7.8vw,39px);margin:10px 0 8px;max-width:370px}.premium-slide p{font-size:12px;line-height:1.4;margin:0 0 12px;max-width:350px}.premium-cta{font-size:12px;padding:10px 13px}.premium-slide-terms{max-width:345px;font-size:9px}.premium-hero-controls{top:358px;left:50%;transform:translateX(-50%)}.premium-side-tiles{grid-template-rows:138px}.premium-side-card{border-radius:13px}.premium-side-card>div{padding:13px}.premium-side-card strong{font-size:16px}.premium-side-card span{font-size:8px}.premium-side-card small{font-size:10px}.premium-category-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.premium-category-photo{height:132px}.premium-category strong{font-size:13px;padding:8px 10px 2px}.premium-category small{padding:0 10px 10px}.premium-category-section{padding-top:36px!important;padding-bottom:30px!important}.premium-promo-grid{grid-template-columns:1fr;gap:11px}.premium-editorial-card{height:180px;border-radius:14px}.premium-editorial-card>div{padding:18px;max-width:75%}.premium-editorial-card strong{font-size:22px;margin:6px 0 10px}.premium-promotions{padding-bottom:32px}.cm-section-heading h2{font-size:clamp(23px,6vw,29px)}.cm-benefits{margin-top:12px!important}}
@media(max-width:370px){.premium-slide h1{font-size:28px}.premium-side-tiles{grid-template-columns:1fr;grid-template-rows:110px 110px}.premium-hero-layout{grid-template-rows:370px auto}.premium-hero-stage{min-height:370px}.premium-hero-controls{top:337px}.premium-category-grid{gap:7px}.premium-category-photo{height:112px}}
@media(prefers-reduced-motion:reduce){.premium-slide-enter{animation:none} .premium-category,.premium-side-card,.premium-editorial-card,.premium-cta{transition:none}html{scroll-behavior:auto}}

/* G4: filtro jerárquico de familia comercial y subcategoría */
.cm-shop-toolbar .filters{flex-wrap:wrap!important;gap:10px!important;}
.cm-shop-toolbar .filters label{min-width:165px;flex:1 1 165px;}
#subcatFilter:disabled{opacity:.65;background-color:#f5f5f5;}
@media(max-width:640px){.cm-shop-toolbar .filters{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));}.cm-shop-toolbar .filters label{min-width:0;}.premium-category strong{font-size:12px;}}
