/* SafeTech R8 — auditoría visual integral del sistema de temas */
:root{
  color-scheme:light;
  --st-bg:#f5f5f7;--st-surface:#ffffff;--st-surface-2:#f8fafc;--st-surface-3:#eef2f7;
  --st-text:#172033;--st-text-soft:#334155;--st-muted:#64748b;
  --st-border:#e5e7eb;--st-border-strong:#cbd5e1;
  --st-shadow:0 14px 40px rgba(15,23,42,.08);--st-header:rgba(245,245,247,.92);
  --st-red:#dc2626;--st-red-dark:#991b1b;--st-focus:rgba(220,38,38,.25);
  --st-success-bg:#ecfdf5;--st-success-text:#047857;--st-success-border:#a7f3d0;
  --st-warn-bg:#fffbeb;--st-warn-text:#92400e;--st-warn-border:#fde68a;
  --st-info-bg:#eff6ff;--st-info-text:#1d4ed8;--st-info-border:#bfdbfe;
  --st-danger-bg:#fff1f2;--st-danger-text:#9f1239;--st-danger-border:#fecdd3;
}
html[data-theme="dark"]{
  color-scheme:dark;
  --st-bg:#09111f;--st-surface:#111c2f;--st-surface-2:#17243a;--st-surface-3:#20304a;
  --st-text:#f8fafc;--st-text-soft:#dbe5f1;--st-muted:#aebdd0;
  --st-border:#2a3c57;--st-border-strong:#405776;
  --st-shadow:0 18px 48px rgba(0,0,0,.34);--st-header:rgba(9,17,31,.92);
  --st-focus:rgba(248,113,113,.32);
  --st-success-bg:#0b3028;--st-success-text:#6ee7b7;--st-success-border:#176b58;
  --st-warn-bg:#39290f;--st-warn-text:#fde68a;--st-warn-border:#7c5c20;
  --st-info-bg:#102a45;--st-info-text:#bfdbfe;--st-info-border:#28598a;
  --st-danger-bg:#3a171d;--st-danger-text:#fecdd3;--st-danger-border:#7f2a3c;
  --ink:var(--st-text);--muted:var(--st-muted);--line:var(--st-border);--paper:var(--st-surface);--bg:var(--st-bg);
  --success:#34d399;--warn:#fbbf24;--blue:#60a5fa;--shadow:var(--st-shadow);
}
html[data-theme="dark"] body{background:var(--st-bg)!important;color:var(--st-text)!important}
html[data-theme="dark"] body:before{background-image:linear-gradient(rgba(148,163,184,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(148,163,184,.035) 1px,transparent 1px)!important}
html[data-theme="dark"] .st-main{background:radial-gradient(circle at 8% 0%,rgba(220,38,38,.09),transparent 27%),radial-gradient(circle at 92% 8%,rgba(37,99,235,.08),transparent 26%),var(--st-bg)}

/* Selector visible, coherente y accesible */
.st-theme-toggle{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-width:94px;height:38px;padding:4px 9px;border:1px solid var(--st-border-strong);border-radius:999px;background:var(--st-surface-2);color:var(--st-text);box-shadow:0 5px 16px rgba(15,23,42,.09);cursor:pointer;transition:transform .2s,border-color .2s,background .2s}
.st-theme-toggle:hover{transform:translateY(-1px);border-color:#ef4444}.st-theme-toggle:focus-visible{outline:3px solid var(--st-focus);outline-offset:2px}
.st-theme-toggle__track{position:relative;flex:0 0 34px;width:34px;height:18px;border-radius:999px;background:#cbd5e1;transition:.2s}.st-theme-toggle__thumb{position:absolute;top:2px;left:2px;width:14px;height:14px;border-radius:50%;background:#fff;box-shadow:0 2px 5px rgba(0,0,0,.28);transition:.2s}.st-theme-toggle__icon{font-size:.76rem;line-height:1}.st-theme-toggle__label{min-width:38px;font-size:.68rem;font-weight:850;letter-spacing:.01em;text-align:left}
html[data-theme="dark"] .st-theme-toggle__track{background:#9f2020}html[data-theme="dark"] .st-theme-toggle__thumb{transform:translateX(16px)}

/* Header, navegación y footer */
html[data-theme="dark"] .st-header{background:var(--st-header)!important;border-bottom-color:var(--st-border)!important;backdrop-filter:blur(18px)}
html[data-theme="dark"] .st-nav a{color:#d6e0ec!important}html[data-theme="dark"] .st-nav a:hover{background:rgba(248,113,113,.1)!important;color:#fca5a5!important}html[data-theme="dark"] .st-nav a[aria-current="page"]{color:#fff!important}
html[data-theme="dark"] .st-cart{background:#17243a!important;color:#fff!important;border:1px solid #30445f}html[data-theme="dark"] .st-cart:hover{background:#20304a!important}
html[data-theme="dark"] .st-menu{background:var(--st-surface-2)!important;color:var(--st-text)!important;border-color:var(--st-border)!important}
html[data-theme="dark"] .st-footer{background:#070d17!important;border-color:var(--st-border)!important;color:var(--st-text)!important}
html[data-theme="dark"] .st-footer h4,html[data-theme="dark"] .st-footer strong{color:#fff!important}html[data-theme="dark"] .st-footer p,html[data-theme="dark"] .st-footer a,html[data-theme="dark"] .st-footer__meta{color:#aebdd0!important}

/* Superficies reales usadas por tienda, catálogo, producto, carrito y servicio */
html[data-theme="dark"] :is(
.st-page-head,.st-sidebar,.st-search,.st-empty,.st-landing__main,.st-checkout-card,.st-content,
.st-option,.st-builder-summary,.st-cart-list,.st-cart-checkout,.st-cart-card,.st-coupon,
.st-trust-strip,.st-category-cards>a,.st-confidence-grid article,.st-product-main,.st-product-panel,
.st-info-box,.st-variant-option,.st-cart-explanation,.st-delivery-glossary,.st-purchase-scope,
.st-checkout-totals,.st-consent-option,.st-help-page-head,.st-guide-sidebar,.st-guide-search,
.st-guide-card,.st-guide-card a,.st-guide-empty,.st-help-home-card,.st-macos-callout
){background:var(--st-surface)!important;border-color:var(--st-border)!important;color:var(--st-text)!important;box-shadow:var(--st-shadow)}
html[data-theme="dark"] :is(.st-card,.st-catalog-card,.st-featured-card,.st-service-card){background:var(--st-surface)!important;border-color:var(--st-border)!important;color:var(--st-text)!important;box-shadow:0 12px 32px rgba(0,0,0,.2)}
html[data-theme="dark"] :is(.st-card,.st-category-cards>a,.st-confidence-grid article,.st-option,.st-guide-card,.st-help-home-card):hover{background:var(--st-surface-2)!important;border-color:#4b668a!important}
html[data-theme="dark"] :is(.st-page-head,.st-content,.st-product-main,.st-cart-card,.st-cart-checkout,.st-builder-summary){box-shadow:0 20px 52px rgba(0,0,0,.28)}

/* Tipografía y separadores */
html[data-theme="dark"] :is(.st-page-title,.st-section h2,.st-product-title,.st-product-intro h1,.st-panel-heading h2,.st-builder-options h2,.st-builder-summary h2,.st-cart-section-head h2,.st-help-page-head h1,.st-guide-card h2,.st-category-cards strong,.st-confidence-grid strong,.st-help-home-card strong){color:var(--st-text)!important}
html[data-theme="dark"] :is(.st-page-head p,.st-section__head p,.st-product-description,.st-product-intro>p,.st-content p,.st-content li,.st-option small,.st-builder-summary dt,.st-field-help,.st-checkout-note,.st-cart-item p,.st-cart-explanation p,.st-delivery-glossary__item dd,.st-purchase-scope__body p,.st-help-page-head p,.st-guide-card p,.st-help-home-card span:last-child,.st-macos-callout p){color:var(--st-muted)!important}
html[data-theme="dark"] :is(.st-breadcrumb,.st-result-count,.st-sidebar__title,.st-guide-count){color:#9fb0c5!important}
html[data-theme="dark"] :is(.st-card__bottom,.st-product-card__footer,.st-cart-toolbar,.st-total,.st-builder-summary div,.st-sidebar__title,.st-purchase-scope[open] summary){border-color:var(--st-border)!important}
html[data-theme="dark"] hr{border-color:var(--st-border)!important}

/* Inputs y controles */
html[data-theme="dark"] :is(input,select,textarea,.st-search,.st-guide-search){background:#0c1627!important;color:#f8fafc!important;border-color:#3b5272!important}
html[data-theme="dark"] :is(input,select,textarea)::placeholder{color:#8293aa!important}
html[data-theme="dark"] :is(input,select,textarea):focus{border-color:#f87171!important;box-shadow:0 0 0 3px var(--st-focus)!important}
html[data-theme="dark"] .st-phone-control>span{background:#17243a!important;color:#dbe5f1!important;border-color:#3b5272!important}
html[data-theme="dark"] .st-btn--soft{background:#1b2a42!important;color:#f8fafc!important;border-color:#405776!important}html[data-theme="dark"] .st-btn--soft:hover{background:#253751!important;border-color:#ef4444!important;color:#fff!important}
html[data-theme="dark"] .st-btn--dark{background:#1b2a42!important;color:#fff!important;border-color:#405776!important}

/* Portada */
html[data-theme="dark"] .st-sales-hero{background:linear-gradient(135deg,#101b2e 0%,#172640 58%,#261a28 100%)!important;border-color:#354b69!important;box-shadow:0 25px 70px rgba(0,0,0,.38)!important}
html[data-theme="dark"] .st-sales-hero:before{background:radial-gradient(circle,rgba(248,113,113,.14),transparent 66%)!important}
html[data-theme="dark"] .st-sales-hero h1,html[data-theme="dark"] .st-sales-hero__panel h2,html[data-theme="dark"] .st-sales-hero__panel strong,html[data-theme="dark"] .st-sales-hero__panel b{color:#fff!important}
html[data-theme="dark"] .st-sales-hero__copy>p,html[data-theme="dark"] .st-sales-hero__panel small{color:#c6d3e2!important}
html[data-theme="dark"] .st-hero-points{color:#b8c7d9!important}
html[data-theme="dark"] .st-sales-hero__panel{background:rgba(7,13,25,.72)!important;border-color:#3c5576!important;color:#fff!important;box-shadow:inset 0 1px rgba(255,255,255,.05)!important}
html[data-theme="dark"] .st-sales-hero__panel>a{background:#142238!important;border-color:#314965!important;color:#fff!important}html[data-theme="dark"] .st-sales-hero__panel>a:hover{background:#1d304c!important;border-color:#ef4444!important}
html[data-theme="dark"] .st-panel-note{color:#b7c7d9!important}
html[data-theme="dark"] .st-trust-strip{background:#101b2e!important}html[data-theme="dark"] .st-trust-strip>div{border-color:var(--st-border)!important}html[data-theme="dark"] .st-trust-item strong{color:#f8fafc!important}html[data-theme="dark"] .st-trust-item small{color:#aebdd0!important}
html[data-theme="dark"] .st-category-cards span,html[data-theme="dark"] .st-confidence-grid p{color:var(--st-muted)!important}
html[data-theme="dark"] .st-final-cta{background:linear-gradient(135deg,#17243a,#1e2b45)!important;border:1px solid var(--st-border)!important;color:#fff!important}

/* Catálogo y fichas */
html[data-theme="dark"] .st-cat-btn{color:#c5d1df!important}html[data-theme="dark"] .st-cat-btn:hover{background:#1b2a42!important;color:#fff!important}html[data-theme="dark"] .st-cat-btn.is-active{background:rgba(239,68,68,.14)!important;color:#fca5a5!important}
html[data-theme="dark"] .st-cat-count{background:#253751!important;color:#dbe5f1!important}html[data-theme="dark"] .st-cat-btn.is-active .st-cat-count{background:#482027!important;color:#fecaca!important}
html[data-theme="dark"] .st-product-safe{background:#1a2941!important;color:#dbe5f1!important;border-color:#3b5272!important}
html[data-theme="dark"] .st-meta div,html[data-theme="dark"] .st-meta--product div{background:#16243a!important;color:#c5d1df!important;border-color:#304761!important;border-left-color:#ef4444!important}
html[data-theme="dark"] .st-meta strong{color:#f8fafc!important}
html[data-theme="dark"] .st-list li{color:#c4d1df!important}
html[data-theme="dark"] .st-info-box>strong,html[data-theme="dark"] .st-info-box p strong{color:#fff!important}html[data-theme="dark"] .st-info-box p{color:#b7c5d5!important}
html[data-theme="dark"] .st-purchase-scope summary{background:#17243a!important;color:#fff!important}html[data-theme="dark"] .st-purchase-scope[open] summary{background:#221c2d!important}html[data-theme="dark"] .st-purchase-scope summary small{color:#aebdd0!important}html[data-theme="dark"] .st-purchase-scope__body strong{color:#fff!important}

/* Estados, etiquetas y cajas semánticas */
html[data-theme="dark"] .st-stock[data-state="checking"]{color:#93c5fd!important}html[data-theme="dark"] .st-stock[data-state="available"]{color:#6ee7b7!important}html[data-theme="dark"] .st-stock[data-state="soldout"]{color:#fca5a5!important}html[data-theme="dark"] .st-stock[data-state="unknown"]{color:#fde68a!important}
html[data-theme="dark"] .st-tag--auto,html[data-theme="dark"] .st-cart-type--auto,html[data-theme="dark"] .st-delivery-glossary__item--auto{background:var(--st-success-bg)!important;color:var(--st-success-text)!important;border-color:var(--st-success-border)!important}
html[data-theme="dark"] .st-tag--manual,html[data-theme="dark"] .st-cart-type--managed,html[data-theme="dark"] .st-delivery-glossary__item--managed,html[data-theme="dark"] .st-service-location-note,html[data-theme="dark"] .st-cart-purchase-notice,html[data-theme="dark"] .st-cart-item.is-stock-warning,html[data-theme="dark"] .st-cart-item.is-selection-warning{background:var(--st-warn-bg)!important;color:var(--st-warn-text)!important;border-color:var(--st-warn-border)!important}
html[data-theme="dark"] .st-tag--service,html[data-theme="dark"] .st-cart-type--service,html[data-theme="dark"] .st-payment-trust,html[data-theme="dark"] .st-cart-note{background:var(--st-info-bg)!important;color:var(--st-info-text)!important;border-color:var(--st-info-border)!important}
html[data-theme="dark"] :is(.st-service-location-note,.st-cart-purchase-notice,.st-payment-trust,.st-cart-note) strong{color:inherit!important}
html[data-theme="dark"] .st-consent-option{background:#152238!important;color:#cbd7e4!important}html[data-theme="dark"] .st-consent-option strong{color:#fff!important}html[data-theme="dark"] .st-consent-option small{color:#9fb0c5!important}html[data-theme="dark"] .st-consent-option:hover{background:#1b2a42!important}
html[data-theme="dark"] .st-checkout-total-row{background:#142137!important;color:#b8c7d9!important;border-color:var(--st-border)!important}html[data-theme="dark"] .st-checkout-total-row strong{color:#fff!important}html[data-theme="dark"] .st-checkout-total-row--discount{background:var(--st-success-bg)!important;color:var(--st-success-text)!important}html[data-theme="dark"] .st-checkout-total-row--grand{background:#1c2b43!important;color:#fff!important}
html[data-theme="dark"] .st-coupon__status{background:var(--st-success-bg)!important;color:var(--st-success-text)!important;border-color:var(--st-success-border)!important}html[data-theme="dark"] .st-coupon__status.is-loading{background:var(--st-info-bg)!important;color:var(--st-info-text)!important;border-color:var(--st-info-border)!important}html[data-theme="dark"] .st-coupon__status p{color:inherit!important}

/* Servicio técnico */
html[data-theme="dark"] .st-option.is-selected{background:#18263d!important;border-color:#ef4444!important;box-shadow:0 0 0 2px rgba(248,113,113,.18)!important}
html[data-theme="dark"] .st-builder-summary dd{color:#fff!important}html[data-theme="dark"] .st-builder-price-label{color:#aebdd0!important}

/* FAQ unificada: posee CSS embebido propio */
html[data-theme="dark"] body.st-faq-unified{background:var(--st-bg)!important;color:var(--st-text)!important}
html[data-theme="dark"] body.st-faq-unified :is(.article-title,.section-h2,.faq-question,.faq-mini-title,.alert-card strong,.faq-answer strong,.faq-answer li strong,.st-summary-title,.st-name,.box strong){color:#f8fafc!important}
html[data-theme="dark"] body.st-faq-unified :is(.article-sub,.alert-card,.faq-answer p,.faq-answer li,.st-summary-rating,.st-date,.st-comment,.reviews-card p,.footer-brand){color:#aebdd0!important}
html[data-theme="dark"] body.st-faq-unified :is(.card,.faq-item,.st-review-card,.st-loading,.st-empty,.st-error){background:var(--st-surface)!important;border-color:var(--st-border)!important;color:var(--st-text)!important;box-shadow:0 14px 34px rgba(0,0,0,.24)!important}
html[data-theme="dark"] body.st-faq-unified .alert-card{background:#201923!important;border-color:#6f2934!important;color:#c8d3e0!important}
html[data-theme="dark"] body.st-faq-unified .faq-icon{background:#20304a!important;border-color:#405776!important;color:#f87171!important}
html[data-theme="dark"] body.st-faq-unified .box-tip{background:var(--st-info-bg)!important;border-color:var(--st-info-border)!important;color:var(--st-info-text)!important}html[data-theme="dark"] body.st-faq-unified .box-warn{background:var(--st-warn-bg)!important;border-color:var(--st-warn-border)!important;color:var(--st-warn-text)!important}
html[data-theme="dark"] body.st-faq-unified .btn-light{background:#1b2a42!important;color:#f8fafc!important;border-color:#405776!important}
html[data-theme="dark"] body.st-faq-unified .st-rev-nav{background:#17243a!important;color:#dbe5f1!important;border-color:#405776!important}

/* Centro de Ayuda completo */
html[data-theme="dark"] body.has-st-shell{background:var(--st-bg)!important;color:var(--st-text)!important}
html[data-theme="dark"] body.has-st-shell:before{background-image:linear-gradient(rgba(148,163,184,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(148,163,184,.035) 1px,transparent 1px)!important}
html[data-theme="dark"] body.has-st-shell .st-header{background:var(--st-header)!important;border-color:var(--st-border)!important}
html[data-theme="dark"] body.has-st-shell .st-header .st-nav a{color:#d6e0ec!important}
html[data-theme="dark"] body.has-st-shell .st-footer{background:#070d17!important;border-color:var(--st-border)!important}
html[data-theme="dark"] .st-help-hero{background:linear-gradient(135deg,#101b2e,#172640)!important;border-color:#354b69!important;box-shadow:0 24px 65px rgba(0,0,0,.34)!important}
html[data-theme="dark"] .st-help-hero h1{color:#fff!important}html[data-theme="dark"] .st-help-hero__copy>p{color:#c6d3e2!important}
html[data-theme="dark"] .st-help-hero__panel{background:#091322!important;border:1px solid #354b69!important}html[data-theme="dark"] .st-help-hero__panel>a{border-color:#2b3d59!important}
html[data-theme="dark"] body.has-st-shell :is(.card,.alert-card,.step,.stact-card,.stphone-card,.stprj21-card,.stprj24-card,.stvis21-card,.stvis24-card){background:var(--st-surface)!important;border-color:var(--st-border)!important;color:var(--st-text)!important;box-shadow:var(--st-shadow)!important}
html[data-theme="dark"] body.has-st-shell .article-img{background:#0c1627!important;border-color:var(--st-border)!important}
html[data-theme="dark"] .st-guide-filter{color:#c5d1df!important}html[data-theme="dark"] .st-guide-filter:hover{background:#1b2a42!important}html[data-theme="dark"] .st-guide-filter.is-active{background:rgba(239,68,68,.14)!important;color:#fca5a5!important}
html[data-theme="dark"] .st-support-btn--secondary{background:#1b2a42!important;color:#f8fafc!important;border-color:#405776!important}
html[data-theme="dark"] :is(.st-mac-card,.st-mac-notes>div,.st-mac-cta){background:var(--st-surface)!important;border-color:var(--st-border)!important;color:var(--st-text)!important}html[data-theme="dark"] .st-mac-table th{background:#17243a!important;color:#e8eef7!important}html[data-theme="dark"] .st-mac-table td{background:var(--st-surface)!important;color:#c5d1df!important;border-color:var(--st-border)!important}

/* Tablas */
html[data-theme="dark"] table{background:var(--st-surface)!important;color:var(--st-text)!important}html[data-theme="dark"] th{background:#17243a!important;color:#e8eef7!important}html[data-theme="dark"] td,html[data-theme="dark"] th{border-color:var(--st-border)!important}html[data-theme="dark"] td{color:#c6d3e2!important}html[data-theme="dark"] tr:nth-child(even) td{background:rgba(30,44,68,.38)!important}

@media(max-width:980px){html[data-theme="dark"] .st-nav,html[data-theme="dark"] body.has-st-shell .st-header .st-nav{background:#101b2e!important;border-color:var(--st-border)!important}.st-theme-toggle{min-width:88px}}
@media(max-width:640px){.st-theme-toggle{min-width:54px;width:54px;padding-inline:7px}.st-theme-toggle__label,.st-theme-toggle__icon{display:none}.st-theme-toggle__track{width:34px}.st-actions{gap:7px}.st-brand img{max-width:132px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;scroll-behavior:auto!important}}

/* R8: contraste fino validado sobre componentes reales */
html[data-theme="dark"] :is(.st-eyebrow,.st-kicker){color:#ff7272!important}
html[data-theme="dark"] :is(.st-category-cards b,.st-confidence-grid article>span:first-child,.st-step-badge){color:#ff7b7b!important}
html[data-theme="dark"] :is(.st-category-cards a,.st-category-cards b,.st-content a,.st-product-main a,.st-cart-card a,.st-cart-checkout a){text-decoration-color:rgba(255,123,123,.62)}
html[data-theme="dark"] :is(.st-category-cards b,.st-content a:not(.st-btn),.st-product-main a:not(.st-btn),.st-cart-card a:not(.st-btn),.st-cart-checkout a:not(.st-btn)){color:#ff8a8a!important}
html[data-theme="dark"] :is(.st-field label,.st-cart-card label,.st-cart-checkout label,.st-cart-section-head>span,.st-coupon__note){color:#aebdd0!important}
html[data-theme="dark"] .st-delivery-glossary__item--managed dt,
html[data-theme="dark"] .st-cart-purchase-notice h3{color:#fcd34d!important}
html[data-theme="dark"] .st-delivery-glossary__item--auto dt{color:#6ee7b7!important}
html[data-theme="dark"] .st-cart-purchase-notice a{color:#fecaca!important;text-decoration-color:#fca5a5!important}
html[data-theme="dark"] .st-coupon__remove{color:#fecaca!important}
html[data-theme="dark"] body.st-faq-unified a:not(.btn):not(.st-btn):not(.st-support-btn){color:#93c5fd!important}
html[data-theme="dark"] body.st-faq-unified .st-support-btn--whatsapp{background:#25d366!important;color:#052e16!important;border-color:#4ade80!important}
html[data-theme="dark"] :is(.st-section-title>span:first-child,.st-panel-heading>span:first-child){color:#ff7b7b!important}
html[data-theme="dark"] .st-field-help strong{color:#ff8a8a!important}
html[data-theme="dark"] .st-cart-section-head>span{color:#aebdd0!important}
html[data-theme="dark"] body.st-faq-unified .cta-btn.primary{background:#fff!important;color:#b91c1c!important;border-color:#fff!important}
html[data-theme="dark"] .st-cart-toolbar>span{color:#aebdd0!important}
html[data-theme="dark"] body.st-faq-unified a.cta-btn.primary{background:#fff!important;color:#b91c1c!important;border-color:#fff!important}
html[data-theme="dark"] body.st-faq-unified .cta-btns a.cta-btn.primary{background:#fff!important;color:#b91c1c!important;border-color:#fff!important}

/* R8: correcciones explícitas del Centro de Ayuda y compatibilidad macOS */
html[data-theme="dark"] body.has-st-shell .st-guide-sidebar>strong{color:#aebdd0!important;border-color:var(--st-border)!important}
html[data-theme="dark"] body.has-st-shell .st-help-home-card{background:#111c2f!important;border-color:#2a3c57!important;color:#f8fafc!important}
html[data-theme="dark"] body.has-st-shell .st-help-home-card strong{color:#f8fafc!important}
html[data-theme="dark"] body.has-st-shell .st-help-home-card span:last-child{color:#aebdd0!important}
html[data-theme="dark"] body.has-st-shell .st-theme-toggle{background:#17243a!important;color:#f8fafc!important;border-color:#405776!important}
html[data-theme="dark"] body.has-st-shell .st-mac-breadcrumb,
html[data-theme="dark"] body.has-st-shell .st-mac-breadcrumb a,
html[data-theme="dark"] body.has-st-shell .st-mac-breadcrumb span{color:#aebdd0!important}
html[data-theme="dark"] body.has-st-shell .st-mac-hero{background:linear-gradient(135deg,#101b2e 0%,#172640 64%,#251a29 100%)!important;border-color:#354b69!important;color:#f8fafc!important;box-shadow:0 24px 65px rgba(0,0,0,.34)!important}
html[data-theme="dark"] body.has-st-shell .st-mac-hero h1{color:#f8fafc!important}
html[data-theme="dark"] body.has-st-shell .st-mac-hero>div>p{color:#c6d3e2!important}
html[data-theme="dark"] body.has-st-shell .st-mac-hero__panel{background:#0c1627!important;border-color:#7f2a3c!important;color:#f8fafc!important}
html[data-theme="dark"] body.has-st-shell .st-mac-hero__panel>strong{color:#fecdd3!important}
html[data-theme="dark"] body.has-st-shell .st-mac-hero__panel p{color:#dbe5f1!important}
html[data-theme="dark"] body.has-st-shell .st-mac-card{background:#111c2f!important;border-color:#2a3c57!important;color:#f8fafc!important}
html[data-theme="dark"] body.has-st-shell .st-mac-card h2{color:#f8fafc!important}
html[data-theme="dark"] body.has-st-shell .st-mac-card p,
html[data-theme="dark"] body.has-st-shell .st-mac-table-head p{color:#aebdd0!important}
html[data-theme="dark"] body.has-st-shell .st-mac-steps li,
html[data-theme="dark"] body.has-st-shell .st-mac-steps li>span,
html[data-theme="dark"] body.has-st-shell .st-mac-steps strong{color:#dbe5f1!important}
html[data-theme="dark"] body.has-st-shell .st-mac-steps li:before{background:#3a171d!important;border-color:#7f2a3c!important;color:#fecdd3!important}
html[data-theme="dark"] body.has-st-shell .st-mac-minimum{background:#39290f!important;border-color:#7c5c20!important;color:#fde68a!important}
html[data-theme="dark"] body.has-st-shell .st-mac-minimum strong{color:#fff3c4!important}
html[data-theme="dark"] body.has-st-shell .st-mac-table td:first-child span{color:#aebdd0!important}
html[data-theme="dark"] body.has-st-shell .st-mac-table tbody tr:hover td{background:#1b2a42!important}
html[data-theme="dark"] body.has-st-shell .st-mac-btn--soft{background:#1b2a42!important;border-color:#405776!important;color:#f8fafc!important}
html[data-theme="dark"] body.has-st-shell .st-mac-note--blue{background:#102a45!important;border-color:#28598a!important;color:#dbeafe!important}
html[data-theme="dark"] body.has-st-shell .st-mac-note--yellow{background:#39290f!important;border-color:#7c5c20!important;color:#fde68a!important}
html[data-theme="dark"] body.has-st-shell .st-mac-cta{background:#111c2f!important;border:1px solid #2a3c57!important;color:#f8fafc!important}
html[data-theme="dark"] body.has-st-shell .st-mac-cta p{color:#c6d3e2!important}
html[data-theme="dark"] body.has-st-shell .st-btn--wa{background:#25d366!important;color:#052e16!important;border-color:#4ade80!important}
html[data-theme="dark"] .st-alert{background:#39290f!important;border-color:#7c5c20!important;color:#fde68a!important}
html[data-theme="dark"] .st-alert strong{color:#fff3c4!important}
html[data-theme="dark"] .st-alert--red{background:#3a171d!important;border-color:#7f2a3c!important;color:#fecdd3!important}
html[data-theme="dark"] .st-alert--red strong{color:#ffe4e6!important}
html[data-theme="dark"] .st-app--powerpoint{background:#b83b22!important}


/* SafeTech R10 — Centro de Ayuda completo y paneles uniformes */
html[data-theme="dark"] .st-sales-hero__panel,
html[data-theme="dark"] .st-help-hero__panel{
  background:#0C1323!important;
  border-color:#263650!important;
  color:#f8fafc!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.035),0 18px 42px rgba(0,0,0,.22)!important;
}
html[data-theme="dark"] .st-sales-hero__panel>a,
html[data-theme="dark"] .st-help-hero__panel>a,
html[data-theme="dark"] .st-help-home-card{
  background:#0C1323!important;
  border-color:#263650!important;
  color:#f8fafc!important;
  box-shadow:none!important;
}
html[data-theme="dark"] .st-sales-hero__panel>a+ a,
html[data-theme="dark"] .st-help-hero__panel>a+ a{border-top-color:#263650!important}
html[data-theme="dark"] .st-sales-hero__panel :is(h2,h3,strong,b),
html[data-theme="dark"] .st-help-hero__panel :is(h2,h3,strong,b){color:#f8fafc!important}
html[data-theme="dark"] .st-sales-hero__panel :is(p,small,span),
html[data-theme="dark"] .st-help-hero__panel :is(p,small,span){color:#b8c7d9!important}

/* La identidad visual del Centro de Ayuda usa siempre el logo correcto por tema. */
body.has-st-shell .st-help-brand img{display:block;width:auto;max-height:52px;object-fit:contain}
html[data-theme="dark"] body.has-st-shell .st-help-brand img{filter:none!important;opacity:1!important}

/* Plantillas históricas de guías: superficies y tipografía legibles. */
html[data-theme="dark"] body.has-st-shell :is(
.wrapper,.article-header,.article-body,.article-intro,.article-content,
.card,.step,.download-card,.mini-card,.alert-card,.box,.img-box,
.st-guide-standard__card,.st-guide-support,
.stphone-intro,.stphone-card,.stphone-step,.stphone-note,.stphone-alert,.stphone-download,.stphone-mini-card,
.stprj21-intro,.stprj21-card,.stprj21-step,.stprj21-note,.stprj21-alert,.stprj21-download,.stprj21-mini-card,
.stprj24-intro,.stprj24-card,.stprj24-step,.stprj24-note,.stprj24-alert,.stprj24-download,.stprj24-mini-card,
.stvis21-intro,.stvis21-card,.stvis21-step,.stvis21-note,.stvis21-alert,.stvis21-download,.stvis21-mini-card,
.stvis24-intro,.stvis24-card,.stvis24-step,.stvis24-note,.stvis24-alert,.stvis24-download,.stvis24-mini-card,
.stact-card
){background:#111c2f!important;border-color:#2a3c57!important;color:#f8fafc!important}

html[data-theme="dark"] body.has-st-shell :is(
.article-title,.article-header h1,.article-header h2,.article-header h3,
.section-h2,.faq-question,.faq-mini-title,
.card h1,.card h2,.card h3,.card h4,
.step h1,.step h2,.step h3,.step h4,
.download-card h1,.download-card h2,.download-card h3,
.mini-card h1,.mini-card h2,.mini-card h3,
.stphone-section-title,.stphone-card h2,.stphone-card h3,.stphone-step h2,.stphone-step h3,
.stprj21-section-title,.stprj21-card h2,.stprj21-card h3,.stprj21-step h2,.stprj21-step h3,
.stprj24-section-title,.stprj24-card h2,.stprj24-card h3,.stprj24-step h2,.stprj24-step h3,
.stvis21-section-title,.stvis21-card h2,.stvis21-card h3,.stvis21-step h2,.stvis21-step h3,
.stvis24-section-title,.stvis24-card h2,.stvis24-card h3,.stvis24-step h2,.stvis24-step h3,
.stact-card h2,.stact-card h3
){color:#f8fafc!important;opacity:1!important}

html[data-theme="dark"] body.has-st-shell :is(
.article-sub,.article-header p,.article-body p,.article-body li,.article-content p,.article-content li,
.card p,.card li,.card span:not(.num):not(.step-num),
.step p,.step li,.step span:not(.num):not(.step-num),
.download-card p,.download-card li,.mini-card p,.mini-card li,
.box p,.box li,.alert-card p,.alert-card li,
.stphone-body,.stphone-card p,.stphone-card li,.stphone-step p,.stphone-step li,
.stprj21-body,.stprj21-card p,.stprj21-card li,.stprj21-step p,.stprj21-step li,
.stprj24-body,.stprj24-card p,.stprj24-card li,.stprj24-step p,.stprj24-step li,
.stvis21-body,.stvis21-card p,.stvis21-card li,.stvis21-step p,.stvis21-step li,
.stvis24-body,.stvis24-card p,.stvis24-card li,.stvis24-step p,.stvis24-step li,
.stact-card p,.stact-card li
){color:#c5d1df!important;opacity:1!important}

html[data-theme="dark"] body.has-st-shell :is(.card,.step,.download-card,.mini-card,.stphone-card,.stphone-step,.stprj21-card,.stprj21-step,.stprj24-card,.stprj24-step,.stvis21-card,.stvis21-step,.stvis24-card,.stvis24-step) :is(strong,b){color:#f8fafc!important}
html[data-theme="dark"] body.has-st-shell :is(.card,.step,.download-card,.mini-card,.stphone-card,.stphone-step,.stprj21-card,.stprj21-step,.stprj24-card,.stprj24-step,.stvis21-card,.stvis21-step,.stvis24-card,.stvis24-step) a:not(.btn-link):not(.st-btn):not(.st-support-btn){color:#ff8a8a!important}

/* Imágenes y capturas mantienen su fondo natural, sin convertir la tarjeta completa en blanco. */
html[data-theme="dark"] body.has-st-shell :is(.article-img,.stphone-img,.stprj21-img,.stprj24-img,.stvis21-img,.stvis24-img){background:#e8edf4!important;border-color:#405776!important;padding:8px!important}
html[data-theme="dark"] body.has-st-shell :is(.article-img,.stphone-img,.stprj21-img,.stprj24-img,.stvis21-img,.stvis24-img) img{background:#fff!important}
html[data-theme="dark"] body.has-st-shell :is(.img-caption,.stphone-caption,.stprj21-caption,.stprj24-caption,.stvis21-caption,.stvis24-caption){color:#334155!important}

/* Avisos conservan significado sin perder contraste. */
html[data-theme="dark"] body.has-st-shell :is(.box-tip,.stphone-note,.stprj21-note,.stprj24-note,.stvis21-note,.stvis24-note){background:#102a45!important;border-color:#28598a!important;color:#dbeafe!important}
html[data-theme="dark"] body.has-st-shell :is(.box-warn,.stphone-alert,.stprj21-alert,.stprj24-alert,.stvis21-alert,.stvis24-alert){background:#39290f!important;border-color:#7c5c20!important;color:#fde68a!important}
html[data-theme="dark"] body.has-st-shell :is(.box-tip,.box-warn,.stphone-note,.stphone-alert,.stprj21-note,.stprj21-alert,.stprj24-note,.stprj24-alert,.stvis21-note,.stvis21-alert,.stvis24-note,.stvis24-alert) :is(p,li,strong,b,span){color:inherit!important;opacity:1!important}

/* Controles y descargas que antes permanecían blancos. */
html[data-theme="dark"] body.has-st-shell :is(.btn-light,.download-card,.stphone-download,.stprj21-download,.stprj24-download,.stvis21-download,.stvis24-download){background:#17243a!important;border-color:#405776!important;color:#f8fafc!important}
html[data-theme="dark"] body.has-st-shell :is(.btn-light,.download-card a,.stphone-download a,.stprj21-download a,.stprj24-download a,.stvis21-download a,.stvis24-download a){color:#f8fafc!important}

/* Evita que estilos inline claros dominen las guías en modo oscuro. */
html[data-theme="dark"] body.has-st-shell main [style*="background: white"],
html[data-theme="dark"] body.has-st-shell main [style*="background:#fff"],
html[data-theme="dark"] body.has-st-shell main [style*="background: #fff"],
html[data-theme="dark"] body.has-st-shell main [style*="background-color: white"],
html[data-theme="dark"] body.has-st-shell main [style*="background-color:#fff"]{background:#111c2f!important;color:#f8fafc!important;border-color:#2a3c57!important}

@media(max-width:640px){body.has-st-shell .st-help-brand img{max-height:40px}}
