@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Antonio:wght@500;700&family=EB+Garamond:ital,wght@0,400;0,500;1,400&display=swap');
:root {
  /* Margen lateral común: alinea header y footer con el cuerpo (.wrap: 1380px máx. y 6% de margen). */
  --page-width: 1380px;
  --gutter: max(6%, calc((100% - var(--page-width)) / 2 + 6%));
  /* Distancia entre el encabezado y el comienzo del contenido, igual en todas las páginas. */
  --page-top: 55px;
  --paper: #f5f1e7;
  --ink: #253c35;
  --muted: #697169;
  --rust: #a74930;
  --line: #d2d2c3;
  --card: #eee9dc;
  --white: #fffdf7;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'DM Sans', Arial, sans-serif;
  /* Bestiario: nombres en condensada rotunda, texto de las cartas en serif clásica; un color por categoría. */
  --condensed: 'Antonio', 'Arial Narrow', 'Roboto Condensed', sans-serif;
  --book: 'EB Garamond', Garamond, Georgia, serif;
  --cat-animal: #3f6a58;
  --cat-mitico: #a74930;
  --cat-onirico: #5e5a8f;
  --cat-personaje: #8a6d2f;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 15px/1.65 var(--sans);
}
body.dark {
  --paper: #192922;
  --ink: #f0ebdf;
  --muted: #b7c0b5;
  --rust: #e69c7e;
  --line: #47574a;
  --card: #23392d;
  --white: #203329;
  --cat-animal: #8fc3a9;
  --cat-mitico: #e69c7e;
  --cat-onirico: #aca8e0;
  --cat-personaje: #d8bd7c;
  color-scheme: dark;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
button,
a,
select {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--rust);
  outline-offset: 5px;
}
button {
  border: 0;
  background: none;
}
header {
  min-height: 98px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 20px var(--gutter);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
/* Mismo tratamiento que «Silvio» en el pie (.footer-brand). */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-name {
  font: 45px/1 var(--serif);
  color: var(--ink);
}
.brand-symbol {
  font-size: 42px;
  color: var(--rust);
}
.brand small {
  display: block;
  font: 11px var(--sans);
  margin-top: 6px;
}
nav {
  display: flex;
  gap: 32px;
  font-size: 13px;
}
nav a {
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  white-space: nowrap;
}
nav a:hover,
nav a.active {
  color: var(--rust);
  border-color: var(--rust);
}
.header-tools {
  display: flex;
  gap: 20px;
  align-items: center;
}
.header-tools button {
  font-size: 22px;
}
.saved-link {
  font-size: 24px;
}
/* Selector de modo (Autor / Acordes): una píldora con dos opciones; la marca se desliza a la elegida. */
.modo-switch {
  position: relative;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.modo-switch::before {
  content: '';
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 3px;
  width: calc(50% - 3px);
  border-radius: 999px;
  background: var(--rust);
  transition: transform 0.22s ease;
}
.modo-switch[data-modo='acordes']::before {
  transform: translateX(100%);
}
.header-tools .modo-switch button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--muted);
  transition: color 0.22s ease;
}
.header-tools .modo-switch button:hover {
  color: var(--rust);
}
.header-tools .modo-switch button[aria-checked='true'] {
  color: var(--paper);
}
.modo-ico svg {
  display: block;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@media (prefers-reduced-motion: reduce) {
  .modo-switch::before,
  .header-tools .modo-switch button {
    transition: none;
  }
}
/* Aviso «Modo Acordes en construcción». */
#modoObra {
  width: min(520px, 92vw);
  padding: 34px 44px 30px;
  text-align: center;
}
#modoObra .eyebrow {
  justify-content: center;
}
#modoObra .eyebrow:before {
  display: none;
}
#modoObra h2 {
  font-size: 34px;
  margin: 8px 0 12px;
}
#modoObra p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
.obra-art {
  display: block;
  width: min(260px, 100%);
  margin: 4px auto 18px;
  color: var(--ink);
}
.obra-pentagrama {
  stroke: var(--line);
  stroke-width: 1;
}
.obra-cinta {
  fill: #e0b23c;
}
.obra-rayas {
  fill: none;
  stroke: #253c35;
  stroke-width: 6;
}
.obra-acordes text {
  fill: var(--rust);
  font: 15px var(--serif);
}
.obra-acciones {
  margin-top: 22px;
}
@media (max-width: 560px) {
  #modoObra {
    padding: 40px 22px 26px;
  }
}
.saved-link span {
  font-size: 11px;
}
.wrap {
  max-width: var(--page-width);
  margin: auto;
  padding: 0 6%;
}
.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rust);
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow:before {
  content: '';
  width: 23px;
  height: 1px;
  background: currentColor;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
}
h1 {
  font-size: clamp(48px, 6.5vw, 94px);
  line-height: 1.05;
  letter-spacing: -0.055em;
}
h2 {
  font-size: clamp(32px, 3.7vw, 51px);
  line-height: 1.15;
  letter-spacing: -0.035em;
}
h3 {
  font-size: 25px;
  line-height: 1.2;
}
p {
  color: var(--muted);
}
.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  /* Columnas alineadas por abajo: el pie de foto termina a la altura de la base de los botones. */
  align-items: end;
  gap: 24px;
  padding-top: var(--page-top);
  padding-bottom: 50px;
  position: relative;
}
.hero h1 {
  margin: 25px 0 26px;
}
.hero h1 em,
.page-head h1 em {
  color: var(--rust);
  font-weight: 400;
}
.hero p {
  max-width: 395px;
  font-size: 15px;
  line-height: 1.8;
}
.actions {
  display: flex;
  gap: 25px;
  align-items: center;
  margin-top: 30px;
  flex-wrap: wrap;
}
.solid {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 14px 24px;
  background: var(--ink);
  color: var(--paper);
  font-size: 12px;
  border: 1px solid var(--ink);
}
.solid:hover {
  background: var(--rust);
  border-color: var(--rust);
  color: var(--paper);
}
.text-link {
  font-size: 12px;
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
}
.text-link:hover {
  color: var(--rust);
}
.hero-art {
  width: 100%;
  height: auto;
  max-height: 550px;
  color: var(--ink);
}
.art-caption {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin: 0 20px;
}
.hero-note {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-size: 10px;
  letter-spacing: 0.07em;
  color: var(--muted);
  margin-top: 35px;
}
.dot {
  width: 5px;
  height: 5px;
  background: var(--rust);
  border-radius: 100%;
}
.strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  gap: 20px;
  padding: 36px 0 32px;
}
/* Conteos del catálogo: el número manda, el texto va debajo. */
.strip .stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}
.strip .stat strong {
  font: 400 clamp(42px, 6.75vw, 96px) / 1 var(--serif);
  font-variant-numeric: lining-nums;
  letter-spacing: -0.03em;
  transition: color 0.2s;
}
.strip .stat span {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.strip .stat:hover strong {
  color: var(--rust);
}
.strip .star {
  color: var(--rust);
  font-size: 22px;
  align-self: flex-start;
  margin-top: clamp(13px, 2.7vw, 39px);
}
.section {
  padding-top: 80px;
  padding-bottom: 80px;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 35px;
}
.section-head h2 {
  margin-top: 15px;
}
.section-head p {
  font-size: 13px;
  max-width: 270px;
}
.entry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.entry {
  border-top: 1px solid var(--ink);
  padding-top: 15px;
  display: block;
}
.entry-num {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
}
.entry-art {
  height: 190px;
  background: var(--card);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 18px 0 22px;
  overflow: hidden;
}
.entry-art svg {
  width: 170px;
  height: 155px;
  transition: transform 0.5s;
}
.entry:hover svg {
  transform: scale(1.08) rotate(-3deg);
}
.entry h3 {
  margin-bottom: 12px;
}
.entry p {
  font-size: 12px;
  max-width: 280px;
}
.feature {
  background: var(--ink);
  color: var(--paper);
  padding: 65px 7%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}
.feature .eyebrow {
  color: #d6aa8d;
}
.feature h2 {
  margin: 22px 0;
}
.feature p {
  color: #d0d3c4;
  font-size: 14px;
  max-width: 380px;
}
.feature .text-link {
  display: inline-block;
  margin-top: 23px;
}
.feature-art {
  height: 270px;
  width: 100%;
}
.record-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.record {
  display: block;
  text-align: left;
  padding: 0;
  width: 100%;
}
.record-cover {
  aspect-ratio: 1;
  background: #b8c2aa;
  color: #2e443b;
  position: relative;
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.record:nth-child(3n + 2) .record-cover {
  background: #debc9d;
  color: #693d2d;
}
.record:nth-child(3n + 3) .record-cover {
  background: #c5ced2;
  color: #334d61;
}
.record-cover svg {
  width: 75%;
  height: 75%;
  transition: transform 0.4s;
}
.record:hover svg {
  transform: rotate(5deg) scale(1.07);
}
.record-cover .cover-label {
  position: absolute;
  left: 23px;
  top: 19px;
  letter-spacing: 0.22em;
  font-size: 8px;
}
.record-cover .cover-year {
  position: absolute;
  bottom: 17px;
  right: 23px;
  font-family: var(--serif);
  font-size: 40px;
  opacity: 0.5;
}
.record h3 {
  margin: 18px 0 5px;
  font-size: 23px;
}
.record p {
  font-size: 11px;
}
.album-note {
  font-size: 10px;
  color: var(--muted);
  margin-top: 18px;
}
.closing {
  padding: 70px 0;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}
.closing h2 {
  font-size: 36px;
}
.closing p {
  font-size: 12px;
  margin-top: 12px;
}
footer {
  background: var(--card);
  padding: 55px var(--gutter) 20px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 35px;
  font-size: 11px;
  color: var(--muted);
}
.footer-brand {
  font: 45px var(--serif);
  color: var(--ink);
}
.footer-brand a {
  display: inline;
  margin: 0;
  color: inherit;
}
.footer-brand a:hover {
  color: var(--rust);
}
.footer-brand span {
  display: block;
  font: 11px var(--sans);
  margin-top: 10px;
}
footer a {
  display: block;
  margin-bottom: 8px;
}
.footer-bottom a {
  display: inline;
  margin: 0;
  color: inherit;
  font-weight: 700;
  text-decoration: none;
}
.footer-bottom a:hover {
  color: var(--rust);
}
.footer-bottom {
  grid-column: 1/-1;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  letter-spacing: 0.12em;
}
.page-head {
  padding: 65px 0 30px;
}
.page-head h1 {
  font-size: 64px;
  margin: 18px 0;
}
.page-head p {
  max-width: 600px;
  font-size: 14px;
}
/* Descargar y Oráculo: la indicación en una sola línea (en pantallas anchas). */
@media (min-width: 801px) {
  .download-page .page-head p,
  .oraculo-page .page-head p {
    max-width: none;
    white-space: nowrap;
  }
}
.notice {
  padding: 12px 17px;
  background: var(--card);
  font-size: 11px;
  color: var(--muted);
  border-left: 2px solid var(--rust);
  margin: 20px 0;
}
.searchbox {
  display: flex;
  border-bottom: 1px solid var(--ink);
  padding: 15px 0;
  gap: 15px;
  align-items: center;
  margin: 16px 0 25px;
}
.searchbox span {
  font-size: 25px;
}
.searchbox input {
  font-family: var(--serif);
  font-size: 26px;
  width: 100%;
  border: 0;
  background: none;
  outline: 0;
}
.filterbar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: end;
}
.filterbar label {
  font-size: 10px;
  letter-spacing: 0.03em;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 110px;
}
.filterbar input,
.filterbar select {
  border: 1px solid var(--line);
  padding: 9px;
  background: transparent;
  max-width: 100%;
  width: 100%;
  font-size: 12px;
  border-radius: 0;
}
.filterbar button {
  padding: 9px;
  font-size: 12px;
  border-bottom: 1px solid var(--ink);
}
.result-head {
  display: flex;
  justify-content: space-between;
  padding: 28px 0 12px;
  font-size: 11px;
  color: var(--muted);
}
.song-table {
  width: 100%;
  border-collapse: collapse;
}
.song-table th {
  text-align: left;
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-weight: 500;
  border-bottom: 1px solid var(--ink);
  padding: 12px 8px;
}
.song-table td {
  padding: 16px 8px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.song-table td:first-child {
  width: 40px;
  color: var(--muted);
  font-size: 10px;
}
.song-title {
  font-family: var(--serif);
  font-size: 19px;
  text-align: left;
  padding: 0;
}
.song-title:hover {
  color: var(--rust);
}
.favorite {
  font-size: 23px;
  color: var(--rust);
  padding: 0 5px;
  transition: opacity 0.15s, transform 0.15s;
}
/* Cambio tenue al pasar el ratón. */
.favorite:hover {
  opacity: 0.7;
  transform: scale(1.08);
}
/* Columna de favoritas: título «FAVORITAS» y corazón centrado. */
.song-table .fav-col {
  width: 96px;
  text-align: center;
}

.pill {
  font-size: 9px;
  padding: 4px 7px;
  border: 1px solid var(--line);
  white-space: nowrap;
}
/* Junto al título («Instrumental», «Sin letra»): mismo diseño que en la columna LETRA, dentro del botón del título.
   .title-end une la última palabra con la pastilla para que no se separen al cortar la línea. */
.title-end {
  white-space: nowrap;
}
.title-pill {
  display: inline-block;
  margin-left: 8px;
  vertical-align: 3px;
  font-family: var(--sans);
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  color: var(--ink);
}
.group-title {
  padding: 30px 0 10px;
  font-family: var(--serif);
  font-size: 25px;
}
.empty {
  padding: 70px 20px;
  text-align: center;
  border: 1px dashed var(--line);
  margin: 30px 0;
}
.empty h3 {
  margin-bottom: 15px;
}
.empty p {
  font-size: 13px;
}
.empty a {
  display: inline-block;
  margin-top: 20px;
}
.timeline {
  border-left: 1px solid var(--line);
  margin: 40px 0;
  padding-left: 35px;
}
.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 100px 72px 1fr;
  gap: 25px;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
/* Portada circular en la cronología. */
.timeline-cover {
  display: block;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--card);
  transition: transform 0.15s;
}
.timeline-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.timeline-cover svg {
  width: 100%;
  height: 100%;
  padding: 12px;
}
.timeline-item:hover .timeline-cover {
  transform: scale(1.06);
}
.timeline-item:before {
  content: '';
  position: absolute;
  left: -40px;
  top: 40px;
  width: 9px;
  height: 9px;
  background: var(--rust);
  border-radius: 50%;
}
.timeline-item strong {
  font: 35px var(--serif);
  color: var(--rust);
}
.timeline-item p {
  font-size: 12px;
  margin: 10px 0;
}
.route-detail {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 50px;
  margin: 45px 0;
}
.route-detail .entry-art {
  height: 280px;
}
.prose {
  max-width: 850px;
  padding-bottom: 80px;
}
.prose h2 {
  font-size: 34px;
  margin: 45px 0 20px;
}
.prose p,
.prose li {
  margin: 14px 0;
  font-size: 14px;
  line-height: 1.9;
}
.prose a {
  border-bottom: 1px solid var(--line);
  color: var(--rust);
}
.prose table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
}
.prose th,
.prose td {
  text-align: left;
  padding: 15px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.prose th {
  color: var(--rust);
}
.import-tools {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 25px;
}
.import-tools label {
  cursor: pointer;
}
.import-tools input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
dialog {
  padding: 55px;
  width: min(720px, 92vw);
  max-height: 90vh;
  overflow: auto;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
}
dialog::backdrop {
  background: #15281fc9;
  backdrop-filter: blur(4px);
}
dialog .close {
  position: absolute;
  top: 15px;
  right: 18px;
  font-size: 22px;
}
dialog h2 {
  margin: 20px 0;
}
dialog .meta {
  font-size: 12px;
  margin-bottom: 25px;
  color: var(--muted);
}
dialog .lyrics {
  white-space: pre-wrap;
  font-family: var(--serif);
  line-height: 1.9;
  font-size: 19px;
  margin: 30px 0;
}
dialog .reader-actions {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 12px;
}
dialog .reader-actions button {
  padding: 0;
  color: var(--rust);
}
dialog .source {
  display: inline-block;
  color: var(--rust);
  font-size: 12px;
  border-bottom: 1px solid var(--line);
  margin: 15px 0;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--paper);
  padding: 12px 25px;
  font-size: 12px;
  display: none;
  z-index: 20;
  max-width: 90vw;
}
.skip {
  position: absolute;
  top: -100px;
}
.skip:focus {
  top: 0;
  z-index: 30;
  background: var(--paper);
  padding: 10px;
}
.mode-toggle {
  display: flex;
  gap: 10px;
  margin: 25px 0;
}
.mode-toggle button {
  border: 1px solid var(--line);
  padding: 8px 18px;
  font-size: 11px;
}
.mode-toggle .chosen {
  background: var(--ink);
  color: var(--paper);
}
@media (max-width: 850px) {
  header {
    gap: 15px;
    padding: 18px var(--gutter);
    flex-wrap: wrap;
    min-height: 90px;
  }
  nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 12px;
    font-size: 11px;
    /* Si las secciones no entran en una línea, el menú se desliza en horizontal en lugar de partir los nombres. */
    overflow-x: auto;
    scrollbar-width: none;
  }
  nav::-webkit-scrollbar {
    display: none;
  }
  .hero {
    min-height: initial;
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 66px;
  }
  .hero-art {
    max-height: 430px;
  }
  .hero-art-wrap {
    margin-top: 0;
  }
  .hero-note {
    margin-top: 25px;
  }
  .hero p {
    max-width: 500px;
  }
  .hero {
    gap: 15px;
  }
  .strip {
    gap: 15px;
    letter-spacing: 0.08em;
    font-size: 9px;
  }
  .entry-grid {
    gap: 16px;
  }
  .entry-art {
    height: 150px;
  }
  .entry-art svg {
    width: 120px;
  }
  .feature {
    gap: 30px;
    padding: 40px 6%;
  }
  .record-cover {
    padding: 10px;
  }
  .record h3 {
    font-size: 20px;
  }
  .feature h2 {
    font-size: 36px;
  }
  .section {
    padding-top: 55px;
    padding-bottom: 55px;
  }
  .route-detail {
    grid-template-columns: 1fr;
  }
  .prose {
    overflow: auto;
  }
}
@media (max-width: 560px) {
  .hero h1 {
    font-size: 58px;
  }
  .hero-art {
    max-height: 370px;
  }
  .art-caption {
    font-size: 8px;
  }
  .entry-grid,
  .record-grid {
    grid-template-columns: 1fr;
  }
  .entry {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 10px 20px;
    padding: 18px 0;
  }
  .entry-num {
    grid-column: 1/-1;
  }
  .entry-art {
    grid-row: 2/4;
    width: 100px;
    height: 100px;
    margin: 0;
  }
  .entry-art svg {
    width: 90px;
    height: 90px;
  }
  .entry h3 {
    font-size: 24px;
    margin: 0;
  }
  .entry p {
    font-size: 12px;
  }
  .feature {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .feature-art {
    height: 200px;
  }
  .record-grid {
    gap: 30px;
  }
  .record-cover {
    aspect-ratio: 1.2;
  }
  .record h3 {
    font-size: 25px;
  }
  .section-head {
    align-items: start;
    flex-direction: column;
  }
  .section-head h2 {
    font-size: 37px;
  }
  .closing {
    align-items: start;
    flex-direction: column;
  }
  footer {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1/-1;
  }
  .page-head h1 {
    font-size: 45px;
  }
  .song-table th:nth-child(3),
  .song-table td:nth-child(3) {
    display: none;
  }
  .song-table td {
    padding: 15px 3px;
  }
  .song-title {
    font-size: 17px;
  }
  .song-table .pill {
    font-size: 8px;
  }
  .filterbar label {
    min-width: 40%;
  }
  .searchbox input {
    font-size: 21px;
  }
  .timeline-item {
    grid-template-columns: 65px 52px 1fr;
    gap: 10px;
  }
  .timeline-cover {
    width: 52px;
    height: 52px;
  }
  .timeline-item strong {
    font-size: 26px;
  }
  dialog {
    padding: 40px 24px;
  }
  .prose table {
    font-size: 11px;
  }
  .actions {
    gap: 16px;
  }
  .route-detail {
    gap: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
  /* Las tarjetas se animan siempre, como en el taller. */
  .record-grid .record {
    transition:
      transform 0.15s,
      box-shadow 0.15s,
      border-color 0.15s !important;
  }
  .record-grid .record h3 {
    transition: color 0.15s !important;
  }
  .thumb,
  .timeline-cover {
    transition:
      transform 0.15s,
      border-color 0.15s !important;
  }
  /* La portada ampliada del álbum también, como la carta ampliada del bestiario: la abre el lector a propósito. */
  .cover-zoom {
    transition: background-color 700ms ease !important;
  }
  .cover-zoom-box {
    transition:
      transform 700ms cubic-bezier(0.65, 0, 0.35, 1),
      box-shadow 700ms ease !important;
  }
  .cover-zoom-close {
    transition: opacity 700ms ease !important;
  }
  .cover-zoom-caption {
    transition: opacity 0.25s ease !important;
  }
  .cover-zoom.open .cover-zoom-caption {
    transition: opacity 0.45s ease 0.5s !important;
  }
}
@media print {
  header,
  footer,
  .reader-actions,
  .close,
  #toast {
    display: none !important;
  }
  body:has(dialog[open]) main {
    display: none;
  }
  /* El diálogo modal no deja de estar centrado en la capa superior: se ancla arriba para que no se corte el título. */
  dialog[open] {
    position: static;
    inset: 0 auto auto 0;
    margin: 0;
    max-height: none;
    width: 100%;
    max-width: none;
    border: 0;
    overflow: visible;
  }
  dialog::backdrop {
    background: none;
  }
  body {
    background: white;
    color: black;
  }
  .lyrics {
    page-break-inside: auto;
  }
}

.actual-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Con portada real no se superponen la etiqueta ni el año decorativos. */
.record-cover:has(.actual-cover) .cover-label,
.record-cover:has(.actual-cover) .cover-year {
  display: none;
}

/* ───────── Exploración: Cancionero, Álbumes, Inéditas (replica los controles del taller) ───────── */
.browser {
  margin-top: 6px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(105px, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
  overflow: hidden;
}
.stats button {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 14px 12px;
  text-align: left;
  /* Líneas divisorias; las que caen en el borde del contenedor quedan recortadas. */
  box-shadow: 1px 0 0 var(--line), 0 1px 0 var(--line);
  transition: background 0.2s;
}
.stats strong {
  font: 400 32px/1 var(--serif);
  font-variant-numeric: lining-nums;
}
.stats span {
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.stats button:hover strong {
  color: var(--rust);
}
.stats button.on {
  background: var(--ink);
  color: var(--paper);
}
.stats button.on span,
.stats button.on:hover strong {
  color: inherit;
}
.filterbar button[data-ctl='dir'] {
  min-width: 38px;
  border: 1px solid var(--line);
}
.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  padding: 26px 0 14px;
  font-size: 11px;
  color: var(--muted);
}
.toolbar .count {
  margin-left: auto;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  border: 1px solid var(--rust);
  color: var(--rust);
  padding: 4px 11px;
  font-size: 11px;
  border-radius: 999px;
}
.chip b {
  margin-left: 4px;
  font-weight: 500;
}
.chip:hover {
  background: var(--rust);
  color: var(--paper);
}
.seg {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
}
.seg small {
  padding: 0 9px;
  font-size: 10px;
  letter-spacing: 0.06em;
}
.seg button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  font-size: 11px;
  color: var(--ink);
  border-left: 1px solid var(--line);
}
.seg button:first-child {
  border-left: 0;
}
.seg button.on {
  background: var(--ink);
  color: var(--paper);
}
.seg svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}
.group-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 15px;
  border-bottom: 1px solid var(--ink);
  margin-top: 30px;
}
.group-toggle {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 10px 0;
  font: 25px var(--serif);
  text-align: left;
}
.group-toggle i {
  font-style: normal;
  font-size: 13px;
  color: var(--rust);
  transition: transform 0.2s;
}
.group-toggle.closed i {
  transform: rotate(-90deg);
}
.group-toggle small {
  font: 11px var(--sans);
  color: var(--muted);
}
.group-tools {
  display: flex;
  gap: 14px;
}
.group-tools button {
  font-size: 11px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.song-table th button {
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
  padding: 0;
}
.song-table th button.sorted,
.song-table th button:hover {
  color: var(--ink);
}
.song-table .alt {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 3px;
}
.song-table td.year {
  white-space: nowrap;
  color: var(--muted);
}
.song-table .num {
  text-align: right;
}
.tag {
  display: inline-block;
  font-size: 10px;
  padding: 3px 8px;
  border: 1px solid var(--line);
  margin: 2px 4px 2px 0;
}
a.tag:hover {
  border-color: var(--rust);
  color: var(--rust);
}
/* Miniatura en el modo lista: borde tenue y, al pasar el mouse por la fila, el mismo efecto que la cronología. */
.thumb {
  display: block;
  width: 46px;
  height: 46px;
  background: var(--card);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  transition:
    transform 0.15s,
    border-color 0.15s;
}
.album-table tr:hover .thumb {
  transform: scale(1.06);
  border-color: var(--rust);
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.thumb svg {
  width: 100%;
  height: 100%;
  padding: 5px;
}
.gallery {
  grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr));
  margin-top: 24px;
}
.gallery[data-cols='2'] .record h3 {
  font-size: 30px;
}
.gallery[data-cols='6'],
.gallery[data-cols='8'] {
  gap: 18px;
}
.gallery[data-cols='6'] .record-cover,
.gallery[data-cols='8'] .record-cover {
  padding: 14px;
}
.gallery[data-cols='6'] .cover-label,
.gallery[data-cols='8'] .cover-label {
  display: none;
}
.gallery[data-cols='6'] .cover-year,
.gallery[data-cols='8'] .cover-year {
  font-size: 22px;
  right: 12px;
  bottom: 8px;
}
.gallery[data-cols='6'] .record h3,
.gallery[data-cols='8'] .record h3 {
  font-size: 15px;
}
.list-card .list-count {
  font: 400 clamp(46px, 6vw, 96px) / 1 var(--serif);
  font-variant-numeric: lining-nums;
}
@media (max-width: 850px) {
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .toolbar .count {
    margin-left: 0;
    width: 100%;
    order: -1;
  }
  .seg button span {
    display: none;
  }
}
@media (max-width: 560px) {
  .gallery {
    gap: 16px;
  }
  .song-table th:nth-child(4),
  .song-table td:nth-child(4),
  .album-table th:nth-child(n + 3):nth-child(-n + 6),
  .album-table td:nth-child(n + 3):nth-child(-n + 6) {
    display: none;
  }
  .stats strong {
    font-size: 26px;
  }
  .strip .star {
    display: none;
  }
}

