/* =============================================================
   EIVY — components & pages (uses tokens.css only)
   ============================================================= */
*, *::before, *::after { box-sizing: inherit; }
html { background: var(--bg); scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 84px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font-ui); font-size: var(--t-body); line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
button:disabled { cursor: not-allowed; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--mag); outline-offset: 3px; }
#app:focus { outline: none; }
.wrap { width: min(var(--maxw), 100% - 2 * var(--gutter)); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--s4); top: -100px; z-index: 100; background: var(--ink); color: var(--peri); padding: var(--s3) var(--s4); }
.skip:focus { top: calc(env(safe-area-inset-top, 0px) + var(--s4)); }
.spacer { height: var(--section); }

/* ---------- Type roles ---------- */
.t-meta { font-family: var(--font-mono); font-size: var(--t-meta); font-weight: 600; letter-spacing: .05em; text-transform: uppercase; line-height: 1.3; }
.t-l { font-family: var(--font-display); font-weight: 900; font-size: var(--t-l); line-height: .9; letter-spacing: -.04em; font-variation-settings: var(--wonk); }
.t-xl { font-family: var(--font-display); font-weight: 900; font-size: var(--t-xl); line-height: .84; letter-spacing: -.05em; text-transform: uppercase; font-variation-settings: var(--wonk); }
.mega { font-family: var(--font-display); font-weight: 900; font-size: var(--t-mega); line-height: .74; letter-spacing: -.065em; text-transform: uppercase; font-variation-settings: var(--wonk); margin: .16em 0 -.07em -.05em; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-height: var(--tap); padding: 0 var(--s5);
  font-family: var(--font-ui); font-weight: 700; font-size: .9rem; letter-spacing: .07em; text-transform: uppercase; text-decoration: none; text-align: center; line-height: 1.1;
  color: var(--ink); background: var(--peri); border: var(--bw-2) solid var(--ink); box-shadow: var(--sh-1);
  transition: transform .14s var(--ease), box-shadow .14s var(--ease), background-color .14s; }
