/* --- RESET & VARIABLES --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
}

:root {
  --bg-color: #171614;
  --win-bg: #2409FF;
  --win-border: #817F82;
  --win-header: #F6F740;
  --text-main: #F0EFF4;
  --text-accent: #F6F740;
  --font-retro: 'VT323', monospace;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-retro);
  font-size: 20px;
  min-height: 100vh;
  overflow: hidden;
}

/* --- EFECTO CRT / SCANLINES --- */
.crt-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(
    rgba(18, 16, 16, 0) 50%, 
    rgba(0, 0, 0, 0.35) 50%
  );
  background-size: 100% 4px;
  z-index: 9999;
  pointer-events: none;
  box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.8);
}

/* --- ESCRITORIO Y BARRA SUPERIOR --- */
.desktop {
  width: 100vw;
  height: 100vh;
  position: relative;
  background: radial-gradient(circle, #1a0933 0%, #050010 100%);
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 16px;
  background: #000;
  border-bottom: 2px solid var(--text-main);
  color: var(--text-accent);
}

/* --- VENTANAS ESTILO RETRO --- */
.window {
  position: absolute;
  width: 320px;
  background: var(--win-bg);
  border: 3px solid var(--win-border);
  box-shadow: 6px 6px 0px #000;
  cursor: grab;
}

.window-header {
  background: var(--win-header);
  color: #000;
  padding: 4px 8px;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.window-controls .btn-control {
  background: #000;
  color: #fff;
  border: 1px solid #fff;
  font-family: var(--font-retro);
  width: 20px;
  height: 20px;
  cursor: pointer;
  line-height: 14px;
}

.window-body {
  padding: 16px;
  line-height: 1.2;
}

.window-body h2, .window-body h3 {
  color: var(--text-accent);
  margin-bottom: 8px;
}

.tagline {
  color: #fff;
  font-style: italic;
  margin-bottom: 12px;
}

.pixel-hr {
  border: none;
  border-top: 2px dashed var(--win-border);
  margin: 12px 0;
}

.project-item {
  border: 1px dashed var(--text-main);
  padding: 8px;
  margin-top: 8px;
}

.badge-zone {
  margin-top: 16px;
}

.badges {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}

.mini-badge {
  background: var(--text-accent);
  color: #000;
  font-size: 14px;
  padding: 2px 6px;
  font-weight: bold;
}