/* JDroneStudio HUD & Navegación — hoja de estilos
   Paleta: rosa/magenta de marca, azul reservado a Servicio Técnico, verde para Tienda */
:root{
  --jda-pink:#e6007a;
  --jda-pink-dim:#f7c9e1;
  --jda-pink-soft:#fff6fa;
  --jda-surface-2:#fce8f1;
  --jda-line:#f2d6e6;
  --jda-text:#211a1f;
  --jda-muted:#8a7a84;
  --jda-blue:#1c6fd8;
  --jda-blue-dim:#d8e8fb;
  --jda-green:#21a35a;
  --jda-mono:'JetBrains Mono', ui-monospace, monospace;
  --jda-sans:'Inter', -apple-system, sans-serif;
}

/* ---------- Barra de navegación ---------- */
.jda-nav{
  position:sticky; top:0; z-index:9999;
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 28px;
  background:rgba(255,255,255,.9);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--jda-line);
  font-family:var(--jda-sans);
}
.jda-nav .jda-brand{font-weight:800; letter-spacing:.02em; font-size:15px; text-decoration:none; color:var(--jda-text);}
.jda-nav .jda-brand span{color:var(--jda-pink);}
.jda-nav ul{list-style:none; display:flex; gap:24px; margin:0; padding:0; font-size:13.5px; font-weight:600;}
.jda-nav a.jda-link{text-decoration:none; color:var(--jda-muted); padding:6px 2px; border-bottom:2px solid transparent; transition:.2s;}
.jda-nav a.jda-link:hover, .jda-nav a.jda-link.active{color:var(--jda-text); border-color:var(--jda-pink);}
.jda-nav a.jda-link[data-mode="tecnico"]:hover, .jda-nav a.jda-link[data-mode="tecnico"].active{border-color:var(--jda-blue);}
.jda-nav a.jda-link[data-mode="tienda"]:hover, .jda-nav a.jda-link[data-mode="tienda"].active{border-color:var(--jda-green);}

.jda-social{display:flex; align-items:center; gap:12px; margin-left:20px;}
.jda-social a{
  display:flex; align-items:center; justify-content:center;
  width:30px; height:30px; border-radius:50%;
  color:var(--jda-muted); border:1px solid var(--jda-line); transition:.2s;
}
.jda-social a:hover{color:#fff; background:var(--jda-pink); border-color:var(--jda-pink);}

.jda-burger{
  display:none; flex-direction:column; justify-content:center; gap:4px;
  width:34px; height:34px; border:1px solid var(--jda-line); border-radius:8px;
  background:#fff; cursor:pointer; padding:0;
}
.jda-burger span{width:16px; height:2px; background:var(--jda-text); margin:0 auto; transition:.25s;}
.jda-burger[aria-expanded="true"] span:nth-child(1){transform:translateY(6px) rotate(45deg);}
.jda-burger[aria-expanded="true"] span:nth-child(2){opacity:0;}
.jda-burger[aria-expanded="true"] span:nth-child(3){transform:translateY(-6px) rotate(-45deg);}

@media (max-width:900px){
  .jda-burger{display:flex; margin-left:auto;}
  .jda-nav ul#jdaNavList{
    display:none; position:absolute; top:100%; left:0; right:0;
    flex-direction:column; gap:0; background:#fff; border-bottom:1px solid var(--jda-line);
    padding:8px 8vw 18px;
  }
  .jda-nav ul#jdaNavList.open{display:flex;}
  .jda-nav ul#jdaNavList a{display:block; padding:12px 4px; border-bottom:1px solid var(--jda-line);}
  .jda-social{margin-right:2px;}
}

/* =====================================================
   HUD — panel de telemetría flotante
   ===================================================== */