.btn:hover { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-mag { background: var(--mag); }
.btn-peri { background: var(--peri); }
.btn-ink { background: var(--ink); color: var(--peri); box-shadow: 3px 3px 0 var(--mag); }
.btn-ink:hover { box-shadow: 6px 6px 0 var(--mag); }
.btn-ink:active { box-shadow: 1px 1px 0 var(--mag); }
.btn-s { min-height: 40px; padding: 0 var(--s4); font-size: .78rem; }
.btn-block { width: 100%; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; transform: none; box-shadow: none; }

/* ---------- Labels, tags, files ---------- */
.labels { display: flex; flex-wrap: wrap; gap: var(--s2); }
.label { font-family: var(--font-mono); font-size: var(--t-meta); font-weight: 600; letter-spacing: .05em; text-transform: uppercase; line-height: 1.2; border: var(--bw-1) solid currentColor; padding: 5px 8px; }
.label-ink { background: var(--ink); color: var(--peri); border-color: var(--ink); }
.labels-l .label { font-size: .9rem; padding: 7px 12px; }
.tags { display: flex; flex-wrap: wrap; gap: var(--s2); }
.tags li { font-weight: 700; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; }
.tags li + li::before { content: "/"; margin-right: var(--s2); opacity: .5; }
.badge { font-family: var(--font-mono); font-size: .68rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 3px 7px; background: var(--ink); color: var(--peri); }
.files { display: flex; gap: var(--s2); flex-wrap: wrap; }
.file { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: .72rem; font-weight: 600; letter-spacing: .04em; padding: 4px 8px 4px 6px; border: var(--bw-1) solid currentColor; }
.file-ico { width: 10px; height: 13px; border: 2px solid currentColor; clip-path: polygon(0 0, 60% 0, 100% 35%, 100% 100%, 0 100%); background: currentColor; }
.file-no { opacity: .45; text-decoration: line-through; }
.file-no .file-ico { background: transparent; }

/* ---------- Window (retro-OS chrome) ---------- */
.win { border: var(--bw-2) solid var(--ink); border-radius: var(--r-win); box-shadow: var(--sh-3); overflow: hidden; background: var(--peri); color: var(--ink); }
.win-bar { display: flex; align-items: center; gap: var(--s3); min-height: 36px; padding: 0 var(--s3); background: var(--peri); color: var(--ink); border-bottom: var(--bw-2) solid var(--ink); }
.win-dots { display: flex; gap: 6px; }
.win-dots i { width: 12px; height: 12px; border: var(--bw-1) solid var(--ink); border-radius: 50%; }
.win-dots i:first-child { background: var(--mag); }
.win-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win-right { margin-left: auto; background: var(--mag); padding: 2px 6px; border: var(--bw-1) solid var(--ink); }

/* ---------- Cover ---------- */
.cover-img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.cover-ph { width: 100%; aspect-ratio: 16 / 9; display: flex; flex-direction: column; justify-content: space-between; padding: var(--s5); background: var(--velvet); color: var(--peri); outline: var(--bw-1) dashed var(--peri); outline-offset: -12px; }
.cover-ph-title { font-family: var(--font-display); font-weight: 900; font-size: clamp(1.6rem, 4vw, 2.6rem); line-height: .9; letter-spacing: -.04em; text-transform: uppercase; font-variation-settings: var(--wonk); }

/* ---------- Play buttons ---------- */
.play { display: grid; place-items: center; width: 60px; height: 60px; flex: none; border-radius: 50%; background: var(--mag); color: var(--ink); border: var(--bw-2) solid var(--ink); box-shadow: var(--sh-1); transition: transform .16s var(--ease), box-shadow .16s var(--ease); }
.play svg { width: 22px; height: 22px; margin-left: 2px; }
.play:hover:not(:disabled) { transform: scale(1.08) rotate(-6deg); box-shadow: 5px 5px 0 var(--ink); }
.play:disabled { background: var(--peri); opacity: .6; box-shadow: none; }
.play-l { width: var(--tap); height: var(--tap); }

/* ---------- Navigation ---------- */
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--peri); color: var(--ink); border-bottom: var(--bw-2) solid var(--ink); }
.nav-in { display: flex; align-items: center; gap: var(--s5); height: 68px; }
.logo { font-family: var(--font-display); font-weight: 900; font-size: 2.1rem; letter-spacing: -.06em; line-height: 1; text-decoration: none; font-variation-settings: var(--wonk); text-shadow: 2px 2px 0 var(--mag); }
.nav-links { display: flex; gap: var(--s1); margin-left: auto; }
.nav-links a { display: block; padding: var(--s2) var(--s3); font-weight: 700; font-size: .86rem; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; border: var(--bw-1) solid transparent; }
.nav-links a:hover { border-color: var(--ink); }
.nav-links a[aria-current="page"] { background: var(--ink); color: var(--peri); }
.nav-ig span { text-transform: none; letter-spacing: .02em; }
.menu-btn { display: none; margin-left: auto; min-height: 44px; padding: 0 var(--s4); border: var(--bw-2) solid var(--ink); box-shadow: var(--sh-1); font-family: var(--font-mono); font-size: .8rem; font-weight: 600; text-transform: uppercase; background: var(--peri); }
.mnav { display: none; }
@media (max-width: 860px) {
  .nav-links, .nav-ig { display: none; }
  .menu-btn { display: inline-flex; align-items: center; }
  body.menu-open .mnav { display: flex; flex-direction: column; gap: var(--s5); padding: var(--s4) var(--gutter) var(--s6); border-top: var(--bw-2) solid var(--ink); background: var(--blue); }
  .mnav nav a { display: block; font-family: var(--font-display); font-weight: 900; font-size: clamp(2.8rem, 13vw, 4.2rem); line-height: 1; letter-spacing: -.05em; text-transform: uppercase; text-decoration: none; color: var(--peri); padding: var(--s2) 0; border-bottom: var(--bw-2) solid var(--ink); font-variation-settings: var(--wonk); }
  .mnav nav a[aria-current="page"] { color: var(--mag); }
}

/* ---------- Sections ---------- */
.sec { padding: var(--section) 0; }
.sec-tight { padding-top: 0; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: var(--s4) var(--s6); margin-bottom: clamp(var(--s6), 4vw, var(--s8)); }
.empty { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: flex-start; gap: var(--s4); padding: var(--s7) var(--s5); border: var(--bw-2) dashed currentColor; }
.empty strong { font-family: var(--font-display); font-size: var(--t-m); }

