@font-face {
  font-family: "Archivo"; font-style: normal; font-weight: 400 900; font-stretch: 62% 125%; font-display: swap;
  src: url(/static/fonts/archivo-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo"; font-style: normal; font-weight: 400 900; font-stretch: 62% 125%; font-display: swap;
  src: url(/static/fonts/archivo-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
:root {
  --bg: #fbf8f3; --card: #ffffff; --text: #1c1714; --muted: #756c64; --line: #e8e1d8;
  --accent: #ff5410; --accent-soft: #fff0e8; --bad: #d93a2b; --ok: #1f9d55;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --sans: "Archivo", system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.5 var(--sans); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.page { max-width: 640px; margin: 0 auto; padding: 48px 20px 64px; }
.brand { font-weight: 850; font-size: 15px; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); }
h1 {
  margin: 18px 0 10px; font-weight: 800; font-size: clamp(34px, 7vw, 52px); line-height: 1;
  font-stretch: 75%; letter-spacing: -.01em; text-wrap: balance;
}
.sub { margin: 0 0 28px; color: var(--muted); }
.sub b { color: var(--text); font-weight: 600; }

.drop {
  position: relative; display: grid; place-items: center; text-align: center; gap: 6px;
  min-height: 210px; padding: 28px; border-radius: 18px;
  background: var(--accent-soft); border: 2px dashed #ffb28f;
  transition: transform 200ms var(--ease-out), background-color 200ms var(--ease-out), border-color 200ms var(--ease-out);
  cursor: pointer;
}
.drop.over { background: #ffe2d2; border-color: var(--accent); transform: scale(1.01); }
.drop:focus-within { border-color: var(--accent); }
.drop .ico {
  width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: #fff;
  display: grid; place-items: center; font-size: 30px; line-height: 1; margin-bottom: 6px;
}
.drop strong { font-size: 21px; font-weight: 700; }
.drop .dsub { color: var(--muted); font-size: 15px; }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }

.tips { margin: 18px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 15px; display: grid; gap: 4px; }
.tips li::before { content: "→ "; color: var(--accent); font-weight: 700; }
.tips b { color: var(--text); font-weight: 600; }

.list { margin-top: 28px; background: var(--card); border-radius: 14px; box-shadow: 0 1px 2px rgba(60,40,20,.06), 0 6px 24px rgba(60,40,20,.06); overflow: hidden; }
.list:empty { display: none; }
.row {
  position: relative; display: grid; grid-template-columns: 10px 1fr auto 32px; align-items: center; gap: 12px;
  padding: 12px 14px 12px 16px; border-top: 1px solid var(--line);
  animation: in 220ms var(--ease-out);
}
.row:first-child { border-top: 0; }
@keyframes in { from { opacity: 0; transform: translateY(4px); } }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #c9c0b6; }
.nm { min-width: 0; }
.nm b { display: block; font-weight: 600; font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nm small { color: var(--muted); font-size: 13px; }
.nm small.bad { color: var(--bad); }
.row select {
  min-height: 40px; padding: 0 30px 0 12px; border-radius: 10px; border: 1px solid var(--line); background-color: var(--bg);
  font: 500 14px/1 var(--sans); color: var(--text); appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: right 15px center, right 10px center; background-size: 5px 5px; background-repeat: no-repeat;
}

.x {
  width: 32px; height: 32px; border-radius: 50%; border: 0; background: transparent; color: var(--muted);
  font-size: 20px; cursor: pointer; transition: transform 140ms var(--ease-out), background-color 140ms;
}
.x:active { transform: scale(0.92); }
@media (hover: hover) and (pointer: fine) { .x:hover { background: var(--line); color: var(--text); } }
.bar { position: absolute; left: 16px; right: 14px; bottom: 0; height: 3px; background: transparent; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); transition: transform 200ms linear; }
.row.ready .bar, .row.bad .bar { display: none; }

.warn { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 15px; }
.warn li { color: #9a5b00; } .warn li.bad { color: var(--bad); }

.notes { margin-top: 24px; }
.notes textarea {
  width: 100%; min-height: 84px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--card); font: 400 15.5px/1.5 var(--sans); color: var(--text); resize: vertical;
}

.send {
  margin-top: 20px; width: 100%; min-height: 56px; border: 0; border-radius: 14px;
  background: var(--accent); color: #fff; font: 700 18px/1 var(--sans); cursor: pointer;
  transition: transform 140ms var(--ease-out), opacity 160ms, background-color 160ms;
}
.send:active { transform: scale(0.98); }
.send[disabled] { opacity: .35; cursor: not-allowed; transform: none; }
@media (hover: hover) and (pointer: fine) { .send:not([disabled]):hover { background: #ec4600; } }
.hint { margin: 10px 0 0; text-align: center; color: var(--muted); font-size: 14px; min-height: 1.5em; }

.done { text-align: center; padding-top: 40px; animation: in 260ms var(--ease-out); }
.done .ok { width: 72px; height: 72px; margin: 0 auto 20px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; font-size: 36px; }
.done h1 { margin-top: 0; }
.aviso h1 { margin-top: 28px; }

@media (prefers-reduced-motion: reduce) {
  .row, .done { animation: none; }
  .drop.over, .send:active, .x:active { transform: none; }
}
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- canciones ---------- */
.song { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.song:first-child { border-top: 0; padding-top: 0; }
.song-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.song-head .num { font-weight: 800; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.song-head .del { border: 0; background: none; color: var(--muted); font: 500 14px/1 var(--sans); cursor: pointer; padding: 8px; min-height: 36px; }
@media (hover: hover) and (pointer: fine) { .song-head .del:hover { color: var(--bad); } }
.fields { display: grid; grid-template-columns: 1.2fr 1fr; gap: 12px; margin-bottom: 14px; }
.fields label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); }
.fields input {
  display: block; width: 100%; margin-top: 6px; min-height: 46px; padding: 0 14px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--card); font: 500 16px/1 var(--sans); color: var(--text);
}
.fields input.falta { border-color: var(--bad); }
@media (max-width: 560px) { .fields { grid-template-columns: 1fr; } }
.song .drop { min-height: 170px; }
.song + .song .drop { min-height: 130px; }
.song + .song .drop .ico { width: 44px; height: 44px; font-size: 24px; }
.more {
  margin-top: 18px; width: 100%; min-height: 48px; border-radius: 14px; border: 1.5px dashed #d9cfc4;
  background: transparent; color: var(--text); font: 600 16px/1 var(--sans); cursor: pointer;
  transition: transform 140ms var(--ease-out), border-color 160ms, background-color 160ms;
}
.more:active { transform: scale(0.98); }
@media (hover: hover) and (pointer: fine) { .more:hover { border-color: var(--accent); background: var(--accent-soft); } }
.tips { margin: 0 0 28px; }
.sels { display: flex; gap: 8px; }
.row.bad .sels { visibility: hidden; }
@media (max-width: 560px) {
  .row { grid-template-columns: 10px 1fr 32px; row-gap: 8px; }
  .row .sels { grid-column: 2 / 3; grid-row: 2; }
  .row .sels select { flex: 1; min-width: 0; }
  .row .x { grid-column: 3; grid-row: 1; }
  .row.bad .sels { display: none; }
}

/* ---------- artistas (principal + feats) ---------- */
.artbox .lbl { display: block; font-size: 13px; font-weight: 600; color: var(--muted); }
.arts { display: grid; gap: 8px; margin-top: 0; }
.art-row { display: flex; align-items: center; gap: 8px; }
.art-row input {
  flex: 1; min-width: 0; min-height: 46px; padding: 0 14px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--card); font: 500 16px/1 var(--sans); color: var(--text);
}
.art-row .ft { font-weight: 700; font-size: 14px; color: var(--accent); width: 22px; }
.addft {
  margin-top: 8px; border: 0; background: none; padding: 6px 0; min-height: 36px;
  color: var(--accent); font: 600 14.5px/1 var(--sans); cursor: pointer;
}
@media (hover: hover) and (pointer: fine) { .addft:hover { text-decoration: underline; } }
.fields { align-items: start; }
