:root{--ink:#152c3d;--mid:#607385;--line:#dce8ee;--blue:#0b7194;--soft:#f4f9fb}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font:15px/1.5 system-ui,-apple-system,Segoe UI,sans-serif;background:#fff;color:var(--ink)}button,input,select{font:inherit}button{cursor:pointer}a{color:inherit;text-decoration:none}a:hover{text-decoration:underline}.cat-shell{width:min(1340px,calc(100% - 32px));margin-inline:auto}.cat-sr{position:absolute;width:1px;height:1px;clip:rect(0,0,0,0);overflow:hidden;white-space:nowrap}
.cat-header{background:white;position:sticky;top:0;z-index:30;border-bottom:1px solid var(--line);box-shadow:0 1px 9px #192e3d0d}.cat-header-row{display:flex;align-items:center;gap:15px;flex-wrap:wrap;padding-block:9px}.cat-logo img{display:block;object-fit:contain}.cat-global-search{display:flex;gap:8px;align-items:center;flex:1;min-width:210px}.cat-global-search input{min-width:0;width:100%;border:1px solid #cbdce5;border-radius:10px;padding:10px 12px}.cat-global-search button,.cat-share{background:#0a7293;border:1px solid #0a7293;color:white;border-radius:9px;padding:10px 14px;font-weight:750;font-size:13px}.cat-nav{display:flex;gap:14px;flex-wrap:wrap;font-size:13px;font-weight:730}.cat-nav a:hover{color:var(--blue)}.cat-menu-toggle{display:none;background:white;border:1px solid #bad0dd;border-radius:9px;padding:9px}
.cat-breadcrumb{display:flex;align-items:center;flex-wrap:wrap;gap:8px;font-size:12px;color:#425a6d;padding:15px 0 7px}.cat-breadcrumb strong{color:var(--ink)}.cat-intro{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:3px 0 17px}.cat-eyebrow{letter-spacing:1.4px;color:var(--blue);font-weight:820;font-size:10px}.cat-intro h1{font-size:clamp(24px,3.2vw,36px);line-height:1.2;letter-spacing:-.8px;margin:4px 0 7px}.cat-intro p{font-size:13px;color:var(--mid);margin:0}.cat-share{white-space:nowrap}
.cat-search-row{display:flex;gap:9px;padding:13px;background:var(--soft);border:1px solid var(--line);border-radius:11px;margin-bottom:14px}.cat-search-row input{flex:1;min-width:0}.cat-search-row select{min-width:185px}.cat-search-row input,.cat-search-row select,.cat-filters input:not([type=checkbox]),.cat-filters select{border:1px solid #cbdce5;background:#fff;border-radius:8px;padding:10px;width:100%;outline-offset:2px}
.cat-layout{display:grid;grid-template-columns:250px minmax(0,1fr);gap:20px;align-items:start}.cat-filters{position:sticky;top:91px;max-height:calc(100vh - 108px);overflow:auto;border:1px solid var(--line);border-radius:12px;padding:17px;display:flex;flex-direction:column;gap:9px}.cat-filters h2{font-size:16px;margin:0 0 3px}.cat-filters h3{font-size:13px;margin:15px 0 2px}.cat-filters>label:not(.cat-check){font-size:12px;font-weight:760}.cat-price{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.cat-price label{display:block;font-size:11px;font-weight:700;padding:4px 0}.cat-check{display:flex;align-items:center;gap:7px;font-size:13px;margin:9px 0}.cat-tech{display:grid;gap:8px}.cat-clear{border:1px solid #c4d7e1;color:var(--blue);background:white;border-radius:8px;padding:10px;font-weight:750}.cat-help{font-size:11px;color:var(--mid);margin:6px 0}
.cat-stats{min-height:36px;display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;font-size:13px}.cat-stats span{color:var(--mid);font-size:11px}.cat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.cat-card{min-width:0;display:flex;flex-direction:column;border:1px solid var(--line);border-radius:12px;overflow:hidden;background:white}.cat-card>a:first-child{position:relative;display:block;flex:0 0 168px;height:168px;min-height:0;min-width:0;overflow:hidden;background:#f7f9fb;padding:0;isolation:isolate}
.cat-card>a:first-child img{position:absolute;inset:10px;display:block;width:calc(100% - 20px);height:calc(100% - 20px);max-width:calc(100% - 20px);max-height:calc(100% - 20px);object-fit:contain;object-position:center;mix-blend-mode:multiply}
.cat-card>a:first-child .cat-image-empty{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;padding:10px}
.cat-card-body{position:relative;z-index:1;background:#fff}.cat-card .cat-image-empty{color:#8497a4;font-size:12px}.cat-card-body{padding:11px;display:flex;flex-direction:column;flex:1;gap:7px}.cat-brand{font-size:10px;color:var(--blue);font-weight:800;text-transform:uppercase}.cat-card-body h3{font-size:13px;line-height:1.4;min-height:53px;margin:0;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.cat-price-tag{font-size:18px;font-weight:850;margin-top:auto}.cat-old{text-decoration:line-through;color:#8796a2;font-size:11px}.cat-stock{font-size:11px;border-radius:5px;padding:4px 6px;display:inline-block;max-width:max-content;background:#eef3f6;color:#526575}.cat-stock.ok{background:#e9f8ef;color:#157b47}.cat-stock.no{background:#fff0ed;color:#a43d33}.cat-view{background:#123e54;color:#fff;border-radius:8px;text-align:center;padding:9px 8px;font-size:12px;font-weight:750;margin-top:4px}.cat-view:hover{color:white}.cat-empty{grid-column:1/-1;border:1px dashed #b9d0dc;background:var(--soft);border-radius:11px;padding:30px;text-align:center}.cat-empty p{color:var(--mid)}#catMore{display:block;margin:20px auto;border:1px solid #c9dce7;background:#fff;color:var(--blue);border-radius:8px;padding:12px 24px;font-weight:750}#catMore[hidden]{display:none}.cat-footer-help{background:#eef7fa;padding:24px;margin-top:35px;border-radius:12px}.cat-footer-help h2{font-size:20px;margin:0 0 6px}.cat-footer-help p{color:var(--mid);margin:0 0 12px}.cat-footer-help a{color:#086d8d;font-weight:760}.cat-footer{margin-top:35px;padding:25px 0;background:#123145;color:white;font-size:12px}.cat-mobile-filter{display:none}
@media(max-width:1150px){.cat-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.cat-header-row .cat-nav{order:5;width:100%;justify-content:center}}
@media(max-width:850px){.cat-header-row{gap:9px}.cat-logo img{width:52px;height:49px}.cat-global-search{order:3;flex:0 0 100%}.cat-menu-toggle{display:block;margin-left:auto}.cat-nav{display:none!important;order:4!important;background:var(--soft);padding:10px;width:100%!important}.cat-nav.is-open{display:flex!important}.cat-layout{grid-template-columns:1fr}.cat-mobile-filter{display:block;margin:0 0 10px}.cat-mobile-filter button{width:100%;text-align:left;background:white;padding:11px 12px;border:1px solid var(--line);border-radius:8px;color:var(--blue);font-weight:800}.cat-filters{display:none;position:static;max-height:none;margin-bottom:15px}.cat-filters.is-open{display:flex}.cat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.cat-intro{align-items:flex-start}.cat-share{font-size:11px}.cat-search-row{padding:8px}}
@media(max-width:460px){.cat-shell{width:calc(100% - 22px)}.cat-intro{display:block}.cat-intro p{font-size:12px}.cat-share{margin-top:12px}.cat-search-row{flex-direction:column}.cat-search-row select{min-width:0}.cat-card>a:first-child{height:136px;flex-basis:136px}.cat-card-body{padding:9px}.cat-price-tag{font-size:16px}.cat-grid{gap:8px}}
/* El carrito se mantiene accesible en el encabezado de todas las categorías. */
 .cat-header-cart{display:inline-flex;align-items:center;justify-content:center;gap:7px;flex:none;min-height:43px;padding:9px 12px;border:1px solid #103d56;border-radius:10px;background:#103d56;color:#fff;font-size:13px;font-weight:800;white-space:nowrap}
.cat-header-cart:hover{background:#0b5878;border-color:#0b5878;color:#fff}
.cat-header-cart:focus-visible{outline:3px solid #39bce0;outline-offset:2px}
.cat-header-cart svg{flex:none}
.cat-cart-count{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:22px;padding:0 5px;border-radius:99px;background:#fff;color:#103d56;font-size:12px;font-weight:850;font-variant-numeric:tabular-nums}
@media(max-width:850px){.cat-header-cart{margin-left:auto}.cat-menu-toggle{margin-left:0}}
@media(max-width:460px){.cat-header-cart{padding:9px;gap:5px;font-size:12px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}


/* Experiencia editorial MGB System: identidad coherente, acentos por familia. */
body[data-theme="clima"]{--cat-accent:#087aa6;--cat-light:#e8f8ff;--cat-deep:#123d57;--cat-burst:#9fe9ff}
body[data-theme="frio"]{--cat-accent:#29749c;--cat-light:#effaff;--cat-deep:#234b66;--cat-burst:#d2efff}
body[data-theme="cocina"]{--cat-accent:#a05b30;--cat-light:#fff6e9;--cat-deep:#69432a;--cat-burst:#ffd7a5}
body[data-theme="tech"]{--cat-accent:#216b9b;--cat-light:#eef4fc;--cat-deep:#172e54;--cat-burst:#9bcff5}
body[data-theme="componentes"]{--cat-accent:#24688b;--cat-light:#edf9fa;--cat-deep:#133b49;--cat-burst:#8fe3db}
body[data-theme="gaming"]{--cat-accent:#6955b8;--cat-light:#f2f0ff;--cat-deep:#302455;--cat-burst:#a9a0e8}
body[data-theme="hogar"]{--cat-accent:#9f6244;--cat-light:#fff6ee;--cat-deep:#554032;--cat-burst:#ffe3be}
body[data-theme]{--cat-accent-default:#087a9d;--cat-accent:var(--cat-accent,var(--cat-accent-default))}
.cat-hero{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(210px,.72fr);gap:22px;align-items:center;position:relative;overflow:hidden;border-radius:16px;padding:24px 27px;margin:3px 0 12px;background:linear-gradient(116deg,var(--cat-light,#ebf8fc),#fff 73%);border:1px solid var(--line)}
.cat-hero:before{content:"";position:absolute;right:-85px;top:-130px;width:310px;height:310px;border:55px solid var(--cat-burst,#beeffe);opacity:.18;border-radius:50%;pointer-events:none}
.cat-hero-copy{position:relative;z-index:2;min-width:0}
.cat-hero .cat-eyebrow{color:var(--cat-accent,#0a7894)}
.cat-hero h1{font-size:clamp(26px,3vw,41px);line-height:1.12;letter-spacing:-1.1px;color:var(--cat-deep,#143a51);margin:5px 0 8px}
.cat-hero-headline{font-size:clamp(15px,1.55vw,21px);font-weight:800;letter-spacing:-.3px;line-height:1.25;margin:0 0 8px;color:var(--cat-deep,#153f59)}
.cat-hero-intro{max-width:690px;color:#435768;font-size:13px;line-height:1.6;margin:0}
.cat-hero-actions{display:flex;gap:9px;align-items:center;flex-wrap:wrap;margin-top:14px}
.cat-hero-actions>a{padding:10px 14px;border-radius:8px;background:var(--cat-deep,#143b56);color:#fff;font-weight:750;font-size:12px}
.cat-hero-actions>a:hover{color:#fff}
.cat-hero-actions .cat-share{background:transparent;border:1px solid color-mix(in srgb,var(--cat-accent,#087a9d),#fff 52%);color:var(--cat-deep,#143b56);font-size:12px;padding:9px 12px}
.cat-hero-visual{position:relative;z-index:1;min-width:0;max-width:330px;justify-self:center;width:100%}
.cat-hero-image{height:172px;max-width:100%;background:#ffffffd9;border:1px solid #ffffffa3;border-radius:13px;display:grid;place-items:center;overflow:hidden;box-shadow:0 12px 30px #0b2d4f12;padding:10px}
.cat-hero-image img{width:100%;height:100%;object-fit:contain;object-position:center;display:block}
.cat-hero-placeholder{font-size:23px;letter-spacing:4px;font-weight:900;color:var(--cat-deep,#16506b);opacity:.27}
.cat-hero-caption{display:flex;flex-direction:column;gap:2px;padding:7px 3px 0}
.cat-hero-caption span{font-size:11px;color:var(--cat-accent,#087a9d);font-weight:800}
.cat-hero-caption strong{font-size:11px;color:#586c7c;font-weight:550}
.cat-benefit-strip{display:flex;gap:7px;flex-wrap:wrap;margin:0 0 14px}
.cat-benefit-strip span{background:#f5f9fb;border:1px solid #e2edf2;color:#36576a;font-size:11px;font-weight:700;padding:7px 11px;border-radius:50px}
.cat-benefit-strip span:before{content:"✓";color:var(--cat-accent,#087a9d);font-weight:900;margin-right:6px}
.cat-editorial-bottom{margin:36px 0 20px;padding:26px 24px;background:linear-gradient(125deg,#f6fafc,#fff);border:1px solid #e4edf1;border-radius:15px}
.cat-guide-heading span{font-size:10px;font-weight:850;letter-spacing:1.5px;color:var(--cat-accent,#0a7193)}
.cat-editorial-bottom h2{font-size:clamp(21px,2.5vw,28px);line-height:1.2;letter-spacing:-.5px;color:var(--cat-deep,#163b53);margin:6px 0 9px}
.cat-guide-heading p{font-size:13px;line-height:1.65;color:#556d7d;max-width:760px;margin:0 0 16px}
.cat-guide-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.cat-guide-card{padding:17px;background:#fff;border:1px solid #e1ebf0;border-radius:11px;min-width:0;border-top:3px solid var(--cat-accent,#1083a6)}
.cat-guide-card h3{font-size:15px;margin:0 0 6px;color:var(--cat-deep,#15405c)}
.cat-guide-card p{font-size:12px;line-height:1.65;color:#5c7080;margin:0}
.cat-faq{margin:26px 0 8px}.cat-faq h2{font-size:22px;margin:0 0 13px}
.cat-faq-item{background:#fff;border:1px solid #dce7ed;border-radius:9px;margin:8px 0;padding:0 13px}
.cat-faq-item summary{cursor:pointer;padding:13px 0;font-size:13px;font-weight:750;color:#204256}
.cat-faq-item p{font-size:12px;line-height:1.65;margin:0 0 14px;color:#587083}
.cat-related{margin:26px 0 0}.cat-related h2{font-size:20px}
.cat-related>div{display:flex;gap:9px;flex-wrap:wrap}
.cat-related a{background:#fff;border:1px solid #cbdee8;border-radius:8px;padding:10px 13px;font-size:12px;font-weight:740;color:var(--cat-accent,#087a9d)}
.cat-search-row input:focus,.cat-filters select:focus,.cat-filters input:focus{outline:2px solid var(--cat-accent,#087a9d);outline-offset:1px}
@media(max-width:850px){
 .cat-hero{grid-template-columns:minmax(0,1fr) 170px;gap:9px;padding:17px}
 .cat-hero-image{height:132px}
 .cat-hero h1{font-size:clamp(24px,4vw,32px)}
 .cat-hero-intro{font-size:12px}
 .cat-guide-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:570px){
 .cat-hero{display:block;padding:16px 15px 13px}
 .cat-hero:before{width:170px;height:170px;right:-110px;top:-80px;border-width:25px}
 .cat-hero h1{font-size:26px}
 .cat-hero-headline{font-size:16px}
 .cat-hero-intro{font-size:12px}
 .cat-hero-visual{display:none}
 .cat-hero-actions{margin-top:12px}
 .cat-hero-actions>a,.cat-hero-actions .cat-share{padding:9px 11px}
 .cat-benefit-strip{gap:5px;margin-bottom:9px}
 .cat-benefit-strip span{font-size:10px;padding:6px 8px}
 .cat-editorial-bottom{padding:17px 13px;margin-top:23px}
 .cat-guide-grid{grid-template-columns:1fr;gap:9px}
}

/* Foto de portada: galería de artículos existentes del catálogo. */
.cat-hero-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;width:100%;height:100%;min-width:0}
.cat-hero-gallery.single{grid-template-columns:1fr}
.cat-hero-gallery-item{height:100%;min-width:0;min-height:0;display:grid;place-items:center;padding:3px;background:#fff;border-radius:8px;overflow:hidden;isolation:isolate}
.cat-hero-gallery-item img{display:block;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;object-position:center}
.cat-hero-gallery-item:focus-visible{outline:3px solid var(--cat-accent,#087a9d);outline-offset:-3px}

/* Compra directa desde las tarjetas de categorías, incluso en pantallas pequeñas. */
.cat-actions{display:grid;grid-template-columns:1fr;gap:7px;margin-top:5px}
.cat-actions.purchasable{grid-template-columns:repeat(2,minmax(0,1fr))}
.cat-actions .cat-buy-now,.cat-actions .cat-add,.cat-actions .cat-view{display:flex;align-items:center;justify-content:center;width:100%;min-width:0;min-height:42px;padding:9px 7px;border-radius:8px;text-align:center;font:750 12px/1.25 system-ui,sans-serif;text-decoration:none;margin:0}
.cat-actions .cat-buy-now{grid-column:1/-1;background:#123e54;border:1px solid #123e54;color:#fff}
.cat-actions .cat-add{background:#fff;border:1px solid #92b8c9;color:#123e54}
.cat-actions .cat-view{background:#eaf4f8;border:1px solid #d3e5ee;color:#20536b}
.cat-actions .cat-buy-now:hover{background:#0b3042}
.cat-actions .cat-add:hover,.cat-actions .cat-view:hover{background:#dcecf3;color:#123e54}
.cat-actions :is(button,a):focus-visible{outline:3px solid #3bb5d6;outline-offset:2px}
@media(max-width:570px){
 .cat-actions.purchasable{grid-template-columns:1fr}
 .cat-actions .cat-buy-now{grid-column:auto}
 .cat-actions .cat-buy-now,.cat-actions .cat-add,.cat-actions .cat-view{min-height:39px;font-size:11px;padding:8px 5px}
}