/* ---------- Home hero ---------- */
.home-hero { padding: clamp(var(--s5), 3vw, var(--s7)) 0 var(--s7); overflow: hidden; }
.home-hero + .sec { padding-top: var(--s8); }
.hero-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--s5); }
.wordmark { grid-column: 1 / -1; grid-row: 1; font-family: var(--font-display); font-weight: 900; font-size: clamp(7rem, 30vw, 28rem); line-height: .74; letter-spacing: -.07em; margin: .04em 0 0 -.05em; color: var(--fg); text-shadow: .03em .03em 0 var(--mag); font-variation-settings: var(--wonk); }
.hero-labels { grid-column: 9 / -1; grid-row: 1; justify-self: end; align-self: start; margin-top: var(--s4); }
.hero-feat { grid-column: 4 / -1; grid-row: 2; margin-top: clamp(-10rem, -8vw, -2rem); position: relative; z-index: 2; }
.feat { transform: rotate(-.8deg); }
.feat-in { display: grid; grid-template-columns: minmax(0, 1fr); background: var(--blue); color: var(--peri); }
.feat-cover { display: block; border-bottom: var(--bw-2) solid var(--ink); background: var(--ink); overflow: hidden; }
.feat-cover .cover-img { transition: transform .4s var(--ease); }
.feat:hover .feat-cover .cover-img { transform: scale(1.02); }
.feat-info { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: var(--s5) var(--s6); padding: clamp(var(--s5), 3vw, var(--s6)); }
.feat-a, .feat-b { display: flex; flex-direction: column; gap: var(--s3); }
.feat-b { align-items: flex-end; text-align: right; }
.feat-b .labels { justify-content: flex-end; }
.feat-title { font-family: var(--font-display); font-weight: 900; font-size: clamp(2.4rem, 4.6vw, 4.8rem); line-height: .84; letter-spacing: -.05em; text-transform: uppercase; font-variation-settings: var(--wonk); text-shadow: .03em .03em 0 var(--ink); }
.feat-title a { text-decoration: none; }
.feat-ref { font-family: var(--font-display); font-style: italic; font-size: var(--t-m); line-height: 1.2; }
.feat-genre { opacity: .85; }
.feat-actions { display: flex; align-items: center; gap: var(--s4); margin-top: var(--s2); }
.feat .play:disabled { background: var(--velvet); color: var(--peri); }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .wordmark, .hero-labels, .hero-feat { grid-column: 1; grid-row: auto; }
  .wordmark { font-size: clamp(6.5rem, 40vw, 16rem); }
  .hero-labels { justify-self: start; order: -1; margin: 0 0 var(--s4); }
  .hero-feat { margin-top: calc(var(--s2) * -1); }
  .feat { transform: none; }
  .feat-info { grid-template-columns: minmax(0, 1fr); }
  .feat-b { align-items: flex-start; text-align: left; }
  .feat-b .labels { justify-content: flex-start; }
}

/* ---------- License tiles (home) ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(var(--s4), 2.5vw, var(--s6)); }
.tile { display: flex; flex-direction: column; gap: var(--s3); padding: var(--s5); text-decoration: none; border: var(--bw-2) solid var(--ink); box-shadow: var(--sh-2); transition: transform .18s var(--ease), box-shadow .18s var(--ease); }
.tile:hover { transform: translate(-4px, -4px); box-shadow: var(--sh-3); }
.tile { position: relative; }
.tile:not(.lic-featured) { margin-top: var(--s7); }
.tile.lic-featured { box-shadow: 10px 10px 0 var(--ink); }
.tile-name { font-family: var(--font-display); font-weight: 900; font-size: var(--t-l); line-height: .85; letter-spacing: -.05em; font-variation-settings: var(--wonk); }
.tile-price { font-weight: 700; font-size: 2rem; line-height: 1; display: flex; gap: var(--s2); align-items: baseline; }
@media (max-width: 860px) { .tiles { grid-template-columns: minmax(0, 1fr); } .tile:not(.lic-featured) { margin-top: 0; } .tile.lic-featured { order: -1; margin-top: var(--s3); } }

/* ---------- License color system (cards, tiles, details) ---------- */
.lic-completa { background: var(--peri); color: var(--ink); }
.lic-profesional { background: var(--mag); color: var(--ink); }
.lic-exclusiva { background: var(--ink); color: var(--peri); }
.lic-exclusiva.tile, .lic-exclusiva.lic { box-shadow: 6px 6px 0 var(--mag); }
.lic-exclusiva .badge { background: var(--mag); color: var(--ink); }

/* ---------- Beat cards ---------- */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(var(--s6), 3vw, var(--s7)) clamp(var(--s5), 3vw, var(--s7)); }
@media (min-width: 1101px) { .grid > .card:nth-child(3n+2) { margin-top: var(--s7); } }
@media (max-width: 1100px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .grid { grid-template-columns: minmax(0, 1fr); } }
.card { background: var(--peri); color: var(--ink); border: var(--bw-2) solid var(--ink); box-shadow: var(--sh-2); transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.card:hover { transform: translate(-5px, -5px); box-shadow: 11px 11px 0 var(--ink); }
.card-media { position: relative; border-bottom: var(--bw-2) solid var(--ink); }
.card-cover { display: block; overflow: hidden; }
.card-cover > * { transition: transform .35s var(--ease); }
.card:hover .card-cover > * { transform: scale(1.04) rotate(-1.5deg); }
.card-track { position: absolute; top: var(--s3); left: var(--s3); background: var(--ink); color: var(--peri); padding: 3px 7px; }
.card .play { position: absolute; right: var(--s4); bottom: -30px; z-index: 2; }
.card-body { display: flex; flex-direction: column; gap: var(--s3); padding: var(--s6) var(--s4) var(--s4); }
.card-title { font-family: var(--font-display); font-weight: 900; font-size: clamp(1.7rem, 2.4vw, 2.2rem); line-height: .9; letter-spacing: -.04em; text-transform: uppercase; padding-right: 64px; font-variation-settings: var(--wonk); }
.card-title a { text-decoration: none; }
.card-title a:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 4px; }
.card-ref { font-size: var(--t-s); }
.card-foot { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); margin-top: var(--s2); padding-top: var(--s3); border-top: var(--bw-1) solid var(--ink); }
.card-genre { text-align: right; }

