/* Play Presto — by Carreño Foundation. Look "sticker pack" (ver bloque LOOK 2026 al final). */
@font-face { font-family: "Space Grotesk"; font-weight: 400; font-display: swap; src: url("fuentes/space-grotesk-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 500; font-display: swap; src: url("fuentes/space-grotesk-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 700; font-display: swap; src: url("fuentes/space-grotesk-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Unbounded"; font-weight: 700; font-display: swap; src: url("fuentes/unbounded-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Unbounded"; font-weight: 900; font-display: swap; src: url("fuentes/unbounded-latin-900-normal.woff2") format("woff2"); }
:root {
  --azul: #35b2ee; --azul-o: #1f8fcf; --rojo: #ff4f4b; --verde: #a3d94a; --gris: #8b93a3;
  --fondo: #0b0e15; --fondo2: #121725; --panel: #171d2c; --panel2: #1f2638; --linea: #2a3247; --texto: #eef2f8; --texto2: #9aa4b8;
  --tinta: #12161f; --tinta2: #5a6474; --papel: #ffffff;
  --sombra-compas: rgba(53, 178, 238, 0.24); --marca-compas: rgba(53, 178, 238, 0.24);
  --r: 14px; --fuente: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif; --titulos: "Unbounded", "Space Grotesk", system-ui, sans-serif;
  --brillo-azul: 0 0 0 1px rgba(53,178,238,.5), 0 8px 30px rgba(53,178,238,.35);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--fondo); color: var(--texto); font-family: var(--fuente); -webkit-tap-highlight-color: transparent; }
body { overflow: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 1px solid var(--linea); background: var(--panel2); color: var(--texto); border-radius: 999px; padding: 10px 18px; font-weight: 700; min-height: 44px; transition: background .15s, border-color .15s, transform .08s, box-shadow .15s; }
button:hover { border-color: #3b4560; background: #252d42; }
button:active { transform: scale(.97); }
button.prim { background: linear-gradient(135deg, var(--azul), #2a8be0); border-color: transparent; color: #04121c; box-shadow: 0 6px 22px rgba(53,178,238,.35); }
button.prim:hover { filter: brightness(1.08); }
button.peligro { color: var(--rojo); }
button.on { background: rgba(53,178,238,.16); border-color: var(--azul); color: var(--azul); }
button:disabled { opacity: .45; cursor: default; }
select { background: var(--panel2); color: var(--texto); border: 1px solid var(--linea); border-radius: 999px; padding: 8px 14px; min-height: 44px; font-weight: 700; }
input, textarea { border: 1px solid var(--linea); border-radius: var(--r); padding: 11px 14px; background: var(--fondo2); color: var(--texto); min-height: 46px; }
input::placeholder { color: #566079; }
input:focus, select:focus, textarea:focus, button:focus-visible { outline: 2px solid var(--azul); outline-offset: 2px; }
.oculto { display: none !important; }
.pantalla { position: fixed; inset: 0; display: none; flex-direction: column; background: var(--fondo); }
.pantalla.activa { display: flex; }
.chico { font-size: 13px; color: var(--texto2); }

/* ---------- inicio ---------- */
#s-inicio { align-items: center; justify-content: flex-start; overflow-y: auto; padding: 24px;
  background: radial-gradient(900px 500px at 15% -10%, rgba(53,178,238,.28), transparent 60%), radial-gradient(700px 500px at 110% 20%, rgba(255,79,75,.20), transparent 60%), radial-gradient(800px 500px at 50% 120%, rgba(163,217,74,.16), transparent 60%), var(--fondo); }
.inicio-caja { width: min(640px, 100%); display: flex; flex-direction: column; align-items: center; gap: 18px; margin: auto; }
.hero { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.hero .logo { width: min(250px, 58vw); max-height: 36vh; object-fit: contain; height: auto; filter: drop-shadow(0 12px 34px rgba(53,178,238,.35)); animation: flota 4s ease-in-out infinite; }
@keyframes flota { 50% { transform: translateY(-6px) rotate(-2deg); } }
.wordmark { font-family: var(--titulos); font-weight: 900; font-size: clamp(34px, 8vw, 58px); letter-spacing: -.02em; margin: 0; line-height: .95; }
.wordmark span { background: linear-gradient(90deg, var(--azul), var(--verde) 55%, var(--rojo)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.by { letter-spacing: .3em; text-transform: uppercase; font-size: 12px; color: var(--texto2); font-weight: 700; margin-top: 2px; }
.eq { display: flex; gap: 5px; align-items: flex-end; height: 26px; }
.eq i { width: 6px; border-radius: 3px; background: var(--azul); animation: eq 1s ease-in-out infinite; }
.eq i:nth-child(2) { background: var(--verde); animation-delay: -.3s; } .eq i:nth-child(3) { background: var(--rojo); animation-delay: -.6s; } .eq i:nth-child(4) { animation-delay: -.15s; } .eq i:nth-child(5) { background: var(--verde); animation-delay: -.45s; }
@keyframes eq { 0%, 100% { height: 6px; } 50% { height: 26px; } }
.opciones { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; width: 100%; margin-top: 8px; }
.opcion { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 20px; text-align: left; min-height: 132px; border-radius: 22px; background: var(--panel); border: 1px solid var(--linea); }
.opcion::after { content: ""; position: absolute; right: -40px; top: -40px; width: 120px; height: 120px; border-radius: 50%; opacity: .18; filter: blur(4px); }
.opcion.dir::after { background: var(--azul); } .opcion.uni::after { background: var(--rojo); } .opcion.pra::after { background: var(--verde); } .opcion.edi::after { background: #b07cff; }
.opcion:hover { transform: translateY(-2px); border-color: #3b4560; background: var(--panel); }
.opcion b { font-family: var(--titulos); font-size: 17px; font-weight: 700; }
.opcion span { font-weight: 500; font-size: 14px; color: var(--texto2); }
.opcion .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #0b0e15; font-size: 18px; font-weight: 900; margin-bottom: 4px; }
.opcion.dir .ic { background: var(--azul); } .opcion.uni .ic { background: var(--rojo); color: #fff; } .opcion.pra .ic { background: var(--verde); } .opcion.edi .ic { background: #b07cff; }
.pie-inicio { display: flex; gap: 12px; align-items: center; font-size: 13px; color: var(--texto2); flex-wrap: wrap; justify-content: center; }
.estado-red { font-size: 12px; color: var(--texto2); }
.idioma button { min-height: 34px; padding: 4px 14px; font-size: 13px; }

/* ---------- barras ---------- */
.barra, .tira, .transporte, .hoja-opciones { flex-shrink: 0; }
.barra { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: rgba(18,23,37,.92); border-bottom: 1px solid var(--linea); min-height: 64px; flex-wrap: wrap; }
.barra .marca { height: 36px; width: auto; }
.barra .titulo { font-family: var(--titulos); font-weight: 700; font-size: 16px; flex: 1; min-width: 120px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -.01em; }
.barra .titulo small { display: block; font-family: var(--fuente); font-weight: 500; font-size: 12px; color: var(--texto2); letter-spacing: 0; }
.codigo { display: flex; align-items: center; gap: 10px; background: linear-gradient(135deg, rgba(53,178,238,.18), rgba(163,217,74,.12)); border: 1px solid rgba(53,178,238,.45); border-radius: 999px; padding: 4px 6px 4px 16px; }
.codigo b { font-family: var(--titulos); font-weight: 900; font-size: 24px; letter-spacing: .1em; color: #fff; }
.codigo .chico { text-transform: uppercase; letter-spacing: .12em; font-size: 10px; font-weight: 700; }
.codigo button { min-height: 36px; padding: 4px 14px; }
.pill { font-size: 13px; padding: 6px 14px; color: var(--texto); white-space: nowrap; }
.pill #n-musicos { color: var(--verde); font-weight: 900; }
.transporte { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: rgba(18,23,37,.95); border-top: 1px solid var(--linea); flex-wrap: wrap; }
.transporte .grupo { display: flex; align-items: center; gap: 4px; background: var(--fondo2); border: 1px solid var(--linea); border-radius: 999px; padding: 3px; }
.transporte .grupo button { min-height: 38px; min-width: 38px; padding: 4px; border: 0; background: transparent; }
.transporte .grupo button:hover { background: var(--panel2); }
.transporte .grupo span { min-width: 44px; text-align: center; font-variant-numeric: tabular-nums; font-weight: 700; }
.transporte .grupo label { font-size: 10px; color: var(--texto2); margin: 0 2px 0 10px; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.transporte .sep { flex: 1; }
#btn-play { min-width: 132px; font-family: var(--titulos); font-size: 16px; font-weight: 900; letter-spacing: .02em; min-height: 50px; }
#btn-play.sonando, #mu-play.sonando { background: linear-gradient(135deg, var(--rojo), #e03080); box-shadow: 0 6px 24px rgba(255,79,75,.4); color: #fff; }
.compas-ind { font-size: 13px; color: var(--texto2); font-weight: 700; }
#btn-inicio-cancion { min-width: 50px; min-height: 50px; padding: 4px; }

/* ---------- sala (director / práctica) ---------- */
.sala-cuerpo { flex: 1; display: flex; min-height: 0; }
.lista-canciones { width: 300px; background: var(--fondo2); border-right: 1px solid var(--linea); display: flex; flex-direction: column; min-height: 0; }
.lista-canciones.cerrada { display: none; }
.lista-canciones .cab { padding: 12px; display: flex; flex-direction: column; gap: 8px; border-bottom: 1px solid var(--linea); }
.lista-canciones .cab .fila { display: flex; gap: 6px; }
.lista-canciones .cab .fila button { flex: 1; font-size: 13px; padding: 8px; border-radius: 12px; }
.canciones { overflow-y: auto; flex: 1; padding: 8px; }
.cancion { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; border: 1px solid transparent; border-radius: 14px; padding: 10px 12px; background: none; font-weight: 700; min-height: 56px; margin-bottom: 2px; }
.cancion:hover { background: var(--panel); border-color: transparent; }
.cancion.sel { background: linear-gradient(135deg, rgba(53,178,238,.2), rgba(53,178,238,.06)); border-color: rgba(53,178,238,.5); }
.cancion small { display: block; font-weight: 500; font-size: 12px; color: var(--texto2); }
.cancion .tipo { font-size: 9px; font-weight: 900; letter-spacing: .1em; padding: 4px 7px; border-radius: 6px; background: var(--panel2); color: var(--texto2); flex: none; }
.cancion .tipo.xml { background: rgba(163,217,74,.16); color: var(--verde); }
.cancion .quitar { margin-left: auto; min-height: 30px; padding: 2px 8px; font-size: 12px; border: 0; background: none; color: var(--texto2); }
.grupo-lista { font-size: 10px; font-weight: 900; color: var(--texto2); text-transform: uppercase; letter-spacing: .16em; padding: 14px 12px 6px; }

.hoja-zona { flex: 1; display: flex; flex-direction: column; min-width: 0; min-height: 0; position: relative; background: var(--fondo); }
.hoja-opciones { display: flex; gap: 8px; align-items: center; padding: 10px 14px; flex-wrap: wrap; }
.hoja-opciones select { min-height: 42px; }
.seg { display: inline-flex; border: 1px solid var(--linea); border-radius: 999px; overflow: hidden; background: var(--fondo2); padding: 3px; gap: 2px; }
.seg button { border: 0; border-radius: 999px; min-height: 36px; padding: 6px 14px; font-weight: 700; background: transparent; }
.seg button.on { background: var(--azul); color: #04121c; }
.hoja { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 0 14px 40vh; scroll-behavior: smooth; }
.hoja .papel { background: var(--papel); color: var(--tinta); border-radius: 20px; box-shadow: 0 20px 60px rgba(0,0,0,.45); padding: 16px 10px 12px; margin: 0 auto; max-width: 1600px; position: relative; overflow: hidden; }
.hoja .papel::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: linear-gradient(90deg, var(--azul), var(--verde), var(--rojo)); }
.papel-cab { display: flex; justify-content: space-between; align-items: flex-end; padding: 6px 12px 10px; gap: 10px; }
.papel-cab h2 { margin: 0; font-family: var(--titulos); font-weight: 900; font-size: 22px; letter-spacing: -.02em; }
.papel-cab .chico { color: var(--tinta2); }
.papel-cab .parte { font-size: 13px; color: var(--tinta2); text-align: right; }
.papel-cab .parte b { color: var(--tinta); }
.vacia { padding: 60px 20px; text-align: center; color: var(--texto2); }
.vacia b { display: block; color: var(--texto); font-family: var(--titulos); font-size: 18px; margin-bottom: 8px; }

/* ---------- partitura (en papel blanco) ---------- */
.pp-svg { display: block; margin: 0 auto; max-width: 100%; height: auto; font-family: var(--fuente); }
.pp-linea { stroke: #2b2f36; stroke-width: 1.1; }
.pp-ledger { stroke: #2b2f36; stroke-width: 1.7; }
.pp-barra { stroke: #1d2129; stroke-width: 1.6; }
.pp-barra-g { fill: #1d2129; }
.pp-llave { fill: none; stroke: #1d2129; stroke-width: 2.4; }
.pp-negro { fill: #12151b; }
.pp-hueca { fill: none; stroke: #12151b; stroke-width: 1.9; }   /* hueca de verdad: se ve la línea que la cruza (Do con línea ≠ Si) */
.pp-x { stroke: #12151b; stroke-width: 1.9; stroke-linecap: round; fill: none; }
.pp-plica { stroke: #12151b; stroke-width: 1.4; }
.pp-flag { fill: none; stroke: #12151b; stroke-width: 2.2; stroke-linecap: round; }
.pp-silq { fill: none; stroke: #12151b; stroke-linejoin: round; stroke-linecap: round; }
.pp-silc { fill: none; stroke: #12151b; stroke-linecap: round; }
.pp-liga { fill: #12151b; stroke: #12151b; stroke-width: .6; }
.pp-alt { fill: #12151b; text-anchor: middle; font-family: "Segoe UI Symbol", "Apple Symbols", "Noto Music", "DejaVu Sans", serif; }
.pp-ts { fill: #12151b; font-weight: 800; text-anchor: middle; font-family: Georgia, "Times New Roman", serif; }
.pp-8 { fill: #12151b; font-size: 11px; font-weight: 700; text-anchor: middle; }
.pp-num { fill: #8a94a3; font-size: 11px; font-weight: 700; }
.pp-tupla { fill: #12151b; font-style: italic; font-weight: 700; text-anchor: middle; font-family: Georgia, serif; }
.pp-acorde { fill: #0b0e15; font-family: var(--titulos); font-weight: 900; letter-spacing: -.02em; }
.pp-acorde-suf { font-family: var(--fuente); font-weight: 700; }
.pp-seccion rect { fill: var(--rojo); stroke: none; }
.pp-seccion text { fill: #fff; font-family: var(--titulos); font-weight: 900; }
.pp-casilla { fill: none; stroke: #12151b; stroke-width: 1.4; }
.pp-casilla-n { fill: #12151b; font-weight: 700; font-family: Georgia, serif; }
.pp-veces { fill: #12151b; font-family: var(--titulos); font-weight: 900; text-anchor: end; }
.pp-sombra { fill: transparent; transition: fill .1s; }
.pp-sombra.marca { fill: var(--marca-compas); }
.pp-sombra.actual { fill: var(--sombra-compas); }
.pp-sombra.loop { stroke: var(--verde); stroke-width: 2.5; stroke-dasharray: 9 6; }
#btn-loop.on, #mu-loop.on { background: rgba(163,217,74,.16); border-color: var(--verde); color: var(--verde); }
.lider-tag { font-family: var(--titulos); font-weight: 900; font-size: 13px; color: #ffd34d; padding: 0 6px; }
.musico-lider { color: #ffd34d; }
.director .pp-sombra { cursor: pointer; }
.director .pp-sombra:hover { fill: rgba(53, 178, 238, .09); }
.director .pp-sombra.marca:hover, .director .pp-sombra.actual:hover { fill: var(--sombra-compas); }
/* diagramas (en la tira oscura) */
.pp-diag-l { stroke: #cdd5e3; stroke-width: 1.2; }
.pp-diag-p { fill: var(--azul); }
.pp-diag-o { fill: none; stroke: var(--texto); stroke-width: 1.4; }
.pp-diag-xo { fill: var(--texto2); text-anchor: middle; }
.pp-diag-nom { fill: var(--texto); font-weight: 900; text-anchor: middle; font-family: var(--titulos); }
.pp-diag-fr { fill: var(--texto2); font-weight: 700; }
.pp-t-b { fill: #f4f6fa; stroke: #48526a; }
.pp-t-n { fill: #0b0e15; }
.pp-t-on { fill: var(--azul); stroke: var(--azul-o); }
.pp-t-raiz { fill: var(--rojo); stroke: #b4302d; }

/* ---------- cuenta 1 2 3 4 ---------- */
.cuenta { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; z-index: 5; }
.cuenta span { font-family: var(--titulos); font-weight: 900; font-size: min(38vh, 300px); line-height: 1; color: var(--azul); -webkit-text-stroke: 6px #0b0e15; paint-order: stroke fill; text-shadow: 0 0 60px rgba(53,178,238,.8); animation: pulso .45s cubic-bezier(.2,1.4,.4,1); }
.cuenta span.uno { color: var(--rojo); text-shadow: 0 0 60px rgba(255,79,75,.8); }
@keyframes pulso { from { transform: scale(1.5) rotate(-6deg); opacity: .2; } to { transform: scale(1) rotate(0); opacity: 1; } }

/* ---------- músico ---------- */
.tira { display: flex; align-items: center; gap: 18px; padding: 6px 16px; background: linear-gradient(90deg, rgba(53,178,238,.12), rgba(163,217,74,.06)); border-bottom: 1px solid var(--linea); min-height: 86px; overflow-x: auto; overflow-y: hidden; }
.tira .ac-actual { font-family: var(--titulos); font-weight: 900; font-size: 44px; min-width: 96px; color: #fff; text-shadow: 0 0 24px rgba(53,178,238,.6); letter-spacing: -.02em; }
.tira .ac-sig { font-family: var(--titulos); font-size: 20px; color: var(--texto2); font-weight: 700; }
.tira .ac-sig .et { display: block; font-family: var(--fuente); font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.tira .diag-zona { display: flex; gap: 10px; align-items: center; margin-left: auto; }
.espera { position: absolute; left: 50%; top: 18px; transform: translateX(-50%); background: rgba(11,14,21,.92); border: 1px solid var(--linea); color: var(--texto); padding: 9px 18px; border-radius: 999px; font-size: 14px; font-weight: 700; z-index: 4; white-space: nowrap; display: flex; align-items: center; gap: 8px; }
.espera::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--verde); box-shadow: 0 0 10px var(--verde); animation: late 1.2s ease-in-out infinite; }
@keyframes late { 50% { opacity: .3; } }

/* ---------- formularios ---------- */
.form-caja { width: min(520px, 100%); margin: auto; display: flex; flex-direction: column; gap: 14px; padding: 24px; overflow-y: auto; }
.form-caja label { font-size: 11px; font-weight: 700; color: var(--texto2); display: flex; flex-direction: column; gap: 8px; text-transform: uppercase; letter-spacing: .14em; }
#u-codigo { font-family: var(--titulos); font-weight: 900; font-size: 34px; letter-spacing: .35em; text-align: center; padding-left: .35em; }
#u-nombre { font-size: 18px; font-weight: 700; }
.instrumentos { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.instrumentos button { display: flex; flex-direction: column; gap: 4px; align-items: center; padding: 14px 8px; border-radius: 18px; font-size: 14px; }
.instrumentos button.on { background: rgba(53,178,238,.16); box-shadow: var(--brillo-azul); }
.error { color: var(--rojo); font-size: 14px; min-height: 18px; font-weight: 700; }
#u-entrar { font-family: var(--titulos); font-weight: 900; min-height: 54px; font-size: 17px; }

/* ---------- crear canción ---------- */
.editor-cuerpo { flex: 1; display: grid; grid-template-columns: minmax(340px, 520px) 1fr; min-height: 0; }
.editor-cuerpo .izq { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-right: 1px solid var(--linea); background: var(--fondo2); min-height: 0; overflow-y: auto; padding-bottom: 46vh; }
.editor-cuerpo .der { display: flex; flex-direction: column; min-height: 0; }
.editor-cuerpo .der .hoja-zona { flex: 1; }
#ed-modo-texto { display: flex; flex-direction: column; gap: 8px; flex: 1; min-height: 60vh; }
#ed-texto { flex: 1; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 14px; line-height: 1.6; resize: none; min-height: 300px; background: #0a0d14; }
.ayuda { font-size: 12.5px; color: var(--texto2); line-height: 1.6; padding: 4px 2px; }
.ayuda b { color: var(--texto); }
.ayuda code { background: var(--panel2); color: var(--verde); padding: 1px 6px; border-radius: 5px; }
.ed-datos { display: flex; flex-direction: column; gap: 10px; background: var(--panel); border: 1px solid var(--linea); border-radius: 20px; padding: 14px; }
#ed-titulo { font-family: var(--titulos); font-weight: 900; font-size: 20px; background: transparent; border-color: transparent; padding: 6px 4px; min-height: 0; }
#ed-titulo:focus { border-color: var(--linea); }
#ed-autor { background: transparent; border-color: transparent; padding: 4px; min-height: 0; color: var(--texto2); }
.ed-fila { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.ed-campo { display: flex; flex-direction: column; gap: 6px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--texto2); }
.ed-campo select { min-height: 40px; }
.ed-campo select, .ed-campo .seg button, .ed-campo > span { text-transform: none; }
.ed-campo select, .ed-campo .seg button { font-size: 15px; letter-spacing: 0; }
.ed-campo > span { text-transform: uppercase; }
.ed-tempo { flex: 1; min-width: 140px; }
.ed-tempo b { color: var(--azul); font-size: 13px; letter-spacing: 0; }
.ed-tempo input { padding: 0; min-height: 40px; accent-color: var(--azul); background: transparent; border: 0; }
.ed-estilos { display: flex; flex-wrap: wrap; gap: 6px; }
.ed-estilos button { min-height: 34px; padding: 4px 12px; font-size: 13px; text-transform: none; letter-spacing: 0; }
.ed-sec { background: var(--panel); border: 1px solid var(--linea); border-radius: 20px; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.ed-sec-cab { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.ed-sec-nombre { font-family: var(--titulos); font-weight: 900; font-size: 14px; width: 130px; min-height: 36px; padding: 6px 12px; background: var(--rojo); border-color: transparent; color: #fff; border-radius: 999px; }
.ed-sec-cab select { min-height: 36px; padding: 4px 10px; font-size: 13px; }
.ed-sec-acc { margin-left: auto; display: flex; gap: 4px; }
.ed-sec-acc button { min-height: 34px; min-width: 34px; padding: 2px 8px; font-size: 14px; }
.ed-compases { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.ed-comp { position: relative; display: flex; min-height: 64px; padding: 0; border-radius: 14px; background: var(--fondo2); border: 1px solid var(--linea); overflow: hidden; }
.ed-comp.rep-ini small { left: 24px; }
.ed-comp small { position: absolute; left: 7px; top: 4px; font-size: 10px; color: var(--texto2); font-weight: 700; }
.ed-slot { flex: 1; display: grid; place-items: center; font-family: var(--titulos); font-weight: 900; font-size: 18px; padding: 14px 4px 6px; letter-spacing: -.02em; transition: background .12s, transform .12s; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ed-comp.partido .ed-slot { font-size: 14px; position: relative; }
.ed-comp.muy { grid-column: span 2; }
.ed-comp.muy .ed-slot { font-size: 14px; padding-left: 2px; padding-right: 2px; }
.ed-tiempos { position: absolute; bottom: 3px; left: 0; right: 0; text-align: center; font-style: normal; font-size: 8px; letter-spacing: 2px; color: var(--texto2); font-family: var(--fuente); }
.ed-comp { touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.ed-comp.partido .ed-slot + .ed-slot { border-left: 1px dashed var(--linea); }
.ed-slot.vacio { color: #4a5470; }
.ed-slot.sel { background: rgba(53,178,238,.22); box-shadow: inset 0 0 0 2px var(--azul); color: #fff; }
.ed-slot.recien { transform: scale(1.12); }
.ed-comp.rep-ini { padding-left: 20px; }
.ed-comp.rep-fin { padding-right: 20px; }
.ed-comp.rep-fin::after { content: attr(data-veces); position: absolute; right: 22px; top: 3px; font-size: 11px; font-weight: 900; color: var(--verde); font-family: var(--titulos); }
.rd { position: absolute; top: 9px; bottom: 9px; width: 16px; pointer-events: none; }
.rd.ini { left: 5px; } .rd.fin { right: 5px; }
.rd b { position: absolute; top: 0; bottom: 0; width: 4px; background: #eef2f8; border-radius: 1px; }
.rd s { position: absolute; top: 0; bottom: 0; width: 1.5px; background: #eef2f8; }
.rd u { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: #eef2f8; top: calc(50% - 8px); box-shadow: 0 11px 0 #eef2f8; }
.rd.ini b { left: 0; } .rd.ini s { left: 7px; } .rd.ini u { left: 11px; }
.rd.fin b { right: 0; } .rd.fin s { right: 7px; } .rd.fin u { right: 11px; }
.ed-menu { position: fixed; z-index: 70; display: flex; gap: 6px; padding: 6px; background: var(--panel2); border: 1px solid var(--linea); border-radius: 999px; box-shadow: 0 14px 40px rgba(0,0,0,.55); animation: aparece .15s ease-out; }
.ed-menu button { min-height: 42px; padding: 6px 16px; font-size: 15px; white-space: nowrap; background: rgba(255,79,75,.14); border-color: rgba(255,79,75,.45); }
@keyframes aparece { from { transform: scale(.85); opacity: 0; } }
.ed-comp.apretado { transform: scale(.96); box-shadow: 0 0 0 2px var(--rojo); }
.ed-comp { -webkit-touch-callout: none; }
.pk-rep { display: flex; flex-wrap: wrap; gap: 6px; }
.pk-rep button { min-height: 38px; padding: 4px 12px; font-size: 13px; }
.pk-rep button b { font-family: Georgia, serif; font-size: 17px; margin-right: 4px; }
.pk-rep button.on { background: rgba(163,217,74,.16); border-color: var(--verde); color: var(--verde); }
.ed-mas { place-items: center; display: grid; font-size: 22px; color: var(--texto2); border-style: dashed; }
.ed-sec-pie select { width: 100%; min-height: 40px; font-size: 13px; background: rgba(176,124,255,.12); border-color: rgba(176,124,255,.4); }
.ed-mas-sec { border-style: dashed; min-height: 52px; border-radius: 18px; }
/* selector de acordes (abajo) */
.ed-picker { position: absolute; left: 0; bottom: 0; width: min(520px, 100%); max-height: 46vh; overflow-y: auto; background: rgba(23,29,44,.98); border: 1px solid var(--linea); border-bottom: 0; border-radius: 22px 22px 0 0; padding: 12px 14px 14px; box-shadow: 0 -20px 60px rgba(0,0,0,.5); z-index: 20; display: flex; flex-direction: column; gap: 8px; }
.pk-cab { display: flex; align-items: center; gap: 8px; }
.pk-cab b { font-family: var(--titulos); font-size: 13px; flex: 1; }
.pk-nav { display: flex; gap: 4px; }
.pk-nav button { min-height: 34px; min-width: 38px; padding: 2px 10px; }
.pk-titulo { font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--texto2); }
.pk-diat { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.pk-diat button { display: flex; flex-direction: column; align-items: center; gap: 0; border-radius: 14px; min-height: 58px; padding: 6px 4px; border: 0; color: #0b0e15; }
.pk-diat button b { font-family: var(--titulos); font-weight: 900; font-size: 19px; letter-spacing: -.02em; }
.pk-diat button small { font-size: 11px; font-weight: 700; opacity: .7; }
.pk-diat .g0 { background: #35b2ee; } .pk-diat .g1 { background: #7fd0f5; } .pk-diat .g2 { background: #b8e47a; } .pk-diat .g3 { background: #a3d94a; }
.pk-diat .g4 { background: #ff8a6b; } .pk-diat .g5 { background: #ffb7a6; } .pk-diat .g6 { background: #c9b2ff; } .pk-diat .g7 { background: #ff4f4b; color: #fff; }
.pk-diat button.on { box-shadow: 0 0 0 3px #fff; }
.pk-raices, .pk-cal { display: flex; flex-wrap: wrap; gap: 5px; }
.pk-raices button, .pk-cal button { min-height: 36px; min-width: 42px; padding: 4px 10px; font-size: 14px; }
.pk-acc { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 4px; }
.pk-acc button { min-height: 40px; padding: 6px 12px; font-size: 13px; }
.pk-acc .prim { margin-left: auto; }
#ed-escuchar.sonando { background: linear-gradient(135deg, var(--rojo), #e03080); color: #fff; }

/* ---------- ventanas ---------- */
.capa { position: fixed; inset: 0; background: rgba(5, 7, 12, .7); display: grid; place-items: center; z-index: 50; padding: 16px; }
.ventana { background: var(--panel); border: 1px solid var(--linea); border-radius: 24px; padding: 22px; width: min(480px, 100%); max-height: 90vh; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.ventana h3 { margin: 0; font-family: var(--titulos); font-weight: 900; font-size: 20px; }
.ventana .botones { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.qr-grande { display: grid; place-items: center; background: #fff; border-radius: 18px; padding: 10px; }
.qr-grande svg, .qr-grande img { width: min(64vmin, 400px); height: auto; }
.mezcla-fila { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--linea); text-transform: none; letter-spacing: 0; }
.mezcla-fila span { flex: 1; font-weight: 700; }
.mezcla-fila input[type=checkbox] { width: 22px; height: 22px; min-height: 0; accent-color: var(--azul); }
.mezcla-fila input[type=range] { width: 130px; min-height: 0; accent-color: var(--azul); padding: 0; }
.aviso { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); background: var(--panel2); border: 1px solid var(--linea); color: var(--texto); padding: 12px 20px; border-radius: 16px; z-index: 60; font-size: 14px; font-weight: 700; max-width: 90vw; text-align: center; box-shadow: 0 12px 40px rgba(0,0,0,.4); }

.solo-movil { display: none; }
@media (max-width: 760px) {
  .solo-movil { display: inline-flex; align-items: center; gap: 4px; }
  #s-editor.ver-hoja #ed-ver { background: var(--azul); color: #04121c; }
  .lista-canciones { position: absolute; z-index: 10; top: 0; bottom: 0; left: 0; box-shadow: 8px 0 40px rgba(0,0,0,.5); }
  .editor-cuerpo { grid-template-columns: 1fr; grid-template-rows: 1fr; }
  .editor-cuerpo .der { display: none; }
  #s-editor.ver-hoja .editor-cuerpo .der { display: flex; }
  #s-editor.ver-hoja .editor-cuerpo .izq { display: none; }
  #s-editor .barra .titulo { display: none; }
  #s-editor .barra { flex-wrap: wrap; row-gap: 6px; }
  #ed-importar .largo { display: none; }
  #ed-importar .corto { display: inline; }
  .ed-slot { font-size: 16px; }
  #s-editor .barra .marca { display: none; }
  #s-editor .barra button { padding: 6px 12px; font-size: 13px; min-height: 38px; }
  .opciones { grid-template-columns: 1fr; gap: 10px; }
  .opcion { min-height: 0; display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; row-gap: 2px; align-items: center; padding: 14px 16px; border-radius: 18px; }
  .opcion .ic { grid-row: span 2; margin: 0; }
  .opcion b { font-size: 16px; }
  .opcion span { font-size: 13px; }
  #s-inicio { padding: 18px 16px; }
  .inicio-caja { gap: 12px; }
  .hero .logo { width: min(190px, 50vw); }
  .eq { height: 18px; }
  .tira .ac-actual { font-size: 34px; min-width: 70px; }
  .transporte { gap: 6px; padding: 8px; }
  .transporte .grupo label { display: none; }
  #btn-play { min-width: 104px; }
  .codigo b { font-size: 20px; }
  .hoja { padding: 0 8px 40vh; }
  .hoja .papel { border-radius: 14px; }
  #s-musico .barra { gap: 6px; padding: 6px 8px; }
  #s-musico .barra .marca { display: none; }
  #s-musico .barra button, #s-musico .barra select, #s-musico .seg button { min-height: 36px; padding: 4px 10px; font-size: 14px; }
  #s-musico .barra .titulo { flex-basis: calc(100% - 60px); font-size: 14px; }
}

/* =====================================================================
   LOOK 2026 — "sticker pack": uva de medianoche, colores del logo subidos,
   contornos gruesos y sombras sólidas. La partitura sigue en papel blanco.
   ===================================================================== */
:root {
  --azul: #3cc4ff; --azul-o: #1495d8; --rojo: #ff4d6d; --verde: #b4ee4c; --amarillo: #ffd23f; --lila: #b98cff;
  --fondo: #130d27; --fondo2: #1b1436; --panel: #221a45; --panel2: #2c2257; --linea: #43357d; --texto: #f6f2ff; --texto2: #b3a8d6;
  --tinta-sticker: #0c0720;
  --sombra-compas: rgba(255, 210, 63, .38); --marca-compas: rgba(60, 196, 255, .22);
  --r: 16px;
  --duro: 3px 3px 0 var(--tinta-sticker);
}
html, body { background: var(--fondo); }
.pantalla { background: var(--fondo); }

/* botones: contorno grueso, sombra sólida, se "aplastan" al tocar */
button { border: 2px solid var(--linea); background: var(--panel2); border-radius: 14px; transition: transform .08s, box-shadow .08s, background .15s, border-color .15s; }
button:hover { background: #352a68; border-color: #5a4aa3; }
button:active { transform: translate(2px, 2px); }
button.prim { background: var(--amarillo); color: var(--tinta-sticker); border: 2px solid var(--tinta-sticker); box-shadow: 4px 4px 0 var(--rojo); }
button.prim:hover { filter: none; background: #ffdc66; }
button.prim:active { box-shadow: 1px 1px 0 var(--rojo); }
button.on { background: var(--azul); border-color: var(--tinta-sticker); color: var(--tinta-sticker); box-shadow: var(--duro); }
select { border: 2px solid var(--linea); border-radius: 14px; background: var(--panel2); }
input, textarea { border: 2px solid var(--linea); background: var(--fondo2); }
input::placeholder { color: #6e62a0; }
input:focus, select:focus, textarea:focus, button:focus-visible { outline: 3px solid var(--amarillo); outline-offset: 2px; }

/* ---------- inicio: la hoja de stickers ---------- */
#s-inicio {
  background:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,.09) 1.2px, transparent 1.6px) 0 0 / 22px 22px,
    radial-gradient(700px 420px at 10% 0%, rgba(60,196,255,.30), transparent 65%),
    radial-gradient(600px 420px at 100% 30%, rgba(255,77,109,.28), transparent 65%),
    radial-gradient(700px 420px at 40% 110%, rgba(185,140,255,.30), transparent 65%),
    #24175a;
}
.hero { gap: 10px; }
.hero .logo { filter: drop-shadow(6px 6px 0 var(--tinta-sticker)); animation: rebota 3.2s ease-in-out infinite; }
@keyframes rebota { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(3deg) translateY(-6px); } }
.by { text-transform: none; letter-spacing: 0; font-size: 14px; font-weight: 700; color: var(--tinta-sticker); background: var(--verde); border: 2px solid var(--tinta-sticker); border-radius: 999px; padding: 4px 14px; box-shadow: var(--duro); transform: rotate(-3deg); }
.eq { gap: 6px; height: 30px; }
.eq i { width: 8px; border-radius: 4px; border: 2px solid var(--tinta-sticker); }
.eq i:nth-child(4) { background: var(--amarillo); } .eq i:nth-child(5) { background: var(--lila); }
@keyframes eq { 0%, 100% { height: 8px; } 50% { height: 30px; } }

.opciones { gap: 18px; margin-top: 14px; }
.opcion { border: 3px solid var(--tinta-sticker); border-radius: 26px; min-height: 150px; padding: 20px 20px 22px; box-shadow: 6px 6px 0 var(--tinta-sticker); color: var(--tinta-sticker); transition: transform .15s cubic-bezier(.3,1.6,.5,1), box-shadow .15s; }
.opcion::after { display: none; }
.opcion.dir { background: var(--azul); transform: rotate(-1.5deg); }
.opcion.uni { background: var(--rojo); transform: rotate(1.2deg); color: #fff; }
.opcion.pra { background: var(--verde); transform: rotate(1deg); }
.opcion.edi { background: var(--lila); transform: rotate(-1deg); }
.opcion:hover { transform: rotate(0) translate(-2px, -3px); box-shadow: 9px 9px 0 var(--tinta-sticker); border-color: var(--tinta-sticker); }
.opcion.dir:hover { background: var(--azul); } .opcion.uni:hover { background: var(--rojo); } .opcion.pra:hover { background: var(--verde); } .opcion.edi:hover { background: var(--lila); }
.opcion:active { transform: translate(4px, 4px); box-shadow: 2px 2px 0 var(--tinta-sticker); }
.opcion b { font-size: 20px; font-weight: 900; letter-spacing: -.02em; line-height: 1.1; }
.opcion span { color: inherit; opacity: .8; font-size: 14.5px; }
.opcion .ic, .opcion.dir .ic, .opcion.uni .ic, .opcion.pra .ic, .opcion.edi .ic { background: #fff; color: var(--tinta-sticker); border: 2px solid var(--tinta-sticker); border-radius: 50%; width: 44px; height: 44px; font-size: 18px; }
.pie-inicio { color: var(--texto); }
.estado-red { color: var(--texto); background: rgba(12,7,32,.45); padding: 6px 12px; border-radius: 999px; }
.idioma button { border-radius: 999px; }

/* ---------- barras ---------- */
.barra { background: var(--fondo2); border-bottom: 2px solid var(--linea); }
.barra .marca { filter: drop-shadow(2px 2px 0 var(--tinta-sticker)); }
.barra .titulo { font-weight: 900; }
.codigo { background: var(--amarillo); border: 2px solid var(--tinta-sticker); box-shadow: 3px 3px 0 var(--rojo); color: var(--tinta-sticker); border-radius: 16px; }
.codigo b { color: var(--tinta-sticker); }
.codigo .chico { color: var(--tinta-sticker); text-transform: none; letter-spacing: 0; font-size: 12px; }
.codigo button { background: var(--tinta-sticker); color: var(--amarillo); border-color: var(--tinta-sticker); border-radius: 10px; }
.pill { border-radius: 999px; }
.transporte { background: var(--fondo2); border-top: 2px solid var(--linea); }
.transporte .grupo { border: 2px solid var(--linea); border-radius: 14px; }
.transporte .grupo button { border: 0; border-radius: 10px; }
.transporte .grupo label { text-transform: none; letter-spacing: 0; font-size: 12px; }
#btn-play, #mu-play { border-radius: 16px; letter-spacing: 0; }
#btn-play.sonando, #mu-play.sonando, #ed-escuchar.sonando { background: var(--rojo); color: #fff; box-shadow: 4px 4px 0 var(--amarillo); border-color: var(--tinta-sticker); }
#btn-loop.on, #mu-loop.on { background: var(--verde); border-color: var(--tinta-sticker); color: var(--tinta-sticker); box-shadow: var(--duro); }

/* ---------- sala ---------- */
.lista-canciones { background: var(--fondo2); border-right: 2px solid var(--linea); }
.lista-canciones .cab { border-bottom: 2px solid var(--linea); }
.cancion { border: 2px solid transparent; border-radius: 16px; }
.cancion.sel { background: var(--azul); color: var(--tinta-sticker); border-color: var(--tinta-sticker); box-shadow: var(--duro); }
.cancion.sel small { color: var(--tinta-sticker); opacity: .75; }
.cancion.sel .quitar { color: var(--tinta-sticker); }
.cancion .tipo { border-radius: 999px; letter-spacing: .04em; }
.cancion .tipo.xml { background: var(--verde); color: var(--tinta-sticker); }
.grupo-lista { text-transform: none; letter-spacing: 0; font-size: 13px; color: var(--lila); font-family: var(--titulos); }
.seg { border: 2px solid var(--linea); border-radius: 14px; }
.seg button { border-radius: 10px; }
.seg button.on { background: var(--azul); color: var(--tinta-sticker); box-shadow: none; }
.hoja .papel { border: 3px solid var(--tinta-sticker); border-radius: 22px; box-shadow: 8px 8px 0 var(--tinta-sticker); }
.hoja .papel::before { height: 8px; background: linear-gradient(90deg, var(--azul) 0 25%, var(--verde) 25% 50%, var(--amarillo) 50% 75%, var(--rojo) 75%); }
.pp-seccion rect { fill: var(--rojo); }
.pp-sombra.loop { stroke: #2f9e3a; }
.director .pp-sombra:hover { fill: rgba(255, 210, 63, .16); }

/* cuenta 1 2 3 4 */
.cuenta span { color: var(--amarillo); -webkit-text-stroke: 8px var(--tinta-sticker); text-shadow: 12px 12px 0 var(--tinta-sticker); }
.cuenta span.uno { color: var(--rojo); text-shadow: 12px 12px 0 var(--tinta-sticker); }

/* ---------- músico ---------- */
.tira { background: var(--panel); border-bottom: 2px solid var(--linea); }
.tira .ac-actual { color: var(--amarillo); text-shadow: 3px 3px 0 var(--tinta-sticker); }
.tira .ac-sig .et { text-transform: none; letter-spacing: 0; font-size: 12px; }
.pp-diag-p { fill: var(--amarillo); }
.espera { background: var(--panel2); border: 2px solid var(--tinta-sticker); box-shadow: var(--duro); }
.lider-tag, .musico-lider { color: var(--amarillo); }

/* ---------- formularios ---------- */
.form-caja label, .ed-campo, .ed-campo > span, .pk-titulo { text-transform: none; letter-spacing: 0; font-size: 13px; }
#u-codigo { background: var(--amarillo); color: var(--tinta-sticker); border: 3px solid var(--tinta-sticker); box-shadow: 5px 5px 0 var(--rojo); border-radius: 18px; }
#u-codigo::placeholder { color: rgba(12,7,32,.3); }
.instrumentos button { border-radius: 18px; }
.instrumentos button.on { background: var(--azul); color: var(--tinta-sticker); border-color: var(--tinta-sticker); box-shadow: 4px 4px 0 var(--tinta-sticker); }
.error { color: #ff7b93; }

/* ---------- editor ---------- */
.editor-cuerpo .izq { border-right: 2px solid var(--linea); }
.ed-datos, .ed-sec { border: 2px solid var(--linea); border-radius: 22px; }
.ed-sec-nombre { border: 2px solid var(--tinta-sticker); box-shadow: var(--duro); }
.ed-comp { border: 2px solid var(--linea); border-radius: 14px; }
.ed-slot.sel { background: var(--amarillo); color: var(--tinta-sticker); box-shadow: inset 0 0 0 2px var(--tinta-sticker); }
.ed-slot.vacio { color: #5c4f92; }
.ed-tempo b { color: var(--amarillo); }
.ed-tempo input { accent-color: var(--amarillo); }
.ed-menu, .ed-picker { background: var(--panel2); border: 2px solid var(--tinta-sticker); }
.ed-picker { box-shadow: 0 -8px 0 rgba(12,7,32,.6); }
.pk-diat button { border: 2px solid var(--tinta-sticker); }
.pk-diat .g0 { background: var(--azul); } .pk-diat .g3 { background: var(--verde); } .pk-diat .g6 { background: var(--lila); } .pk-diat .g7 { background: var(--rojo); }
.pk-diat button.on { box-shadow: 3px 3px 0 var(--amarillo); transform: translate(-1px, -1px); }
.ayuda code { color: var(--amarillo); }

/* ---------- ventanas ---------- */
.capa { background: rgba(12, 7, 32, .75); }
.ventana { background: var(--panel); border: 3px solid var(--tinta-sticker); border-radius: 26px; box-shadow: 8px 8px 0 var(--tinta-sticker); }
.qr-grande { border: 3px solid var(--tinta-sticker); }
.mezcla-fila input[type=checkbox], .mezcla-fila input[type=range] { accent-color: var(--amarillo); }
.aviso { background: var(--amarillo); color: var(--tinta-sticker); border: 2px solid var(--tinta-sticker); box-shadow: 4px 4px 0 var(--rojo); }

@media (max-width: 760px) {
  .opciones { gap: 14px; }
  .opcion { min-height: 0; border-radius: 22px; padding: 14px 16px; box-shadow: 5px 5px 0 var(--tinta-sticker); }
  .opcion b { font-size: 17px; }
  .opcion .ic, .opcion.dir .ic, .opcion.uni .ic, .opcion.pra .ic, .opcion.edi .ic { width: 42px; height: 42px; }
  .hoja .papel { border-radius: 16px; box-shadow: 5px 5px 0 var(--tinta-sticker); }
  #s-editor.ver-hoja #ed-ver { background: var(--amarillo); color: var(--tinta-sticker); }
}
@media (prefers-reduced-motion: reduce) {
  .hero .logo, .eq i { animation: none; }
  .opcion { transition: none; }
}

/* ---------- comodidad (revisión de uso) ---------- */
/* "Esperando al director" ya no tapa el título de la partitura */
.espera { position: static; transform: none; align-self: center; margin: 10px auto 0; flex: none; }
/* punto de conexión del músico */
.red-punto { width: 12px; height: 12px; border-radius: 50%; background: var(--verde); border: 2px solid var(--tinta-sticker); flex: none; }
.red-punto.mal { background: var(--rojo); animation: late 1s ease-in-out infinite; }
/* código de la sala: los puntitos se ven vacíos, no como un código ya escrito */
#u-codigo::placeholder { color: rgba(12,7,32,.28); letter-spacing: .2em; }
.cancion { min-height: 56px; }
/* dedos: nada que se toque por debajo de 44 px en pantallas táctiles */
@media (pointer: coarse) {
  .transporte .grupo button { min-width: 46px; min-height: 46px; font-size: 20px; }
  .transporte button, .barra button, .barra select, .hoja-opciones button, .hoja-opciones select { min-height: 44px; }
  .seg button { min-height: 40px; }
  #btn-idioma { min-height: 44px; padding: 8px 18px; }
}
@media (max-width: 760px) {
  /* director en el celular: menos filas arriba, más partitura */
  #s-sala .barra { gap: 8px; padding: 8px 10px; }
  #s-sala .barra .marca { display: none; }
  #s-sala .codigo { padding: 4px 6px 4px 10px; gap: 6px; }
  #s-sala .codigo .chico { display: none; }
  #s-sala .pill, #btn-lista { padding: 6px 12px; }
  .hoja-opciones { gap: 6px; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
  .hoja-opciones select { max-width: 150px; }
  #compas-ind { font-size: 12px; }
}
@media (max-width: 760px) {
  .hoja-opciones select { max-width: 112px; padding-left: 10px; padding-right: 6px; }
  .hoja-opciones { padding: 8px 10px; }
  .hoja-opciones .seg button { padding: 4px 10px; }
  #zoom-menos, #zoom-mas, #mu-zoom-menos, #mu-zoom-mas { min-width: 40px; padding: 4px 8px; }
}
@media (pointer: coarse) and (max-width: 760px) {
  #s-musico .barra button, #s-musico .barra select, #s-musico .seg button { min-height: 42px; }
}

/* ---------- formas de acordes (guitarra y piano) junto al acorde ---------- */
.tira .diag-zona { gap: 8px; align-items: stretch; }
.forma { display: flex; flex-direction: column; align-items: center; gap: 2px; background: #fff; border: 2px solid var(--tinta-sticker); border-radius: 14px; padding: 4px 8px 6px; box-shadow: 3px 3px 0 var(--tinta-sticker); color: var(--tinta-sticker); }
.forma-et { font-size: 11px; font-weight: 700; color: #4b4470; white-space: nowrap; }
.forma .pp-diag-l { stroke: #3a3358; }
.forma .pp-diag-nom, .forma .pp-diag-fr { fill: var(--tinta-sticker); }
.forma .pp-diag-o { stroke: var(--tinta-sticker); }
.forma .pp-diag-xo { fill: #8a83a8; }
.forma .pp-diag-p { fill: var(--rojo); }
.forma-raiz { justify-content: center; min-width: 64px; }
.forma-raiz b { font-family: var(--titulos); font-size: 30px; line-height: 1; }
.pp-t-b { fill: #fff; stroke: #3a3358; stroke-width: 1; }
.pp-t-lit { fill: #fff6cc; stroke: #3a3358; stroke-width: 1; }
.pp-t-n { fill: #1b1533; }
.pp-k-on { fill: var(--azul); stroke: var(--tinta-sticker); stroke-width: 1.5; }
.pp-k-raiz { fill: var(--rojo); stroke: var(--tinta-sticker); stroke-width: 1.5; }
.pp-k-nom { fill: var(--tinta-sticker); font-weight: 900; text-anchor: middle; font-family: var(--titulos); }
.pp-k-raiz + .pp-k-nom { fill: #fff; }
#sa-tira { flex: none; }
@media (max-width: 760px) {
  .tira { gap: 10px; padding: 6px 10px; flex-wrap: nowrap; overflow-x: auto; }
  .tira .ac-actual { font-size: 30px; min-width: 52px; }
  .forma { padding: 3px 5px 4px; border-radius: 12px; }
  .forma-et { font-size: 10px; }
  .forma .pp-diag { width: 50px; height: auto; }
  .forma .pp-tecl { width: 150px; height: auto; }
}
/* formas más grandes y pegadas al acorde */
.tira .diag-zona { margin-left: 8px; }
.tira .ac-actual { min-width: 0; }
.forma .pp-diag { height: 104px; width: auto; }
.forma .pp-tecl { height: 74px; width: auto; margin-top: auto; margin-bottom: auto; }
@media (max-width: 760px) {
  .tira .diag-zona { margin-left: 2px; gap: 6px; }
  .forma .pp-diag { height: 84px; width: auto; }
  .forma .pp-tecl { height: 60px; width: auto; }
  .tira .ac-sig { font-size: 16px; }
}
.tira > .ac-actual, .tira > .ac-sig, .forma { flex-shrink: 0; }
.espera.alerta { background: var(--rojo); color: #fff; }
.espera.alerta::before { background: #fff; box-shadow: none; }
/* la partitura nunca se sale de su espacio ni tapa los botones de abajo */
.hoja-zona { overflow: hidden; }
.hoja-zona > .hoja { flex: 1 1 0; min-height: 0; }
.hoja-zona > .tira, .hoja-zona > .espera { flex: none; }
.transporte, .barra { position: relative; z-index: 6; }

/* ---------- acordes de la canción, arriba de la partitura ---------- */
.leyenda { margin: 0 12px 6px; padding: 8px 10px 10px; border: 2px dashed #cfc8e8; border-radius: 16px; background: #faf8ff; }
.ley-et { display: block; font-size: 13px; font-weight: 700; color: #4b4470; margin-bottom: 6px; }
.ley-lista { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: flex-end; }
.ley-ac { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.ley-nom { font-family: var(--titulos); font-weight: 900; font-size: 15px; color: var(--tinta-sticker); }
.leyenda .pp-diag-l { stroke: #3a3358; }
.leyenda .pp-diag-nom, .leyenda .pp-diag-fr { fill: var(--tinta-sticker); }
.leyenda .pp-diag-o { stroke: var(--tinta-sticker); }
.leyenda .pp-diag-xo { fill: #8a83a8; }
.leyenda .pp-diag-p { fill: var(--rojo); }
/* ritmo del acompañamiento (director y práctica) */
.ritmo { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--texto2); flex: none; }
.ritmo select { max-width: 130px; }
@media (max-width: 760px) { .ritmo > span { display: none; } .ritmo select { max-width: 104px; } }
.espera { white-space: normal; text-align: center; max-width: 92%; }
@media (max-width: 760px) { .leyenda { margin: 0 4px 6px; padding: 6px 8px 8px; } .leyenda .pp-tecl { height: 44px; width: auto; } .leyenda .pp-diag { height: 72px; width: auto; } }
/* formas dentro del compás (en el papel blanco) */
.pp-svg .pp-diag-l, .papel .pp-diag-l { stroke: #3a3358; }
.papel .pp-diag-o { stroke: var(--tinta-sticker); }
.papel .pp-diag-xo { fill: #8a83a8; }
.papel .pp-diag-p { fill: var(--rojo); }
.papel .pp-diag-fr { fill: var(--tinta-sticker); }
.pp-bajo-c, .pp-bajo-fr { fill: #6b6490; font-weight: 700; text-anchor: middle; font-family: var(--fuente); }
.pp-k-nom.blanco { fill: #fff; }
.pp-bajo-al { stroke-dasharray: 2 1.5; }
.forma .pp-bajo { height: 80px; width: auto; margin: auto 0; }
@media (max-width: 760px) { .forma .pp-bajo { height: 64px; } }
/* barra de acordes delgada: las formas ya están en cada compás */
.tira { min-height: 0; padding-top: 4px; padding-bottom: 4px; }
.tira .ac-actual { font-size: 34px; line-height: 1.1; }
.tira .diag-zona:empty { display: none; }
@media (max-width: 760px) { .tira .ac-actual { font-size: 26px; } }
/* bajo: la nota que suena se enciende */
.pp-bn circle { transition: r .08s; }
.pp-bn:not(.pp-dn).toca circle { fill: var(--amarillo); stroke: var(--tinta-sticker); stroke-width: 2.4; r: 8.5px; }
.pp-bn:not(.pp-dn).toca text { fill: var(--tinta-sticker); }
.pp-bn:not(.pp-dn).toca circle { r: 10px; stroke-width: 3; filter: drop-shadow(0 0 4px rgba(255, 210, 63, .9)); }
/* improvisación */
.pp-k-paso { fill: #fff; stroke: var(--tinta-sticker); stroke-width: 1.2; }
.pp-cinta { stroke: #ff9fb3; stroke-width: 1.4; stroke-dasharray: 3 2; }
.turno { font-family: var(--titulos); font-weight: 900; font-size: 15px; padding: 6px 14px; border-radius: 999px; background: var(--panel2); border: 2px solid var(--linea); color: var(--texto); white-space: nowrap; }
.turno.tuyo { background: var(--amarillo); color: var(--tinta-sticker); border-color: var(--tinta-sticker); box-shadow: 3px 3px 0 var(--rojo); animation: late 1s ease-in-out infinite; }
.turno.prep { background: var(--lila); color: var(--tinta-sticker); border-color: var(--tinta-sticker); }
#sala-solos { max-width: 170px; }
@media (max-width: 760px) { .turno { font-size: 12px; padding: 4px 10px; white-space: normal; } #sala-solos { max-width: 110px; } }
/* nombres de acordes: grandes, en azul fuerte y con borde blanco para leerse sobre las líneas */
.pp-acorde { fill: #1a5fd6; paint-order: stroke fill; stroke: #fff; stroke-width: 3.5px; stroke-linejoin: round; }
.hoja-opciones > * { flex-shrink: 0; }
/* tocando juntos: el músico no suena (no hay botón de clic) y el director no lleva banda de fondo */
#mu-clic { display: none !important; }
#s-sala.es-director #btn-mezcla { display: none; }
/* entra la voz */
.pp-voz rect { fill: #8b3dff; }
.pp-voz text { fill: #fff; font-family: var(--titulos); font-weight: 900; text-anchor: middle; }
.turno.voz { background: #8b3dff; color: #fff; border-color: var(--tinta-sticker); box-shadow: 3px 3px 0 var(--amarillo); }
.turno.voz.prep { background: var(--panel2); color: #d9c4ff; box-shadow: none; }
/* buscador y categorías de canciones */
.buscar { width: 100%; margin-top: 8px; padding: 10px 14px; border-radius: 999px; font-size: 15px; }
.cats { display: flex; gap: 6px; overflow-x: auto; padding: 8px 0 2px; scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }
.cat { flex: none; border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.cat small { opacity: .65; font-weight: 500; margin-left: 2px; }
.cat.on { background: var(--amarillo); color: var(--tinta-sticker); border-color: var(--tinta-sticker); box-shadow: 2px 2px 0 var(--tinta-sticker); }
.vacia-lista { padding: 24px 16px; color: var(--texto2); text-align: center; }
/* editor: ¿se canta en esta parte? */
.ed-voz { border-radius: 999px; padding: 6px 12px; font-size: 13px; white-space: nowrap; opacity: .75; }
.ed-voz.on { background: #8b3dff; color: #fff; border-color: var(--tinta-sticker); opacity: 1; box-shadow: 2px 2px 0 var(--tinta-sticker); }

/* ---------- impresión ---------- */
#impresion { display: none; }
.imp-cab { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; border-bottom: 2px solid #222; padding-bottom: 8px; margin-bottom: 10px; font-family: var(--fuente); color: #111; }
.imp-cab h1 { margin: 0; font-family: var(--titulos); font-size: 24px; color: #111; }
.imp-parte { text-align: right; font-size: 13px; }
.imp-hoja { display: block; }
.imp-sistema { display: block; width: 100%; height: auto; break-inside: avoid; page-break-inside: avoid; margin-bottom: 4px; }
.imp-sistema .pp-sombra { fill: none !important; stroke: none !important; }
.imp-pie { margin-top: 14px; font-size: 10px; color: #777; text-align: center; font-family: var(--fuente); }
@media print {
  @page { size: auto; margin: 12mm; }
  body.imprimiendo { background: #fff !important; }
  body.imprimiendo > *:not(#impresion) { display: none !important; }
  body.imprimiendo #impresion { display: block !important; color: #111; }
  .imp-sistema .pp-acorde { stroke: none; }
}
.btn-imprimir { flex: none; }
@media print { html, body, html body.imprimiendo { background: #fff !important; } }
html:has(body.archivo) { background: #fff !important; }
/* impresión: mismos colores que en el papel de la pantalla */
#impresion .pp-diag-l { stroke: #3a3358; }
#impresion .pp-diag-p { fill: var(--rojo); }
#impresion .pp-diag-o { stroke: #111; }
#impresion .pp-diag-xo { fill: #8a83a8; }
#impresion .pp-diag-nom, #impresion .pp-diag-fr { fill: #111; }
#impresion .pp-acorde { fill: #1a5fd6; }

/* transpositor de tonalidad */
.transporte .grupo-tono select { min-height: 38px; padding: 4px 10px; border-radius: 10px; border: 0; background: var(--panel2); color: var(--texto); font-weight: 800; max-width: 46vw; }
.grupo-tono select:disabled { opacity: .55; }
#transp-v.oculto { display: none; }

/* categorías a la vista: todas, en varias filas, con su ícono */
.cats-ayuda { font-size: 12px; font-weight: 700; color: var(--texto2); margin: 10px 2px 0; }
.cats { flex-wrap: wrap; overflow: visible; gap: 6px; padding-top: 6px; }
.cat { display: inline-flex; align-items: center; gap: 5px; padding: 6px 11px; }
.cat .cat-i { font-size: 15px; line-height: 1; }
.vacia-lista small { display: block; margin-top: 6px; opacity: .8; }

/* hoja de la voz: letra grande con los acordes encima */
.pp-letra { fill: #1d1a2b; font-family: 'Space Grotesk', system-ui, sans-serif; font-weight: 700; }
.pp-letra-div { stroke: #c9c4dc; stroke-width: 1.2; }
.pp-letra-nota { fill: #7b7596; font-family: 'Space Grotesk', system-ui, sans-serif; font-style: italic; }
.ed-letra { display: block; width: calc(100% - 4px); margin: 8px 2px 0; resize: vertical; font: inherit; font-size: 14px; line-height: 1.45; padding: 8px 12px; border-radius: 12px; background: rgba(255,255,255,.04); color: var(--texto); border: 1px dashed var(--linea); }
.ed-letra:focus { border-style: solid; outline: none; border-color: var(--azul, #4cc9f0); }

/* botón de versión fácil */
.btn-facil { min-height: 40px; padding: 4px 12px; border-radius: 999px; font-weight: 800; white-space: nowrap; }
.btn-facil.on { background: var(--amarillo); color: var(--tinta-sticker); border-color: var(--tinta-sticker); box-shadow: 2px 2px 0 var(--tinta-sticker); }
.btn-facil.oculto { display: none; }
.btn-facil.on.no { background: transparent; color: var(--amarillo); border-style: dashed; box-shadow: none; }

/* digitaciones (flauta, saxofón, violín): llave tapada = llena; se ilumina la que toca ahora */
.pp-dn-fondo { fill: #fff; stroke: #d9d4ea; stroke-width: 1; }
.pp-dn-on { fill: #1d1a2b; }
.pp-dn-off { fill: #fff; stroke: #1d1a2b; stroke-width: 1.1; }
.pp-dn-al { fill: #fff; stroke: var(--verde, #2bb673); stroke-width: 1.8; }
.pp-dn-nom { fill: #4a4466; text-anchor: middle; font-family: 'Space Grotesk', system-ui, sans-serif; font-weight: 700; }
.pp-dn-oct { fill: #e5484d; font-family: 'Space Grotesk', system-ui, sans-serif; font-weight: 800; }
.pp-dn.toca .pp-dn-fondo { fill: var(--amarillo); stroke: var(--tinta-sticker); stroke-width: 2; }
#impresion .pp-dn-fondo { fill: #fff; }
#sala-escuchar { min-height: 40px; padding: 4px 10px; border-radius: 12px; border: 0; background: var(--panel2); color: var(--texto); font: inherit; font-weight: 800; max-width: 52vw; }

/* tablatura */
.pp-tab-l { stroke: #6b6585; stroke-width: 0.9; }
.pp-tab-b { stroke: #1d1a2b; stroke-width: 1.4; }
.pp-tab-clave { fill: #1d1a2b; font-family: 'Unbounded', system-ui, sans-serif; font-weight: 900; }
.pp-tab-fondo { fill: #fff; }
.pp-tab-n { fill: #1d1a2b; text-anchor: middle; font-family: 'Space Grotesk', system-ui, sans-serif; font-weight: 800; }
.pp-tab-r { stroke: #1d1a2b; stroke-width: 1.3; }
.opcion.xml { background: var(--amarillo); transform: rotate(-0.6deg); }
.opcion.xml::after { background: var(--amarillo); }
.opcion.xml .ic { background: #fff; }
#ed-importar .corto { display: none; }
@media (max-width: 760px) { #ed-importar .corto { display: inline; } #ed-importar .largo { display: none; } }

/* plantilla de impresión: Play Presto by Carreño Foundation */
.imp-banda { display: flex; height: 6px; margin-bottom: 10px; }
.imp-banda i { flex: 1; } .imp-banda i:nth-child(1) { background: #3a9fd6; } .imp-banda i:nth-child(2) { background: #8fb83f; } .imp-banda i:nth-child(3) { background: #ffd23f; } .imp-banda i:nth-child(4) { background: #d63a3a; }
.imp-cab { align-items: center; }
.imp-logo { height: 58px; width: auto; flex: none; }
.imp-tit { flex: 1; }
.imp-pie b { color: #333; }
.imp-pie { border-top: 1px solid #ccc; padding-top: 6px; font-size: 11px; }
.imp-marca { font-size: 10.5px; color: #555; margin-top: 2px; letter-spacing: .02em; }
/* canciones propias: menú al dejar el dedo apretado */
.cancion[data-mia] { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
#renombrar-txt { width: 100%; box-sizing: border-box; font: inherit; font-size: 17px; font-weight: 700; padding: 10px 12px; border-radius: 12px; border: 2px solid var(--linea); background: var(--panel2); color: var(--texto); margin: 6px 0 4px; }

/* barra de lectura */
.pp-cursor { stroke: #ff3d6e; stroke-width: 3; stroke-linecap: round; filter: drop-shadow(0 0 3px rgba(255, 61, 110, .55)); pointer-events: none; }
.pp-cursor.oculto { display: none; }
.btn-cursor { min-height: 40px; padding: 4px 12px; border-radius: 999px; font-weight: 800; white-space: nowrap; }
.btn-cursor.on { background: #ff3d6e; color: #fff; border-color: var(--tinta-sticker); box-shadow: 2px 2px 0 var(--tinta-sticker); }
#impresion .pp-cursor { display: none; }
/* botón de notación musical: un pentagrama con notas */
.seg .vi-pent { display: inline-flex; align-items: center; justify-content: center; padding-left: 12px; padding-right: 12px; }
.seg .vi-pent .ic-pent { width: 30px; height: 20px; display: block; }

/* ===================== pantallas chicas: más partitura ===================== */
.btn-mas, .btn-enfoque { display: none; }
.flota-enfoque { display: none; }
@media (max-width: 760px), (max-height: 520px) {
  .btn-mas, .btn-enfoque { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 4px 12px; border-radius: 12px; font-weight: 800; }
  .btn-mas[aria-expanded="true"] { background: var(--amarillo); color: var(--tinta-sticker); }
  /* opciones plegadas: solo la parte, ⚙️ y ⛶ */
  .hoja-opciones:not(.abierta) > .plegable,
  #s-sala .transporte:not(.abierto) > .plegable,
  #s-musico .barra:not(.abierta) > .plegable { display: none !important; }
  .hoja-opciones { padding: 6px 10px; gap: 6px; flex-wrap: wrap; }
  .hoja-opciones #sala-parte { flex: 1; min-width: 0; }
  #s-sala .transporte, #s-musico .transporte { padding: 6px 10px; gap: 6px; }
  #s-sala .transporte #btn-play { min-width: 110px; }
  #s-sala .transporte .compas-ind { flex: 1; font-size: 13px; }
  /* cabecera más baja */
  .pantalla > .barra { min-height: 0; padding: 6px 10px; gap: 8px; }
  .pantalla > .barra .marca { display: none; }
  .pantalla > .barra .titulo { font-size: 16px; line-height: 1.1; min-width: 0; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .pantalla > .barra .titulo small { font-size: 11px; }
  #s-musico .barra #mu-parte { max-width: 42vw; }
  /* tira de acordes más delgada */
  .tira { min-height: 0 !important; padding-top: 2px !important; padding-bottom: 2px !important; gap: 10px; }
  .tira .ac-actual { font-size: 30px; }
}
/* teléfono de lado: todavía más espacio para la partitura */
@media (max-height: 520px) and (orientation: landscape) {
  .pantalla > .barra .titulo small, .tira .diag-zona { display: none; }
  .tira .ac-actual { font-size: 24px; }
  .hoja-opciones, #s-sala .transporte, .pantalla > .barra { padding-top: 3px; padding-bottom: 3px; }
  .btn-mas, .btn-enfoque, #s-sala .transporte button, .hoja-opciones select { min-height: 34px; }
}
/* «solo la partitura»: se esconde todo menos la hoja y unos botones flotantes */
body.enfoque .pantalla.activa > .barra,
body.enfoque .pantalla.activa .hoja-opciones,
body.enfoque .pantalla.activa .tira,
body.enfoque .pantalla.activa > .transporte { display: none !important; }
body.enfoque .flota-enfoque { display: flex; position: fixed; right: 10px; bottom: 10px; z-index: 50; gap: 8px; align-items: center; background: rgba(18,23,37,.88); border: 2px solid var(--linea); border-radius: 999px; padding: 6px 8px 6px 14px; box-shadow: 0 6px 20px rgba(0,0,0,.35); }
body.enfoque .flota-enfoque #enf-compas { color: var(--texto2); font-size: 12px; font-weight: 700; }
body.enfoque .flota-enfoque button { min-width: 46px; min-height: 46px; border-radius: 999px; font-size: 18px; font-weight: 900; }
body.enfoque .flota-enfoque .oculto { display: none; }

/* batería: cuadrícula de golpes */
.pp-bat-et { font-family: 'Space Grotesk', system-ui, sans-serif; font-weight: 800; }
.pp-bat-cuenta { fill: #1d1a2b; text-anchor: middle; font-family: 'Space Grotesk', system-ui, sans-serif; font-weight: 800; }
.pp-bat-cuenta.y { fill: #8a84a3; font-weight: 600; }
.pp-bat-vacio { fill: #d4cfe4; }
.pp-bat-luz { fill: transparent; }
.pp-bat-col.toca .pp-bat-luz { fill: #ffe9a6; stroke: #1d1a2b; stroke-width: 1; }
/* en el teléfono, al abrir Opciones se ve qué es cada número */
@media (max-width: 760px), (max-height: 520px) {
  #s-sala .transporte.abierto .grupo label { display: inline; font-size: 13px; margin: 0 4px 0 8px; color: var(--texto); }
}
.btn-listo { display: none; }
@media (max-width: 760px), (max-height: 520px) {
  #s-sala .transporte.abierto .btn-listo { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 6px 22px; border-radius: 14px; background: var(--amarillo); color: var(--tinta-sticker); font-weight: 900; font-size: 17px; }
}
#sala-mas .mas-cerrar { display: none; }
#sala-mas[aria-expanded="true"] .mas-abrir { display: none; }
#sala-mas[aria-expanded="true"] .mas-cerrar { display: inline; }
/* ===== modo escuela (servidor propio) ===== */
.escuela-capa { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 24px; background: radial-gradient(circle at 50% 30%, #2a2350, #0b0e15 70%); color: #fff; }
.escuela-capa.oculto { display: none; }
html.escuela-cerrada body > *:not(.escuela-capa) { visibility: hidden; }
.escuela-caja { max-width: 420px; width: 100%; text-align: center; display: flex; flex-direction: column; gap: 14px; align-items: center; }
.escuela-logo { width: 120px; height: auto; }
.escuela-caja h2 { margin: 0; font-size: 26px; line-height: 1.2; }
.escuela-caja p { margin: 0; opacity: .85; font-size: 16px; }
.escuela-caja .prim { min-height: 48px; padding: 10px 26px; border-radius: 14px; border: 0; font-weight: 900; font-size: 17px; background: #ffd43b; color: #1d1a2b; cursor: pointer; }
.escuela-link { background: none; border: 0; color: #b9b3ff; text-decoration: underline; font-size: 14px; cursor: pointer; }
.escuela-registro { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.escuela-registro.oculto { display: none; }
.escuela-registro input { min-height: 46px; border-radius: 12px; border: 2px solid #4b4580; background: #15122a; color: #fff; padding: 8px 14px; font-size: 17px; text-align: center; }
.escuela-error { min-height: 1.3em; font-weight: 700; color: #ffd43b; }
.escuela-marca { opacity: .55; margin-top: 10px; }
.u-clases { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 6px; }
.u-clases.oculto, #u-codigo-et.oculto { display: none; }
.u-clases-et { width: 100%; font-weight: 800; font-size: 14px; opacity: .85; }
.u-clases button { flex: 1 1 160px; min-height: 56px; border-radius: 16px; font-size: 18px; font-weight: 900; }
.u-clases button.on { background: var(--amarillo); color: var(--tinta-sticker); }
.u-clases-vacio { width: 100%; padding: 16px; border-radius: 14px; border: 2px dashed currentColor; opacity: .75; text-align: center; font-weight: 700; }
/* ===== banco de ritmos ===== */
.btn-estilo b { color: var(--amarillo); }
.rb { text-align: left; max-height: 70vh; overflow: auto; margin: -4px -6px 0; padding: 0 6px; }
.rb h3 { margin: 0 0 4px; }
.rb-d { margin: 0 0 10px; font-size: 14px; opacity: .85; }
.rb-grupo { margin-bottom: 12px; }
.rb-grupo h4 { margin: 0 0 6px; font-size: 14px; opacity: .9; }
.rb-grupo h4 small { font-weight: 600; opacity: .7; }
.rb-otro { opacity: .45; }
.rb-lista { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.rb-est { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 6px 10px; border-radius: 14px; font-weight: 800; font-size: 15px; text-align: left; }
.rb-est .rb-ic { font-size: 22px; line-height: 1; }
.rb-est.on { background: var(--amarillo); color: var(--tinta-sticker); }
.rb-est:disabled { cursor: not-allowed; }
.ventana:has(.rb) { width: min(660px, 100%); }
/* articulaciones de los riffs */
.pp-acento { fill: none; stroke: #12151b; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pp-pm { fill: #6b5bd2; font-weight: 800; text-anchor: middle; font-family: inherit; }
.pp-tab-sil { fill: #12151b; }