/* Páginas interiores: el contenido empieza a la misma altura que la portada. */
.wrap.section {
  padding-top: var(--page-top);
}
.wrap.section > .page-head:first-child {
  padding-top: 0;
}
.wrap.section > .text-link:first-child + .page-head {
  padding-top: 30px;
}
@media (max-width: 850px) {
  :root {
    --page-top: 20px;
  }
}

/* Ficha de álbum: portada junto a los datos, como la cabecera de disco del taller. */
.album-head {
  display: grid;
  grid-template-columns: minmax(220px, 380px) 1fr;
  gap: 50px;
  align-items: start;
  margin: 30px 0 20px;
}
.album-cover {
  aspect-ratio: 1;
  background: var(--card);
  overflow: hidden;
  /* Borde tenue y curvo, como las miniaturas. */
  border: 1px solid var(--line);
  border-radius: 10px;
}
.album-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Portada ampliada (ui/coverZoom.js): como la carta ampliada del bestiario. */
.album-cover[data-zoomcover] {
  cursor: zoom-in;
}
.album-cover[data-zoomcover]:focus-visible {
  outline: 2px solid var(--rust);
  outline-offset: 3px;
}
html.cover-zoom-on {
  overflow: hidden;
}
html.cover-zoom-gutter {
  scrollbar-gutter: stable;
}
.cover-zoom {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgb(20 22 20 / 0);
  transition: background-color 700ms ease;
  cursor: zoom-out;
}
.cover-zoom.open {
  background: rgb(20 22 20 / 0.78);
}
.cover-zoom-box {
  position: fixed;
  margin: 0;
  transform-origin: center;
  transition: transform 700ms cubic-bezier(0.65, 0, 0.35, 1), box-shadow 700ms ease;
  box-shadow: 0 0 0 rgb(0 0 0 / 0);
  cursor: default;
}
.cover-zoom.open .cover-zoom-box {
  box-shadow: 0 2px 4px rgb(0 0 0 / 0.12), 0 6px 20px rgb(0 0 0 / 0.25);
}
.cover-zoom-caption {
  position: absolute;
  left: 16px;
  right: 16px;
  top: var(--pie-top, auto);
  margin: 0;
  text-align: center;
  color: #fff;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.cover-zoom.open .cover-zoom-caption {
  opacity: 1;
  transition: opacity 0.45s ease 0.5s;
}
.cover-zoom-caption span {
  display: block;
  font: 400 22px/1.2 var(--serif);
}
.cover-zoom-caption small {
  display: block;
  margin-top: 4px;
  font: 11px var(--sans);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.75;
}
.cover-zoom-close {
  position: absolute;
  top: max(14px, env(safe-area-inset-top, 0px));
  right: max(16px, env(safe-area-inset-right, 0px));
  z-index: 1;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgb(255 255 255 / 0.4);
  background: rgb(0 0 0 / 0.35);
  color: #fff;
  font-size: 18px;
  opacity: 0;
  transition: opacity 700ms ease;
}
.cover-zoom.open .cover-zoom-close {
  opacity: 1;
}
.album-cover svg {
  width: 100%;
  height: 100%;
  padding: 18%;
}
.album-meta .page-head {
  padding: 0;
}
.album-note-short {
  margin: 18px 0 0;
}
.notes-toggle {
  margin-top: 12px;
}
.album-meta h2 {
  font: 22px var(--serif);
  margin: 26px 0 8px;
}
.album-meta > div,
.album-text {
  font-size: 14px;
}
.album-text {
  white-space: pre-wrap;
  margin-top: 6px;
}
@media (max-width: 850px) {
  .album-head {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .album-cover {
    max-width: 420px;
  }
}

/* Ficha de canción. */
dialog .meta a:hover {
  color: var(--rust);
}
dialog .lyrics-year {
  margin-top: 22px;
}
dialog .song-note {
  font-size: 12px;
  color: var(--muted);
  white-space: pre-wrap;
}
.muted {
  color: var(--muted);
}

/* Formato ligero de textos (mismo marcado que el panel editorial). */
hr.mdhr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 10px 0;
}
.mdh {
  font-family: var(--serif);
  color: var(--rust);
  margin: 8px 0 2px;
  line-height: 1.25;
}
.mdh1 {
  font-size: 1.3em;
}
.mdh2 {
  font-size: 1.15em;
}
.mdh3 {
  font-size: 1em;
  font-weight: 600;
}
ul.md {
  margin: 4px 0;
  padding-left: 22px;
  white-space: normal;
}
blockquote.md {
  margin: 6px 0;
  padding: 3px 12px;
  border-left: 3px solid var(--rust);
  color: var(--muted);
}
a.mdlink {
  border-bottom: 1px solid var(--line);
}
a.mdlink:hover {
  color: var(--rust);
}
/* El enlace de regreso arranca exactamente a la altura común. */
.wrap.section > .text-link:first-child {
  display: inline-block;
}

