/* AuriOS — tipografía, monitor CRT y arranque */
@font-face { font-family: "Noto Sans"; src: url(../assets/fonts/NotoSans-var.woff2) format("woff2"); font-weight: 100 900; font-stretch: 62.5% 100%; font-display: block; }
@font-face { font-family: "Noto Sans Mono"; src: url(../assets/fonts/NotoSansMono-var.woff2) format("woff2"); font-weight: 100 900; font-stretch: 62.5% 100%; font-display: block; }

:root {
  --ui: "Noto Sans", "Open Sans", Tahoma, Verdana, sans-serif;
  --mono: "Noto Sans Mono", "Lucida Console", Consolas, monospace;
  --fs: 12px;
  --tb-h: 38px;
  --luna-1: #0a4fd6; --luna-2: #3d92ff; --luna-dark: #0831a8;
  --beige: #ece9d8; --beige-d: #d4d0c0; --ink: #1b1b1b;
  --cursor-arrow: url(../assets/cursors/arrow.svg) 3 2, default;
  --cursor-hand: url(../assets/cursors/hand.svg) 8 3, pointer;
  --cursor-busy: url(../assets/cursors/busy.svg) 8 14, wait;
}
@media (max-width: 699px) { :root { --fs: 13px; --tb-h: 46px; } }

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: #000; overflow: hidden; overscroll-behavior: none; }
body { font: 400 var(--fs)/1.35 var(--ui); color: var(--ink); -webkit-font-smoothing: antialiased; touch-action: manipulation; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
img, svg { -webkit-user-drag: none; user-select: none; }

/* ---------- Monitor ---------- */
#monitor { position: fixed; inset: 0; background: radial-gradient(120% 120% at 50% 40%, #1a1c20, #060708 70%); padding: 14px; }
#screen { position: relative; width: 100%; height: 100%; overflow: hidden; background: #000; border-radius: 34px / 28px; isolation: isolate;
  box-shadow: 0 0 0 2px #000, 0 0 0 4px #17191d, inset 0 0 40px rgba(0,0,0,.8); }
#os { position: absolute; inset: 0; overflow: hidden; background: #000; color: #fff; user-select: none; -webkit-user-select: none;
  text-shadow: 0 0 1.4px rgba(140, 180, 255, .22); filter: saturate(1.07) contrast(1.035);
  cursor: var(--cursor-arrow); }
