@font-face {
  font-family: 'Bricolage';
  src: url(assets/fonts/bricolage-grotesque-latin-standard-normal.woff2) format('woff2');
  font-weight: 200 800; font-stretch: 75% 100%; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212, U+2715;
}
@font-face {
  font-family: 'Bricolage';
  src: url(assets/fonts/bricolage-grotesque-latin-ext-standard-normal.woff2) format('woff2');
  font-weight: 200 800; font-stretch: 75% 100%; font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --noche: #161A3B;
  --noche-2: #20254F;
  --sabana: #E3B341;
  --morichal: #2F5D3A;
  --cedro: #8C4A23;
  --garza: #FBFBF7;
  --bruma: #A6ACD3;
  --tinta: #161A3B;
  --gutter: clamp(16px, 5vw, 72px);
  --max: 1240px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--noche); color: var(--garza);
  font-family: 'Bricolage', system-ui, sans-serif; font-size: 18px; line-height: 1.55;
  font-optical-sizing: auto; overflow-x: hidden;
}
img, video, svg, canvas { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.02em; text-wrap: balance; }
h2 { font-size: clamp(40px, 6.2vw, 88px); font-stretch: 78%; line-height: .92; }
h3 { font-size: 26px; font-stretch: 85%; line-height: 1.1; letter-spacing: -0.01em; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--sabana); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--sabana); color: var(--noche); padding: 10px 16px; border-radius: 10px; z-index: 100; text-decoration: none; font-weight: 700; }
.skip:focus { top: 12px; }
kbd { font: inherit; font-weight: 700; padding: 1px 7px; border-radius: 6px; border: 1px solid #ffffff33; background: #ffffff10; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 24px; border-radius: 14px; border: 0;
  background: var(--sabana); color: var(--noche); font-weight: 750; font-size: 17px; text-decoration: none;
  transition: transform .15s var(--ease), background .2s;
}
.btn:hover { background: #F0C35A; }
.btn:active { transform: scale(.97); }
.btn-small { min-height: 42px; padding: 0 16px; font-size: 15px; border-radius: 12px; }
.btn-ghost { background: transparent; color: var(--garza); box-shadow: inset 0 0 0 2px #ffffff40; }
.btn-ghost:hover { background: #ffffff12; }
.btn-ghost-dark { background: transparent; color: var(--noche); box-shadow: inset 0 0 0 2px var(--noche); }
.btn-ghost-dark:hover { background: #161A3B10; }
.btn-dark { background: var(--noche); color: var(--garza); }
.btn-dark:hover { background: var(--noche-2); }

/* ---------- Navegación ---------- */
.nav {
  position: absolute; inset: 0 0 auto 0; z-index: 10;
  display: flex; align-items: center; gap: 28px; padding: 22px var(--gutter);
}
.brand { display: flex; align-items: center; gap: 10px; font-size: 24px; font-weight: 800; font-stretch: 80%; text-decoration: none; letter-spacing: -0.01em; }
.brand-mark { width: 24px; height: 24px; border-radius: 50%; background: var(--sabana); position: relative; }
.brand-mark::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--noche); }
.nav nav { display: flex; gap: 24px; margin-left: auto; }
.menu-btn { display: none; }
.nav nav a { text-decoration: none; color: var(--bruma); font-weight: 500; font-size: 16px; }
.nav nav a:hover { color: var(--garza); }
@media (max-width: 860px) { .nav nav { display: none; } .nav .btn { margin-left: auto; } }

/* ---------- HERO ---------- */
.hero { position: relative; padding: 120px var(--gutter) 64px; max-width: 1440px; margin: 0 auto; }
.hero-title { font-size: clamp(64px, 12vw, 176px); font-stretch: 75%; line-height: .86; letter-spacing: -0.018em; }
.hero-title span { display: inline-block; }
.hero-sub { margin-top: 26px; max-width: 34em; color: var(--bruma); font-size: clamp(18px, 1.6vw, 21px); }
@media (prefers-reduced-motion: no-preference) {
  .hero-title span { animation: rise .9s var(--ease) both; }
  .hero-title span:nth-child(2) { animation-delay: .12s; }
  .hero-title span:nth-child(3) { animation-delay: .24s; }
  .hero-sub, .instrument { animation: fadein .8s .45s var(--ease) both; }
}
@keyframes rise { from { transform: translateY(.45em); opacity: 0; clip-path: inset(0 0 100% 0); } to { transform: none; opacity: 1; clip-path: inset(0 0 -10% 0); } }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }

.instrument { margin-top: clamp(32px, 5vw, 56px); }
.neck-wrap { position: relative; margin-right: calc(var(--gutter) * -1); }
@media (max-width: 640px) { .neck-wrap { margin-inline: calc(var(--gutter) * -1); } }
#neck { width: 100%; height: auto; touch-action: none; user-select: none; -webkit-user-select: none; cursor: grab; }
#neck:active { cursor: grabbing; }
#neck .string { stroke: #E6DFCF; fill: none; stroke-linecap: round; transition: stroke .25s; }
#neck .string.ringing { stroke: var(--sabana); }
#neck .str-name { fill: var(--garza); font-weight: 750; font-size: 22px; }
#neck .fret-num { fill: var(--bruma); font-size: 18px; }
#neck .dot { opacity: 0; transition: transform .35s var(--ease), opacity .2s; pointer-events: none; }
#neck .dot.on { opacity: 1; }
#neck .dot circle { fill: var(--sabana); stroke: var(--noche); stroke-width: 3; }
#neck .dot text { fill: var(--noche); font-weight: 800; font-size: 20px; }
.neck-hint {
  position: absolute; left: 50%; top: 0; transform: translate(-50%, -60%);
  display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 999px;
  background: #161A3BE6; color: var(--garza); font-size: 15px; font-weight: 600; pointer-events: none;
  transition: opacity .4s; white-space: nowrap;
}
.neck-hint.gone { opacity: 0; }
.hint-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--sabana); }
@media (prefers-reduced-motion: no-preference) { .hint-dot { animation: ping 1.6s infinite; } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 #E3B34199; } 100% { box-shadow: 0 0 0 12px #E3B34100; } }

.controls { margin-top: 18px; display: grid; gap: 16px; }
.chords { display: flex; flex-wrap: wrap; gap: 10px; }
.chord-btn {
  display: flex; align-items: baseline; gap: 10px; min-height: 56px; padding: 0 18px 0 20px;
  border-radius: 14px; border: 0; background: var(--noche-2); color: var(--garza);
  font-size: 22px; font-weight: 800; font-stretch: 85%; transition: background .2s, color .2s, transform .15s;
}
.chord-btn:hover { background: #2B3166; }
.chord-btn:active { transform: scale(.96); }
.chord-btn[aria-checked="true"] { background: var(--sabana); color: var(--noche); }
.cb-key { font-size: 13px; font-weight: 600; opacity: .55; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.tempo { display: flex; align-items: center; gap: 10px; color: var(--bruma); font-size: 15px; font-weight: 600; }
.tempo input { accent-color: var(--sabana); width: 140px; }
.tempo output { color: var(--garza); min-width: 3ch; font-weight: 750; }
.instrument.playing #golpeBtn { background: var(--garza); }
.keys { color: var(--bruma); font-size: 15px; }
@media (hover: none) { .keys { display: none; } }

.reto { margin-top: 28px; padding: 22px; border-radius: 22px; background: var(--noche-2); max-width: 760px; transition: transform .3s var(--ease); }
.reto.won { transform: scale(1.015); }
.reto-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.reto-title { font-weight: 750; font-size: 19px; }
.reto-steps { list-style: none; padding: 0; margin: 16px 0 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.reto-steps li {
  min-width: 64px; height: 44px; padding: 0 12px; border-radius: 999px; display: grid; place-items: center;
  background: #ffffff0d; color: var(--bruma); font-weight: 750; transition: background .25s, color .25s;
}
.reto-steps li.now { background: transparent; box-shadow: inset 0 0 0 2px var(--sabana); color: var(--garza); }
.reto-steps li.done { background: var(--morichal); color: var(--garza); }
.reto-msg { color: var(--bruma); font-size: 16px; }
.reto.active .reto-msg { color: var(--garza); }

/* ---------- Secciones ---------- */
.sec { position: relative; padding: clamp(72px, 10vw, 140px) var(--gutter); }
.sec > * { max-width: var(--max); margin-inline: auto; }
.sec-light { background: var(--garza); color: var(--tinta); }
.sec-sabana { background: var(--sabana); color: var(--tinta); }
.sec-dark { background: var(--noche); }
.lead { font-size: clamp(18px, 1.7vw, 22px); max-width: 38em; }
.narrow { max-width: 980px; margin-left: max(0px, calc((100% - var(--max)) / 2)); }
.sec-sabana .lead { margin-top: 22px; }

/* ---------- VIDEO ---------- */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.split-copy h2 { margin-bottom: 26px; }
.split-copy p { max-width: 30em; color: #3A3F66; }
.split-copy p + p { margin-top: 14px; }
.chapters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.chapters button { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 0; background: #161A3B10; color: var(--noche); font-weight: 700; transition: background .2s, color .2s; }
.chapters button:hover { background: #161A3B1c; }
.chapters button.on { background: var(--noche); color: var(--sabana); }

.video-frame { position: relative; margin: 0; border-radius: 28px; overflow: hidden; background: var(--noche); }
.video-frame video { width: 100%; aspect-ratio: 16 / 9; cursor: pointer; }
.video-frame figcaption { position: absolute; left: 0; top: 0; padding: 14px 20px; font-size: 14px; color: var(--bruma); opacity: 0; }
.video-play {
  position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%);
  width: 92px; height: 92px; border-radius: 50%; border: 0; background: var(--sabana); display: grid; place-items: center;
  transition: transform .2s var(--ease), opacity .2s;
}
.video-play svg { width: 44px; fill: var(--noche); margin-left: 6px; }
.video-play:hover { transform: translate(-50%, -50%) scale(1.06); }
.is-playing .video-play { opacity: 0; pointer-events: none; }
.video-bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px 12px; background: var(--noche); color: var(--garza); }
.vb-btn { width: 40px; height: 40px; flex: none; border: 0; border-radius: 10px; background: transparent; display: grid; place-items: center; }
.vb-btn:hover { background: #ffffff14; }
.vb-btn svg { width: 22px; fill: currentColor; }
.ico-pause, .ico-x { display: none; }
.is-playing .ico-play { display: none; }
.is-playing .ico-pause { display: inline; }
.is-muted .ico-wave { display: none; }
.is-muted .ico-x { display: inline; }
.vb-track { position: relative; flex: 1; height: 8px; border-radius: 4px; background: #ffffff26; cursor: pointer; touch-action: none; }
.vb-track::before { content: ""; position: absolute; inset: -14px 0; }
.vb-fill { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 4px; background: var(--sabana); }
.vb-mark { position: absolute; top: -3px; width: 3px; height: 14px; border-radius: 2px; background: var(--garza); opacity: .6; }
.vb-time { font-size: 14px; font-variant-numeric: tabular-nums; min-width: 3.2ch; }

/* ---------- AUDIO ---------- */
.players { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 48px; }
@media (max-width: 820px) { .players { grid-template-columns: 1fr; } }
.player { padding: 24px; border-radius: 24px; background: #FBFBF766; transition: background .25s; }
.player.is-playing { background: var(--garza); }
.player-top { display: flex; gap: 16px; align-items: flex-start; }
.player-top p { font-size: 16px; margin-top: 6px; color: #3A3F66; }
.pbtn { flex: none; width: 60px; height: 60px; border-radius: 50%; border: 0; background: var(--noche); color: var(--sabana); display: grid; place-items: center; transition: transform .15s; }
.pbtn:active { transform: scale(.94); }
.pbtn svg { width: 26px; fill: currentColor; }
.player .ico-play { transform: translateX(1px); }
.wave { width: 100%; height: 96px; margin-top: 18px; cursor: pointer; }
.player-meta { display: flex; justify-content: space-between; font-size: 14px; font-weight: 600; margin-top: 6px; font-variant-numeric: tabular-nums; }
.spectrum { width: 100%; height: 72px; margin-top: 28px; }

/* ---------- GRÁFICO ---------- */
.ruta-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 48px; align-items: end; }
.ruta-head .lead { color: var(--bruma); }
@media (max-width: 820px) { .ruta-head { grid-template-columns: 1fr; } }
.chart-wrap { margin-top: 48px; }
#chart { width: 100%; height: auto; overflow: visible; }
#chart .grid { stroke: #ffffff14; }
#chart .base { stroke: #ffffff40; stroke-width: 2; }
#chart .axis { fill: var(--bruma); font-size: 15px; }
#chart .axis-r { fill: var(--sabana); }
#chart .wk { cursor: pointer; outline: none; }
#chart .wk-hit { fill: transparent; }
#chart .wk:hover .wk-hit, #chart .wk:focus-visible .wk-hit { fill: #ffffff08; }
#chart .bar { fill: #3B4380; transition: y .9s var(--ease), height .9s var(--ease), fill .2s; }
#chart .wk.sel .bar { fill: var(--garza); }
#chart .bar-val { fill: var(--garza); font-weight: 800; font-size: 18px; opacity: 0; transition: opacity .3s .7s; }
#chart.shown .bar-val { opacity: 1; }
#chart .wk.sel .bar-val { fill: var(--noche); }
#chart .wk.sel .wk-lab { fill: var(--garza); font-weight: 700; }
#chart .bpm-line { fill: none; stroke: var(--sabana); stroke-width: 4; stroke-linejoin: round; stroke-linecap: round; transition: stroke-dashoffset 1.6s .3s var(--ease); pointer-events: none; }
#chart .bpm-dot { fill: var(--noche); stroke: var(--sabana); stroke-width: 3; opacity: 0; transition: opacity .3s 1.2s, r .2s; pointer-events: none; }
#chart.shown .bpm-dot { opacity: 1; }
#chart .bpm-dot.sel { fill: var(--sabana); r: 9; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 14px; color: var(--bruma); font-size: 15px; }
.legend span { display: flex; align-items: center; gap: 8px; }
.lg-bar { width: 14px; height: 14px; border-radius: 4px; background: #3B4380; }
.lg-line { width: 22px; height: 4px; border-radius: 2px; background: var(--sabana); }
.week-detail { margin-top: 36px; padding: 26px 28px; border-radius: 22px; background: var(--noche-2); display: grid; grid-template-columns: auto 1fr auto; gap: 8px 32px; align-items: center; min-height: 96px; }
.wd-week { font-size: 32px; font-weight: 800; font-stretch: 78%; color: var(--sabana); }
.wd-txt { font-size: 19px; max-width: 36em; }
.wd-nums { display: flex; gap: 22px; color: var(--bruma); font-size: 15px; }
.wd-nums strong { color: var(--garza); font-size: 22px; }
@media (max-width: 820px) { .week-detail { grid-template-columns: 1fr; } }

/* ---------- IMÁGENES: la app ---------- */
.app-sec { background: var(--noche); padding-bottom: clamp(72px, 9vw, 120px); }
.app-sky { position: relative; }
.app-sky h2 { z-index: 2; position: absolute; left: var(--gutter); top: clamp(48px, 8vw, 110px); max-width: 9em; font-size: clamp(44px, 7vw, 104px); }
.phones {
  position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 3vw, 40px);
  max-width: 1080px; margin: clamp(-260px, -20vw, -120px) auto 0; padding: 0 var(--gutter);
}
.phones figure { margin: 0; }
.phones figure:nth-child(2) { transform: translateY(-40px); }
.phones img { width: 100%; height: auto; filter: drop-shadow(0 30px 40px #0007); }
.phones figcaption { margin-top: 18px; color: var(--bruma); font-size: 16px; max-width: 22em; }
.phones figcaption strong { color: var(--garza); }
@media (max-width: 760px) {
  .phones { grid-template-columns: repeat(3, 72%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; margin-top: -90px; }
  .phones figure { scroll-snap-align: center; }
  .phones figure:nth-child(2) { transform: none; }
}

/* ---------- PRECIOS ---------- */
.price-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.billing { display: inline-flex; padding: 5px; border-radius: 14px; background: #161A3B10; }
.billing button { min-height: 44px; padding: 0 16px; border: 0; border-radius: 10px; background: transparent; font-weight: 700; color: #3A3F66; }
.billing button.on { background: var(--noche); color: var(--garza); }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 44px; align-items: stretch; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } }
.plan { display: flex; flex-direction: column; padding: 30px; border-radius: 26px; box-shadow: inset 0 0 0 2px #161A3B1f; }
.plan-main { background: var(--noche); color: var(--garza); box-shadow: none; }
.price { margin: 18px 0 20px; display: flex; align-items: baseline; gap: 10px; }
.price span { font-size: clamp(44px, 5vw, 60px); font-weight: 800; font-stretch: 78%; letter-spacing: -0.02em; line-height: 1; }
.price small { font-size: 16px; color: #5A5F86; }
.plan-main .price small { color: var(--bruma); }
.flip { animation: flip .35s var(--ease); }
@keyframes flip { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.plan ul { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; flex: 1; align-content: start; }
.plan li { padding-left: 28px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 12px; height: 7px; border-left: 2.5px solid var(--morichal); border-bottom: 2.5px solid var(--morichal); transform: rotate(-45deg); }
.plan-main li::before { border-color: var(--sabana); }
.note { margin-top: 18px; font-size: 15px; color: #5A5F86; }

/* ---------- FAQ ---------- */
.faq-sec { padding-top: 0; }
.faq { margin-top: 36px; max-width: 860px; margin-left: max(0px, calc((100% - var(--max)) / 2)); }
.faq-sec h2 { font-size: clamp(32px, 4vw, 52px); }
.faq details { border-top: 2px solid #161A3B1f; }
.faq details:last-child { border-bottom: 2px solid #161A3B1f; }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; font-size: 21px; font-weight: 700; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 14px; height: 14px; border-right: 3px solid var(--noche); border-bottom: 3px solid var(--noche); transform: rotate(45deg) translate(-3px, -3px); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(225deg) translate(-3px, -3px); }
.faq details p { padding: 0 0 22px; max-width: 40em; color: #3A3F66; }

/* ---------- CTA final + pie ---------- */
.final { background: var(--sabana); color: var(--noche); padding: clamp(80px, 11vw, 150px) var(--gutter); }
.final h2 { max-width: 12em; font-size: clamp(44px, 7.4vw, 112px); margin-bottom: 36px; }
.final > * { margin-left: max(0px, calc((100% - var(--max)) / 2)); }
.foot { padding: 40px var(--gutter) 110px; color: var(--bruma); font-size: 15px; display: grid; gap: 8px; }
.foot p { max-width: var(--max); margin-inline: auto; width: 100%; }

/* ---------- Guía de componentes multimedia ---------- */
.mm-toggle {
  position: fixed; right: 16px; bottom: 16px; z-index: 50; display: flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 0 18px 0 14px; border-radius: 999px; border: 0;
  background: var(--garza); color: var(--noche); font-weight: 750; font-size: 15px; box-shadow: 0 10px 30px #0006;
}
.mm-dots { display: grid; grid-template-columns: repeat(7, 6px); gap: 3px; }
.mm-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--noche); }
.mm-dots i:nth-child(2n) { background: var(--sabana); }
.mm-dots i:nth-child(3n) { background: var(--morichal); }
body.mm-on .mm-toggle { background: var(--sabana); }
body.mm-on [data-mm] { outline: 3px dashed var(--sabana); outline-offset: -12px; }
body.mm-on .sec-sabana[data-mm], body.mm-on .final[data-mm] { outline-color: var(--noche); }
body.mm-on [data-mm]::before {
  content: attr(data-mm); position: absolute; z-index: 20; right: 24px; top: 24px; max-width: calc(100% - 48px);
  padding: 8px 14px; border-radius: 12px; background: var(--noche); color: var(--sabana);
  font-size: 15px; font-weight: 750; line-height: 1.3; box-shadow: 0 6px 18px #0004;
}
.app-sec, .final, .hero { position: relative; }
@media (max-width: 640px) { body.mm-on [data-mm]::before { right: 16px; top: 16px; font-size: 13px; } }
body.mm-on .hero[data-mm]::before { top: 92px; }

.neck-wrap { padding-top: 26px; }
@media (max-width: 640px) {
  .mm-toggle { font-size: 0; gap: 0; padding: 0 14px; }
  .mm-toggle::after { content: "Componentes"; font-size: 14px; margin-left: 8px; }
  body.mm-on .mm-toggle::after { content: "Ocultar"; }
  .video-play { width: 72px; height: 72px; }
  .video-play svg { width: 34px; }
  .chord-btn { min-height: 52px; font-size: 20px; }
}
.hint-touch { display: none; }
@media (hover: none) { .hint-fine { display: none; } .hint-touch { display: inline; } }
#chart .bar-val { font-size: 16px; }


/* ================= Mejoras: menú, golpe, móvil ================= */

/* indicador del golpe */
.beat { display: flex; gap: 6px; }
.beat span { width: 38px; height: 42px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; font-size: 18px; color: var(--bruma); box-shadow: inset 0 0 0 2px #ffffff1f; transition: background .08s, color .08s; }
.beat span.on { background: var(--sabana); color: var(--noche); box-shadow: none; }
.instrument:not(.playing) .beat { opacity: .5; }

/* menú móvil */
.menu-btn { width: 46px; height: 46px; border: 0; border-radius: 12px; background: var(--noche-2); flex: none; position: relative; z-index: 61; }
.menu-btn span { position: absolute; left: 13px; right: 13px; height: 2.5px; border-radius: 2px; background: var(--garza); transition: transform .25s var(--ease), top .25s var(--ease); }
.menu-btn span:first-child { top: 18px; }
.menu-btn span:last-child { top: 26px; }
.menu-open .menu-btn span:first-child { top: 22px; transform: rotate(45deg); }
.menu-open .menu-btn span:last-child { top: 22px; transform: rotate(-45deg); }
.menu-open { overflow: hidden; }
.menu-open .nav { position: fixed; z-index: 61; }
.menu-sheet {
  position: fixed; inset: 0; z-index: 60; background: var(--noche); padding: 110px var(--gutter) 40px;
  display: flex; flex-direction: column; gap: 32px; opacity: 0; transform: translateY(-12px);
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.menu-sheet.open { opacity: 1; transform: none; }
.menu-sheet nav { display: grid; gap: 4px; }
.menu-sheet nav a { font-size: 40px; font-weight: 800; font-stretch: 80%; letter-spacing: -0.02em; text-decoration: none; padding: 6px 0; }
.menu-sheet .btn { align-self: start; }
@media (max-width: 860px) { .menu-btn { display: block; } .nav { gap: 10px; } }

.gal-dots { display: none; }

/* ---------- Celular: instrumento vertical ---------- */
@media (max-width: 719px) {
  .hero { padding-top: 104px; padding-bottom: 48px; }
  .hero-sub { margin-top: 18px; }
  .instrument { display: grid; grid-template-columns: minmax(0, 1fr) 92px; gap: 16px 12px; align-items: stretch; margin-top: 30px; }
  .neck-wrap { grid-column: 1; grid-row: 1; margin: 0; padding-top: 0; }
  #neck.is-vertical { touch-action: pan-y; }
  .neck-hint { top: 34%; transform: translate(-50%, 0); white-space: normal; text-align: center; width: max-content; max-width: 90%; }
  .controls { display: contents; }
  .chords { grid-column: 2; grid-row: 1; flex-direction: column; flex-wrap: nowrap; gap: 8px; }
  .chord-btn { flex: 1; min-height: 56px; padding: 0; flex-direction: column; align-items: center; justify-content: center; gap: 0; font-size: 21px; }
  .cb-key { display: none; }
  .actions { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .actions .btn { width: 100%; padding: 0 12px; }
  .beat { grid-column: 1 / -1; justify-content: space-between; }
  .beat span { flex: 1; width: auto; }
  .tempo { grid-column: 1 / -1; }
  .tempo input { flex: 1; width: auto; }
  .keys { display: none; }
  .reto { grid-column: 1 / -1; margin-top: 8px; padding: 18px; }
  .reto-steps li { min-width: 56px; height: 40px; }

  .split-copy h2 { margin-bottom: 18px; }
  .chapters { margin-top: 22px; }
  .video-frame { border-radius: 20px; margin-inline: calc(var(--gutter) * -0.5); }
  .video-bar { gap: 6px; padding: 8px 8px 10px; }
  .vb-time { font-size: 13px; }

  .players { margin-top: 32px; }
  .player { padding: 18px; }
  .pbtn { width: 54px; height: 54px; }
  .wave { height: 72px; margin-top: 14px; }

  .chart-wrap { margin-top: 28px; }
  #chart .axis { font-size: 14px; }
  #chart .bar-val { font-size: 15px; }
  .week-detail { padding: 20px; margin-top: 24px; }
  .wd-txt { font-size: 17px; }

  .app-sky h2 { top: 56px; max-width: 7em; }
  .gal-dots { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
  .gal-dots i { width: 8px; height: 8px; border-radius: 50%; background: #ffffff38; transition: width .25s var(--ease), background .25s; }
  .gal-dots i.on { width: 22px; border-radius: 4px; background: var(--sabana); }

  .plans { margin-top: 28px; }
  .plan-main { order: -1; }
  .plan { padding: 24px; }
  .price-head { gap: 18px; }
  .billing { width: 100%; }
  .billing button { flex: 1; padding: 0 10px; font-size: 15px; }

  .faq summary { font-size: 18px; padding: 18px 0; }
  .final h2 { margin-bottom: 28px; }
  .final .btn { width: 100%; }

  .mm-toggle { opacity: 0; transform: translateY(20px); pointer-events: none; transition: opacity .25s, transform .25s var(--ease); bottom: max(14px, env(safe-area-inset-bottom)); right: 14px; }
  .mm-toggle.peek, body.mm-on .mm-toggle { opacity: 1; transform: none; pointer-events: auto; }
}
@media (max-width: 380px) {
  .instrument { grid-template-columns: minmax(0, 1fr) 80px; }
  .chord-btn { font-size: 19px; }
  .beat span { height: 38px; font-size: 16px; }
  .hero-title { font-size: 58px; }
}
@media (max-width: 760px) {
  .phones { scrollbar-width: none; }
  .phones::-webkit-scrollbar { display: none; }
}

.video-frame.is-square video { aspect-ratio: 1 / 1; }
.video-frame.is-square .video-play { top: 44%; }
.menu-sheet[hidden] { display: none; }

/* ================= Efectos y secciones nuevas ================= */

/* cielo del hero */
.hero > *:not(.sky) { position: relative; z-index: 1; }
.sky { position: absolute; z-index: 0; top: 0; bottom: 0; left: 50%; width: 100vw; height: 100%; transform: translateX(-50%); pointer-events: none; }

/* ondas de sonido que salen de la boca del cuatro */
#neck .ripple { fill: none; stroke: var(--sabana); stroke-width: 3; transform-box: fill-box; transform-origin: center; animation: ripple .95s cubic-bezier(.15, .7, .3, 1) forwards; pointer-events: none; }
@keyframes ripple { from { transform: scale(1); opacity: var(--o, .6); } to { transform: scale(2.7); opacity: 0; } }

/* canciones para acompañar */
.songs { display: grid; gap: 10px; }
.songs-label { color: var(--bruma); font-size: 15px; font-weight: 600; }
.song-list { display: flex; flex-wrap: wrap; gap: 8px; }
.song-btn { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 0; background: transparent; box-shadow: inset 0 0 0 2px #ffffff2e; color: var(--garza); font-weight: 700; font-size: 15px; transition: background .2s, color .2s, box-shadow .2s; }
.song-btn:hover { box-shadow: inset 0 0 0 2px #ffffff66; }
.song-btn[aria-checked="true"] { background: var(--garza); color: var(--noche); box-shadow: none; }
.bars { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; max-width: 760px; }
.bars li { height: 44px; border-radius: 10px; display: grid; place-items: center; background: #ffffff0d; color: var(--bruma); font-weight: 800; font-size: 15px; transition: background .12s, color .12s, transform .12s; }
.bars li.on { background: var(--sabana); color: var(--noche); transform: translateY(-3px); }
@media (max-width: 719px) {
  .songs { grid-column: 1 / -1; }
  .bars { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .song-btn { flex: 1 1 auto; padding: 0 14px; }
}

/* sección verde morichal */
.sec-green { background: var(--morichal); color: var(--garza); }
.sec-green .split-copy p { color: #D6E6D4; }

/* afinador */
.tuner-split { align-items: center; }
.tuner-actions { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }
.tuner-privacy { margin-top: 14px; font-size: 15px; color: #B9D2B6 !important; }
.tuner { background: var(--noche); border-radius: 28px; padding: clamp(20px, 3vw, 36px); display: grid; gap: 14px; }
.gauge { width: 100%; max-width: 460px; margin: 0 auto; overflow: visible; }
.g-track { fill: none; stroke: #ffffff1c; stroke-width: 20; stroke-linecap: round; }
.g-ok { fill: none; stroke: var(--morichal); stroke-width: 20; transition: stroke .2s; }
.g-ticks line { stroke: var(--bruma); stroke-width: 3; stroke-linecap: round; }
.needle line { stroke: var(--garza); stroke-width: 6; stroke-linecap: round; transition: stroke .2s; }
.needle circle { fill: var(--garza); transition: fill .2s; }
.tuner.in-tune .g-ok { stroke: #6FCB7E; }
.tuner.in-tune .needle line { stroke: #6FCB7E; }
.tuner.in-tune .needle circle { fill: #6FCB7E; }
.tuner-read { text-align: center; }
.t-note { font-size: clamp(64px, 9vw, 104px); font-weight: 800; font-stretch: 78%; line-height: .9; letter-spacing: -0.02em; }
.t-info { margin-top: 8px; color: var(--bruma); min-height: 3em; font-size: 16px; }
.tuner.in-tune .t-info { color: #9FE3AA; }
.t-strings { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.t-strings button { min-height: 64px; border: 0; border-radius: 14px; background: var(--noche-2); display: grid; place-content: center; gap: 2px; transition: background .2s, color .2s; }
.t-strings button span { font-size: 22px; font-weight: 800; font-stretch: 85%; }
.t-strings button small { font-size: 13px; color: var(--bruma); }
.t-strings button:hover { background: #2B3166; }
.t-strings button.on { background: var(--sabana); color: var(--noche); }
.t-strings button.on small { color: #4a3a10; }
.tuner.listening { box-shadow: 0 0 0 3px #6FCB7E55; }
#micBtn[aria-pressed="true"] { background: var(--garza); }

/* atardecer por capas */
.llano { position: relative; height: clamp(360px, 62vw, 760px); overflow: hidden; background: var(--noche); }
.lyr { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.lyr-noche { background: linear-gradient(180deg, #0e1130 0%, #161A3B 55%, #2a1f3f 100%); opacity: 0; mix-blend-mode: multiply; will-change: opacity; }
.lyr-tierra { height: 104%; }
@media (max-width: 719px) { .llano { height: 440px; } .lyr { object-position: 62% center; } }

/* títulos que se revelan */
.fx .reveal { clip-path: inset(0 0 100% 0); transform: translateY(.35em); transition: clip-path .9s var(--ease), transform .9s var(--ease); }
.fx .reveal.in { clip-path: inset(-10% -5% -25% -5%); transform: none; }

/* pantallas inclinables */
.phones img { transition: transform .35s var(--ease); }
.phones figure:hover img { transition: transform .08s linear; }

/* ================= Marca ================= */
.brand img { height: 38px; width: auto; display: block; }
.sec-cream { background: #F4ECDD; color: #1F3B2D; }
.sec-green { background: #1F3B2D; }
.brand-sec { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (max-width: 900px) { .brand-sec { grid-template-columns: 1fr; } }
.brand-copy h2 { margin-bottom: 24px; }
.brand-copy p { max-width: 30em; color: #3C5446; }
.brand-meaning { margin: 28px 0 0; display: grid; gap: 14px; }
.brand-meaning div { display: grid; grid-template-columns: 200px 1fr; gap: 4px 16px; align-items: baseline; }
.brand-meaning dt { display: flex; align-items: center; gap: 10px; font-weight: 750; }
.brand-meaning dt i { width: 22px; height: 22px; border-radius: 6px; flex: none; transform: translateY(4px); }
.brand-meaning dd { margin: 0; color: #3C5446; }
@media (max-width: 520px) { .brand-meaning div { grid-template-columns: 1fr; } .brand-meaning dd { padding-left: 32px; } }
.brand-board { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.bt { margin: 0; border-radius: 22px; display: grid; place-items: center; overflow: hidden; }
.bt img { width: 100%; height: auto; }
.bt-wide { grid-column: span 6; padding: clamp(24px, 4vw, 44px) clamp(28px, 6vw, 72px); }
.bt-wide img { max-width: 440px; }
.bt-cream { background: #FBF7EF; box-shadow: inset 0 0 0 2px #1F3B2D14; }
.bt-green { background: #1F3B2D; }
.bt-icon { grid-column: span 2; padding: 0; background: transparent; }
.bt-icon img { width: 100%; max-width: 160px; filter: drop-shadow(0 12px 18px #1F3B2D30); }
.bt-mono { grid-column: span 6; padding: 22px 40px; background: #fff; }
.bt-mono img { max-width: 260px; }
.final-logo { width: clamp(72px, 9vw, 110px); height: auto; margin-bottom: 26px; }
.foot-logo { height: 44px; width: auto; margin-bottom: 10px; }
