/* The light palette stays in site.css. Only the new control is styled here. */
.theme-toggle{display:inline-grid;place-items:center;flex:none;width:44px;height:44px;padding:10px;border:0;border-radius:50%;background:transparent;color:#404040;cursor:pointer}
.theme-toggle svg{display:block;width:24px;height:24px}
.theme-toggle .theme-bulb{fill:none}
.theme-toggle .theme-rays{visibility:hidden}
.theme-toggle:focus-visible{outline:2px solid #FF6600;outline-offset:3px}
.header-pill>.theme-control{margin-left:auto}
.logo .theme-logo-dark{display:none}
@media(hover:hover){.theme-toggle:hover{background:#F4F4F4}}
@media(max-width:720px){.header-pill>.theme-control{grid-column:3;grid-row:1;justify-self:end;margin-left:0}}
/* Prueba gris claro (13 nov 2026). Revertir: #1e1e1e -> #0f0f0f (fondo/campos), #2a2a2a -> #212121 (superficies), #3a3a3a -> #303030 (bordes/hover). */
@media screen{
  html[data-theme="dark"]{--muted:#aaaaaa;--line:#3a3a3a;color-scheme:dark}
  html[data-theme="dark"] body{background:#1e1e1e;color:#f1f1f1}
  html[data-theme="dark"] .theme-toggle{color:#FF6600}
  html[data-theme="dark"] .theme-toggle .theme-bulb{fill:#FF6600}
  html[data-theme="dark"] .theme-toggle .theme-rays{visibility:visible}
  html[data-theme="dark"] .logo .theme-logo-light{display:none}
  html[data-theme="dark"] .logo .theme-logo-dark{display:block}
  html[data-theme="dark"] :is(.site-header,.header-pill,.side-menu,.site-footer,.product-card,.horizontal-product,.category-tile,.trust-strip,.dark-showcase,.showcase-card,.workshop,.workshop-grid article,.listing-facets,.component-family-card,.reviews-carousel,.configurator-summary,.config-options,.product-share-panel){background:#2a2a2a;color:#f1f1f1;border-color:#3a3a3a}
  html[data-theme="dark"] .why-choose-card{background:#2a2a2a!important;color:#f1f1f1}
  html[data-theme="dark"] :is(.header-pill,.menu-content details,.buying-guide,.group-family-list li,.facet-group,.facet-quick,.config-step,.product-tabs th,.product-tabs td){border-color:#3a3a3a}
  html[data-theme="dark"] :is(.menu-trigger,.menu-trigger__icon,.menu-trigger__label){color:#f1f1f1!important}
  html[data-theme="dark"] :is(.menu-close,.menu-title,.header-phone-info){color:#f1f1f1}
  html[data-theme="dark"] :is(.menu-group>summary,.menu-group>summary>a,.menu-group>a,.menu-family>summary,.menu-family a){color:#f1f1f1!important}
  html[data-theme="dark"] .menu-icon svg{stroke:#f1f1f1}
  html[data-theme="dark"] :is(.search input,.large-search input){background:#1e1e1e!important;color:#f1f1f1!important;border-color:#3a3a3a;outline-color:#FF6600}
  html[data-theme="dark"] input::placeholder,html[data-theme="dark"] textarea::placeholder{color:#aaaaaa;opacity:1}
  html[data-theme="dark"] :is(.search-suggestions,.listing-sort button,.listing-pagination button,.listing-applied button,.filter-pill,.sub-pills a,.filters select,.listing-filter-toggle,.facet-price input,.config-select-trigger,.config-quantity button,.product-share-panel input){background:#2a2a2a;color:#f1f1f1;border-color:#3a3a3a}
  html[data-theme="dark"] :is(.listing-sort .is-active,.listing-pagination .is-active,.filter-pill.is-active,.group-pills a.is-active,.listing-applied button){background:#3a3a3a;color:#f1f1f1;border-color:#3a3a3a}
  html[data-theme="dark"] :is(.listing-sort .is-active,.group-pills a.is-active){color:#FF6600}
  html[data-theme="dark"] .listing-pagination .listing-load-more{background:#FF6600;color:#fff}
  html[data-theme="dark"] main .section h2,html[data-theme="dark"] :is(.section-title,.listing>h1,.component-families>h1,.featured-circles h2,.product-info,.product-info h1,.product-info p,.product-info .reference,.product-info .product-price,.product-info .product-price small,.product-purchase-row .availability,.product-page .product-tabs,.product-page .product-tabs th,.stock-line,.product-badge,.configurator,.legal:has(+.configurator)>h1,.configurator h1,.configurator .config-step h2,.configurator .configurator-summary h2,.configurator-summary h3,.config-summary-row,.config-quantity){color:#f1f1f1}
  html[data-theme="dark"] :is(.sub-pills a,.group-family-list,.group-family-list a,.breadcrumbs,.breadcrumbs a,.breadcrumbs span,.featured-circle,.featured-circle strong,.reviews-summary,.reviews-links a,.review-slide blockquote,.review-toggle,.review-slide footer strong,.product-share-close){color:#f1f1f1}
  html[data-theme="dark"] :is(.component-family-card .component-family-name,.component-family-card small){color:#f1f1f1!important}
  html[data-theme="dark"] :is(.eyebrow,.spec-line,.listing-count,.price s,.product-price s,.price small,.reference,.site-footer address,.horizontal-product span,.menu-chevron,.facet-group small,.facet-group label,.facet-quick label,.listing-facets .facet-group label,.review-slide footer,.config-step small,.config-estimate,.config-reset,.config-summary-ean,.google-rating small){color:#aaaaaa}
  html[data-theme="dark"] :is(.listing-facets .facet-group summary,.listing-facets .facet-price>strong){color:#f1f1f1}
  html[data-theme="dark"] .product-info .product-price s{color:#aaaaaa}
  html[data-theme="dark"] .product-page .key-specs>div{background:#2a2a2a}
  html[data-theme="dark"] .product-page .key-specs strong{color:#f1f1f1}
  html[data-theme="dark"] .product-page .key-specs .key-spec-label{color:#aaaaaa}
  html[data-theme="dark"] :is(.key-spec-label svg,.component-family-card svg,.config-step-svg,.why-icon){color:#f1f1f1}
  html[data-theme="dark"] :is(.reviews-controls>button,.button--dark){background:#3a3a3a;color:#f1f1f1}
  html[data-theme="dark"] .config-options>[role="option"]{color:#f1f1f1}
  html[data-theme="dark"] .config-options>[aria-selected="true"]{background:#3a3a3a;box-shadow:inset 3px 0 #FF6600}
  html[data-theme="dark"] .config-options>[aria-disabled="true"]{color:#aaaaaa}
  html[data-theme="dark"] .config-warning{color:#ffb86b}
  html[data-theme="dark"] .product-share-error{color:#f28b82}
  html[data-theme="dark"] .hero-dots{background:#1e1e1e}
  /* Catalog photographs and promotional artwork keep their light backdrop. */
  html[data-theme="dark"] :is(.product-card__image,.gallery-main,.gallery-thumbs button,.featured-circle__image,.hero-carousel-track,.hero-slide a,.refurbished-banner a){background:#ffffff}
  html[data-theme="dark"] .gallery-thumbs button{border-color:#3a3a3a}
  html[data-theme="dark"] :is(.product-action:focus-visible,.whatsapp-float:focus-visible){outline-color:#f1f1f1}
  html[data-theme="dark"] .service-row a,html[data-theme="dark"] .service-row svg{color:#f1f1f1}
  html[data-theme="dark"] :is(.facet-group button,.listing-empty button,.listing-error){color:#f1f1f1}
  html[data-theme="dark"] .listing-filters-close{background:#2a2a2a;color:#f1f1f1;border-color:#3a3a3a}
  html[data-theme="dark"] .catalog-listing button:focus-visible,html[data-theme="dark"] .facet-group input:focus-visible{outline-color:#FF6600}
}
@media screen and (hover:hover){
  html[data-theme="dark"] :is(.theme-toggle:hover,.search-suggestions a:hover,.config-options>button:hover,.product-action:hover){background:#3a3a3a}
  html[data-theme="dark"] :is(.featured-circle:hover strong,.component-family-card:hover .component-family-name,.review-toggle:hover,.reviews-controls>button:hover){color:#FF6600!important}
}
@media print{.theme-control,.theme-toggle{display:none!important}html[data-theme="dark"]{color-scheme:light!important}}

.theme-control{position:relative;display:inline-flex;flex:none;width:44px;height:44px}
.sync-status{display:block;flex:none;width:6px;height:6px;border-radius:50%;background:#e53935;pointer-events:auto}
.sync-status[data-state="ok"]{background:#16a34a}

@media(min-width:851px){.header-pill>.header-phone-info,.header-pill>.theme-control{position:relative;left:8px}}