/* Miniaturas de álbumes y listas (Álbumes, Inéditas y portada): tarjeta con borde curvo y elevación al pasar el mouse (como el taller),
   con la tipografía del sitio. */
.record-grid .record {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  transition:
    transform 0.15s,
    box-shadow 0.15s,
    border-color 0.15s;
}
.record-grid .record:hover,
.record-grid .record:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(37, 60, 53, 0.14);
  border-color: var(--rust);
}
body.dark .record-grid .record:hover {
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
}
.record-grid .record-cover {
  border-bottom: 1px solid var(--line);
}
.record-grid .record h3 {
  margin: 14px 14px 4px;
  transition: color 0.15s;
}
.record-grid .record:hover h3 {
  color: var(--rust);
}
.record-grid .record p {
  margin: 0 14px 14px;
}
.gallery[data-cols='6'] .record h3,
.gallery[data-cols='8'] .record h3 {
  margin: 10px 10px 3px;
}
.gallery[data-cols='6'] .record p,
.gallery[data-cols='8'] .record p {
  margin: 0 10px 10px;
}

/* Botón ✕ de los buscadores (reemplaza al nativo del navegador). */
.searchbox {
  position: relative;
}
.searchbox input::-webkit-search-cancel-button {
  appearance: none;
}
.search-clear {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 15px;
  color: var(--muted);
  transition: background 0.15s, color 0.15s;
}
.search-clear:hover {
  background: var(--card);
  color: var(--rust);
}
.search-clear[hidden] {
  display: none;
}

