/* MercadoPublicitario Smart Commerce Menu v3.1.0 */
.mpsm-shell{
  --mpsm-accent:#e5007d;
  --mpsm-secondary:#1746a2;
  --mpsm-header-bg:#fff;
  --mpsm-nav-bg:#fff;
  --mpsm-link-color:#202a37;
  --mpsm-link-hover:#1746a2;
  --mpsm-icon-color:#176c6a;
  --mpsm-quote-bg:#e5007d;
  --mpsm-quote-text:#fff;
  --mpsm-line:#e7e9ee;
  --mpsm-logo-w:190px;
  --mpsm-logo-h:52px;
  --mpsm-search-w:380px;
  --mpsm-max-width:1540px;
  --mpsm-header-pad:28px;
  --mpsm-main-gap:14px;
  --mpsm-menu-gap:3px;
  --mpsm-menu-pad:14px;
  --mpsm-nav-height:48px;
  --mpsm-ink:#141820;
  --mpsm-muted:#667085;
  --mpsm-soft:#f7f8fb;
  position:relative;
  z-index:9990;
  width:100%;
  font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  color:var(--mpsm-ink);
  background:var(--mpsm-header-bg);
  box-shadow:0 1px 0 rgba(16,24,40,.08);
}
.mpsm-shell *{box-sizing:border-box}
.mpsm-shell a{text-decoration:none;color:inherit}
.mpsm-shell button,.mpsm-shell input{font:inherit}
.mpsm-shell svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.85;stroke-linecap:round;stroke-linejoin:round;display:block}
.mpsm-shell--sticky{position:sticky;top:0}
.admin-bar .mpsm-shell--sticky{top:32px}
.mpsm-hidden-original{display:none!important}

.mpsm-header{max-width:var(--mpsm-max-width);margin:0 auto;padding:0 14px;background:var(--mpsm-header-bg)}
.mpsm-main-row{min-height:70px;display:grid;grid-template-columns:42px minmax(0,1fr) auto;gap:10px;align-items:center}
.mpsm-mobile-toggle{display:flex;width:42px;height:42px;border:0;background:transparent;align-items:center;justify-content:center;padding:0;color:var(--mpsm-link-color);cursor:pointer;border-radius:10px}
.mpsm-mobile-toggle:hover{background:var(--mpsm-soft)}
.mpsm-logo{min-width:0;display:flex;align-items:center;justify-content:flex-start}
.mpsm-logo img{display:block;max-width:min(var(--mpsm-logo-w),100%);max-height:var(--mpsm-logo-h);width:auto;height:auto;object-fit:contain}
.mpsm-logo--text{flex-direction:column;align-items:flex-start;line-height:.96;font-size:16px;font-weight:700;color:var(--mpsm-secondary)}
.mpsm-logo--text strong{font-size:18px;color:var(--mpsm-accent)}

