/* Plasti-K · TEMA NOCHE v1 (11-10-2026) — misma identidad que el menú de Algoritmos y las portadas.
   Azul noche + turquesa + filete dorado · Oswald (títulos) + Montserrat (texto) · logo original.
   Se carga DESPUÉS de los estilos propios de cada página: sólo sobreescribe; quitar el <link> revierte todo. */
@font-face{font-family:Oswald;src:url(/algoritmos/fuentes/Oswald.ttf) format('truetype');font-weight:200 700;font-display:swap}
@font-face{font-family:Montserrat;src:url(/algoritmos/fuentes/Montserrat.ttf) format('truetype');font-weight:100 900;font-display:swap}
:root{
  --pk-bg:#08141f; --pk-bg2:#0e1f2e; --pk-bg3:#132a3c; --pk-ln:rgba(255,255,255,.09); --pk-ln2:rgba(255,255,255,.16);
  --pk-tx:#eef3f7; --pk-mu:#8fa3b5; --pk-tq:#3fd0c9; --pk-tq2:#2bb3ad; --pk-au:#d4a94a; --pk-rojo:#e0626a;
  /* variables propias de la app, re-mapeadas */
  --azul:#3fd0c9; --azul2:#2bb3ad; --oro:#d4a94a; --oro2:#b8912e; --tinta:#eef3f7; --muted:#8fa3b5;
  --bg:#08141f; --line:rgba(255,255,255,.09); --soft:#0e1f2e; --shadow:0 10px 28px rgba(0,0,0,.35); --radius:16px;
  color-scheme:dark;
}
html,body{background:var(--pk-bg)!important;color:var(--pk-tx)!important}
body{font-family:Montserrat,-apple-system,BlinkMacSystemFont,'Segoe UI',system-ui,sans-serif!important;letter-spacing:0}
body::before{content:"";position:fixed;inset:0;pointer-events:none;z-index:-1;background:radial-gradient(110% 60% at 90% -10%,rgba(28,92,104,.55) 0%,rgba(8,20,31,0) 60%)}
h1,h2,.serv-tit,.secc,.hola,.pk-mt,.est-body h2,.cl-tit,.or-tit,.cs-hd{font-family:Oswald,Montserrat,sans-serif!important;letter-spacing:.01em}
.serv-tit,.secc{text-transform:uppercase;color:var(--pk-tx)!important;font-weight:600}
.secc{font-size:15px;letter-spacing:.06em}
a{color:var(--pk-tq)}

