:root{color-scheme:dark}
.theme-toggle{display:inline-grid;place-items:center;flex:none;width:40px;height:40px;padding:0;border:1px solid var(--line);border-radius:50%;background:rgba(7,12,18,.4);color:var(--mist);cursor:pointer;transition:color .2s,border-color .2s,background-color .2s}
.theme-toggle svg{grid-area:1/1;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.theme-toggle .theme-moon{display:none}
.theme-toggle:hover{color:var(--amber);border-color:var(--amber)}
html[data-theme="light"]{color-scheme:light;--night:#f6f3ed;--snow:#172b36;--mist:#4b606c;--slate:#d8e0e0;--ice:#345969;--amber:#a84b0b;--amber-hi:#97420a;--line:rgba(31,62,77,.18);--panel:rgba(255,254,251,.88)}
html[data-theme="light"] body::before{background:radial-gradient(120% 80% at 70% 20%,#e3e9e6 0%,var(--night) 62%)}
html[data-theme="light"] .scrim{background:linear-gradient(90deg,rgba(246,243,237,.97) 0%,rgba(246,243,237,.78) 34%,rgba(246,243,237,0) 65%),linear-gradient(0deg,rgba(246,243,237,.85),rgba(246,243,237,0) 30%)}
html[data-theme="light"] .top,html[data-theme="light"] .top.stuck{background:rgba(246,243,237,.88);border-color:var(--line)}
html[data-theme="light"] .langs,html[data-theme="light"] .theme-toggle,html[data-theme="light"] .hud button{background:rgba(255,254,251,.78)}
html[data-theme="light"] .theme-toggle .theme-sun{display:none}
html[data-theme="light"] .theme-toggle .theme-moon{display:block}
html[data-theme="light"] .town span{background:rgba(255,254,251,.9);border-color:rgba(168,75,11,.3)}
html[data-theme="light"] .lead,html[data-theme="light"] .tags li{color:var(--mist)}
html[data-theme="light"] .btn-1,html[data-theme="light"] .langs button[aria-pressed="true"],html[data-theme="light"] .chips input:checked+span{background:#ff9b42;color:#101820}
html[data-theme="light"] .btn-1{box-shadow:0 8px 30px -14px rgba(168,75,11,.5)}
html[data-theme="light"] .btn-2{background:rgba(255,254,251,.72);border-color:rgba(31,62,77,.3)}
html[data-theme="light"] .nav .cta{border-color:rgba(31,62,77,.3)}
html[data-theme="light"] .proj h3 .go{background:#e3e9e6;color:#172b36}
html[data-theme="light"] .training-shell{background:linear-gradient(135deg,rgba(255,155,66,.09),rgba(255,254,251,.95) 48%)}
html[data-theme="light"] input[type="text"],html[data-theme="light"] textarea{background:rgba(255,255,255,.78)}
html[data-theme="light"] input::placeholder,html[data-theme="light"] textarea::placeholder{color:#657781}
html[data-theme="light"] input[type="text"]:focus,html[data-theme="light"] textarea:focus{background:#fffaf3}
html[data-theme="light"] .steps li::before{border-color:#7e919b}
html[data-theme="light"] .steps .fill{box-shadow:none}
html[data-theme="light"] footer{background:rgba(235,238,233,.88)}
html[data-theme="light"] .media-logo{background:#101820}
html[data-theme="light"] .skip:focus{background:#172b36;color:#fffdf8}
html[data-theme="light"] .wa{box-shadow:0 8px 28px -8px rgba(23,43,54,.3)}
html[data-theme="light"] .cc-consent{background:#fffdf8;color:#172b36;border-color:#7e919b;box-shadow:0 12px 50px #172b3626}
html[data-theme="light"] .cc-consent button,html[data-theme="light"] .cc-settings{background:#edf0eb;color:#172b36;border-color:#7e919b}
html[data-theme="light"] .cc-consent a{color:#97420a}
@media(hover:hover) and (pointer:fine){
  html[data-theme="light"] .btn-1:hover{background:#ffb46f;box-shadow:0 8px 30px -12px rgba(168,75,11,.4)}
  html[data-theme="light"] .btn-2:hover{background:#fffdf8;border-color:#345969}
  html[data-theme="light"] .nav .cta:hover{background:#172b36;color:#fffdf8}
  html[data-theme="light"] .langs button:not([aria-pressed="true"]):hover{background:#e3e9e6}
  html[data-theme="light"] .proj:hover .go{background:#ff9b42}
  html[data-theme="light"] .chips label:hover span,html[data-theme="light"] .hud button:hover{border-color:#345969}
}
@media(min-width:1000px) and (max-width:1150px){.nav{gap:12px}.nav a{font-size:14px}}
@media(max-width:999px){html[data-theme="light"] .scrim{background:linear-gradient(0deg,rgba(246,243,237,.97) 0%,rgba(246,243,237,.84) 46%,rgba(246,243,237,0) 82%)}}
@media(max-width:759px){
  html[data-theme="light"] .scrim{background:linear-gradient(0deg,rgba(246,243,237,.98) 0%,rgba(246,243,237,.96) 50%,rgba(246,243,237,0) 70%)}
  .top .wrap{height:auto;min-height:60px;flex-wrap:wrap;gap:6px 12px;padding-block:10px}
  .theme-toggle{width:36px;height:36px}
}
@media(max-width:520px){
  .top .wrap{justify-content:center}.nav{width:100%;justify-content:space-between;gap:10px}
  #formacion{padding-top:140px}
}
@media(prefers-reduced-motion:reduce){.theme-toggle{transition:none}}
