/* Julián Guacaneme — portada
   1. Tokens (kit de marca 2026)
   2. Base
   3. Tipografía
   4. Botones y enlaces
   5. Retícula de puntos (secuenciador) y marcador de pasos
   6. Utilidades */

/* 1. Tokens -------------------------------------------------------------- */
:root {
  /* Paleta del kit: cuatro neutros cálidos y un solo acento */
  --tinta: #15171a;
  --grafito: #3a3d42;
  --piedra: #8a8780;
  --hueso: #f3f4f2;
  --cobre: #b4683c; /* solo gráficos y texto ≥ 24 px: no da contraste en letra pequeña */

  --c-bg: var(--hueso);
  --c-text: var(--tinta);
  --c-muted: var(--grafito); /* sobre Hueso el secundario va en Grafito; Piedra no llega a AA */
  --c-line: color-mix(in srgb, var(--piedra) 55%, transparent);

  --f-serif: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --f-sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Escala sugerida del kit, fluida entre 390 y 1440 px */
  --t-display: clamp(3.25rem, 1.9rem + 5.6vw, 6.5rem); /* 52 → 104 */
  --t-h1: clamp(2.75rem, 1.9rem + 3.6vw, 5.25rem);     /* 44 → 84 */
  --t-h2: clamp(2.25rem, 1.75rem + 2vw, 3.5rem);       /* 36 → 56 */
  --t-h3: clamp(1.75rem, 1.6rem + 0.6vw, 2.25rem);     /* 28 → 36 */
  --t-lead: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
  --t-body: 1.0625rem;
  --t-small: 0.9375rem;
  --t-label: 0.75rem;

  --gutter: clamp(1rem, 0.4rem + 2.6vw, 2.5rem);
  --maxw: 76rem;
  --section-y: clamp(4.5rem, 3rem + 6vw, 9rem);
  --header-h: 4.5rem;
  --radius: 2px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* Secciones oscuras: Hueso sobre Tinta, Piedra para lo secundario */
.theme-dark {
  --c-bg: var(--tinta);
  --c-text: var(--hueso);
  --c-muted: var(--piedra);
  --c-line: color-mix(in srgb, var(--piedra) 35%, transparent);
  --logo-dot: var(--piedra);
  --logo-name: var(--hueso);
  --logo-desc: var(--piedra);
  background: var(--c-bg);
  color: var(--c-text);
}

/* 2. Base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--f-sans);
  font-size: var(--t-body);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--cobre); color: var(--hueso); }

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--tinta);
  color: var(--hueso);
}
.skip-link:focus { top: 1rem; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* 3. Tipografía ---------------------------------------------------------- */
h1, h2, h3, .serif {
  margin: 0;
  font-family: var(--f-serif);
  font-weight: 500;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 { font-size: var(--t-h1); line-height: 1; }
h2 { font-size: var(--t-h2); line-height: 1.05; }
h3 { font-size: var(--t-h3); line-height: 1.1; font-weight: 600; }
p { margin: 0; text-wrap: pretty; }

.display { font-size: var(--t-display); line-height: 0.95; }
.lead { font-size: var(--t-lead); line-height: 1.55; color: var(--c-muted); max-width: 38em; }
.muted { color: var(--c-muted); }
.small { font-size: var(--t-small); }

/* Etiqueta: DM Sans Bold, mayúsculas, espaciado amplio */
.label {
  font-family: var(--f-sans);
  font-size: var(--t-label);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-muted);
}

/* Frase de apoyo en cursiva Cormorant */
.apoyo {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 500;
  font-size: var(--t-h3);
  line-height: 1.2;
}

/* El punto cobre como punto final de un título */
.punto::after {
  content: "";
  display: inline-block;
  width: 0.16em;
  height: 0.16em;
  margin-left: 0.06em;
  border-radius: 50%;
  background: var(--cobre);
}

/* 4. Botones y enlaces --------------------------------------------------- */
.btn {
  --btn-bg: var(--tinta);
  --btn-fg: var(--hueso);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 3.25rem;
  padding: 0.875rem 1.5rem;
  border: 1px solid var(--btn-bg);
  border-radius: var(--radius);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--f-sans);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn svg { width: 1.125rem; height: 1.125rem; flex: none; transition: transform 0.25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

/* Principal: el punto cobre marca la acción, sin teñir el texto */
.btn--primary::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--cobre);
  flex: none;
}
.btn--primary:hover { --btn-bg: var(--grafito); }
.theme-dark .btn--primary { --btn-bg: var(--hueso); --btn-fg: var(--tinta); }
.theme-dark .btn--primary:hover { --btn-bg: #ffffff; }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--c-text);
  border-color: var(--c-line);
}
.btn--ghost:hover { border-color: var(--c-text); }