/* Buscador de la portada, sobre los botones del hero. */
.hero-search {
  margin: 26px 0 28px;
  padding: 10px 0;
  max-width: 560px;
}
.hero-search input {
  font-size: 21px;
}
.hero-search input::placeholder {
  color: var(--muted);
}
@media (max-width: 560px) {
  .hero-search input {
    font-size: 17px;
  }
}

/* Imagen de portada del hero. El fondo blanco del dibujo se funde con el papel; en tema oscuro se ve como lámina. */
.hero-art-wrap {
  position: relative;
  margin: 0;
}
/* 441 px = misma escala del dibujo que la imagen original a 560 px, sin el blanco superior. */
.hero-photo {
  display: block;
  width: auto;
  height: 441px;
  max-width: 100%;
  object-fit: contain;
  margin: 0 auto;
  mix-blend-mode: multiply;
}
/* El pie de foto cierra la columna: su línea final se alinea con la base de los botones. */
.hero-art-wrap .art-caption {
  margin-top: 12px;
  line-height: 1.3;
}
body.dark .hero-photo {
  mix-blend-mode: normal;
  border-radius: 10px;
  filter: brightness(0.94);
}
.hero-art-wrap .art-caption {
  gap: 20px;
}
.hero-art-wrap .art-caption span:last-child {
  text-align: right;
  white-space: nowrap;
}
@media (max-width: 850px) {
  .hero-photo {
    height: auto;
    max-height: 380px;
  }
}

/* Dedicatoria y cita al comienzo de una letra: más pequeñas y en cursiva; el autor sin cursiva. */
dialog .epigraph {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 26px;
}
dialog blockquote.epigraph p {
  margin: 0;
}
dialog .epigraph cite {
  display: block;
  margin-top: 8px;
  font-style: normal;
  font-size: 14px;
}

/* Presentación de Silvio en el hero: al ancho del buscador. */
.hero p.hero-bio {
  max-width: 600px;
}
/* Nombre completo y nacimiento en una sola línea (el paréntesis, algo más pequeño y sin cortes). */
.hero-birth {
  font-size: 13px;
  white-space: nowrap;
}
@media (max-width: 700px) {
  .hero-birth {
    white-space: normal;
  }
}
.hero-bio strong {
  color: var(--ink);
  font-weight: 600;
}

/* Inéditas en modo lista: la columna «Lista» ocupa el espacio libre; las demás, solo lo necesario. */
.list-table td:first-child {
  width: auto;
  color: inherit;
  font-size: inherit;
}
.list-table th:not(:first-child),
.list-table td:not(:first-child) {
  width: 1%;
  white-space: nowrap;
  padding-left: 28px;
}

/* ───────── Descargar ───────── */
.download-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: space-between;
  gap: 18px;
  margin: 10px 0 26px;
}
.scope-choice {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.scope-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  min-width: 220px;
  transition: border-color 0.15s, background 0.15s;
}
.scope-option:hover {
  border-color: var(--rust);
}
.scope-option:has(input:checked) {
  border-color: var(--ink);
  background: var(--white);
}
.scope-option input {
  accent-color: var(--rust);
  margin-top: 4px;
}
.scope-option b {
  display: block;
  font: 18px var(--serif);
}
.scope-option small {
  display: block;
  font-size: 11px;
  color: var(--muted);
}
.format-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.format-buttons button {
  padding: 13px 20px;
  font-size: 13px;
  border-radius: 0;
}
.format-buttons button span {
  opacity: 0.65;
  font-size: 11px;
  margin-left: 4px;
}
.format-buttons .outline {
  border: 1px solid var(--ink);
}
.format-buttons .outline:hover {
  background: var(--ink);
  color: var(--paper);
}
.format-buttons button:disabled {
  opacity: 0.6;
  cursor: progress;
}
/* Imagen de portada: mismo botón que los formatos; el nombre va debajo, chico, y se corta si es largo */
.format-buttons .cover-button {
  min-width: 150px;
  white-space: nowrap;
}
.format-buttons .cover-button:has(.cover-name) {
  padding-top: 6px;
  padding-bottom: 6px;
}
/* El nombre no ensancha el botón: ocupa el ancho que ya tiene y se corta con «…» */
.format-buttons .cover-button .cover-name {
  display: block;
  width: 0;
  min-width: 100%;
  font-size: 10px;
  line-height: 1.3;
  opacity: 0.7;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Formato: el mismo botón que Portada; despliega el menú con los formatos (cada uno descarga al elegirlo). */
.format-menu {
  position: relative;
}
.format-buttons .format-button {
  min-width: 150px;
  white-space: nowrap;
}
.format-list {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 30;
  min-width: 260px;
  display: grid;
  padding: 6px 0;
  background: var(--paper);
  border: 1px solid var(--ink);
  box-shadow: 0 6px 20px rgb(0 0 0 / 0.14);
}
.format-list[hidden] {
  display: none;
}
.format-buttons .format-list button {
  display: grid;
  gap: 2px;
  padding: 9px 16px;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.format-buttons .format-list button:hover,
.format-buttons .format-list button:focus-visible {
  background: var(--ink);
  color: var(--paper);
  outline: none;
}
.format-list b {
  font-weight: 600;
}
.format-buttons .format-list b span {
  margin-left: 4px;
}
.format-list small {
  font-size: 11px;
  opacity: 0.7;
}
.cover-picker {
  width: min(760px, calc(100vw - 32px));
}
.cp-filter {
  width: 100%;
}
.cp-scroll {
  max-height: min(56vh, 520px);
  overflow-y: auto;
  display: grid;
  gap: 16px;
  padding-right: 4px;
}
.cp-group h3 {
  font: 400 18px var(--serif);
  margin: 0 0 8px;
}
.cp-group h3 small {
  font: 11px var(--sans);
  color: var(--muted);
}
.cp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 8px;
}
.cp-item {
  display: grid;
  gap: 4px;
  padding: 6px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  border-radius: 0;
  cursor: pointer;
  text-align: center;
}
/* El buscador oculta con [hidden]: sin esto, display: grid lo anula y las que no coinciden se siguen viendo */
.cover-picker [hidden] {
  display: none;
}
.cp-item:hover {
  border-color: var(--rust);
}
.cp-item[aria-pressed='true'] {
  border-color: var(--rust);
  box-shadow: inset 0 0 0 1px var(--rust);
}
.cp-img {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  background: #fff;
  overflow: hidden;
}
.cp-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.cp-name {
  font-size: 11px;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cp-remove {
  margin-right: auto;
}
.pv {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.pv-bar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  font-size: 12px;
  color: var(--muted);
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.pv-bar b {
  color: var(--ink);
}
.pv-body {
  height: min(78vh, 980px);
  overflow: auto;
  padding: 22px;
  background: #8f978f;
}
body.dark .pv-body {
  background: #0f1813;
}
.pv-empty {
  color: #fff;
  text-align: center;
  padding: 60px 0;
}
/* Hojas de la vista previa (A4), como el panel del taller. */
.pg {
  background: #fff;
  color: #253c35;
  width: 100%;
  max-width: 640px;
  aspect-ratio: 210 / 297;
  margin: 0 auto 18px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
  padding: 7% 8% 9%;
  position: relative;
  overflow: hidden;
  font: 12px/1.5 var(--sans);
  content-visibility: auto;
  contain-intrinsic-size: 640px 905px;
}
.pg.flow {
  aspect-ratio: auto;
  contain-intrinsic-size: 640px 600px;
}
.pg.cover {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
}
/* Portada: imagen elegida sobre el título y créditos del sitio al pie */
.pg .cover-art {
  max-width: 54%;
  max-height: 42%;
  object-fit: contain;
  margin-bottom: 14px;
  filter: none;
}
.pg .credit {
  position: absolute;
  bottom: 4%;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 9.5px;
  letter-spacing: 0.04em;
  color: #697169;
}
.pg .t1 {
  font: 38px var(--serif);
  color: #253c35;
}
.pg .t2 {
  font: italic 24px var(--serif);
  color: #a74930;
  border-bottom: 1px solid #a74930;
  padding-bottom: 10px;
  margin-bottom: 10px;
}
.pg h1 {
  font: 24px var(--serif);
  color: #253c35;
  margin: 0 0 8px;
}
.pg h2 {
  font: 22px var(--serif);
  margin: 0 0 4px;
}
.pg .mut {
  color: #697169;
  font-size: 11px;
}
.pg .acc {
  color: #a74930;
  font-size: 11px;
}
.pg .lab {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #697169;
}
.pg .sec {
  font: 15px var(--serif);
  color: #a74930;
  margin: 12px 0 4px;
}
.pg .ix {
  font-size: 11px;
  cursor: pointer;
}
.pg .ix:hover {
  color: #a74930;
  text-decoration: underline;
}
.pg .rule {
  border-bottom: 1px solid #a74930;
  margin: 8px 0 14px;
}
.pg .st,
.pg .pre {
  white-space: pre-wrap;
  margin-bottom: 9px;
  font-family: var(--serif);
  font-size: 12.5px;
}
.pg .pre {
  font-family: var(--sans);
  font-size: 11.5px;
}
.pg .desc {
  margin-bottom: 14px;
}
.pg .epi {
  font: italic 11px/1.5 var(--serif);
  color: #697169;
  margin-bottom: 12px;
}
.pg .epi .by {
  font-style: normal;
  margin-top: 4px;
}
.pg .yr {
  font: 12.5px var(--serif);
  margin-top: 10px;
}
.pg .note {
  margin-top: 8px;
}
.pg .cvbox {
  width: 46%;
  aspect-ratio: 1;
  margin: 12px auto 14px;
  border: 1px dashed #d2d2c3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c7c7b8;
  overflow: hidden;
}
.pg .cvbox img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pg .ft {
  position: absolute;
  bottom: 3%;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 9px;
  color: #697169;
}
.pg .mdh {
  color: #a74930;
}

/* ───────── Mis canciones ───────── */
.my-tools {
  margin-top: 60px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
  max-width: 760px;
}
.my-tools h2 {
  font: 28px var(--serif);
  margin: 0 0 10px;
}
.my-tools p {
  font-size: 13px;
  color: var(--muted);
}
.my-tools .import-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  margin-top: 18px;
}
.my-tools label.text-link {
  cursor: pointer;
}
@media (max-width: 560px) {
  .pv-body {
    padding: 10px;
  }
  .scope-option {
    min-width: 0;
    flex: 1 1 100%;
  }
}

/* Descripción de una lista de inéditas. */
.list-desc {
  max-width: 820px;
  margin: -8px 0 26px;
  line-height: 1.75;
}
/* Junto a la portada, el encabezado no tiene relleno inferior: la descripción lleva su propia separación. */
.album-meta .list-desc {
  margin-top: 22px;
}

/* Portadas de listas: PNG transparente sobre el color propio de cada lista, con etiqueta y fechas encima. */
.list-cover {
  background: var(--cover-bg) !important;
  color: var(--cover-ink) !important;
  position: relative;
}
.list-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12% 10% 18%;
}
.list-cover .cover-label,
.list-cover .cover-year {
  position: absolute;
  z-index: 1;
}
.album-cover.list-cover .cover-label,
.album-cover.list-cover .cover-year {
  font-family: var(--serif);
}
.album-cover.list-cover .cover-year {
  right: 22px;
  bottom: 14px;
  font-size: 34px;
  opacity: 0.55;
}
/* Recorrido destacado de la portada. */
.feature-cover {
  display: block;
  aspect-ratio: 1;
  max-width: 460px;
  margin: 0 auto;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.15s, box-shadow 0.15s;
}
.feature-cover:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
}
.feature-cover .cover-label {
  left: 22px;
  top: 18px;
  letter-spacing: 0.22em;
  font-size: 9px;
}
.feature-cover .cover-year {
  right: 22px;
  bottom: 14px;
  font: 40px var(--serif);
  opacity: 0.55;
}
.feature .text-link + .text-link {
  margin-left: 22px;
}