/* ---------- Page heads ---------- */
.phead { position: relative; overflow: hidden; padding: clamp(var(--s5), 4vw, var(--s7)) 0 clamp(var(--s5), 3vw, var(--s6)); border-bottom: var(--bw-2) solid var(--ink); }
.phead .mega { font-size: min(var(--t-mega), 16.5vw); margin-bottom: 0; }
.phead-blue { background: var(--blue); color: var(--peri); }
.phead-blue .mega { text-shadow: .03em .03em 0 var(--mag); }
.phead-mag { background: var(--mag); color: var(--ink); }
.phead-mag .mega { text-shadow: .03em .03em 0 var(--peri); }
.phead-ink { background: var(--ink); color: var(--peri); }
.phead-ink .mega { text-shadow: .03em .03em 0 var(--blue); }
.phead-top { display: flex; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; }
.phead-sub { font-family: var(--font-display); font-style: italic; font-size: var(--t-m); line-height: 1.15; padding-top: var(--s4); text-align: right; }
@media (max-width: 860px) { .phead-sub { text-align: left; } }

/* ---------- Filters ---------- */
.filters { margin: clamp(var(--s6), 4vw, var(--s7)) 0 clamp(var(--s7), 5vw, var(--s8)); box-shadow: var(--sh-2); }
.frows { display: flex; flex-wrap: wrap; gap: var(--s4) var(--s6); padding: var(--s4); }
.fgroup { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.fgroup > .t-meta { margin-right: var(--s1); min-width: 4.5em; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 10px; font-family: var(--font-mono); font-size: .74rem; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; border: var(--bw-1) solid var(--ink); transition: background-color .12s; }
.chip:hover { background: var(--mag); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--peri); }
.chip-n { font-size: .65rem; opacity: .6; }
@media (max-width: 560px) { .fgroup > .t-meta { width: 100%; } }

/* ---------- Beat page ---------- */
.bp { padding-top: clamp(var(--s4), 2.5vw, var(--s6)); }
.crumb { display: flex; gap: var(--s2); margin-bottom: var(--s5); }
.crumb a { text-decoration: none; border-bottom: var(--bw-1) solid currentColor; }
.bp-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(var(--s6), 4vw, var(--s8)); align-items: end; }
.bp-info { display: flex; flex-direction: column; gap: var(--s4); }
.bp-title { font-family: var(--font-display); font-weight: 900; font-size: clamp(3rem, 6.4vw, 6.6rem); line-height: .82; letter-spacing: -.055em; text-transform: uppercase; text-wrap: balance; font-variation-settings: var(--wonk); text-shadow: .03em .03em 0 var(--mag); margin-left: -.03em; }
.bp-ref { font-family: var(--font-display); font-style: italic; font-size: var(--t-m); line-height: 1.2; }
.bp-desc { font-size: var(--t-s); max-width: 44ch; }
.bp-actions { margin-top: var(--s2); }
.bp-bar { display: none; }
@media (max-width: 860px) {
  .bp-grid { grid-template-columns: minmax(0, 1fr); gap: var(--s6); }
  .bp-actions { display: none; }
  body.has-bar { padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
  .bp-bar { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: var(--s2); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: var(--s3) var(--s3) calc(var(--s3) + env(safe-area-inset-bottom, 0px)); background: var(--peri); border-top: var(--bw-2) solid var(--ink); }
  .bp-bar .btn { padding: 0 var(--s2); font-size: .74rem; box-shadow: none; }
}

/* ---------- Player ---------- */
.player { box-shadow: 10px 10px 0 var(--mag); }
.stage { position: relative; aspect-ratio: 16 / 9; background: var(--blue); color: var(--peri); overflow: hidden; }
.stage-cover { position: absolute; inset: 0; background: var(--ink); }
.stage-cover > * { width: 100%; height: 100%; }
.stage-meta { position: absolute; top: var(--s3); right: var(--s3); text-align: right; background: var(--ink); color: var(--peri); padding: 4px 8px; }
.play-xl { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; width: clamp(72px, 13vw, 128px); aspect-ratio: 1; border-radius: 50%;
  background: var(--mag); color: var(--ink); border: var(--bw-2) solid var(--ink); box-shadow: 6px 6px 0 var(--ink); transition: transform .16s var(--ease), box-shadow .16s var(--ease); }
.play-xl svg { width: 38%; height: 38%; margin-left: 6%; }
.play-xl:hover { transform: translate(-50%, -50%) scale(1.06) rotate(-6deg); box-shadow: 9px 9px 0 var(--ink); }
.stage-off { position: absolute; left: 50%; bottom: var(--s4); transform: translateX(-50%); background: var(--ink); color: var(--peri); border: var(--bw-1) dashed var(--peri); padding: var(--s2) var(--s3); text-align: center; white-space: nowrap; }
.stage.is-live { background: var(--ink); }
.stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Practice Version ---------- */
.practice { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s5) clamp(var(--s6), 4vw, var(--s8)); margin: clamp(var(--s7), 6vw, var(--s9)) 0 var(--section); padding: clamp(var(--s5), 3vw, var(--s7)); border: var(--bw-2) dashed var(--fg); }
.practice-head { display: flex; flex-direction: column; gap: var(--s4); }
.practice-body { display: flex; flex-direction: column; gap: var(--s5); align-items: flex-start; }
.practice-copy { font-size: 1.15rem; max-width: 40ch; }
.practice-cta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s4); }
.practice-cta .btn { min-width: 220px; }
.practice-off { opacity: .7; }
.practice-rules { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); padding-top: var(--s4); border-top: var(--bw-1) solid currentColor; font-size: var(--t-s); font-weight: 500; }
.practice-rules li { display: flex; gap: var(--s2); align-items: baseline; }
.practice-rules li::before { content: ""; width: 8px; height: 8px; background: var(--mag); border: var(--bw-1) solid var(--ink); flex: none; transform: translateY(-1px); }
@media (max-width: 860px) { .practice { grid-template-columns: minmax(0, 1fr); } .practice-cta .btn { width: 100%; } .practice-rules { flex-direction: column; } }

