/* Factor de Cambio v2: monocromo de la marca + el color de cada canción como luz */
:root {
  --ink: #000;
  --ink-2: #0c0c0c;
  --ink-3: #161616;
  --hair: rgba(244, 244, 244, .09);
  --hair-2: rgba(244, 244, 244, .16);
  --paper: #f4f4f4;
  --stone: #989898;
  --ash: #6a6a6a;
  --song: #c9baa9;
  --ph-pre: #d8c3a0;
  --ph-lan: #e8a593;
  --ph-p1: #9fc2b4;
  --ph-p2: #a9b6d6;
  --ph-p3: #c4b0d4;
  --ph-p4: #b9c79c;
  --ph-free: #5a5a5a;
  --serif: 'Bodoni Moda', 'Didot', Georgia, serif;
  --sans: 'Hanken Grotesk', system-ui, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--ink); color: var(--paper); font-family: var(--sans); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; min-height: 100vh; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--song); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* Encabezado */
.top { position: sticky; top: 0; z-index: 30; background: rgba(0,0,0,.82); backdrop-filter: blur(18px) saturate(1.2); border-bottom: 1px solid var(--hair); }
.top-inner { max-width: 1240px; margin: 0 auto; padding: 0 24px; height: 68px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; min-width: 0; }
.brand img { height: 30px; width: auto; }
.brand img.invert { filter: invert(1); }
.brand .name { font-family: var(--serif); font-size: 21px; font-weight: 500; letter-spacing: -.01em; white-space: nowrap; }
.tabs { display: flex; gap: 26px; }
.tabs a { text-decoration: none; color: var(--stone); font-size: 14px; font-weight: 500; padding: 23px 0 21px; border-bottom: 1.5px solid transparent; white-space: nowrap; transition: color .2s; }
.tabs a:hover { color: var(--paper); }
.tabs a.on { color: var(--paper); border-bottom-color: var(--paper); }

main { max-width: 1240px; margin: 0 auto; padding: 36px 24px 100px; }

/* Tipografía */
h1, h2, h3 { margin: 0; font-weight: 400; }
h1 { font-family: var(--serif); font-size: clamp(34px, 5.4vw, 60px); letter-spacing: -.025em; line-height: 1.02; }
h2 { font-family: var(--serif); font-size: clamp(24px, 3vw, 32px); letter-spacing: -.015em; line-height: 1.1; }
h3 { font-size: 15px; font-weight: 600; }
.lede { color: var(--stone); font-size: 16px; max-width: 60ch; margin: 12px 0 0; }
.label { font-size: 13px; color: var(--stone); font-weight: 500; }
.muted { color: var(--stone); }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--hair-2); background: transparent; color: var(--paper); font-size: 14px; font-weight: 500; cursor: pointer; text-decoration: none; transition: background .2s, border-color .2s, color .2s; white-space: nowrap; }
.btn:hover { border-color: var(--paper); }
.btn.solid { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn.solid:hover { background: #fff; }
.btn.small { height: 32px; padding: 0 13px; font-size: 13px; }
.btn.icon { width: 40px; padding: 0; font-size: 18px; }
.btn.quiet { border-color: transparent; color: var(--stone); }
.btn.quiet:hover { color: var(--paper); border-color: var(--hair-2); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }

/* Fases */
.ph { --c: var(--stone); }
.ph-pre { --c: var(--ph-pre); } .ph-lan { --c: var(--ph-lan); } .ph-p1 { --c: var(--ph-p1); }
.ph-p2 { --c: var(--ph-p2); } .ph-p3 { --c: var(--ph-p3); } .ph-p4 { --c: var(--ph-p4); } .ph-free { --c: var(--ph-free); }
.phase { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; white-space: nowrap; }
.phase::before { content: ''; width: 18px; height: 2px; border-radius: 2px; background: var(--c); }

/* Hoy */
.stage { position: relative; overflow: hidden; border-radius: 28px; min-height: 340px; padding: 40px; display: grid; grid-template-columns: auto 1fr; gap: 48px; align-items: end; cursor: pointer; isolation: isolate; border: 1px solid var(--hair); margin-bottom: 64px; background: var(--ink-2); }
.stage .bg { position: absolute; inset: -60px; z-index: -3; background-size: cover; background-position: center; filter: blur(50px) saturate(1.1) brightness(.6); }
.stage .glow { position: absolute; z-index: -2; width: 75%; aspect-ratio: 1; right: -12%; top: -50%; background: radial-gradient(circle, color-mix(in srgb, var(--song) 50%, transparent), transparent 62%); }
.stage::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.05) 0%, rgba(0,0,0,.72) 100%); }
.stage .num { font-family: var(--serif); font-size: clamp(120px, 17vw, 220px); line-height: .78; letter-spacing: -.05em; }
.stage .num small { display: block; font-family: var(--sans); font-size: 14px; letter-spacing: 0; color: rgba(244,244,244,.72); margin-top: 18px; }
.stage .body { max-width: 640px; }
.stage .when { color: rgba(244,244,244,.78); font-size: 14px; margin-bottom: 16px; display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.stage h2 { font-size: clamp(30px, 4.2vw, 52px); line-height: 1.04; }
.stage .song { margin-top: 22px; display: flex; align-items: center; gap: 12px; font-size: 14px; color: rgba(244,244,244,.86); }
.stage .song img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; }
@media (max-width: 760px) {
  .stage { grid-template-columns: 1fr; gap: 18px; padding: 26px 22px; min-height: 0; border-radius: 22px; margin-bottom: 44px; }
  .stage .num { font-size: 104px; display: flex; align-items: baseline; gap: 14px; }
  .stage .num small { margin: 0; }
}