.btn--sm { min-height: 2.5rem; padding: 0.5rem 1rem; font-size: 0.9375rem; }
.btn--lg { min-height: 3.75rem; padding: 1rem 1.75rem; font-size: 1.0625rem; }

/* Enlace con flecha */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--c-line);
  padding-bottom: 0.2rem;
  transition: border-color 0.25s var(--ease);
}
.link-arrow svg { width: 1rem; height: 1rem; transition: transform 0.25s var(--ease); }
.link-arrow:hover { border-color: var(--cobre); }
.link-arrow:hover svg { transform: translate(2px, -2px); }

/* 5. Retícula de puntos ---------------------------------------------------
   Secuenciador de 16 pasos: un cursor de luz recorre la retícula al pulso
   (semicorcheas) y el punto cobre se queda siempre en su lugar. */
.dots {
  --size: 1rem;
  --gap: calc(var(--size) * 0.643); /* misma proporción del símbolo: r14, paso 46 */
  --dot: var(--grafito);
  --lit: var(--piedra);
  --step: 150ms;
  --bar: calc(var(--step) * 32); /* un compás sonando y uno en silencio */
  display: grid;
  grid-template-columns: repeat(4, var(--size));
  gap: var(--gap);
  width: max-content;
}
.theme-dark .dots { --dot: var(--piedra); --lit: var(--hueso); } /* kit: sobre Tinta los puntos pasan a Piedra */

.dots > span {
  width: var(--size);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--dot);
}
.dots > span:nth-child(7) { background: var(--cobre); } /* fila 2, columna 3, como en el logo */

.dots.is-playing > span {
  animation: dots-paso var(--bar) var(--ease) infinite;
  animation-delay: calc(var(--i, 0) * var(--step) + 0.6s);
}
.dots.is-playing > span:nth-child(7) { animation-name: dots-paso-cobre; }

@keyframes dots-paso {
  0% { background: var(--lit); transform: scale(1.12); }
  6%, 100% { background: var(--dot); transform: scale(1); }
}
@keyframes dots-paso-cobre {
  0% { transform: scale(1.25); }
  6%, 100% { transform: scale(1); }
}

