/* NXB-06AD · Identidad corporativa + contraste comercial + banners laterales.
   Debe cargarse DESPUÉS de todas las otras hojas de estilo. */
.nxb06ad-auth-logo{display:block;max-width:min(275px,75vw);width:auto;max-height:85px;height:auto;object-fit:contain;object-position:left center}
.nxb06ad-auth-brand{min-height:66px;display:flex!important;align-items:center;gap:10px}
.nxb06ad-auth-brand>strong,.nxb06ad-auth-name{color:inherit;font-size:clamp(14px,1.5vw,23px);font-weight:800;line-height:1.3}
.customer-auth-brand .nxb06ad-auth-logo{max-height:68px;max-width:220px}
.pos-brand-mark svg,.pro-brand-mark svg,.store-logo-mark svg{width:23px;height:23px;display:block}
.pro-brand.has-logo .pro-brand-logo-image,.pos-brand.has-logo .pos-brand-logo-image{object-fit:contain;object-position:left center;max-width:190px;height:54px;max-height:54px}
.nxb06ad-install-brand{max-width:42px;max-height:42px;object-fit:contain;border-radius:8px}
/* Editor corporativo */
.nxb06ad-brand-editor{margin:0 0 22px;padding:24px;border:1px solid #dce5e9;border-radius:18px;background:#fff}
.nxb06ad-brand-editor .pro-panel-head{margin-bottom:16px}.nxb06ad-brand-form{display:grid;gap:15px}
.nxb06ad-brand-preview{display:flex;align-items:stretch;gap:14px;flex-wrap:wrap}
.nxb06ad-brand-demo,.nxb06ad-favicon-demo{border:1px dashed #b8cbd0;border-radius:13px;padding:14px;min-width:190px;display:flex;flex-direction:column;align-items:start;justify-content:center;gap:8px;background:#f7fafb}
.nxb06ad-brand-demo{flex:1}.nxb06ad-brand-demo img{max-width:230px;max-height:85px;object-fit:contain}
.nxb06ad-favicon-demo{min-width:125px}.nxb06ad-favicon-demo img{width:36px;height:36px;object-fit:contain}
.nxb06ad-brand-demo small,.nxb06ad-favicon-demo small{font-size:11px;color:#576977}
.nxb06ad-brand-inputs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.nxb06ad-brand-inputs label{display:grid;gap:6px;font-size:13px;font-weight:750;color:#213240}
.nxb06ad-brand-inputs small{color:#5b6976;font-size:11px;font-weight:450}
.nxb06ad-brand-inputs input[type=file]{display:block;min-width:0;width:100%;border:1px solid #cbd5df;border-radius:10px;padding:11px;background:#f9fbfc;color:#243146}
.nxb06ad-brand-actions{display:flex;justify-content:flex-end;align-items:center;gap:17px;flex-wrap:wrap}
.nxb06ad-brand-actions label{display:flex;align-items:center;gap:7px;font-size:12px;color:#334454}
.nxb06ad-brand-actions button{min-height:44px}
/* Administración de banners por sección */
.nxb06ad-section-banner-settings{margin:24px 0;padding:22px;border-radius:18px;background:#fff;border:1px solid #dce5e9}
.nxb06ad-section-config-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:15px}
.nxb06ad-section-config-card{border:1px solid #dce5e9;border-radius:15px;padding:15px;display:grid;gap:12px;background:#fbfcfd;min-width:0}
.nxb06ad-section-config-card>label{font-size:12px;font-weight:700;color:#243146;display:grid;gap:6px}
.nxb06ad-section-config-card>label small{font-size:11px;font-weight:450;color:#526175}
.nxb06ad-section-config-card input[type=file],.nxb06ad-section-config-card input[type=text],.nxb06ad-section-config-card select{width:100%;min-width:0;min-height:41px;border:1px solid #cbd5df;border-radius:9px;padding:8px;background:#fff;color:#243146}
.nxb06ad-section-config-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;color:#243146}
.nxb06ad-section-config-head>strong{font-size:16px}.nxb06ad-section-config-head label{display:flex;align-items:center;gap:7px;font-weight:750;font-size:12px}
.nxb06ad-banner-preview{border:1px dashed #bacbd0;background:#f2f6f8;border-radius:12px;min-height:140px;display:grid;place-items:center;overflow:hidden;color:#586779;font-size:12px}
.nxb06ad-banner-preview img{width:100%;height:175px;object-fit:contain}
.nxb06ad-banner-keep{display:flex;flex-wrap:wrap;gap:12px;font-size:11px;color:#405163}
.nxb06ad-banner-keep label{display:flex;gap:5px;align-items:center}
.nxb06ad-banner-devices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.nxb06ad-banner-devices label{font-size:11px;color:#334454;display:grid;gap:6px}
.nxb06ad-section-config-card>button{min-height:43px}
/* Lateral: solo existe DOM si el banner está activado y tiene imagen.
   Desactivado = tienda conserva el diseño original a ancho completo. */
body.nxb-premium-store .nxb06ad-section-layout{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(190px,23%)!important;gap:clamp(12px,1.5vw,23px)!important;align-items:stretch;min-width:0}
body.nxb-premium-store .nxb06ad-section-products{min-width:0}
body.nxb-premium-store .nxb06ad-section-layout .store-pro-products{grid-template-columns:repeat(3,minmax(0,1fr))!important}
body.nxb-premium-store .nxb06ad-section-banner{display:flex;position:relative;min-height:320px;max-height:600px;overflow:hidden;border-radius:17px;text-decoration:none;isolation:isolate;border:1px solid var(--nx-surface-line,#dbe5da);background:var(--nx-soft,#e8f0eb)}
body.nxb-premium-store .nxb06ad-section-banner picture{position:absolute;inset:0;width:100%;height:100%}
body.nxb-premium-store .nxb06ad-section-banner img{width:100%;height:100%;display:block;object-fit:cover;object-position:center}
body.nxb-premium-store .nxb06ad-section-banner:after{content:"";position:absolute;inset:55% 0 0;background:linear-gradient(transparent,#0009);pointer-events:none}
body.nxb-premium-store .nxb06ad-banner-action{position:absolute;z-index:1;bottom:16px;left:12px;right:12px;padding:12px;text-align:center;font-weight:800;font-size:13px;line-height:1.3;border-radius:10px;color:var(--nx-on-accent,#fff);background:var(--nx-accent,#176a4b)}
body.nxb-premium-store .nxb06ad-section-banner:focus-visible{outline:3px solid var(--nx-accent);outline-offset:4px}
/* 06AD: superficies y textos siempre emparejados, incluso con paletas claras. */
body.nxb-premium-store .store-category-menu>summary{background:var(--nx-dark,#203c33)!important;color:var(--nx-on-dark,#fff)!important;border:1px solid var(--nx-surface-line,#e3e9e5)!important}
body.nxb-premium-store .store-category-menu>summary :is(span,svg){color:inherit!important;stroke:currentColor!important;-webkit-text-fill-color:currentColor!important}
body.nxb-premium-store .store-category-menu[open]>summary,body.nxb-premium-store .store-category-menu>summary:hover{background:var(--nx-accent,#176a4b)!important;color:var(--nx-on-accent,#fff)!important}
body.nxb-premium-store .store-category-mega{background:var(--nx-surface,#fff)!important;color:var(--nx-on-light,#243146)!important}
body.nxb-premium-store .store-category-mega .store-category-list :is(a,span,small){color:var(--nx-on-light,#243146)!important}
body.nxb-premium-store .store-hero-main .store-hero-cta,body.nxb-premium-store .store-hero-cta{background:var(--nx-accent,#176a4b)!important;color:var(--nx-on-accent,#fff)!important;-webkit-text-fill-color:var(--nx-on-accent,#fff)!important}
body.nxb-premium-store .store-hero-cta :is(span,svg){color:inherit!important;-webkit-text-fill-color:inherit!important}
body.nxb-premium-store .store-pro-section.dark-band{background:var(--nx-dark,#253833)!important;color:var(--nx-on-dark,#fff)!important}
body.nxb-premium-store .store-pro-section.dark-band .store-section-head :is(h2,p,span,a){color:var(--nx-on-dark,#fff)!important;-webkit-text-fill-color:var(--nx-on-dark,#fff)!important}
body.nxb-premium-store .store-pro-section.dark-band .store-pro-product{background:#fff!important;color:var(--nx-on-light,#243146)!important}
body.nxb-premium-store .store-pro-section.dark-band .store-pro-product :is(h3,small,p,strong,span){color:var(--nx-on-light,#243146)!important;-webkit-text-fill-color:initial!important}
body.nxb-premium-store .store-pro-section.dark-band .store-pro-product :is(.store-add-cart){color:var(--nx-on-accent,#fff)!important}
body.nxb-premium-store .store-section-head:not(.light) :is(h2,p){color:var(--nx-on-light,#243146)!important}
/* Iconos SVG sobrios, centrados, no caracteres tipográficos especiales. */
body.nxb-premium-store .store-confidence .nxb06ad-feature-icon{width:43px!important;height:43px!important;flex:0 0 43px;display:grid!important;place-items:center;background:var(--nx-accent-soft,#edf6ed)!important;color:var(--nx-link,#18643e)!important;border-radius:12px}
body.nxb-premium-store .store-confidence .nxb06ad-feature-icon svg{width:23px;height:23px;display:block;stroke:currentColor}
body.nxb-premium-store .store-confidence article{grid-template-columns:43px minmax(0,1fr)!important;align-items:center;gap:11px}
@media(min-width:761px) and (max-width:1100px){
 body.nxb-premium-store .nxb06ad-section-layout{grid-template-columns:minmax(0,1fr) minmax(175px,25%)!important}
 body.nxb-premium-store .nxb06ad-section-layout .store-pro-products{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(min-width:1024px){
 body.nxb-premium-store .nxb06ad-section-layout[data-banner-desktop="0"]{grid-template-columns:1fr!important}
 body.nxb-premium-store .nxb06ad-section-layout[data-banner-desktop="0"]>.nxb06ad-section-banner{display:none!important}
 body.nxb-premium-store .nxb06ad-section-layout[data-banner-desktop="0"] .store-pro-products{grid-template-columns:repeat(var(--section-cols-desktop,4),minmax(0,1fr))!important}
}
@media(min-width:761px) and (max-width:1023px){
 body.nxb-premium-store .nxb06ad-section-layout[data-banner-tablet="0"]{grid-template-columns:1fr!important}
 body.nxb-premium-store .nxb06ad-section-layout[data-banner-tablet="0"]>.nxb06ad-section-banner{display:none!important}
 body.nxb-premium-store .nxb06ad-section-layout[data-banner-tablet="0"] .store-pro-products{grid-template-columns:repeat(var(--section-cols-tablet,3),minmax(0,1fr))!important}
}
@media(max-width:760px){
 .nxb06ad-brand-inputs,.nxb06ad-section-config-grid{grid-template-columns:1fr}
 body.nxb-premium-store .nxb06ad-section-layout{grid-template-columns:1fr!important}
 body.nxb-premium-store .nxb06ad-section-layout .store-pro-products{grid-template-columns:repeat(var(--section-cols-mobile,2),minmax(0,1fr))!important}
 body.nxb-premium-store .nxb06ad-section-layout>.nxb06ad-section-banner{height:auto;min-height:0;aspect-ratio:16/9;max-height:320px}
 body.nxb-premium-store .nxb06ad-section-layout[data-banner-mobile="0"]>.nxb06ad-section-banner{display:none!important}
 body.nxb-premium-store .store-confidence .nxb06ad-feature-icon{width:32px!important;height:32px!important;flex-basis:32px}
 body.nxb-premium-store .store-confidence .nxb06ad-feature-icon svg{width:19px;height:19px}
 body.nxb-premium-store .store-confidence article{grid-template-columns:32px minmax(0,1fr)!important}
 .nxb06ad-brand-actions{justify-content:flex-start}
}
@media(prefers-reduced-motion:reduce){body.nxb-premium-store .nxb06ad-section-banner{transition:none}}

/* El hero tiene una sombra oscura sobre fotografías; el texto debe ser claro incluso cuando la cabecera elegida sea clara. */
body.nxb-premium-store .store-hero-main .store-hero-copy :is(h1,h2,p),body.nxb-premium-store .store-hero-main .store-hero-kicker{color:#fff!important;-webkit-text-fill-color:#fff!important}
