/* DJGABO · MENU LATERAL + HERRAMIENTA LOCAL TONO/TEMPO · 2026-09-23 */
.search-cart-row.djgabo-menu-ready{
  grid-template-columns:44px minmax(0,1fr) !important;
  gap:8px !important;
}
.djgabo-menu-toggle{
  position:relative;
  width:44px;height:44px;min-width:44px;border-radius:14px;
  border:1px solid rgba(255,255,255,.10);background:#11151a;color:#fff;
  display:grid;place-items:center;cursor:pointer;font-size:18px;
}
.djgabo-menu-toggle:hover{border-color:rgba(37,211,102,.38);color:#7dffad}
.search-cart-row.djgabo-menu-ready>#floatCartBtn,
.search-cart-row.djgabo-menu-ready>#clientAccessTopBtn{
  position:fixed !important;left:18px !important;top:12px !important;
  width:44px !important;height:44px !important;min-width:44px !important;
  opacity:0 !important;pointer-events:none !important;z-index:-1 !important;
  margin:0 !important;padding:0 !important;
}
.djgabo-menu-badge{
  position:absolute;top:-4px;right:-4px;min-width:18px;height:18px;padding:0 5px;
  border-radius:999px;background:#25d366;color:#052012;border:2px solid #0b0e12;
  display:none;align-items:center;justify-content:center;font-size:9px;font-weight:950;
}
.djgabo-menu-toggle.has-items .djgabo-menu-badge{display:flex}