#os button, #os [role=button], #os .icon, #os .tb-btn, #os .item, #os a { cursor: var(--cursor-hand); }
@media (max-width: 699px), (pointer: coarse) { #monitor { padding: 0; } #screen { border-radius: 22px / 18px; } }
@media (max-width: 699px) { #monitor { padding: 0; } #screen { border-radius: 18px / 14px; box-shadow: none; } }
#led { position: absolute; right: 36px; bottom: 3px; width: 6px; height: 6px; border-radius: 50%; background: #ff7a1a; box-shadow: 0 0 5px 1px #ff7a1a; animation: standby 2.4s ease-in-out infinite; }
#led.on { background: #4dff7a; box-shadow: 0 0 6px 1px #4dff7a; animation: none; }
#led.off { background: #222; box-shadow: none; animation: none; }
@media (max-width: 699px) { #led { display: none; } }
@keyframes standby { 50% { opacity: .25; } }

.fx { position: absolute; inset: 0; pointer-events: none; }
.fx-scan { background: repeating-linear-gradient(0deg, rgba(0,0,0,0) 0, rgba(0,0,0,0) 2px, rgba(0,0,0,.2) 2px, rgba(0,0,0,.2) 3px); z-index: 5; opacity: .9; }
.fx-mask { background: repeating-linear-gradient(90deg, rgba(255,40,40,.05) 0, rgba(40,255,60,.04) 1px, rgba(50,90,255,.05) 2px, rgba(0,0,0,0) 3px); mix-blend-mode: screen; z-index: 5; }
.fx-glow { background: radial-gradient(75% 65% at 50% 46%, rgba(160,200,255,.07), rgba(160,200,255,0) 70%); mix-blend-mode: screen; z-index: 6; }
.fx-vig { background: radial-gradient(130% 120% at 50% 50%, rgba(0,0,0,0) 52%, rgba(0,0,0,.34) 84%, rgba(0,0,0,.78) 100%); z-index: 7; }
.fx-glass { z-index: 8; border-radius: inherit;
  background: linear-gradient(158deg, rgba(255,255,255,.07) 0, rgba(255,255,255,.02) 22%, rgba(255,255,255,0) 40%),
              radial-gradient(60% 40% at 18% 6%, rgba(255,255,255,.05), rgba(255,255,255,0));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04), inset 0 0 60px 6px rgba(0,0,0,.35), inset 0 0 8px 2px rgba(0,0,0,.55); }
.fx-flicker { z-index: 6; background: #cfe0ff; mix-blend-mode: soft-light; opacity: 0; animation: flick 4.7s steps(1, end) infinite; }
@keyframes flick { 0% { opacity: .0 } 3% { opacity: .05 } 4% { opacity: 0 } 41% { opacity: .0 } 42% { opacity: .07 } 43% { opacity: .0 } 77% { opacity: .03 } 78% { opacity: 0 } 100% { opacity: 0 } }
.fx-roll { z-index: 6; background: linear-gradient(180deg, rgba(255,255,255,0), rgba(190,215,255,.045) 46%, rgba(190,215,255,.07) 50%, rgba(255,255,255,0)); height: 22%; top: -22%; bottom: auto; animation: roll 9s linear infinite; mix-blend-mode: screen; }
@keyframes roll { to { transform: translateY(560%); } }
.fx-flash { z-index: 20; background: #fff; opacity: 0; }
@media (prefers-reduced-motion: reduce) { .fx-flicker, .fx-roll { animation: none; opacity: 0; } #led { animation: none; } }

/* ---------- Pantalla de encendido ---------- */
#power { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 18px; background: #000; color: #5b6a63; text-shadow: none; }
#power .power-btn { width: 78px; height: 78px; border-radius: 50%; display: grid; place-items: center; color: #7d8f86; border: 2px solid #2b3430; box-shadow: 0 0 22px rgba(80,255,150,.08), inset 0 0 18px rgba(80,255,150,.05); animation: breathe 3.4s ease-in-out infinite; cursor: var(--cursor-hand); }
#power p { margin: 0; font: 400 14px var(--ui); letter-spacing: .12em; text-transform: uppercase; animation: breathe 3.4s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .45; } }

/* ---------- BIOS ---------- */
#bios { position: absolute; inset: 0; background: #000; padding: 28px 30px; overflow: hidden; }
#bios pre { margin: 0; font: 400 15px/1.55 var(--mono); color: #c8cdd2; white-space: pre-wrap; text-shadow: 0 0 5px rgba(200,215,230,.5); }
#bios pre .ok { color: #7dff9b; } #bios pre .hl { color: #fff; } #bios pre .dim { color: #7d858c; } #bios pre .cur { display: inline-block; width: .6em; height: 1.05em; background: #c8cdd2; vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (min-width: 1100px) { #bios { padding: 44px 56px; } #bios pre { font-size: 19px; } }
@media (max-width: 699px) { #bios { padding: 18px 16px; } #bios pre { font-size: 11.5px; line-height: 1.5; } }

/* ---------- Pantalla de carga ---------- */
#splash { position: absolute; inset: 0; background: #000; display: flex; flex-direction: column; align-items: center; justify-content: center; text-shadow: none; }
.splash-emblem { width: 132px; height: 132px; filter: drop-shadow(0 0 18px rgba(80,140,255,.45)); margin-bottom: 10px; }
.splash-word { font: 400 52px/1 var(--ui); letter-spacing: -.01em; color: #fff; }
.splash-word b { font-weight: 800; font-style: italic; color: #6fb1ff; }
.splash-word span { font-weight: 300; }
.splash-sub { color: #b6c6e8; font-size: 13px; letter-spacing: .3em; text-transform: uppercase; margin: 6px 0 34px; }
.splash-foot { position: absolute; bottom: 22px; color: #6c7aa0; font-size: 11px; }
.xp-bar { position: relative; width: 190px; height: 17px; border: 2px solid #b2b2b2; border-radius: 7px; padding: 2px 0; overflow: hidden; background: #000; }
.xp-bar i { position: absolute; top: 2px; bottom: 2px; width: 9px; border-radius: 2px; left: -30px; background: linear-gradient(180deg, #2838c7 0, #5a8bff 45%, #2838c7 100%); box-shadow: 0 0 6px rgba(70,120,255,.8); animation: xpblocks 1.7s linear infinite; }
.xp-bar i:nth-child(2) { animation-delay: .12s; margin-left: 12px; } .xp-bar i:nth-child(3) { animation-delay: .24s; margin-left: 24px; }
@keyframes xpblocks { from { transform: translateX(0); } to { transform: translateX(224px); } }
@media (max-width: 699px) { .splash-word { font-size: 44px; } .splash-emblem { width: 112px; height: 112px; } }

/* ---------- Inicio de sesión ---------- */
#login { position: absolute; inset: 0; background: #5a7edc; display: grid; grid-template-rows: 78px 1fr 74px; color: #fff; }
.login-top { background: #00309c; border-bottom: 2px solid transparent; border-image: linear-gradient(90deg, #00309c, #fff 50%, #00309c) 1; box-shadow: 0 2px 12px rgba(0,0,0,.25); }
.login-main { display: grid; grid-template-columns: 1fr 1fr; background: radial-gradient(60% 80% at 20% 30%, #7fa3f0, #5a7edc 60%, #4a6fd0); position: relative; }
.login-main::after { content: ""; position: absolute; left: 50%; top: 8%; bottom: 8%; width: 2px; background: linear-gradient(180deg, transparent, rgba(255,255,255,.7), transparent); }
.login-left { display: flex; flex-direction: column; align-items: flex-end; justify-content: center; padding-right: 54px; text-align: right; gap: 4px; }
.login-left img { width: 112px; height: 112px; filter: drop-shadow(0 6px 10px rgba(0,20,100,.4)); }
.login-brand { font: 400 54px/1 var(--ui); text-shadow: 2px 3px 4px rgba(0,20,100,.45); }
.login-brand span { font-weight: 300; } .login-brand b { font-weight: 800; font-style: italic; color: #fff; }
.login-left p { margin: 6px 0 0; font-size: 17px; color: #e7eeff; }
.login-right { display: flex; align-items: center; justify-content: flex-start; padding-left: 54px; }
.user-tile { display: grid; grid-template-columns: 82px auto; grid-template-rows: auto auto; column-gap: 16px; align-items: center; text-align: left; background: transparent; border: 0; border-radius: 10px; padding: 12px 22px 12px 12px; color: #fff; transition: background .2s; }
.user-tile:hover, .user-tile:focus-visible { background: linear-gradient(90deg, rgba(0,30,120,.38), rgba(0,30,120,0)); outline: none; }
.user-pic { grid-row: 1 / span 2; width: 82px; height: 82px; border-radius: 9px; border: 3px solid #e3ecff; overflow: hidden; background: #f1e4cc; box-shadow: 0 4px 10px rgba(0,20,100,.4); }
.user-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.user-name { font-size: 25px; font-weight: 600; align-self: end; text-shadow: 1px 2px 3px rgba(0,20,100,.4); }
.user-hint { font-size: 12.5px; color: #dbe6ff; align-self: start; max-width: 190px; }
.login-bottom { background: #00309c; border-top: 2px solid transparent; border-image: linear-gradient(90deg, #00309c, #f99736 50%, #00309c) 1; display: flex; align-items: center; justify-content: space-between; padding: 0 28px; font-size: 14px; }
.login-off { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
.login-off i { width: 30px; height: 30px; border-radius: 6px; border: 2px solid #fff; background: radial-gradient(circle at 35% 30%, #f7a587, #d5401e 70%); position: relative; }
.login-off i::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; border: 2.5px solid #fff; border-top-color: transparent; }
.login-off i::before { content: ""; position: absolute; left: 50%; top: 3px; width: 2.5px; height: 10px; background: #fff; margin-left: -1.2px; border-radius: 2px; z-index: 1; }
.login-note { color: #c9d8ff; max-width: 330px; text-align: right; font-size: 12.5px; }
@media (max-width: 699px) {
  #login { grid-template-rows: 44px 1fr 58px; }
  .login-main { grid-template-columns: 1fr; grid-template-rows: auto auto; align-content: center; justify-items: center; gap: 26px; }
  .login-main::after { display: none; }
  .login-left { align-items: center; text-align: center; padding: 0; } .login-left img { width: 88px; height: 88px; } .login-brand { font-size: 42px; } .login-left p { font-size: 15px; }
  .login-right { padding: 0; } .user-tile { background: rgba(0,30,120,.28); }
  .login-note { display: none; } .login-bottom { padding: 0 18px; }
}

/* ---------- Bienvenida ---------- */
#welcome { position: absolute; inset: 0; background: radial-gradient(90% 90% at 30% 25%, #6f97f0, #3f66c8 70%); display: grid; place-items: center; color: #fff; }
.welcome-box { text-align: left; padding-left: 4px; animation: wl 1.6s ease-out both; }
.welcome-txt { font: 300 54px/1 var(--ui); text-shadow: 2px 3px 6px rgba(0,20,100,.5); font-style: italic; }
.welcome-name { font-size: 20px; margin-top: 8px; color: #dbe6ff; letter-spacing: .04em; }
@keyframes wl { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Apagado ---------- */
#off { position: absolute; inset: 0; background: #000; display: grid; place-content: center; text-align: center; color: #e2a350; font: 400 20px/1.6 var(--ui); text-shadow: 0 0 6px rgba(226,163,80,.5); }
#off p { margin: 0; } .off-sub { font-size: 13px; color: #7a6a52; margin-top: 10px; }
