/* public/layout-fx.css -- efectos en vivo y compartir en Grabar mi voz (solo celular + skin Video; ver layout-fx.js) */
.fx-box { display: none; }
html[data-layout="video"].is-big .fx-box { display: grid; gap: 10px; margin-top: 6px; padding: 12px; border-radius: 18px; background: rgba(255, 255, 255, 0.05); border: 1.5px solid rgba(255, 255, 255, 0.14); min-width: 0; }
.fx-title { margin: 0; font-weight: 800; font-size: 0.95rem; }
.fx-presets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.fx-p { display: grid; place-items: center; gap: 2px; min-height: 64px; padding: 6px 2px; border-radius: 16px; font-weight: 800; font-size: 0.78rem; background: rgba(255, 255, 255, 0.08); color: var(--text, #fff); border: 1.5px solid rgba(255, 255, 255, 0.2); box-shadow: none; transition: transform 0.12s ease; }
.fx-p i { font-style: normal; font-size: 1.3rem; }
.fx-p:active { transform: scale(0.94); }
.fx-p.is-on { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #07070c; border-color: transparent; box-shadow: 0 6px 18px rgb(var(--accent-rgb) / 40%); }
.fxm-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.fx-vol { flex: 1; min-width: 140px; display: flex; align-items: center; gap: 8px; font-size: 0.82rem; font-weight: 700; }
.fx-vol[hidden] { display: none; }
.fx-vol input { flex: 1; min-width: 0; }
.fxm-note { margin: 0; font-size: 0.78rem; opacity: 0.75; }
.rg-tile.fx-share { grid-column: 1 / -1; aspect-ratio: auto; min-height: 60px; grid-auto-flow: column; justify-content: center; gap: 12px; }
.rg-tile.fx-share i { font-size: 1.4rem; }
.rg-tile.fx-share.is-ready { animation: fxPulse 1.6s ease-in-out infinite; }
@keyframes fxPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(138, 92, 245, 0.55); } 50% { box-shadow: 0 0 0 12px rgba(138, 92, 245, 0); } }
@media (prefers-reduced-motion: reduce) { .rg-tile.fx-share.is-ready { animation: none; } }

/* ---- afinación y armonías (voxfx.js) ---- */
.vx-box { margin-top: 12px; padding: 12px; border-radius: 16px; background: rgba(255,255,255,.05); display: grid; gap: 10px; min-width: 0; }
.vx-presets { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.vx-row { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; min-width: 0; }
.vx-row label, .vx-robot { display: grid; gap: 4px; font-size: 12px; min-width: 0; }
.vx-row select { min-width: 0; max-width: 100%; }
.vx-robot input { width: 100%; margin: 0; }
.vx-robot small { display: flex; justify-content: space-between; opacity: .6; font-size: 11px; }
.vx-harms { display: flex; flex-wrap: wrap; gap: 6px; }
.vx-h.is-on, .vx-tune-btn.is-on, .vx-voc-btn.is-on { background: #3ddc84; color: #06210f; border-color: #3ddc84; }
.vx-chordl[hidden] { display: none; }
@media (max-width: 420px) { .vx-presets { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---- zona de loop (recloop.js) ---- */
.lp-box { margin-top: 12px; padding: 12px; border-radius: 16px; background: rgba(255,255,255,.05); display: grid; gap: 10px; min-width: 0; }
.lp-box.is-on { box-shadow: 0 0 0 1.5px #ffb53c inset; }
.lp-row, .lp-time, .lp-lines { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: end; min-width: 0; }
.lp-box label { display: grid; gap: 4px; font-size: 12px; min-width: 0; }
.lp-box select { max-width: 100%; min-width: 0; }
.lp-box input { width: 84px; }
.lp-lines[hidden] { display: none; }
.lp-on.is-on, .lp-prev.is-on { background: #ffb53c; color: #20140a; border-color: #ffb53c; }
.lp-time { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.lp-pair { display: flex; gap: 8px; align-items: end; min-width: 0; }
.lp-pair input { width: 100%; min-width: 0; }
.lp-pair .rg-chip { flex: none; padding: 8px 10px; font-size: 12px; }

/* ---- mejorar mi toma (recauto.js) ---- */
.rg-tile.ra-tile.is-busy { opacity: .6; pointer-events: none; }

/* melodía guía */
.mg-box { margin-top: 12px; padding: 12px; border-radius: 16px; background: rgba(255,255,255,.05); display: grid; gap: 10px; min-width: 0; }
.mg-box.is-on { box-shadow: 0 0 0 1.5px #5be08a inset; }
.mg-title { margin: 0; font-weight: 700; font-size: .92rem; }
.mg-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; min-width: 0; }
.mg-status { font-size: 12px; opacity: .8; min-width: 0; overflow-wrap: anywhere; }
.mg-stage { display: grid; gap: 8px; min-width: 0; }
.mg-stage[hidden] { display: none; }
.mg-canvas { width: 100%; height: auto; aspect-ratio: 16/5; border-radius: 12px; background: rgba(0,0,0,.35); display: block; }
.mg-score { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.mg-pct { font-size: 1.6rem; }
.mg-stars { color: #ffd34d; letter-spacing: 2px; }
.mg-sub { opacity: .7; }

/* "Más opciones" (recmore.js) */
.rm-more { margin-top: 12px; border-radius: 16px; background: rgba(255,255,255,.04); min-width: 0; }
.rm-sum { list-style: none; cursor: pointer; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 2px 10px; padding: 12px 14px; min-height: 52px; border-radius: 16px; border: 1.5px dashed rgba(255,255,255,.3); font-weight: 800; }
.rm-sum::-webkit-details-marker { display: none; }
.rm-sum::after { content: '▾'; grid-row: 1 / 3; grid-column: 3; opacity: .7; transition: transform .2s ease; }
.rm-more[open] > .rm-sum::after { transform: rotate(180deg); }
.rm-ico { grid-row: 1 / 3; font-size: 1.4rem; }
.rm-sub { grid-column: 2; font-size: .75rem; font-weight: 500; opacity: .7; }
.rm-body { display: grid; gap: 4px; padding: 0 10px 10px; min-width: 0; }
.rm-body > .vx-box, .rm-body > .lp-box, .rm-body > .mg-box { margin-top: 8px; }

/* ---- Crea pista con IA (recbeatai.js) ---- */
.bp-box { min-width: 0; border-radius: 18px; background: rgba(255,255,255,.05); }
.bp-box[open] { box-shadow: 0 0 0 1.5px #2fbf9f inset; }
.bp-sum { list-style: none; cursor: pointer; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 2px 12px; padding: 12px 14px; min-height: 56px; border-radius: 18px; color: #fff; font-weight: 800;
  background: linear-gradient(135deg, #2fbf9f, #1f8f7a); }
.bp-box[open] > .bp-sum { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.bp-sum::-webkit-details-marker { display: none; }
.bp-ico { grid-row: 1 / 3; font-size: 1.6rem; }
.bp-s { grid-column: 2; font-size: .75rem; font-weight: 600; opacity: .9; }
.bp-body { display: grid; gap: 10px; padding: 12px; min-width: 0; }
.bp-f { display: grid; gap: 4px; font-size: 12px; font-weight: 700; min-width: 0; }
.bp-f select, .bp-f input { width: 100%; min-width: 0; min-height: 44px; font-size: 16px; box-sizing: border-box; }
.bp-two { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.bp-go { min-height: 52px; border-radius: 999px; font-size: 1rem; font-weight: 800; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #07070c; border: 0; }
.bp-go:disabled { opacity: .6; }
.bp-msg { margin: 0; font-size: .85rem; font-weight: 700; min-height: 1.1em; overflow-wrap: anywhere; }
.bp-res { display: grid; gap: 8px; }
.bp-res[hidden] { display: none; }
.bp-audio { width: 100%; }
.bp-sing { min-height: 48px; border-radius: 999px; font-weight: 800; background: #2fbf71; color: #07210f; border: 0; }
.bp-lh { margin: 4px 0 0; font-size: .8rem; font-weight: 800; opacity: .8; }
.bp-row { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; padding: 6px 8px; border-radius: 12px; background: rgba(255,255,255,.06); }
.bp-row span { font-size: .8rem; min-width: 0; overflow-wrap: anywhere; }
.bp-row button { min-height: 40px; min-width: 44px; padding: 0 12px; border-radius: 999px; font-weight: 800; }
.bp-note { margin: 0; font-size: .75rem; opacity: .7; }
@media (max-width: 380px) { .bp-two { grid-template-columns: 1fr 1fr; } }

/* ---- yo grabo, la IA hace el resto (migrabacion.js) ---- */
.mv-step.is-busy .mv-tiles { opacity: .6; pointer-events: none; }
.mv-panel { margin-top: 12px; padding: 14px; border-radius: 18px; background: rgba(255,255,255,.06); display: grid; gap: 12px; min-width: 0; }
.mv-panel[hidden] { display: none; }
.mv-h { margin: 0; font-weight: 800; font-size: 1rem; }
.mv-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.mv-chips .rg-chip.is-on { background: #ffb53c; color: #20140a; border-color: #ffb53c; }
.mv-go { min-height: 56px; border: 0; border-radius: 18px; font-weight: 900; font-size: 1.05rem; color: #fff; cursor: pointer; background: linear-gradient(135deg, #e8771f, #d4503f); box-shadow: 0 8px 22px rgba(212,80,63,.35); }
.mv-go:active { transform: scale(.98); }
.mv-eng, .mv-consent { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; line-height: 1.3; }
.mv-eng input, .mv-consent input { width: 22px; height: 22px; flex: none; margin-top: 1px; }
.mv-empty { margin: 0; opacity: .8; font-size: .92rem; }
.mv-msg { margin: 10px 0 0; min-height: 1.2em; font-size: .95rem; line-height: 1.35; }

/* ---- ponle pista a mi voz (ponlepista.js) ---- */
.pp-step.is-busy .pp-tiles, .pp-step.is-busy .pp-go { opacity: .6; pointer-events: none; }
.pp-sub { margin: 0 0 10px; opacity: .85; font-size: .92rem; line-height: 1.35; }
.pp-panel { margin-top: 12px; padding: 14px; border-radius: 18px; background: rgba(255,255,255,.06); display: grid; gap: 12px; min-width: 0; }
.pp-panel[hidden], .pp-after[hidden] { display: none; }
.pp-f { display: grid; gap: 6px; font-size: .85rem; min-width: 0; }
.pp-f select, .pp-f input { min-height: 46px; font-size: 1rem; width: 100%; box-sizing: border-box; }
.pp-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pp-go { min-height: 56px; border: 0; border-radius: 18px; font-weight: 900; font-size: 1.05rem; color: #fff; cursor: pointer; background: linear-gradient(135deg, #e8771f, #d4503f); box-shadow: 0 8px 22px rgba(212,80,63,.35); }
.pp-go.pp-listen { background: linear-gradient(135deg, #3aa6d8, #2a6fb0); box-shadow: 0 8px 22px rgba(42,111,176,.35); }
.pp-go:active { transform: scale(.98); }
.pp-found { margin: 0; font-weight: 700; min-height: 1.2em; }
.pp-after { display: flex; flex-wrap: wrap; gap: 8px; }
.pp-msg { margin: 10px 0 0; min-height: 1.2em; font-size: .95rem; line-height: 1.35; }
.pp-adv { border-radius: 14px; background: rgba(255,255,255,.05); padding: 10px 12px; }
.pp-adv summary { cursor: pointer; font-weight: 700; font-size: .95rem; min-height: 32px; display: flex; align-items: center; }
.pp-advb { display: grid; gap: 12px; margin-top: 10px; }
.pp-listen { width: 100%; min-height: 46px; }

/* ---- masterizar (masterbtn.js) ---- */
.rg-tile.ms-tile.is-ready { outline: 3px solid #fff; }
.ms-panel { margin-top: 12px; padding: 14px; border-radius: 18px; background: rgba(255,255,255,.06); display: grid; gap: 12px; min-width: 0; }
.ms-panel[hidden] { display: none; }
.ms-panel.is-busy .ms-go { opacity: .6; pointer-events: none; }
.ms-h { margin: 0; font-weight: 800; }
.ms-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ms-chips .rg-chip.is-on { background: #ffb53c; color: #20140a; border-color: #ffb53c; }
.ms-d { margin: 0; font-size: .9rem; opacity: .85; line-height: 1.3; }
.ms-go { min-height: 56px; border: 0; border-radius: 18px; font-weight: 900; font-size: 1.05rem; color: #fff; cursor: pointer; background: linear-gradient(135deg, #e0b100, #c2410c); box-shadow: 0 8px 22px rgba(194,65,12,.35); }
.ms-go:active { transform: scale(.98); }
.ms-msg { margin: 0; min-height: 1.2em; font-size: .95rem; line-height: 1.35; }

/* ---- Ponle coros (public/coros.js) ---- */
.cho-step.is-busy .cho-defs, .cho-step.is-busy .cho-mode { opacity: .6; pointer-events: none; }
.cho-step .cho-defs .rg-chip { display: grid; gap: 2px; text-align: left; padding: 10px 14px; }
.cho-step .cho-defs .rg-chip small { font-weight: 600; font-size: .75rem; opacity: .75; }
.cho-step .rg-chip.is-on { background: #ffb53c; color: #20140a; border-color: #ffb53c; }
.cho-row { display: grid; gap: 10px; margin: 10px 0; }
.cho-lab { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: .95rem; }
.cho-lab select { min-height: 42px; border-radius: 12px; padding: 0 10px; font-size: 1rem; }
.cho-lab input[type=range] { flex: 1 1 160px; min-width: 120px; }
.cho-note { margin: 0; font-size: .85rem; opacity: .8; }
.cho-go { width: 100%; margin-top: 4px; }
.cho-go.is-off { opacity: .55; }
.cho-undo { justify-self: start; }