/* ---------- License cards ---------- */
.lic-sec { padding: var(--section) 0; background: var(--velvet); color: var(--peri); border-top: var(--bw-2) solid var(--ink); }
.lics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(var(--s5), 2.5vw, var(--s6)); align-items: start; }
@media (min-width: 1101px) { .lics > .lic:not(.lic-featured) { margin-top: var(--s7); } }
.lic { display: flex; flex-direction: column; gap: var(--s4); padding: var(--s5); border: var(--bw-2) solid var(--ink); box-shadow: var(--sh-2); transition: transform .18s var(--ease), box-shadow .18s var(--ease); }
.lic:hover { transform: translate(-4px, -4px); box-shadow: var(--sh-3); }
.lic-exclusiva.lic:hover { box-shadow: 10px 10px 0 var(--mag); }
.lic { position: relative; }
.lic-top { display: flex; justify-content: flex-start; align-items: center; }
.lic-featured { border-width: 4px; box-shadow: 12px 12px 0 var(--ink); padding-top: var(--s6); }
.lic-featured:hover { box-shadow: 16px 16px 0 var(--ink); }
.lic-featured .lic-name { font-size: clamp(2.9rem, 4.6vw, 4.1rem); }
.lic-featured .lic-price { font-size: 3.1rem; }
.lic-featured .btn-mag { background: var(--ink); color: var(--peri); box-shadow: 4px 4px 0 var(--peri); }
.lic-featured .btn-mag:hover { box-shadow: 7px 7px 0 var(--peri); }
.lic-flag { position: absolute; top: -18px; right: var(--s5); z-index: 2; transform: rotate(4deg); background: var(--peri); color: var(--ink); border: var(--bw-2) solid var(--ink); box-shadow: var(--sh-1); padding: 6px 12px; font-family: var(--font-mono); font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.lic-name { font-family: var(--font-display); font-weight: 900; font-size: clamp(2.6rem, 4vw, 3.6rem); line-height: .82; letter-spacing: -.055em; font-variation-settings: var(--wonk); }
.lic-sum { font-family: var(--font-display); font-style: italic; font-size: 1.1rem; line-height: 1.3; }
.lic-price { display: flex; align-items: baseline; gap: var(--s2); font-weight: 700; font-size: 2.6rem; line-height: 1; letter-spacing: -.03em; padding: var(--s3) 0; border-block: var(--bw-2) solid currentColor; }
.lic-list { display: flex; flex-direction: column; gap: var(--s2); font-size: var(--t-s); line-height: 1.35; }
.lic-list li { display: flex; gap: var(--s2); }
.lic-list li::before { content: ""; width: 8px; height: 8px; margin-top: .45em; background: currentColor; flex: none; }
.lic .btn { margin-top: var(--s2); }
.lic-exclusiva .btn { box-shadow: 3px 3px 0 var(--peri); }
.lic-exclusiva .btn:hover { box-shadow: 6px 6px 0 var(--peri); }
.terms { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; font-size: .85rem; font-weight: 700; text-underline-offset: 3px; }
.terms svg { width: 16px; height: 16px; }
@media (max-width: 1100px) { .lics { grid-template-columns: minmax(0, 1fr); max-width: 560px; gap: var(--s7); } .lic-featured { order: -1; } }

/* ---------- /licencias ---------- */
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: clamp(var(--s7), 6vw, var(--s9)); border: var(--bw-2) solid var(--ink); background: var(--peri); color: var(--ink); box-shadow: var(--sh-2); }
.steps li { display: flex; flex-direction: column; gap: var(--s3); padding: var(--s4); font-weight: 700; font-size: .9rem; line-height: 1.25; text-transform: uppercase; letter-spacing: .02em; border-right: var(--bw-2) solid var(--ink); }
.steps li:last-child { border-right: 0; }
.steps li:nth-child(2) { background: var(--mag); }
.step-n { font-family: var(--font-display); font-weight: 900; font-size: 3rem; line-height: .8; letter-spacing: -.05em; }
@media (max-width: 860px) {
  .steps { grid-template-columns: minmax(0, 1fr); }
  .steps li { flex-direction: row; align-items: center; gap: var(--s4); border-right: 0; border-bottom: var(--bw-2) solid var(--ink); }
  .steps li:last-child { border-bottom: 0; }
  .step-n { font-size: 2.2rem; width: 1.2em; }
}
.tbl-wrap { overflow-x: auto; border: var(--bw-2) solid var(--ink); box-shadow: var(--sh-2); background: var(--peri); color: var(--ink); }
table { width: 100%; min-width: 640px; border-collapse: collapse; }
th, td { padding: var(--s3) var(--s4); text-align: left; vertical-align: top; font-size: var(--t-s); border-bottom: var(--bw-1) solid var(--ink); }
td, th + th { border-left: var(--bw-1) solid var(--ink); }
thead th { font-family: var(--font-display); font-weight: 900; font-size: 1.6rem; letter-spacing: -.03em; background: var(--ink); color: var(--peri); border-left-color: var(--velvet); }
thead .th-featured { background: var(--mag); color: var(--ink); }
.th-flag { display: block; margin-top: 4px; }
tbody th { font-family: var(--font-mono); font-size: .72rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; width: 200px; }
tbody tr:last-child > * { border-bottom: 0; }
.td-price { font-weight: 700; font-size: 1.1rem; }
.yes { font-weight: 700; }
.no { opacity: .5; }
.terms-list { display: flex; flex-direction: column; gap: var(--s4); margin-top: clamp(var(--s6), 4vw, var(--s7)); }
.det { box-shadow: var(--sh-2); }
.det summary { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--s2) var(--s4); min-height: var(--tap); padding: var(--s3) var(--s4); cursor: pointer; list-style: none; }
.det summary::-webkit-details-marker { display: none; }
.det summary::after { content: "+"; font-family: var(--font-mono); font-weight: 600; font-size: 1.4rem; line-height: 1; margin-left: auto; }
.det[open] summary::after { content: "−"; }
.det[open] summary { border-bottom: var(--bw-2) solid currentColor; }
.det-name { font-family: var(--font-display); font-weight: 900; font-size: var(--t-m); letter-spacing: -.03em; }
.det-body { display: flex; flex-direction: column; gap: var(--s4); padding: var(--s5) var(--s4); }
.det-scope { font-weight: 700; }
.det-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s5); }
.det-cols h3 { margin-bottom: var(--s2); }
.det-cols ul { display: flex; flex-direction: column; gap: 6px; font-size: var(--t-s); line-height: 1.35; }
.det-cols li { display: flex; gap: var(--s2); }
.ok li::before { content: "+"; font-family: var(--font-mono); font-weight: 600; }
.ko li::before { content: "×"; font-family: var(--font-mono); font-weight: 600; }
.common { margin-top: var(--s6); padding: var(--s5); border: var(--bw-2) solid var(--fg); }
.common ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--s3) var(--s5); margin-top: var(--s3); }
.common li { display: flex; gap: var(--s2); font-size: var(--t-s); line-height: 1.4; }
.common li::before { content: ""; width: 8px; height: 8px; margin-top: .45em; background: var(--mag); border: var(--bw-1) solid var(--ink); flex: none; }
.det-note { font-size: var(--t-s); max-width: 70ch; padding-left: var(--s3); border-left: 4px solid currentColor; }
@media (max-width: 760px) { .det-cols { grid-template-columns: minmax(0, 1fr); } }
.unsure { background: var(--ink); color: var(--peri); }
.unsure-in { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: var(--s6); }
.unsure .t-xl { max-width: 12ch; }