/* Mes */
.monthbar { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.monthbar h1 { margin-right: auto; }
.monthbar .year { color: var(--ash); }
.legend { display: flex; gap: 22px; flex-wrap: wrap; margin: 0 0 22px; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); border-top: 1px solid var(--hair); border-left: 1px solid var(--hair); }
.cal .wd { font-size: 12px; color: var(--ash); padding: 10px 12px; border-right: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.cell { position: relative; min-height: 132px; padding: 12px; display: flex; flex-direction: column; gap: 8px; text-align: left; background: transparent; border: 0; border-right: 1px solid var(--hair); border-bottom: 1px solid var(--hair); cursor: pointer; overflow: hidden; transition: background .2s; }
.cell:hover { background: var(--ink-3); }
.cell.out .d, .cell.out .t { color: var(--ash); }
.cell .top-line { display: flex; align-items: center; gap: 8px; }
.cell .d { font-family: var(--serif); font-size: 22px; line-height: 1; }
.cell .n { margin-left: auto; font-size: 11.5px; color: var(--ash); }
.cell .line { height: 2px; width: 22px; border-radius: 2px; background: var(--c); }
.cell .t { font-size: 13px; line-height: 1.35; color: rgba(244,244,244,.86); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cell .ex { margin-top: auto; font-size: 11.5px; color: var(--ash); }
.cell.release .cv { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .42; z-index: 0; }
.cell.release > *:not(.cv) { position: relative; z-index: 1; }
.cell.free .t { color: var(--ash); font-style: italic; }
.cell.today-cell { background: var(--paper); }
.cell.today-cell .d, .cell.today-cell .t { color: var(--ink); }
.cell.today-cell .n, .cell.today-cell .ex { color: #555; }
.cell.today-cell .cv { opacity: .2; }

.agenda { display: none; flex-direction: column; }
.aitem { display: grid; grid-template-columns: 52px 1fr auto; gap: 14px; align-items: center; padding: 16px 4px; border: 0; border-bottom: 1px solid var(--hair); background: transparent; text-align: left; width: 100%; cursor: pointer; }
.aitem .date b { display: block; font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1; }
.aitem .date span { font-size: 12px; color: var(--ash); }
.aitem .t { display: block; font-size: 15.5px; line-height: 1.35; }
.aitem .meta { display: flex; gap: 12px; margin-top: 6px; font-size: 12.5px; color: var(--stone); align-items: center; flex-wrap: wrap; }
.aitem img { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; }
.aitem.free .t { color: var(--ash); font-style: italic; }
.aitem.today-cell { background: var(--paper); color: var(--ink); border-radius: 14px; padding: 16px 12px; border-bottom-color: transparent; }
.aitem.today-cell .date span, .aitem.today-cell .meta { color: #555; }
.wk { font-family: var(--serif); font-size: 21px; margin: 36px 0 4px; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.wk:first-child { margin-top: 0; }
.wk span { font-family: var(--sans); font-size: 13px; color: var(--stone); }
@media (max-width: 860px) {
  .cal, .legend { display: none; }
  .agenda { display: flex; }
}

/* Modal */
dialog { border: 1px solid var(--hair-2); background: var(--ink-2); color: var(--paper); border-radius: 26px; padding: 0; width: min(820px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); box-shadow: 0 40px 120px rgba(0,0,0,.7); }
dialog::backdrop { background: rgba(0,0,0,.72); backdrop-filter: blur(6px); }
dialog[open] { animation: rise .28s cubic-bezier(.2,.8,.2,1); }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.mhead { position: sticky; top: 0; z-index: 2; background: rgba(12,12,12,.94); backdrop-filter: blur(12px); padding: 16px 22px; border-bottom: 1px solid var(--hair); display: flex; gap: 14px; align-items: center; }
.mhead .when { font-size: 14px; color: var(--stone); }
.mbody { padding: 26px 26px 30px; }
.mbody h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.08; margin: 0 0 14px; }
.notes { white-space: pre-wrap; background: var(--ink-3); border-radius: 14px; padding: 16px 18px; margin: 16px 0 6px; color: rgba(244,244,244,.88); line-height: 1.6; }
.songline { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 18px; text-decoration: none; color: var(--stone); font-size: 14px; }
.songline img { width: 36px; height: 36px; border-radius: 7px; object-fit: cover; }
.songline:hover { color: var(--paper); }
.section-label { font-size: 13px; color: var(--stone); margin: 28px 0 12px; }
@media (max-width: 760px) {
  dialog { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; border: 0; }
  .mbody { padding: 22px 18px 30px; }
}

/* Embeds */
.embeds { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x mandatory; }
.embed { flex: 0 0 auto; width: min(340px, 84vw); scroll-snap-align: start; display: flex; flex-direction: column; gap: 8px; }
.embed iframe { width: 100%; border: 0; border-radius: 16px; background: #fff; display: block; }
.embed .ig { height: 600px; }
.embed .tt, .embed .yt { aspect-ratio: 9 / 16; background: #000; }
.embed .linkcard { border: 1px dashed var(--hair-2); border-radius: 16px; padding: 20px; font-size: 13px; color: var(--stone); word-break: break-all; }
.embed .src { font-size: 12.5px; color: var(--stone); text-decoration: none; }
.embed .src:hover { color: var(--paper); }
.empty { border: 1px dashed var(--hair-2); border-radius: 16px; padding: 22px; color: var(--stone); font-size: 14px; }

/* Formularios */
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.field > label, .field > .lbl { font-size: 13px; color: var(--stone); font-weight: 500; }
.hint { font-size: 12.5px; color: var(--ash); }
input[type=text], input[type=url], input[type=date], textarea { background: var(--ink); border: 1px solid var(--hair-2); border-radius: 12px; padding: 11px 14px; width: 100%; transition: border-color .2s; }
input[type=date] { color-scheme: dark; }
input:hover, textarea:hover { border-color: rgba(244,244,244,.28); }
input:focus, textarea:focus { outline: none; border-color: var(--paper); }
textarea { min-height: 96px; resize: vertical; line-height: 1.55; }
.seg { display: grid; gap: 8px; }
.seg label { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--hair-2); border-radius: 14px; padding: 13px 15px; cursor: pointer; font-size: 14px; }
.seg label:has(input:checked) { border-color: var(--paper); background: var(--ink-3); }
.seg input { margin-top: 3px; accent-color: var(--paper); }

/* Lanzamientos */
.pagehead { margin-bottom: 44px; }
.releases { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 44px 24px; }
.rcard { text-decoration: none; display: flex; flex-direction: column; gap: 14px; }
.rcard .art { aspect-ratio: 1; border-radius: 18px; overflow: hidden; background: var(--ink-3); display: grid; place-items: center; position: relative; border: 1px solid var(--hair); transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.rcard:hover .art { transform: translateY(-4px); }
.rcard .art img { width: 100%; height: 100%; object-fit: cover; }
.rcard .art .mo { font-family: var(--serif); font-size: 60px; color: var(--ash); }
.rcard .now { position: absolute; top: 12px; left: 12px; background: var(--paper); color: var(--ink); font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.rcard h3 { font-family: var(--serif); font-size: 25px; font-weight: 400; line-height: 1.1; }
.rcard .meta { font-size: 13.5px; color: var(--stone); display: grid; gap: 2px; }
.rcard .sw { display: flex; gap: 5px; }
.rcard .sw span { width: 14px; height: 14px; border-radius: 50%; border: 1px solid var(--hair-2); }

/* Ficha */
.back { display: inline-flex; color: var(--stone); text-decoration: none; font-size: 14px; }
.back:hover { color: var(--paper); }
.ficha-hero { display: grid; grid-template-columns: 300px 1fr; gap: 44px; align-items: end; margin: 26px 0 56px; }
.ficha-hero .cover { aspect-ratio: 1; border-radius: 20px; overflow: hidden; background: var(--ink-3); display: grid; place-items: center; border: 1px solid var(--hair); position: relative; }
.ficha-hero .cover img { width: 100%; height: 100%; object-fit: cover; }
.ficha-hero .cover .up { position: absolute; right: 12px; bottom: 12px; background: rgba(0,0,0,.6); backdrop-filter: blur(8px); }
.ficha-hero h1 { font-size: clamp(42px, 6.4vw, 84px); }
.ficha-hero .meta { display: flex; flex-wrap: wrap; gap: 8px 26px; margin-top: 20px; color: var(--stone); font-size: 14.5px; }
.ficha-hero .meta b { color: var(--paper); font-weight: 500; }
@media (max-width: 760px) { .ficha-hero { grid-template-columns: 1fr; gap: 24px; } .ficha-hero .cover { max-width: 320px; } }
.ficha { display: grid; grid-template-columns: 360px 1fr; gap: 56px; align-items: start; }
@media (max-width: 960px) { .ficha { grid-template-columns: 1fr; } }
.panel { border-top: 1px solid var(--hair); padding-top: 24px; }
.panel + .panel { margin-top: 32px; }
.panel > h3 { margin-bottom: 18px; }
.datebox { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.datebox input { width: auto; flex: 1; min-width: 170px; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch-edit { display: flex; align-items: center; gap: 6px; border: 1px solid var(--hair-2); border-radius: 999px; padding: 4px 8px 4px 4px; }
.swatch-edit input[type=color] { width: 30px; height: 30px; border: 0; padding: 0; background: none; border-radius: 50%; cursor: pointer; }
.swatch-edit input[type=color]::-webkit-color-swatch-wrapper { padding: 0; }
.swatch-edit input[type=color]::-webkit-color-swatch { border: 0; border-radius: 50%; }
.swatch-edit input[type=text] { width: 80px; padding: 5px 6px; border: 0; background: transparent; font-size: 13px; font-variant-numeric: tabular-nums; }
.swatch-edit button { background: none; border: 0; color: var(--ash); cursor: pointer; font-size: 17px; line-height: 1; padding: 0 2px; }
.swatch-edit button:hover { color: var(--paper); }
.fontpair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .fontpair { grid-template-columns: 1fr; } }

/* Manual */
.manual { display: grid; gap: 48px; }
.manual .section-label { margin-top: 0; }
.mpal { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); border-radius: 18px; overflow: hidden; border: 1px solid var(--hair); }
.mpal .c { min-height: 190px; padding: 14px; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; border: 0; cursor: pointer; text-align: left; font-size: 12.5px; }
.mpal .c b { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.specimen { border-radius: 18px; padding: 28px; border: 1px solid var(--hair); }
.specimen + .specimen { margin-top: 12px; }
.specimen .who { font-size: 13px; opacity: .7; }
.specimen .big { font-size: clamp(38px, 6vw, 72px); line-height: 1; margin: 12px 0 14px; word-break: break-word; }
.specimen .abc { font-size: 15px; opacity: .8; word-break: break-word; }
.mocks { display: grid; grid-template-columns: 1fr 210px; gap: 16px; align-items: start; }
@media (max-width: 640px) { .mocks { grid-template-columns: 1fr; } .mock-reel { max-width: 230px; } }
.mock-yt { aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; position: relative; display: grid; grid-template-columns: 40% 1fr; align-items: center; gap: 5%; padding: 6%; }
.mock-yt img.cv { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; box-shadow: 0 18px 40px rgba(0,0,0,.4); }
.mock-yt .ttl { font-size: clamp(20px, 4.2vw, 46px); line-height: .98; }
.mock-yt .by { font-size: clamp(10px, 1.4vw, 14px); margin-top: 12px; opacity: .78; }
.mock-yt .logo { position: absolute; right: 5%; bottom: 7%; height: 11%; width: auto; }
.mock-reel { aspect-ratio: 9 / 16; border-radius: 18px; overflow: hidden; position: relative; display: flex; flex-direction: column; justify-content: flex-end; padding: 16px; }
.mock-reel img.bgcv { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.55); }
.mock-reel .txt { position: relative; font-size: 26px; line-height: 1.02; }
.mock-reel .sub { position: relative; font-size: 12px; margin-top: 8px; opacity: .9; }
.cap { font-size: 12.5px; color: var(--ash); margin-top: 8px; }
.logo-on { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.logo-on div { aspect-ratio: 3 / 2; border-radius: 14px; display: grid; place-items: center; padding: 18%; border: 1px solid var(--hair); }
.logo-on img { max-height: 100%; width: auto; }

/* Plantilla */
.tgroup { margin-top: 48px; }
.tgroup > .row { margin-bottom: 6px; }
.titem { display: grid; grid-template-columns: 76px 1fr auto; gap: 16px; align-items: baseline; padding: 16px 4px; border: 0; border-bottom: 1px solid var(--hair); background: transparent; width: 100%; text-align: left; cursor: pointer; transition: background .2s; }
.titem:hover { background: var(--ink-2); }
.titem .dn { font-family: var(--serif); font-size: 20px; }
.titem .tt { font-size: 15px; }
.titem .nn { display: block; font-size: 13px; color: var(--stone); margin-top: 3px; }
.titem .ex { font-size: 12.5px; color: var(--stone); white-space: nowrap; }

/* Ideas */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 32px; }
.chipbtn { height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--hair-2); background: transparent; font-size: 13.5px; cursor: pointer; color: var(--stone); }
.chipbtn:hover { color: var(--paper); }
.chipbtn.on { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.board { columns: 3 300px; column-gap: 24px; }
.idea { break-inside: avoid; margin-bottom: 36px; display: flex; flex-direction: column; gap: 12px; }
.idea .frame { border-radius: 18px; overflow: hidden; background: var(--ink-3); border: 1px solid var(--hair); }
.idea .frame .embed { width: 100%; gap: 0; }
.idea .frame iframe { border-radius: 0; }
.idea .frame .ig { height: 560px; }
.idea .frame .src { display: none; }
.idea .frame .linkcard { border: 0; border-radius: 0; }
.idea h3 { font-family: var(--serif); font-size: 23px; font-weight: 400; line-height: 1.15; }
.idea .why { font-size: 14px; color: rgba(244,244,244,.82); margin: 0; }
.idea .tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font-size: 12px; color: var(--stone); border: 1px solid var(--hair-2); border-radius: 999px; padding: 2px 9px; }
.idea .acts { display: flex; gap: 6px; }

/* Varios */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px); opacity: 0; transition: .3s cubic-bezier(.2,.8,.2,1); background: var(--paper); color: var(--ink); padding: 11px 18px; border-radius: 999px; font-weight: 500; font-size: 14px; z-index: 100; pointer-events: none; }
.toast.show { opacity: 1; transform: translateX(-50%); }
.loading { padding: 120px 0; text-align: center; color: var(--stone); font-family: var(--serif); font-size: 22px; }
.note { font-size: 13px; color: var(--stone); margin: 10px 0 0; }

@media (max-width: 760px) {
  .top-inner { height: auto; padding: 12px 16px 0; flex-wrap: wrap; gap: 4px 20px; }
  .brand { width: 100%; }
  .tabs { width: 100%; gap: 0; justify-content: space-between; overflow-x: auto; }
  .tabs a { padding: 12px 2px 11px; font-size: 13.5px; }
  main { padding: 24px 16px 80px; }
  .monthbar h1 { font-size: 36px; }
}
