[hidden] { display: none !important; }
/* ============ App Estudio Siete ============ */
:root {
  --bg: #0d0c11;
  --bg-2: #131118;
  --surface: #18161f;
  --surface-2: #211e2b;
  --border: #2b2738;
  --border-2: #3a3449;
  --text: #f5f2fa;
  --text-2: #c9c2d6;
  --muted: #8f879f;
  --brand: #59348b;          /* morado Estudio Siete */
  --brand-2: #7a4fb8;
  --brand-3: #b594ec;
  --brand-glow: rgba(122, 79, 184, .35);
  --reel: #9b6cf0;
  --historia: #f17fb6;
  --carrusel: #5cc0f2;
  --directo: #f5c84c;
  --ok: #4ade80;
  --warn: #fbbf24;
  --danger: #f87171;
  --radius: 18px;
  --radius-sm: 12px;
  --nav-h: 68px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --font: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
  overflow-x: hidden;
}
body::before { /* luz morada de fondo */
  content: ''; position: fixed; inset: -20% -10% auto -10%; height: 60vh; pointer-events: none; z-index: 0;
  background: radial-gradient(60% 60% at 50% 0%, rgba(89, 52, 139, .32), transparent 70%);
}
img { max-width: 100%; display: block; }
a { color: var(--brand-3); text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: var(--brand-2); color: #fff; }

#app { position: relative; z-index: 1; max-width: 560px; margin: 0 auto; min-height: 100dvh; }
.view { padding: calc(20px + var(--safe-t)) 16px calc(var(--nav-h) + var(--safe-b) + 28px); animation: fadein .25s ease; }
.view.no-nav { padding-bottom: 40px; }
@keyframes fadein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- tipografía ---------- */
.display {
  font-stretch: 125%; font-weight: 800; letter-spacing: -.02em; line-height: 1.02;
  font-size: clamp(30px, 8vw, 40px); margin: 0; text-transform: lowercase;
}
.h1 { font-stretch: 118%; font-weight: 800; font-size: 26px; letter-spacing: -.015em; line-height: 1.1; margin: 0; }
.h2 { font-stretch: 112%; font-weight: 750; font-size: 18px; letter-spacing: -.01em; margin: 0; }
.h3 { font-weight: 700; font-size: 15px; margin: 0; }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.tiny { font-size: 11.5px; }
.center { text-align: center; }
.mt-0 { margin-top: 0 } .mt-1 { margin-top: 6px } .mt-2 { margin-top: 12px } .mt-3 { margin-top: 20px } .mt-4 { margin-top: 32px }
.row { display: flex; align-items: center; gap: 10px; }
.row.between { justify-content: space-between; }
.row.wrap { flex-wrap: wrap; }
.stack > * + * { margin-top: 12px; }
.grow { flex: 1; min-width: 0; }
.hidden { display: none !important; }

/* ---------- cabecera ---------- */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.topbar .back { display: inline-flex; align-items: center; gap: 4px; color: var(--text-2); background: none; border: 0; padding: 6px 8px 6px 0; font-weight: 600; }
.brandbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.brandbar img.logo { height: 14px; opacity: .9; }
.beta { font-size: 10px; font-weight: 800; letter-spacing: .12em; color: var(--brand-3); border: 1px solid var(--border-2); padding: 3px 7px; border-radius: 99px; }

/* ---------- tarjetas ---------- */
.card {
  background: linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,0)) , var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 16px;
}
.card.tight { padding: 12px 14px; }
.card.hero {
  background: radial-gradient(120% 140% at 100% 0%, rgba(155,108,240,.35), transparent 55%), linear-gradient(160deg, #2a1d40, #17141f 70%);
  border-color: #3b2e55;
}
.card.link { display: block; color: inherit; transition: border-color .15s, transform .15s; }
.card.link:active { transform: scale(.985); }
.card.link:hover { border-color: var(--border-2); }
.section-title { display: flex; align-items: baseline; justify-content: space-between; margin: 26px 2px 10px; }

/* ---------- botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 20px; border-radius: 14px; border: 1px solid transparent;
  font-weight: 700; font-size: 15px; background: var(--surface-2); color: var(--text);
  transition: transform .12s, background .15s, border-color .15s, opacity .15s; white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .5; pointer-events: none; }
.btn.primary { background: linear-gradient(180deg, var(--brand-2), var(--brand)); box-shadow: 0 8px 24px -10px var(--brand-glow), inset 0 1px 0 rgba(255,255,255,.15); color: #fff; }
.btn.ghost { background: transparent; border-color: var(--border-2); }
.btn.danger { background: transparent; border-color: rgba(248,113,113,.4); color: var(--danger); }
.btn.ok { background: rgba(74,222,128,.14); border-color: rgba(74,222,128,.4); color: var(--ok); }
.btn.block { width: 100%; }
.btn.sm { height: 36px; padding: 0 14px; font-size: 13.5px; border-radius: 11px; }
.btn.icon { width: 40px; height: 40px; padding: 0; border-radius: 12px; }
.linkbtn { background: none; border: 0; color: var(--brand-3); font-weight: 600; padding: 0; }

/* ---------- formularios ---------- */
.field { display: block; margin-top: 14px; }
.field > span { display: block; font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
.field > small { display: block; color: var(--muted); font-size: 12px; margin-top: 5px; }
.input, select.input, textarea.input {
  width: 100%; height: 50px; padding: 0 14px; border-radius: 13px; border: 1px solid var(--border-2);
  background: var(--bg-2); outline: none; transition: border-color .15s, box-shadow .15s; font-size: 16px;
}
textarea.input { height: auto; min-height: 88px; padding: 12px 14px; resize: vertical; line-height: 1.45; }
.input:focus { border-color: var(--brand-2); box-shadow: 0 0 0 3px var(--brand-glow); }
.input::placeholder { color: #625b72; }
input[type=date].input { color-scheme: dark; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--border-2); background: var(--bg-2); color: var(--text-2);
  padding: 9px 14px; border-radius: 99px; font-size: 14px; font-weight: 600; transition: all .15s;
}
.chip.sm { padding: 6px 11px; font-size: 12.5px; }
.chip[aria-pressed=true], .chip.on { background: var(--brand); border-color: var(--brand-2); color: #fff; }

.options { display: grid; gap: 10px; }
.option {
  text-align: left; display: flex; gap: 14px; align-items: flex-start; width: 100%;
  padding: 15px 16px; border-radius: 16px; border: 1px solid var(--border-2); background: var(--bg-2); transition: all .15s;
}
.option .emo { font-size: 22px; line-height: 1; margin-top: 1px; }
.option b { display: block; font-size: 15px; }
.option small { color: var(--muted); font-size: 13px; display: block; margin-top: 2px; }
.option[aria-pressed=true] { border-color: var(--brand-3); background: linear-gradient(180deg, rgba(122,79,184,.22), rgba(122,79,184,.08)); box-shadow: 0 0 0 3px var(--brand-glow); }

.toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; }
.switch { position: relative; width: 50px; height: 30px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch i { position: absolute; inset: 0; background: var(--border-2); border-radius: 99px; transition: .2s; }
.switch i::after { content: ''; position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: .2s; }
.switch input:checked + i { background: var(--brand-2); }
.switch input:checked + i::after { transform: translateX(20px); }

/* ---------- avatar ---------- */
.avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--surface-2); flex: none; border: 1px solid var(--border-2); display: grid; place-items: center; font-weight: 800; color: var(--brand-3); overflow: hidden; }
.avatar.lg { width: 108px; height: 108px; font-size: 36px; }
.avatar.md { width: 64px; height: 64px; font-size: 22px; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-pick { position: relative; display: inline-block; cursor: pointer; }
.avatar-pick .cam { position: absolute; right: 2px; bottom: 2px; width: 34px; height: 34px; border-radius: 50%; background: var(--brand-2); display: grid; place-items: center; border: 3px solid var(--bg); }
.avatar-pick input { display: none; }

/* ---------- etiquetas ---------- */
.tag { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; padding: 4px 9px; border-radius: 99px; background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border); white-space: nowrap; }
.tag .dot { width: 7px; height: 7px; border-radius: 50%; }
.tag.reel { color: var(--reel); border-color: rgba(155,108,240,.35); background: rgba(155,108,240,.1); }
.tag.historia { color: var(--historia); border-color: rgba(241,127,182,.35); background: rgba(241,127,182,.1); }
.tag.carrusel { color: var(--carrusel); border-color: rgba(92,192,242,.35); background: rgba(92,192,242,.1); }
.tag.directo { color: var(--directo); border-color: rgba(245,200,76,.35); background: rgba(245,200,76,.1); }
.tag.launch { color: #fff; background: linear-gradient(90deg, #7a4fb8, #c45ba4); border: 0; }
.tag.fecha { color: #fdba74; border-color: rgba(251,146,60,.35); background: rgba(251,146,60,.08); }
.tag.ok { color: var(--ok); border-color: rgba(74,222,128,.35); background: rgba(74,222,128,.08); }
.tag.off { color: var(--danger); border-color: rgba(248,113,113,.35); background: rgba(248,113,113,.08); }

/* ---------- tarjeta de publicación ---------- */
.post { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); transition: border-color .15s, opacity .2s; }
.post + .post { margin-top: 8px; }
.post .fmt { width: 44px; height: 44px; border-radius: 13px; flex: none; display: grid; place-items: center; }
.post .fmt.reel { background: rgba(155,108,240,.16); color: var(--reel); }
.post .fmt.historia { background: rgba(241,127,182,.14); color: var(--historia); }
.post .fmt.carrusel { background: rgba(92,192,242,.14); color: var(--carrusel); }
.post .fmt.directo { background: rgba(245,200,76,.14); color: var(--directo); }
.post .body { flex: 1; min-width: 0; color: inherit; }
.post .title { font-weight: 700; font-size: 15px; line-height: 1.25; }
.post .meta { font-size: 12.5px; color: var(--muted); margin-top: 3px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.post.done { opacity: .55; }
.post.done .title { text-decoration: line-through; text-decoration-color: var(--muted); }
.check { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--border-2); background: transparent; display: grid; place-items: center; flex: none; color: transparent; transition: all .15s; }
.check.on { background: var(--ok); border-color: var(--ok); color: #08240f; }
.check:active { transform: scale(.9); }

/* ---------- progreso ---------- */
.ring { --p: 0; width: 76px; height: 76px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: conic-gradient(var(--brand-3) calc(var(--p) * 1%), rgba(255,255,255,.08) 0); }
.ring > div { width: 62px; height: 62px; border-radius: 50%; background: #1d1728; display: grid; place-items: center; font-weight: 800; font-stretch: 115%; font-size: 17px; }
.bar { height: 8px; border-radius: 99px; background: rgba(255,255,255,.08); overflow: hidden; }
.bar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand-2), var(--brand-3)); border-radius: 99px; transition: width .4s; }

/* ---------- calendario ---------- */
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cal-head .h1 { text-transform: capitalize; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.cal .dow { text-align: center; font-size: 11px; font-weight: 700; color: var(--muted); padding: 4px 0; letter-spacing: .06em; }
.day {
  position: relative; aspect-ratio: 1 / 1.08; border-radius: 12px; border: 1px solid var(--border); background: var(--surface);
  padding: 6px 4px 5px; display: flex; flex-direction: column; align-items: center; justify-content: space-between; font-weight: 700; font-size: 14px;
}
.day.empty { background: transparent; border-color: transparent; }
.day.today { border-color: var(--brand-3); box-shadow: inset 0 0 0 1px var(--brand-3); }
.day.sel { background: var(--brand); border-color: var(--brand-2); }
.day.past:not(.sel) { color: var(--muted); }
.day.alldone::after { content: ''; position: absolute; top: 5px; right: 5px; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.day .dots { display: flex; gap: 3px; flex-wrap: wrap; justify-content: center; }
.day .dots i { width: 6px; height: 6px; border-radius: 50%; }
.day .dots i.reel { background: var(--reel); } .day .dots i.historia { background: var(--historia); }
.day .dots i.carrusel { background: var(--carrusel); } .day .dots i.directo { background: var(--directo); }
.day .dots i.d { opacity: .3; }
.day .flag { position: absolute; top: 2px; left: 4px; font-size: 10px; }
.legend { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 12px; font-size: 12px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.legend i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }

/* ---------- ficha ---------- */
.ficha-block { margin-top: 22px; }
.ficha-block .eyebrow { margin-bottom: 8px; display: block; }
.hook { display: flex; gap: 10px; align-items: flex-start; padding: 12px 12px 12px 14px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--border); }
.hook + .hook { margin-top: 8px; }
.hook p { margin: 0; flex: 1; font-weight: 600; line-height: 1.4; }
.copy { flex: none; background: var(--surface-2); border: 1px solid var(--border-2); color: var(--text-2); border-radius: 10px; height: 32px; padding: 0 10px; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; gap: 5px; }
.copy.done { color: var(--ok); border-color: rgba(74,222,128,.4); }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li { position: relative; padding: 0 0 14px 44px; counter-increment: s; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; background: rgba(122,79,184,.2); color: var(--brand-3); font-size: 14px; }
.steps li:not(:last-child)::after { content: ''; position: absolute; left: 14.5px; top: 32px; bottom: 2px; width: 1px; background: var(--border-2); }
.kv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.kv > div { background: var(--bg-2); border: 1px solid var(--border); border-radius: 13px; padding: 10px 11px; }
.kv b { display: block; font-size: 14px; line-height: 1.25; }
.kv small { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.tip { display: flex; gap: 12px; padding: 14px; border-radius: 14px; background: rgba(250,204,21,.07); border: 1px solid rgba(250,204,21,.22); color: #f3e3a6; }
.sticky-actions { position: sticky; bottom: calc(var(--nav-h) + var(--safe-b) + 10px); display: flex; gap: 8px; margin-top: 26px; padding: 10px; border-radius: 18px; background: rgba(19,17,24,.85); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--border); }

/* ---------- navegación inferior ---------- */
.nav {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; z-index: 20; width: 100%; max-width: 560px;
  height: calc(var(--nav-h) + var(--safe-b)); padding: 0 8px var(--safe-b);
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: rgba(13,12,17,.88); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-top: 1px solid var(--border);
}
.nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--muted); font-size: 10.5px; font-weight: 700; letter-spacing: .02em; }
.nav a.on { color: #fff; }
.nav a.on svg { color: var(--brand-3); }

/* ---------- hoja modal ---------- */
.sheet-bg { position: fixed; inset: 0; z-index: 40; background: rgba(0,0,0,.6); animation: fadebg .2s ease; display: flex; align-items: flex-end; justify-content: center; }
@keyframes fadebg { from { opacity: 0; } }
.sheet { width: 100%; max-width: 560px; max-height: calc(92dvh - var(--safe-t)); overflow: auto; background: var(--bg-2); border: 1px solid var(--border); border-bottom: 0; border-radius: 24px 24px 0 0; padding: 10px 16px calc(24px + var(--safe-b)); animation: up .25s cubic-bezier(.2,.8,.2,1); }
.sheet .grab { width: 40px; height: 4px; border-radius: 99px; background: var(--border-2); margin: 4px auto 14px; }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: calc(var(--nav-h) + var(--safe-b) + 16px); transform: translateX(-50%); z-index: 60; background: #f5f2fa; color: #15121b; font-weight: 700; font-size: 14px; padding: 12px 18px; border-radius: 14px; box-shadow: 0 12px 30px rgba(0,0,0,.4); animation: toast .25s ease; max-width: calc(100% - 32px); }
.toast.err { background: var(--danger); color: #fff; }
@keyframes toast { from { opacity: 0; transform: translate(-50%, 10px); } }

/* ---------- login / onboarding ---------- */
.auth { min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; padding: calc(32px + var(--safe-t)) 20px calc(32px + var(--safe-b)); }
.auth .iso { width: 92px; margin: 0 auto 26px; }
.progress-top { display: flex; gap: 4px; margin-bottom: 26px; }
.progress-top i { flex: 1; height: 4px; border-radius: 99px; background: var(--border); transition: background .3s; }
.progress-top i.on { background: var(--brand-3); }
.ob-step { min-height: calc(100dvh - 190px); display: flex; flex-direction: column; }
.ob-step .grow-y { flex: 1; }
.ob-actions { display: flex; gap: 10px; margin-top: 26px; padding-bottom: var(--safe-b); }
.demo-banner { background: rgba(250,204,21,.1); border: 1px solid rgba(250,204,21,.3); color: #f3e3a6; padding: 10px 12px; border-radius: 12px; font-size: 13px; }
.notice { padding: 12px 14px; border-radius: 13px; font-size: 13.5px; background: rgba(248,113,113,.1); border: 1px solid rgba(248,113,113,.3); color: #fecaca; }
.notice.ok { background: rgba(74,222,128,.08); border-color: rgba(74,222,128,.3); color: #bbf7d0; }

/* ---------- listas ---------- */
.list-item { display: flex; align-items: center; gap: 12px; padding: 14px 4px; border-bottom: 1px solid var(--border); color: inherit; }
.list-item:last-child { border-bottom: 0; }
.list-item .ico { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); color: var(--brand-3); flex: none; }
.list-item .chev { color: var(--muted); }

.timeline { position: relative; padding-left: 4px; }
.tl-item { display: flex; gap: 12px; padding-bottom: 12px; position: relative; }
.tl-item .when { width: 58px; flex: none; text-align: right; font-size: 12px; color: var(--muted); padding-top: 13px; font-weight: 700; }
.tl-item .when b { display: block; color: var(--text-2); font-size: 13px; }
.tl-item.today .when b { color: var(--brand-3); }

.empty-state { text-align: center; padding: 30px 16px; color: var(--muted); }
.empty-state .big { font-size: 40px; margin-bottom: 8px; }

.stat { background: var(--bg-2); border: 1px solid var(--border); border-radius: 14px; padding: 12px; }
.stat b { font-size: 22px; font-stretch: 115%; display: block; font-weight: 800; }
.stat small { color: var(--muted); font-size: 12px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }

.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--border-2); border-top-color: var(--brand-3); animation: spin .8s linear infinite; margin: 40px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.splash { min-height: 100dvh; display: grid; place-items: center; }
.splash img { width: 70px; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .45; transform: scale(.94); } }

.search { position: relative; }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search .input { padding-left: 42px; }
.hscroll { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
.hscroll::-webkit-scrollbar { display: none; }
.hscroll .chip { flex: none; }

.checklist label { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--border); }
.checklist label:last-child { border-bottom: 0; }
.checklist input { width: 20px; height: 20px; accent-color: var(--brand-2); margin-top: 1px; flex: none; }

@media (min-width: 600px) {
  .view { padding-top: calc(32px + var(--safe-t)); }
}
a.post, button.post { color: inherit; }

/* barra superior translúcida para que el contenido no se mezcle con la hora / batería del iPhone */
body::after { content: ''; position: fixed; top: 0; left: 0; right: 0; height: var(--safe-t); background: rgba(13,12,17,.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); z-index: 30; pointer-events: none; }
.brandbar { min-height: 26px; }
.display { overflow-wrap: anywhere; }
.post .title { overflow-wrap: anywhere; }
.card.link .h3 { line-height: 1.25; }
.stat small { display: block; }
textarea.script { min-height: 260px; font-size: 15px; line-height: 1.55; font-family: var(--font); white-space: pre-wrap; }
.save-state { font-size: 12px; color: var(--muted); }
.save-state.ok { color: var(--ok); }

details.ck-phase > summary { list-style: none; cursor: pointer; }
details.ck-phase > summary::-webkit-details-marker { display: none; }
.ck-item.on b { text-decoration: line-through; color: var(--muted); }

/* herramientas */
details.cat > summary { list-style: none; cursor: pointer; gap: 12px; }
details.cat > summary::-webkit-details-marker { display: none; }
.cat-ico { width: 44px; height: 44px; border-radius: 13px; background: var(--surface-2); display: grid; place-items: center; flex: none; }
.cat-chev { color: var(--muted); transition: transform .2s; }
details.cat[open] .cat-chev { transform: rotate(90deg); }
details.cat .list-item:first-child { border-top: 1px solid var(--border); }

/* días especiales del calendario */
.day .num { line-height: 1; margin-top: 2px; }
.day .big-ico { font-size: 17px; line-height: 1; }
.day.launch { background: linear-gradient(160deg, rgba(196,91,164,.55), rgba(122,79,184,.45)); border-color: #c45ba4; color: #fff; }
.day.clip { background: linear-gradient(160deg, rgba(92,192,242,.35), rgba(122,79,184,.3)); border-color: #5cc0f2; color: #fff; }
.day.fecha { background: rgba(251,146,60,.13); border-color: rgba(251,146,60,.5); color: #fed7aa; }
.day.launch.sel, .day.clip.sel, .day.fecha.sel { box-shadow: 0 0 0 2px #fff inset; }
.day.past.launch, .day.past.clip, .day.past.fecha { opacity: .75; }
.legend .sw { width: 12px; height: 12px; border-radius: 4px; }
.legend .sw.launch { background: linear-gradient(160deg, #c45ba4, #7a4fb8); }
.legend .sw.clip { background: linear-gradient(160deg, #5cc0f2, #7a4fb8); }
.legend .sw.fecha { background: rgba(251,146,60,.6); }
.day-banner { margin-top: 10px; padding: 12px 14px; border-radius: 14px; font-weight: 700; font-size: 14.5px; }
.day-banner.launch { background: linear-gradient(120deg, rgba(196,91,164,.35), rgba(122,79,184,.3)); border: 1px solid #c45ba4; }
.day-banner.clip { background: rgba(92,192,242,.14); border: 1px solid rgba(92,192,242,.5); }
.day-banner.fecha { background: rgba(251,146,60,.09); border: 1px solid rgba(251,146,60,.4); color: #fed7aa; }
.nav a { font-size: 10px; letter-spacing: 0; white-space: nowrap; min-width: 0; }
@media (max-width: 360px) { .nav a { font-size: 9px; } }

.artist-mode { position: sticky; top: 0; z-index: 25; margin: 0 auto; padding: calc(8px + var(--safe-t)) 16px 8px; background: #3b2a12; color: #fde68a; font-size: 12.5px; font-weight: 700; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.artist-mode button { background: #fde68a; color: #3b2a12; border: 0; border-radius: 99px; padding: 5px 11px; font-weight: 800; font-size: 12px; flex: none; }
.artist-mode + .view { padding-top: 16px; }

/* herramientas: jerarquía clara */
.cat-count { display: inline-block; margin-top: 6px; font-size: 11px; font-weight: 700; color: var(--brand-3); background: rgba(122,79,184,.15); border-radius: 99px; padding: 2px 8px; }
details.cat .cat-chev { transform: rotate(90deg); }
details.cat[open] .cat-chev { transform: rotate(-90deg); }
.cat-children { margin: 14px 0 2px 21px; padding-left: 16px; border-left: 2px solid var(--border-2); display: grid; gap: 8px; }
.tool { position: relative; display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--border); color: inherit; transition: border-color .15s, transform .12s; }
.tool::before { content: ''; position: absolute; left: -17px; top: 50%; width: 14px; height: 2px; background: var(--border-2); }
.tool:active { transform: scale(.985); }
.tool:hover { border-color: var(--border-2); }
.tool b { font-size: 14.5px; }
.tool-ico { width: 34px; height: 34px; border-radius: 10px; background: var(--surface-2); display: grid; place-items: center; flex: none; }
.tool .chev { color: var(--muted); }

/* pestañas tipo menú */
.tabs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; padding: 4px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 16px 16px 0 0; border-bottom: 0; }
.tabs button { display: flex; align-items: center; justify-content: center; gap: 7px; height: 48px; border: 0; border-radius: 12px; background: transparent; color: var(--muted); font-weight: 700; font-size: 14px; transition: background .15s, color .15s; }
.tabs button small { font-size: 11px; font-weight: 800; padding: 2px 7px; border-radius: 99px; background: rgba(255,255,255,.06); color: var(--muted); }
.tabs button.on { background: linear-gradient(180deg, var(--brand-2), var(--brand)); color: #fff; box-shadow: 0 6px 18px -8px var(--brand-glow); }
.tabs button.on small { background: rgba(255,255,255,.2); color: #fff; }
.tab-panel { border: 1px solid var(--border); border-top: 2px solid var(--brand-2); border-radius: 0 0 16px 16px; padding: 4px 12px 14px; background: rgba(255,255,255,.015); }
.tab-panel .section-title:first-child { margin-top: 12px; }
@media (max-width: 380px) { .tabs button span { font-size: 12.5px; } }

/* herramientas como iconos de app */
.app-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.app-tile { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 14px 6px 12px; border-radius: 18px; background: var(--bg-2); border: 1px solid var(--border); color: inherit; transition: transform .12s, border-color .15s; aspect-ratio: 1 / 1.05; justify-content: center; }
.app-tile:active { transform: scale(.94); }
.app-tile:hover { border-color: var(--border-2); }
.app-tile b { font-size: 12.5px; line-height: 1.2; font-weight: 700; }
.app-ico { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(145deg, color-mix(in srgb, var(--c) 85%, #fff 0%), color-mix(in srgb, var(--c) 55%, #1a1424));
  box-shadow: 0 8px 18px -10px var(--c), inset 0 1px 0 rgba(255,255,255,.25); }
@media (min-width: 480px) { .app-grid { grid-template-columns: repeat(4, 1fr); } }
.app-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 8px; }
@media (min-width: 480px) { .app-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.app-tile { aspect-ratio: auto; padding: 4px 0; background: none; border: 0; min-width: 0; justify-content: flex-start; }
.app-tile b { font-size: 11.5px; font-weight: 600; color: var(--text-2); overflow-wrap: break-word; hyphens: auto; line-height: 1.25; }
.app-ico { width: 60px; height: 60px; border-radius: 17px; }
@media (max-width: 360px) { .app-ico { width: 52px; height: 52px; } }

.nav { grid-template-columns: repeat(5, 1fr); padding: 0 2px var(--safe-b); }
.nav a { font-size: 10px; gap: 3px; }
.nav a svg { width: 22px; height: 22px; }

/* mi música */
.loadbar { margin-top: 16px; padding: 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
.loadbar-txt { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; color: var(--brand-3); margin-bottom: 10px; }
.loadbar .bar > i { transition: width .3s ease; }
.song { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); color: inherit; }
.song + .song { margin-top: 8px; }
.song .title { font-weight: 700; }
.song .meta { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-top: 4px; }
.song-ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; flex: none; background: rgba(155,108,240,.16); color: var(--reel); }
.song-ico.ok { background: rgba(74,222,128,.14); color: var(--ok); }
.song-ico.warn { background: rgba(251,191,36,.14); color: var(--warn); }
.song-ico.off { background: rgba(255,255,255,.06); color: var(--muted); }
.fase { display: inline-block; font-size: 11.5px; font-weight: 800; padding: 3px 9px; border-radius: 99px; background: rgba(155,108,240,.16); color: var(--brand-3); }
.fase.ok { background: rgba(74,222,128,.14); color: var(--ok); }
.fase.warn { background: rgba(251,191,36,.14); color: var(--warn); }
.fase.off { background: rgba(255,255,255,.06); color: var(--muted); }
.steps-h { display: grid; grid-template-columns: repeat(5, 1fr); position: relative; }
.steps-h::before { content: ''; position: absolute; left: 10%; right: 10%; top: 9px; height: 2px; background: var(--border-2); }
.sh { display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; text-align: center; }
.sh i { width: 20px; height: 20px; border-radius: 50%; background: var(--bg-2); border: 2px solid var(--border-2); z-index: 1; }
.sh span { font-size: 10.5px; font-weight: 700; color: var(--muted); }
.sh.done i { background: var(--brand-2); border-color: var(--brand-2); }
.sh.now i { background: var(--brand-3); border-color: #fff; box-shadow: 0 0 0 4px var(--brand-glow); }
.sh.now span { color: #fff; }
.day.rec:not(.launch):not(.clip):not(.fecha) { background: rgba(248,113,113,.14); border-color: rgba(248,113,113,.55); }
.day-banner.rec { background: rgba(248,113,113,.1); border: 1px solid rgba(248,113,113,.45); color: #fecaca; }
.legend .sw.rec { background: rgba(248,113,113,.5); }

.samply-embed { border-radius: 14px; overflow: hidden; border: 1px solid var(--border); background: #000; }
.samply-embed iframe { display: block; width: 100%; border: 0; }

.samply-open { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; color: #fff;
  background: linear-gradient(135deg, var(--brand-2), var(--brand)); box-shadow: 0 10px 24px -12px var(--brand-glow); }
.samply-open b { display: block; font-size: 15px; }
.samply-open small { display: block; font-size: 12px; opacity: .8; }
.samply-open .play { width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.18); display: grid; place-items: center; flex: none; }
.samply-open:active { transform: scale(.98); }

/* ===================== ESCRITORIO (PC, 16:9) ===================== */
.nav .nav-brand, .nav .nav-me, .lbl-d, .desk-only { display: none; }
.song-grid, .list-grid { display: grid; gap: 8px; }
.song-grid > .song + .song, .list-grid > .post + .post { margin-top: 0; }
.quick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quick .card { display: flex; flex-direction: column; gap: 10px; color: var(--brand-3); }
.quick .card b { color: var(--text); font-size: 14px; }

/* inicio: lanzamiento + canciones en curso */
.home-top { display: grid; gap: 10px; }
.launch-card { border-color: #4b3470; background: linear-gradient(120deg, rgba(196,91,164,.18), rgba(122,79,184,.12)); }
.launch-ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: rgba(255,255,255,.08); color: #f0b4dc; flex: none; }
.curso-ico { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: rgba(122,79,184,.18); color: var(--brand-3); }
.curso-card .song { background: var(--bg-2); }

@media (min-width: 1024px) {
  .home-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 16px; align-items: start; }

  :root { --side: 248px; }
  body::before { left: var(--side); }
  #app { max-width: none; }
  .view, .view.no-nav { margin-left: var(--side); max-width: 1240px; padding: calc(36px + var(--safe-t)) 48px 64px; }
  .view.no-nav { margin: 0 auto; max-width: 560px; }
  .artist-mode { margin-left: var(--side); }

  /* barra lateral */
  .nav { left: 0; top: 0; bottom: 0; transform: none; width: var(--side); max-width: none; height: 100vh; padding: 24px 14px;
    display: flex; flex-direction: column; gap: 4px; border-top: 0; border-right: 1px solid var(--border); background: rgba(13,12,17,.96); }
  .nav .nav-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 4px 12px 26px; }
  .nav-brand img { height: 15px; }
  .nav a.nav-item { flex-direction: row; justify-content: flex-start; gap: 12px; padding: 11px 14px; border-radius: 12px; font-size: 14.5px; font-weight: 700; letter-spacing: 0; }
  .nav a.nav-item svg { width: 22px; height: 22px; }
  .nav a.nav-item:hover { background: var(--surface); color: var(--text); }
  .nav a.nav-item.on { background: var(--surface-2); color: #fff; }
  .lbl-m { display: none; }
  .lbl-d { display: inline; }
  .nav .nav-me { display: flex; align-items: center; gap: 10px; margin-top: auto; padding: 12px; border-radius: 14px; border: 1px solid var(--border); color: var(--text); }
  .nav-me img, .nav-me .nav-ini { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex: none; background: var(--surface-2); display: grid; place-items: center; font-weight: 800; color: var(--brand-3); }
  .nav-me b { display: block; font-size: 14px; } .nav-me small { color: var(--muted); font-size: 12px; }
  .nav-me:hover { border-color: var(--border-2); }

  .brandbar { display: none; }
  .desk-only { display: block; }
  .display { font-size: 44px; }

  /* inicio en dos columnas */
  .home-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr); gap: 32px; align-items: start; }
  .home-grid .home-b > .section-title:first-child { margin-top: 18px; }

  /* calendario: mes a la izquierda, día a la derecha */
  .cal-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(320px, 1fr); gap: 36px; align-items: start; }
  .cal-right { position: sticky; top: 24px; }
  .cal-right > .section-title:first-child { margin-top: 6px; }
  .day { aspect-ratio: 1 / .82; font-size: 15px; }

  /* listas en rejilla */
  .song-grid, .list-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .app-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .app-tile b { font-size: 13px; }
  .grid-3 { gap: 14px; }

  /* fichas y formularios más estrechos para leer cómodo */
  .view:has(.steps), .view:has(#pf), .view:has(#lf), .view:has(#rf), .view:has(.steps-h) { max-width: 860px; }

  /* acciones fijas, hojas y avisos */
  .sticky-actions { bottom: 16px; }
  .sheet-bg { align-items: center; }
  .sheet { max-width: 620px; border-radius: 22px; border-bottom: 1px solid var(--border); max-height: 84vh; }
  .sheet .grab { display: none; }
  .toast { bottom: 28px; left: calc(50% + var(--side) / 2); }

  .card.link:hover, .post:hover, .song:hover, .app-tile:hover { border-color: var(--border-2); }
  .app-tile:hover .app-ico { transform: translateY(-2px); }
  .app-ico { transition: transform .15s; }
}
@media (min-width: 1440px) {
  .view { max-width: 1320px; }
}
@media (min-width: 1024px) {
  .nav a.nav-brand { align-items: flex-start; flex-direction: column; justify-content: flex-start; }
  .nav a.nav-me { flex-direction: row; justify-content: flex-start; text-align: left; font-size: 13px; }
  .view:has(.timeline), .view:has(.ck-phase), .view:has(.tabs) { max-width: 980px; }
  .home-grid + * { margin-top: 0; }
}
#allFiles { display: flex; align-items: center; }

/* citas con Estudio Siete (calendario de Seven) */
.day.cita { background: linear-gradient(160deg, rgba(250,204,21,.4), rgba(217,160,6,.24)); border-color: #facc15; color: #fff; }
.day.cita.sel { box-shadow: 0 0 0 2px #fff inset; }
.legend .sw.cita { background: linear-gradient(160deg, #facc15, #d9a006); }
.cita-card { display: flex; align-items: center; gap: 12px; margin-top: 10px; padding: 12px 14px; border-radius: 16px; background: linear-gradient(120deg, rgba(250,204,21,.16), rgba(217,160,6,.07)); border: 1px solid rgba(250,204,21,.7); }
.cita-card + .cita-card { margin-top: 8px; }
.cita-card .title { font-weight: 800; font-size: 15px; color: #fef3c7; }
.cita-card .tiny { margin-top: 2px; }
.cita-ico { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; font-size: 20px; background: rgba(250,204,21,.18); }
.cita-card .btn { flex: none; }
#today .cita-card, #tomorrow .cita-card { margin-top: 0; margin-bottom: 8px; }

/* pagos pendientes: que se vea y moleste un poco */
.pay-card { position: relative; margin-top: 18px; padding: 16px; border-radius: 18px; background: linear-gradient(135deg, rgba(239,68,68,.22), rgba(127,29,29,.18)); border: 1px solid rgba(248,113,113,.75); box-shadow: 0 10px 30px -14px rgba(239,68,68,.7); }
.pay-card .eyebrow { color: #fca5a5; }
.pay-amount { font-size: 34px; font-weight: 900; font-stretch: 115%; color: #fff; line-height: 1.1; margin-top: 4px; }
.pay-bar { height: 8px; border-radius: 99px; background: rgba(255,255,255,.1); overflow: hidden; margin-top: 12px; }
.pay-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #f87171, #fbbf24); }
.pay-list { margin-top: 12px; display: grid; gap: 6px; }
.pay-list a { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; color: var(--text); padding: 8px 10px; border-radius: 10px; background: rgba(0,0,0,.22); }
.pay-list a b { color: #fca5a5; white-space: nowrap; }
.pay-dot { position: absolute; top: 14px; right: 14px; width: 12px; height: 12px; border-radius: 50%; background: #ef4444; box-shadow: 0 0 0 0 rgba(239,68,68,.7); animation: pulse-red 1.6s infinite; }
@keyframes pulse-red { 0% { box-shadow: 0 0 0 0 rgba(239,68,68,.7); } 70% { box-shadow: 0 0 0 10px rgba(239,68,68,0); } 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0); } }
.stat.paid b { color: var(--ok); }
/* puntito rojo en el menú */
.nav-item { position: relative; }
.nav-item .nav-dot { position: absolute; top: 9px; left: calc(50% + 7px); width: 9px; height: 9px; border-radius: 50%; background: #ef4444; border: 2px solid #0d0c11; }
@media (min-width: 1024px) {
  .nav-item .nav-dot { position: static; margin-left: auto; width: 9px; height: 9px; border: 0; animation: pulse-red 1.6s infinite; }
  .pay-card { padding: 20px 22px; }
}
.sheet .pay-amount { font-size: 40px; }

.pay-btn { width: 100%; background: linear-gradient(135deg, #ef4444, #dc2626); color: #fff; border: 0; font-weight: 800; box-shadow: 0 10px 24px -12px rgba(239,68,68,.9); }
.pay-btn:hover { filter: brightness(1.08); }
.pay-row { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; padding: 10px 12px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--border); }
.pay-row b { color: #fca5a5; white-space: nowrap; }
.pay-otra summary { cursor: pointer; color: var(--text-2); }
.pay-alt { padding: 14px; border-radius: 14px; border: 1px dashed var(--border-2); background: var(--bg-2); }
.pay-bizum { font-size: 20px; font-weight: 800; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.curso-card .song-grid { grid-template-columns: 1fr; }

/* proceso con número variable de pasos */
.steps-h { grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); }
.steps-h::before { left: calc(50% / var(--n, 5)); right: calc(50% / var(--n, 5)); }
.steps-scroll { overflow-x: auto; margin: 0 -4px; padding: 0 4px; scrollbar-width: none; }
.steps-scroll::-webkit-scrollbar { display: none; }
@media (max-width: 600px) { .steps-scroll .steps-h { min-width: calc(var(--n, 5) * 76px); } .sh span { font-size: 10.5px; } }
/* secciones plegables */
.fold > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; }
.fold > summary::-webkit-details-marker { display: none; }
.fold-n { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; margin-left: 6px; border-radius: 99px; font-size: 12px; background: var(--surface-2); color: var(--text-2); vertical-align: middle; }
.fold-chev { color: var(--muted); transition: transform .2s; display: grid; }
.fold[open] .fold-chev { transform: rotate(90deg); }
/* Samply */
.samply-ico { color: #fff; background: linear-gradient(145deg, #ff6a3d, #c2410c); }
.sheet.wide { max-width: 1100px; }

/* Inicio: una sola rejilla ordenada */
.home { display: grid; gap: 10px; }
.home > div > .card { height: 100%; }
.home .b-launch .launch-card, .home .b-ring .hero { display: flex; align-items: center; }
.home .b-launch .launch-card > .row { width: 100%; }
.home .b-hoy > .section-title:first-child, .home .b-man > .section-title:first-child { margin-top: 14px; }
@media (min-width: 1024px) {
  .home { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "aviso aviso" "launch curso" "ring ring" "hoy man"; gap: 20px 28px; align-items: start; }
  .home .b-aviso { grid-area: aviso; }
  .home .b-aviso:empty { display: none; }
  .home .b-launch { grid-area: launch; align-self: stretch; }
  .home .b-curso { grid-area: curso; align-self: stretch; }
  .home .b-ring { grid-area: ring; }
  .home .b-hoy { grid-area: hoy; }
  .home .b-man { grid-area: man; }
  .home .b-hoy > .section-title:first-child { margin-top: 4px; }
  .home .b-man > .section-title:first-child { margin-top: 4px; }
}

/* Prepara tu sesión */
.b-aviso:empty { display: none; }
.sesion-aviso { position: relative; display: block; border-color: rgba(250,204,21,.7); background: linear-gradient(120deg, rgba(250,204,21,.16), rgba(217,160,6,.06)); }
.sesion-ico { width: 46px; height: 46px; flex: none; border-radius: 14px; display: grid; place-items: center; font-size: 22px; background: rgba(250,204,21,.18); }
.sesion-dot { position: absolute; top: 12px; right: 12px; width: 10px; height: 10px; border-radius: 50%; background: #facc15; box-shadow: 0 0 0 0 rgba(250,204,21,.7); animation: pulse-amber 1.6s infinite; }
@keyframes pulse-amber { 0% { box-shadow: 0 0 0 0 rgba(250,204,21,.7); } 70% { box-shadow: 0 0 0 10px rgba(250,204,21,0); } 100% { box-shadow: 0 0 0 0 rgba(250,204,21,0); } }
.sesion-head { border-color: rgba(250,204,21,.6); background: linear-gradient(120deg, rgba(250,204,21,.14), rgba(217,160,6,.05)); }
@media (min-width: 1024px) {
  .sesion-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 24px; align-items: start; }
  .sesion-layout > div:first-child { position: sticky; top: 24px; }
  .sesion-layout > div:last-child > .ck-phase:first-child { margin-top: 0; }
}

/* Libreta de letras */
@media (min-width: 1024px) { .mob-only { display: none !important; } }
.letra-card { display: block; min-width: 0; }
.letra-ext { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tag.letra-borrador { color: var(--text-2); }
.tag.letra-idea { color: #fde68a; border-color: rgba(250,204,21,.4); background: rgba(250,204,21,.08); }
.tag.letra-terminada { color: var(--ok); border-color: rgba(52,211,153,.4); background: rgba(52,211,153,.08); }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--border); }
.seg-b { padding: 9px 4px; border-radius: 10px; font-size: 13px; font-weight: 700; color: var(--muted); background: none; border: 0; cursor: pointer; }
.seg-b.on { background: var(--brand); color: #fff; }
.ac-wrap { position: relative; }
.ac-list { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 20; background: var(--surface-2); border: 1px solid var(--border-2); border-radius: 14px; padding: 4px; box-shadow: 0 16px 40px rgba(0,0,0,.5); max-height: 260px; overflow: auto; }
.ac-item { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; padding: 10px; border-radius: 10px; background: none; border: 0; color: var(--text); font-size: 14px; cursor: pointer; }
.ac-item:hover { background: var(--surface); }
.ac-item svg { color: var(--brand-3); flex: none; }
.yt-box { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; }
.yt-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.letra-layout { display: grid; gap: 12px; margin-top: 8px; }
.letra-main { order: 2; }
.letra-text { width: 100%; height: auto; min-height: 320px; resize: vertical; font-size: 16px; line-height: 1.7; padding: 16px; white-space: pre-wrap; }
@media (min-width: 1024px) {
  .letra-layout { grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr); grid-template-areas: "main side"; gap: 24px; align-items: start; }
  .letra-main { grid-area: main; }
  .letra-side { grid-area: side; position: sticky; top: 24px; }
  .letra-text { height: calc(100vh - 170px) !important; min-height: 420px; resize: none; font-size: 17px; padding: 22px 26px; }
  .view:has(.letra-layout) { max-width: 1240px; }
}
@media (min-width: 1024px) { .btn.desk-only { display: inline-flex; } }

/* Modo 4x4 */
.bloques { display: grid; gap: 10px; }
.bloque { padding: 12px 14px; }
.bloque .eyebrow { color: var(--brand-3); }
.verso { display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--border); }
.verso:last-child { border-bottom: 0; }
.verso-n { width: 18px; flex: none; text-align: right; font-size: 12px; font-weight: 800; color: var(--muted); }
.verso-in { flex: 1; min-width: 0; background: none; border: 0; outline: none; color: var(--text); font-size: 16px; padding: 12px 0; font-family: inherit; }
.verso-in::placeholder { color: #4d4759; }
.icon-btn { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: none; border: 0; color: var(--muted); cursor: pointer; }
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.mb-1 { margin-bottom: 6px; }
@media (min-width: 1024px) { .bloques { max-height: calc(100vh - 170px); overflow: auto; padding-right: 4px; } .verso-in { font-size: 17px; } }
.trash-btn { width: 32px; height: 32px; margin: -6px -6px -6px 0; }
.trash-btn:hover { color: var(--danger); background: rgba(248,113,113,.1); }

/* Ayudante de escritura */
.ay { display: grid; gap: 10px; }
.ay-animos { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.ay-animo { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 4px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--border); color: var(--text-2); font-size: 12.5px; font-weight: 700; cursor: pointer; text-align: center; }
.ay-animo span { font-size: 22px; }
.ay-animo.on { background: rgba(122,79,184,.25); border-color: var(--brand-2); color: #fff; }
.ay-modos { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ay-modo { text-align: left; padding: 12px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--border); color: var(--text-2); cursor: pointer; }
.ay-modo b { display: block; font-size: 13.5px; color: var(--text); }
.ay-modo span { display: block; font-size: 11.5px; margin-top: 4px; line-height: 1.35; color: var(--muted); }
.ay-modo.on { background: rgba(122,79,184,.25); border-color: var(--brand-2); }
.ay-resumen { display: block; width: 100%; text-align: left; cursor: pointer; color: var(--text); padding: 12px 14px; }
.ay-resumen:hover { border-color: var(--border-2); }
.ay-grid { display: grid; gap: 10px; }
.ay-ico { width: 30px; height: 30px; flex: none; border-radius: 9px; display: grid; place-items: center; background: var(--surface-2); font-size: 15px; }
.ay-line { padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 15px; line-height: 1.45; }
.ay-line:last-child { border-bottom: 0; }
.ay-arranque { font-size: 18px; font-weight: 700; line-height: 1.4; color: #f0e6ff; }
.ay-acciones .btn { min-width: 0; }
.escritura { display: grid; gap: 14px; }
@media (min-width: 1024px) {
  .ay-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
  .ay-grid > .ay-card:first-child { grid-column: 1 / -1; }
  .ay-grid > .ay-card + .ay-card { margin-top: 0; }
  .escritura.dual { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 24px; align-items: start; }
  .escritura.dual > #ayBox { position: sticky; top: 20px; max-height: calc(100vh - 40px); overflow: auto; padding-right: 4px; }
  .escritura.dual .ay-grid { grid-template-columns: 1fr; }
  .escritura.dual .ay-animos { grid-template-columns: repeat(3, 1fr); }
  .escritura.dual .letra-layout { grid-template-columns: 1fr; grid-template-areas: "side" "main"; gap: 12px; }
  .escritura.dual .letra-side { position: static; }
  .escritura.dual .letra-text { height: calc(100vh - 430px) !important; min-height: 380px; }
  .escritura.dual .bloques { max-height: none; }
  .view:has(.escritura.dual) { max-width: 1320px; }
}
.ay-acciones #llevar { flex-basis: 100%; }
.ay-acciones #todas { flex: 1; }
@media (min-width: 1024px) { .ay-acciones #llevar { flex-basis: auto; } .ay-acciones #todas { flex: none; } }

/* Diccionario de rimas */
.rima-tag { display: inline-block; padding: 2px 10px; border-radius: 99px; background: rgba(34,211,238,.14); color: #a5f3fc; font-weight: 800; font-size: 13px; }
.rimas-lista { display: flex; flex-wrap: wrap; gap: 6px; }
.rima { padding: 8px 12px; border-radius: 11px; background: var(--bg-2); border: 1px solid var(--border); color: var(--text); font-size: 15px; font-weight: 600; cursor: pointer; transition: background .15s, border-color .15s; }
.rima:hover { border-color: var(--border-2); }
.rima.ok { background: rgba(52,211,153,.18); border-color: rgba(52,211,153,.6); }
@media (min-width: 1024px) {
  .rimas { display: grid; grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); gap: 24px; align-items: start; }
  .rimas > .rimas-buscar { position: sticky; top: 24px; }
  .rimas > #rres { margin-top: 0; }
}

/* Rimas dentro de la Libreta */
.rimas-panel #rres { max-height: none; }
.rimas-panel .rimas-lista .rima { font-size: 14px; padding: 7px 10px; }
.btn.on { border-color: var(--brand-2); color: #fff; background: rgba(122,79,184,.2); }
.aviso-tesitura { padding: 12px 14px; border-radius: 14px; background: rgba(250,204,21,.1); border: 1px solid rgba(250,204,21,.45); color: #fef3c7; font-size: 14px; line-height: 1.45; }

/* Medidor de rango vocal */
.pasos { margin: 0; padding-left: 20px; display: grid; gap: 8px; font-size: 14.5px; line-height: 1.45; color: var(--text-2); }
.pasos b { color: var(--text); }
.nota-sel { display: grid; grid-template-columns: 1.6fr 1fr; gap: 8px; margin-top: 6px; }
.medidor-t { font-size: 34px; font-weight: 900; font-stretch: 115%; line-height: 1.1; margin: 4px 0 6px; background: linear-gradient(90deg, #fdba74, #f472b6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.medidor-res { border-color: rgba(249,115,22,.5); }
.rango { position: relative; height: 92px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--border); }
.rango-t, .rango-u { position: absolute; height: 26px; border-radius: 8px; display: flex; align-items: center; overflow: visible; }
.rango-t { top: 10px; background: rgba(249,115,22,.25); border: 1px solid rgba(249,115,22,.7); }
.rango-u { top: 42px; background: rgba(122,79,184,.45); border: 1px solid var(--brand-2); }
.rango-t span, .rango-u span { font-size: 11px; font-weight: 800; padding: 0 8px; white-space: nowrap; }
.rango-esc { position: absolute; left: 0; right: 0; bottom: 4px; height: 14px; font-size: 10px; color: var(--muted); }
.rango-esc span { position: absolute; transform: translateX(-50%); }
.medidor-layout { display: grid; gap: 12px; }
@media (min-width: 1024px) {
  .medidor-layout { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px; align-items: start; }
  .medidor-layout > div:last-child { position: sticky; top: 24px; }
}

/* Calentamiento vocal */
.cal-grupo { margin-top: 12px; }
.calent-layout { display: grid; gap: 12px; grid-template-areas: "sel" "tips" "video"; }
.calent-layout .c-sel { grid-area: sel; } .calent-layout .c-tips { grid-area: tips; } .calent-layout .calent-video { grid-area: video; }
@media (min-width: 1024px) {
  .calent-layout { grid-template-columns: minmax(300px, 400px) minmax(0, 1fr); grid-template-areas: "sel video" "tips video"; grid-template-rows: auto 1fr; gap: 16px 24px; align-items: start; }
  .calent-layout .calent-video { position: sticky; top: 24px; }
}

/* Práctica vocal */
.practica-layout { display: grid; gap: 12px; }
.practica-lista .eyebrow:first-child { margin-top: 0; }
.practica-item { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; cursor: pointer; color: var(--text); padding: 12px 14px; margin-top: 8px; }
.practica-item .grow { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.practica-item:hover { border-color: var(--border-2); }
.practica-item.on { border-color: var(--brand-2); background: color-mix(in srgb, var(--brand-2) 16%, var(--surface)); }
.practica-play { color: var(--muted); font-size: 12px; font-weight: 700; white-space: nowrap; }
.practica-item.on .practica-play { color: var(--brand-3); }
@media (min-width: 1024px) {
  .practica-layout { grid-template-columns: minmax(0, 1fr) minmax(320px, 420px); gap: 24px; align-items: start; }
  .practica-video { position: sticky; top: 24px; }
}
.practica-aviso { display: flex; align-items: center; gap: 14px; padding: 16px 18px; color: var(--text); text-decoration: none; border-color: color-mix(in srgb, var(--warn) 45%, var(--border)); background: color-mix(in srgb, var(--warn) 9%, var(--surface)); }
.practica-aviso:hover { border-color: var(--warn); }
.practica-aviso .grow { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.practica-aviso b { font-size: 16px; }
.practica-aviso-ico { font-size: 28px; line-height: 1; }
.practica-aviso-btn { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 700; color: var(--warn); white-space: nowrap; }
@media (max-width: 600px) { .practica-aviso { flex-wrap: wrap; } .practica-aviso-btn { width: 100%; justify-content: flex-end; } }

/* Presupuesto de lanzamiento */
.pp-modos { max-width: 460px; }
.pp-duo { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
.pp-duo > * { min-width: 0; }
@media (min-width: 900px) { .pp-duo { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: stretch; } }
.pp-input, .pp-result { display: flex; flex-direction: column; gap: 14px; }
.pp-big { display: flex; align-items: baseline; gap: 10px; border-bottom: 2px solid var(--border); padding-bottom: 4px; }
.pp-big:focus-within { border-color: var(--brand-2); }
.pp-big input { flex: 1; min-width: 0; background: transparent; border: 0; outline: none; color: var(--text); font: 800 clamp(32px, 6vw, 44px)/1.1 var(--font); letter-spacing: -.02em; font-variant-numeric: tabular-nums; padding: 0; }
.pp-big span { color: var(--muted); font-weight: 700; }
.pp-opts { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; margin-top: auto; align-items: start; }
.pp-result { position: relative; overflow: hidden; }
.pp-money { font-size: clamp(44px, 8vw, 64px); font-weight: 800; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.pp-money span { color: var(--brand-3); }
.pp-stack { display: flex; height: 12px; border-radius: 6px; overflow: hidden; background: var(--border); gap: 2px; }
.pp-stack span { display: block; height: 100%; transition: width .25s ease; }
.pp-legend { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px 16px; }
.pp-legend div { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
.pp-legend i, .pp-ghead i { width: 9px; height: 14px; border-radius: 3px; flex: none; }
.pp-legend b { margin-left: auto; font-variant-numeric: tabular-nums; font-size: 13px; }
.pp-alert { display: flex; gap: 10px; align-items: flex-start; background: rgba(251,191,36,.08); border: 1px solid rgba(251,191,36,.35); color: #f3d9a4; border-radius: 12px; padding: 12px 14px; font-size: 13.5px; }
.pp-alert b { color: var(--warn); }
.pp-actions { margin-top: auto; }
.pp-group { border-top: 1px solid var(--border); padding-top: 14px; margin-top: 14px; }
.pp-group:first-child { border-top: 0; margin-top: 0; padding-top: 0; }
.pp-ghead { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.pp-ghead span { margin-left: auto; color: var(--muted); font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.pp-item { display: grid; grid-template-columns: 22px minmax(0, 1fr) 120px 100px; gap: 12px; align-items: center; padding-block: 10px; border-top: 1px dashed var(--border); }
.pp-ghead + .pp-item, .pp-pack > .pp-item:first-child { border-top: 0; }
.pp-item input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--brand-2); margin: 0; cursor: pointer; }
.pp-nm { font-weight: 700; font-size: 14px; line-height: 1.25; cursor: pointer; }
.pp-nm small { display: block; font-weight: 400; font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.pp-amt { display: flex; align-items: center; gap: 6px; }
.pp-amt .input { text-align: right; padding: 9px 10px; font-variant-numeric: tabular-nums; }
.pp-amt .input[readonly] { background: transparent; border-color: transparent; }
.pp-amt span { color: var(--muted); font-size: 12px; }
.pp-st { font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 6px 8px; border-radius: 999px; text-align: center; white-space: nowrap; }
.pp-st.ok { color: var(--ok); background: rgba(74,222,128,.13); }
.pp-st.low { color: var(--danger); background: rgba(248,113,113,.13); }
.pp-st.high { color: #f08a3c; background: rgba(240,138,60,.13); }
.pp-st.off { color: var(--muted); }
.pp-item.is-off .pp-nm, .pp-item.is-off .pp-amt { opacity: .4; }
.pp-item.is-locked .pp-amt .input { border-color: var(--brand-2); background: rgba(122,79,184,.14); }
.pp-pack { background: var(--bg-2); border-radius: 14px; padding: 2px 12px 4px; margin-block: 8px; }
.pp-pack .pp-item.sub { padding-left: 18px; }
.pp-notes { display: grid; gap: 12px; }
@media (min-width: 900px) { .pp-notes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .pp-item { grid-template-columns: 22px minmax(0, 1fr) 104px; gap: 6px 10px; }
  .pp-item .pp-st { grid-column: 2 / -1; justify-self: start; }
  .pp-pack { padding-inline: 8px; }
  .pp-pack .pp-item.sub { padding-left: 8px; }
}

/* Streams a euros */
.st-periodo { margin-top: auto; max-width: 260px; }
.st-bar { height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--border), var(--brand-2), var(--border)); }
.st-ends { display: flex; justify-content: space-between; font-size: 12.5px; font-weight: 700; color: var(--muted); margin-top: 8px; font-variant-numeric: tabular-nums; }
.st-ends span:nth-child(2) { color: var(--text); }
.st-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: auto; }
.st-facts > div { background: var(--bg-2); border-radius: 12px; padding: 10px 12px; }
.st-facts b { display: block; font-size: 19px; margin-top: 4px; font-variant-numeric: tabular-nums; }
.st-duo { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .st-duo { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; } }
.st-strip { display: grid; grid-template-columns: 116px minmax(0, 1fr) 40px 70px; align-items: center; gap: 12px; padding-block: 10px; border-top: 1px solid var(--border); }
.st-strip:first-child { border-top: 0; }
.st-strip.st3 { grid-template-columns: 116px minmax(0, 1fr) 48px; }
.st-name { font-weight: 700; font-size: 14px; line-height: 1.2; }
.st-name small { display: block; font-weight: 400; font-size: 11px; color: var(--muted); margin-top: 3px; }
.st-strip output { font-size: 13px; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.st-strip output.st-eur { color: var(--brand-3); }
.st-strip input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer; margin: 0; }
.st-strip input[type=range]::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--brand-2) var(--p, 50%), var(--border) var(--p, 50%)); }
.st-strip input[type=range]::-moz-range-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--brand-2) var(--p, 50%), var(--border) var(--p, 50%)); }
.st-strip input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 24px; margin-top: -9px; border-radius: 4px; background: var(--text); border: 3px solid var(--bg); box-shadow: 0 0 0 1px var(--border-2); }
.st-strip input[type=range]::-moz-range-thumb { width: 10px; height: 18px; border-radius: 4px; background: var(--text); border: 3px solid var(--bg); }
@media (max-width: 480px) {
  .st-strip { grid-template-columns: 98px minmax(0, 1fr) 34px 58px; gap: 8px; }
  .st-name { font-size: 13px; }
  .st-strip.st3 { grid-template-columns: 98px minmax(0, 1fr) 42px; }
}
.st-table { overflow-x: auto; }
.st-table table { border-collapse: collapse; width: 100%; min-width: 480px; font-size: 13.5px; }
.st-table th, .st-table td { padding: 10px 12px; text-align: right; border-bottom: 1px solid var(--border); font-variant-numeric: tabular-nums; }
.st-table th { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.st-table th:first-child, .st-table td:first-child { text-align: left; }
.st-table tr:last-child td { border-bottom: 0; }

/* Comprobador de nombre artístico */
.nb-handle { display: flex; align-items: center; gap: 8px; }
.nb-handle > span { font-weight: 800; color: var(--muted); font-size: 18px; }
.nb-grid { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1024px) { .nb-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; } }
.nb-grid > * { min-width: 0; }
.nb-doms { display: grid; gap: 8px; }
.nb-dom { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; border-radius: 10px; background: var(--bg-2); }
.nb-veredicto.ok { border-color: rgba(74,222,128,.45); background: color-mix(in srgb, var(--ok) 7%, var(--surface)); }
.nb-veredicto.warn { border-color: rgba(251,191,36,.45); background: color-mix(in srgb, var(--warn) 7%, var(--surface)); }
.nb-veredicto.bad { border-color: rgba(248,113,113,.5); background: color-mix(in srgb, var(--danger) 8%, var(--surface)); }
.nb-vt { display: block; font-size: 17px; margin-top: 4px; line-height: 1.25; }
.nb-lista { display: grid; gap: 6px; }
.nb-art { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: var(--bg-2); color: var(--text); text-decoration: none; border: 1px solid transparent; }
.nb-art:hover { border-color: var(--border-2); }
.nb-art img, .nb-art-ph { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex: none; }
.nb-art-ph { display: grid; place-items: center; background: var(--surface-2); color: var(--muted); }
.nb-art .grow { display: flex; flex-direction: column; min-width: 0; }
.nb-art b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14px; }
.nb-art > svg { color: var(--muted); flex: none; }
.nb-checks, .nb-redes { display: grid; gap: 10px; }
.nb-check { display: flex; gap: 10px; align-items: flex-start; }
.nb-check > span { font-size: 16px; line-height: 1.3; }
.nb-red { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-top: 10px; border-top: 1px solid var(--border); }
.nb-red:first-child { border-top: 0; padding-top: 0; }
.nb-red-emo { font-size: 20px; width: 26px; text-align: center; }
.nb-red .grow { display: flex; flex-direction: column; min-width: 0; }
.nb-marca { display: flex; gap: 6px; width: 100%; padding-left: 36px; }
.chip.on.ok { background: rgba(74,222,128,.16); border-color: var(--ok); color: var(--ok); }
.chip.on.bad { background: rgba(248,113,113,.16); border-color: var(--danger); color: var(--danger); }
.tag.bad { color: var(--danger); background: rgba(248,113,113,.13); }
.nb-tips { margin: 0; padding-left: 18px; display: grid; gap: 8px; font-size: 14px; color: var(--text-2); }
@media (min-width: 600px) { .nb-marca { width: auto; padding-left: 0; } }

/* Pitch para Spotify */
.pi-layout { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
.pi-col { display: grid; gap: 12px; min-width: 0; align-content: start; }
@media (min-width: 1024px) {
  .pi-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
  .pi-sticky { position: sticky; top: 24px; }
}
.pi-fechas { display: grid; gap: 8px; }
.pi-fechas > div { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 8px 12px; border-radius: 10px; background: var(--bg-2); }
.pi-fechas b { font-size: 14px; text-align: right; }
.pi-fechas .tarde b { color: var(--danger); }
.pi-out { border-color: rgba(29,185,84,.4); }
.pi-text { min-height: 290px; resize: vertical; line-height: 1.6; font-size: 15px; }
.pi-count { font-size: 12px; font-weight: 800; color: var(--muted); font-variant-numeric: tabular-nums; }
.pi-count.warn { color: var(--warn); }
@media (min-width: 1024px) { .pi-text { min-height: 230px; } }

.np-check { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; cursor: pointer; }
.np-check input { width: 18px; height: 18px; accent-color: var(--brand-2); }
.np-g2 { display: grid; gap: 0 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 600px) { .np-g2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.np-temas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.np-tema { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg-2); color: var(--text-2); font-weight: 700; font-size: 13px; cursor: pointer; }
.np-tema span { width: 22px; height: 22px; border-radius: 6px; background: linear-gradient(135deg, var(--b) 55%, var(--a) 55%); border: 1px solid rgba(255,255,255,.15); flex: none; }
.np-tema.on { border-color: var(--brand-2); color: var(--text); box-shadow: 0 0 0 2px var(--brand-glow); }
.np-color input[type=color] { width: 100%; height: 42px; padding: 3px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg-2); cursor: pointer; }
.np-imgs { display: grid; gap: 10px; }
.np-img { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; background: var(--bg-2); }
.np-img img, .np-img-ph { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; flex: none; }
.np-img-ph { display: grid; place-items: center; background: var(--surface-2); color: var(--muted); }
.np-check.small { font-size: 13px; }
.bio-box { min-height: 160px; resize: vertical; line-height: 1.55; }
.np-fuente { padding: 9px 10px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg-2); color: var(--text-2); font-size: 16px; font-weight: 700; cursor: pointer; }
.np-fuente.on { border-color: var(--brand-2); color: var(--text); box-shadow: 0 0 0 2px var(--brand-glow); }
.input.sm { padding: 7px 10px; font-size: 13px; }
.np-bioinfo { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--bg-2); }
.np-bioinfo > span { font-size: 20px; }
.np-fold > summary { gap: 8px; }
.np-fold:not([open]) > summary .btn { display: none; }
.np-fold[open] > summary { margin-bottom: 4px; }

/* Herramientas a dos columnas: en PC aprovechan todo el ancho de la pantalla */
@media (min-width: 1024px) {
  .view:has(.pi-layout), .view:has(.pp-duo), .view:has(.nb-grid), .view:has(.calent-layout),
  .view:has(.practica-layout), .view:has(.medidor-layout), .view:has(.escritura), .view:has(.letra-layout) { max-width: none; }
  .pi-layout { gap: 24px; }
}
@media (min-width: 1600px) {
  .pi-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
}
.sol.nueva { border-color: rgba(181,148,236,.5); }
.sol a { color: var(--text-2); }
@media (max-width: 480px) { .tabs button { gap: 5px; font-size: 13px; padding: 0 4px; } .tabs button svg { display: none; } }

/* Retos de constancia */
.rt-layout { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1024px) { .rt-layout { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px; align-items: start; } .view:has(.rt-layout) { max-width: none; } }
.rt-emo { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; background: var(--surface-2); flex: none; }
.rt-emo.sm { width: 36px; height: 36px; font-size: 18px; }
.rt-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.rt-stats > div { background: var(--bg-2); border-radius: 12px; padding: 8px 10px; text-align: center; }
.rt-stats b { display: block; font-size: 20px; font-variant-numeric: tabular-nums; }
.rt-stats span { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.rt-grid { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 4px; }
.rt-d { aspect-ratio: 1; border-radius: 5px; background: var(--surface-2); border: 1px solid var(--border); }
.rt-d.ok { background: #f97316; border-color: #fb923c; }
.rt-d.falla { background: rgba(248,113,113,.15); border-color: rgba(248,113,113,.35); }
.rt-d.hoy { border: 2px solid var(--brand-3); }
.rt-hecho { color: #fb923c; border-color: rgba(251,146,60,.5); }
.rt-link { display: inline-flex; align-items: center; gap: 4px; color: var(--brand-3); font-weight: 700; text-decoration: none; }
.rt-catalogo { display: grid; gap: 8px; }
.rt-opcion { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; color: var(--text); cursor: pointer; padding: 10px 12px; }
.rt-opcion .grow { display: flex; flex-direction: column; min-width: 0; }
.rt-opcion.on { border-color: var(--brand-2); box-shadow: 0 0 0 2px var(--brand-glow); }
.rt-opcion:disabled { opacity: .45; cursor: default; }
.rt-elegido { border-color: var(--brand-2); }
.rt-pasados { display: grid; gap: 8px; }
.rt-pasado { display: flex; align-items: center; gap: 10px; }

/* Inicio: aviso de ritmo de música y retos */
.ritmo-aviso { display: flex; gap: 14px; align-items: flex-start; border-color: rgba(181,148,236,.45); background: color-mix(in srgb, var(--brand-2) 10%, var(--surface)); }
.ritmo-aviso.tarde { border-color: rgba(251,146,60,.5); background: color-mix(in srgb, #fb923c 9%, var(--surface)); }
.ritmo-ico { font-size: 28px; line-height: 1; }
.ritmo-t { display: block; font-size: 16px; margin-top: 2px; }
.retos-home-list { display: grid; gap: 8px; }
@media (min-width: 1024px) { .retos-home-list { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); } }
.reto-mini { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: var(--bg-2); }
.reto-check { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--border-2); background: transparent; color: #fff; display: grid; place-items: center; cursor: pointer; flex: none; }
.reto-mini.on .reto-check { background: #f97316; border-color: #fb923c; }
.home .b-ritmo:empty, .home .b-retos:empty { display: none; }
@media (min-width: 1024px) {
  .home { grid-template-areas: "aviso aviso" "ritmo ritmo" "launch curso" "ring ring" "retos retos" "hoy man"; }
  .home .b-ritmo { grid-area: ritmo; }
  .home .b-retos { grid-area: retos; }
}
