/* MGB SYSTEM · Identidad visual compartida para toda la tienda.
   No cambia datos de productos, impuestos, filtros, carrito ni checkout.
   Aplica después de los estilos propios de cada sección. */
:root{
  --mgb-shell-ink:#13354a;
  --mgb-shell-navy:#092f43;
  --mgb-shell-teal:#087f98;
  --mgb-shell-light:#eaf6fa;
  --mgb-shell-line:#d8e7ee;
  --mgb-shell-shade:#eff7fb;
  --mgb-shell-gold:#ffdf9e;
}
html{scroll-padding-top:110px}
body{font-family:system-ui,-apple-system,"Segoe UI",Arial,sans-serif}
body:not([data-section="index"]):not([data-section="navidad"]):not([data-section="amigo-invisible"]){
 background-color:#f8fbfe;
}
:is(header.header,header.bar,header.cat-header,header.gift-header).mgb-header-v2{
 position:sticky!important;top:0;z-index:80;
 background:#fff!important;
 border-bottom:1px solid var(--mgb-shell-line)!important;
 box-shadow:0 4px 19px #19394d0d!important;
 color:var(--mgb-shell-ink)!important;
 overflow:visible!important;
}
header.mgb-header-v2 .mgb-header-layout{
 width:min(1440px,calc(100% - 36px))!important;
 max-width:1440px!important;
 grid-template-columns:minmax(76px,120px) minmax(0,1fr) max-content!important;
 gap:0 22px!important;
 padding:9px 0 0!important;
 min-height:0!important;
 box-sizing:border-box;
}
header.mgb-header-v2 .mgb-header-layout>:is(.brand,.logo,.brandmark,.cat-logo,.gift-brand){
 grid-column:1;grid-row:1;
 display:flex!important;align-items:center!important;justify-content:flex-start!important;
 width:auto!important;max-width:120px!important;
 height:auto!important;min-width:0!important;margin:0!important;
 padding:0!important;
}
header.mgb-header-v2 .mgb-header-layout>:is(.brand,.logo,.brandmark,.cat-logo,.gift-brand) img{
 display:block!important;width:auto!important;height:59px!important;max-width:112px!important;
 max-height:59px!important;object-fit:contain!important;
}
header.mgb-header-v2 .mgb-header-layout>:is(form.mgb-global-search,form.search){
 grid-column:2;grid-row:1;justify-self:center;align-self:center;
 width:100%!important;max-width:680px!important;
 min-height:51px!important;margin:0!important;padding:5px 7px 5px 14px!important;
 display:flex!important;align-items:center;gap:8px!important;
 background:linear-gradient(180deg,#fff,#f6fbfd)!important;
 border:1px solid #cddfe8!important;border-radius:13px!important;
 box-shadow:0 3px 12px #1a466110!important;
 order:unset!important;
}
header.mgb-header-v2 .mgb-header-layout>:is(form.mgb-global-search,form.search):focus-within{
 outline:2px solid #69c3d9;outline-offset:2px;
}
header.mgb-header-v2 .mgb-header-layout>:is(form.mgb-global-search,form.search) input{
 width:100%!important;min-width:0!important;min-height:36px;
 font-size:14px!important;color:#1a374a!important;
 background:transparent!important;border:0!important;
 outline:none!important;box-shadow:none!important;
}
header.mgb-header-v2 .mgb-header-layout>:is(form.mgb-global-search,form.search) button[type="submit"]{
 display:inline-flex;align-items:center;justify-content:center;
 min-height:42px!important;min-width:80px!important;
 padding:9px 17px!important;margin:0!important;
 background:linear-gradient(135deg,#0798b6,#08718d)!important;
 color:#fff!important;border:0!important;border-radius:10px!important;
 font-size:13px!important;line-height:1.2;font-weight:850!important;
 cursor:pointer;
}
header.mgb-header-v2 .mgb-header-layout>:is(form.mgb-global-search,form.search) button[type="submit"]:hover{
 background:#08617b!important;
}
header.mgb-header-v2 .mgb-header-layout>:is(#mgbHeaderCartButton,#catCartButton){
 grid-column:3!important;grid-row:1!important;
 align-self:center!important;justify-self:end!important;
 display:inline-flex!important;align-items:center;justify-content:center;
 gap:8px!important;flex:none!important;order:unset!important;
 min-height:46px!important;margin:0!important;
 padding:9px 13px!important;
 border:1px solid #cadee8!important;border-radius:12px!important;
 background:linear-gradient(180deg,#fff,#f3f9fc)!important;
 color:#16364b!important;
 box-shadow:0 3px 10px #183c510e!important;
 font-size:13px!important;font-weight:800!important;white-space:nowrap;
}
header.mgb-header-v2 .mgb-header-layout>:is(#mgbHeaderCartButton,#catCartButton):hover{
 background:#e5f4f9!important;border-color:#82c2d3!important;color:#075d76!important;
}
header.mgb-header-v2 .mgb-header-layout>:is(#mgbHeaderCartButton,#catCartButton)
 :is(.mgb-header-cart-count,.cat-cart-count,#mgbHeaderCartCount,#catCartCount){
 display:inline-flex!important;align-items:center;justify-content:center;
 height:23px;min-width:23px;margin-left:3px!important;padding:0 6px;
 border-radius:99px;background:#e5f1f5!important;color:#163d54!important;
 font-size:12px;font-weight:900;font-variant-numeric:tabular-nums;
}
header.mgb-header-v2 .mgb-header-layout > nav{
 grid-column:1/-1!important;grid-row:2!important;
 display:flex!important;align-items:center!important;justify-content:center!important;
 flex-wrap:wrap!important;gap:3px clamp(5px,1.3vw,17px)!important;
 width:100%!important;max-width:none!important;min-width:0!important;
 margin:8px 0 0!important;padding:9px 0 11px!important;
 order:unset!important;flex:none!important;
 background:#fff!important;
 border:0!important;border-top:1px solid #e3edf2!important;
 font:800 12.5px/1.3 system-ui,-apple-system,"Segoe UI",Arial,sans-serif!important;
 color:#16354a!important;
 overflow:visible!important;
}
header.mgb-header-v2 .mgb-header-layout>nav>a,
header.mgb-header-v2 .mgb-header-layout>nav>.mgb-shop>button,
header.mgb-header-v2 .mgb-header-layout>nav>.shopbox>button{
 display:inline-flex!important;align-items:center;justify-content:center;
 width:auto!important;min-height:40px!important;
 padding:9px 8px!important;margin:0!important;
 border:0!important;border-radius:9px!important;
 color:#153246!important;background:transparent!important;
 font:inherit!important;line-height:1.3!important;
 white-space:nowrap!important;text-decoration:none!important;
}
header.mgb-header-v2 .mgb-header-layout>nav>a:hover,
header.mgb-header-v2 .mgb-header-layout>nav>.mgb-shop>button:hover,
header.mgb-header-v2 .mgb-header-layout>nav>.mgb-shop>button[aria-expanded="true"],
header.mgb-header-v2 .mgb-header-layout>nav>.shopbox>button:hover,
header.mgb-header-v2 .mgb-header-layout>nav>.shopbox>button[aria-expanded="true"]{
 color:#096981!important;background:#eaf7fb!important;
}
header.mgb-header-v2 .mgb-header-layout>nav>a[aria-current="page"],
header.mgb-header-v2 .mgb-header-layout>nav>a.active{
 color:#075c7a!important;background:#e7f4fa!important;
 box-shadow:inset 0 -2px #0789a7;
}
header.mgb-header-v2 .mgb-header-layout>nav>a.mgb-nav-christmas{
 color:#0b6a4c!important;
}
header.mgb-header-v2 .mgb-header-layout>nav .mgb-shop{
 position:relative!important;flex:0 0 auto!important;width:auto!important;
}
header.mgb-header-v2 .mgb-header-layout>nav .mgb-shop-chevron{
 display:inline-block;transition:transform .2s;font-size:11px;
}
header.mgb-header-v2 .mgb-header-layout>nav .mgb-shop-btn[aria-expanded="true"] .mgb-shop-chevron{
 transform:rotate(180deg);
}
header.mgb-header-v2 .mgb-shop-menu{
 position:absolute;z-index:110;top:calc(100% + 3px);
 width:min(1010px,calc(100vw - 32px));max-width:calc(100vw - 32px);
 max-height:min(73vh,640px);overflow-y:auto;overflow-x:hidden;
 border:1px solid #d0e5eb;border-top:3px solid #098ca5;
 border-radius:0 0 20px 20px;
 background:linear-gradient(155deg,#fff 75%,#f1f9fb);
 box-shadow:0 24px 46px #0c385232;
 padding:23px 25px;
 color:#17364d;
}
header.mgb-header-v2 .mgb-shop-menu[hidden]{display:none!important}
header.mgb-header-v2 .mgb-shop-grid{
 display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px 28px;
}
header.mgb-header-v2 .mgb-shop-group h4{
 color:#0d647a;font-weight:900;font-size:13px;
 padding-bottom:8px;border-bottom:1px solid #e2edf1;
}
header.mgb-header-v2 .mgb-shop-group a{
 display:block!important;
 font-size:12px!important;line-height:1.55!important;
 font-weight:650!important;color:#3c5966!important;
 padding:7px 9px!important;border-radius:7px;
 text-decoration:none!important;
}
header.mgb-header-v2 .mgb-shop-group a:hover{
 color:#075d7a!important;background:#edf8fb!important;
}
header.mgb-header-v2 .mgb-shop-quick{
 display:flex;gap:7px;flex-wrap:wrap;
 padding:0 0 15px;margin-bottom:17px;
 border-bottom:1px solid #e2edf1;
}
header.mgb-header-v2 .mgb-shop-quick>a{
 padding:8px 13px;border:1px solid #d5e8ed;border-radius:99px;
 background:#eef8fb;color:#135f73;font-size:12px;font-weight:800;
 text-decoration:none!important;white-space:nowrap;
}
header.mgb-header-v2 .mgb-shop-quick>a:hover{
 color:#055779;background:#d5eff6;
}
header.mgb-header-v2 .mgb-header-layout>:is(.header-action,.cat-menu-toggle,.menu-toggle,.mobiletoggle){
 order:unset!important;
}
header.mgb-header-v2 > .section-location{display:none!important}
/* La página de categorías conserva el tema de sus fichas, pero comparte cabecera. */
body[data-section="categoria"] header.mgb-header-v2{
 background:#fff!important;color:var(--mgb-shell-ink)!important;
}
/* Componentes generales: misma tipografía y color sin alterar stock/precios. */
body:not([data-section="index"]) :is(.hero-copy,.deep-visual){
 border:1px solid #235b75;
 background:radial-gradient(circle at 93% 8%,#156e8a 0,transparent 44%),linear-gradient(125deg,#0a2c40,#16485e)!important;
 box-shadow:0 12px 26px #0d41551a;
}
body:not([data-section="index"]) :is(.hero-aside,.category-card,.service-card,.product-card){
 border-color:#dbe7ef;
 box-shadow:0 4px 13px #21445a0c;
}
body:not([data-section="index"]) :is(.category-card,.service-card,.product-card):hover{
 box-shadow:0 13px 24px #21445a22;
}
body:not([data-section="index"]) :is(.primary,.cat-view,.load-more):not(:disabled){
 border-radius:10px;
}
/* Aislamos los efectos principales para conservar personalidad estacional. */
body[data-section="navidad"] .christmas-hero,
body[data-section="amigo-invisible"] .gift-hero{
 box-shadow:none;
}
body[data-section="navidad"] header.mgb-header-v2:after{z-index:1}
/* Desktop mantiene la misma navegación de la portada. */
@media(min-width:901px){
 header.mgb-header-v2 .mgb-header-layout>:is(.menu-toggle,.mobiletoggle,.cat-menu-toggle){display:none!important}
}
/* Responsive: logo + carrito + hamburguesa, búsqueda debajo, navegación desplegada. */
@media(max-width:900px){
 header.mgb-header-v2 .mgb-header-layout{
  grid-template-columns:minmax(48px,auto) minmax(0,1fr) auto auto!important;
  grid-template-rows:auto auto auto!important;
  column-gap:9px!important;row-gap:8px!important;
  width:calc(100% - 26px)!important;
  padding:8px 0!important;
 }
 header.mgb-header-v2 .mgb-header-layout>:is(.brand,.logo,.brandmark,.cat-logo,.gift-brand){
  grid-column:1!important;grid-row:1!important;max-width:70px!important;
 }
 header.mgb-header-v2 .mgb-header-layout>:is(.brand,.logo,.brandmark,.cat-logo,.gift-brand) img{
  width:auto!important;height:49px!important;max-height:49px!important;
 }
 header.mgb-header-v2 .mgb-header-layout>:is(#mgbHeaderCartButton,#catCartButton){
  grid-column:3!important;grid-row:1!important;
  min-height:44px!important;padding:7px 9px!important;
 }
 header.mgb-header-v2 .mgb-header-layout>:is(.menu-toggle,.mobiletoggle,.cat-menu-toggle){
  grid-column:4!important;grid-row:1!important;
  display:inline-flex!important;align-items:center;justify-content:center;
  min-width:44px!important;height:44px!important;
  margin:0!important;order:unset!important;
  padding:7px!important;border:1px solid #cddfe7!important;
  border-radius:10px!important;background:#fff!important;
  color:#12394e!important;
 }
 header.mgb-header-v2 .mgb-header-layout>:is(form.mgb-global-search,form.search){
  grid-column:1/-1!important;grid-row:2!important;
  width:100%!important;max-width:none!important;
  min-height:48px!important;margin:0!important;
 }
 header.mgb-header-v2 .mgb-header-layout > nav{
  grid-column:1/-1!important;grid-row:3!important;
  display:none!important;flex-direction:column!important;
  justify-content:flex-start!important;align-items:stretch!important;
  gap:3px!important;
  width:100%!important;min-height:0!important;
  margin:0!important;padding:9px!important;
  max-height:min(61dvh,520px);overflow-y:auto!important;overflow-x:hidden!important;
  background:#f5fafc!important;border:1px solid #d8e7ed!important;border-radius:12px!important;
 }
 header.mgb-header-v2 .mgb-header-layout>nav:is(.open,.is-open),
 header.mgb-header-v2 .mgb-header-layout.mgb-mobile-menu-open>nav{
  display:flex!important;
 }
 header.mgb-header-v2 .mgb-header-layout>nav>a,
 header.mgb-header-v2 .mgb-header-layout>nav>.mgb-shop{
  flex:0 0 auto!important;width:100%!important;justify-content:flex-start!important;
 }
 header.mgb-header-v2 .mgb-header-layout>nav>a,
 header.mgb-header-v2 .mgb-header-layout>nav>.mgb-shop>button{
  justify-content:flex-start!important;text-align:left!important;
  width:100%!important;min-height:44px!important;
  padding:10px 12px!important;
 }
 header.mgb-header-v2 .mgb-shop-menu{
  position:static!important;top:auto!important;left:auto!important;right:auto!important;
  width:100%!important;max-width:100%!important;
  max-height:min(38dvh,330px);overflow:auto;
  padding:13px!important;margin:5px 0 9px;
  border:1px solid #d8e7ed;border-radius:12px;box-shadow:none;
 }
 header.mgb-header-v2 .mgb-shop-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
}
@media(max-width:480px){
 header.mgb-header-v2 .mgb-header-layout{
  grid-template-columns:minmax(40px,auto) minmax(0,1fr) auto auto!important;
  width:calc(100% - 22px)!important;gap:7px!important;
 }
 header.mgb-header-v2 .mgb-header-layout>:is(#mgbHeaderCartButton,#catCartButton){
  gap:5px!important;padding:7px 8px!important;font-size:12px!important;
 }
 header.mgb-header-v2 .mgb-header-layout>:is(#mgbHeaderCartButton,#catCartButton)
 :is(.mgb-header-cart-count,.cat-cart-count,#mgbHeaderCartCount,#catCartCount){
  min-width:20px;height:20px;font-size:10px;padding:0 4px;
 }
 header.mgb-header-v2 .mgb-shop-grid{grid-template-columns:1fr}
 header.mgb-header-v2 .mgb-header-layout>:is(form.mgb-global-search,form.search) input{font-size:16px!important}
 header.mgb-header-v2 .mgb-header-layout>:is(form.mgb-global-search,form.search) button[type="submit"]{
  min-width:74px!important;padding:9px!important;
 }
}
@media(prefers-reduced-motion:reduce){
 header.mgb-header-v2 .mgb-shop-chevron{transition:none}
}