.album-cover img.list-art {
  position: absolute;
  object-fit: contain;
}

/* Lista destacada de la portada: solo la imagen, sin recuadro. */
.feature-image {
  display: block;
  transition: transform 0.2s;
}
.feature-image:hover {
  transform: translateY(-3px);
}
.feature-image img {
  display: block;
  width: 100%;
  max-width: 560px;
  height: auto;
  margin: 0 auto;
}

/* Texto de la recomendación editorial: ancho para que entre en 4 líneas en escritorio. */
.feature p {
  max-width: 480px;
}

/* Sobre el fondo oscuro de la sección destacada, el trazo negro del dibujo se invierte a un tono claro
   (cercano al color papel). El fondo transparente no cambia. */
.feature-image img {
  filter: invert(0.94) sepia(0.12);
}

dialog .epigraph.dedication p {
  margin: 0 0 10px;
}
dialog .epigraph.dedication p:last-child {
  margin-bottom: 0;
}

/* Portada de la página de una lista (con imagen o con el número de canciones, como la miniatura). */
.album-cover.list-cover {
  display: flex;
  align-items: center;
  justify-content: center;
}
.album-cover.list-cover .cover-label {
  left: 22px;
  top: 18px;
  font: 9px var(--sans);
  letter-spacing: 0.22em;
}
.album-cover.list-cover .list-count {
  font: 400 clamp(64px, 8vw, 120px) / 1 var(--serif);
  font-variant-numeric: lining-nums;
}

/* Tablas de canciones: mismos anchos de columna en todas las páginas (el contenido largo se ajusta
   en varias líneas en lugar de ensanchar la columna). Columnas: N.º · Canción · Año · Discos/lista · Letra · ☆ */
.song-table:not(.album-table):not(.list-table):not(.bestia-table):not(.bestia-rel-table) {
  table-layout: fixed;
}
.song-table:not(.album-table):not(.list-table):not(.bestia-table):not(.bestia-rel-table) th:nth-child(1) {
  width: 52px;
}
/* Año: 168 px para que las fechas completas («30 de septiembre de 1969») entren en una línea. */
.song-table:not(.album-table):not(.list-table):not(.bestia-table):not(.bestia-rel-table) th:nth-child(3) {
  width: 168px;
}
.song-table:not(.album-table):not(.list-table):not(.bestia-table):not(.bestia-rel-table) th:nth-child(4) {
  width: 28%;
}
.song-table:not(.album-table):not(.list-table):not(.bestia-table):not(.bestia-rel-table) th:nth-child(5) {
  width: 110px;
}
.song-table:not(.album-table):not(.list-table):not(.bestia-table):not(.bestia-rel-table) th:nth-child(6) {
  width: 56px;
}
.song-table:not(.album-table):not(.list-table):not(.bestia-table):not(.bestia-rel-table) td {
  overflow-wrap: anywhere;
}
.song-table:not(.album-table):not(.list-table):not(.bestia-table):not(.bestia-rel-table) td.year {
  white-space: normal;
}
@media (max-width: 560px) {
  .song-table:not(.album-table):not(.list-table):not(.bestia-table):not(.bestia-rel-table) th:nth-child(1) {
    width: 34px;
  }
  .song-table:not(.album-table):not(.list-table):not(.bestia-table):not(.bestia-rel-table) th:nth-child(5) {
    width: 76px;
  }
  .song-table:not(.album-table):not(.list-table):not(.bestia-table):not(.bestia-rel-table) th:nth-child(6) {
    width: 40px;
  }
}

/* ───────── Carruseles de la portada ───────── */
.section-tools {
  display: flex;
  align-items: center;
  gap: 22px;
  flex: none;
}
.carousel-arrows {
  display: flex;
  gap: 8px;
}
.carousel-arrow {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  transition:
    border-color 0.15s,
    color 0.15s,
    background 0.15s;
}
.carousel-arrow svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.carousel-arrow:hover {
  border-color: var(--rust);
  color: var(--rust);
}
/* Una fila que se desplaza; el ancho de cada tarjeta sale de --cols y del espacio entre ellas. */
.carousel-track {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  /* Espacio para que la tarjeta suba y proyecte sombra al pasar el mouse sin que la fila la recorte. */
  padding: 8px 28px 32px;
  margin: -8px -28px -32px;
  scroll-padding-inline: 28px;
  outline-offset: 10px;
}
.carousel-track::-webkit-scrollbar {
  display: none;
}
.carousel-track > .record {
  flex: 0 0 calc((100% - 28px * (var(--cols) - 1)) / var(--cols));
  scroll-snap-align: start;
}
/* Profundidad para el giro de la tarjeta que entra al pasar (ver ui/carousel.js). */
.carousel-track {
  perspective: 1600px;
}
@media (max-width: 850px) {
  .section-tools {
    width: 100%;
    justify-content: space-between;
  }
  .carousel-track {
    gap: 18px;
  }
  .carousel-track > .record {
    flex-basis: calc((100% - 18px) / 2);
  }
}
@media (max-width: 560px) {
  .carousel-track > .record {
    flex-basis: 84%;
  }
}

