/* AndreTaker — BabaYaga Core Master Portal CSS */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Orbitron:wght@600;700;800;900&display=swap');

:root {
  --bg-dark: #07090e;
  --bg-card: rgba(15, 23, 42, 0.75);
  --bg-card-hover: rgba(30, 41, 59, 0.85);
  --border-card: rgba(56, 189, 248, 0.2);
  --border-card-bright: rgba(56, 189, 248, 0.6);
  --accent-cyan: #38bdf8;
  --accent-teal: #14b8a6;
  --accent-purple: #a855f7;
  --accent-red: #ef4444;
  --accent-amber: #f59e0b;
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --font-heading: 'Orbitron', sans-serif;
  --font-body: 'Inter', sans-serif;
  --glow-cyan: 0 0 25px rgba(56, 189, 248, 0.35);
  --glow-red: 0 0 25px rgba(239, 68, 68, 0.35);
  --glow-purple: 0 0 25px rgba(168, 85, 247, 0.45);
  --border-purple: rgba(168, 85, 247, 0.4);
}

html, body {
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
}

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

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(56, 189, 248, 0.10) 0%, transparent 40%),
    radial-gradient(circle at 85% 85%, rgba(168, 85, 247, 0.18) 0%, transparent 45%),
    radial-gradient(circle at 50% 100%, rgba(168, 85, 247, 0.08) 0%, transparent 50%);
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header & Navigation */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 9, 14, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-card);
  padding: 6px 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 72px;
  height: auto;
  flex-wrap: wrap;
  gap: 12px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  text-decoration: none;
}

.logo-badge {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 900;
}

.nav-links {
  display: flex;
  gap: 8px;
  list-style: none;
  flex-wrap: wrap;
  align-items: center;
}

.nav-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s ease;
}

.nav-btn:hover, .nav-btn.active {
  color: var(--accent-cyan);
  border-color: var(--border-card-bright);
  background: rgba(56, 189, 248, 0.1);
}

/* Hero Section */
.hero {
  padding: 80px 0 60px;
  text-align: center;
  position: relative;
}

.hero-subtitle {
  display: inline-block;
  color: var(--accent-cyan);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 16px;
  padding: 6px 16px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid var(--border-card);
  border-radius: 20px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #ffffff 20%, var(--accent-cyan) 60%, var(--accent-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  max-width: 800px;
  margin: 0 auto 40px;
  font-size: 1.15rem;
  color: var(--text-muted);
}

/* Metric Cards Grid */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 60px;
}

.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 12px;
  padding: 24px;
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}

.metric-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-card-bright);
  box-shadow: var(--glow-cyan);
}

.metric-card:nth-child(even):hover {
  border-color: var(--border-purple);
  box-shadow: var(--glow-purple);
}

.metric-val {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--accent-cyan);
  margin-bottom: 4px;
}

.metric-lbl {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Content Sections */
.tab-content {
  display: none !important;
  animation: fadeIn 0.4s ease;
}

.tab-content.active {
  display: block !important;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.section-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 24px;
  background: linear-gradient(180deg, var(--accent-cyan), var(--accent-purple));
  border-radius: 2px;
}

/* Feature & Evidence Grid */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.content-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 12px;
  padding: 28px;
  backdrop-filter: blur(8px);
}

.content-card h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: var(--accent-purple);
}

.content-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.badge-cyan { background: rgba(56, 189, 248, 0.15); color: var(--accent-cyan); border: 1px solid var(--accent-cyan); }
.badge-red { background: rgba(239, 68, 68, 0.15); color: var(--accent-red); border: 1px solid var(--accent-red); }
.badge-amber { background: rgba(245, 158, 11, 0.15); color: var(--accent-amber); border: 1px solid var(--accent-amber); }
.badge-purple { background: rgba(168, 85, 247, 0.15); color: var(--accent-purple); border: 1px solid var(--accent-purple); }

/* Timeline List */
.timeline-list {
  position: relative;
  padding-left: 30px;
  margin-bottom: 40px;
}

.timeline-list::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border-card);
}

.timeline-item {
  position: relative;
  margin-bottom: 28px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -25px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-purple);
  box-shadow: 0 0 10px var(--accent-purple);
}

.timeline-item:nth-child(odd)::before {
  background: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan);
}

.timeline-date {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: var(--accent-cyan);
  margin-bottom: 4px;
}

/* Table Design */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin-bottom: 40px;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-card);
}

th, td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

th {
  background: rgba(30, 41, 59, 0.8);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 1px;
}

td {
  font-size: 0.95rem;
  color: var(--text-main);
}

/* Footer */
footer {
  border-top: 1px solid var(--border-card);
  padding: 40px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 80px;
}

footer a {
  color: var(--accent-cyan);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .hero-title { font-size: 2rem; }
  .nav-container { flex-direction: column; height: auto; padding: 16px 0; gap: 12px; }
  .nav-links { flex-wrap: wrap; justify-content: center; }
}

/* Retro Map Styling */
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Silkscreen&display=swap');

.pixel-font {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.8rem;
  letter-spacing: 1px;
}

