/* Asistencia y colegiaturas · Academia de Música Clave de Sol (demo de infoweb.mx)
   Paleta: ébano de piano, marfil, madera de violín, oro y terciopelo. Pentagrama como recurso gráfico. */
[hidden] { display: none !important; }
:root {
  --ebano: #16120F; --ebano-2: #241D18; --ebano-3: #3A2F27;
  --marfil: #F3EBDD; --marfil-2: #E7DAC3; --papel: #FBF7EF;
  --madera: #8A4B24; --madera-2: #B06A38;
  --oro: #C8A04A; --oro-c: #E2C27A; --oro-t: #7A5A16;
  --terciopelo: #7A1E2C; --terciopelo-2: #9B2A3B;
  --salvia: #2F6446;
  --tinta: #2A211B; --gris: #65574B;
  --display: 'Bodoni Moda', 'Didot', Georgia, serif;
  --texto: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radio: 14px;
  --cab: 150px; --tabs: 64px;
  --sombra: 0 1px 2px rgba(42, 33, 27, .08), 0 6px 18px -8px rgba(42, 33, 27, .25);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--cab) + 12px); }
body { margin: 0; background: var(--marfil); color: var(--tinta); font: 16px/1.5 var(--texto); padding-bottom: calc(var(--tabs) + env(safe-area-inset-bottom)); }
img, svg { max-width: 100%; }
a { color: var(--madera); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--oro); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.saltar { position: absolute; left: -999px; top: 0; z-index: 99; background: var(--ebano); color: #fff; padding: .6rem 1rem; }
.saltar:focus { left: .5rem; top: .5rem; }
.muted { color: var(--gris); }
.mini { font-size: .82rem; }
.rojo { color: var(--terciopelo); }
.ok { color: var(--salvia); }
.pend { color: var(--oro-t); }
.ico { width: 1.1em; height: 1.1em; vertical-align: -.18em; display: inline-block; }

/* ---------- cabecera ---------- */
.demo-banner { background: #2b2620; color: #f2ece1; text-align: center; font-size: .78rem; line-height: 1.35; padding: .35rem .8rem; letter-spacing: .01em; }
@media (min-width: 640px) { .demo-banner { font-size: .86rem; } }
.cab { position: sticky; top: 0; z-index: 30; background: var(--ebano); color: var(--marfil); }
.cab::after { /* pentagrama bajo la cabecera */
  content: ''; display: block; height: 9px;
  background: repeating-linear-gradient(to bottom, rgba(200, 160, 74, .55) 0 1px, transparent 1px 2px) top / 100% 9px no-repeat, var(--ebano);
}
.cab-barra { display: flex; align-items: center; gap: .5rem; padding: .45rem .9rem .3rem; max-width: 1180px; margin: 0 auto; flex-wrap: wrap; }
.marca { display: flex; align-items: center; gap: .55rem; color: inherit; text-decoration: none; margin-right: auto; }
.marca-ico { width: 38px; height: 38px; flex: none; }
.marca-txt { display: flex; flex-direction: column; line-height: 1.05; }
.marca-txt strong { font-family: var(--display); font-weight: 700; font-size: 1.15rem; letter-spacing: .01em; }
.marca-txt small { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--oro-c); }
.cab-acciones { display: flex; gap: .3rem; }
.btn-icono { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(226, 194, 122, .35); background: transparent; color: var(--marfil); display: grid; place-items: center; cursor: pointer; }
.btn-icono svg { width: 20px; height: 20px; }
.btn-icono[aria-pressed="true"] .ico-off, .btn-icono[aria-pressed="false"] .ico-on { display: none; }
.rol { order: 3; width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); background: var(--ebano-2); border-radius: 999px; padding: 3px; margin-top: .35rem; }
.rol button { border: 0; background: transparent; color: #d8ccb6; padding: .42rem .3rem; border-radius: 999px; font-size: .86rem; font-weight: 600; cursor: pointer; white-space: nowrap; }
.rol button[aria-pressed="true"] { background: var(--oro); color: var(--ebano); }
@media (min-width: 760px) {
  .rol { order: 0; width: auto; margin: 0 auto 0 1rem; }
  .rol button { padding: .45rem 1.1rem; }
  .marca { margin-right: 0; }
}

.intro { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (min-width: 900px) {
  .intro { position: static; width: auto; height: auto; overflow: visible; clip: auto; max-width: 1180px; margin: 0 auto; padding: 1.4rem 1.2rem 0; display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
  .intro-ojo { margin: 0; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--madera); width: 100%; }
  .intro-t { margin: 0; font-family: var(--display); font-weight: 600; font-size: 2.1rem; line-height: 1.1; }
  .intro-l { margin: 0; color: var(--gris); max-width: 46ch; }
}

/* ---------- metrónomo de carga ---------- */
.metronomo { position: fixed; inset: 0; z-index: 90; background: var(--ebano); color: var(--oro-c); display: grid; place-content: center; justify-items: center; gap: 1rem; transition: opacity .4s; }
.metronomo.fuera { opacity: 0; pointer-events: none; }
.metronomo p { margin: 0; font-family: var(--display); font-style: italic; font-size: 1.15rem; }
.metro-cuerpo { width: 74px; height: 96px; clip-path: polygon(30% 0, 70% 0, 100% 100%, 0 100%); background: linear-gradient(#8A4B24, #5c2f15); position: relative; }
.metro-brazo { position: absolute; left: 50%; bottom: 14px; width: 3px; height: 82px; margin-left: -1.5px; background: var(--oro-c); transform-origin: 50% 100%; animation: metro .5s ease-in-out infinite alternate; }
.metro-brazo::after { content: ''; position: absolute; top: 14px; left: -5px; width: 13px; height: 9px; background: var(--oro-c); border-radius: 2px; }
@keyframes metro { from { transform: rotate(-26deg); } to { transform: rotate(26deg); } }

/* ---------- estructura ---------- */
.app { max-width: 1180px; margin: 0 auto; padding: 1rem .9rem 1.5rem; outline: none; }
.vista { max-width: 760px; margin: 0 auto; }
.vista-cobros { max-width: 1100px; }
.vista-cab { margin: .2rem 0 1rem; }
.ojo { margin: 0 0 .15rem; font-size: .76rem; letter-spacing: .13em; text-transform: uppercase; color: var(--madera); font-weight: 600; }
.h1 { font-family: var(--display); font-weight: 600; font-size: 1.85rem; line-height: 1.1; margin: 0 0 .2rem; }
.h2 { font-family: var(--display); font-weight: 600; font-size: 1.35rem; line-height: 1.2; margin: 1.6rem 0 .6rem; padding-bottom: .4rem;
  background: repeating-linear-gradient(to bottom, rgba(138, 75, 36, .35) 0 1px, transparent 1px 3px) bottom / 100% 9px no-repeat; }
.h2 small { font-family: var(--texto); font-size: .82rem; color: var(--gris); font-weight: 500; margin-left: .3rem; }
.h3 { font-family: var(--display); font-size: 1.1rem; margin: 1.2rem 0 .5rem; }
.bloque { margin-top: .6rem; }
.volver { display: inline-block; margin: 0 0 .7rem; font-weight: 600; text-decoration: none; padding: .3rem 0; }
.vacio { color: var(--gris); font-style: italic; padding: .6rem 0; list-style: none; }
.sin-js { padding: 2rem; text-align: center; }

/* ---------- botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 46px; padding: .6rem 1.2rem; border-radius: 999px; border: 1.5px solid transparent; font-weight: 650; text-decoration: none; cursor: pointer; line-height: 1.2; }
.btn-oro { background: var(--ebano); color: var(--oro-c); border-color: var(--ebano); }
.btn-oro:hover { background: var(--ebano-3); }
.btn-oro:disabled { opacity: .45; cursor: not-allowed; }
.btn-sec { background: transparent; color: var(--tinta); border-color: rgba(42, 33, 27, .35); }
.btn-sec:hover { border-color: var(--tinta); }
.btn-chico { min-height: 40px; padding: .45rem 1rem; font-size: .92rem; }
.btn-ancho { width: 100%; }
.btn-wa { background: #0F7A6E; color: #fff; }
.btn-wa:hover { background: #0B6359; }
.link { background: none; border: 0; padding: .3rem 0; color: var(--madera); text-decoration: underline; cursor: pointer; font-weight: 600; }
.chip { display: inline-block; padding: .18rem .6rem; border-radius: 999px; font-size: .76rem; font-weight: 700; letter-spacing: .02em; white-space: nowrap; }
.chip-pagada { background: #DCE8DD; color: #22533A; }
.chip-pendiente { background: #F1E3BF; color: #6A4D10; }
.chip-vencida { background: #F2D5D6; color: var(--terciopelo); }

/* ---------- guía ---------- */
.guia { background: var(--ebano); color: var(--marfil); border-radius: var(--radio); padding: .6rem .9rem; margin: 0 0 .8rem; position: relative; }
.guia p { line-height: 1.35; }
.guia p { margin: .25rem 0 .5rem; font-size: .95rem; }
.guia strong { color: var(--oro-c); }
.guia-pasos { display: flex; gap: 5px; }
.guia-pasos i { width: 26px; height: 3px; border-radius: 2px; background: rgba(226, 194, 122, .3); }
.guia-pasos i.on { background: var(--oro-c); }
.guia-acc { display: flex; gap: 1rem; align-items: center; }
.guia .btn { min-height: 38px; padding: .35rem .9rem; }
.guia .btn-oro { background: var(--oro); color: var(--ebano); border-color: var(--oro); }
.guia .link { color: var(--oro-c); }

/* ---------- colegiaturas: «cuánto suena» ---------- */
.suena { margin-bottom: .7rem; }
.suena-num { margin: 0; font-family: var(--display); line-height: 1; display: flex; align-items: baseline; flex-wrap: wrap; gap: .1rem .4rem; }
.pct { font-size: 3.2rem; font-weight: 700; letter-spacing: -.02em; }
.pct-s { font-size: 1.8rem; font-weight: 600; margin-left: -.35rem; }
.suena-txt { font-style: italic; font-size: 1.2rem; color: var(--madera); }
.suena-sub { margin: .35rem 0 .5rem; color: var(--gris); font-size: .92rem; }
.suena-sub strong { color: var(--tinta); }
.pentagrama-barra { height: 9px; position: relative; background: repeating-linear-gradient(to bottom, rgba(42, 33, 27, .28) 0 1px, transparent 1px 2px); border-radius: 2px; overflow: hidden; }
.pentagrama-barra i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, var(--oro), var(--oro-c)); transition: width .9s cubic-bezier(.2, .8, .2, 1); }

/* ---------- el teclado (firma) ---------- */
.teclado-marco { background: linear-gradient(180deg, #2a201a, var(--ebano) 40%); border-radius: 18px; padding: 14px 10px 12px; box-shadow: 0 18px 40px -20px rgba(22, 18, 15, .7), inset 0 1px 0 rgba(226, 194, 122, .25); }
.teclado { display: flex; flex-wrap: wrap; row-gap: 14px; }
.octava { position: relative; display: flex; width: 50%; height: 132px; padding-top: 7px; background: linear-gradient(var(--terciopelo), var(--terciopelo-2)) top / 100% 7px no-repeat; /* fieltro rojo */ }
@media (min-width: 900px) { .octava { width: 25%; height: 200px; } .teclado { row-gap: 0; } }
.tecla { position: relative; cursor: pointer; border: 0; padding: 0; -webkit-tap-highlight-color: transparent; transition: transform .08s, filter .3s, background .4s, box-shadow .4s; }
.tecla.blanca { flex: 1; margin: 0 1px; border-radius: 0 0 6px 6px; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 12px; }
.tecla.negra { position: absolute; top: 7px; width: var(--negra, 8.6%); height: 58%; z-index: 2; border-radius: 0 0 4px 4px; }
.octava { --negra: 8.8%; }
.ini { font-size: .62rem; font-weight: 700; letter-spacing: .02em; writing-mode: vertical-rl; transform: rotate(180deg); }
@media (min-width: 400px) { .ini { writing-mode: horizontal-tb; transform: none; font-size: .6rem; } }
.luz { position: absolute; left: 3px; right: 3px; bottom: 4px; height: 4px; border-radius: 2px; }
/* encendida = pagó */
.tecla.blanca.on { background: linear-gradient(180deg, #FFFDF7 0%, #FBF1D8 70%, #F2DFAE 100%); color: var(--tinta); box-shadow: 0 0 16px rgba(226, 194, 122, .55), inset 0 -3px 0 rgba(200, 160, 74, .5); }
.tecla.blanca.on .luz { background: var(--oro); box-shadow: 0 0 8px var(--oro-c); }
.tecla.negra.on { background: linear-gradient(180deg, #4b3a22, #1d150e 75%); box-shadow: 0 0 12px rgba(226, 194, 122, .6), inset 0 2px 0 rgba(226, 194, 122, .7); }
.tecla.negra.on .luz { background: var(--oro-c); height: 3px; box-shadow: 0 0 8px var(--oro-c); }
/* apagada = debe */
.tecla.blanca.off { background: linear-gradient(180deg, #8f877b, #6f685e); color: #F3EBDD; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .25); }
.tecla.negra.off { background: #0b0907; box-shadow: inset 0 0 0 1px #2a231d; }
.tecla.off.vencida .luz { background: #C2414F; }
.tecla.golpe { transform: translateY(2px) scaleY(.985); filter: brightness(1.08); }
.tecla.enciende { animation: enciende 1.1s ease-out; }
@keyframes enciende {
  0% { filter: brightness(.6); }
  25% { filter: brightness(1.7) saturate(1.3); box-shadow: 0 0 34px 10px rgba(240, 205, 120, .95); }
  100% { filter: brightness(1); }
}
.teclado-leyenda { display: flex; flex-wrap: wrap; gap: .4rem 1rem; align-items: center; margin-top: 12px; color: #d8ccb6; font-size: .8rem; }
.teclado-leyenda .btn { margin-left: auto; color: var(--oro-c); border-color: rgba(226, 194, 122, .5); }
.lg { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: .35rem; vertical-align: -1px; }
.lg.on { background: #FBF1D8; box-shadow: 0 0 6px var(--oro-c); }
.lg.off { background: #7b746a; }
.lg.venc { background: #7b746a; box-shadow: inset 0 -3px 0 #C2414F; }
.notas-vuelo { position: absolute; z-index: 40; pointer-events: none; }
.notas-vuelo i { position: absolute; left: 0; top: 0; font-style: normal; font-size: 1.6rem; color: var(--oro); text-shadow: 0 0 10px rgba(226, 194, 122, .9); opacity: 0; animation: vuela 1.5s var(--d) ease-out forwards; }
@keyframes vuela { 0% { opacity: 0; transform: translate(-50%, 0) scale(.6); } 15% { opacity: 1; } 100% { opacity: 0; transform: translate(calc(-50% + var(--dx)), -150px) scale(1.2) rotate(12deg); } }

/* ---------- filas y listas ---------- */
.lista-cobro { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.fila { width: 100%; display: flex; align-items: center; gap: .7rem; background: var(--papel); border: 1px solid var(--marfil-2); border-radius: 12px; padding: .55rem .7rem; text-align: left; cursor: pointer; text-decoration: none; color: inherit; min-height: 60px; }
a.fila:hover, button.fila:hover { border-color: rgba(138, 75, 36, .45); }
.fila-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.fila-t strong { font-weight: 650; }
.fila-t small, .fila-m small { color: var(--gris); font-size: .8rem; }
.fila-m { display: flex; flex-direction: column; align-items: flex-end; gap: .15rem; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.avatar { display: block; flex: none; border-radius: 50%; }
.av-xs { width: 26px; height: 26px; }
.av-s { width: 42px; height: 42px; }
.av-m { width: 64px; height: 64px; }
.av-l { width: 88px; height: 88px; }
.nivel-pill { font-size: .76rem; background: var(--ebano); color: var(--oro-c); padding: .15rem .55rem; border-radius: 999px; }

/* ---------- capa / hoja inferior ---------- */
.capa { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center; }
.capa-fondo { position: absolute; inset: 0; background: rgba(22, 18, 15, .55); }
.hoja { position: relative; background: var(--papel); width: 100%; max-width: 560px; max-height: 88vh; overflow-y: auto; border-radius: 22px 22px 0 0; padding: 1.3rem 1.1rem calc(1.2rem + env(safe-area-inset-bottom)); box-shadow: 0 -10px 40px rgba(0, 0, 0, .25); animation: sube .28s cubic-bezier(.2, .8, .2, 1); }
@media (min-width: 640px) { .capa { align-items: center; } .hoja { border-radius: 22px; } }
@keyframes sube { from { transform: translateY(40px); opacity: 0; } }
.hoja-x { position: absolute; top: .5rem; right: .6rem; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--marfil); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.hoja .h2 { margin-top: .2rem; background: none; padding: 0; }
.hoja-acc { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1rem 0 .4rem; }
.hoja-acc .btn { flex: 1 1 auto; }
.cuenta-cab { display: flex; gap: .8rem; align-items: center; padding-right: 2.5rem; }
.cuenta-cab .h2 { margin: 0; }
.cuenta-cab p { margin: .1rem 0 0; font-size: .9rem; }
.adeudo { background: var(--marfil); border-radius: 12px; padding: .8rem .9rem; margin: 1rem 0; }
.adeudo-num { font-family: var(--display); font-weight: 700; font-size: 2.3rem; margin: 0; line-height: 1.05; color: var(--terciopelo); font-variant-numeric: tabular-nums; }
.meses { list-style: none; margin: .5rem 0 0; padding: 0; }
.meses li { display: flex; justify-content: space-between; gap: .6rem; padding: .45rem 0; border-top: 1px dashed rgba(42, 33, 27, .2); font-size: .94rem; flex-wrap: wrap; }
.meses label { display: flex; gap: .5rem; align-items: center; cursor: pointer; }
.meses input { width: 20px; height: 20px; accent-color: var(--ebano); }
.nota-desc { font-size: .85rem; color: var(--gris); margin: .5rem 0 0; }
.metodo { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.metodo legend { font-weight: 650; margin-bottom: .4rem; }
.metodo label input { position: absolute; opacity: 0; }
.metodo label span { display: inline-block; padding: .5rem .95rem; border-radius: 999px; border: 1.5px solid rgba(42, 33, 27, .3); cursor: pointer; font-weight: 600; font-size: .92rem; }
.metodo label input:checked + span { background: var(--ebano); color: var(--oro-c); border-color: var(--ebano); }
.metodo label input:focus-visible + span { outline: 3px solid var(--oro); outline-offset: 2px; }

/* WhatsApp de muestra */
.wa-chat { background: #E8DFD2 radial-gradient(rgba(42, 33, 27, .05) 1px, transparent 1px) 0 0 / 14px 14px; border-radius: 12px; padding: .9rem .7rem; }
.wa-burbuja { background: #DCF3D3; color: #1d2a20; border-radius: 10px 2px 10px 10px; padding: .55rem .7rem 1.1rem; margin-left: auto; max-width: 92%; position: relative; font-size: .93rem; box-shadow: 0 1px 1px rgba(0, 0, 0, .1); white-space: pre-line; }
.wa-hora { position: absolute; right: .55rem; bottom: .25rem; font-size: .68rem; color: #4d6b53; }

/* recibo */
.recibo { background: #fff; border: 1px solid var(--marfil-2); border-radius: 6px; padding: 1.1rem 1rem 1rem; position: relative; overflow: hidden;
  background-image: linear-gradient(#fff, #fff), repeating-linear-gradient(90deg, var(--marfil-2) 0 8px, transparent 8px 14px); background-size: 100% calc(100% - 4px), 100% 4px; background-position: top, bottom; background-repeat: no-repeat; }
.recibo-cab { display: flex; gap: .6rem; align-items: center; border-bottom: 1px solid var(--marfil-2); padding-bottom: .6rem; padding-right: 2.2rem; }
.recibo-cab .clave { width: 20px; height: 48px; color: var(--madera); flex: none; }
.recibo-ac { margin: 0; font-family: var(--display); font-weight: 700; font-size: 1.08rem; line-height: 1.15; }
.recibo-cab .mini { margin: 0; color: var(--gris); }
.recibo-t { font-family: var(--display); font-size: 1.25rem; margin: .7rem 0 .4rem; display: flex; justify-content: space-between; align-items: baseline; }
.recibo-t span { font-family: var(--texto); font-size: .85rem; color: var(--gris); }
.recibo-dl { display: grid; grid-template-columns: auto 1fr; gap: .25rem .8rem; margin: 0; font-size: .9rem; }
.recibo-dl dt { color: var(--gris); }
.recibo-dl dd { margin: 0; font-weight: 600; }
.recibo-tot { margin-top: .8rem; border-top: 1px solid var(--marfil-2); padding-top: .5rem; }
.recibo-tot p { display: flex; justify-content: space-between; margin: .2rem 0; font-size: .92rem; font-variant-numeric: tabular-nums; }
.recibo-total { font-weight: 800; font-size: 1.15rem !important; }
.recibo-sello { position: absolute; right: 1rem; bottom: 2.6rem; transform: rotate(-12deg); border: 2.5px solid var(--salvia); color: var(--salvia); font-weight: 800; letter-spacing: .15em; text-transform: uppercase; padding: .15rem .55rem; border-radius: 6px; opacity: .8; font-size: .9rem; }

/* ---------- toast ---------- */
.aviso-toast { position: fixed; left: 12px; right: 12px; margin: 0 auto; width: fit-content; max-width: 520px; bottom: calc(var(--tabs) + 14px + env(safe-area-inset-bottom)); z-index: 70; background: var(--ebano); color: var(--marfil); padding: .7rem 1rem; border-radius: 14px; display: flex; gap: .8rem; align-items: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .25s, transform .25s; font-size: .93rem; }
.aviso-toast.on { opacity: 1; transform: none; pointer-events: auto; }
.toast-acc { background: var(--oro); color: var(--ebano); border: 0; border-radius: 999px; padding: .4rem .8rem; font-weight: 700; cursor: pointer; white-space: nowrap; min-height: 36px; }

/* ---------- pestañas inferiores y contacto fijo ---------- */
.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--ebano); display: grid; grid-template-columns: repeat(4, 1fr); padding-bottom: env(safe-area-inset-bottom); border-top: 1px solid rgba(226, 194, 122, .25); }
.tabs a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: var(--tabs); color: #bfb29d; text-decoration: none; font-size: .74rem; font-weight: 600; }
.tabs a svg { width: 24px; height: 24px; }
.tabs a[aria-current] { color: var(--oro-c); }
.tabs a[aria-current]::before { content: ''; position: absolute; top: 0; width: 34px; height: 3px; background: var(--oro-c); border-radius: 0 0 3px 3px; }
@media (min-width: 900px) { .tabs { left: 50%; right: auto; transform: translateX(-50%); width: 620px; bottom: 14px; border-radius: 18px; border: 1px solid rgba(226, 194, 122, .3); box-shadow: 0 12px 30px rgba(0, 0, 0, .3); } body { padding-bottom: 100px; } }
.cta-fijo { position: fixed; right: 10px; bottom: calc(var(--tabs) + 10px + env(safe-area-inset-bottom)); z-index: 35; display: flex; align-items: center; gap: .4rem; background: #0F7A6E; color: #fff; text-decoration: none; border-radius: 999px; padding: .45rem .75rem .45rem .55rem; font-size: .76rem; line-height: 1.15; box-shadow: 0 6px 18px rgba(0, 0, 0, .25); transition: opacity .3s, transform .3s; max-width: 190px; }
.cta-fijo .ico-wa { width: 22px; height: 22px; flex: none; }
body.momento .cta-fijo { opacity: 0; transform: translateY(10px); pointer-events: none; }
@media (min-width: 900px) { .cta-fijo { bottom: 24px; right: 20px; font-size: .84rem; max-width: 240px; } }

/* ---------- pie y CTA final ---------- */
.app-pie { max-width: 760px; margin: 0 auto; padding: 0 .9rem; }
.restaurar-pie { display: flex; flex-wrap: wrap; gap: .4rem .9rem; align-items: center; color: var(--gris); font-size: .88rem; margin: 1.5rem 0; }
.cta { background: var(--ebano); color: var(--marfil); border-radius: 20px; padding: 1.6rem 1.2rem; margin: 1rem 0 1.5rem; position: relative; overflow: hidden; }
.cta::before { content: ''; position: absolute; left: 0; right: 0; top: 1.1rem; height: 9px; background: repeating-linear-gradient(to bottom, rgba(226, 194, 122, .3) 0 1px, transparent 1px 2px); }
.cta-in { position: relative; }
.cta-ojo { margin: .6rem 0 .3rem; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--oro-c); }
.cta h2 { font-family: var(--display); font-weight: 600; font-size: 1.6rem; line-height: 1.15; margin: 0 0 .5rem; }
.cta p { color: #d8ccb6; }
.cta-botones { display: flex; flex-wrap: wrap; gap: .8rem 1.2rem; align-items: center; margin-top: 1rem; }
.cta-botones .ico-wa { width: 22px; height: 22px; }
.cta-tel { color: var(--marfil); }
.cta-tel strong { color: var(--oro-c); }
.pie { max-width: 760px; margin: 0 auto; padding: 1rem .9rem 1.5rem; color: var(--gris); font-size: .84rem; }
.pie p { margin: 0 0 .5rem; }
.pie .credito { margin-top: 1rem; }
.pie a { color: var(--madera); }

/* ---------- maestro: chips, clases del día ---------- */
.chips-m { display: flex; gap: .4rem; overflow-x: auto; padding: .1rem 0 .7rem; margin: 0 -.9rem .3rem; padding-left: .9rem; padding-right: .9rem; scrollbar-width: thin; }
.chip-m { flex: none; display: flex; align-items: center; gap: .4rem; padding: .3rem .7rem .3rem .3rem; border-radius: 999px; background: var(--papel); border: 1px solid var(--marfil-2); text-decoration: none; color: inherit; font-weight: 650; font-size: .88rem; line-height: 1.05; }
.chip-m small { display: block; font-weight: 500; font-size: .72rem; color: var(--gris); }
.chip-m[aria-current] { background: var(--ebano); color: var(--marfil); border-color: var(--ebano); }
.chip-m[aria-current] small { color: var(--oro-c); }
.clases-dia { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.clase-card { display: flex; gap: .8rem; align-items: center; background: var(--papel); border: 1px solid var(--marfil-2); border-left: 5px solid var(--oro); border-radius: 12px; padding: .7rem .8rem; color: inherit; text-decoration: none; }
.clase-card.hecha { border-left-color: var(--salvia); }
.clase-hora { font-family: var(--display); font-weight: 700; font-size: 1.3rem; line-height: 1; text-align: center; min-width: 3.4rem; }
.clase-hora small { display: block; font-family: var(--texto); font-size: .68rem; font-weight: 600; color: var(--gris); margin-top: .2rem; }
.clase-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .15rem; }
.clase-t small { color: var(--gris); font-size: .82rem; }
.clase-est b { font-size: .85rem; white-space: nowrap; }
.mini-avs { display: flex; }
.mini-avs .avatar { margin-right: -6px; border: 2px solid var(--papel); box-sizing: content-box; }

/* ---------- pasar lista ---------- */
.deck-cab .h1 { font-size: 1.55rem; }
.deck-cuenta { margin: .2rem 0 0; font-weight: 600; color: var(--gris); font-variant-numeric: tabular-nums; }
.deck-cuenta span { color: var(--tinta); }
.deck { position: relative; height: 318px; margin: .4rem 0 .9rem; touch-action: pan-y; }
.carta { position: absolute; top: 0; left: 0; right: 0; margin: 0 auto; width: min(290px, 84vw); height: 292px; background: var(--papel); border-radius: 22px; border: 1px solid var(--marfil-2); box-shadow: 0 16px 34px -16px rgba(22, 18, 15, .5); padding: 1.6rem 1rem 1rem; text-align: center; touch-action: none; user-select: none; cursor: grab;
  translate: 0 calc(var(--prof) * 12px); scale: calc(1 - var(--prof) * .05); }
.carta::before { content: ''; position: absolute; left: 14px; right: 14px; top: 12px; height: 9px; background: repeating-linear-gradient(to bottom, rgba(138, 75, 36, .3) 0 1px, transparent 1px 2px); }
.av-carta { width: 100px; height: 100px; margin: .3rem auto .5rem; }
.carta-n { font-family: var(--display); font-size: 1.6rem; margin: 0; line-height: 1.05; }
.carta-n small { display: block; font-family: var(--texto); font-size: .95rem; color: var(--gris); font-weight: 500; }
.carta-d { margin: .45rem 0 .3rem; font-size: .92rem; }
.carta-a { margin: 0; font-size: .82rem; color: var(--gris); display: flex; justify-content: center; align-items: center; gap: .4rem; }
.dots { display: inline-flex; gap: 3px; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--salvia); }
.dots i.d-f { background: var(--terciopelo); }
.dots i.d-j { background: var(--oro); }
.carta-aviso { margin: .5rem auto 0; display: inline-block; background: #F1E3BF; color: #6A4D10; font-size: .78rem; font-weight: 700; padding: .2rem .6rem; border-radius: 999px; }
.sello { position: absolute; top: 34px; font-weight: 800; font-size: 1.3rem; letter-spacing: .12em; text-transform: uppercase; padding: .2rem .6rem; border: 3px solid; border-radius: 8px; opacity: 0; transition: opacity .15s; }
.sello-p { left: 18px; color: var(--salvia); transform: rotate(-14deg); }
.sello-f { right: 18px; color: var(--terciopelo); transform: rotate(14deg); }
.carta.muestra-p .sello-p, .carta.muestra-f .sello-f { opacity: 1; }
.carta-hora { position: absolute; top: 12px; right: 14px; background: var(--ebano); color: var(--oro-c); font-size: .74rem; font-weight: 700; padding: .15rem .5rem; border-radius: 999px; }
.todo-dia { margin: 0 0 .8rem; }
.deck-botones { display: flex; align-items: center; justify-content: center; gap: 1rem; }
.redondo { width: 66px; height: 66px; border-radius: 50%; border: 2px solid; background: var(--papel); font-size: 1.5rem; font-weight: 800; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; cursor: pointer; }
.redondo small { font-size: .62rem; font-weight: 700; margin-top: 3px; letter-spacing: .03em; }
.redondo.falta { color: var(--terciopelo); }
.redondo.presente { color: var(--salvia); }
.deck-ayuda { text-align: center; margin: .8rem auto 0; max-width: 34ch; }
.corrige { list-style: none; padding: 0; margin: .4rem 0 1rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.corr { width: 100%; display: flex; align-items: center; gap: .5rem; border-radius: 12px; border: 1.5px solid; padding: .4rem .55rem; background: var(--papel); cursor: pointer; text-align: left; }
.corr span { flex: 1; font-weight: 650; font-size: .9rem; }
.corr b { font-size: .72rem; }
.corr-p { border-color: rgba(47, 100, 70, .5); background: #EEF4EC; }
.corr-p b { color: var(--salvia); }
.corr-f { border-color: rgba(122, 30, 44, .4); background: #F8ECEC; }
.corr-f b { color: var(--terciopelo); }
.corr-j { border-color: rgba(200, 160, 74, .6); background: #F7EED6; }
.corr-j b { color: #6A4D10; }
.lista-fin { text-align: center; padding: 1.2rem .5rem; }
.lista-fin .h1 { font-size: 2.2rem; margin: .2rem 0; }
.acorde-anim { display: flex; justify-content: center; align-items: flex-end; gap: 7px; height: 70px; margin-bottom: .8rem; }
.acorde-anim i { width: 12px; background: linear-gradient(var(--oro-c), var(--oro)); border-radius: 6px; animation: acorde 1.2s ease-out both; }
.acorde-anim i:nth-child(1) { height: 30%; animation-delay: 0s; }
.acorde-anim i:nth-child(2) { height: 55%; animation-delay: .05s; }
.acorde-anim i:nth-child(3) { height: 80%; animation-delay: .1s; }
.acorde-anim i:nth-child(4) { height: 100%; animation-delay: .15s; }
.acorde-anim i:nth-child(5) { height: 65%; animation-delay: .2s; }
@keyframes acorde { 0% { transform: scaleY(0); } 40% { transform: scaleY(1.15); } 100% { transform: scaleY(1); } }

/* ---------- partitura ---------- */
.partitura { background: var(--papel); border: 1px solid var(--marfil-2); border-radius: 14px; padding: .8rem .8rem .4rem; box-shadow: var(--sombra); }
.sistema { margin-bottom: .6rem; }
.sistema-n { margin: 0 0 -.1rem; font-size: .78rem; color: var(--madera); letter-spacing: .04em; }
.sistema-n b { font-family: var(--display); font-size: .95rem; color: var(--tinta); }
.penta { display: block; width: 100%; height: auto; overflow: visible; }
.penta .linea { stroke: #4a3d33; stroke-width: .7; transition: stroke-dashoffset 1s ease-out; }
.penta .barra { stroke: #2A211B; stroke-width: 1.1; }
.penta .clave-t { color: var(--tinta); }
.penta .cabeza { fill: var(--tinta); }
.penta .plica { stroke: var(--tinta); stroke-width: 1.1; }
.penta .corchete { fill: none; stroke: var(--tinta); stroke-width: 1.4; }
.compas.estudio .nota { opacity: .28; }
.compas.estudio .barra { stroke-dasharray: 2 2; }
.compas.por-escribir .nota { opacity: 0; }
.compas.por-escribir .barra { opacity: 0; }
.compas .nota.tinta { opacity: 1; animation: tinta .45s ease-out; }
.compas.cerrado .barra { animation: barra .35s ease-out; }
@keyframes tinta { 0% { opacity: 0; transform: translateY(-6px); } 60% { opacity: 1; } 100% { transform: none; } }
@keyframes barra { from { opacity: 0; } }
.compas .nota.tinta .cabeza { animation: brillo 1s ease-out; }
@keyframes brillo { 0% { fill: var(--oro); } 100% { fill: var(--tinta); } }
.sistema.nueva-linea .penta .linea { stroke-dasharray: 300; stroke-dashoffset: 300; }
.sistema.nueva-linea.aparece .penta .linea { stroke-dashoffset: 0; }
.sistema.nueva-linea .sistema-n { opacity: 0; transition: opacity .6s; }
.sistema.nueva-linea.aparece .sistema-n { opacity: 1; }
.compases { list-style: none; margin: .1rem 0 0; padding: 0 0 0 10%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 .3rem; }
.compas-t { font-size: .74rem; line-height: 1.2; padding: 0 .1rem; }
.compas-t strong { display: block; font-family: var(--display); font-style: italic; font-weight: 600; font-size: .86rem; }
.compas-t small { color: var(--gris); font-size: .7rem; }
.compas-t.estudio strong { color: var(--gris); }
.compas-t.por-escribir { opacity: 0; }
.compas-t.aparece { animation: tinta .5s ease-out; }
.notas-m { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: 8px; }
.notas-m li { display: flex; gap: .6rem; align-items: flex-start; background: var(--papel); border-radius: 12px; padding: .6rem .7rem; border: 1px solid var(--marfil-2); }
.notas-m p { margin: 0; font-size: .92rem; }
.notas-m small { display: block; color: var(--gris); font-size: .78rem; margin-top: .15rem; }
.nm-av .avatar { width: 32px; height: 32px; }
.ficha-cab { display: flex; gap: .9rem; align-items: center; margin: .2rem 0 1rem; }
.ficha-cab p { margin: 0; }
.form-pieza { background: var(--papel); border: 1px solid var(--marfil-2); border-radius: 14px; padding: .2rem 1rem 1rem; margin-top: 1rem; }
.form-pieza .h2 { font-size: 1.15rem; margin-top: .8rem; }
.form-pieza label { display: block; font-weight: 650; font-size: .9rem; margin-bottom: .7rem; }
.form-pieza input:not([type=checkbox]) { display: block; width: 100%; margin-top: .3rem; padding: .7rem .8rem; border-radius: 10px; border: 1.5px solid rgba(42, 33, 27, .3); font: inherit; background: #fff; }
.form-pieza .check { display: flex; gap: .5rem; align-items: center; font-weight: 600; }
.form-pieza .check input { width: 20px; height: 20px; accent-color: var(--ebano); }

/* ---------- salones en vivo ---------- */
.vivo { color: var(--terciopelo); font-weight: 700; }
.selector-dia, .selector-hora, .dias-h, .filtros { display: flex; gap: .35rem; overflow-x: auto; padding-bottom: .4rem; margin-bottom: .3rem; }
.selector-dia button, .selector-hora button, .dias-h button, .filtros button, .seg button { flex: none; border: 1.5px solid rgba(42, 33, 27, .25); background: var(--papel); border-radius: 999px; padding: .4rem .8rem; font-weight: 650; font-size: .86rem; cursor: pointer; min-height: 38px; }
.selector-dia button { display: flex; flex-direction: column; align-items: center; line-height: 1.05; padding: .35rem .75rem; border-radius: 12px; }
.selector-dia small { font-size: .74rem; color: var(--gris); }
.selector-dia button[aria-pressed="true"], .selector-hora button[aria-pressed="true"], .dias-h button[aria-pressed="true"], .filtros button[aria-pressed="true"], .seg button[aria-pressed="true"] { background: var(--ebano); color: var(--oro-c); border-color: var(--ebano); }
.selector-dia button[aria-pressed="true"] small { color: var(--oro-c); }
.plano { display: grid; gap: 4px; background: var(--ebano); padding: 6px; border-radius: 16px; margin-top: .5rem;
  grid-template-columns: 1fr 1fr; grid-template-areas: 'piano guitarra' 'violin bateria' 'canto patio' 'ensamble recepcion'; }
@media (min-width: 760px) { .plano { grid-template-columns: 1fr 1fr 1fr; grid-template-areas: 'piano guitarra violin' 'recepcion patio bateria' 'canto ensamble ensamble'; } }
.salon { position: relative; min-height: 140px; border: 0; border-radius: 10px; background: var(--papel); padding: .6rem .6rem .55rem; text-align: left; display: flex; flex-direction: column; gap: .3rem; cursor: pointer; overflow: hidden; color: var(--tinta); }
.salon-n { font-family: var(--display); font-weight: 700; font-size: .98rem; line-height: 1.1; }
.salon.libre { background: repeating-linear-gradient(135deg, #F6EFE2 0 10px, #F1E8D8 10px 20px); }
.salon-libre { font-size: .82rem; color: var(--gris); font-weight: 600; }
.salon-rep { margin-top: auto; font-size: .8rem; font-weight: 700; color: var(--madera); border: 1.5px dashed rgba(138, 75, 36, .55); border-radius: 8px; padding: .3rem .4rem; text-align: center; }
.salon.ocupado { background: radial-gradient(circle at 85% 18%, rgba(226, 194, 122, .5), transparent 55%), var(--papel); box-shadow: inset 0 0 0 2px var(--oro); }
.salon-clase { font-weight: 700; font-size: .86rem; line-height: 1.2; }
.salon-m { display: flex; align-items: center; gap: .3rem; font-size: .76rem; color: var(--gris); }
.salon .mini-avs { margin-top: auto; }
.salon.fijo { cursor: default; background: #E9DDC8; color: var(--gris); }
.salon.patio { align-items: center; justify-content: center; background: #DDE3CF; color: #4f5d45; }
.salon.patio svg { width: 54px; }
.suena-ico { position: absolute; top: .55rem; right: .55rem; width: 34px; height: 34px; border-radius: 50%; background: var(--ebano); color: var(--oro-c); display: grid; place-items: center; }
.suena-ico .ico { width: 18px; height: 18px; }
.suena-ico i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--oro); opacity: 0; animation: onda 2.2s ease-out infinite; }
.suena-ico i:nth-child(3) { animation-delay: .7s; }
.suena-ico i:nth-child(4) { animation-delay: 1.4s; }
@keyframes onda { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(2.1); opacity: 0; } }
.seg { display: inline-flex; gap: .3rem; margin-bottom: .5rem; }
.horas-h { list-style: none; margin: .3rem 0 0; padding: 0; }
.horas-h li { display: flex; gap: .7rem; padding: .5rem 0; border-top: 1px solid var(--marfil-2); }
.h-h { width: 3.6rem; flex: none; font-family: var(--display); font-weight: 700; }
.h-clases { flex: 1; display: flex; flex-wrap: wrap; gap: 5px; }
.h-clase { font-size: .8rem; background: var(--papel); border: 1px solid var(--marfil-2); border-left: 4px solid var(--c, var(--oro)); border-radius: 8px; padding: .3rem .5rem; line-height: 1.25; }
.h-clase b { display: block; font-size: .78rem; }
.h-libre { font-size: .8rem; color: var(--gris); font-style: italic; }
.instr-piano { --c: #2A211B; } .instr-guitarra { --c: #B06A38; } .instr-violin { --c: #7A1E2C; } .instr-bateria { --c: #3E5F6E; } .instr-canto { --c: #8C6A1E; }
.salon.ocupado .suena-ico { background: var(--c); }
.huecos { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 6px; margin: .8rem 0; }
.hueco { border: 1.5px solid rgba(42, 33, 27, .25); background: #fff; border-radius: 12px; padding: .6rem; cursor: pointer; display: flex; flex-direction: column; align-items: flex-start; }
.hueco b::first-letter, .selector-dia button::first-letter { text-transform: uppercase; }
.hueco:hover { border-color: var(--ebano); }
.hueco span { color: var(--gris); font-size: .86rem; text-transform: none; }

/* ---------- familia ---------- */
.sel-fam { display: flex; flex-direction: column; gap: .2rem; font-size: .8rem; color: var(--gris); font-weight: 600; margin-bottom: .8rem; }
.sel-fam select { font: inherit; font-size: .95rem; color: var(--tinta); padding: .55rem .7rem; border-radius: 10px; border: 1.5px solid rgba(42, 33, 27, .3); background: var(--papel); width: 100%; }
.tarjeta { display: block; background: var(--papel); border: 1px solid var(--marfil-2); border-radius: 14px; padding: .8rem .9rem; margin-bottom: .7rem; color: inherit; text-decoration: none; box-shadow: var(--sombra); }
.tarjeta p { margin: .15rem 0; }
.tarjeta.enlace .ver { display: block; margin-top: .4rem; font-weight: 650; color: var(--madera); font-size: .9rem; }
.tarjeta.proxima { background: var(--ebano); color: var(--marfil); border-color: var(--ebano); }
.tarjeta.proxima .ojo { color: var(--oro-c); }
.tarjeta.proxima .muted { color: #cfc2ab; }
.tarjeta.proxima .btn-sec { color: var(--marfil); border-color: rgba(243, 235, 221, .45); margin-top: .5rem; }
.tarjeta.proxima .grande small { color: #cfc2ab; }
.tarjeta.aviso-rep { border-color: var(--oro); background: #FBF1D8; }
.tarjeta.debe { border-color: rgba(122, 30, 44, .35); }
.tarjeta.ok-t { border-color: rgba(47, 100, 70, .35); }
.grande { font-family: var(--display); font-weight: 700; font-size: 1.55rem; line-height: 1.15; font-variant-numeric: tabular-nums; }
.grande small { font-family: var(--texto); font-weight: 500; font-size: .82rem; color: var(--gris); }
.nuevo { background: var(--terciopelo); color: #fff; padding: .05rem .4rem; border-radius: 4px; letter-spacing: .04em; }
.tira-asis { display: flex; gap: 4px; flex-wrap: wrap; margin: .5rem 0 .3rem; }
.ta { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.ta i { width: 18px; height: 18px; border-radius: 50%; display: block; }
.ta small { font-size: .62rem; color: var(--gris); }
.ta-p i, i.ta-p { background: var(--salvia); }
.ta-f i, i.ta-f { background: var(--terciopelo); }
.ta-j i, i.ta-j { background: var(--oro); }
.leyenda-asis { display: flex; gap: .9rem; font-size: .76rem; color: var(--gris); margin: 0; }
.leyenda-asis i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: .3rem; vertical-align: -1px; }
.recibo-ico { width: 42px; height: 42px; border-radius: 50%; background: var(--marfil); display: grid; place-items: center; color: var(--madera); flex: none; }
.recibo-ico .clave { width: 14px; height: 32px; }
.datos { display: grid; grid-template-columns: auto 1fr; gap: .35rem .9rem; margin: 0 0 1rem; font-size: .93rem; }
.datos dt { color: var(--gris); }
.datos dd { margin: 0; }
.link-fam .url { word-break: break-all; color: var(--gris); }
.buscar input { width: 100%; padding: .7rem .9rem; border-radius: 12px; border: 1.5px solid rgba(42, 33, 27, .3); font: inherit; background: var(--papel); margin-bottom: .5rem; }

/* ---------- recital ---------- */
.telon { position: relative; overflow: hidden; border-radius: 20px; color: #F6E9CF; padding: 1.6rem 1.1rem 1.2rem; text-align: center; margin-bottom: 1rem;
  background: repeating-linear-gradient(90deg, rgba(0, 0, 0, .22) 0 6px, rgba(255, 255, 255, .03) 6px 14px, rgba(0, 0, 0, .12) 14px 22px), linear-gradient(180deg, #5d1220, var(--terciopelo) 55%, #4a0f19); }
.telon-luz { position: absolute; left: 50%; top: -40%; width: 120%; height: 120%; transform: translateX(-50%); background: radial-gradient(ellipse at 50% 30%, rgba(255, 230, 170, .26), transparent 60%); pointer-events: none; }
.telon .ojo { color: var(--oro-c); position: relative; text-shadow: 0 1px 2px rgba(0, 0, 0, .6); }
.telon-t { position: relative; font-family: var(--display); font-weight: 600; font-style: italic; font-size: 2.3rem; margin: .1rem 0 .3rem; line-height: 1.05; }
.telon-f { position: relative; margin: 0; font-weight: 700; }
.telon-l { position: relative; margin: .1rem 0 .9rem; color: #e7cfa8; font-size: .9rem; }
.telon-datos { position: relative; display: flex; justify-content: center; gap: 1.2rem; flex-wrap: wrap; }
.telon-datos span { display: flex; flex-direction: column; font-size: .76rem; color: #e7cfa8; }
.telon-datos b { font-family: var(--display); font-size: 1.7rem; color: #fff; line-height: 1.05; }
.tu-lugar { position: relative; margin-top: 1rem; background: rgba(22, 18, 15, .45); border: 1px solid rgba(226, 194, 122, .5); border-radius: 14px; padding: .8rem; }
.tu-lugar p { margin: .1rem 0; }
.lugar-n { font-family: var(--display); font-size: 2.6rem; font-weight: 700; line-height: 1; color: var(--oro-c); }
.lugar-n small { font-family: var(--texto); font-size: .9rem; color: #e7cfa8; font-weight: 500; }
.programa { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.prog { display: flex; align-items: center; gap: .55rem; background: var(--papel); border: 1px solid var(--marfil-2); border-radius: 12px; padding: .45rem .55rem; transition: transform .18s; position: relative; }
.prog.arrastrando { z-index: 5; transition: none; box-shadow: 0 12px 26px -8px rgba(22, 18, 15, .45); background: #fff; }
.prog.movido { animation: movido .7s ease-out; }
@keyframes movido { 0% { background: #FBF1D8; } }
.prog.tuyo { border-color: var(--oro); background: #FBF1D8; }
.prog.tuyo.brilla { animation: movido 1.6s ease-out; }
.prog-n { font-family: var(--display); font-weight: 700; font-size: 1.15rem; width: 1.6rem; text-align: center; flex: none; }
.prog-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.prog-t strong { font-size: .92rem; }
.prog-t small { color: var(--gris); font-size: .78rem; font-style: italic; }
.prog-r { font-size: .74rem; white-space: nowrap; }
.asa { width: 30px; align-self: stretch; display: flex; flex-direction: column; justify-content: center; gap: 3px; cursor: grab; touch-action: none; flex: none; margin: -.45rem 0 -.45rem -.55rem; padding-left: 10px; }
.asa i { display: block; width: 14px; height: 2px; background: var(--gris); border-radius: 1px; }
.prog-mov { display: flex; flex-direction: column; }
.prog-mov button { border: 0; background: none; width: 36px; height: 30px; font-size: .7rem; color: var(--gris); cursor: pointer; }
.rsvp .h2 { margin-top: .4rem; background: none; padding: 0; }
.rsvp .seg { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
.personas { display: flex; align-items: center; gap: .6rem; margin: .4rem 0 .9rem; font-weight: 600; }
.personas span { flex: 1; }
.personas button { width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid rgba(42, 33, 27, .35); background: #fff; font-size: 1.3rem; cursor: pointer; }
.personas output { font-family: var(--display); font-size: 1.5rem; font-weight: 700; min-width: 1.5rem; text-align: center; }

/* ---------- aviso de privacidad ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: 1.4rem 1.1rem 2rem; }
.legal h1 { font-family: var(--display); }
.legal h2 { font-family: var(--display); font-size: 1.2rem; margin-top: 1.5rem; }
.legal-meta { color: var(--gris); font-size: .88rem; }
.pag-legal { padding-bottom: 0; }

@media (min-width: 760px) {
  .app { padding-top: 1.4rem; }
  .h1 { font-size: 2.3rem; }
  .vista-cobros .suena { display: flex; align-items: flex-end; gap: 1.5rem; flex-wrap: wrap; }
  .vista-cobros .suena .pentagrama-barra { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ajustes tras la crítica de diseño */
.tecla.negra .ini { position: absolute; bottom: 9px; left: 0; right: 0; text-align: center; font-size: .48rem; color: #e9dcc2; }
.tecla.negra.off { background: linear-gradient(180deg, #5a5249, #433d36); box-shadow: inset 0 0 0 1px #2a231d; }
.tecla.negra.off .ini { color: #f3ebdd; }
.tecla.negra.on .ini { color: var(--oro-c); }
@media (min-width: 900px) { .ini { font-size: .72rem; } .tecla.negra .ini { font-size: .55rem; } }
@media (max-width: 640px) { .filtros { flex-wrap: wrap; overflow: visible; } }
.chips-m, .selector-hora { -webkit-mask-image: linear-gradient(90deg, #000 86%, transparent); mask-image: linear-gradient(90deg, #000 86%, transparent); }
.blk { display: block; margin-top: .15rem; }
.atajo-pieza { margin-top: .8rem; }
.compas.destello .cabeza { animation: brillo 1.4s ease-out; }
.compas.destello { filter: drop-shadow(0 0 5px rgba(226, 194, 122, .9)); transition: filter 1.2s; }
