/* Zigma Pro — Editor de audio (acento cian) */
:root { --ed-grad: linear-gradient(90deg, #a5f3fc 0%, #22d3ee 50%, #0891b2 100%); --ed: #22d3ee; --ed-2: #67e8f9; }
.cyan { background: var(--ed-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.btn-cyan { background: var(--ed-grad); color: #00222b; font-weight: 700; box-shadow: 0 10px 34px rgba(34,211,238,.25); }
.btn-cyan:hover { filter: brightness(1.06); }
.btn-cyan svg { width: 18px; height: 18px; }
.ed-hero::before { background: radial-gradient(closest-side, rgba(34,211,238,.17), transparent 70%); }

.ed { border-radius: 22px; padding: 26px; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--ed-grad) border-box; border: 1px solid transparent; }
@media (max-width: 600px) { .ed { padding: 16px; border-radius: 18px; } }
.ed-drop { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 54px 20px; border: 1.5px dashed var(--border-strong);
  border-radius: 16px; cursor: pointer; transition: border-color .15s, background .15s; }
.ed-drop:hover, .ed-drop.over { border-color: var(--ed); background: rgba(34,211,238,.05); }
.ed-drop svg { width: 38px; height: 38px; color: var(--ed); margin-bottom: 6px; }
.ed-drop strong { color: #fff; font: 600 18px var(--head); }
.ed-drop span { color: var(--muted); font-size: 14px; max-width: 620px; }
.ed-msg { margin: 10px 0 0; font-size: 14.5px; color: var(--text-2); }
.ed-msg:empty { display: none; }
.ed-msg.bad { color: #ff9a8f; } .ed-msg.ok { color: #7dd3fc; }
.ed-msg a { color: var(--ed-2); }
.ed-msg small { display: block; color: var(--muted); margin-top: 4px; }

/* barra superior */
.ed-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px 18px; flex-wrap: wrap; margin-bottom: 14px; }
.ed-transport { display: flex; align-items: center; gap: 10px; }
.ed-bar-r { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ed-play { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; border: none; background: var(--ed-grad); color: #00222b; cursor: pointer;
  box-shadow: 0 8px 26px rgba(34,211,238,.3); }
.ed-play svg { width: 24px; height: 24px; }
.ed-ic { display: inline-grid; place-items: center; min-width: 38px; height: 38px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--border-strong); background: none;
  color: #fff; cursor: pointer; font: 600 13px var(--body); }
.ed-ic svg { width: 18px; height: 18px; }
.ed-ic.sm { min-width: 32px; height: 32px; font-size: 13px; }
.ed-ic:hover:not(:disabled) { border-color: var(--ed); color: var(--ed-2); }
.ed-ic:disabled, .ed-btn:disabled { opacity: .4; cursor: default; }
.ed-time { font: 700 16px var(--head); color: #fff; font-variant-numeric: tabular-nums; letter-spacing: .3px; }
.ed-btn { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border-strong); background: #0c0e14;
  color: #fff; font: 600 13.5px var(--body); cursor: pointer; white-space: nowrap; }
.ed-btn svg { width: 16px; height: 16px; color: var(--ed); }
.ed-btn:hover:not(:disabled) { border-color: var(--ed); }
.ed-btn.ghost { background: none; color: var(--text-2); }
.ed-switch { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text-2); cursor: pointer; }
.ed-switch input { width: 17px; height: 17px; accent-color: var(--ed); }

/* línea de tiempo */
.ed-timeline { display: grid; grid-template-columns: auto minmax(0, 1fr); border-radius: 14px; overflow: hidden; border: 1px solid var(--border); background: #0a0c11; }
.ed-heads { display: flex; flex-direction: column; }
.ed-heads:empty { display: none; }
.ed-head-r { height: 26px; background: #0e1118; border-right: 1px solid var(--border); }
.ed-head { width: 150px; height: var(--lane); padding: 8px 10px; display: flex; flex-direction: column; justify-content: center; gap: 6px; border-right: 1px solid var(--border);
  border-bottom: 1px solid #1a1f2a; cursor: pointer; }
.ed-head.on { background: rgba(34,211,238,.07); box-shadow: inset 3px 0 0 var(--ed); }
.ed-head input { width: 100%; padding: 3px 6px; border-radius: 7px; border: 1px solid transparent; background: none; color: #fff; font: 600 13px var(--body); }
.ed-head input:focus { border-color: var(--border-strong); outline: none; background: #0c0e14; }
.ed-head > div { display: flex; gap: 6px; }
.ms { width: 28px; height: 22px; border-radius: 6px; border: 1px solid var(--border-strong); background: none; color: var(--text-2); font: 700 11px var(--head); cursor: pointer; }
.ms.on { background: var(--ed); border-color: var(--ed); color: #00222b; }
@media (max-width: 600px) { .ed-head { width: 92px; padding: 6px; } .ed-head input { font-size: 12px; } }
.ed-scroll { grid-column: 2; position: relative; overflow-x: auto; overflow-y: hidden; scrollbar-color: #2a3140 transparent; }
.ed-spacer { height: 1px; }
.ed-scroll canvas { position: sticky; left: 0; top: 0; display: block; margin-top: -1px; touch-action: none; }
.ed-zoom { display: flex; align-items: center; justify-content: flex-end; gap: 6px; margin: 8px 0 4px; }
.ed-zoom .hint { flex: 1; color: var(--muted); font-size: 13px; margin: 0; }

/* herramientas de edición */
.ed-tools { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 18px; flex-wrap: wrap; margin: 12px 0 18px; padding: 14px; border-radius: 14px;
  background: #0c0e14; border: 1px solid var(--border); }
.ed-sel { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.ed-sel label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
.ed-sel input { width: 104px; padding: 7px 10px; border-radius: 10px; border: 1px solid var(--border-strong); background: #07080c; color: #fff; font: 600 14px var(--body);
  font-variant-numeric: tabular-nums; }
.ed-sel input:focus { outline: 2px solid rgba(34,211,238,.5); border-color: transparent; }
.ed-len { font-size: 13px; color: var(--ed-2); padding-bottom: 9px; }
.ed-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ed-actions .adv-only { display: none; gap: 8px; }
.ed.multi .ed-actions .adv-only { display: inline-flex; }

/* paneles */
.ed-panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (min-width: 1180px) { .ed-panels { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .ed-panels, .ed.multi .ed-panels { grid-template-columns: 1fr; } }
.ed-panel { padding: 16px; border-radius: 16px; background: #0c0e14; border: 1px solid var(--border); min-width: 0; }
.ed-panel.adv-only { display: none; }
.ed.multi .ed-panel.adv-only { display: block; }
.ed.multi .simple-only { display: none !important; }
.ed-panel h3 { font: 700 12.5px var(--head); letter-spacing: 1.3px; text-transform: uppercase; color: var(--text-2); margin: 0 0 12px; }
.ed-panel h3 small { color: var(--ed-2); letter-spacing: .5px; text-transform: none; font: 600 12.5px var(--body); }
.ed-panel .hint { color: var(--muted); font-size: 13px; margin: 0 0 8px; }
.rng { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 10px; margin: 0 0 10px; font-size: 13px; color: var(--text-2); }
.rng input { grid-column: 1 / -1; width: 100%; accent-color: var(--ed); height: 22px; margin: 0; }
.rng output { font: 600 12.5px var(--body); color: #fff; font-variant-numeric: tabular-nums; grid-row: 1; grid-column: 2; }
.rng input:disabled { opacity: .35; }
#trackCtl.dim .rng:nth-child(n+3) { opacity: .5; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 12px; }
.chip { padding: 6px 11px; border-radius: 999px; border: 1px solid var(--border-strong); background: none; color: var(--text-2); font: 600 12.5px var(--body); cursor: pointer; }
.chip:hover:not(:disabled) { color: #fff; border-color: var(--ed); }
.chip.on { background: var(--ed); border-color: var(--ed); color: #00222b; }
.chip:disabled { opacity: .4; cursor: default; }
.eq-curve { display: block; width: 100%; height: 90px; border-radius: 10px; background: #07080c; border: 1px solid var(--border); margin-bottom: 12px; }
.ed-export .lbl { display: block; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .6px; }
.ed-export .btn { width: 100%; margin-top: 4px; }
.ed-export .hint { min-height: 2.6em; }

/* resultado */
.ed-result { margin-top: 16px; padding: 18px 20px; border-radius: 16px; background: rgba(34,211,238,.05); border: 1px solid rgba(34,211,238,.3); }
.ed-stats { margin: 0 0 6px; color: #fff; font: 700 15px var(--head); font-variant-numeric: tabular-nums; }
.ed-note { margin: 0 0 10px; color: #ffd79a; font-size: 14px; }
.ed-res-cta { display: flex; align-items: center; gap: 10px 16px; flex-wrap: wrap; margin: 10px 0; }
.ed-res-cta svg { width: 18px; height: 18px; }
.ed-res-cta small { color: var(--muted); font-size: 13px; }
.ed-pro { margin: 8px 0 0; font-size: 14.5px; }
.ed-pro a { color: var(--ed-2); font-weight: 600; text-decoration: none; }
.ed-pro a:hover { text-decoration: underline; }

/* explicación y preguntas */
.ed-facts svg { color: var(--ed) !important; }
.ed-faq { max-width: 860px; margin: 54px auto 0; }
.ed-faq h2 { font-size: 26px; letter-spacing: -.5px; margin-bottom: 14px; }
.ed-faq details { border-bottom: 1px solid var(--border); padding: 14px 0; }
.ed-faq summary { cursor: pointer; color: #fff; font: 600 16px var(--head); }
.ed-faq summary::marker { color: var(--ed); }
.ed-faq p { margin: 10px 0 0; color: var(--text-2); font-size: 15px; }
.ed-credit { margin: 22px 0 0; color: var(--muted); font-size: 13px; }
.ed-credit a { color: var(--text-2); }

/* grabación */
.ed-or { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 14px 0 0; color: var(--muted); font-size: 14px; }
.ed-btn.rec .rdot, .ed-recbox .rdot { width: 10px; height: 10px; border-radius: 50%; background: #ff5a5f; flex: none; }
.ed-recbox { display: flex; align-items: center; gap: 12px 16px; flex-wrap: wrap; margin: 14px 0 0; padding: 14px 16px; border-radius: 14px;
  background: rgba(255,90,95,.07); border: 1px solid rgba(255,90,95,.35); }
.ed-recbox .rdot.on { animation: ed-blink 1s steps(2) infinite; }
@keyframes ed-blink { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .ed-recbox .rdot.on { animation: none; } }
.ed-meter { flex: 1 1 140px; height: 8px; border-radius: 4px; background: #1a1f2a; overflow: hidden; }
.ed-meter i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #22d3ee, #a3e635 70%, #ff5a5f); transition: width .08s; }
.ed-check { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text-body); margin: 2px 0 10px; cursor: pointer; }
.ed-check input { width: 16px; height: 16px; accent-color: var(--ed); }
#pApply { width: 100%; justify-content: center; }
