/* Música sacra — aspecto «Monumental» del Asesor de Radar (perfil religioso): fondo oscuro, luz direccional,
   Garamond grande; sin letras cliché (Cinzel, góticas, doradas en cursiva). Contraste medido ≥ 4,5:1 en todo el texto. */
@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(letras/garamond-normal-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(letras/garamond-normal-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "EB Garamond"; font-style: italic; font-weight: 400 700; font-display: swap;
  src: url(letras/garamond-italic-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "EB Garamond"; font-style: italic; font-weight: 400 700; font-display: swap;
  src: url(letras/garamond-italic-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --fondo: #12100d;
  --piedra: #1d1914;
  --linea: #3a3229;
  --texto: #efe7d8;
  --suave: #b9ad98;
  --luz: #e3b977;
  --luz-fuerte: #f0cf96;
  --sobre-luz: #1a140c;
  --serif: "EB Garamond", Garamond, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --alto-reproductor: 0px;
}
* { box-sizing: border-box; }
html { color-scheme: dark; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; color: var(--texto); font-family: var(--sans); line-height: 1.5;
  background:
    radial-gradient(ellipse 70% 55% at 12% -8%, rgba(240, 207, 150, .20), transparent 70%),
    radial-gradient(ellipse 40% 30% at 95% 30%, rgba(227, 185, 119, .05), transparent 70%),
    var(--fondo);
  background-attachment: fixed;
  padding-bottom: calc(var(--alto-reproductor) + env(safe-area-inset-bottom));
}
a { color: var(--luz-fuerte); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--luz-fuerte); outline-offset: 3px; border-radius: 4px; }
.visualmente-oculto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.saltar { position: absolute; left: 1rem; top: -4rem; background: var(--luz); color: var(--sobre-luz); padding: .6rem 1rem; z-index: 10; }
.saltar:focus { top: 1rem; }

.portada { max-width: 46rem; margin: 0 auto; padding: clamp(3.5rem, 12vh, 7rem) 1.25rem 2.5rem; }
.antetitulo { margin: 0 0 .75rem; font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--suave); }
h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(3.2rem, 13vw, 6.5rem); line-height: .95; letter-spacing: -.015em; margin: 0; }
.lema { font-family: var(--serif); font-size: clamp(1.25rem, 3.6vw, 1.6rem); line-height: 1.35; margin: 1.25rem 0 .5rem; max-width: 32ch; }
.lema em { color: var(--luz-fuerte); }
.cuenta { color: var(--suave); margin: 0 0 2rem; font-size: .95rem; min-height: 1.5em; }
.escuchar {
  display: inline-flex; align-items: center; gap: .75rem; min-height: 56px; padding: 0 1.75rem 0 1.4rem; border: 0; border-radius: 999px;
  background: var(--luz); color: var(--sobre-luz); font: 600 1.15rem/1 var(--sans); cursor: pointer;
  box-shadow: 0 10px 40px -10px rgba(240, 207, 150, .45); transition: background .15s, transform .15s;
}
.escuchar:hover { background: var(--luz-fuerte); }
.escuchar:active { transform: scale(.97); }
.escuchar:disabled { opacity: .5; cursor: progress; }
.escuchar-icono { font-size: 1rem; }

main { max-width: 46rem; margin: 0 auto; padding: 0 1.25rem 3rem; outline: none; }
.familias { display: flex; gap: .5rem; overflow-x: auto; padding: .25rem 0 1rem; scrollbar-width: none; margin: 0 -1.25rem; padding-inline: 1.25rem; }
.familias::-webkit-scrollbar { display: none; }
.familia {
  flex: none; min-height: 44px; padding: 0 1rem; border-radius: 999px; border: 1px solid var(--linea); background: transparent;
  color: var(--texto); font: 500 .95rem var(--sans); cursor: pointer; white-space: nowrap;
}
.familia:hover { border-color: var(--suave); }
.familia[aria-pressed="true"] { background: var(--texto); color: var(--fondo); border-color: var(--texto); }
.familia .n { color: inherit; opacity: .7; margin-left: .35rem; font-variant-numeric: tabular-nums; }