.jda-hud{
  position:fixed; right:22px; bottom:22px; z-index:9998;
  width:222px;
  font-family:var(--jda-mono);
  background:rgba(255,255,255,.78);
  backdrop-filter:blur(14px);
  border:1px solid var(--jda-line);
  border-radius:18px;
  padding:14px 16px 16px;
  box-shadow:0 12px 34px rgba(230,0,122,.10), 0 2px 8px rgba(0,0,0,.06);
  transition:border-color .4s, box-shadow .4s;
  --accent:var(--jda-pink);
  --accent-dim:var(--jda-pink-dim);
}
.jda-hud.mode-tecnico{ --accent:var(--jda-blue); --accent-dim:var(--jda-blue-dim); box-shadow:0 12px 34px rgba(28,111,216,.12), 0 2px 8px rgba(0,0,0,.06); }
.jda-hud.mode-tienda{ --accent:var(--jda-green); --accent-dim:#cdeed9; box-shadow:0 12px 34px rgba(33,163,90,.14), 0 2px 8px rgba(0,0,0,.06); }

.jda-hud .row{display:flex; align-items:center; justify-content:space-between; gap:10px;}
.jda-hud .top-row{margin-bottom:10px;}
.jda-hud .stat{display:flex; align-items:center; gap:6px; font-size:11px; color:var(--jda-muted); font-weight:500;}
.jda-hud .stat b{color:var(--jda-text); font-size:12px;}
.jda-hud .dot-rec{width:8px; height:8px; border-radius:50%; background:#ff2d55; animation:jda-pulse 1.6s ease-in-out infinite;}
@keyframes jda-pulse{0%,100%{opacity:1;}50%{opacity:.25;}}

.jda-hud .core{display:flex; align-items:center; justify-content:center; padding:14px 0 10px; position:relative;}
.jda-hud .compass{
  position:relative; width:98px; height:98px; border-radius:50%;
  border:1.5px solid var(--jda-line);
  background:radial-gradient(circle at 50% 45%, #fff, var(--jda-pink-soft) 80%);
  display:flex; align-items:center; justify-content:center;
}
.jda-hud.mode-tecnico .compass{background:radial-gradient(circle at 50% 45%, #fff, var(--jda-blue-dim) 80%);}
.jda-hud.mode-tienda .compass{background:radial-gradient(circle at 50% 45%, #fff, #cdeed9 80%);}
.jda-hud .compass .ring{position:absolute; inset:0; border-radius:50%; transition:transform .5s cubic-bezier(.4,0,.2,1);}
.jda-hud .compass .tick{position:absolute; left:50%; top:2px; width:2px; height:8px; background:var(--jda-muted); transform-origin:1px 47px;}
.jda-hud .compass .tick.n{background:var(--accent); height:11px;}
.jda-hud .compass .needle{
  width:0; height:0; position:absolute;
  border-left:6px solid transparent; border-right:6px solid transparent;
  border-bottom:30px solid var(--accent); top:16px;
  filter:drop-shadow(0 1px 1px rgba(0,0,0,.15));
}
.jda-hud .compass .hub{position:absolute; width:8px; height:8px; border-radius:50%; background:var(--jda-text);}
.jda-hud .compass .heading{position:absolute; bottom:-22px; font-size:15px; font-weight:700; color:var(--jda-text); letter-spacing:-.02em;}
.jda-hud .compass .section-label{
  position:absolute; bottom:-38px; font-family:var(--jda-sans); font-size:9.5px; letter-spacing:.08em;
  text-transform:uppercase; color:var(--accent); font-weight:700; white-space:nowrap;
}

.jda-hud .lower{margin-top:34px; display:grid; grid-template-columns:1fr 1fr; gap:10px;}
.jda-hud .gauge{border-top:1px solid var(--jda-line); padding-top:9px;}
.jda-hud .gauge .label{font-size:9.5px; color:var(--jda-muted); letter-spacing:.06em; margin-bottom:2px;}
.jda-hud .gauge .value{font-size:16px; font-weight:700; color:var(--jda-text);}
.jda-hud .gauge .value small{font-size:10px; font-weight:500; color:var(--jda-muted);}
.jda-hud .vs-arrow{display:inline-block; transition:transform .3s;}

.jda-hud .battery-bar{height:4px; border-radius:3px; background:var(--jda-surface-2); overflow:hidden; margin-top:8px;}
.jda-hud .battery-bar i{display:block; height:100%; background:var(--accent); border-radius:3px; transition:width .4s;}

.jda-hud .ticker{
  margin-top:10px; padding-top:9px; border-top:1px solid var(--jda-line);
  font-family:var(--jda-sans); font-size:10.5px; color:var(--jda-muted); font-weight:600;
  white-space:nowrap; overflow:hidden; position:relative; height:14px;
}
.jda-hud .ticker span{position:absolute; inset:0; opacity:0; transition:opacity .5s;}
.jda-hud .ticker span.show{opacity:1;}

.jda-hud .store-chip{
  display:flex; align-items:center; justify-content:space-between; gap:8px;
  margin-top:10px; padding:8px 10px; border-radius:10px;
  background:var(--jda-surface-2); border:1px solid var(--jda-line);
  font-family:var(--jda-sans); font-size:11px; font-weight:700; color:var(--jda-text);
  text-decoration:none; cursor:pointer;
}
.jda-hud.mode-tienda .store-chip{background:#e3f5e9; border-color:#bfe6cc;}
.jda-hud .store-chip small{display:block; font-weight:500; color:var(--jda-muted); font-size:9.5px;}
.jda-hud .store-chip .go{color:var(--accent); font-size:13px;}

@media (max-width:720px){
  .jda-hud{right:12px; left:12px; bottom:12px; width:auto; padding:10px 14px; border-radius:14px;}
  .jda-hud .core{display:none;}
  .jda-hud .lower{grid-template-columns:1fr 1fr; margin-top:4px;}
  .jda-hud .row.top-row{margin-bottom:2px;}
  .jda-hud .store-chip small{display:none;}
}
@media (prefers-reduced-motion: reduce){
  .jda-hud .dot-rec{animation:none; opacity:1;}
  .jda-hud .compass .ring, .jda-hud .vs-arrow{transition:none;}
}