/* Aportes y sugerencias: botón del header, enlace en la ficha de canción y formulario en un diálogo. */
#contributeBtn {
  font-size: 21px;
  line-height: 1;
}
dialog .reader-actions .reader-contribute {
  margin-left: auto;
}
#contribute {
  width: min(760px, 94vw);
  padding: 40px 55px 34px;
}
#contribute h2 {
  font: 34px/1.15 var(--serif);
  margin: 14px 0 8px;
}
.cf-intro {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 13px;
}
.cf-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 24px;
}
.cf-field {
  display: block;
  margin: 0 0 16px;
  padding: 0;
  border: 0;
  min-width: 0;
}
.cf-field > label,
.cf-field legend {
  display: block;
  padding: 0;
  margin-bottom: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.cf-field > label span,
.cf-field legend span {
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--muted);
}
#contribute input:not([type='checkbox']),
#contribute textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--white);
  font: 14px/1.5 var(--sans);
  color: var(--ink);
}
#contribute textarea {
  resize: vertical;
  min-height: 104px;
}
#contribute input:focus,
#contribute textarea:focus {
  outline: none;
  border-color: var(--rust);
}
.cf-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px 24px;
  margin-bottom: 8px;
}
.cf-options label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 4px 0;
  font-size: 13px;
  line-height: 1.4;
  cursor: pointer;
}
.cf-options input {
  flex: none;
  margin: 2px 0 0;
  accent-color: var(--rust);
  width: 15px;
  height: 15px;
}
.cf-options label:hover span {
  color: var(--rust);
}
#cfOther {
  margin-top: 4px;
}
.cf-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.cf-error {
  margin: -6px 0 16px;
  color: var(--rust);
  font-size: 13px;
}
.cf-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 28px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
.cf-actions .solid[disabled] {
  opacity: 0.6;
  cursor: wait;
}
@media (max-width: 700px) {
  #contribute {
    padding: 45px 22px 28px;
  }
  .cf-row,
  .cf-options {
    grid-template-columns: 1fr;
  }
  dialog .reader-actions .reader-contribute {
    margin-left: 0;
  }
}
/* Pantallas bajas (portátiles): el formulario se compacta para entrar entero, sin scroll. */
@media (min-width: 701px) and (max-height: 880px) {
  #contribute {
    max-height: 96vh;
    padding: 26px 48px 22px;
  }
  #contribute h2 {
    font-size: 28px;
    margin: 8px 0 4px;
  }
  .cf-intro {
    margin-bottom: 14px;
  }
  .cf-field {
    margin-bottom: 11px;
  }
  .cf-field > label,
  .cf-field legend {
    margin-bottom: 4px;
  }
  #contribute input:not([type='checkbox']) {
    padding: 8px 12px;
  }
  .cf-options label {
    padding: 2px 0;
  }
  #contribute textarea {
    min-height: 74px;
  }
  .cf-actions {
    padding-top: 14px;
  }
  .cf-actions .solid {
    padding: 11px 22px;
  }
}

/* ───────── Palabras (adaptado del «Mapa del tiempo» de Silvio, entre líneas) ───────── */
:root {
  /* Tonos tenues de la nube de palabras de la portada. */
  --cloud-0: #6f8f7f;
  --cloud-1: #b0857b;
  --cloud-2: #7b8fa8;
  --cloud-3: #a99467;
  --cloud-4: #8f86a8;
  --cloud-5: #6d9a98;
}
body.dark {
  --cloud-0: #a9c7b6;
  --cloud-1: #e2b7ac;
  --cloud-2: #afc0d6;
  --cloud-3: #d8c493;
  --cloud-4: #c2b9d8;
  --cloud-5: #a3cbc8;
}
.palabras-page .page-head h1 {
  font-size: 72px;
  line-height: 1.02;
}
.time-panel {
  background: var(--white);
  padding: 35px;
  border: 1px solid var(--line);
}
.time-panel .section-head {
  flex-wrap: wrap;
  margin-bottom: 18px;
  align-items: flex-start;
}
.time-panel h2,
.word-panel h2 {
  font-size: 40px;
  margin: 14px 0 0;
}
.segmented {
  display: flex;
  border: 1px solid var(--line);
  padding: 4px;
  gap: 4px;
}
.segmented button {
  padding: 9px 16px;
  font-size: 12px;
  min-height: 42px;
}
.segmented button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
}
/* En una sola línea en pantallas anchas; en el móvil se ajusta. */
.chart-explainer {
  font-size: 13px;
  color: var(--muted);
}
.decade-chart {
  display: grid;
  gap: 10px;
  margin: 36px 0 0;
  min-height: 270px;
}
.decade-column {
  display: flex;
  flex-direction: column;
  justify-content: end;
  align-items: stretch;
  min-width: 0;
  padding: 10px 8px;
  border: 1px solid transparent;
  text-align: center;
}
.decade-column:hover,
.decade-column.selected {
  background: var(--card);
  border-color: var(--line);
}
.bar-value {
  font: 27px var(--serif);
  display: block;
  margin-bottom: 8px;
}
.bar-space {
  height: 165px;
  display: flex;
  align-items: end;
  border-bottom: 1px solid var(--line);
  padding-inline: 25%;
}
.chart-bar {
  background: var(--ink);
  width: 100%;
  min-width: 5px;
  transition: height 0.3s;
}
.decade-column.selected .chart-bar {
  background: var(--rust);
}
.bar-year {
  font-size: 13px;
  margin-top: 12px;
}
.bar-year small {
  font-size: 9px;
  color: var(--muted);
  display: block;
}
.chart-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  padding: 22px 0 0;
  gap: 20px;
  color: var(--muted);
}
.chart-bottom .text-link {
  font-size: 11px;
  color: var(--ink);
}
.map-focus {
  border-top: 1px solid var(--line);
  margin-top: 25px;
}
.map-focus-head {
  font-size: 12px;
  padding: 16px 0 6px;
}
.map-focus details summary {
  cursor: pointer;
  font-size: 13px;
  padding: 8px 0;
  min-height: 40px;
}
.map-focus .song-table {
  margin-top: 10px;
}
.map-albums {
  padding-top: 25px;
}
/* Primera sección de la página, sin título propio: va pegada a la cabecera; el relleno inferior separa del reloj. */
.word-panel {
  padding-top: 0;
}
.word-panel .word-layout {
  margin-top: 10px;
}
.word-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 70px;
  align-items: start;
  margin-top: 26px;
}
.word-layout > div > p {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 24px;
}
.word-bars {
  display: grid;
  gap: 3px;
}
.word-bar {
  padding: 12px 10px;
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) 34px;
  gap: 15px;
  align-items: center;
  text-align: left;
  border: 1px solid transparent;
  min-height: 45px;
}
.word-bar:hover,
.word-bar.selected {
  border-color: var(--line);
  background: var(--card);
}
.word-bar > span:first-child {
  font: 22px var(--serif);
}
.word-track {
  height: 6px;
  background: var(--line);
}
.word-track i {
  height: 100%;
  display: block;
  background: var(--ink);
}
.word-bar.selected .word-track i {
  background: var(--rust);
}
.word-bar b {
  font-size: 12px;
  text-align: right;
  font-weight: 400;
}
.custom-word {
  margin: 30px 0 12px;
}
.custom-word label {
  display: block;
  font-size: 11px;
  margin-bottom: 8px;
}
.custom-word > div {
  display: flex;
  gap: 10px;
}
.custom-word input {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  padding: 10px 12px;
  background: var(--white);
  font: 14px var(--sans);
  color: var(--ink);
}
.custom-word input:focus {
  outline: none;
  border-color: var(--rust);
}
.solid.small {
  padding: 10px 18px;
  gap: 14px;
  white-space: nowrap;
}
.fine {
  font-size: 11px;
  color: var(--muted);
}
.word-results {
  border-left: 1px solid var(--line);
  padding-left: 40px;
}
.word-result-title h3 {
  font: 52px/1.1 var(--serif);
  margin: 20px 0 10px;
}
.word-result-title p {
  font-size: 11px;
  color: var(--muted);
}
.word-song-list {
  list-style: none;
  margin: 20px 0 0;
  padding: 0 12px 0 0;
  max-height: 750px;
  overflow-y: auto;
  border-top: 1px solid var(--line);
}
.word-song-list li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 32px;
  gap: 12px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.word-song-list .n {
  font-size: 11px;
  color: var(--muted);
}
.word-song-list .song-title {
  font: 23px/1.2 var(--serif);
  text-align: left;
  padding: 0;
}
.word-song-list .song-title:hover {
  color: var(--rust);
}
.word-song-list small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
}

