/* Cinco portadas originales, un hilo que las reúne. El blanco es parte del ritmo. */
.music-section {
  background: #fff;
  padding: clamp(56px, 7vw, 100px) 0 64px;
  border-block: 1px solid #e5e5df;
}
.music-heading {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: end;
  gap: 56px;
  margin-bottom: 22px;
}
.music-heading .eyebrow { margin-bottom: 20px; }
.music-heading h2 {
  font-size: clamp(40px, 4.7vw, 68px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -1.8px;
  max-width: 18ch;
  margin: 0;
  text-wrap: balance;
}
.music-editorial { padding: 0 0 4px 32px; }
.music-intro { font-size: 18px; line-height: 1.75; max-width: 42ch; color: var(--secundario); }
.music-availability { margin-top: 20px; font-size: 13px; line-height: 1.7; font-weight: 600; color: var(--verde); }
.music-score { margin: 28px 0 0; color: #3f644a; }
.music-back { display: inline-flex; align-items: center; min-height: 44px; margin: -16px 0 24px; font-size: 13px; text-underline-offset: 4px; }
#music-motion { display: block; margin: 8px auto 36px; padding: 10px 14px; min-height: 44px; border: 0; background: none; text-decoration: underline; text-underline-offset: 4px; font-size: 12px; color: var(--verde); }
.music-rhythm { display: flex; justify-content: center; align-items: center; gap: 12px; height: 64px; }
.music-rhythm i { display: block; height: 14px; width: 8px; border-radius: 8px; background: var(--lila-marca); transform-origin: center; }
.music-rhythm i:nth-child(2) { background: var(--terracota); height: 26px; }
.music-rhythm i:nth-child(3) { background: var(--dorado); height: 38px; }
.music-rhythm i:nth-child(4) { background: var(--salvia); height: 26px; }
.music-rhythm i:nth-child(5) { background: var(--azul); }
.music-revealed .music-rhythm i { animation: music-rhythm 1.6s ease-in-out 5; }
.music-revealed .music-rhythm i:nth-child(2n) { animation-delay: .2s; }
.music-revealed .music-rhythm i:nth-child(3) { animation-delay: .4s; }
@keyframes music-rhythm { 0%,100% { transform: scaleY(1); } 50% { transform: scaleY(.35); } }
.music-score svg { width: 100%; height: auto; overflow: visible; }
.music-thread { fill: none; stroke-dasharray: 1; stroke-dashoffset: 0; }
.thread-lila { stroke: var(--lila-marca); }
.thread-terracota { stroke: var(--terracota); }
.thread-dorado { stroke: var(--dorado); }
.thread-salvia { stroke: var(--salvia); }
.thread-azul { stroke: var(--azul); }
#music-timeline { stroke: none; fill: none; }
#music-playhead { fill: currentColor; stroke: #fff; stroke-width: 2; }
.music-revealed .music-thread { animation: music-ink 2.8s cubic-bezier(.25,.1,.25,1) both; }
.music-revealed .music-thread:nth-child(2) { animation-delay: .18s; }
.music-revealed .music-thread:nth-child(3) { animation-delay: .36s; }
.music-revealed .music-thread:nth-child(4) { animation-delay: .54s; }
.music-revealed .music-thread:nth-child(5) { animation-delay: .72s; }
@keyframes music-ink { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

/* Dos filas con un centro abierto, como una pequeña exposición de discos. */
.music-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 64px 40px; margin: 0; max-width: none; align-items: start; }
.song, .song:first-child, .song:last-child { --song-color: var(--lila-marca); grid-column: span 2; grid-row: auto; min-width: 0; padding: 0; border: 0; }
.song:nth-child(2) { --song-color: var(--terracota); margin-top: 64px; }
.song:nth-child(3) { --song-color: var(--dorado); }
.song:nth-child(4) { --song-color: var(--salvia); grid-column: 2 / span 2; }
.song:nth-child(5) { --song-color: var(--azul); grid-column: 4 / span 2; margin-top: 64px; }
.song-row, .song:first-child .song-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px 12px; align-items: center; }
.song-cover, .song:first-child .song-cover { grid-column: 1 / -1; width: 100%; height: auto; max-width: none; margin: 0; aspect-ratio: 1; object-fit: contain; border-radius: 0; }
.song-meta { min-width: 0; }
.song-note { display: none; }
.song h3, .song:first-child h3 { font-size: 21px; line-height: 1.3; letter-spacing: -.4px; }
.song-actions, .song:first-child .song-actions { display: flex; flex-direction: row; align-items: center; gap: 10px; }
.song .lyrics-button { font-size: 12px; min-height: 44px; padding: 0; }
.song-play { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #827b74; color: var(--tinta); border-radius: 50%; background: #fff; text-decoration: none; transition: background-color .2s, border-color .2s; }
.song-play svg { width: 20px; height: 20px; }
.song-play:hover { background: #f3f5ef; border-color: var(--verde); }
.lyrics-button, .song-share { border: 0; background: none; text-decoration: underline; text-underline-offset: 4px; min-height: 44px; font-size: 13px; padding: 6px; }
.lyrics-button svg, .song-share svg { display: none; }
.song-links { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 16px; margin-top: 12px; padding-bottom: 12px; border-bottom: 1px solid #deded7; font-size: 12px; }
.song-links a, .song-share { min-height: 44px; }
.song-share { font-size: 12px; }
.song-spotify { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: #334d38; }
.song-spotify svg { width: 14px; height: 14px; }
.song audio { min-width: 0; max-width: 100%; margin-top: 12px; }
.share-status, .audio-status { font-size: 13px; color: var(--secundario); line-height: 1.5; margin-top: 8px; }
.share-status:empty, .audio-status:empty { display: none; }
.share-copy { width: 100%; min-width: 0; padding: 12px; border: 1px solid var(--borde); background: #fff; font-size: 13px; }
.song[data-listening=true] .song-play { background: var(--song-color); border-color: var(--tinta); }
.song[data-listening=true] .song-cover { outline: 2px solid var(--song-color); outline-offset: 6px; }
.song.song-arrived { animation: music-arrive .6s ease-out both; }
@keyframes music-arrive { from { opacity: .65; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
.music-finale { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 20px 28px; margin-top: 64px; }
.music-finale .spotify-link { display: inline-flex; align-items: center; gap: 14px; min-height: 48px; margin: 0; font-size: 15px; font-weight: 600; }
.music-finale .spotify-link svg { width: 18px; height: 18px; }
.music-endmark { display: flex; gap: 6px; }
.music-endmark i { width: 8px; height: 8px; border-radius: 50%; background: var(--lila-marca); }
.music-endmark i:nth-child(2) { background: var(--terracota); }
.music-endmark i:nth-child(3) { background: var(--dorado); }
.music-endmark i:nth-child(4) { background: var(--salvia); }
.music-endmark i:nth-child(5) { background: var(--azul); }

@media(max-width:1100px) {
  .music-heading { gap: 36px; }
  .music-heading h2 { font-size: 52px; }
  .music-editorial { padding-left: 0; }
  .music-intro { font-size: 17px; }
  .music-grid { gap: 56px 28px; }
  .song h3, .song:first-child h3 { font-size: 19px; }
  .song-actions, .song:first-child .song-actions { flex-direction: column-reverse; gap: 0; }
}
@media(max-width:900px) {
  .music-heading { grid-template-columns: 1fr 1fr; gap: 32px; }
  .music-heading h2 { font-size: 46px; letter-spacing: -1.4px; }
  .music-intro { font-size: 16px; }
  .music-grid { grid-template-columns: repeat(4, minmax(0,1fr)); gap: 42px 32px; }
  .song:nth-child(n) { grid-column: span 2; margin-top: 0; }
  .song:nth-child(2n) { margin-top: 52px; }
  .song:last-child { grid-column: 2 / span 2; }
  .song h3, .song:first-child h3 { font-size: 21px; }
  .song-actions, .song:first-child .song-actions { flex-direction: row; gap: 8px; }
  .music-score { margin-bottom: 0; }
}
@media(max-width:650px) {
  .music-section { padding: 48px 0; }
  .music-heading { grid-template-columns: 1fr; gap: 24px; margin-bottom: 0; }
  .music-heading h2 { font-size: clamp(36px, 10.8vw, 56px); line-height: 1.09; letter-spacing: -1.25px; max-width: 18ch; }
  .music-heading .eyebrow { margin-bottom: 18px; }
  .music-intro { font-size: 17px; line-height: 1.7; max-width: 36ch; }
  .music-availability { font-size: 13px; margin-top: 18px; }
  .music-score { margin: 24px 0 0; }
  .music-score svg { stroke-width: 4; }
  .music-grid { grid-template-columns: 1fr; gap: 38px; max-width: 440px; margin-inline: auto; }
  .song:nth-child(n) { grid-column: 1; margin: 0; }
  .song-row, .song:first-child .song-row { gap: 14px 12px; }
  .song h3, .song:first-child h3 { font-size: 22px; }
  .song-note { font-size: 12px; }
  .song-actions, .song:first-child .song-actions { flex-direction: row; gap: 14px; }
  .song .lyrics-button, .song-share, .song-spotify { font-size: 13px; }
  .song .lyrics-button, .song-share { display: grid; place-items: center; width: 44px; padding: 10px; }
  .lyrics-button span, .song-share span { display: none; }
  .lyrics-button svg, .song-share svg { display: block; width: 22px; height: 22px; }
  .music-finale { gap: 12px; flex-direction: column; margin-top: 36px; }
  .music-finale .spotify-link { font-size: 14px; }
}
@media(max-width:359px) {
  .song h3, .song:first-child h3 { font-size: 21px; }
  .song-actions, .song:first-child .song-actions { gap: 10px; }
}
@media(prefers-reduced-motion:reduce) {
  .music-revealed:not(.music-motion-opt-in) .music-thread, .music-revealed:not(.music-motion-opt-in) .music-rhythm i, .song.song-arrived { animation: none; }
  .song-play { transition: none; }
  /* Inicio voluntario: excepción acotada a la regla global de reducción. */
  .music-revealed.music-motion-opt-in .music-rhythm i { animation: music-rhythm 1.6s ease-in-out 5 !important; }
  .music-revealed.music-motion-opt-in .music-rhythm i:nth-child(2n) { animation-delay: .2s !important; }
  .music-revealed.music-motion-opt-in .music-rhythm i:nth-child(3) { animation-delay: .4s !important; }
  .music-revealed.music-motion-opt-in .music-thread { animation: music-ink 2.8s cubic-bezier(.25,.1,.25,1) both !important; }
  .music-revealed.music-motion-opt-in .music-thread:nth-child(2) { animation-delay: .18s !important; }
  .music-revealed.music-motion-opt-in .music-thread:nth-child(3) { animation-delay: .36s !important; }
  .music-revealed.music-motion-opt-in .music-thread:nth-child(4) { animation-delay: .54s !important; }
  .music-revealed.music-motion-opt-in .music-thread:nth-child(5) { animation-delay: .72s !important; }
}