/* Marcador de pasos (01–04): cuatro puntos en línea y el actual en cobre */
.steps-dots { display: inline-flex; gap: 0.4rem; }
.steps-dots > span {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--c-line);
}
.steps-dots > span.is-on { background: var(--cobre); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* 6. Utilidades ---------------------------------------------------------- */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.logo { display: block; width: auto; height: 2.75rem; }
.icon { width: 1.25rem; height: 1.25rem; }
.rule { height: 1px; border: 0; margin: 0; background: var(--c-line); }

/* =========================================================================
   Secciones de la portada
   7. Header y menú      8. Inicio           9. Pruebas
   10. Secciones base    11. Servicios       12. Audiovisual
   13. Partituras        14. Proceso         15. Sobre mí
   16. Testimonios       17. Para quién      18. Preguntas
   19. Cierre y footer   20. WhatsApp flotante y animaciones
   ========================================================================= */

/* 7. Header y menú ------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--c-line); }
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: var(--header-h);
}
.site-header__logo { flex: none; display: block; }
.site-header .logo--full { height: 2.5rem; }
@media (min-width: 1200px) { .site-header .logo--full { height: 3.25rem; } }
.site-header .logo--mark { display: none; height: 2rem; width: 2rem; }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: 1.75rem; margin: 0; padding: 0; list-style: none; }
.site-nav a {
  font-size: 0.9375rem;
  text-decoration: none;
  color: var(--c-muted);
  transition: color 0.2s var(--ease);
}
.site-nav a:hover { color: var(--c-text); }
.site-header__toggle {
  display: none;
  margin-left: auto;
  padding: 0.5rem;
  border: 0;
  background: none;
  cursor: pointer;
}
.site-header__toggle .icon { width: 1.5rem; height: 1.5rem; }
.site-header__toggle .icon--close,
.site-header.is-open .site-header__toggle .icon--open { display: none; }
.site-header.is-open .site-header__toggle .icon--close { display: block; }

@media (max-width: 959px) {
  .site-header__toggle { display: block; }
  .site-header__cta { margin-left: auto; }
  .site-header__toggle { margin-left: 0; }
  .site-header__inner { gap: 0.75rem; }
  .site-nav {
    position: absolute;
    inset: 100% 0 auto 0;
    margin: 0;
    padding: 0.5rem var(--gutter) 2rem;
    background: var(--tinta);
    border-bottom: 1px solid var(--c-line);
    display: none;
  }
  .site-nav li:last-child a { border-bottom: 0; }
  .site-header.is-open .site-nav { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav a {
    display: block;
    padding: 1rem 0;
    border-bottom: 1px solid var(--c-line);
    font-family: var(--f-serif);
    font-size: 1.75rem;
    color: var(--c-text);
  }
}
@media (max-width: 520px) {
  .site-header .logo--full { display: none; }
  .site-header .logo--mark { display: block; }
}

/* 8. Inicio -------------------------------------------------------------- */
.hero { padding-block: clamp(3.5rem, 2rem + 7vw, 9rem) clamp(4rem, 2rem + 8vw, 10rem); overflow: hidden; }
.hero__inner {
  display: grid;
  gap: clamp(3rem, 2rem + 4vw, 5rem);
  align-items: center;
}
.hero__text { display: grid; gap: 1.75rem; max-width: 52rem; }
.hero h1 { max-width: 12ch; }
.hero__actions { display: grid; gap: 0.875rem; justify-items: start; margin-top: 0.5rem; }
.hero__dots { justify-self: start; }
.hero__dots .dots { --size: clamp(1.75rem, 1rem + 3vw, 4.25rem); }

@media (min-width: 960px) {
  .hero__inner { grid-template-columns: 1fr auto; }
  .hero__dots { justify-self: end; }
}

/* 9. Pruebas ------------------------------------------------------------
   5 datos: 2 columnas (el último ocupa las dos) y 5 en línea desde 1100 px */
.proof { border-bottom: 1px solid var(--c-line); }
.proof__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
}
.proof__list li {
  display: grid;
  gap: 0.25rem;
  align-content: start;
  padding: 1.75rem 1rem 1.75rem 0;
  border-top: 1px solid var(--c-line);
}
.proof__list li:nth-child(-n + 2) { border-top: 0; }
.proof__list li:last-child { grid-column: 1 / -1; }
.proof__list strong { font-size: clamp(1.5rem, 1.3rem + 0.8vw, 2rem); font-weight: 600; line-height: 1.1; }
.proof__list span { font-size: var(--t-small); color: var(--c-muted); line-height: 1.45; }
@media (min-width: 1100px) {
  .proof__list { grid-template-columns: repeat(5, 1fr); }
  .proof__list li { padding: 2.25rem 1.5rem; border-top: 0; }
  .proof__list li:first-child { padding-left: 0; }
  .proof__list li:last-child { grid-column: auto; }
  .proof__list li + li { border-left: 1px solid var(--c-line); }
  .proof__list strong { font-size: 1.625rem; }
}

/* 10. Secciones base ----------------------------------------------------- */
.section { padding-block: var(--section-y); }
.section-head { display: grid; gap: 1.25rem; max-width: 44rem; margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); }