/* ---------- Contact ---------- */
.ct-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(var(--s5), 4vw, var(--s7)); align-items: start; }
.ct-ig { display: flex; flex-direction: column; gap: var(--s5); padding: clamp(var(--s5), 4vw, var(--s7)); background: var(--mag); color: var(--ink); border: var(--bw-2) solid var(--ink); box-shadow: var(--sh-3); }
.handle { font-family: var(--font-display); font-weight: 900; font-size: clamp(2.8rem, 7.5vw, 6.5rem); line-height: .88; letter-spacing: -.055em; text-decoration: none; overflow-wrap: anywhere; font-variation-settings: var(--wonk); }
.handle:hover { text-decoration: underline; text-decoration-thickness: 4px; }
.ctas { display: flex; flex-wrap: wrap; gap: var(--s4); }
.ct-side { display: flex; flex-direction: column; gap: var(--s5); margin-top: clamp(0px, 5vw, var(--s8)); }
.ct-box { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s3); padding: var(--s5); background: var(--peri); color: var(--ink); border: var(--bw-2) solid var(--ink); box-shadow: var(--sh-2); }
.mail { font-family: var(--font-mono); font-weight: 600; font-size: clamp(1rem, 1.8vw, 1.2rem); overflow-wrap: anywhere; }
.ct-yt { background: var(--blue); color: var(--peri); }
@media (max-width: 860px) { .ct-grid { grid-template-columns: minmax(0, 1fr); } .ct-side { margin-top: 0; } .ctas .btn { flex: 1 1 100%; } }

