/* ==========================================================================
   ENFINI OS PORTFOLIO - MAIN STYLESHEET
   Variables, Reset, Temas y Estilos Globales
   Autor: Octavio Olivos Vargas | Lid Chile SpA
   ========================================================================== */

:root {
  /* Paleta Base */
  --bg-deep: #070a10;
  --bg-surface: #0e1422;
  --bg-card: rgba(18, 26, 44, 0.85);
  --bg-card-hover: rgba(28, 40, 68, 0.9);
  --border-color: rgba(64, 90, 140, 0.35);
  --border-focus: #00d2ff;
  
  /* Acentos de Color */
  --accent-cyan: #00e5ff;
  --accent-blue: #2979ff;
  --accent-green: #00e676;
  --accent-amber: #ffab00;
  --accent-purple: #b388ff;
  --accent-red: #ff5252;
  
  /* Textos */
  --text-primary: #f0f4fc;
  --text-secondary: #9cb0d1;
  --text-muted: #5e7399;
  --text-terminal: #50fa7b;
  
  /* Fuentes */
  --font-ui: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "Cascadia Code", "Fira Code", Consolas, Menlo, Monaco, monospace;
  
  /* Sombras y Efectos */
  --shadow-window: 0 16px 45px rgba(0, 0, 0, 0.75), 0 0 1px rgba(0, 229, 255, 0.4);
  --shadow-glow: 0 0 16px rgba(0, 229, 255, 0.5);
  --glass-blur: blur(14px);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  
  /* Transiciones Fluidas */
  --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: var(--font-ui);
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-primary);
  background-color: var(--bg-deep);
  user-select: none;
  -webkit-font-smoothing: antialiased;
}

/* Scrollbars estilizadas */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(10, 15, 25, 0.6);
}

::-webkit-scrollbar-thumb {
  background: rgba(64, 90, 140, 0.5);
  border-radius: var(--radius-sm);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-cyan);
}

/* Enlaces y botones base */
a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: #fff;
  text-shadow: 0 0 8px var(--accent-cyan);
}

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

/* Utilidades generales */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-green {
  background: rgba(0, 230, 118, 0.15);
  color: var(--accent-green);
  border: 1px solid rgba(0, 230, 118, 0.3);
}

.badge-cyan {
  background: rgba(0, 229, 255, 0.15);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 229, 255, 0.3);
}

.badge-amber {
  background: rgba(255, 171, 0, 0.15);
  color: var(--accent-amber);
  border: 1px solid rgba(255, 171, 0, 0.3);
}

.badge-purple {
  background: rgba(179, 136, 255, 0.15);
  color: var(--accent-purple);
  border: 1px solid rgba(179, 136, 255, 0.3);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-green);
  box-shadow: 0 0 8px var(--accent-green);
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.hidden {
  display: none !important;
}

.code-font {
  font-family: var(--font-mono);
}
