/* Super Swish v1735 — dos estilos conmutables. Por defecto BLANCO.
   El negro reutiliza el CSS negro premium original al desactivar solo las dos
   hojas blancas v1733/v1734. Esta hoja no cambia reglas de negocio. */
html[data-ssw-theme="light"] body#ssRacingPage #mainContainer.ss-client-modern[data-client-page="home"] header.ssw146-topnav button.ssw146-logo {
  background-color:transparent!important;
  background-image:url('/assets/ssw1735-logo-claro.png')!important;
  background-repeat:no-repeat!important;
  background-position:center!important;
  background-size:contain!important;
  filter:none!important;
}
html[data-ssw-theme="dark"] body#ssRacingPage #mainContainer.ss-client-modern[data-client-page="home"] header.ssw146-topnav button.ssw146-logo {
  background-color:transparent!important;
  background-image:url('/assets/ssw1735-logo-oscuro.png')!important;
  background-repeat:no-repeat!important;
  background-position:center!important;
  background-size:contain!important;
  filter:none!important;
}
/* El nuevo botón aparece únicamente en Inicio cliente y no cubre el logotipo. */
html body#ssRacingPage #mainContainer.ss-client-modern[data-client-page="home"] header.ssw146-topnav button.ssw1735-theme-toggle {
  all:unset;
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  box-sizing:border-box!important;flex:0 0 36px!important;
  width:36px!important;height:36px!important;min-width:36px!important;min-height:36px!important;
  border-radius:50%!important;cursor:pointer!important;
  transition:background-color .16s ease,transform .16s ease!important;
  touch-action:manipulation!important;
}
html[data-ssw-theme="light"] body#ssRacingPage #mainContainer.ss-client-modern[data-client-page="home"] header.ssw146-topnav button.ssw1735-theme-toggle{
  color:#111318!important;background:#f1f3f5!important;border:1px solid #e4e6e9!important;
}
html[data-ssw-theme="dark"] body#ssRacingPage #mainContainer.ss-client-modern[data-client-page="home"] header.ssw146-topnav button.ssw1735-theme-toggle{
  color:#ffdc13!important;background:#242424!important;border:1px solid #5b511a!important;
}
html body#ssRacingPage #mainContainer.ss-client-modern[data-client-page="home"] header.ssw146-topnav button.ssw1735-theme-toggle:hover{transform:scale(1.06)!important}
html body#ssRacingPage #mainContainer.ss-client-modern[data-client-page="home"] header.ssw146-topnav button.ssw1735-theme-toggle:focus-visible{outline:3px solid #ffc700!important;outline-offset:2px!important}
html body#ssRacingPage #mainContainer.ss-client-modern[data-client-page="home"] header.ssw146-topnav button.ssw1735-theme-toggle svg{height:20px!important;width:20px!important;stroke:currentColor!important;display:block!important}

/* Negro de referencia: fondo negro y encabezado negro, conservando tarjetas reales. */
html[data-ssw-theme="dark"] body#ssRacingPage:has(#mainContainer.ss-client-modern[data-client-page="home"]),
html[data-ssw-theme="dark"] body#ssRacingPage #mainContainer.ss-client-modern[data-client-page="home"]{
  background:#050505!important;color:#f9fafb!important;
}
html[data-ssw-theme="dark"] body#ssRacingPage #mainContainer.ss-client-modern[data-client-page="home"] header.ssw146-topnav{
  background:#050505!important;background-image:none!important;color:#fff!important;border-color:transparent!important;box-shadow:none!important;
}
html[data-ssw-theme="dark"] body#ssRacingPage #mainContainer.ss-client-modern[data-client-page="home"] header.ssw146-topnav :is(.ssw147-menu-toggle,.ssw146-alerts,.ssw1703-account-link){
  color:#fff!important;background:transparent!important;border-color:transparent!important;
}
html[data-ssw-theme="dark"] body#ssRacingPage #mainContainer.ss-client-modern[data-client-page="home"] header.ssw146-topnav :is(.ssw147-menu-toggle,.ssw146-alerts,.ssw1703-account-link) svg{
  color:#fff!important;stroke:#fff!important;
}
html[data-ssw-theme="dark"] body#ssRacingPage #mainContainer.ss-client-modern[data-client-page="home"] .ssw1724-explore-head h2,
html[data-ssw-theme="dark"] body#ssRacingPage #mainContainer.ss-client-modern[data-client-page="home"] .ss-client-list-head h2{
  color:#fff!important;text-shadow:none!important;
}
html[data-ssw-theme="dark"] body#ssRacingPage #mainContainer.ss-client-modern[data-client-page="home"] .ssw1724-explore-head>button,
html[data-ssw-theme="dark"] body#ssRacingPage #mainContainer.ss-client-modern[data-client-page="home"] .ss-client-list-head .ssw1723-see-all{
  color:#fff!important;
}
/* Las fotos originales oscuras siguen completas y centradas, sin recortes. */
html[data-ssw-theme="dark"] body#ssRacingPage #mainContainer.ss-client-modern[data-client-page="home"] .ssw1724-explore-rail>button .ssw1724-chip-photo:not(.is-all){
  background-position:center center!important;background-repeat:no-repeat!important;background-size:contain!important;
}
/* En ambos temas, la S y SUPER SWISH permanecen centrados, horizontales y nítidos. */
@media(max-width:780px){
  html body#ssRacingPage #mainContainer.ss-client-modern[data-client-page="home"] header.ssw146-topnav{
    display:grid!important;
    grid-template-columns:30px minmax(0,1fr) 34px 30px 30px!important;
    gap:3px!important;align-items:center!important;
    padding:4px 0!important;
  }
  html body#ssRacingPage #mainContainer.ss-client-modern[data-client-page="home"] header.ssw146-topnav button.ssw146-logo{
    min-width:0!important;max-width:100%!important;width:100%!important;
    height:47px!important;min-height:47px!important;max-height:47px!important;
    justify-self:stretch!important;overflow:hidden!important;
    background-size:contain!important;
  }
  html body#ssRacingPage #mainContainer.ss-client-modern[data-client-page="home"] header.ssw146-topnav button.ssw1735-theme-toggle{
    width:32px!important;height:32px!important;min-width:32px!important;min-height:32px!important;flex-basis:32px!important;
  }
  html body#ssRacingPage #mainContainer.ss-client-modern[data-client-page="home"] header.ssw146-topnav :is(.ssw147-menu-toggle,.ssw146-alerts,.ssw1703-account-link){
    width:30px!important;min-width:30px!important;max-width:30px!important;
    justify-self:center!important;
  }
}
@media(max-width:350px){
  html body#ssRacingPage #mainContainer.ss-client-modern[data-client-page="home"] header.ssw146-topnav{
    grid-template-columns:26px minmax(0,1fr) 30px 27px 27px!important;gap:2px!important;
  }
  html body#ssRacingPage #mainContainer.ss-client-modern[data-client-page="home"] header.ssw146-topnav button.ssw1735-theme-toggle{
    width:30px!important;height:30px!important;min-width:30px!important;min-height:30px!important;
  }
}
@media (prefers-reduced-motion:reduce){
  html body#ssRacingPage #mainContainer.ss-client-modern[data-client-page="home"] header.ssw146-topnav button.ssw1735-theme-toggle{transition:none!important}
}
