/* DAX: portada y colecciones inspiradas en la vista previa aprobada. No aplica al carrito o admin. */
html[data-theme=dark] body:has(#view .reference-hero),html[data-theme=dark] body[data-dax-collection]{
 --dax-preview-bg:#09090a;--dax-preview-text:#f5f6f7;--dax-preview-muted:#aab0bb;--dax-preview-blue:#bccfdd;
 --v2-card:#111216;--v2-line:#292c32;
 --v2-product-art:radial-gradient(ellipse at 50% 45%,#34373d,#23252a 80%);
 background:var(--dax-preview-bg);
}
html[data-theme=dark] body:has(#view .reference-hero)>header{background:#0c0d0f!important;border-bottom:1px solid #202125;min-height:72px}
html[data-theme=dark] body:has(#view .reference-hero) #view .reference-hero h1{
 color:var(--dax-preview-text);font:800 clamp(2.5rem,5vw,4.35rem)/1.05 'DM Sans',system-ui,sans-serif;
 max-width:min(100%,650px);letter-spacing:-.037em;margin:0 0 16px;
}
html[data-theme=dark] body:has(#view .reference-hero) #view .reference-hero h1 em{
 font-weight:650;color:var(--dax-preview-blue);white-space:normal;
}
html[data-theme=dark] body:has(#view .reference-hero) #view .reference-hero .eyebrow{color:var(--dax-preview-blue);font-size:.72rem;letter-spacing:.19em}
html[data-theme=dark] body:has(#view .reference-hero) #view .reference-hero>p:not(.eyebrow){max-width:340px;color:#d1d5dc;margin:0 0 22px}
html[data-theme=dark] body:has(#view .reference-hero) #view .reference-hero .btn{background:#c5d6e4;color:#111821;border-radius:10px;min-height:44px}
html[data-theme=dark] body:has(#view .reference-hero) #view .reference-hero .hero-secondary{
 color:#bccfdd;background:#13161b;border:1px solid #30353e;border-radius:10px;min-height:44px;padding:10px 14px;text-decoration:none;
 display:inline-flex;align-items:center;justify-content:center;
}
html[data-theme=dark] body:has(#view .reference-hero) #view .catalog-section{
 width:min(1190px,calc(100% - 64px));max-width:none;padding:34px 0 24px;margin-inline:auto;font-family:'DM Sans',system-ui,sans-serif
}
html[data-theme=dark] body:has(#view .reference-hero) #view .catalog-heading h2{
 font:800 clamp(1.65rem,3vw,2.5rem)/1.05 'DM Sans',system-ui,sans-serif;letter-spacing:-.037em;
}
html[data-theme=dark] body:has(#view .reference-hero) #view .catalog-controls input{
 background:#15181e;border:1px solid #363d47;border-radius:10px;min-height:46px;
}
html[data-theme=dark] body[data-dax-collection] .ph{
 width:min(1190px,calc(100% - 64px));max-width:none;margin:18px auto;
 border-radius:22px;padding:clamp(22px,4vw,43px);
 background:linear-gradient(130deg,#151b23,#111216 66%);border:1px solid #292c32;
}
html[data-theme=dark] body[data-dax-collection] .ph h1{
 font-family:'DM Sans',system-ui,sans-serif;font-weight:800;letter-spacing:-.043em;color:#f5f6f7;
}
html[data-theme=dark] body[data-dax-collection] .ph>p{color:#adb8c5}
@media(max-width:850px){
 html[data-theme=dark] body:has(#view .reference-hero) #view .reference-hero,
 html[data-theme=dark] body:has(#view .reference-hero) #view .catalog-section,
 html[data-theme=dark] body[data-dax-collection] .ph{width:calc(100% - 36px)!important}
}
@media(max-width:650px){
 html[data-theme=dark] body:has(#view .reference-hero)>header{min-height:62px}
 html[data-theme=dark] body:has(#view .reference-hero) #view .reference-hero{
  display:grid;grid-template-columns:minmax(0,1.12fr) minmax(0,1fr);
  justify-items:stretch;align-content:start;column-gap:10px;row-gap:0;
  width:calc(100% - 24px)!important;min-height:0;margin:12px auto 0!important;
  padding:0 0 20px;border:0!important;border-radius:16px!important;overflow:hidden;isolation:isolate;
  background:#0c0e11!important;box-shadow:0 20px 55px #0008!important;
 }
 html[data-theme=dark] body:has(#view .reference-hero) #view .reference-hero::after{display:none!important}
 html[data-theme=dark] body:has(#view .reference-hero) #view .reference-hero::before{
  content:"";position:relative;inset:auto!important;display:block;grid-column:1/-1;
  width:100%;height:auto!important;max-height:440px;aspect-ratio:690/648;
  z-index:0;border-radius:0;mask-image:none!important;opacity:1!important;pointer-events:none;
  background:linear-gradient(0deg,#0c0e11 0%,#0c0e1100 9%),url('/img/hero-dax-tres-cajas-mobile.webp') center center/contain no-repeat!important;
 }
 html[data-theme=dark] body:has(#view .reference-hero) #view .reference-hero>p,
 html[data-theme=dark] body:has(#view .reference-hero) #view .reference-hero>h1{grid-column:1/-1;max-width:none;margin-inline:18px}
 html[data-theme=dark] body:has(#view .reference-hero) #view .reference-hero .eyebrow{margin-top:13px;margin-bottom:9px}
 html[data-theme=dark] body:has(#view .reference-hero) #view .reference-hero h1{font-size:clamp(1.78rem,8.8vw,3.15rem);line-height:1.05;margin-bottom:12px}
 html[data-theme=dark] body:has(#view .reference-hero) #view .reference-hero>p:not(.eyebrow){margin:0 18px 18px;font-size:.94rem}
 html[data-theme=dark] body:has(#view .reference-hero) #view .reference-hero .btn,
 html[data-theme=dark] body:has(#view .reference-hero) #view .reference-hero .hero-secondary{
  width:auto;min-width:0;min-height:44px;display:inline-flex;align-items:center;justify-content:center;
  padding:8px;line-height:1.2;text-align:center;font-size:.86rem;white-space:normal;
 }
 html[data-theme=dark] body:has(#view .reference-hero) #view .reference-hero .btn{grid-column:1;margin:0 0 0 18px}
 html[data-theme=dark] body:has(#view .reference-hero) #view .reference-hero .hero-secondary{grid-column:2;margin:0 18px 0 0}
 html[data-theme=dark] body:has(#view .reference-hero) #view .catalog-section,
 html[data-theme=dark] body[data-dax-collection] .ph{width:calc(100% - 24px)!important;padding-top:23px}
 html[data-theme=dark] body:has(#view .reference-hero) #view .catalog-heading{grid-template-columns:minmax(0,1fr);gap:7px}
 html[data-theme=dark] body:has(#view .reference-hero) #view .catalog-heading .available-label{justify-self:start}
}

/* Escritorio: hero de borde a borde como antes de la demo. Mantener los márgenes
   fluidos sólo en el contenido para que en 1080p, QHD y 4K no quede una columna central. */
@media(min-width:651px){
 html[data-theme=dark] body:has(#view .reference-hero),html[data-theme=dark] body[data-dax-collection]{
  --dax-wide-gutter:clamp(20px,4.7vw,100px);
 }
 html[data-theme=dark] body:has(#view .reference-hero)>header{
  width:100%;max-width:none;padding-inline:var(--dax-wide-gutter);
 }
 html[data-theme=dark] body:has(#view .reference-hero) #view .reference-hero{
  width:100%!important;max-width:none!important;margin:0!important;border-radius:0!important;
  padding-inline:var(--dax-wide-gutter);
 }
 html[data-theme=dark] body:has(#view .reference-hero) #view .reference-hero h1{
  max-width:min(52vw,660px);
 }
 html[data-theme=dark] body:has(#view .reference-hero) #view .catalog-section{
  width:100%!important;max-width:none;padding-inline:var(--dax-wide-gutter);
 }
 html[data-theme=dark] body[data-dax-collection] .ph{
  width:calc(100% - 2 * var(--dax-wide-gutter))!important;
  max-width:none;margin-inline:var(--dax-wide-gutter);
 }
 html[data-theme=dark] body[data-dax-collection] main .wrap{
  width:100%;max-width:none;padding-inline:var(--dax-wide-gutter);
 }
}
