/* VinOS after dark — same editorial identity, a genuinely themed interface. */
:root{color-scheme:light}
:root[data-theme="dark"]{color-scheme:dark;--bg:#181116;--surface:#21181e;--surface-2:#1d151b;--text-1:#f5ecdf;--text-2:#c6b9bd;--text-3:#a99ba2;--accent:#e0bd88;--accent-hover:#f0d1a3;--accent-warm:#d7b988;--accent-light:#d7b98812;--accent-ring:#d7b98838;--border:#443139;--border-bright:#70535a;--brass:#d1ab74}

/* Lodestone-inspired magnetic slider: liquid-metal highlights, not a stock checkbox. */
.theme-toggle[hidden]{display:none!important}
.theme-toggle{--thumb-position:0;position:relative;display:inline-flex;align-items:center;justify-content:center;flex:none;width:78px;height:44px;padding:0;border:0;background:transparent;border-radius:999px;cursor:pointer;touch-action:pan-y;-webkit-tap-highlight-color:transparent;user-select:none}
.theme-toggle[aria-checked="true"]{--thumb-position:1}
.theme-toggle.is-dragging{--thumb-position:var(--drag-progress)}
.theme-track{position:relative;display:block;width:100%;height:34px;border:1px solid #b99d77;border-radius:999px;background:linear-gradient(180deg,#e6d7c3,#fff9ed 48%,#f0e7d8);box-shadow:inset 0 3px 6px #78441f39,inset 0 -1px 2px #fff,0 2px 6px #210d1510;overflow:hidden;transition:background .3s,border-color .3s,box-shadow .3s}
.theme-track svg{position:absolute;top:50%;width:14px;height:14px;transform:translateY(-50%);color:#76573b;pointer-events:none;transition:color .3s,opacity .3s}
.theme-sun{left:11px;opacity:.35}.theme-moon{right:11px;opacity:.9}
.theme-thumb{position:absolute;top:3px;left:calc(3px + var(--thumb-position) * (100% - 34px));width:28px;height:26px;z-index:2;border-radius:47% 53% 48% 52% / 50% 49% 51% 50%;background:radial-gradient(ellipse at 26% 18%,#fff8d7 0%,#f4dca6 13%,transparent 36%),linear-gradient(155deg,#dfc39a,#ab774b 45%,#5e3226 92%);border:1px solid #fff2cf;box-shadow:0 2px 6px #4d271d77,inset 0 -2px 3px #47231573;transition:left .45s cubic-bezier(.22,.9,.25,1.2),background .3s,border-color .3s,box-shadow .3s;pointer-events:none}
.theme-thumb::after{content:'';position:absolute;inset:3px 5px 12px;border-radius:50%;background:linear-gradient(145deg,#fff9de9c,transparent 75%);transform:rotate(-12deg)}
.theme-droplets{position:absolute;z-index:1;left:11px;right:11px;top:50%;height:6px;pointer-events:none;opacity:0;transition:opacity .25s}
.theme-droplets i{position:absolute;top:0;left:27%;width:5px;height:5px;border-radius:50%;background:#c49358;box-shadow:0 0 4px #c4935888}.theme-droplets i:nth-child(2){left:46%;top:-2px;width:3px;height:3px}.theme-droplets i:nth-child(3){left:66%;width:4px;height:4px}
.theme-toggle:hover .theme-droplets,.theme-toggle.is-dragging .theme-droplets{opacity:.7}
.theme-toggle:hover .theme-track{box-shadow:inset 0 3px 7px #78441f39,0 0 13px #cfa76a55}
.theme-toggle.is-dragging .theme-thumb{transition:none;border-radius:44% 56% 53% 47% / 43% 58% 42% 57%;transform:scaleX(1.13)}
.theme-toggle[aria-checked="true"] .theme-track{background:linear-gradient(180deg,#100c12,#34222c 50%,#21151c);border-color:#876c53;box-shadow:inset 0 2px 8px #000a,inset 0 0 12px #c2864940,0 0 10px #c286492a}
.theme-toggle[aria-checked="true"] .theme-thumb{border-color:#b9a28a;background:radial-gradient(ellipse at 24% 18%,#eddec2 0%,#948171 10%,transparent 34%),linear-gradient(150deg,#6e605a,#211e23 48%,#100c12 90%);box-shadow:0 2px 5px #000b,0 0 7px #c7a06c60,inset 0 -1px 4px #0009}
.theme-toggle[aria-checked="true"] .theme-track svg{color:#e4c28e}.theme-toggle[aria-checked="true"] .theme-sun{opacity:.94}.theme-toggle[aria-checked="true"] .theme-moon{opacity:.35}
.theme-toggle:focus-visible{outline:2px solid var(--accent);outline-offset:2px}

/* Dark surfaces and semantic contrast. The photographic hero and actual dashboard capture are unchanged. */
:root[data-theme="dark"] body{background:var(--bg);color:var(--text-1)}
:root[data-theme="dark"] body header{background:rgba(24,17,22,.97)!important;border-color:var(--border)!important}
:root[data-theme="dark"] header::after{background:linear-gradient(90deg,transparent,#d7b98833,transparent)}
:root[data-theme="dark"] header .nav-cta .btn,:root[data-theme="dark"] #contacto .form-panel .btn{background:#d7b988;color:#21131a;border-color:#e7c99a}
:root[data-theme="dark"] header .nav-cta .btn:hover,:root[data-theme="dark"] #contacto .form-panel .btn:hover{background:#e8c99b;color:#21131a}
:root[data-theme="dark"] .nav-logo img,:root[data-theme="dark"] .site-footer .footer-brand .footer-logo img,:root[data-theme="dark"] .premium-network-core img{filter:brightness(0) saturate(100%) invert(92%) sepia(23%) saturate(380%) hue-rotate(345deg) brightness(102%)}
:root[data-theme="dark"] .premium-mega{box-shadow:0 18px 55px #0008}
:root[data-theme="dark"] .premium-mega strong,:root[data-theme="dark"] .premium-section h2,:root[data-theme="dark"] .premium-directory-item h3,:root[data-theme="dark"] .premium-editorial-copy h3,:root[data-theme="dark"] #contacto .form-copy h2{color:var(--text-1)}
:root[data-theme="dark"] .premium-editorial-feature-main{background:#322029;border:1px solid var(--border)}
:root[data-theme="dark"] .premium-editorial-feature-main .premium-editorial-copy h3{color:#fff5e6}
:root[data-theme="dark"] .premium-directory-item:hover,:root[data-theme="dark"] .premium-directory-item:focus-within{background:#d7b98809}
:root[data-theme="dark"] .premium-network-node{background:var(--surface);border-color:var(--border-bright);color:var(--text-1);box-shadow:0 4px 16px #0004}
:root[data-theme="dark"] .premium-network-node:hover,:root[data-theme="dark"] .premium-network-node:focus-visible{background:#30222b;border-color:var(--brass);color:var(--accent);box-shadow:0 4px 18px #b9966019}
:root[data-theme="dark"] .premium-network-core{background:#261921;border-color:#a58256;color:var(--text-1);box-shadow:0 0 0 10px #b9966010,0 8px 34px #0007}
:root[data-theme="dark"] .premium-network-core>span{color:#d7b988}
:root[data-theme="dark"] .premium-network-track{stroke:#725b46}
:root[data-theme="dark"] .premium-network-pulse{stroke:#edc88b;filter:drop-shadow(0 0 5px #d7b36d)}
:root[data-theme="dark"] .premium-flow-interactive,:root[data-theme="dark"] #contacto.cta-section{background:var(--bg)}
:root[data-theme="dark"] .contact-label{color:var(--accent);background:var(--surface-2);border-color:var(--border-bright);box-shadow:none}
:root[data-theme="dark"] .premium-section .premium-arrow{border-color:#d7b98855}
:root[data-theme="dark"] .premium-directory-item a:hover .premium-arrow,:root[data-theme="dark"] .premium-network-node:hover .premium-arrow,:root[data-theme="dark"] .premium-mega a:hover .premium-arrow,:root[data-theme="dark"] .premium-directory-item a:focus-visible .premium-arrow,:root[data-theme="dark"] .premium-network-node:focus-visible .premium-arrow,:root[data-theme="dark"] .premium-mega a:focus-visible .premium-arrow{background:var(--accent);color:#21131a;border-color:var(--accent)}
:root[data-theme="dark"] #contacto .form-panel{background:var(--surface);box-shadow:0 18px 50px #0006;border-color:var(--border-bright)}
:root[data-theme="dark"] .form-panel-header{border-color:var(--border)}
:root[data-theme="dark"] .form-panel-kicker{color:var(--accent)}
:root[data-theme="dark"] .fl{color:var(--text-2)}
:root[data-theme="dark"] .fi{background:#181116;color:var(--text-1);border-color:var(--border-bright);box-shadow:none}
:root[data-theme="dark"] .fi:hover,:root[data-theme="dark"] .fi:focus{border-color:var(--accent);background:#21181e;box-shadow:0 0 0 3px #d7b98816}
:root[data-theme="dark"] .fi::placeholder,:root[data-theme="dark"] .chatbot-input::placeholder{color:var(--text-3)}
:root[data-theme="dark"] .form-msg.is-success{color:#8cd5ab}
:root[data-theme="dark"] .form-msg.is-error{color:#f0a3a7}
:root[data-theme="dark"] .chatbot-panel,:root[data-theme="dark"] .chatbot-form,:root[data-theme="dark"] .chatbot-footer,:root[data-theme="dark"] .cta-picker{background:var(--surface);border-color:var(--border-bright);color:var(--text-1)}
:root[data-theme="dark"] .chatbot-head,:root[data-theme="dark"] .chatbot-messages,:root[data-theme="dark"] .chatbot-quick{background:var(--bg)}
:root[data-theme="dark"] .chatbot-msg.bot,:root[data-theme="dark"] .chatbot-chip{background:var(--surface-2);border-color:var(--border-bright);color:var(--text-1)}
:root[data-theme="dark"] .chatbot-msg.user{background:#49303b;border-color:#76535e;color:var(--text-1)}
:root[data-theme="dark"] .chatbot-send{background:var(--accent);color:#21131a}
:root[data-theme="dark"] .cta-picker-head,:root[data-theme="dark"] .cta-picker-foot{border-color:var(--border)}
:root[data-theme="dark"] .cta-picker-head strong,:root[data-theme="dark"] .cta-pick-label{color:var(--text-1)}
:root[data-theme="dark"] .cta-picker-head span,:root[data-theme="dark"] .cta-pick-desc,:root[data-theme="dark"] .cta-picker-foot{color:var(--text-2)}
:root[data-theme="dark"] .cta-pick-opt:hover,:root[data-theme="dark"] .cta-pick-opt:active{background:var(--surface-2)}
:root[data-theme="dark"] .cta-pick-opt:hover .cta-pick-arr,:root[data-theme="dark"] .cta-pick-icon-demo svg{color:var(--accent);stroke:var(--accent)}

@media(max-width:700px){header .nav-cta{gap:8px}.theme-toggle{width:70px}.theme-track{height:32px}.theme-thumb{height:24px;width:26px;left:calc(3px + var(--thumb-position) * (100% - 32px))}}
@media(max-width:380px){header .nav{padding-inline:16px;gap:2px 6px}header .nav-logo img{height:31px;max-width:88px}header .nav-cta{gap:5px}.theme-toggle{width:65px}header .nav-cta .btn{padding-inline:10px}}
@media(prefers-reduced-motion:reduce){.theme-toggle *{transition:none!important;transform:none}.theme-track svg{top:calc(50% - 7px)}}