.nf { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s5); }
.about-body { display: flex; flex-direction: column; gap: var(--s4); max-width: 60ch; font-size: 1.15rem; }

/* ---------- Footer ---------- */
.foot { background: var(--ink); color: var(--peri); padding: clamp(var(--s7), 6vw, var(--s9)) 0 var(--s6); overflow: hidden; border-top: var(--bw-2) solid var(--ink); }
.foot-word { font-family: var(--font-display); font-weight: 900; font-size: clamp(4.5rem, 16vw, 13rem); line-height: .74; letter-spacing: -.075em; margin-left: -.05em; text-shadow: .03em .03em 0 var(--blue); font-variation-settings: var(--wonk); }
.foot-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--s5); margin-top: clamp(var(--s5), 3vw, var(--s6)); padding-top: var(--s5); border-top: var(--bw-1) solid var(--velvet); }
.foot-links { display: flex; flex-wrap: wrap; gap: var(--s3); }
.foot-links a { display: inline-flex; align-items: center; gap: var(--s2); min-height: 44px; padding: 0 var(--s4); font-weight: 700; font-size: .82rem; letter-spacing: .07em; text-transform: uppercase; text-decoration: none; border: var(--bw-1) solid var(--peri); transition: background-color .12s, color .12s; }
.foot-links a:hover { background: var(--mag); color: var(--ink); border-color: var(--mag); }
.foot-links svg { width: 18px; height: 18px; }

/* ---------- Player dialog ---------- */
dialog#dlg { width: min(960px, 100% - 2 * var(--s4)); max-width: none; padding: 0; border: 0; background: transparent; color: var(--ink); overflow: visible; }
dialog#dlg::backdrop { background: rgba(4, 6, 7, .72); }
.dlg-in { display: flex; flex-direction: column; gap: var(--s4); }
.dlg-foot { display: flex; justify-content: flex-end; gap: var(--s3); }

/* ---------- DM toast ---------- */
.toast { position: fixed; z-index: 90; left: 50%; bottom: calc(var(--s4) + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); width: min(460px, 100% - 2 * var(--s4));
  display: grid; grid-template-columns: 1fr auto; gap: var(--s2) var(--s3); padding: var(--s4); background: var(--ink); color: var(--peri); border: var(--bw-2) solid var(--peri); box-shadow: 6px 6px 0 var(--mag); }