.retro-container {
  background: #0f172a;
  border: 4px solid #38bdf8;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 40px;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.2), inset 0 0 15px rgba(56, 189, 248, 0.1);
  position: relative;
  overflow: hidden;
}

.retro-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px dashed rgba(56, 189, 248, 0.3);
  padding-bottom: 12px;
  margin-bottom: 20px;
}

.retro-title-box {
  display: flex;
  gap: 20px;
}

.retro-pixel-text {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.75rem;
  color: #38bdf8;
  text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.8);
}

.retro-inst {
  font-size: 0.85rem;
  color: #94a3b8;
  font-style: italic;
}

.retro-map-canvas-container {
  width: 100%;
  height: 500px;
  position: relative;
  border: 2px solid rgba(56, 189, 248, 0.4);
  background: #090e18;
  overflow-x: auto;
  overflow-y: hidden;
  border-radius: 8px;
}

.retro-grid-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 1200px;
  height: 100%;
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(56, 189, 248, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(56, 189, 248, 0.04) 1px, transparent 1px);
}

.retro-paths {
  position: absolute;
  top: 0;
  left: 0;
  width: 1200px;
  height: 500px;
  pointer-events: none;
  z-index: 5;
}

.path-line {
  fill: none;
  stroke: rgba(168, 85, 247, 0.5);
  stroke-width: 4;
  stroke-dasharray: 8 8;
  animation: dash 30s linear infinite;
}

@keyframes dash {
  to {
    stroke-dashoffset: -1000;
  }
}

.retro-node {
  position: absolute;
  width: 48px;
  height: 48px;
  background: #1e293b;
  border: 3px solid #94a3b8;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 10;
  transform: translate(-50%, -50%);
  transition: all 0.25s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.retro-node:hover {
  transform: translate(-50%, -50%) scale(1.15);
  border-color: #38bdf8;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.6);
}

.retro-node.active {
  border-color: #38bdf8;
  background: #0f172a;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.4);
}

.retro-node.visited {
  border-color: #14b8a6;
  background: #0b1a1c;
}

.node-badge {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.8rem;
  color: #fff;
}

.node-label {
  position: absolute;
  top: 56px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
  font-size: 0.75rem;
  color: #f1f5f9;
  pointer-events: none;
}

.retro-avatar {
  position: absolute;
  width: 40px;
  height: 40px;
  z-index: 20;
  transform: translate(-50%, -50%);
  transition: left 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), top 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  pointer-events: none;
}

.avatar-sprite, .avatar-badge {
  background: linear-gradient(135deg, #06b6d4, #a855f7);
  color: #ffffff;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.85rem;
  font-weight: 900;
  padding: 8px 16px;
  border-radius: 20px;
  box-shadow: 0 0 25px rgba(6, 182, 212, 0.9), 0 0 10px rgba(168, 85, 247, 0.8);
  border: 2px solid #38bdf8;
  white-space: nowrap;
  animation: bounce 0.6s infinite alternate, pulseGlow 2s infinite ease-in-out;
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 25px rgba(6, 182, 212, 0.9), 0 0 10px rgba(168, 85, 247, 0.8); }
  50% { box-shadow: 0 0 35px rgba(168, 85, 247, 1), 0 0 15px rgba(56, 189, 248, 1); }
}

@keyframes bounce {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-8px);
  }
}