/* 11. Servicios ---------------------------------------------------------- */
.services__grid {
  display: grid;
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--c-line); /* las líneas entre tarjetas salen del espacio de 1 px */
  border: 1px solid var(--c-line);
}
.card {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 1.25rem;
  padding: clamp(1.75rem, 1.25rem + 2vw, 3rem);
  background: var(--c-bg);
  transition: background-color 0.3s var(--ease);
}
.card:hover { background: #fafaf8; }
.card__top { display: flex; justify-content: space-between; align-items: center; }
.card__top .label { color: var(--c-text); }
.card h3 { max-width: 16ch; }
.card__list { margin: 0; padding: 0; list-style: none; color: var(--c-muted); }
.card__list li { padding: 0.5rem 0; border-top: 1px solid var(--c-line); }
.card .link-arrow { justify-self: start; }
@media (min-width: 760px) { .services__grid { grid-template-columns: repeat(2, 1fr); } }

.feature {
  display: grid;
  gap: clamp(2rem, 1rem + 3vw, 4rem);
  align-items: center;
  margin-top: clamp(3rem, 2rem + 4vw, 6rem);
}
.feature__media { margin: 0; }
/* Cuadrada en todos los tamaños: en 4:3 el recorte le cortaba la cabeza a Julián */
.feature__media img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.feature__text { display: grid; gap: 1.25rem; justify-items: start; max-width: 34rem; }
.feature__text p:not(.label) { color: var(--c-muted); }
.feature__title { font-size: var(--t-h2); font-weight: 500; line-height: 1.05; }
@media (min-width: 860px) {
  .feature { grid-template-columns: 5fr 6fr; }
}

/* 12. Audiovisual -------------------------------------------------------- */
.av__inner { display: grid; gap: clamp(2.5rem, 2rem + 3vw, 5rem); }
.av__head { margin-bottom: 0; }
.av__actions { display: flex; flex-wrap: wrap; gap: 1rem 1.75rem; align-items: center; margin-top: 0.5rem; }
.credits { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--c-line); }
.credits li {
  display: grid;
  gap: 0.35rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--c-line);
}
.credits__title {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.5rem, 1.3rem + 1vw, 2.25rem);
  line-height: 1.1;
}
.credits__meta { font-size: var(--t-small); color: var(--c-muted); }
@media (min-width: 960px) {
  .av__inner { grid-template-columns: 5fr 6fr; align-items: start; }
  .av__head { position: sticky; top: calc(var(--header-h) + 2rem); }
}

/* 13. Partituras --------------------------------------------------------- */
.scores { border-bottom: 1px solid var(--c-line); }
.scores__inner { display: grid; gap: clamp(2.5rem, 2rem + 3vw, 5rem); align-items: center; }
.scores__art { margin: 0; padding: clamp(1.25rem, 1rem + 2vw, 2.5rem); border: 1px solid var(--c-line); background: #fafaf8; }
.leadsheet { width: 100%; height: auto; }
.leadsheet__staff { stroke: var(--piedra); stroke-width: 1; fill: none; }
.leadsheet__notes { fill: var(--grafito); }
.leadsheet__notes .is-cobre { fill: var(--cobre); }
.leadsheet__chords { font: 600 17px var(--f-sans); fill: var(--tinta); }
.leadsheet__lyrics { font: italic 500 17px var(--f-serif); fill: var(--grafito); }
.scores__text { display: grid; gap: 1.25rem; justify-items: start; }
.scores__text > p:not(.label) { color: var(--c-muted); max-width: 34rem; }
.scores__actions { display: flex; flex-wrap: wrap; gap: 1rem 1.75rem; align-items: center; }
@media (min-width: 900px) { .scores__inner { grid-template-columns: 6fr 5fr; } }

/* 14. Proceso ------------------------------------------------------------ */
.steps {
  display: grid;
  gap: 2.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: paso;
}
.steps li { display: grid; gap: 0.75rem; align-content: start; position: relative; padding-top: 2rem; }
/* La línea de tiempo: un punto por paso sobre una línea */
.steps li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  border-top: 1px solid var(--c-line);
  transform: translateY(0.3rem);
}
.steps li::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--grafito);
}
.steps li:first-child::after { background: var(--cobre); }
.steps__num { font-size: 3.5rem; line-height: 1; color: var(--c-muted); }
.steps p { color: var(--c-muted); }
.process__quote { margin-top: clamp(3rem, 2rem + 3vw, 5rem); max-width: 30ch; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 2rem; } }

/* 15. Sobre mí ----------------------------------------------------------- */
.about { background: #eceeeb; }
.about__inner { display: grid; gap: clamp(3rem, 2rem + 4vw, 6rem); align-items: center; }
.about__media { position: relative; margin: 0; }
.about__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 40% 30%; }
.about__dots { --size: 0.875rem; position: absolute; right: -0.75rem; bottom: -0.75rem; padding: 1rem; background: var(--hueso); }
.about__text { display: grid; gap: 1.25rem; }
.about__text > p:not(.label):not(.lead) { color: var(--c-muted); max-width: 36rem; }
.facts { margin: 0.5rem 0 0; padding: 0; list-style: none; max-width: 36rem; }
.facts li {
  position: relative;
  padding: 0.75rem 0 0.75rem 1.5rem;
  border-top: 1px solid var(--c-line);
  font-size: var(--t-small);
}
.facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.25rem;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--grafito);
}
.about__links { display: flex; flex-wrap: wrap; gap: 1rem 1.75rem; margin-top: 0.5rem; }
@media (min-width: 960px) { .about__inner { grid-template-columns: 5fr 6fr; } }

