@font-face { font-family: "Bricolage"; src: url("/assets/fonts/bricolage.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Instrument"; src: url("/assets/fonts/instrument-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument"; src: url("/assets/fonts/instrument-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Instrument"; src: url("/assets/fonts/instrument-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --ink: #17102a;      /* fondo, el morado del ícono */
  --ink-2: #211839;    /* paneles */
  --line: #3a2f57;     /* divisiones */
  --text: #f3eef9;
  --muted: #b3aacb;
  --gold: #d9b46a;     /* dorado del logo */
  --gold-ink: #241a06;
  --s-voz: #e9c27a;
  --s-bateria: #ec8fab;
  --s-bajo: #7fd0c8;
  --s-guitarra: #ab9ff0;
  --name-col: 6.75rem;
  --state-col: 5.75rem;
  --lane-gap: 0.85rem;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--ink); color: var(--text);
  font: 400 1.0625rem/1.6 "Instrument", system-ui, sans-serif;
}
img { display: block; }
a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: #ecd09a; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: 72rem; margin: 0 auto; padding: 0 1.25rem; }
.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--gold-ink); padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; top: 1rem; }

h1, h2, h3 { font-family: "Bricolage", "Instrument", sans-serif; margin: 0; line-height: 1.08; }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.4rem); font-weight: 720; letter-spacing: -0.025em; max-width: 13ch; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 650; letter-spacing: -0.015em; max-width: 22ch; }
h3 { font-size: 1.15rem; font-weight: 620; }
p { margin: 0; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 34rem; margin-top: 1.25rem; }
.fine { font-size: .92rem; color: var(--muted); }

/* ---- Botones ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 2.9rem;
  padding: .6rem 1.25rem; border-radius: 999px; font: 600 1rem/1 "Instrument", sans-serif;
  text-decoration: none; border: 1.5px solid transparent; white-space: nowrap; cursor: pointer;
}
.btn-gold { background: var(--gold); color: var(--gold-ink); }
.btn-gold:hover { background: #e6c784; color: var(--gold-ink); }
.btn-line { border-color: var(--line); color: var(--text); }
.btn-line:hover { border-color: var(--gold); color: var(--text); }
.btn-ghost { color: var(--text); border-color: var(--line); min-height: 2.4rem; padding: .45rem 1rem; font-size: .92rem; }
.btn-ghost:hover { border-color: var(--gold); color: var(--text); }
.btn.is-soon { border-color: transparent; color: var(--muted); background: transparent; cursor: default; font-weight: 500; }

/* ---- Encabezado ---- */
.top { border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; gap: 1.5rem; min-height: 4.25rem; }
.brand { display: flex; align-items: center; gap: .6rem; color: var(--text); text-decoration: none; font: 650 1.1rem "Bricolage", sans-serif; }
.brand img { border-radius: 9px; }
.top-nav { display: flex; gap: 1.4rem; margin-left: 1rem; }
.top-nav a { color: var(--muted); text-decoration: none; font-weight: 500; }
.top-nav a:hover { color: var(--text); }
.top-end { margin-left: auto; display: flex; align-items: center; gap: 1rem; }
.langs { display: flex; gap: .15rem; }
.langs button {
  background: none; border: 0; color: var(--muted); font: 500 .85rem "Instrument", sans-serif;
  padding: .35rem .45rem; border-radius: 6px; cursor: pointer;
}
.langs button[aria-pressed="true"] { color: var(--text); background: var(--ink-2); }

/* ---- Portada ---- */
.hero { padding: 4.5rem 0 5rem; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 3.5rem; align-items: center; }
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.hero .fine { margin-top: 1rem; }