.retro-dialog-box {
  margin-top: 24px;
  background: #020617;
  border: 4px solid #a855f7;
  border-radius: 8px;
  padding: 16px;
  position: relative;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.dialog-border {
  border: 2px dashed rgba(168, 85, 247, 0.4);
  padding: 12px;
  border-radius: 4px;
}

.retro-dialog-box h3 {
  color: #a855f7;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.retro-dialog-box p {
  color: #e2e8f0;
  font-size: 0.95rem;
  line-height: 1.5;
}


/* ==========================================================================
   📱 SD MAID STYLE: ULTRA-CLEAN MOBILE INTERFACE OPTIMIZATION
   ========================================================================== */
@media (max-width: 768px) {
  /* Header compacto */
  header {
    padding: 8px 0;
  }
  
  .nav-container {
    min-height: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .logo {
    justify-content: center;
    font-size: 1.1rem;
  }

  /* Barra de navegacion deslizable horizontalmente limpia */
  .nav-links {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
    gap: 6px;
    scrollbar-width: none;
  }
  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-btn {
    flex: 0 0 auto;
    padding: 8px 14px;
    font-size: 0.8rem;
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(56, 189, 248, 0.3);
  }

  /* Hero Section compacta estilo Dashboard */
  .hero {
    padding: 24px 0 16px !important;
  }

  .hero-title {
    font-size: 1.85rem !important;
    margin-bottom: 12px !important;
  }

  .hero-subtitle {
    font-size: 0.75rem !important;
    letter-spacing: 1.5px !important;
    padding: 4px 12px !important;
    margin-bottom: 10px !important;
  }

  .hero-desc {
    font-size: 0.95rem !important;
    margin-bottom: 20px !important;
    line-height: 1.45;
  }

  /* Grid de métricas en 2 columnas compactas */
  .metrics-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
    margin-bottom: 24px !important;
  }

  .metric-card {
    padding: 14px !important;
    border-radius: 10px !important;
  }

  .metric-val {
    font-size: 1.5rem !important;
  }

  .metric-lbl {
    font-size: 0.75rem !important;
  }

  /* Tarjetas de Proyectos y Herramientas estilo SD Maid (Bordes suaves, botones de toque comodo) */
  .content-card, .team-card, .evidence-card {
    padding: 16px !important;
    border-radius: 12px !important;
    margin-bottom: 16px !important;
  }

  /* Botones principales comodos para una sola mano (Thumb-friendly) */
  button, select {
    min-height: 42px;
  }
}

/* OpSec Clean View Rule */
.hide-floating-img img, img.floating-img { display: none !important; }

/* ======================================================== */
/* PALETA RETRO-OS WINDOWS 95 + HIGH-TECH CYBERFORENSICS    */
/* ======================================================== */
:root {
  --win-teal: #008080;
  --win-gray: #c0c0c0;
  --win-dark-gray: #808080;
  --win-light-gray: #dfdfdf;
  --win-white: #ffffff;
  --win-black: #000000;
  --win-blue: #000080;
  --win-blue-light: #1084d0;
  --win-yellow: #ffff00;
}

body.win95-theme, body.retro-os {
  background-color: var(--win-teal) !important;
  background-image: 
    radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.15) 0%, transparent 80%),
    repeating-linear-gradient(45deg, rgba(0,0,0,0.02) 0px, rgba(0,0,0,0.02) 2px, transparent 2px, transparent 4px) !important;
  font-family: -apple-system, "Segoe UI", Tahoma, sans-serif;
  min-height: 100vh;
  color: var(--win-black);
  padding: 6px 6px 54px 6px !important;
  overflow-x: hidden;
}

.bevel-outset {
  border: 2px solid !important;
  border-color: var(--win-white) var(--win-black) var(--win-black) var(--win-white) !important;
  box-shadow: 1px 1px 0px var(--win-dark-gray) inset, -1px -1px 0px var(--win-light-gray) inset !important;
}

.bevel-inset {
  border: 2px solid !important;
  border-color: var(--win-black) var(--win-white) var(--win-white) var(--win-black) !important;
  box-shadow: 1px 1px 0px var(--win-dark-gray) inset, -1px -1px 0px var(--win-light-gray) inset !important;
}

.window-main {
  background: var(--win-gray);
  margin-bottom: 24px;
}

.title-bar {
  background: linear-gradient(90deg, var(--win-blue) 0%, var(--win-blue-light) 100%);
  color: var(--win-white);
  padding: 4px 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

.title-bar-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.title-bar-controls {
  display: flex;
  gap: 3px;
}

.win-btn-sm {
  width: 16px;
  height: 14px;
  background: var(--win-gray);
  border: 1px solid;
  border-color: var(--win-white) var(--win-black) var(--win-black) var(--win-white);
  font-size: 9px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 1;
  color: var(--win-black);
}

.win-btn-sm:active {
  border-color: var(--win-black) var(--win-white) var(--win-white) var(--win-black);
}

.menu-bar, .win-menu-bar {
  background: var(--win-gray);
  display: flex;
  gap: 14px;
  padding: 4px 8px;
  border-bottom: 1px solid var(--win-dark-gray);
  font-size: 0.82rem;
  align-items: center;
}

.menu-item {
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 2px;
  position: relative;
  user-select: none;
  color: var(--win-black);
  text-decoration: none;
}

.menu-item:hover {
  background: var(--win-blue);
  color: var(--win-white);
}

.window-body {
  padding: 20px;
}

.status-bar {
  background: var(--win-gray);
  padding: 4px 8px;
  font-family: 'Fira Code', monospace;
  font-size: 0.75rem;
  display: flex;
  justify-content: space-between;
  color: #334155;
  margin-top: 20px;
}

/* Fixed Bottom Taskbar */
.taskbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 38px;
  background: var(--win-gray);
  display: flex;
  align-items: center;
  padding: 2px 4px;
  z-index: 9999;
}

.start-btn {
  height: 28px;
  padding: 0 10px;
  background: var(--win-gray);
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  font-size: 0.85rem;
  cursor: pointer;
  border: 2px solid;
  border-color: var(--win-white) var(--win-black) var(--win-black) var(--win-white);
}

.taskbar-item {
  height: 28px;
  padding: 0 12px;
  background: var(--win-gray);
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 2px solid;
  border-color: var(--win-black) var(--win-white) var(--win-white) var(--win-black);
}

.taskbar-clock {
  margin-left: auto;
  height: 28px;
  padding: 0 10px;
  background: var(--win-gray);
  display: flex;
  align-items: center;
  font-family: 'Fira Code', monospace;
  font-size: 0.8rem;
  border: 2px solid;
  border-color: var(--win-black) var(--win-white) var(--win-white) var(--win-black);
}