.toast[hidden] { display: none; }
body.has-bar .toast { bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
.toast .t-meta { grid-column: 1; color: var(--mag); }
.toast-msg { grid-column: 1 / -1; font-family: var(--font-display); font-size: 1.05rem; line-height: 1.35; user-select: all; }
.toast .btn { grid-column: 1; justify-self: start; }
.toast-x { grid-column: 2; grid-row: 1; width: 32px; height: 32px; border: var(--bw-1) solid var(--peri); font-family: var(--font-mono); }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- Empty archive (no published beats) ---------- */
.soon-in { display: flex; flex-direction: column; gap: var(--s4); padding: clamp(var(--s5), 4vw, var(--s7)); background: var(--blue); color: var(--peri); }
.soon-title { font-family: var(--font-display); font-weight: 900; font-size: clamp(2.4rem, 5vw, 4.6rem); line-height: .86; letter-spacing: -.05em; text-transform: uppercase; font-variation-settings: var(--wonk); text-shadow: .03em .03em 0 var(--ink); }
.soon-bar { height: 26px; border: var(--bw-2) solid var(--ink); background: var(--peri); padding: 3px; max-width: 520px; }
.soon-bar i { display: block; height: 100%; width: 62%; background: repeating-linear-gradient(90deg, var(--ink) 0 14px, transparent 14px 20px); }

/* ---------- "Más filtros" ---------- */
.fmore { border-top: var(--bw-1) solid var(--ink); }
.fmore summary { display: flex; align-items: center; gap: var(--s2); min-height: 44px; padding: 0 var(--s4); cursor: pointer; list-style: none; }
.fmore summary::-webkit-details-marker { display: none; }
.fmore summary::after { content: "+"; font-size: 1.1rem; }
.fmore[open] summary::after { content: "−"; }
.fmore[open] summary { border-bottom: var(--bw-1) dashed var(--ink); }

/* ---------- Beat personalizado ---------- */
.custom { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s5) clamp(var(--s6), 4vw, var(--s8)); align-items: end; padding: clamp(var(--s5), 4vw, var(--s7)); background: var(--blue); color: var(--peri); border: var(--bw-2) solid var(--ink); box-shadow: var(--sh-3); }
.custom-title { font-family: var(--font-display); font-weight: 900; font-size: clamp(2rem, 8.6vw, 5.4rem); line-height: .84; letter-spacing: -.05em; text-transform: uppercase; font-variation-settings: var(--wonk); text-shadow: .03em .03em 0 var(--ink); margin-top: var(--s3); }
.custom-steps { display: flex; flex-direction: column; gap: var(--s2); margin-top: var(--s5); }
.custom-steps li { display: flex; gap: var(--s3); align-items: baseline; font-size: 1.02rem; }
.custom-steps .t-meta { flex: none; background: var(--peri); color: var(--ink); padding: 2px 6px; }
.custom-side { display: flex; flex-direction: column; gap: var(--s4); align-items: flex-start; }
.custom-note { font-size: var(--t-s); padding-left: var(--s3); border-left: 4px solid var(--mag); }
@media (max-width: 860px) { .custom { grid-template-columns: minmax(0, 1fr); } .custom-side .btn { width: 100%; } }
.custom .lic-price { font-size: clamp(1.6rem, 3vw, 2.4rem); }

/* ---------- Diferencias en celular ---------- */
.diff-m { display: none; }
@media (max-width: 640px) {
  .tbl-wrap { display: none; }
  .diff-m { display: flex; flex-direction: column; gap: var(--s5); }
  .diff-card { border: var(--bw-2) solid var(--ink); box-shadow: var(--sh-2); padding: var(--s4); }
  .diff-card.lic-exclusiva { box-shadow: 6px 6px 0 var(--mag); }
  .diff-name { font-family: var(--font-display); font-weight: 900; font-size: 2rem; letter-spacing: -.04em; line-height: 1; margin-bottom: var(--s3); display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; }
  .diff-card dl { margin: 0; }
  .diff-card dl > div { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: var(--s3); padding: var(--s2) 0; border-top: var(--bw-1) solid currentColor; }
  .diff-card dt { font-family: var(--font-mono); font-size: .7rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding-top: 2px; }
  .diff-card dd { margin: 0; font-size: var(--t-s); }
}
/* "¿No sabes cuál?" más compacto */
.unsure { padding: clamp(var(--s7), 6vw, var(--s9)) 0; }

/* Beat personalizado compacto + sección combinada en Licencias */
.custom-compact { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.custom-compact .custom-title { font-size: clamp(2rem, 4.2vw, 3.6rem); }
.unsure-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(var(--s6), 4vw, var(--s8)); align-items: center; }
.unsure-ask { display: flex; flex-direction: column; gap: var(--s5); align-items: flex-start; }
.unsure-grid .custom-compact { grid-template-columns: minmax(0, 1fr); box-shadow: 10px 10px 0 var(--mag); }
@media (max-width: 960px) { .unsure-grid, .custom-compact { grid-template-columns: minmax(0, 1fr); } }

/* Fraunces con tracking negativo come los espacios: devolverles aire */
.t-xl, .t-l, .mega, .bp-title, .feat-title, .card-title, .custom-title, .soon-title, .lic-name, .tile-name, .handle, .diff-name, .det-name, .cover-ph-title, .mnav nav a { word-spacing: .14em; }
.unsure .t-xl { font-size: clamp(2.6rem, 5.6vw, 5.2rem); }