.buscar input {
  width: 100%; min-height: 48px; padding: 0 1rem; border-radius: 12px; border: 1px solid var(--linea); background: var(--piedra);
  color: var(--texto); font: 1rem var(--sans);
}
.buscar input::placeholder { color: #9a8f7c; }
.estado { color: var(--suave); min-height: 1.5em; margin: 1rem 0 .25rem; }

.cantos { list-style: none; margin: 0; padding: 0; }
.canto { display: flex; align-items: stretch; border-bottom: 1px solid var(--linea); }
.canto-tocar {
  flex: 1; min-width: 0; text-align: left; background: none; border: 0; color: inherit; padding: .9rem .25rem; cursor: pointer;
  display: grid; grid-template-columns: 1.5rem 1fr; gap: .25rem .75rem; align-items: baseline;
}
.canto-tocar:hover .canto-titulo { color: var(--luz-fuerte); }
.canto-num { color: var(--suave); font-size: .85rem; font-variant-numeric: tabular-nums; text-align: right; }
.canto-titulo { font-family: var(--serif); font-size: 1.22rem; line-height: 1.25; overflow-wrap: anywhere; }
.canto-meta { grid-column: 2; color: var(--suave); font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.canto.sonando .canto-titulo { color: var(--luz-fuerte); }
.canto.sonando .canto-num { color: var(--luz-fuerte); }
.canto-accion {
  flex: none; width: 48px; min-height: 48px; background: none; border: 0; color: var(--suave); font-size: 1.25rem; cursor: pointer;
  display: grid; place-items: center;
}
.canto-accion:hover { color: var(--texto); }
.canto-accion[aria-pressed="true"] { color: var(--luz-fuerte); }
.canto-accion .pct { font: 600 .7rem var(--sans); }
.mas { display: block; margin: 1.5rem auto 0; min-height: 48px; padding: 0 1.5rem; border-radius: 999px; border: 1px solid var(--linea);
  background: none; color: var(--texto); font: 500 1rem var(--sans); cursor: pointer; }
.mas:hover { border-color: var(--suave); }

.acerca { margin-top: 4rem; padding-top: 2rem; border-top: 1px solid var(--linea); color: var(--suave); max-width: 60ch; }
.acerca h2 { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; color: var(--texto); margin: 0 0 1rem; }
.acerca strong { color: var(--texto); }
.actualizado { font-size: .85rem; }

.aviso {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--alto-reproductor) + 1rem + env(safe-area-inset-bottom));
  max-width: min(92vw, 30rem); background: var(--texto); color: var(--fondo); padding: .8rem 1.1rem; border-radius: 12px;
  font-size: .95rem; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); z-index: 20;
}

.reproductor {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; background: rgba(23, 20, 16, .97); border-top: 1px solid var(--linea);
  padding: .75rem 1rem calc(.75rem + env(safe-area-inset-bottom)); display: grid; gap: .4rem .75rem;
  grid-template-columns: 1fr auto; grid-template-areas: "ahora controles" "barra barra";
}
@supports (backdrop-filter: blur(1px)) { .reproductor { background: rgba(23, 20, 16, .85); backdrop-filter: blur(14px); } }
.ahora { grid-area: ahora; min-width: 0; }
.ahora-titulo { margin: 0; font-family: var(--serif); font-size: 1.15rem; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.credito { margin: .15rem 0 0; font-size: .75rem; color: var(--suave); line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.controles { grid-area: controles; display: flex; align-items: center; gap: .25rem; }
.ctl { width: 44px; height: 44px; border-radius: 50%; border: 0; background: none; color: var(--texto); font-size: 1.1rem; cursor: pointer; }
.ctl:hover { background: var(--piedra); }
.ctl-grande { width: 52px; height: 52px; background: var(--luz); color: var(--sobre-luz); font-size: 1.25rem; }
.ctl-grande:hover { background: var(--luz-fuerte); }
.barra { grid-area: barra; display: flex; align-items: center; gap: .6rem; }
.tiempo { font-size: .75rem; color: var(--suave); font-variant-numeric: tabular-nums; min-width: 2.6rem; }
.tiempo:last-child { text-align: right; }
#posicion { flex: 1; accent-color: var(--luz); min-height: 44px; margin: 0; }

@media (min-width: 760px) {
  .reproductor { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); grid-template-areas: "ahora controles barra"; align-items: center; padding-inline: 2rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
