/* El tema oscuro existente sigue intacto; las superficies claras conservan azul y oro. */
.header-tools{display:flex;align-items:center;gap:12px;flex-shrink:0}
.theme-toggle{position:relative;display:grid;grid-template-columns:1fr 1fr;place-items:center;isolation:isolate;width:86px;height:44px;padding:5px;border-radius:50px;border:1px solid #d3b47766;background:linear-gradient(145deg,#28475bd9,#142b38d9);color:#dbe6ee;box-shadow:inset 0 1px 0 #ffffff30,0 4px 18px #0002;cursor:pointer}
.theme-toggle::before{content:"";position:absolute;left:7.5px;top:5px;width:32px;height:32px;border-radius:50%;background:linear-gradient(145deg,#f1dcaf,#c6a363);box-shadow:0 2px 10px #0003,inset 0 1px 0 #fff9;transform:translateX(37px);transition:transform .35s cubic-bezier(.2,.75,.2,1)}
.theme-toggle svg{position:relative;width:21px;height:21px;z-index:1;stroke-width:1.8}
.theme-toggle .moon-icon{color:#142b38}.theme-toggle[aria-checked="true"]::before{transform:translateX(0)}
.theme-toggle:focus-visible{outline:3px solid #d3b477;outline-offset:4px}.theme-toggle:hover{border-color:#ead2a0;box-shadow:inset 0 1px 0 #ffffff60,0 0 20px #b8dfff25}
html[data-theme="light"]{color-scheme:only light;--ink:#193449;--muted:#485f70;--gold:#84601f;--line:#1e47642b;--paper:#edf3f7}
html[data-theme="light"] body{background:#edf3f8;color:var(--ink)}
html[data-theme="light"] body::before{background:radial-gradient(circle at 13% 19%,#82bce550 0,transparent 36%),radial-gradient(circle at 88% 46%,#a4cce959 0,transparent 35%),radial-gradient(circle at 30% 91%,#93bdd64d 0,transparent 38%),linear-gradient(130deg,#f3f6f9,#e5eef5 55%,#f4f3ef)}
html[data-theme="light"] body::after{opacity:.06;mix-blend-mode:multiply}
html[data-theme="light"] .ambient-orb{opacity:.48;filter:blur(65px)}
html[data-theme="light"] header{background:#f1f6fbe8;border-bottom-color:#a0b4c04d;box-shadow:0 8px 30px #39576d12}
html[data-theme="light"] :is(nav,.cart-button,.categories button,.search input,.results-line select,.brand){color:var(--ink)}
html[data-theme="light"] .preview-bar{background:#e3ebf3ce;color:#435c6d;border-color:#9eafbc3d}
html[data-theme="light"] .brand small{color:#84601f}
html[data-theme="light"] .brand img{filter:brightness(.72)}
html[data-theme="light"] .theme-toggle{background:linear-gradient(145deg,#fff9,#c9dbeacc);border-color:#5f7f9655;color:#526b7c}
html[data-theme="light"] .theme-toggle .sun-icon{color:#193449}html[data-theme="light"] .theme-toggle .moon-icon{color:#526b7c}
html[data-theme="light"] :is(.intro,.author,.catalog-controls,.shop-intro,.product,.purchase-option,.form-card,.user-card,.admin-editor,.admin-list,.manage-panel,.contact-channel,.testimonial-slide,dialog,.admin-modal){background:linear-gradient(145deg,#ffffffb8,#eef4f8ae);color:var(--ink);border-color:#7294ac45;box-shadow:inset 0 1px 0 #fff,0 14px 45px #355c7514}
html[data-theme="light"] .purchase-option.vip{background:linear-gradient(135deg,#f9edcc8c,#e7f0f7bb);border-color:#a7803c66}
html[data-theme="light"] :is(.intro-copy>p:not(.eyebrow),.author p:not(.eyebrow),.lead,.benefits p,.free-section p:not(.eyebrow),.count-copy p,.library-stat small,.testimonials span,.testimonial-slide span,.package-summary,.purchase-option p,.purchase-option small,.package-member details,.access-row small,.contact-channel p,.form-card p,.user-card p,.manage-note,.manage-summary span,.manage-product small,.manage-table td>small,.editor-media small,.contact-layout form small,.feedback-entry time,.catalog-note,.editor-media #editor-media-list>p){color:var(--muted)}
html[data-theme="light"] :is(.eyebrow,.section-title .eyebrow,.purchase-option strong,.subscription-band strong,.manage-summary strong,.manage-table th,.package-member summary,.form-status,.product-meta,.text-link,.recovery-link,.motion-button){color:#84601f}
html[data-theme="light"] .promo-label{color:#84601f!important}
html[data-theme="light"] :is(.outline-button,.detail-link,.cart-button,.categories button,.close){background:linear-gradient(145deg,#ffffff99,#dce9f47a);color:#264b66;border-color:#62849f55;box-shadow:inset 0 1px 0 #fff,0 5px 16px #36577313}
html[data-theme="light"] :is(.gold-button,.categories .selected,.admin-views button[aria-pressed="true"]){color:#152a39;background:linear-gradient(135deg,#ecd4a0eb,#d3b477d6 55%,#f1dbaac9);border-color:#a8874666}
html[data-theme="light"] .detail-link:hover{color:#152a39;background:linear-gradient(135deg,#edd6a2,#d3b477)}
html[data-theme="light"] .categories .category-icon{color:#84601f}html[data-theme="light"] .categories .selected .category-icon{color:#152a39}
html[data-theme="light"] .search{background:#ffffff65;border-color:#62849f45}
html[data-theme="light"] :is(.search,.product-bottom,.intro-meta,footer,footer>small,footer>span:first-child,footer span small,.count-band #free-count){color:var(--muted)}
html[data-theme="light"] .categories button:hover:not(.selected){color:#193449;background:#dceaf5}
html[data-theme="light"] :is(form input,form textarea,form select,.manage-filters input,.manage-filters select,.results-line select){color:var(--ink);background:#f9fcffb8;border-color:#6b889e66}
html[data-theme="light"] :is(form label,.media-tile label){color:#26465d}
html[data-theme="light"] :is(input,textarea)::placeholder{color:#586d7c;opacity:1}
html[data-theme="light"] :is(.manage-summary article,.manage-table td,.access-row,.feedback-entry,.editor-media,.media-tile,.detail-layout dl,footer){border-color:#52799433}
html[data-theme="light"] .category-heading th{background:#a9873d12;border-color:#a9873d40}
html[data-theme="light"] .state-chip{color:#435b6c;background:#e6edf4;border-color:#6b889e55}
html[data-theme="light"] .state-chip.live{color:#246247;background:#e5f3eb;border-color:#5b96734d}
html[data-theme="light"] .trash-button{color:#a6273b;border-color:#ba3d505c;background:#fff0f28c}
html[data-theme="light"] .trash-button:hover{background:#f9dce1}
html[data-theme="light"] :is(.free-section,.cart-summary,.checkout-list,.package-member){background:linear-gradient(135deg,#e1edf7bb,#ffffffa8);border-color:#7d9eb54d;color:var(--ink)}
html[data-theme="light"] .toast{background:#f4f8fb;color:var(--ink);border-color:#a7803c80}
html[data-theme="light"] .skip{background:#f4f8fb;color:var(--ink);z-index:100}
html[data-theme="light"] dialog::backdrop{background:#16304760}
html[data-theme="light"] :is(button,a,input,select,textarea):focus-visible{outline-color:#84601f}
/* Las vistas originales de Revit y su fondo se conservan en ambos temas. */
html[data-theme="light"] .featured-label{color:#f1eee7}html[data-theme="light"] .featured-label span{color:#e5c589}
@media(max-width:850px){.header-tools{gap:8px}.theme-toggle{width:80px}.theme-toggle::before{transform:translateX(36px)}.theme-toggle[aria-checked="true"]::before{transform:translateX(0)}}
@media(max-width:450px){.header-tools{gap:7px}.theme-toggle{width:72px}.theme-toggle::before{transform:translateX(28px)}.theme-toggle svg{width:18px;height:18px}}
@media(prefers-reduced-motion:reduce){.theme-toggle::before{transition:none}}
html[data-motion="off"] .theme-toggle::before{transition:none}

html[data-theme="dark"]{color-scheme:only dark}