/* 16. Testimonios -------------------------------------------------------- */
.voices__grid {
  display: grid;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.voices blockquote {
  display: grid;
  gap: 1.5rem;
  align-content: space-between;
  height: 100%;
  margin: 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--c-text);
}
.voices blockquote p {
  font-family: var(--f-serif);
  font-size: clamp(1.5rem, 1.35rem + 0.6vw, 1.875rem);
  font-weight: 500;
  line-height: 1.25;
}
@media (min-width: 860px) { .voices__grid { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; } }

/* 17. Para quién --------------------------------------------------------- */
.fit { padding-top: 0; }
.fit__grid { display: grid; gap: 1px; background: var(--c-line); border: 1px solid var(--c-line); }
.fit__col { display: grid; gap: 1.25rem; align-content: start; padding: clamp(1.75rem, 1.25rem + 2vw, 3rem); background: var(--c-bg); }
.fit__col ul { margin: 0; padding: 0; list-style: none; }
.fit__col li {
  padding: 0.75rem 0 0.75rem 1.5rem;
  border-top: 1px solid var(--c-line);
  position: relative;
}
.fit__col li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.35rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--tinta);
}
.fit__no { font-size: var(--t-h3); line-height: 1.2; color: var(--c-muted); }
@media (min-width: 760px) { .fit__grid { grid-template-columns: 1fr 1fr; } }

/* 18. Preguntas ---------------------------------------------------------- */
.faq { border-top: 1px solid var(--c-line); }
.faq__inner { display: grid; gap: 1rem; }
.faq__list { border-top: 1px solid var(--c-line); }
.faq details { border-bottom: 1px solid var(--c-line); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem 0;
  font-family: var(--f-serif);
  font-size: clamp(1.375rem, 1.25rem + 0.5vw, 1.75rem);
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex: none; width: 1.25rem; height: 1.25rem; transition: transform 0.25s var(--ease); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details p { padding: 0 0 1.75rem; max-width: 42rem; color: var(--c-muted); }
@media (min-width: 960px) {
  .faq__inner { grid-template-columns: 4fr 7fr; gap: 4rem; align-items: start; }
}

/* 19. Cierre y footer ---------------------------------------------------- */
.final { padding-block: clamp(5rem, 3rem + 8vw, 11rem); }
.final__inner { display: grid; gap: 1.75rem; justify-items: start; }
.final .dots--sm { --size: 0.875rem; margin-bottom: 1rem; }
.final h2 { max-width: 14ch; }

.site-footer { border-top: 1px solid var(--c-line); padding-block: clamp(3rem, 2rem + 3vw, 5rem) 2rem; }
.site-footer__grid { display: grid; gap: 2.5rem; }
.site-footer__brand { display: grid; gap: 1rem; align-content: start; }
.site-footer__brand .logo { height: 3rem; }
.site-footer__brand .apoyo { font-size: 1.375rem; }
.site-footer ul { margin: 0.75rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.6rem; }
.site-footer a { text-decoration: none; color: var(--c-text); display: inline-flex; align-items: center; gap: 0.6rem; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.site-footer .icon { width: 1.1rem; height: 1.1rem; color: var(--piedra); }
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--c-line);
}
.site-footer__bottom a { color: var(--c-muted); }
@media (min-width: 760px) { .site-footer__grid { grid-template-columns: repeat(3, 1fr); } .site-footer__brand { grid-column: 1 / -1; } }
@media (min-width: 1100px) { .site-footer__grid { grid-template-columns: 2fr 1fr 1fr 1.3fr; } .site-footer__brand { grid-column: auto; } }

/* 20. WhatsApp flotante y animaciones ------------------------------------ */
.wa-float {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--tinta);
  color: var(--hueso);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--hueso) 18%, transparent);
  opacity: 0;
  transform: translateY(1rem);
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.wa-float svg { width: 1.5rem; height: 1.5rem; }
.wa-float::after { /* el punto cobre como aviso */
  content: "";
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--cobre);
}
.wa-float.is-visible { opacity: 1; transform: none; pointer-events: auto; }