/* ---------- cabecera con logo ---------- */
header{background:rgba(8,20,31,.86)!important;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border-radius:0!important;box-shadow:none!important;border-bottom:1px solid var(--pk-ln);position:relative}
header::after{content:"";position:absolute;left:18px;bottom:-1px;width:64px;height:2px;background:var(--pk-au)}
header .logo{display:flex;align-items:center;gap:10px}
header .logo img{height:34px!important;filter:drop-shadow(0 2px 8px rgba(0,0,0,.4))}
@media(min-width:520px){header .logo::after{content:"PLASTI·K";font-family:Oswald,sans-serif;font-weight:600;font-size:19px;letter-spacing:.14em;color:#fff}}
header button,header .btn{background:rgba(255,255,255,.06)!important;color:var(--pk-tx)!important;border:1px solid var(--pk-ln)!important;box-shadow:none!important}

/* ---------- superficies ---------- */
.panel,.bienvenida,.card-serv,.ico-serv,.av-stats>div,.rep-done,.av-editbox,.est-wrap,.pk-mc,.mcq-op,.est-op,.caso-img,#jarvisPop,.um-item,.bz-in{background:var(--pk-bg2)!important;border:1px solid var(--pk-ln)!important;box-shadow:none!important;color:var(--pk-tx)}
.panel,.bienvenida{border-radius:16px!important}
.ico-serv:hover,.card-serv:hover{border-color:rgba(63,208,201,.45)!important;box-shadow:0 14px 30px rgba(0,0,0,.45)!important}
.ico-serv .ico-b,.card-serv .ic{background:rgba(63,208,201,.10)!important;color:var(--pk-tq)!important}
.ico-b svg{stroke:var(--pk-tq)!important}
.ico-serv .ico-t,.card-serv .ti,.hola,.av-gtop,.av-stats b,.pk-cd,.pk-sec,#pk-min-lbl,.mcq-q,.est-qt,.est-body h2,.pk-mt,.mcq-exp b,.trk-t{color:var(--pk-tx)!important}
.sub2,.hint,.load,.card-serv .de,.av-stats span,.av-day span,.trk-s,.av-sec{color:var(--pk-mu)!important}
.avatar{background:linear-gradient(135deg,#1c5c68,#0e1f2e)!important;border:1px solid var(--pk-ln2);box-shadow:none!important}
.avance,.av-streak{background:rgba(63,208,201,.08)!important;border:1px solid rgba(63,208,201,.25)!important;color:var(--pk-tq)!important}
.volver{color:var(--pk-tq)!important}

/* ---------- botones y chips ---------- */
.btn-oro,.plan-go,.av-plan .plan-go{background:var(--pk-tq)!important;color:#06222a!important;border:none!important;box-shadow:0 8px 20px rgba(63,208,201,.22)!important}
.btn-azul{background:var(--pk-bg3)!important;color:var(--pk-tx)!important;border:1px solid var(--pk-ln2)!important}
.btn-ghost,.av-edit,.est-x{background:rgba(255,255,255,.05)!important;color:var(--pk-tx)!important;border:1px solid var(--pk-ln2)!important;box-shadow:none!important}
.area,.tab{background:transparent!important;color:var(--pk-tx)!important;border:1px solid var(--pk-ln)!important;box-shadow:none!important}
.area.on,.tab.on{background:var(--pk-tq)!important;color:#06222a!important;border-color:transparent!important}
.card-serv .soon{background:rgba(255,255,255,.06)!important;color:var(--pk-mu)!important}

/* ---------- formularios ---------- */
textarea,input,select{background:rgba(255,255,255,.05)!important;color:var(--pk-tx)!important;border:1px solid var(--pk-ln2)!important}
textarea::placeholder,input::placeholder{color:#6f8496!important}
textarea:focus,input:focus,select:focus{border-color:var(--pk-tq)!important;box-shadow:0 0 0 3px rgba(63,208,201,.15)!important}
input[type=checkbox],input[type=radio],input[type=range]{accent-color:var(--pk-tq)}

/* ---------- chat y texto de la IA ---------- */
.ia{background:var(--pk-bg2)!important;color:var(--pk-tx)!important;border:1px solid var(--pk-ln)}
.me{background:linear-gradient(135deg,#1c5c68,#14404a)!important;color:#fff!important}
.msg.ia h3,.msg.ia h4,.msg.ia h5,.retro h3,.retro h4,.retro h5,.msg.ia strong,.retro strong{color:var(--pk-tq)!important}
.msg.ia code,.retro code{background:rgba(255,255,255,.08)!important;color:var(--pk-tx)}
.msg.ia blockquote,.retro blockquote{background:rgba(212,169,74,.08)!important;color:#e9d6a6!important;border-left-color:var(--pk-au)!important}
.msg.ia th,.retro th{background:rgba(63,208,201,.10)!important;color:var(--pk-tq)!important}
.msg.ia th,.msg.ia td,.retro th,.retro td{border-color:var(--pk-ln2)!important}
.msg.ia tbody tr:nth-child(even),.retro tbody tr:nth-child(even){background:rgba(255,255,255,.03)!important}
.q{background:rgba(63,208,201,.07)!important;border-left:3px solid var(--pk-tq)!important;color:var(--pk-tx)!important}
.retro{background:rgba(255,255,255,.04)!important;border-left:3px solid var(--pk-au)!important;color:var(--pk-tx)!important}

/* ---------- opción múltiple ---------- */
.mcq-op{color:var(--pk-tx)!important}
.mcq-op:hover:not(:disabled){border-color:var(--pk-tq)!important;background:rgba(63,208,201,.06)!important}
.mcq-op>b:first-child{background:rgba(255,255,255,.08)!important;color:var(--pk-tx)!important}
.mcq-op.ok{background:rgba(46,160,90,.16)!important;border-color:#3fbf7f!important;color:#bff0d3!important}
.mcq-op.bad{background:rgba(224,98,106,.14)!important;border-color:var(--pk-rojo)!important;color:#ffd0d3!important}
.mcq-exp{background:rgba(212,169,74,.07)!important;border:1px solid rgba(212,169,74,.3)!important;border-left:4px solid var(--pk-au)!important;color:var(--pk-tx)!important;box-shadow:none!important}
.est-op.sel{background:rgba(63,208,201,.10)!important;border-color:var(--pk-tq)!important}
.pk-qarea{background:rgba(63,208,201,.12)!important;color:var(--pk-tq)!important}
.pk-nrow{color:var(--pk-tx)!important}.pk-nbar,.av-bar{background:rgba(255,255,255,.08)!important}
.pk-warn{background:rgba(212,169,74,.08)!important;border-color:rgba(212,169,74,.35)!important;color:#e9d6a6!important}

/* ---------- plan, progreso y tarjetas de caso ---------- */
.av-plan{background:linear-gradient(140deg,#14404a,#0e1f2e)!important;border:1px solid rgba(63,208,201,.25);box-shadow:none!important}
.av-rep{background:var(--pk-bg3)!important;border:1px solid var(--pk-ln2)}
.av-fill,.av-daybar{background:var(--pk-tq)!important}
.cc-head{background:linear-gradient(135deg,#14404a,#0e1f2e)!important;border-bottom:3px solid var(--pk-au)!important;box-shadow:none!important}
.trk:hover{background:rgba(255,255,255,.04)!important}
.trk-th{background:linear-gradient(135deg,#1c5c68,#0e1f2e)!important}.trk-play{color:var(--pk-tq)!important}
.trk-sec{background:linear-gradient(var(--pk-bg),var(--pk-bg) 70%,transparent)!important}

/* ---------- capas a pantalla completa (mismo azul noche) ---------- */
#claseOverlay,#casoOverlay,#oralOverlay{background:radial-gradient(110% 60% at 90% -10%,rgba(28,92,104,.55) 0%,rgba(8,20,31,0) 60%),var(--pk-bg)!important}
#sesionOverlay{background:var(--pk-bg)!important}
.ses-top,.cl-top,.or-top{background:rgba(8,20,31,.9)!important;border-bottom:1px solid var(--pk-ln)!important;color:var(--pk-tx)!important}
.cl-slide h2{font-family:Oswald,sans-serif;color:var(--pk-tx)!important;text-transform:uppercase}
.cl-slide li:before,.cl-prog-fill{background:var(--pk-tq)!important}
.cl-tb.cl-play{background:var(--pk-tq)!important;color:#06222a!important;box-shadow:0 6px 20px rgba(63,208,201,.3)!important}
#estiloModal,.pk-modal{background:rgba(4,10,16,.72)!important}

/* ---------- barra inferior y Jarvis ---------- */
#pkNav{background:rgba(14,31,46,.94)!important;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border:1px solid var(--pk-ln)!important;box-shadow:0 12px 30px rgba(0,0,0,.45)!important}
#pkNav button{color:var(--pk-mu)!important}#pkNav button.on{color:var(--pk-tq)!important}
#pkNav button.on .pki{background:var(--pk-tq)!important;color:#06222a!important;box-shadow:0 8px 18px rgba(63,208,201,.3)!important}
#jarvisGlobo{border-color:rgba(63,208,201,.45)!important}
#jarvisPop button{background:rgba(255,255,255,.05)!important;color:var(--pk-tx)!important;border-color:var(--pk-ln2)!important}
.um-item:hover{background:rgba(255,255,255,.05)!important}.um-item{color:var(--pk-tx)!important}

/* ---------- estilos en línea generados por el código (fondos claros y textos azul marino) ---------- */
[style*="background:#fff"],[style*="background: #fff"],[style*="background:white"],[style*="background:#FFF"],
[style*="background:#f"],[style*="background: #f"],[style*="background:#e"],[style*="background: #e"],[style*="background:#F"],[style*="background:#E"],
[style*="background-color:#fff"],[style*="background-color:#f"]{background:var(--pk-bg2)!important}
[style*="color:#12326E"],[style*="color:#12326e"],[style*="color:#123a7a"],[style*="color:#1b2436"],[style*="color:#1c2b4a"],[style*="color:#1f3a54"],[style*="color:#0f1b34"],[style*="color:#17302E"],[style*="color:var(--azul)"],[style*="color:#333"],[style*="color:#222"],[style*="color:#000"]{color:var(--pk-tx)!important}
[style*="color:#5b6472"],[style*="color:#6a7488"],[style*="color:#55607a"],[style*="color:#8a93a6"],[style*="color:#666"],[style*="color:#777"],[style*="color:#888"]{color:var(--pk-mu)!important}
[style*="border:1px solid #"],[style*="border-bottom:1px solid #"],[style*="border-top:1px solid #"]{border-color:var(--pk-ln)!important}

/* ---------- v2 (11-10): toque dorado en contornos (pedido del Dr.) ---------- */
:root{--pk-au-ln:rgba(212,169,74,.38);--pk-au-ln2:rgba(212,169,74,.7)}
.btn,.btn-ghost,.btn-azul,.av-edit,.est-x,.area,.tab,.card-serv .soon,#jarvisPop button,header button,header .btn{border:1px solid var(--pk-au-ln)!important}
.btn:hover,.btn-ghost:hover,.btn-azul:hover,.area:hover,.tab:hover,#jarvisPop button:hover,header button:hover{border-color:var(--pk-au-ln2)!important;box-shadow:0 0 0 1px rgba(212,169,74,.25),0 6px 16px rgba(0,0,0,.35)!important}
.btn-oro,.plan-go,.av-plan .plan-go,.area.on,.tab.on{border:1px solid var(--pk-au)!important;box-shadow:0 0 0 1px rgba(212,169,74,.35),0 8px 20px rgba(63,208,201,.22)!important}
.panel,.bienvenida,.card-serv,.ico-serv,.av-stats>div,.est-wrap,.pk-mc,.mcq-op,.est-op,#jarvisPop,.av-plan,.av-rep{border-color:rgba(212,169,74,.22)!important}
.ico-serv:hover,.card-serv:hover,.mcq-op:hover:not(:disabled),.est-op:hover{border-color:var(--pk-au-ln2)!important}
.ico-serv .ico-b,.card-serv .ic{box-shadow:inset 0 0 0 1px rgba(212,169,74,.28)}
.avatar{border-color:var(--pk-au-ln)!important}
textarea:focus,input:focus,select:focus{border-color:var(--pk-au)!important;box-shadow:0 0 0 3px rgba(212,169,74,.15)!important}
#pkNav{border-color:var(--pk-au-ln)!important}
#pkNav button.on .pki{box-shadow:0 0 0 2px var(--pk-au),0 8px 18px rgba(63,208,201,.3)!important}
#jarvisGlobo{border-color:var(--pk-au-ln2)!important}
.cl-btn,.cl-tb,.cl-chip,.cl-x{box-shadow:inset 0 0 0 1px var(--pk-au-ln)!important}
.cl-tb.cl-play{box-shadow:0 0 0 2px var(--pk-au),0 6px 20px rgba(63,208,201,.3)!important}

/* ---------- v3 (11-10): fondos y textos en línea, también re-serializados por el navegador (rgb); menús de la cabecera ---------- */
#notifMenu,#userMenu,[style*="background: rgb(213, 219, 229)"],[style*="background-color: rgb(213, 219, 229)"],[style*="background:#d5dbe5"],[style*="background: #d5dbe5"],[style*="background: rgb(230, 236, 245)"],[style*="background-color: rgb(230, 236, 245)"],[style*="background:#e6ecf5"],[style*="background: #e6ecf5"],[style*="background: rgb(231, 236, 245)"],[style*="background-color: rgb(231, 236, 245)"],[style*="background:#e7ecf5"],[style*="background: #e7ecf5"],[style*="background: rgb(231, 238, 252)"],[style*="background-color: rgb(231, 238, 252)"],[style*="background:#e7eefc"],[style*="background: #e7eefc"],[style*="background: rgb(233, 237, 243)"],[style*="background-color: rgb(233, 237, 243)"],[style*="background:#e9edf3"],[style*="background: #e9edf3"],[style*="background: rgb(238, 241, 246)"],[style*="background-color: rgb(238, 241, 246)"],[style*="background:#eef1f6"],[style*="background: #eef1f6"],[style*="background: rgb(238, 241, 247)"],[style*="background-color: rgb(238, 241, 247)"],[style*="background:#eef1f7"],[style*="background: #eef1f7"],[style*="background: rgb(238, 242, 248)"],[style*="background-color: rgb(238, 242, 248)"],[style*="background:#eef2f8"],[style*="background: #eef2f8"],[style*="background: rgb(238, 242, 251)"],[style*="background-color: rgb(238, 242, 251)"],[style*="background:#eef2fb"],[style*="background: #eef2fb"],[style*="background: rgb(238, 245, 255)"],[style*="background-color: rgb(238, 245, 255)"],[style*="background:#eef5ff"],[style*="background: #eef5ff"],[style*="background: rgb(240, 240, 240)"],[style*="background-color: rgb(240, 240, 240)"],[style*="background:#f0f0f0"],[style*="background: #f0f0f0"],[style*="background: rgb(241, 245, 249)"],[style*="background-color: rgb(241, 245, 249)"],[style*="background:#f1f5f9"],[style*="background: #f1f5f9"],[style*="background: rgb(241, 250, 249)"],[style*="background-color: rgb(241, 250, 249)"],[style*="background:#f1faf9"],[style*="background: #f1faf9"],[style*="background: rgb(242, 245, 250)"],[style*="background-color: rgb(242, 245, 250)"],[style*="background:#f2f5fa"],[style*="background: #f2f5fa"],[style*="background: rgb(244, 246, 250)"],[style*="background-color: rgb(244, 246, 250)"],[style*="background:#f4f6fa"],[style*="background: #f4f6fa"],[style*="background: rgb(244, 246, 251)"],[style*="background-color: rgb(244, 246, 251)"],[style*="background:#f4f6fb"],[style*="background: #f4f6fb"],[style*="background: rgb(244, 248, 247)"],[style*="background-color: rgb(244, 248, 247)"],[style*="background:#f4f8f7"],[style*="background: #f4f8f7"],[style*="background: rgb(246, 248, 251)"],[style*="background-color: rgb(246, 248, 251)"],[style*="background:#f6f8fb"],[style*="background: #f6f8fb"],[style*="background: rgb(246, 248, 252)"],[style*="background-color: rgb(246, 248, 252)"],[style*="background:#f6f8fc"],[style*="background: #f6f8fc"],[style*="background: rgb(247, 245, 239)"],[style*="background-color: rgb(247, 245, 239)"],[style*="background:#f7f5ef"],[style*="background: #f7f5ef"],[style*="background: rgb(248, 250, 252)"],[style*="background-color: rgb(248, 250, 252)"],[style*="background:#f8fafc"],[style*="background: #f8fafc"],[style*="background: rgb(248, 250, 255)"],[style*="background-color: rgb(248, 250, 255)"],[style*="background:#f8faff"],[style*="background: #f8faff"],[style*="background: rgb(250, 246, 236)"],[style*="background-color: rgb(250, 246, 236)"],[style*="background:#faf6ec"],[style*="background: #faf6ec"],[style*="background: rgb(250, 251, 253)"],[style*="background-color: rgb(250, 251, 253)"],[style*="background:#fafbfd"],[style*="background: #fafbfd"],[style*="background: rgb(250, 251, 255)"],[style*="background-color: rgb(250, 251, 255)"],[style*="background:#fafbff"],[style*="background: #fafbff"],[style*="background: rgb(255, 255, 255)"],[style*="background-color: rgb(255, 255, 255)"],[style*="background:#fff"],[style*="background: #fff"],[style*="background: rgb(255, 243, 224)"],[style*="background-color: rgb(255, 243, 224)"],[style*="background:#fff3e0"],[style*="background: #fff3e0"],[style*="background: rgb(255, 246, 229)"],[style*="background-color: rgb(255, 246, 229)"],[style*="background:#fff6e5"],[style*="background: #fff6e5"],[style*="background: rgb(255, 250, 240)"],[style*="background-color: rgb(255, 250, 240)"],[style*="background:#fffaf0"],[style*="background: #fffaf0"],[style*="background: rgb(255, 251, 233)"],[style*="background-color: rgb(255, 251, 233)"],[style*="background:#fffbe9"],[style*="background: #fffbe9"],[style*="background: rgb(255, 253, 246)"],[style*="background-color: rgb(255, 253, 246)"],[style*="background:#fffdf6"],[style*="background: #fffdf6"],[style*="background: rgb(255, 253, 247)"],[style*="background-color: rgb(255, 253, 247)"],[style*="background:#fffdf7"],[style*="background: #fffdf7"],[style*="background: rgb(234, 251, 248)"],[style*="background-color: rgb(234, 251, 248)"],[style*="background:#eafbf8"],[style*="background: #eafbf8"]{background:var(--pk-bg2)!important}
#notifMenu,#userMenu{border:1px solid rgba(212,169,74,.35)!important;box-shadow:0 14px 34px rgba(0,0,0,.55)!important}
#notifMenu *,#userMenu *{border-color:var(--pk-ln)!important}
#notifMenu,#notif-items,#userMenu,#userMenu button,#userMenu a{color:var(--pk-tx)!important}
#notifMenu>div:first-child{font-family:Oswald,sans-serif;letter-spacing:.06em;text-transform:uppercase;color:var(--pk-tx)!important}
[style*="color: rgb(14, 122, 111)"],[style*="color:#0e7a6f"],[style*="color: rgb(18, 50, 110)"],[style*="color:#12326e"],[style*="color: rgb(18, 58, 122)"],[style*="color:#123a7a"],[style*="color: rgb(27, 42, 74)"],[style*="color:#1b2a4a"],[style*="color: rgb(28, 35, 51)"],[style*="color:#1c2333"],[style*="color: rgb(28, 43, 74)"],[style*="color:#1c2b4a"],[style*="color: rgb(31, 58, 84)"],[style*="color:#1f3a54"],[style*="color: rgb(34, 34, 34)"],[style*="color:#222"],[style*="color: rgb(58, 74, 90)"],[style*="color:#3a4a5a"],[style*="color: rgb(71, 85, 105)"],[style*="color:#475569"],[style*="color: rgb(85, 85, 85)"],[style*="color:#555"],[style*="color: rgb(91, 74, 30)"],[style*="color:#5b4a1e"],[style*="color: rgb(122, 90, 16)"],[style*="color:#7a5a10"],[style*="color: rgb(122, 90, 18)"],[style*="color:#7a5a12"]{color:var(--pk-tx)!important}
[style*="color: rgb(74, 90, 106)"],[style*="color:#4a5a6a"],[style*="color: rgb(85, 85, 102)"],[style*="color:#556"],[style*="color: rgb(85, 96, 122)"],[style*="color:#55607a"],[style*="color: rgb(102, 102, 119)"],[style*="color:#667"],[style*="color: rgb(106, 116, 136)"],[style*="color:#6a7488"],[style*="color: rgb(107, 107, 107)"],[style*="color:#6b6b6b"],[style*="color: rgb(122, 132, 153)"],[style*="color:#7a8499"],[style*="color: rgb(122, 138, 153)"],[style*="color:#7a8a99"],[style*="color: rgb(136, 136, 153)"],[style*="color:#889"],[style*="color: rgb(138, 147, 166)"],[style*="color:#8a93a6"],[style*="color: rgb(153, 153, 153)"],[style*="color:#999"],[style*="color: rgb(154, 167, 186)"],[style*="color:#9aa7ba"]{color:var(--pk-mu)!important}

/* ---------- v4 (11-10): resplandor esmeralda como en «Estructuras del pensamiento» ---------- */
html,body{background:radial-gradient(140% 85% at 92% -12%,rgba(46,128,136,.85) 0%,rgba(28,92,104,.45) 30%,rgba(8,20,31,0) 66%),radial-gradient(90% 50% at -10% 105%,rgba(28,92,104,.22) 0%,rgba(8,20,31,0) 60%),#08141f!important;background-attachment:fixed!important}
body::before{display:none}
header{background:linear-gradient(180deg,rgba(8,20,31,.55),rgba(8,20,31,.15))!important}
.panel,.bienvenida,.card-serv,.ico-serv,.av-stats>div{background:rgba(14,31,46,.62)!important;backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
