/* Sonido · estilos propios */
.top-mid { margin: 0 auto; display: flex; align-items: center; gap: 4px; }
.top-mid kbd { margin: 0 1px; }
.topbar .top-actions { margin-left: 0; }
.cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 1200px; }
.row.center { justify-content: center; align-items: center; }
.btn.xl { height: 42px; min-width: 150px; font-size: 14.5px; border-radius: 10px; }

/* Metrónomo */
.bpm-row { display: flex; align-items: center; justify-content: center; gap: 18px; }
.round { width: 44px; height: 44px; border: 1px solid var(--border-2); border-radius: 50%; background: var(--panel); font-size: 22px; color: var(--text-2); }
.round:hover { background: var(--hover); color: var(--text); }
.bpm { display: flex; flex-direction: column; align-items: center; }
.bpm input { width: 150px; border: 0; background: none; outline: none; text-align: center; font-size: 64px; font-weight: 600; letter-spacing: -.04em; font-variant-numeric: tabular-nums; line-height: 1; }
.bpm span { font-size: 11px; font-weight: 600; letter-spacing: .08em; color: var(--text-3); }
#bpmRange { width: 100%; }
.beats { display: flex; justify-content: center; gap: 10px; padding: 6px 0; }
.beats i { width: 22px; height: 22px; border-radius: 50%; background: var(--sunken); box-shadow: inset 0 0 0 1px var(--border-2); transition: transform .08s, background-color .08s; }
.beats i.acc { box-shadow: inset 0 0 0 2px var(--accent-line); }
.beats i.on { background: var(--accent); box-shadow: none; transform: scale(1.18); }
.beats i.acc.on { background: var(--danger); }
#tap.pulse { animation: tapPulse .25s var(--ease); }
@keyframes tapPulse { 50% { transform: scale(.94); } }

/* Afinador */
.a4 { width: 64px; height: 26px; display: inline-block; padding: 0 6px; }
.tuner { display: grid; justify-items: center; gap: 6px; padding: 8px 0; }
.note { display: flex; align-items: flex-start; gap: 2px; }
.note span { font-size: 64px; font-weight: 600; letter-spacing: -.04em; line-height: 1; }
.note small { font-size: 20px; color: var(--text-3); margin-top: 6px; }
.freq { color: var(--text-2); font-size: 13px; }
.meter { position: relative; width: 100%; max-width: 420px; height: 46px; margin-top: 6px; }
.scale { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--text-3); }
.zone { position: absolute; left: 46%; width: 8%; top: 18px; height: 22px; border-radius: 4px; background: var(--ok-soft); }
.meter::after { content: ""; position: absolute; left: 0; right: 0; top: 29px; height: 2px; background: var(--border-2); border-radius: 1px; }
.needle { position: absolute; left: 50%; top: 14px; width: 3px; height: 30px; margin-left: -1.5px; border-radius: 2px; background: var(--text); z-index: 1; transition: left .12s linear; }
.cents { font-size: 13px; font-weight: 500; min-height: 20px; }
.cents.ok { color: var(--ok); } .cents.off { color: var(--danger); }
.strings { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; }
.strings button { display: flex; align-items: baseline; gap: 1px; padding: 6px 12px; border: 1px solid var(--border-2); border-radius: 9px; background: var(--panel); }
.strings button small { color: var(--text-3); font-size: 10px; }
.strings button.near { border-color: var(--accent); background: var(--accent-soft); }
#instr { width: auto; }

/* Tonos */
.tone-f { display: flex; align-items: baseline; justify-content: center; gap: 6px; }
.tone-f input { width: 200px; height: 56px; text-align: center; font-size: 34px; font-weight: 600; border: 0; background: none; }
.tone-f input:focus { box-shadow: none; background: var(--sunken); }
.tone-f span { color: var(--text-3); font-size: 16px; }
#toneRange { width: 100%; }
.chips { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; }
.chips button { height: 26px; padding: 0 10px; border: 1px solid var(--border-2); border-radius: 99px; background: var(--panel); font-size: 12px; color: var(--text-2); }
.chips button:hover { background: var(--hover); color: var(--text); }
.warn-note { margin: 0; text-align: center; }

/* Grabadora */
.rec { display: flex; align-items: center; gap: 18px; justify-content: center; padding: 8px 0; }
.rec-btn { display: grid; place-items: center; width: 64px; height: 64px; border: 3px solid var(--border-2); border-radius: 50%; background: var(--panel); }
.rec-btn span { width: 28px; height: 28px; border-radius: 50%; background: #e5484d; transition: border-radius .15s, transform .15s; }
.rec-btn.on { border-color: #e5484d; animation: recPulse 1.4s ease-in-out infinite; }
.rec-btn.on span { border-radius: 5px; transform: scale(.75); }
@keyframes recPulse { 50% { box-shadow: 0 0 0 8px rgba(229, 72, 77, .15); } }
.rec-time { font-size: 30px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.level { width: 160px; height: 5px; border-radius: 3px; background: var(--sunken); overflow: hidden; }
.level i { display: block; height: 100%; width: 0; background: var(--ok); transition: width .05s linear; }
.recs { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.recs li:not(.empty) { padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px; display: grid; gap: 6px; }
.r-h { display: flex; align-items: center; gap: 8px; }
.r-h small { color: var(--text-3); }
.recs audio { width: 100%; height: 34px; }

@media (max-width: 900px) { .cards.two { grid-template-columns: minmax(0, 1fr); } .top-mid { display: none; } .topbar .top-actions { margin-left: auto; } }

/* Pantallas táctiles */
:root[data-input="touch"] .chips { gap: 6px; }
:root[data-input="touch"] .chips button { height: 38px; padding: 0 14px; font-size: 13.5px; }