.js .reveal { opacity: 0; transform: translateY(16px); }
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s var(--ease) var(--reveal-delay, 0s), transform 0.7s var(--ease) var(--reveal-delay, 0s);
}

/* =========================================================================
   Tienda (/tienda/ y /partituras/)
   21. Encabezado   22. Filtros   23. Grupos por categoría   24. Tarjetas y portadas
   ========================================================================= */

/* 21. Encabezado --------------------------------------------------------- */
.hero--page { padding-block: clamp(3rem, 2rem + 4vw, 6rem); }
.hero--page h1 { font-size: var(--t-display); line-height: 0.95; max-width: none; }
.hero--page .hero__dots .dots { --size: clamp(1rem, 0.6rem + 1.4vw, 2rem); }
.hero--page .label a { color: inherit; text-decoration: none; }
.hero--page .label a:hover { color: var(--c-text); }

/* 22. Filtros ------------------------------------------------------------ */
.catalog { padding-top: clamp(2.5rem, 2rem + 2vw, 4rem); }
.catalog__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 1rem 2rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--c-line);
}
.filters { display: grid; gap: 0.75rem; }
.filters__group { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  min-height: 2.5rem;
  padding: 0.45rem 1rem;
  border: 1px solid var(--c-line);
  border-radius: 999px;
  background: transparent;
  font-size: var(--t-small);
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.chip:hover { border-color: var(--c-text); }
.chip[aria-pressed="true"] { background: var(--tinta); border-color: var(--tinta); color: var(--hueso); }

/* 23. Grupos por categoría ---------------------------------------------- */
.shop { display: grid; gap: clamp(4rem, 3rem + 4vw, 7rem); }
.shop__group { scroll-margin-top: calc(var(--header-h) + 1.5rem); }
.shop__group-head { display: grid; gap: 0.5rem; margin-bottom: clamp(1.75rem, 1.25rem + 1.5vw, 2.5rem); }
.shop__group-head h2 { font-size: var(--t-h2); }
.shop__group-head p { max-width: 40rem; }

/* 24. Tarjetas y portadas ------------------------------------------------ */
.catalog__grid {
  display: grid;
  gap: clamp(2rem, 1.5rem + 2vw, 3rem) clamp(1.5rem, 1rem + 2vw, 2.5rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 640px) { .catalog__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .catalog__grid { grid-template-columns: repeat(3, 1fr); } }

.product { display: grid; gap: 1.25rem; align-content: start; }
.product__cover { position: relative; margin: 0; aspect-ratio: 3 / 4; background: #eceeeb; overflow: hidden; }
.product__cover img { width: 100%; height: 100%; object-fit: cover; }

/* Portada automática: como una carátula de partitura con la marca */
.product__cover--auto {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 0.75rem;
  padding: clamp(1.5rem, 1rem + 2vw, 2.25rem);
  background: var(--tinta);
  color: var(--hueso);
  --logo-dot: var(--piedra);
}
.product__cover--auto .label { color: var(--piedra); }
.product__cover-title { font-family: var(--f-serif); font-size: clamp(2rem, 1.6rem + 1.5vw, 2.75rem); font-weight: 500; line-height: 1; }
.product__cover-format { font-size: var(--t-small); color: var(--piedra); }
.product__cover--auto .dots { --size: 0.75rem; --dot: var(--grafito); align-self: end; }

.product__badge {
  position: absolute;
  bottom: 1rem; /* abajo, para no tapar el texto de la portada automática */
  right: 1rem;
  padding: 0.3rem 0.7rem;
  background: var(--cobre);
  color: var(--hueso);
  font-size: var(--t-label);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.product__badge--soon { background: var(--hueso); color: var(--tinta); }
.product__body { display: grid; gap: 0.6rem; }
.product__body h3 { font-size: var(--t-h3); }
.product__credit { font-size: var(--t-small); color: var(--c-muted); }
.product__meta { margin-top: 0.25rem; }
.product__desc { color: var(--c-muted); font-size: var(--t-small); }
.product__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; margin-top: 0.75rem; }
.product__license { font-size: 0.8125rem; color: var(--c-muted); }

.catalog__empty { display: grid; gap: 1rem; justify-items: start; padding: 3rem 0; }
.final .label { margin-bottom: -0.75rem; }
