/* Super Swish v1727 — Tarjetas de categorias UN SOLO ICONO / PC + movil.
   Sustituye los fondos pseudo-iconos heredados de v1704 y el SVG incorporado de v146.
   No interviene en Firebase, promociones, carrito ni servidor. */
html body#ssRacingPage:has(#mainContainer.ss-client-modern[data-client-page="home"]) #mainContainer.ss-client-modern[data-client-page="home"] > nav.ssw112-types.ssw113-types.ssw146-types{
  display:grid!important;
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
  grid-template-rows:78px!important;
  grid-auto-rows:78px!important;
  align-items:stretch!important;
  gap:8px!important;
  box-sizing:border-box!important;
  width:min(100%,1080px)!important;
  max-width:1080px!important;
  min-width:0!important;
  height:auto!important;
  max-height:none!important;
  overflow:visible!important;
  margin:9px auto 14px!important;
  padding:0!important;
  position:relative!important;
  inset:auto!important;
  transform:none!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
}
/* Exact structure: four categories and one Más; extras occupy a second row ONLY on expand. */
html body#ssRacingPage:has(#mainContainer.ss-client-modern[data-client-page="home"]) #mainContainer.ss-client-modern[data-client-page="home"] > nav.ssw112-types.ssw113-types.ssw146-types > button.ssw146-category[data-value],
html body#ssRacingPage:has(#mainContainer.ss-client-modern[data-client-page="home"]) #mainContainer.ss-client-modern[data-client-page="home"] > nav.ssw112-types.ssw113-types.ssw146-types > button.ssw1678-more-categories{
  display:flex!important;
  flex-flow:column nowrap!important;
  align-items:center!important;
  justify-content:center!important;
  box-sizing:border-box!important;
  height:78px!important;min-height:78px!important;max-height:78px!important;
  width:100%!important;min-width:0!important;max-width:100%!important;
  gap:4px!important;
  margin:0!important;padding:7px 6px!important;
  position:relative!important;
  transform:none!important;
  overflow:hidden!important;
  font-family:inherit!important;
  text-align:center!important;
  white-space:normal!important;
  border-radius:15px!important;
  border:1px solid #525252!important;
  background:linear-gradient(145deg,#292a2c,#090a0b)!important;
  color:#fff!important;
  box-shadow:0 3px 9px #0005!important;
  text-indent:0!important;
  font-size:12px!important;
  line-height:1.15!important;
}
html body#ssRacingPage:has(#mainContainer.ss-client-modern[data-client-page="home"]) #mainContainer.ss-client-modern[data-client-page="home"] > nav.ssw112-types.ssw113-types.ssw146-types > button.ssw146-category.active[data-value],
html body#ssRacingPage:has(#mainContainer.ss-client-modern[data-client-page="home"]) #mainContainer.ss-client-modern[data-client-page="home"] > nav.ssw112-types.ssw113-types.ssw146-types > button.ssw146-category[aria-pressed="true"][data-value]{
 background:linear-gradient(150deg,#fff34a,#ffce00)!important;
 border-color:#ffe76e!important;color:#080808!important;
 box-shadow:0 0 9px #f8ce0049!important;
}
/* Kill OLD image pseudo elements globally, including PC :has and :before rules. */
html body#ssRacingPage:has(#mainContainer.ss-client-modern[data-client-page="home"]) #mainContainer.ss-client-modern[data-client-page="home"] > nav.ssw112-types.ssw113-types.ssw146-types > button.ssw146-category[data-value]::before,
html body#ssRacingPage:has(#mainContainer.ss-client-modern[data-client-page="home"]) #mainContainer.ss-client-modern[data-client-page="home"] > nav.ssw112-types.ssw113-types.ssw146-types > button.ssw146-category[data-value]::after,
html body#ssRacingPage:has(#mainContainer.ss-client-modern[data-client-page="home"]) #mainContainer.ss-client-modern[data-client-page="home"] > nav.ssw112-types.ssw113-types.ssw146-types > button.ssw1678-more-categories::before,
html body#ssRacingPage:has(#mainContainer.ss-client-modern[data-client-page="home"]) #mainContainer.ss-client-modern[data-client-page="home"] > nav.ssw112-types.ssw113-types.ssw146-types > button.ssw1678-more-categories::after{
 content:none!important;display:none!important;background:none!important;
 width:0!important;height:0!important;min-height:0!important;margin:0!important;
}
/* Only the dedicated SVG asset remains; hide obsolete markup from cached rendering. */
html body#ssRacingPage:has(#mainContainer.ss-client-modern[data-client-page="home"]) #mainContainer.ss-client-modern[data-client-page="home"] > nav.ssw112-types.ssw113-types.ssw146-types > button.ssw146-category[data-value] > svg,
html body#ssRacingPage:has(#mainContainer.ss-client-modern[data-client-page="home"]) #mainContainer.ss-client-modern[data-client-page="home"] > nav.ssw112-types.ssw113-types.ssw146-types > button.ssw146-category[data-value] > .ssw1724-cat-symbol{
 display:none!important;
}
html body#ssRacingPage:has(#mainContainer.ss-client-modern[data-client-page="home"]) #mainContainer.ss-client-modern[data-client-page="home"] > nav.ssw112-types.ssw113-types.ssw146-types > button.ssw146-category[data-value] > img.ssw1725-cat-icon,
html body#ssRacingPage:has(#mainContainer.ss-client-modern[data-client-page="home"]) #mainContainer.ss-client-modern[data-client-page="home"] > nav.ssw112-types.ssw113-types.ssw146-types > button.ssw1678-more-categories > img.ssw1727-more-icon{
 display:block!important;position:static!important;inset:auto!important;
 width:40px!important;height:40px!important;
 min-width:40px!important;min-height:40px!important;max-width:40px!important;max-height:40px!important;
 flex:0 0 40px!important;object-fit:contain!important;object-position:center!important;
 padding:0!important;margin:0!important;filter:none!important;opacity:1!important;
 border:0!important;background:transparent!important;transform:none!important;
}
html body#ssRacingPage:has(#mainContainer.ss-client-modern[data-client-page="home"]) #mainContainer.ss-client-modern[data-client-page="home"] > nav.ssw112-types.ssw113-types.ssw146-types > button.ssw146-category[data-value] > span.ssw1727-cat-label,
html body#ssRacingPage:has(#mainContainer.ss-client-modern[data-client-page="home"]) #mainContainer.ss-client-modern[data-client-page="home"] > nav.ssw112-types.ssw113-types.ssw146-types > button.ssw1678-more-categories > span.ssw1727-more-label{
 display:block!important;position:static!important;flex:0 0 auto!important;
 width:100%!important;max-width:100%!important;height:auto!important;min-height:14px!important;max-height:none!important;
 padding:0!important;margin:0!important;overflow:visible!important;
 font-size:12px!important;font-weight:850!important;line-height:1.17!important;
 letter-spacing:0!important;text-transform:none!important;text-indent:0!important;
 text-align:center!important;white-space:normal!important;word-break:normal!important;
 color:inherit!important;opacity:1!important;
}
html body#ssRacingPage:has(#mainContainer.ss-client-modern[data-client-page="home"]) #mainContainer.ss-client-modern[data-client-page="home"] > nav.ssw112-types.ssw113-types.ssw146-types > button.ssw146-category:not(.ssw1678-category-extra){grid-row:1!important;grid-column:auto!important;order:0!important;}
html body#ssRacingPage:has(#mainContainer.ss-client-modern[data-client-page="home"]) #mainContainer.ss-client-modern[data-client-page="home"] > nav.ssw112-types.ssw113-types.ssw146-types > button.ssw1678-more-categories{
 display:flex!important;grid-row:1!important;grid-column:5!important;order:0!important;
 background:linear-gradient(145deg,#292a2c,#090a0b)!important;
}
html body#ssRacingPage:has(#mainContainer.ss-client-modern[data-client-page="home"]) #mainContainer.ss-client-modern[data-client-page="home"] > nav.ssw112-types.ssw113-types.ssw146-types > button.ssw146-category.ssw1678-category-extra[data-value]{
 display:none!important;grid-row:2!important;grid-column:auto!important;order:1!important;
}
html body#ssRacingPage:has(#mainContainer.ss-client-modern[data-client-page="home"]) #mainContainer.ss-client-modern[data-client-page="home"] > nav.ssw112-types.ssw113-types.ssw146-types.ssw1678-categories-expanded > button.ssw146-category.ssw1678-category-extra[data-value]{display:flex!important;}
/* The old 'los comercios' appended by a legacy stylesheet must not appear. */
html body#ssRacingPage:has(#mainContainer.ss-client-modern[data-client-page="home"]) #mainContainer.ss-client-modern[data-client-page="home"] > nav.ssw112-types.ssw113-types.ssw146-types button.ssw146-category[data-value] span::before,
html body#ssRacingPage:has(#mainContainer.ss-client-modern[data-client-page="home"]) #mainContainer.ss-client-modern[data-client-page="home"] > nav.ssw112-types.ssw113-types.ssw146-types button.ssw146-category[data-value] span::after{content:none!important;display:none!important;}
@media(max-width:780px){
 html body#ssRacingPage:has(#mainContainer.ss-client-modern[data-client-page="home"]) #mainContainer.ss-client-modern[data-client-page="home"] > nav.ssw112-types.ssw113-types.ssw146-types{
  width:100%!important;max-width:100%!important;grid-template-rows:72px!important;grid-auto-rows:72px!important;
  gap:5px!important;margin:0 0 12px!important;
 }
 html body#ssRacingPage:has(#mainContainer.ss-client-modern[data-client-page="home"]) #mainContainer.ss-client-modern[data-client-page="home"] > nav.ssw112-types.ssw113-types.ssw146-types > button.ssw146-category[data-value],
 html body#ssRacingPage:has(#mainContainer.ss-client-modern[data-client-page="home"]) #mainContainer.ss-client-modern[data-client-page="home"] > nav.ssw112-types.ssw113-types.ssw146-types > button.ssw1678-more-categories{
  height:72px!important;min-height:72px!important;max-height:72px!important;
  padding:5px 1px!important;gap:3px!important;border-radius:12px!important;
 }
 html body#ssRacingPage:has(#mainContainer.ss-client-modern[data-client-page="home"]) #mainContainer.ss-client-modern[data-client-page="home"] > nav.ssw112-types.ssw113-types.ssw146-types > button.ssw146-category[data-value] > img.ssw1725-cat-icon,
 html body#ssRacingPage:has(#mainContainer.ss-client-modern[data-client-page="home"]) #mainContainer.ss-client-modern[data-client-page="home"] > nav.ssw112-types.ssw113-types.ssw146-types > button.ssw1678-more-categories > img.ssw1727-more-icon{
  width:33px!important;height:33px!important;min-width:33px!important;min-height:33px!important;max-width:33px!important;max-height:33px!important;flex-basis:33px!important;
 }
 html body#ssRacingPage:has(#mainContainer.ss-client-modern[data-client-page="home"]) #mainContainer.ss-client-modern[data-client-page="home"] > nav.ssw112-types.ssw113-types.ssw146-types > button.ssw146-category[data-value] > span.ssw1727-cat-label,
 html body#ssRacingPage:has(#mainContainer.ss-client-modern[data-client-page="home"]) #mainContainer.ss-client-modern[data-client-page="home"] > nav.ssw112-types.ssw113-types.ssw146-types > button.ssw1678-more-categories > span.ssw1727-more-label{
  font-size:clamp(8.1px,2.45vw,11px)!important;line-height:1.12!important;min-height:12px!important;
 }
}