.mixer { margin: 0; background: var(--ink-2); border: 1px solid var(--line); border-radius: 18px; padding: 1.1rem 1.1rem 1rem; }
.mixer-head { display: flex; justify-content: space-between; color: var(--muted); font-size: .9rem; padding: 0 .35rem .8rem; }
.mixer-head .time { font-variant-numeric: tabular-nums; }
.lanes { position: relative; display: grid; gap: .45rem; }
.lane {
  display: grid; grid-template-columns: var(--name-col) minmax(0, 1fr) var(--state-col); gap: var(--lane-gap);
  align-items: center; width: 100%; padding: .55rem .6rem; border-radius: 10px;
  background: rgba(255, 255, 255, .03); border: 1px solid transparent; color: var(--text);
  font: 500 .95rem "Instrument", sans-serif; text-align: left; cursor: pointer;
}
.lane:hover { border-color: var(--line); }
.lane .wave { width: 100%; height: 2.6rem; fill: currentColor; transition: opacity .2s ease; }
.lane[data-stem="voz"] .wave { color: var(--s-voz); }
.lane[data-stem="bateria"] .wave { color: var(--s-bateria); }
.lane[data-stem="bajo"] .wave { color: var(--s-bajo); }
.lane[data-stem="guitarra"] .wave { color: var(--s-guitarra); }
.lane-state { font-size: .82rem; color: var(--muted); text-align: right; }
.lane.is-muted .wave { opacity: .16; }
.lane.is-muted .lane-name { color: var(--muted); }
.lane.is-muted .lane-state { color: var(--gold); }
.playhead {
  position: absolute; top: 0; bottom: 0; width: 2px; background: var(--text); opacity: .7; pointer-events: none;
  left: calc(.6rem + var(--name-col) + var(--lane-gap));
  animation: play 16s linear infinite;
}
@keyframes play {
  from { transform: translateX(0); }
  to { transform: translateX(var(--wave-w, 0px)); }
}
.mixer figcaption { color: var(--muted); font-size: .88rem; padding: .9rem .35rem 0; }

/* ---- Secciones ---- */
.band { border-top: 1px solid var(--line); padding: 4.5rem 0; }
.band h2 { margin-bottom: 2.25rem; }

.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 3.5rem; margin: 0; }
.features dt { font: 620 1.15rem "Bricolage", sans-serif; }
.features dd { margin: .35rem 0 0; color: var(--muted); max-width: 32rem; }

.pricing { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3.5rem; align-items: start; }
.pricing h2 { margin-bottom: 1.25rem; }
.pricing-copy p + p { margin-top: .9rem; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.plan { border: 1px solid var(--line); border-radius: 16px; padding: 1.4rem 1.4rem 1.5rem; }
.plan-best { border-color: var(--gold); }
.price { margin-top: .9rem; }
.price .amt { font: 700 2.4rem/1 "Bricolage", sans-serif; letter-spacing: -0.02em; }
.price .per { color: var(--muted); }
.save { margin-top: .6rem; color: var(--gold); font-weight: 500; font-size: .95rem; }
.plans-note { grid-column: 1 / -1; }

.downloads { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.downloads li { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.downloads p { color: var(--muted); margin-top: .2rem; max-width: 40rem; }

.faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 3rem; }
.faq-list details { border-bottom: 1px solid var(--line); padding: 1rem 0; }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; color: var(--gold); font-size: 1.3rem; line-height: 1; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list p { color: var(--muted); margin-top: .6rem; max-width: 40rem; }

.foot { border-top: 1px solid var(--line); padding: 3rem 0 3.5rem; }
.foot-row { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.foot-brand { font: 650 1.1rem "Bricolage", sans-serif; margin-bottom: .4rem; }
.foot-nav { display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; align-items: flex-start; }
.foot-nav a { color: var(--text); text-decoration: none; }
.foot-nav a:hover { color: var(--gold); }

/* ---- Pantallas chicas ---- */
@media (max-width: 900px) {
  .hero-grid, .pricing, .faq { grid-template-columns: 1fr; gap: 2.5rem; }
  .top-nav { display: none; }
}
@media (max-width: 620px) {
  :root { --name-col: 4.6rem; --state-col: 4.6rem; --lane-gap: .5rem; }
  .hero { padding: 3rem 0 3.5rem; }
  .band { padding: 3.25rem 0; }
  .features { grid-template-columns: 1fr; gap: 1.5rem; }
  .plans { grid-template-columns: 1fr; }
  .downloads li { flex-direction: column; align-items: flex-start; gap: .8rem; }
  .top-end .btn-ghost { display: none; }
  .lane { font-size: .85rem; }
  .lane-state { font-size: .75rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .playhead { animation: none; transform: translateX(calc(var(--wave-w, 0px) * .38)); }
}