/* Portada: «Ver las conexiones» con la nube de palabras. */
.map-teaser {
  background: var(--card);
  padding: 55px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
/* En la portada va entre líneas: arriba la suya, abajo la de «Tu propio mapa de canciones». */
.connections {
  border-top: 1px solid var(--line);
  /* Mismo aire a los dos lados de cada línea: arriba lo da el relleno inferior de la sección anterior (80px). */
  padding: 80px 0;
}
.map-teaser h2 {
  margin: 20px 0;
  font-size: 58px;
  line-height: 1.05;
}
.map-teaser h2 em {
  color: var(--rust);
}
.map-teaser p {
  max-width: 410px;
  font-size: 14px;
  margin: 0 0 25px;
}
.cloud-box {
  transition: opacity 0.22s;
}
.cloud-box.fading {
  opacity: 0;
}
.cloud-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.cloud-refresh {
  font-size: 11px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 13px;
  white-space: nowrap;
}
.cloud-refresh:hover {
  color: var(--rust);
  border-color: var(--rust);
}
.word-cloud {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  /* Las filas se reparten en toda la altura fija: palabras separadas, la nube ocupa el recuadro. */
  align-content: space-evenly;
  gap: 14px 0;
  line-height: 1.15;
  text-align: center;
  /* --cloud-h: altura de la década más alta, medida en home.js. */
  min-height: var(--cloud-h, 210px);
}
.cloud-word {
  font-family: var(--serif);
  display: inline-block;
  /* Desorden de la nube: valores por palabra desde home.js. */
  margin: 0 var(--mx, 8px);
  transform: translateY(var(--dy, 0)) rotate(var(--rot, 0deg)) scale(var(--zoom, 1));
  opacity: 0.92;
  transition:
    color 0.15s,
    opacity 0.15s,
    transform 0.2s ease;
}
.cloud-word:hover,
.cloud-word:focus-visible {
  --zoom: 1.15;
  color: var(--rust);
  opacity: 1;
  position: relative;
  z-index: 1;
}
/* «Otra década»: las palabras nuevas llegan desordenadas y se acomodan (valores al azar desde home.js).
   Se mantiene aunque el sistema pida menos movimiento: es breve y la pidió el autor. */
.scatter-in .cloud-word {
  animation: cloud-settle 0.7s cubic-bezier(0.22, 1, 0.36, 1) var(--delay, 0ms) backwards;
}
@keyframes cloud-settle {
  from {
    opacity: 0;
    transform: translate(var(--fx, 0), var(--fy, 0)) rotate(var(--frot, 0deg)) scale(0.7);
  }
  to {
    opacity: 0.92;
    transform: translateY(var(--dy, 0)) rotate(var(--rot, 0deg));
  }
}
@media (prefers-reduced-motion: reduce) {
  .cloud-word {
    transition: color 0.15s, opacity 0.15s;
  }
}
.cloud-word.s1 {
  font-size: 18px;
}
.cloud-word.s2 {
  font-size: 23px;
}
.cloud-word.s3 {
  font-size: 29px;
}
.cloud-word.s4 {
  font-size: 37px;
}
.cloud-word.s5 {
  font-size: 48px;
  font-style: italic;
}
.cloud-word.t0 {
  color: var(--cloud-0);
}
.cloud-word.t1 {
  color: var(--cloud-1);
}
.cloud-word.t2 {
  color: var(--cloud-2);
}
.cloud-word.t3 {
  color: var(--cloud-3);
}
.cloud-word.t4 {
  color: var(--cloud-4);
}
.cloud-word.t5 {
  color: var(--cloud-5);
}
.cloud-note {
  display: block;
  font-size: 10px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 12px;
}

/* Cancionero: índice alfabético. */
.alphabet {
  display: flex;
  gap: 2px;
  flex-wrap: wrap;
  margin: 17px 0 4px;
}
.alphabet button {
  padding: 6px 9px;
  font-size: 11px;
  min-width: 29px;
  border: 1px solid transparent;
}
.alphabet button.active {
  color: var(--paper);
  background: var(--ink);
}
.alphabet button:hover {
  border-color: var(--line);
}

@media (min-width: 801px) and (max-width: 1100px) {
  .map-teaser {
    gap: 35px;
  }
  .word-layout {
    gap: 30px;
  }
  .word-results {
    padding-left: 25px;
  }
}
@media (max-width: 800px) {
  .map-teaser {
    padding: 35px;
    gap: 35px;
  }
  .map-teaser h2 {
    font-size: 45px;
  }
  .time-panel {
    padding: 25px;
  }
  .word-layout {
    gap: 30px;
  }
  .word-results {
    padding-left: 25px;
  }
  .decade-column {
    padding: 8px 3px;
  }
  .segmented button {
    padding: 8px 12px;
  }
}
@media (max-width: 560px) {
  .palabras-page .page-head h1 {
    font-size: 46px;
  }
  .map-teaser {
    grid-template-columns: 1fr;
    padding: 30px 22px;
    gap: 30px;
  }
  .map-teaser h2 {
    font-size: 44px;
  }
  .word-cloud {
    min-height: var(--cloud-h, 0);
  }
  .cloud-word.s5 {
    font-size: 38px;
  }
  .cloud-word.s4 {
    font-size: 31px;
  }
  .cloud-word.s3 {
    font-size: 25px;
  }
  .connections {
    padding: 45px 0;
  }
  .time-panel {
    padding: 20px 13px;
  }
  .time-panel h2,
  .word-panel h2 {
    font-size: 33px;
  }
  .time-panel .section-head {
    display: block;
  }
  .segmented {
    margin-top: 20px;
    width: max-content;
    max-width: 100%;
  }
  .decade-chart {
    gap: 2px;
    min-height: 220px;
    margin-top: 25px;
  }
  .bar-space {
    height: 130px;
    padding-inline: 24%;
  }
  .bar-value {
    font-size: 20px;
  }
  .bar-year {
    font-size: 10px;
  }
  .chart-bottom {
    display: block;
  }
  .chart-bottom .text-link {
    margin-top: 12px;
    display: inline-block;
  }
  .word-layout {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  .word-results {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-top: 25px;
  }
  .word-result-title h3 {
    font-size: 44px;
  }
  .custom-word > div {
    flex-wrap: wrap;
  }
  .alphabet {
    gap: 0;
  }
  .alphabet button {
    font-size: 10px;
  }
}

/* Palabras · Red de palabras: grafo de compañía en los versos. Líneas finas, tipografía clara, fondo neutro. */
/* Última sección de Palabras: el aire hasta el pie lo da la página (.section). */
.graph-panel {
  padding-bottom: 0;
}
.graph-panel .section-head {
  align-items: flex-end;
  margin-bottom: 22px;
}
.graph-panel h2 {
  font-size: 40px;
  margin: 14px 0 0;
}
.graph-stage {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
}
/* Botón de pantalla completa: el mismo de la constelación del Bestiario (.zoom-tools), con un solo botón. */
.graph-tools {
  z-index: 2;
}
/* El buscador de la cabecera solo aparece con la red maximizada (arriba ya está el de «Palabras que conectan»). */
.graph-search {
  display: none;
}
/* Pantalla completa: cabecera con el buscador, la red en todo el alto que queda y, debajo, el verso que une las palabras. */
html.graph-max {
  overflow: hidden;
}
.graph-panel.is-max {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  background: var(--paper);
  padding: max(14px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(10px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
}
.graph-panel.is-max .section-head {
  display: flex;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.graph-panel.is-max .section-head > div:first-child {
  flex: 1 1 auto;
}
.graph-panel.is-max h2 {
  font-size: 30px;
  margin-top: 6px;
}
.graph-panel.is-max .graph-search {
  display: block;
  margin: 0;
  flex: 0 1 380px;
}
.graph-panel.is-max .graph-stage {
  min-height: 0;
}
.graph-panel.is-max .word-graph {
  position: absolute;
  inset: 0;
  height: 100%;
}
/* Alto fijo para el detalle: al tocar una palabra la red no cambia de tamaño. */
.graph-panel.is-max .graph-caption {
  height: clamp(110px, 22vh, 170px);
  min-height: 0;
  overflow: auto;
  padding-top: 12px;
}
.graph-panel.is-max .graph-status:empty {
  display: none;
}
.word-graph {
  display: block;
  width: 100%;
  user-select: none;
}
.word-graph line {
  stroke: var(--muted);
  stroke-opacity: 0.32;
  transition:
    stroke 0.2s,
    stroke-opacity 0.2s;
}
.word-graph .wg-node {
  cursor: pointer;
  outline: none;
  transition: opacity 0.2s;
}
.word-graph .wg-node circle {
  fill: var(--paper);
  stroke: var(--ink);
  stroke-width: 1;
  transition:
    fill 0.2s,
    stroke 0.2s;
}
.word-graph .wg-node text {
  font: 15px var(--serif);
  fill: var(--ink);
  text-anchor: middle;
  paint-order: stroke;
  stroke: var(--white);
  stroke-width: 4px;
  stroke-linejoin: round;
  transition: fill 0.2s;
}
.word-graph .wg-node.d2 text {
  font-size: 13px;
  fill: var(--muted);
}
.word-graph .wg-node.d0 {
  cursor: default;
}
.word-graph .wg-node.d0 circle {
  fill: var(--rust);
  stroke: var(--rust);
}
.word-graph .wg-node.d0 text {
  font-size: 30px;
  font-style: italic;
  fill: var(--rust);
}
.word-graph .wg-node.expanded circle {
  fill: var(--ink);
}
.word-graph .wg-node:hover text,
.word-graph .wg-node:focus-visible text,
.word-graph .wg-node.selected text {
  fill: var(--rust);
}
.word-graph .wg-node:focus-visible circle,
.word-graph .wg-node.selected circle {
  stroke: var(--rust);
  fill: var(--rust);
}
/* Al señalar una palabra, sus conexiones se marcan y el resto se aparta. */
.word-graph.focusing .wg-node:not(.near) {
  opacity: 0.28;
}
.word-graph.focusing line:not(.on) {
  stroke-opacity: 0.12;
}
.word-graph line.on {
  stroke: var(--rust);
  stroke-opacity: 0.75;
}
.graph-caption {
  min-height: 92px;
  padding: 20px 0 0;
}
.graph-caption p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}
.graph-pair {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}
.graph-pair span {
  font: 22px var(--serif);
}
.graph-pair small {
  font-size: 11px;
  color: var(--muted);
}
.graph-caption blockquote {
  margin: 10px 0 12px;
  padding-left: 16px;
  border-left: 1px solid var(--rust);
  font: italic 17px/1.5 var(--serif);
}
.graph-actions {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.graph-actions .text-link {
  font-size: 12px;
}
@media (max-width: 560px) {
  .graph-panel .section-head {
    display: block;
  }
  .graph-panel .section-head .text-link {
    margin-top: 14px;
    display: inline-block;
  }
  .graph-panel h2 {
    font-size: 33px;
  }
  .word-graph .wg-node text {
    font-size: 13px;
  }
  .word-graph .wg-node.d2 text {
    font-size: 11px;
  }
  .word-graph .wg-node.d0 text {
    font-size: 24px;
  }
}

/* Álbumes · vista Décadas: filtros, etiquetas y buscador visibles pero deshabilitados (no se aplican al reloj). */
.filterbar.is-disabled,
.toolbar .chips:has(button:disabled),
.searchbox:has(input:disabled) {
  opacity: 0.45;
}
.filterbar.is-disabled select,
.filterbar.is-disabled input,
.filterbar.is-disabled button,
.searchbox input:disabled,
.toolbar .chips button:disabled {
  cursor: not-allowed;
}


/* ───────── Escuchar: bocina de las grillas, ventana del reproductor y minirreproductor ───────── */
.listen {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px;
  color: var(--ink);
  border: 1px solid transparent;
  line-height: 1;
}
.listen svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex: none;
}
.listen svg .wave,
.listen-head svg .wave,
.album-listen .listen-album svg .wave {
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  fill: none;
}
.listen:hover:not(:disabled) {
  color: var(--rust);
}
.listen:focus-visible {
  outline: 2px solid var(--rust);
  outline-offset: 2px;
}
/* Sin grabación verificada: se ve, pero apagada y sin ondas. */
.listen:disabled {
  opacity: 0.32;
  cursor: not-allowed;
}
.listen:disabled svg .wave {
  display: none;
}
.listen[data-state="playing"] {
  color: var(--rust);
}
.listen[data-state="loading"] svg {
  animation: listen-pulse 1s ease-in-out infinite;
}
.listen[data-state="error"] {
  color: var(--rust);
  opacity: 0.6;
}
@keyframes listen-pulse {
  50% {
    opacity: 0.35;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .listen[data-state="playing"] svg .wave {
    animation: listen-pulse 1.2s ease-in-out infinite;
  }
}
.song-table .listen-col {
  width: 52px;
  text-align: center;
}
.listen-head svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  vertical-align: -2px;
}
.reader-actions .listen {
  border-color: var(--line);
  padding: 8px 12px;
}
.reader-actions .listen span {
  font-size: 13px;
}
.album-listen {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 18px 0 6px;
}
.album-listen .listen-album {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.album-listen .listen-album svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
.album-listen .listen-album:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.album-listen small {
  font-size: 11px;
  color: var(--muted);
}

/* Ventana del reproductor (dialog modal). */
.player {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  padding: 0;
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100vh - 40px);
  overflow: auto;
}
.player::backdrop {
  background: rgba(20, 30, 26, 0.45);
}
.player-panel {
  display: grid;
  gap: 16px;
  padding: 22px 24px 20px;
}
.player-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.player-win {
  display: flex;
  gap: 4px;
}
.pbtn {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--ink);
  border: 1px solid transparent;
}
.pbtn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}
.pbtn:hover:not(:disabled) {
  border-color: var(--line);
  color: var(--rust);
}
.pbtn:focus-visible {
  outline: 2px solid var(--rust);
  outline-offset: 1px;
}
.pbtn:disabled {
  opacity: 0.3;
  cursor: default;
}
.pbtn.main {
  width: 46px;
  height: 46px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 50%;
}
.pbtn.main:hover:not(:disabled) {
  color: var(--paper);
  background: var(--rust);
}
.player-head {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}
.player-cover {
  aspect-ratio: 1;
  border: 1px solid var(--line);
  background: var(--card);
  overflow: hidden;
}
.player-cover img,
.player-cover svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.player-info {
  min-width: 0;
}
.player-info h2 {
  font: 400 28px/1.15 var(--serif);
  margin: 0;
  text-wrap: balance;
}
.player-meta {
  font-size: 13px;
  margin: 6px 0 0;
}
.player-source {
  font-size: 11px;
  color: var(--muted);
  margin: 6px 0 0;
}
.player-source a {
  color: var(--ink);
}
.player-stage {
  min-height: 80px;
}
.player-stage iframe {
  display: block;
  width: 100%;
  height: 152px;
  border: 0;
  border-radius: 12px;
}
.player-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.player-progress {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 200px;
  min-width: 0;
  font-size: 11px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.player-progress input {
  flex: 1;
  min-width: 0;
  accent-color: var(--rust);
}
.player-status {
  font-size: 12px;
  color: var(--muted);
  margin: -6px 0 0;
  min-height: 18px;
}
/* Aviso de muestra (sin sesión en Spotify): letra chica, debajo del reproductor. */
.player-sample {
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--muted);
  margin: -4px 0 0;
}
.player-sample[hidden],
.player.is-mini .player-sample {
  display: none;
}
.player[data-status="error"] .player-status {
  color: var(--rust);
}
.player-tracks {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  /* Caben 8 pistas completas (40 px cada una + el borde); con más, la lista se desplaza. */
  max-height: 322px;
  overflow-y: auto;
}
.player-tracks button {
  width: 100%;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: baseline;
  text-align: left;
  padding: 9px 4px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.player-tracks .n {
  font-size: 11px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.player-tracks .t {
  font: 16px/1.3 var(--serif);
}
.player-tracks small {
  font-size: 10px;
  color: var(--muted);
}
.player-tracks button:hover:not(:disabled) .t,
.player-tracks button.active .t {
  color: var(--rust);
}
.player-tracks button.active .n::before {
  content: "▸ ";
  color: var(--rust);
}
.player-tracks button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.player-note {
  font-size: 11px;
  color: var(--muted);
  margin: 0;
}
.player .mini-only {
  display: none;
}

/* Minirreproductor: el mismo dialog, no modal, fijo abajo; el reproductor de Spotify queda en su forma compacta. */
.player.is-mini {
  position: fixed;
  inset: auto 0 0 0;
  margin: 0;
  width: auto;
  max-width: none;
  max-height: none;
  overflow: visible;
  border-width: 1px 0 0;
  box-shadow: 0 -10px 30px -20px rgba(20, 30, 26, 0.5);
  z-index: 40;
}
.player.is-mini .player-panel {
  grid-template-columns: minmax(0, 1fr) auto auto;
  grid-template-areas: "stage controls top" "status status status";
  gap: 4px 14px;
  align-items: center;
  max-width: 1380px;
  margin: 0 auto;
  padding: 8px max(16px, env(safe-area-inset-right, 0px)) calc(8px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
}
.player.is-mini .player-head,
.player.is-mini .player-tracks,
.player.is-mini .player-note,
.player.is-mini .modal-only,
.player.is-mini #playerMode {
  display: none;
}
.player.is-mini .mini-only {
  display: inline-grid;
}
.player.is-mini .player-mini-title {
  display: none;
}
.player.is-mini .player-stage {
  grid-area: stage;
  min-height: 80px;
  min-width: 0;
}
.player.is-mini .player-stage iframe {
  height: 80px;
}
/* YouTube: vídeo 16:9. Minimizado sigue visible a 200 px de alto como mínimo (lo exigen las condiciones de YouTube). */
.player-stage.is-video iframe {
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 0;
}
.player.is-mini .player-stage.is-video iframe {
  width: min(356px, 100%);
  height: auto;
  min-height: 0;
}
.player.is-mini .player-controls {
  grid-area: controls;
  flex-wrap: nowrap;
}
.player.is-mini .player-top {
  grid-area: top;
}
.player.is-mini .player-status {
  grid-area: status;
  margin: 0;
  min-height: 0;
}
body.has-mini-player {
  padding-bottom: 130px;
}
@media (max-width: 640px) {
  .player-panel {
    padding: 18px 16px;
  }
  .player-head {
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 14px;
  }
  .player-info h2 {
    font-size: 22px;
  }
  .player.is-mini .player-panel {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "stage stage" "controls top";
  }
  .player.is-mini .player-status {
    display: none;
  }
  body.has-mini-player {
    padding-bottom: 170px;
  }
}

/* Solo para lectores de pantalla (p. ej. el nombre del reproductor). */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.player-status:empty {
  display: none;
}

/* Bocina del encabezado como filtro: resaltada (con grabación) o tachada (sin grabación). */
button.listen-head {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  color: var(--muted);
  border: 1px solid transparent;
  position: relative;
}
button.listen-head svg {
  width: 15px;
  height: 15px;
}
button.listen-head:hover {
  color: var(--rust);
}
button.listen-head:focus-visible {
  outline: 2px solid var(--rust);
  outline-offset: 2px;
}
button.listen-head.is-si,
button.listen-head.is-no {
  color: var(--rust);
  border-color: var(--rust);
}
button.listen-head.is-no::after {
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  top: 50%;
  border-top: 1.5px solid currentColor;
  transform: rotate(-40deg);
}

/* Discos relacionados (ficha del disco): motivo de la relación bajo los datos de la tarjeta. */
.record-why {
  font-size: 11px;
  color: var(--rust);
  letter-spacing: 0.04em;
  margin-top: 4px;
}
/* Sin línea propia (la grilla de canciones ya termina con una) y con poco aire hasta el pie. */
.related-albums {
  padding-top: 56px;
  padding-bottom: 0;
}

/* Elegir versión (canción con varias grabaciones). */
.version-picker {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  padding: 0;
  width: min(440px, calc(100vw - 32px));
}
.version-picker::backdrop {
  background: rgba(20, 30, 26, 0.45);
}
.vp-panel {
  display: grid;
  gap: 14px;
  padding: 24px;
}
.vp-panel h2 {
  font: 400 28px/1.15 var(--serif);
  margin: 0;
}
.vp-lead {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}
.vp-list {
  display: grid;
  gap: 6px;
}
.vp-option {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  cursor: pointer;
}
.vp-option:has(input:checked) {
  border-color: var(--rust);
}
.vp-option input {
  accent-color: var(--rust);
}
.vp-option b {
  display: block;
  font: 400 17px/1.25 var(--serif);
}
.vp-option small {
  font-size: 11px;
  color: var(--muted);
}
.vp-remember {
  font-size: 13px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.vp-remember input {
  accent-color: var(--rust);
}
.vp-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 18px;
}
.player-version {
  font-size: 12px;
  margin-left: auto;
  margin-right: 12px;
}

/* Ediciones según Discogs (ficha del disco). */
.discogs-editions {
  display: grid;
  gap: 10px;
  font-size: 14px;
}
.discogs-editions .muted {
  color: var(--muted);
  font-size: 13px;
}
.discogs-credits {
  display: grid;
  gap: 2px;
}
.discogs-credit {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.discogs-credit a {
  color: inherit;
}

/* Disco en YouTube: qué vídeo de la lista suena («03/12  Título»). */
.player-yt-now {
  display: flex;
  gap: 12px;
  align-items: baseline;
  padding: 8px 0 2px;
  list-style: none;
}
.player-yt-now .n {
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  font-size: 12px;
}

/* Ficha de canción: Escuchar bajo los álbumes, antes de la letra. */
.song-quick {
  display: flex;
  align-items: center;
  gap: 18px;
  /* Un poco más arriba (los 25 px de .meta quedan en 15) y a 20 px de la dedicatoria, la cita o la letra. */
  margin: -10px 0 20px;
}
dialog .song-quick + .lyrics {
  margin-top: 0;
}
/* Entre estrofas, 10 px menos que una línea en blanco. */
dialog .lyrics .st + .st {
  margin-top: calc(1.9em - 10px);
}
.song-quick .listen {
  border-color: var(--line);
  padding: 8px 14px;
}
.song-quick .listen span {
  font-size: 13px;
}
/* Línea de autoría con la estrella de favoritas a continuación, pequeña (como en las grillas). */
.song-head-row {
  display: flex;
  align-items: center;
  gap: 16px;
}
.song-head-row .song-fav {
  font-size: 17px;
  line-height: 1;
  color: var(--rust);
  padding: 0;
  transition: opacity 0.15s ease;
}
.song-head-row .song-fav:hover {
  opacity: 0.7;
}


/* «Dándole cuerda a mi reloj»: selector Tarjetas / Listado de los álbumes de la selección. */
.map-focus-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.segmented.small button {
  padding: 5px 12px;
  font-size: 12px;
}

/* Analítica: aviso de consentimiento (ui/analitica.js) y enlace «Privacidad» del pie. */
footer a[hidden] {
  display: none;
}
.cookie-aviso {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 1000;
  max-width: 560px;
  margin: 0 auto;
  padding: 16px 18px;
  display: flex;
  gap: 14px 18px;
  align-items: center;
  flex-wrap: wrap;
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 8px 28px rgb(0 0 0 / 0.16);
  font: 13px/1.5 var(--sans);
}
.cookie-aviso p {
  flex: 1 1 280px;
  margin: 0;
}
.cookie-aviso div {
  display: flex;
  gap: 8px;
  margin-left: auto;
}
.cookie-aviso button {
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: transparent;
  color: var(--ink);
  font: 600 12px var(--sans);
  cursor: pointer;
}
.cookie-aviso button.primary {
  background: var(--rust);
  border-color: var(--rust);
  color: var(--paper);
}