.mpsm-search-wrap{display:none}
.mpsm-mobile-search{padding:0 0 12px}
.mpsm-search{height:46px;border:1px solid #cfd4dc;border-radius:14px;display:flex;align-items:center;background:#fff;overflow:hidden;transition:border-color .18s,box-shadow .18s}
.mpsm-search:focus-within{border-color:var(--mpsm-secondary);box-shadow:0 0 0 3px rgba(23,70,162,.10)}
.mpsm-search__icon{padding-left:14px;color:var(--mpsm-icon-color)}
.mpsm-search__icon svg{width:20px;height:20px}
.mpsm-search input{width:100%;height:100%;border:0!important;outline:0!important;padding:0 12px;background:transparent!important;box-shadow:none!important;font-size:14px;color:var(--mpsm-ink);min-width:0}
.mpsm-search input::placeholder{color:#8a93a2;opacity:1}
.mpsm-search button{height:100%;border:0;background:var(--mpsm-secondary);color:#fff;padding:0 17px;font-size:13px;font-weight:750;cursor:pointer}

.mpsm-actions{display:none}
.mpsm-mobile-actions{display:flex;align-items:center;justify-content:flex-end;gap:2px}
.mpsm-service{display:flex;align-items:center;gap:8px;min-width:0;color:#263244;white-space:nowrap;border-radius:10px}
a.mpsm-service:hover{background:var(--mpsm-soft)}
.mpsm-service__icon{color:var(--mpsm-icon-color);flex:0 0 auto}
.mpsm-service__icon svg{width:23px;height:23px}
.mpsm-service__copy{display:flex;flex-direction:column;line-height:1.1;min-width:0}
.mpsm-service strong{font-size:13px;font-weight:760;letter-spacing:-.01em}
.mpsm-service small{font-size:10px;color:var(--mpsm-muted);margin-top:4px;font-weight:500}
.mpsm-quote{display:flex;align-items:center;justify-content:center;min-height:40px;padding:0 14px;border-radius:10px;background:var(--mpsm-quote-bg);color:var(--mpsm-quote-text)!important;font-size:12px;font-weight:800;white-space:nowrap;transition:transform .15s,filter .15s}
.mpsm-quote:hover{filter:brightness(.95);transform:translateY(-1px)}
.mpsm-icon-link{position:relative;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:2px;min-width:42px;min-height:42px;padding:4px;color:var(--mpsm-link-color);border-radius:10px;transition:background .15s,color .15s}
.mpsm-icon-link:hover{background:var(--mpsm-soft);color:var(--mpsm-link-hover)}
.mpsm-icon-link svg{width:21px;height:21px}
.mpsm-icon-link>span{display:none;font-size:10px;font-weight:650;line-height:1}
.mpsm-cart-count{position:absolute;right:-1px;top:-2px;min-width:19px;height:19px;padding:0 5px;border-radius:999px;background:var(--mpsm-accent);color:#fff;display:flex;align-items:center;justify-content:center;font-size:10px;line-height:1;font-weight:800;border:2px solid var(--mpsm-header-bg)}

.mpsm-desktop-nav{display:none}
.mpsm-wp-menu{list-style:none;margin:0;padding:0}

.mpsm-backdrop{position:fixed;inset:0;background:rgba(17,24,39,.48);z-index:9997;backdrop-filter:blur(2px)}
.mpsm-mobile-panel{position:fixed;top:0;left:0;bottom:0;width:min(92vw,400px);background:#fff;z-index:9998;transform:translateX(-104%);transition:transform .24s ease;box-shadow:24px 0 60px rgba(16,24,40,.18);display:flex;flex-direction:column;overflow:hidden}
.mpsm-mobile-panel.is-open{transform:translateX(0)}
.mpsm-mobile-panel__head{height:66px;display:flex;align-items:center;justify-content:space-between;padding:0 18px;border-bottom:1px solid var(--mpsm-line);font-size:19px}
.mpsm-close{width:40px;height:40px;border:0;background:var(--mpsm-soft);display:flex;align-items:center;justify-content:center;border-radius:10px;cursor:pointer;color:var(--mpsm-link-color)}
.mpsm-mobile-commercial{display:grid;gap:6px;padding:12px 14px 4px}
.mpsm-mobile-commercial>a,.mpsm-mobile-commercial>div{min-height:52px;display:flex;align-items:center;gap:10px;border:1px solid var(--mpsm-line);border-radius:12px;padding:8px 11px}
.mpsm-mobile-commercial>*>span:first-child{color:var(--mpsm-icon-color)}
.mpsm-mobile-commercial>*>span:last-child{display:flex;flex-direction:column;line-height:1.15}
.mpsm-mobile-commercial strong{font-size:13px}
.mpsm-mobile-commercial small{font-size:10px;color:var(--mpsm-muted);margin-top:3px}
.mpsm-mobile-quick{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:8px 14px 12px;border-bottom:1px solid var(--mpsm-line)}
.mpsm-mobile-quick a{position:relative;display:flex;gap:8px;align-items:center;justify-content:center;min-height:44px;border:1px solid var(--mpsm-line);border-radius:12px;font-size:13px;font-weight:700;color:var(--mpsm-link-color)}
.mpsm-mobile-quick .mpsm-cart-count{right:8px;top:7px;border-color:#fff}
.mpsm-mobile-sections{overflow-y:auto;padding:4px 14px 20px;overscroll-behavior:contain}
.mpsm-mobile-section{border-bottom:1px solid var(--mpsm-line)}
.mpsm-mobile-section__toggle{width:100%;min-height:54px;padding:0;border:0;background:transparent;display:flex;align-items:center;justify-content:space-between;font-size:14px;font-weight:800;text-align:left;cursor:pointer;color:var(--mpsm-link-color)}
.mpsm-mobile-section__toggle>svg{width:17px;height:17px;transition:transform .2s}
.mpsm-mobile-section.is-open .mpsm-mobile-section__toggle>svg{transform:rotate(180deg)}
.mpsm-mobile-section__title{display:flex;align-items:center;gap:7px}
.mpsm-mobile-section__content{display:none;padding:0 0 14px}
.mpsm-mobile-section.is-open .mpsm-mobile-section__content{display:block}
.mpsm-wp-menu--mobile li{margin:0;padding:0}
.mpsm-wp-menu--mobile a{display:block;padding:10px 2px;font-size:14px;font-weight:650;color:var(--mpsm-link-color)}
.mpsm-wp-menu--mobile .sub-menu{list-style:none;margin:0 0 4px;padding:0 0 0 14px;border-left:2px solid var(--mpsm-line)}
.mpsm-wp-menu--mobile .sub-menu a{font-weight:500;color:#475467}

.mpsm-mobile-panel .mpsm-mega-grid{display:grid;grid-template-columns:1fr;gap:8px}
.mpsm-cat-card{border:1px solid var(--mpsm-line);border-radius:12px;padding:11px 12px;background:#fff;transition:border-color .15s,box-shadow .15s}
.mpsm-cat-card:hover{border-color:#d6dae2;box-shadow:0 5px 16px rgba(16,24,40,.05)}
.mpsm-cat-card__title{display:flex;justify-content:space-between;gap:10px;align-items:center;font-weight:800;font-size:13px;color:var(--mpsm-link-color)}
.mpsm-cat-card__label{display:flex;align-items:center;gap:8px;min-width:0}
.mpsm-cat-card__icon{width:28px;height:28px;display:flex;align-items:center;justify-content:center;border:1px solid var(--mpsm-line);border-radius:8px;color:var(--mpsm-icon-color);background:#fff;flex:0 0 auto}
.mpsm-cat-card__icon svg{width:16px;height:16px;stroke-width:1.7}
.mpsm-cat-card__count{font-size:10px;color:var(--mpsm-muted);background:var(--mpsm-soft);padding:3px 7px;border-radius:999px;flex:0 0 auto}
.mpsm-cat-card ul{list-style:none;margin:8px 0 0 36px;padding:0;display:flex;flex-wrap:wrap;gap:5px 12px}
.mpsm-cat-card ul a{font-size:11px;color:var(--mpsm-muted)}
.mpsm-cat-card ul a:hover{color:var(--mpsm-link-hover)}

.mpsm-product-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.mpsm-product-card{display:flex;flex-direction:column;border:1px solid var(--mpsm-line);border-radius:12px;overflow:hidden;background:#fff}
.mpsm-product-card__image{aspect-ratio:1.45/1;background:#f5f6f8;overflow:hidden}
.mpsm-product-card__image img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .25s}
.mpsm-product-card:hover img{transform:scale(1.035)}
.mpsm-product-card__body{display:flex;flex-direction:column;gap:4px;padding:9px}
.mpsm-product-card__body strong{font-size:12px;line-height:1.25;color:var(--mpsm-link-color)}
.mpsm-product-card__body small{font-size:12px;color:var(--mpsm-accent);font-weight:800}
.mpsm-mobile-panel__footer{margin-top:auto;padding:14px;border-top:1px solid var(--mpsm-line);background:#fff}
.mpsm-mobile-quote{min-height:45px;display:flex;align-items:center;justify-content:center;background:var(--mpsm-quote-bg);color:var(--mpsm-quote-text)!important;border-radius:12px;font-weight:800;margin-bottom:8px}
.mpsm-mobile-panel__footer small{display:block;text-align:center;color:var(--mpsm-muted);font-size:11px}
.mpsm-empty{padding:16px;border-radius:12px;background:var(--mpsm-soft);color:var(--mpsm-muted);font-size:13px}
body.mpsm-lock{overflow:hidden}

@media (min-width:760px){
  .mpsm-header{padding-left:clamp(14px,var(--mpsm-header-pad),80px);padding-right:clamp(14px,var(--mpsm-header-pad),80px)}
  .mpsm-main-row{display:flex;min-height:80px;gap:var(--mpsm-main-gap)}
  .mpsm-mobile-toggle,.mpsm-mobile-search,.mpsm-mobile-actions{display:none}
  .mpsm-logo{flex:0 1 var(--mpsm-logo-w);max-width:var(--mpsm-logo-w)}
  .mpsm-search-wrap{display:block;flex:0 1 var(--mpsm-search-w);width:var(--mpsm-search-w);min-width:220px;max-width:var(--mpsm-search-w)}
  .mpsm-actions{margin-left:auto;display:flex;align-items:center;justify-content:flex-end;gap:7px;min-width:0}
  .mpsm-actions .mpsm-service{display:none}
  .mpsm-actions .mpsm-quote{display:flex}
  .mpsm-icon-link>span{display:block}
  .mpsm-icon-link{min-width:49px}
  .mpsm-search button{display:none}

  .mpsm-desktop-nav{position:relative;display:flex;align-items:center;min-height:var(--mpsm-nav-height);background:var(--mpsm-nav-bg);border-top:1px solid var(--mpsm-line);gap:var(--mpsm-menu-gap);overflow:visible}
  .mpsm-desktop-nav>.mpsm-wp-menu{display:flex;align-items:center;gap:var(--mpsm-menu-gap);min-width:0}
  .mpsm-desktop-nav>.mpsm-wp-menu>li{position:relative;list-style:none;margin:0}
  .mpsm-desktop-nav>.mpsm-wp-menu>li>a,.mpsm-nav-item>button{height:calc(var(--mpsm-nav-height) - 2px);display:flex;align-items:center;gap:6px;border:0;background:transparent;padding:0 var(--mpsm-menu-pad);font-size:13px;font-weight:720;color:var(--mpsm-link-color);cursor:pointer;border-radius:9px;white-space:nowrap;transition:background .15s,color .15s}
  .mpsm-desktop-nav>.mpsm-wp-menu>li>a:hover,.mpsm-desktop-nav>.mpsm-wp-menu>li.current-menu-item>a,.mpsm-nav-item>button:hover,.mpsm-nav-item.is-open>button{background:var(--mpsm-soft);color:var(--mpsm-link-hover)}
  .mpsm-nav-icon{display:flex;align-items:center;color:var(--mpsm-icon-color)}
  .mpsm-nav-icon svg{width:17px!important;height:17px!important}
  .mpsm-nav-item>button>svg:last-child{width:14px;height:14px}
  .mpsm-desktop-nav .mpsm-wp-menu .sub-menu{display:none;position:absolute;left:0;top:calc(var(--mpsm-nav-height) - 3px);min-width:220px;list-style:none;margin:0;padding:8px;background:#fff;border:1px solid var(--mpsm-line);border-radius:12px;box-shadow:0 18px 42px rgba(16,24,40,.12);z-index:12}
  .mpsm-desktop-nav .mpsm-wp-menu li:hover>.sub-menu,.mpsm-desktop-nav .mpsm-wp-menu li:focus-within>.sub-menu{display:block}
  .mpsm-desktop-nav .mpsm-wp-menu .sub-menu a{display:block;padding:9px 10px;border-radius:8px;font-size:13px;color:var(--mpsm-link-color)}
  .mpsm-desktop-nav .mpsm-wp-menu .sub-menu a:hover{background:var(--mpsm-soft);color:var(--mpsm-link-hover)}
  .mpsm-nav-item{position:static}
  .mpsm-mega{visibility:hidden;opacity:0;pointer-events:none;transform:translateY(6px);position:absolute;left:0;right:0;top:calc(var(--mpsm-nav-height) - 1px);z-index:20;background:#fff;border:1px solid var(--mpsm-line);border-radius:0 0 16px 16px;box-shadow:0 20px 45px rgba(16,24,40,.14);padding:18px;transition:opacity .15s,transform .15s,visibility .15s}
  .mpsm-nav-item.is-open>.mpsm-mega,.mpsm-nav-item:hover>.mpsm-mega,.mpsm-nav-item:focus-within>.mpsm-mega{visibility:visible;opacity:1;pointer-events:auto;transform:translateY(0)}
  .mpsm-mega__head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:14px;padding-bottom:12px;border-bottom:1px solid var(--mpsm-line)}
  .mpsm-mega__head strong{font-size:15px}
  .mpsm-mega__head a{font-size:12px;font-weight:800;color:var(--mpsm-link-hover)}
  .mpsm-mega-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
  .mpsm-product-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
  .mpsm-product-card{flex-direction:row;min-height:108px}
  .mpsm-product-card__image{width:110px;min-width:110px;aspect-ratio:auto}
  .mpsm-product-card__body{justify-content:center;padding:12px}
  .mpsm-product-card__body strong{font-size:13px}
  .mpsm-mobile-panel,.mpsm-backdrop{display:none!important}
}

@media (min-width:1040px){
  .mpsm-main-row{min-height:82px}
  .mpsm-actions{gap:8px}
  .mpsm-actions .mpsm-service--benefit{display:flex}
  .mpsm-service{padding:5px 7px}
  .mpsm-search{height:46px;border-radius:14px}
}

@media (min-width:1280px){
  .mpsm-actions .mpsm-service--sales{display:flex}
  .mpsm-service strong{font-size:13px}
  .mpsm-service small{font-size:10px}
  .mpsm-actions{gap:9px}
  .mpsm-icon-link{min-width:52px}
}

@media (min-width:1500px){
  .mpsm-service strong{font-size:14px}
  .mpsm-service small{font-size:11px}
  .mpsm-icon-link{min-width:56px}
}

@media (max-width:980px) and (min-width:760px){
  .mpsm-search-wrap{flex-basis:min(330px,36vw);width:min(330px,36vw)}
  .mpsm-desktop-nav>.mpsm-wp-menu>li>a,.mpsm-nav-item>button{font-size:12px;padding-left:10px;padding-right:10px}
}

@media (max-width:782px){.admin-bar .mpsm-shell--sticky{top:46px}}
@media (prefers-reduced-motion:reduce){.mpsm-shell *{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

/* ===== V3.0.0: Top bar, category thumbnails, marquee and frosted sticky ===== */
.mpsm-shell{
  --mpsm-marquee-color:#667085;
  --mpsm-marquee-size:12px;
  --mpsm-marquee-weight:650;
  --mpsm-marquee-speed:28s;
  --mpsm-marquee-font:inherit;
  --mpsm-topbar-bg:#151b2b;
  --mpsm-topbar-color:#fff;
  --mpsm-topbar-size:12px;
  --mpsm-topbar-height:34px;
  --mpsm-header-frost:rgba(255,255,255,.90);
  --mpsm-nav-frost:rgba(255,255,255,.90);
  --mpsm-topbar-frost:rgba(21,27,43,.90);
  --mpsm-frost-blur:16px;
  transition:background-color .22s ease,box-shadow .22s ease;
}
.mpsm-topbar{background:var(--mpsm-topbar-bg);color:var(--mpsm-topbar-color);font-size:var(--mpsm-topbar-size);min-height:var(--mpsm-topbar-height);display:flex;align-items:center;transition:background-color .22s ease}
.mpsm-topbar__inner{width:100%;max-width:var(--mpsm-max-width);min-height:var(--mpsm-topbar-height);margin:0 auto;padding:0 14px;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:18px;font-weight:600;letter-spacing:.005em}
.mpsm-topbar__item{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mpsm-topbar__left{text-align:left}.mpsm-topbar__center{text-align:center;font-weight:750}.mpsm-topbar__right{text-align:right}
.mpsm-topbar__mobile{display:none;text-align:center;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

.mpsm-shell--sticky.mpsm-shell--frosted.is-scrolled{background:var(--mpsm-header-frost);box-shadow:0 8px 30px rgba(16,24,40,.10);-webkit-backdrop-filter:blur(var(--mpsm-frost-blur)) saturate(160%);backdrop-filter:blur(var(--mpsm-frost-blur)) saturate(160%)}
.mpsm-shell--sticky.mpsm-shell--frosted.is-scrolled .mpsm-header{background:var(--mpsm-header-frost)}
.mpsm-shell--sticky.mpsm-shell--frosted.is-scrolled .mpsm-desktop-nav{background:var(--mpsm-nav-frost)}
.mpsm-shell--sticky.mpsm-shell--frosted.is-scrolled .mpsm-topbar{background:var(--mpsm-topbar-frost)}
.mpsm-shell--sticky.mpsm-shell--frosted.is-scrolled .mpsm-header,
.mpsm-shell--sticky.mpsm-shell--frosted.is-scrolled .mpsm-desktop-nav,
.mpsm-shell--sticky.mpsm-shell--frosted.is-scrolled .mpsm-topbar{-webkit-backdrop-filter:blur(var(--mpsm-frost-blur)) saturate(160%);backdrop-filter:blur(var(--mpsm-frost-blur)) saturate(160%)}

.mpsm-cat-card__label{gap:10px}
.mpsm-cat-thumb{width:42px;height:42px;aspect-ratio:1/1;display:flex;align-items:center;justify-content:center;overflow:hidden;border:1px solid var(--mpsm-line);border-radius:10px;background:#f7f8fa;flex:0 0 42px;color:var(--mpsm-icon-color)}
.mpsm-cat-thumb img{width:100%;height:100%;display:block;object-fit:cover}
.mpsm-cat-thumb svg{width:19px!important;height:19px!important;stroke-width:1.65}
.mpsm-cat-card__name{min-width:0;overflow:hidden;text-overflow:ellipsis}
.mpsm-cat-card ul{margin-left:52px}
.mpsm-cat-card ul li{display:inline-flex;min-width:0}
.mpsm-cat-card ul a{display:inline-flex;align-items:center;gap:5px}
.mpsm-child-thumb{width:20px;height:20px;aspect-ratio:1/1;display:inline-flex;align-items:center;justify-content:center;border-radius:5px;overflow:hidden;background:#f4f5f7;border:1px solid var(--mpsm-line);color:var(--mpsm-icon-color);flex:0 0 20px}
.mpsm-child-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.mpsm-child-thumb svg{width:11px!important;height:11px!important;stroke-width:1.6}

.mpsm-nav-marquee{display:none;min-width:0;flex:1 1 auto;margin-left:auto;height:calc(var(--mpsm-nav-height) - 10px);overflow:hidden;align-items:center;position:relative;color:var(--mpsm-marquee-color);font-family:var(--mpsm-marquee-font);font-size:var(--mpsm-marquee-size);font-weight:var(--mpsm-marquee-weight);mask-image:linear-gradient(to right,transparent,#000 6%,#000 94%,transparent);-webkit-mask-image:linear-gradient(to right,transparent,#000 6%,#000 94%,transparent)}
.mpsm-marquee__track{display:flex;align-items:center;width:max-content;min-width:100%;will-change:transform;animation:mpsm-marquee var(--mpsm-marquee-speed) linear infinite}
.mpsm-marquee__track>span{display:block;white-space:nowrap;padding-left:54px;letter-spacing:.015em}
.mpsm-nav-marquee:hover .mpsm-marquee__track{animation-play-state:paused}
@keyframes mpsm-marquee{from{transform:translate3d(0,0,0)}to{transform:translate3d(-50%,0,0)}}

@media (min-width:760px){
  .mpsm-topbar__inner{padding-left:clamp(14px,var(--mpsm-header-pad),80px);padding-right:clamp(14px,var(--mpsm-header-pad),80px)}
  .mpsm-desktop-nav>.mpsm-wp-menu{flex:0 1 auto}
}
@media (min-width:1000px){.mpsm-nav-marquee{display:flex}}
@media (max-width:759px){
  .mpsm-topbar__inner{display:flex;justify-content:center;padding:0 14px}
  .mpsm-topbar__item{display:none}.mpsm-topbar__mobile{display:block;max-width:100%}
  .mpsm-cat-thumb{width:38px;height:38px;flex-basis:38px}
  .mpsm-cat-card ul{margin-left:48px}
}
@media (prefers-reduced-motion:reduce){.mpsm-marquee__track{animation:none!important;transform:none!important}.mpsm-marquee__track>span[aria-hidden="true"]{display:none}}

/* ===== V3.1.0: Marquee adaptativo / protección de navegación ===== */
.mpsm-shell{--mpsm-marquee-max-w:520px}

@media (min-width:760px){
  /* Los enlaces y menús críticos nunca deben ceder espacio al marquee. */
  .mpsm-desktop-nav{min-width:0}
  .mpsm-desktop-nav>.mpsm-wp-menu{flex:0 0 auto;width:max-content;max-width:none}
  .mpsm-desktop-nav>.mpsm-wp-menu>li,
  .mpsm-desktop-nav>.mpsm-nav-item{flex:0 0 auto}

  /* El marquee usa solo el espacio sobrante y queda visualmente contenido. */
  .mpsm-nav-marquee{
    flex:0 1 var(--mpsm-marquee-max-w);
    width:min(var(--mpsm-marquee-max-w),100%);
    max-width:var(--mpsm-marquee-max-w);
    min-width:0;
    margin-left:auto;
    padding-left:12px;
    border-left:1px solid var(--mpsm-line);
  }
  .mpsm-nav-marquee.mpsm-marquee--fit-hidden{display:none!important}
  .mpsm-nav-marquee.mpsm-marquee--fit-compact{padding-left:8px}
  .mpsm-nav-marquee.mpsm-marquee--fit-compact .mpsm-marquee__track>span{padding-left:34px}
}

/* En resoluciones desktop intermedias priorizamos navegación antes que contenido promocional. */
@media (min-width:1000px) and (max-width:1279px){
  .mpsm-desktop-nav>.mpsm-wp-menu>li>a,
  .mpsm-nav-item>button{padding-left:9px;padding-right:9px;font-size:12px}
  .mpsm-nav-marquee{max-width:min(var(--mpsm-marquee-max-w),300px)}
}

@media (min-width:1280px) and (max-width:1499px){
  .mpsm-nav-marquee{max-width:min(var(--mpsm-marquee-max-w),420px)}
}

/* ===== V3.2.0: Mega menú de categorías ultra compacto ===== */
.mpsm-mega-grid--categories{
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:7px;
}
.mpsm-cat-card{
  min-width:0;
  min-height:54px;
  display:flex;
  align-items:center;
  gap:9px;
  padding:7px 9px;
  border:1px solid var(--mpsm-line);
  border-radius:10px;
  background:#fff;
  color:var(--mpsm-link-color);
  text-decoration:none;
  transition:border-color .15s ease,box-shadow .15s ease,background-color .15s ease,transform .15s ease;
}
.mpsm-cat-card:hover,.mpsm-cat-card:focus-visible{
  color:var(--mpsm-link-color);
  border-color:#d6dae2;
  background:#fcfcfd;
  box-shadow:0 4px 12px rgba(16,24,40,.05);
  transform:translateY(-1px);
  outline:none;
}
.mpsm-cat-card .mpsm-cat-thumb{
  width:38px;
  height:38px;
  flex:0 0 38px;
  border-radius:8px;
}
.mpsm-cat-card__name{
  min-width:0;
  flex:1 1 auto;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:12px;
  line-height:1.15;
  font-weight:800;
}
.mpsm-cat-card__count{
  flex:0 0 auto;
  min-width:24px;
  height:24px;
  padding:0 7px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  background:var(--mpsm-soft);
  color:var(--mpsm-muted);
  font-size:10px;
  line-height:1;
  font-weight:800;
}
.mpsm-mega--categories{
  padding:12px 14px 14px;
}
.mpsm-mega--categories .mpsm-mega__head{
  margin-bottom:10px;
  padding-bottom:9px;
}
/* V3.2: las subcategorías no se renderizan; estas reglas evitan residuos de temas externos. */
.mpsm-mega-grid--categories .mpsm-cat-card ul,
.mpsm-mega-grid--categories .mpsm-child-thumb{display:none!important}

@media (min-width:760px){
  .mpsm-mega-grid--categories{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
}
@media (min-width:1040px){
  .mpsm-mega-grid--categories{grid-template-columns:repeat(5,minmax(0,1fr))}
}
@media (min-width:1280px){
  .mpsm-mega-grid--categories{grid-template-columns:repeat(6,minmax(0,1fr))}
}
@media (min-width:1500px){
  .mpsm-mega-grid--categories{grid-template-columns:repeat(7,minmax(0,1fr))}
}
@media (max-width:759px){
  .mpsm-mobile-panel .mpsm-mega-grid--categories{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
  .mpsm-mobile-panel .mpsm-cat-card{min-height:50px;padding:6px 7px;gap:7px}
  .mpsm-mobile-panel .mpsm-cat-card .mpsm-cat-thumb{width:34px;height:34px;flex-basis:34px}
  .mpsm-mobile-panel .mpsm-cat-card__name{font-size:11px}
  .mpsm-mobile-panel .mpsm-cat-card__count{min-width:22px;height:22px;padding:0 6px;font-size:9px}
}
@media (max-width:390px){
  .mpsm-mobile-panel .mpsm-mega-grid--categories{grid-template-columns:1fr}
}

/* ===== V3.3.0: Menú personalizado con iconos + categorías WordPress ===== */
.mpsm-menu-icon{display:inline-flex;align-items:center;justify-content:center;color:var(--mpsm-icon-color);flex:0 0 auto}
.mpsm-menu-icon svg{width:16px!important;height:16px!important;stroke-width:1.7}
.mpsm-menu-chevron{display:inline-flex;margin-left:1px;color:currentColor}.mpsm-menu-chevron svg{width:13px!important;height:13px!important}
.mpsm-wp-menu--mobile .mpsm-menu-icon{margin-right:7px}.mpsm-wp-menu--mobile .mpsm-menu-icon svg{width:15px!important;height:15px!important}
.mpsm-wp-menu--mobile .mpsm-custom-menu-item>a,.mpsm-wp-menu--mobile .sub-menu a{display:flex;align-items:center;gap:5px}

.mpsm-wp-category-list{display:grid;gap:5px}.mpsm-wp-category-list>a{display:grid;grid-template-columns:28px minmax(0,1fr) auto;align-items:center;gap:9px;padding:7px 8px;border-radius:8px;color:var(--mpsm-link-color);text-decoration:none;font-size:12px;font-weight:650;transition:background-color .15s,color .15s}.mpsm-wp-category-list>a:hover,.mpsm-wp-category-list>a:focus-visible{background:var(--mpsm-soft);color:var(--mpsm-link-hover);outline:none}.mpsm-wp-category-list__icon{width:28px;height:28px;border:1px solid var(--mpsm-line);border-radius:7px;display:flex;align-items:center;justify-content:center;color:var(--mpsm-icon-color);background:#f8fafc}.mpsm-wp-category-list__icon svg{width:14px!important;height:14px!important}.mpsm-wp-category-list b{min-width:24px;height:24px;padding:0 6px;border-radius:999px;background:#f3f5f8;color:#667085;display:inline-flex;align-items:center;justify-content:center;font-size:9px}

@media (min-width:760px){
  .mpsm-desktop-nav .mpsm-custom-menu>li>a{display:flex;align-items:center;gap:6px}
  .mpsm-desktop-nav .mpsm-custom-menu .sub-menu a{display:flex;align-items:center;gap:8px}
  .mpsm-desktop-nav .mpsm-custom-menu .sub-menu .mpsm-menu-icon{color:var(--mpsm-icon-color)}
  .mpsm-nav-item--wp-cats{position:relative}
  .mpsm-nav-item--wp-cats .mpsm-mega--wp-cats{left:0;right:auto;width:340px;max-width:min(340px,92vw);padding:10px;border-radius:0 0 13px 13px}
  .mpsm-nav-item--wp-cats .mpsm-mega__head{margin-bottom:7px;padding:3px 2px 8px}.mpsm-nav-item--wp-cats .mpsm-mega__head strong{font-size:12px}
}
@media(max-width:759px){.mpsm-wp-category-list{gap:3px}.mpsm-wp-category-list>a{padding:8px 3px}}


/* ===== V3.4.0: Mega menú personalizado profesional ===== */
.mpsm-menu-icon--image{width:18px;height:18px;border-radius:4px;overflow:hidden;background:#fff}.mpsm-menu-icon--image img{width:100%;height:100%;display:block;object-fit:contain}
.mpsm-custom-dropdown__desc{display:block;margin-top:2px;font-size:10px!important;font-weight:500!important;line-height:1.25;color:#98a2b3!important;white-space:normal}
@media(min-width:760px){
  .mpsm-desktop-nav .mpsm-custom-menu>li.mpsm-custom-menu-item--mega{position:static}
  .mpsm-custom-menu-item--mega>.mpsm-custom-mega-panel{visibility:hidden;opacity:0;pointer-events:none;transform:translateY(7px);position:absolute;left:0;right:0;top:calc(var(--mpsm-nav-height) - 1px);z-index:22;background:rgba(255,255,255,.985);border:1px solid var(--mpsm-line);border-radius:0 0 16px 16px;box-shadow:0 22px 50px rgba(16,24,40,.13);padding:14px 16px 16px;transition:opacity .16s ease,transform .16s ease,visibility .16s ease;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}
  .mpsm-custom-menu-item--mega:hover>.mpsm-custom-mega-panel,.mpsm-custom-menu-item--mega:focus-within>.mpsm-custom-mega-panel{visibility:visible;opacity:1;pointer-events:auto;transform:translateY(0)}
  .mpsm-custom-mega-panel__head{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:0 2px 10px;margin-bottom:9px;border-bottom:1px solid var(--mpsm-line)}
  .mpsm-custom-mega-panel__head>div{display:flex;align-items:baseline;gap:7px}.mpsm-custom-mega-panel__head small{font-size:9px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#98a2b3}.mpsm-custom-mega-panel__head strong{font-size:13px;color:var(--mpsm-link-color)}.mpsm-custom-mega-panel__head>span{font-size:9px;font-weight:700;color:#98a2b3;background:#f5f7fa;border-radius:999px;padding:4px 7px}
  .mpsm-desktop-nav .mpsm-custom-menu .mpsm-custom-mega{display:grid!important;position:static!important;visibility:visible!important;opacity:1!important;pointer-events:auto!important;transform:none!important;min-width:0!important;width:auto!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:transparent!important;list-style:none!important}
  .mpsm-custom-mega--cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.mpsm-custom-mega--cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.mpsm-custom-mega--cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.mpsm-custom-mega--cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}
  .mpsm-custom-mega{gap:7px}.mpsm-custom-mega>li{min-width:0}
  .mpsm-desktop-nav .mpsm-custom-menu .mpsm-custom-mega>li>a{display:grid!important;grid-template-columns:38px minmax(0,1fr) 14px;align-items:center;gap:9px;min-height:58px;padding:8px 9px!important;border:1px solid transparent;border-radius:10px;background:#fff;color:var(--mpsm-link-color);text-decoration:none;transition:background .15s,border-color .15s,box-shadow .15s,transform .15s}
  .mpsm-desktop-nav .mpsm-custom-menu .mpsm-custom-mega>li>a:hover,.mpsm-desktop-nav .mpsm-custom-menu .mpsm-custom-mega>li>a:focus-visible{background:#fbfcff;border-color:#dfe5ee;box-shadow:0 5px 15px rgba(16,24,40,.05);transform:translateY(-1px);outline:none;color:var(--mpsm-link-hover)}
  .mpsm-custom-mega__icon{width:38px;height:38px;border-radius:9px;background:var(--mpsm-soft);border:1px solid var(--mpsm-line);display:flex;align-items:center;justify-content:center;overflow:hidden}.mpsm-custom-mega__icon>.mpsm-menu-icon{width:100%;height:100%;display:flex;align-items:center;justify-content:center}.mpsm-custom-mega__icon .mpsm-menu-icon:not(.mpsm-menu-icon--image) svg{width:17px!important;height:17px!important}.mpsm-custom-mega__icon .mpsm-menu-icon--image{border-radius:0;background:#fff}.mpsm-custom-mega__icon .mpsm-menu-icon--image img{object-fit:contain;padding:3px}
  .mpsm-custom-mega__copy{min-width:0;display:flex;flex-direction:column;gap:2px}.mpsm-custom-mega__copy strong{font-size:11.5px;line-height:1.2;color:inherit;white-space:normal}.mpsm-custom-mega__copy small{font-size:9.5px;line-height:1.25;font-weight:500;color:#8a94a6;white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  .mpsm-custom-mega__arrow{display:flex;color:#b1bac8}.mpsm-custom-mega__arrow svg{width:12px!important;height:12px!important;transform:rotate(-90deg)}
  .mpsm-desktop-nav .mpsm-custom-menu .mpsm-custom-dropdown{min-width:260px;padding:7px}.mpsm-desktop-nav .mpsm-custom-menu .mpsm-custom-dropdown>li>a{display:grid;grid-template-columns:30px minmax(0,1fr);gap:8px;align-items:center;padding:8px 9px}.mpsm-custom-dropdown .mpsm-menu-icon{width:30px;height:30px;border-radius:7px;background:var(--mpsm-soft);border:1px solid var(--mpsm-line)}.mpsm-custom-dropdown .mpsm-menu-icon--image{overflow:hidden}.mpsm-custom-dropdown .mpsm-menu-icon--image img{padding:2px}.mpsm-custom-dropdown strong{display:block;font-size:11.5px;line-height:1.2}
}
@media(max-width:1100px) and (min-width:760px){.mpsm-custom-mega--cols-5,.mpsm-custom-mega--cols-4{grid-template-columns:repeat(3,minmax(0,1fr))}.mpsm-custom-mega-panel__head{margin-bottom:7px}.mpsm-desktop-nav .mpsm-custom-menu .mpsm-custom-mega>li>a{min-height:54px}}
@media(max-width:759px){.mpsm-wp-menu--mobile .mpsm-custom-menu-item .mpsm-menu-icon--image{width:22px;height:22px}.mpsm-wp-menu--mobile .mpsm-custom-menu-item>.sub-menu small{display:none}.mpsm-wp-menu--mobile .mpsm-custom-menu-item>.sub-menu strong{font:inherit}.mpsm-wp-menu--mobile .mpsm-custom-menu-item>.sub-menu .mpsm-menu-icon{width:24px;height:24px;border:1px solid var(--mpsm-line);border-radius:6px;background:var(--mpsm-soft)}}
