/* Doctor Electro · css/bottomnav.css
   Barra inferior compartida por todos los HTML */
:root {
  --accent-primary:   #6FD3FF;
  --accent-secondary: #8AA4FF;
  --border-accent:    rgba(111,211,255,0.16);
  --bg-primary:       #070B11;
  --text-muted:       rgba(244,247,251,0.95);
  --radius-md:        18px;
  --radius-xl:        34px;
}
/* ══ BOTTOM NAV (CORREGIDO Y BAJADO) ══ */
  .bottom-nav {
    position: fixed;
    bottom: 18px;
    left: 0;
    right: 2px;
    width: calc(100vw - 32px);
    max-width: 480px;
    margin: 0 auto;
    z-index: 100;
    background: rgba(10,17,26,0.97);
    border: 2px solid #6FD3FF;
    border-radius: var(--radius-xl);
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    padding: 0 24px;
    height: 82px;
    box-shadow: 0 0 20px rgba(111,211,255,0.08), var(--shadow-card);
    padding-bottom: env(safe-area-inset-bottom);
    box-sizing: border-box;
}
  
  .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: var(--radius-md);
    height: 100%;
    flex: 1;
    transition: background 0.3s ease;
  }
  
  .nav-item.active {
    background: transparent;
  }
  
  .nav-item.active .nav-icon { 
    color: var(--accent-primary);
    filter: none;
  }
  .nav-item.active .nav-label { 
    color: var(--accent-primary);
  }
  .nav-icon { 
    font-size: 24px;
    color: rgba(244,247,251,0.95);
    transition: color 0.3s ease, transform 0.3s ease;
    font-weight: 500;
  }
  
  .nav-item:active .nav-icon {
    transform: scale(1.12);
  }
  
  .nav-label { 
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(244,247,251,0.95);
    font-family: 'Inter', sans-serif;
    transition: color 0.3s ease;
  }
  
  /* ══ BOTÓN HERRAMIENTAS CENTRAL ══ */
  .nav-item.ai-btn {
    position: relative;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 100%;
  }
  
  .ai-btn-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border: 1px solid var(--border-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 16px rgba(111,211,255,0.12);
    transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  }
  
  .nav-item.ai-btn:active .ai-btn-circle {
    transform: scale(0.92);
    box-shadow: 0 0 20px rgba(111,211,255,0.12);
    border-color: var(--accent-primary);
  }
  
  .nav-item.ai-btn .nav-icon {
    color: var(--bg-primary);
    filter: none;
    font-size: 24px;
    font-weight: 600;
  }
/* BADGE */
/* ══ BADGE NOTIFICACIÓN ══ */
  #buscadorBadge {
    position: absolute; top: 8px; right: calc(50% - 22px);
    background: #ff3d3d;
    color: #fff; font-size: 9px; font-weight: 800;
    width: 18px; height: 18px; border-radius: 50%;
    display: none; align-items: center; justify-content: center;
    border: 2px solid var(--bg);
    animation: badgePop 0.4s cubic-bezier(0.34,1.56,0.64,1);
    z-index: 10;
  }
  #buscadorBadge.show { display: flex; }
  @keyframes badgePop { from{transform:scale(0)} to{transform:scale(1)} }
  .ai-btn { position: relative; }