.djgabo-side-backdrop{
  position:fixed;inset:0;z-index:18000;background:rgba(0,0,0,.58);
  backdrop-filter:blur(6px);opacity:0;pointer-events:none;transition:opacity .22s ease;
}
.djgabo-side-backdrop.show{opacity:1;pointer-events:auto}
.djgabo-side-panel{
  position:absolute;left:0;top:0;bottom:0;width:min(86vw,340px);
  background:linear-gradient(180deg,#11151b,#0a0d11);border-right:1px solid rgba(255,255,255,.09);
  box-shadow:26px 0 60px rgba(0,0,0,.45);transform:translateX(-102%);
  transition:transform .25s cubic-bezier(.2,.8,.2,1);padding:18px 14px;overflow:auto;
}
.djgabo-side-backdrop.show .djgabo-side-panel{transform:translateX(0)}
.djgabo-side-head{display:flex;align-items:center;justify-content:space-between;padding:4px 4px 18px}
.djgabo-side-brand strong{display:block;color:#fff;font-size:16px;font-weight:950}
.djgabo-side-brand span{display:block;margin-top:3px;color:#7d8592;font-size:11px;font-weight:700}
.djgabo-side-close{
  width:38px;height:38px;border:0;border-radius:12px;background:#1b2028;color:#fff;
  display:grid;place-items:center;font-size:20px;cursor:pointer
}
.djgabo-side-nav{display:grid;gap:9px}
.djgabo-side-item{
  width:100%;min-height:56px;border:1px solid rgba(255,255,255,.08);border-radius:16px;
  background:#141920;color:#fff;display:grid;grid-template-columns:42px minmax(0,1fr) auto;
  align-items:center;gap:10px;padding:8px 12px;text-align:left;cursor:pointer
}
.djgabo-side-item:hover{border-color:rgba(37,211,102,.30);background:#171d25}
.djgabo-side-icon{
  width:38px;height:38px;border-radius:12px;background:#20262f;color:#d7dce4;
  display:grid;place-items:center;font-size:15px
}
.djgabo-side-copy strong{display:block;font-size:13px;font-weight:900}
.djgabo-side-copy small{display:block;margin-top:3px;color:#8b94a2;font-size:10.5px;font-weight:700}
.djgabo-side-count,.djgabo-free-pill{
  min-width:24px;height:24px;padding:0 7px;border-radius:999px;background:#25d366;color:#052012;
  display:flex;align-items:center;justify-content:center;font-size:9px;font-weight:950
}
.djgabo-free-pill{background:rgba(37,211,102,.14);color:#8affb2;border:1px solid rgba(37,211,102,.22)}

.djgabo-tone-backdrop{
  position:fixed;inset:0;z-index:19000;background:rgba(0,0,0,.78);backdrop-filter:blur(12px);
  display:none;align-items:flex-end;justify-content:center;padding:0;
}
.djgabo-tone-backdrop.show{display:flex}
.djgabo-tone-panel{
  width:min(100%,760px);max-height:94vh;overflow:auto;background:linear-gradient(180deg,#12171e,#090c10);
  color:#fff;border:1px solid rgba(255,255,255,.10);border-bottom:0;border-radius:26px 26px 0 0;
  box-shadow:0 -24px 70px rgba(0,0,0,.55);padding:16px 16px 24px;
}
.djgabo-tone-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:14px}
.djgabo-tone-head h2{margin:0;font-size:20px;line-height:1.1;font-weight:950;letter-spacing:-.02em}
.djgabo-tone-head p{margin:6px 0 0;color:#8f98a6;font-size:11.5px;line-height:1.35;font-weight:700}
.djgabo-tone-close{
  flex:0 0 auto;width:40px;height:40px;border:0;border-radius:13px;background:#1d232c;color:#fff;
  font-size:20px;cursor:pointer
}
.djgabo-local-pill{
  display:inline-flex;align-items:center;gap:6px;margin:0 0 14px;padding:7px 10px;border-radius:999px;
  background:rgba(37,211,102,.11);border:1px solid rgba(37,211,102,.20);color:#94f7b7;
  font-size:10px;font-weight:900
}
.djgabo-upload-zone{
  border:1.5px dashed rgba(255,255,255,.17);border-radius:20px;background:#11161c;
  padding:22px 16px;text-align:center;cursor:pointer;transition:.2s ease
}
.djgabo-upload-zone.drag,.djgabo-upload-zone:hover{border-color:rgba(37,211,102,.55);background:#121b18}
.djgabo-upload-zone i{font-size:26px;color:#7dffad}
.djgabo-upload-zone strong{display:block;margin-top:10px;font-size:14px;font-weight:950}
.djgabo-upload-zone span{display:block;margin-top:5px;color:#8b94a2;font-size:11px}
#djgaboToneFile{display:none}
.djgabo-tone-status{min-height:18px;margin:10px 2px 0;color:#8f98a6;font-size:11px;font-weight:750}
.djgabo-tone-status.error{color:#fca5a5}
.djgabo-tone-status.ok{color:#86efac}
.djgabo-tone-workspace{display:none;margin-top:14px}
.djgabo-tone-workspace.show{display:block}
.djgabo-tone-fileline{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}
.djgabo-tone-filecopy{min-width:0}
.djgabo-tone-filecopy strong,.djgabo-tone-filecopy span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.djgabo-tone-filecopy strong{font-size:13px;font-weight:900}
.djgabo-tone-filecopy span{margin-top:3px;color:#7f8895;font-size:10.5px}
.djgabo-tone-change{border:0;background:#1a2028;color:#cfd5dd;border-radius:10px;padding:8px 10px;font-size:10px;font-weight:900;cursor:pointer}
.djgabo-wave-card{padding:12px;border-radius:18px;background:#0d1116;border:1px solid rgba(255,255,255,.07)}
#djgaboToneWave{height:96px}
.djgabo-time-row{display:flex;align-items:center;justify-content:space-between;margin-top:8px;color:#7f8895;font-size:10px;font-weight:800}
.djgabo-control-card{margin-top:12px;padding:13px;border-radius:18px;background:#11161d;border:1px solid rgba(255,255,255,.07)}
.djgabo-control-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}
.djgabo-control-head strong{font-size:12px;font-weight:950}
.djgabo-value-pill{min-width:58px;padding:6px 9px;border-radius:999px;background:#1c232c;color:#8affb2;text-align:center;font-size:11px;font-weight:950}
.djgabo-step-row{display:grid;grid-template-columns:42px 1fr 42px;align-items:center;gap:10px}
.djgabo-step-btn{height:40px;border:0;border-radius:12px;background:#20262f;color:#fff;font-size:20px;font-weight:800;cursor:pointer}
.djgabo-range{width:100%;accent-color:#25d366}
.djgabo-quick-row{display:flex;gap:6px;overflow:auto;margin-top:10px;padding-bottom:2px}
.djgabo-quick-btn{flex:0 0 auto;height:31px;min-width:38px;border:1px solid rgba(255,255,255,.08);border-radius:10px;background:#181e26;color:#b8c0ca;font-size:10px;font-weight:850;cursor:pointer}
.djgabo-quick-btn.active{background:rgba(37,211,102,.14);border-color:rgba(37,211,102,.30);color:#8affb2}
.djgabo-tone-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:14px}
.djgabo-tone-action{min-height:48px;border:0;border-radius:14px;font-size:12px;font-weight:950;cursor:pointer}
.djgabo-tone-action.play{background:#eef2f7;color:#111827}
.djgabo-tone-action.reset{background:#1b222b;color:#e5e7eb;border:1px solid rgba(255,255,255,.08)}
.djgabo-tone-download{width:100%;min-height:52px;margin-top:9px;border:0;border-radius:15px;background:#25d366;color:#052012;font-size:13px;font-weight:950;cursor:pointer}
.djgabo-tone-download:disabled,.djgabo-tone-action:disabled{opacity:.45;cursor:not-allowed}
.djgabo-export-progress{display:none;margin-top:9px;color:#9ca3af;font-size:10.5px;font-weight:750;text-align:center}
.djgabo-export-progress.show{display:block}

@media(min-width:761px){
  .djgabo-tone-backdrop{align-items:center;padding:24px}
  .djgabo-tone-panel{border-bottom:1px solid rgba(255,255,255,.10);border-radius:26px;max-height:88vh}
}
@media(max-width:390px){
  .search-cart-row.djgabo-menu-ready{grid-template-columns:41px minmax(0,1fr)!important;gap:6px!important}
  .djgabo-menu-toggle{width:41px;height:41px;min-width:41px;border-radius:13px}
  .search-cart-row.djgabo-menu-ready>#floatCartBtn,
  .search-cart-row.djgabo-menu-ready>#clientAccessTopBtn{left:10px!important;top:12px!important;width:41px!important;height:41px!important}
  .djgabo-tone-panel{padding-left:12px;padding-right:12px}
  .djgabo-tone-head h2{font-size:18px}
}


/* =========================================================
   DJGABO · FIX VISUAL MODAL TONO/TEMPO · 2026-09-23
   SOLO PRESENTACION. NO CAMBIA LOGICA.
   ========================================================= */
.djgabo-tone-backdrop{
  align-items:center;
  justify-content:center;
  padding:24px;
}

.djgabo-tone-panel{
  box-sizing:border-box;
  width:min(820px,calc(100vw - 48px));
  max-height:90vh;
  padding:28px;
  border:1px solid rgba(255,255,255,.11);
  border-radius:26px;
  background:
    radial-gradient(circle at 15% 0%,rgba(37,211,102,.07),transparent 28%),
    linear-gradient(180deg,#12171e 0%,#090c10 100%);
  box-shadow:0 28px 90px rgba(0,0,0,.62);
}

.djgabo-tone-head{
  gap:20px;
  margin-bottom:18px;
}

.djgabo-tone-head>div:first-child{
  min-width:0;
  flex:1 1 auto;
}

.djgabo-tone-head h2{
  font-size:24px;
  line-height:1.08;
  letter-spacing:-.035em;
}

.djgabo-tone-head p{
  max-width:620px;
  margin-top:8px;
  font-size:13px;
  line-height:1.45;
  color:#9aa4b2;
}

.djgabo-tone-close{
  width:38px;
  height:38px;
  border-radius:12px;
  background:#1a2028;
  color:#d7dde6;
  font-size:18px;
}

.djgabo-local-pill{
  display:flex;
  width:max-content;
  max-width:100%;
  box-sizing:border-box;
  margin:0 0 18px;
  padding:8px 12px;
  line-height:1.35;
  white-space:normal;
}

.djgabo-upload-zone{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  width:100%;
  min-height:200px;
  box-sizing:border-box;
  padding:28px 24px;
  border-width:1.5px;
  border-radius:22px;
  text-align:center;
  overflow:hidden;
}

.djgabo-upload-zone i{
  display:grid;
  place-items:center;
  width:58px;
  height:58px;
  margin:0 auto;
  border-radius:18px;
  background:rgba(37,211,102,.12);
  border:1px solid rgba(37,211,102,.20);
  color:#7dffad;
  font-size:25px;
}

.djgabo-upload-zone strong{
  display:block;
  margin-top:16px;
  font-size:17px;
  line-height:1.2;
}

.djgabo-upload-zone span{
  display:block;
  max-width:520px;
  margin:7px auto 0;
  color:#8f98a6;
  font-size:12px;
  line-height:1.4;
}

.djgabo-tone-status{
  min-height:0;
  margin:13px 4px 0;
  font-size:11.5px;
  line-height:1.4;
  color:#8f98a6;
}

.djgabo-tone-workspace.show{
  margin-top:18px;
}

@media(max-width:760px){
  .djgabo-tone-backdrop{
    align-items:flex-end;
    padding:10px;
  }

  .djgabo-tone-panel{
    width:calc(100vw - 20px);
    max-height:92vh;
    padding:20px 18px 22px;
    border-radius:24px 24px 18px 18px;
  }

  .djgabo-tone-head{
    gap:12px;
    margin-bottom:14px;
  }

  .djgabo-tone-head h2{
    font-size:20px;
  }

  .djgabo-tone-head p{
    margin-top:6px;
    font-size:11.5px;
  }

  .djgabo-tone-close{
    width:36px;
    height:36px;
    min-width:36px;
  }

  .djgabo-local-pill{
    width:100%;
    margin-bottom:14px;
    padding:8px 10px;
    font-size:9.5px;
  }

  .djgabo-upload-zone{
    min-height:180px;
    padding:24px 16px;
    border-radius:19px;
  }

  .djgabo-upload-zone i{
    width:52px;
    height:52px;
    border-radius:16px;
    font-size:23px;
  }

  .djgabo-upload-zone strong{
    margin-top:14px;
    font-size:15px;
  }

  .djgabo-upload-zone span{
    margin-top:6px;
    font-size:10.5px;
    line-height:1.35;
  }

  .djgabo-tone-status{
    margin-top:11px;
    font-size:10.5px;
  }
}

@media(max-width:390px){
  .djgabo-tone-backdrop{
    padding:8px;
  }

  .djgabo-tone-panel{
    width:calc(100vw - 16px);
    padding:18px 14px 20px;
    border-radius:22px 22px 16px 16px;
  }

  .djgabo-tone-head h2{
    font-size:18px;
  }

  .djgabo-upload-zone{
    min-height:170px;
    padding:22px 12px;
  }
}


/* =========================================================
   DJGABO · QUICK PRESETS MOVIL SIN SCROLL · 2026-09-23
   SOLO PRESENTACION. NO CAMBIA LOGICA.
   ========================================================= */
@media(max-width:760px){
  #djgaboPitchQuick,
  #djgaboTempoQuick{
    display:grid;
    width:100%;
    gap:6px;
    overflow:visible;
    padding-bottom:0;
  }

  #djgaboPitchQuick{
    grid-template-columns:repeat(7,minmax(0,1fr));
  }

  #djgaboTempoQuick{
    grid-template-columns:repeat(7,minmax(0,1fr));
  }

  #djgaboPitchQuick .djgabo-quick-btn,
  #djgaboTempoQuick .djgabo-quick-btn{
    width:100%;
    min-width:0;
    height:32px;
    padding:0 4px;
    font-size:9.5px;
    line-height:1;
  }
}

@media(max-width:390px){
  #djgaboPitchQuick,
  #djgaboTempoQuick{
    gap:5px;
  }

  #djgaboPitchQuick .djgabo-quick-btn,
  #djgaboTempoQuick .djgabo-quick-btn{
    height:31px;
    padding:0 2px;
    font-size:9px;
  }

  #djgaboPitchQuick .djgabo-quick-btn[data-value="0"]{
    font-size:8.4px;
    letter-spacing:-.02em;
  }
}


/* =========================================================
   DJGABO · CONTROLES PRO + EXPORT SEGURO · 2026-09-23
   ========================================================= */
.djgabo-tone-workspace .djgabo-control-card{
  display:none !important;
}
.djgabo-tone-actions{
  grid-template-columns:1fr !important;
  margin-top:10px;
}
.djgabo-tone-action.reset{
  display:none !important;
}

.djgabo-pro-controls{
  position:relative;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
  margin-top:11px;
}
.djgabo-pro-control{
  position:relative;
  min-width:0;
}
.djgabo-pro-knob,
.djgabo-pro-restore{
  width:100%;
  height:64px;
  min-width:0;
  border:1px solid rgba(255,255,255,.09);
  border-radius:15px;
  background:linear-gradient(180deg,#171d25,#11161c);
  color:#fff;
  display:grid;
  grid-template-columns:36px minmax(0,1fr);
  grid-template-rows:auto auto;
  align-items:center;
  column-gap:8px;
  padding:8px 9px;
  text-align:left;
  cursor:pointer;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.025);
}
.djgabo-pro-knob:hover,
.djgabo-pro-restore:hover{
  border-color:rgba(37,211,102,.28);
  background:linear-gradient(180deg,#1a222b,#121820);
}
.djgabo-pro-knob:active,
.djgabo-pro-restore:active{
  transform:translateY(1px);
}
.djgabo-pro-ring{
  --arc:135deg;
  position:relative;
  grid-row:1 / 3;
  width:34px;
  height:34px;
  border-radius:50%;
  background:
    conic-gradient(from 225deg,
      #25d366 0deg var(--arc),
      rgba(255,255,255,.13) var(--arc) 270deg,
      transparent 270deg 360deg);
  -webkit-mask:radial-gradient(farthest-side,transparent calc(100% - 3px),#000 calc(100% - 3px));
  mask:radial-gradient(farthest-side,transparent calc(100% - 3px),#000 calc(100% - 3px));
}
.djgabo-pro-icon{
  position:absolute;
  left:17px;
  top:23px;
  width:18px;
  height:18px;
  display:grid;
  place-items:center;
  color:#d8e0e8;
  font-size:10px;
  pointer-events:none;
}
.djgabo-pro-knob b,
.djgabo-pro-restore b{
  align-self:end;
  min-width:0;
  color:#dce3eb;
  font-size:9.5px;
  line-height:1;
  font-weight:950;
  letter-spacing:.04em;
}
.djgabo-pro-knob output{
  align-self:start;
  min-width:0;
  margin-top:4px;
  color:#83f2aa;
  font-size:11px;
  line-height:1;
  font-weight:950;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.djgabo-pro-restore-icon{
  grid-row:1 / 3;
  width:34px;
  height:34px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:#202731;
  border:1px solid rgba(255,255,255,.08);
  color:#b8c1cc;
  font-size:13px;
}
.djgabo-pro-restore small{
  align-self:start;
  margin-top:4px;
  color:#7f8995;
  font-size:9.5px;
  font-weight:800;
}
.djgabo-pro-restore.active{
  border-color:rgba(37,211,102,.24);
}
.djgabo-pro-restore.active .djgabo-pro-restore-icon{
  background:rgba(37,211,102,.11);
  color:#83f2aa;
  border-color:rgba(37,211,102,.18);
}

.djgabo-pro-popup{
  display:none;
  position:absolute;
  z-index:40;
  top:calc(100% + 8px);
  left:0;
  width:190px;
  padding:10px;
  border-radius:14px;
  background:#0d1218;
  border:1px solid rgba(255,255,255,.11);
  box-shadow:0 18px 42px rgba(0,0,0,.52);
}
.djgabo-pro-control:nth-child(2) .djgabo-pro-popup{
  left:50%;
  transform:translateX(-50%);
}
.djgabo-pro-popup.show{
  display:block;
}
.djgabo-pro-popup-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:9px;
}
.djgabo-pro-popup-head strong{
  color:#dce3eb;
  font-size:10px;
  font-weight:950;
}
.djgabo-pro-popup-head output{
  color:#83f2aa;
  font-size:11px;
  font-weight:950;
}
.djgabo-pro-popup-actions{
  display:grid;
  grid-template-columns:42px 1fr 42px;
  gap:6px;
}
.djgabo-pro-popup-actions button{
  height:36px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:10px;
  background:#1a2028;
  color:#fff;
  font-size:14px;
  font-weight:900;
  cursor:pointer;
}
.djgabo-pro-popup-actions button:nth-child(2){
  font-size:9px;
  color:#aeb8c4;
}
.djgabo-pro-popup-actions button:hover{
  border-color:rgba(37,211,102,.28);
  color:#83f2aa;
}

.djgabo-wave-exporting{
  height:96px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  color:#8f98a6;
  font-size:11px;
  font-weight:850;
}
.djgabo-wave-exporting i{
  color:#25d366;
}

.djgabo-export-progress{
  margin-top:10px;
  padding:11px 12px;
  border-radius:14px;
  background:#10151b;
  border:1px solid rgba(255,255,255,.07);
}
.djgabo-export-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  color:#dce3eb;
  font-size:10.5px;
  font-weight:900;
}
.djgabo-export-head strong{
  color:#83f2aa;
  font-size:10px;
}
.djgabo-export-track{
  position:relative;
  height:5px;
  margin-top:8px;
  overflow:hidden;
  border-radius:999px;
  background:#202731;
}
.djgabo-export-track i{
  position:absolute;
  inset:0 auto 0 0;
  width:0;
  border-radius:inherit;
  background:#25d366;
  transition:width .18s ease;
}
.djgabo-export-track i.indeterminate{
  width:38% !important;
  animation:djgaboExportSlide 1.05s ease-in-out infinite;
}
@keyframes djgaboExportSlide{
  0%{transform:translateX(-110%)}
  55%{transform:translateX(100%)}
  100%{transform:translateX(270%)}
}
.djgabo-export-progress small{
  display:block;
  margin-top:7px;
  color:#7f8995;
  font-size:9.5px;
  line-height:1.35;
  font-weight:750;
}

@media(max-width:430px){
  .djgabo-pro-controls{
    gap:6px;
  }
  .djgabo-pro-knob,
  .djgabo-pro-restore{
    height:60px;
    grid-template-columns:31px minmax(0,1fr);
    column-gap:6px;
    padding:7px 7px;
    border-radius:13px;
  }
  .djgabo-pro-ring,
  .djgabo-pro-restore-icon{
    width:30px;
    height:30px;
  }
  .djgabo-pro-icon{
    left:13px;
    top:21px;
    width:17px;
    height:17px;
    font-size:9px;
  }
  .djgabo-pro-knob b,
  .djgabo-pro-restore b{
    font-size:8.5px;
  }
  .djgabo-pro-knob output{
    font-size:9.8px;
  }
  .djgabo-pro-restore small{
    font-size:8.5px;
  }
  .djgabo-pro-popup{
    width:174px;
  }
}
