/*
Theme Name: Harmodex
Theme URI: https://harmodex.guslok.com/
Author: Harmodex
Description: Tema propio, ligero y responsive para Harmodex.
Version: 1.0.6
Text Domain: harmodex-theme
*/
:root{
  --bg:#f6f7fb;--surface:#fff;--surface-2:#f0f2f8;--ink:#171821;--muted:#686d7c;--line:#e0e3ec;
  --accent:#6c4cff;--accent-2:#9b7cff;--accent-soft:#eee9ff;--good:#16a36a;--shadow:0 16px 45px rgba(24,24,35,.08);
  --radius:22px;--max:1240px;--header:76px;
}
html[data-theme="dark"]{--bg:#111218;--surface:#181a22;--surface-2:#20232d;--ink:#f4f5fb;--muted:#a8adbc;--line:#303440;--accent:#9a83ff;--accent-2:#beaaff;--accent-soft:#2c2743;--shadow:0 18px 50px rgba(0,0,0,.28)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--ink);font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;line-height:1.6;-webkit-font-smoothing:antialiased}a{color:inherit;text-decoration:none}button,input{font:inherit}button{cursor:pointer}.hmx-site{min-height:100vh;display:flex;flex-direction:column}.hmx-shell{width:min(calc(100% - 34px),var(--max));margin-inline:auto}
.hmx-header{position:sticky;top:0;z-index:100;background:color-mix(in srgb,var(--surface) 90%,transparent);backdrop-filter:blur(16px);border-bottom:1px solid var(--line)}.hmx-header-inner{min-height:var(--header);display:flex;align-items:center;gap:24px}.hmx-brand{display:flex;align-items:center;gap:11px;font-weight:900;letter-spacing:.02em;white-space:nowrap}.hmx-brand-mark{width:42px;height:42px;border-radius:13px;display:grid;place-items:center;background:linear-gradient(135deg,#181921,#5b46a5);color:#fff;font-size:19px;box-shadow:0 7px 20px rgba(74,58,150,.22)}.hmx-brand-name{font-size:19px}.hmx-nav{display:flex;align-items:center;gap:4px;flex:1}.hmx-nav a{padding:9px 10px;border-radius:10px;color:var(--muted);font-size:14px;font-weight:700}.hmx-nav a:hover{background:var(--surface-2);color:var(--ink)}.hmx-header-actions{display:flex;align-items:center;gap:7px}.hmx-lang,.hmx-theme-toggle,.hmx-menu-toggle{border:1px solid var(--line);background:var(--surface);color:var(--ink);height:38px;border-radius:11px;padding:0 11px;font-weight:800}.hmx-lang.is-active{background:var(--accent);border-color:var(--accent);color:#fff}.hmx-theme-toggle{width:40px;padding:0}.hmx-menu-toggle{display:none;width:40px;padding:0}
.hmx-main{width:min(calc(100% - 34px),var(--max));margin:0 auto;padding:44px 0 72px;flex:1}.hmx-hero{padding:66px 0 44px;text-align:center;max-width:940px;margin:0 auto}.hmx-kicker{text-transform:uppercase;letter-spacing:.16em;font-size:12px;font-weight:900;color:var(--accent);margin:0 0 10px}.hmx-hero h1,.hmx-page-head h1,.hmx-entity-head h1{letter-spacing:-.045em;line-height:1.04;margin:0}.hmx-hero h1{font-size:clamp(42px,6vw,78px)}.hmx-lead,.hmx-page-head>p:not(.hmx-kicker){color:var(--muted);font-size:clamp(17px,2vw,20px);max-width:760px}.hmx-lead{margin:20px auto 0}.hmx-page-head>p:not(.hmx-kicker){margin:20px 0 0}.hmx-page-head>.hmx-kicker{max-width:none;margin:0 0 10px}.hmx-search{position:relative;z-index:30;max-width:760px;margin:30px auto 0;text-align:left}.hmx-search-box{height:64px;border:1px solid var(--line);border-radius:18px;background:var(--surface);box-shadow:var(--shadow);display:flex;align-items:center;gap:12px;padding:0 18px}.hmx-search-box>span{font-size:28px;color:var(--accent);line-height:1}.hmx-search-box input{border:0;outline:0;background:transparent;color:var(--ink);font-size:17px;width:100%}.hmx-search-box input::placeholder{color:var(--muted)}.hmx-search-results{position:absolute;left:0;right:0;top:72px;max-height:480px;overflow:auto;background:var(--surface);border:1px solid var(--line);border-radius:16px;box-shadow:0 25px 70px rgba(15,15,30,.18);padding:7px;z-index:999}.hmx-search-row{display:flex;align-items:center;gap:14px;padding:12px;border-radius:12px}.hmx-search-row:hover{background:var(--surface-2)}.hmx-search-row>strong{min-width:66px;font-size:18px;text-align:center;color:var(--accent)}.hmx-search-row span{display:flex;flex-direction:column;min-width:0}.hmx-search-row b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.hmx-search-row small{color:var(--muted)}.hmx-search-empty{padding:18px;color:var(--muted);text-align:center}
.hmx-dashboard{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:18px 0 56px}.hmx-dashboard-two{grid-template-columns:repeat(2,1fr)}.hmx-feature-card{min-height:158px;padding:24px;border:1px solid var(--line);background:var(--surface);border-radius:var(--radius);display:flex;flex-direction:column;justify-content:flex-end;transition:.18s ease}.hmx-feature-card:hover:not(.hmx-static){transform:translateY(-3px);border-color:color-mix(in srgb,var(--accent) 42%,var(--line));box-shadow:var(--shadow)}.hmx-feature-card>span{font-size:30px;margin-bottom:auto}.hmx-feature-card strong{font-size:20px}.hmx-feature-card small{color:var(--muted);margin-top:3px}.hmx-section{margin:46px 0}.hmx-section h2,.hmx-tool-card h2,.hmx-info-card h2{font-size:24px;letter-spacing:-.025em;margin:0 0 17px}.hmx-root-grid{display:grid;grid-template-columns:repeat(12,1fr);gap:8px}.hmx-root-grid a{min-height:84px;border:1px solid var(--line);background:var(--surface);border-radius:15px;display:flex;flex-direction:column;align-items:center;justify-content:center}.hmx-root-grid a:hover{border-color:var(--accent);background:var(--accent-soft)}.hmx-root-grid strong{font-size:18px}.hmx-root-grid small{color:var(--muted)}.hmx-type-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.hmx-type-card{border:1px solid var(--line);background:var(--surface);border-radius:17px;padding:18px;display:grid;grid-template-columns:1fr auto;gap:5px 12px;align-items:center}.hmx-type-card:hover{border-color:var(--accent);box-shadow:var(--shadow)}.hmx-type-card>span{font-weight:900;color:var(--accent)}.hmx-type-card small{grid-column:1/-1;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.hmx-page-head{padding:42px 0 18px;max-width:900px}.hmx-page-head .hmx-search{margin-left:0}.hmx-instrument-head{max-width:980px}
.hmx-breadcrumbs{display:flex;flex-wrap:wrap;gap:8px;color:var(--muted);font-size:13px;margin-bottom:28px}.hmx-breadcrumbs a:hover{color:var(--accent)}.hmx-entity-head{display:grid;grid-template-columns:1fr auto;gap:28px;align-items:center;margin-bottom:24px}.hmx-entity-head h1{font-size:clamp(34px,4.8vw,58px);max-width:840px}.hmx-note-pills{display:flex;gap:8px;flex-wrap:wrap;margin-top:18px}.hmx-note-pills span{padding:7px 12px;background:var(--accent-soft);color:var(--accent);border-radius:999px;font-weight:900}.hmx-audio-panel{display:flex;flex-direction:column;gap:8px;min-width:210px}.hmx-audio-panel button{border:0;border-radius:13px;padding:12px 16px;font-weight:900;background:var(--accent);color:#fff}.hmx-audio-panel button+button{background:var(--surface);color:var(--ink);border:1px solid var(--line)}.hmx-playback-status{margin-top:4px;padding:10px 12px;border:1px solid var(--line);border-radius:13px;background:var(--surface-2);min-width:280px}.hmx-playback-status>strong{display:block;font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);margin-bottom:6px}.hmx-playback-notes{display:flex;flex-wrap:wrap;gap:5px}.hmx-playback-note{display:inline-grid;place-items:center;min-width:30px;padding:3px 7px;border-radius:8px;font-size:12px;font-weight:900;color:var(--muted);transition:.12s ease}.hmx-playback-note.is-current{background:var(--accent);color:#fff;transform:translateY(-1px);box-shadow:0 4px 12px color-mix(in srgb,var(--accent) 30%,transparent)}.hmx-key.hmx-is-playing{outline:4px solid #ffd54a;outline-offset:-4px;filter:brightness(1.08);z-index:6}.hmx-string button.hmx-is-playing span{background:#ffd54a!important;color:#171821!important;box-shadow:0 0 0 4px color-mix(in srgb,#ffd54a 32%,transparent),0 0 18px color-mix(in srgb,#ffd54a 55%,transparent)!important;transform:scale(1.12)}.hmx-instrument-switch{display:flex;align-items:center;gap:7px;overflow:auto;padding:5px 0 22px;margin-bottom:18px}.hmx-instrument-switch>span{font-weight:800;color:var(--muted);margin-right:4px;white-space:nowrap}.hmx-instrument-switch a{padding:8px 12px;border:1px solid var(--line);background:var(--surface);border-radius:11px;font-weight:800;white-space:nowrap}.hmx-instrument-switch a.is-active{background:var(--ink);color:var(--surface);border-color:var(--ink)}.hmx-tool-card,.hmx-info-card{border:1px solid var(--line);background:var(--surface);border-radius:var(--radius);padding:24px;box-shadow:0 7px 24px rgba(20,20,30,.025)}.hmx-section-title p{color:var(--muted);margin:-10px 0 22px}.hmx-content-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:16px 0}.hmx-info-card h2{font-size:20px}.hmx-info-card p{margin:0;color:var(--muted)}.hmx-info-card strong{color:var(--ink)}.hmx-big-notes{font-size:24px!important;color:var(--accent)!important;font-weight:900;margin-bottom:8px!important}.hmx-wide{margin-top:16px}.hmx-related-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.hmx-related-grid a{padding:14px;border:1px solid var(--line);border-radius:14px;display:flex;flex-direction:column}.hmx-related-grid a:hover{background:var(--surface-2);border-color:var(--accent)}.hmx-related-grid strong{color:var(--accent);font-size:18px}.hmx-related-grid span{font-size:13px;color:var(--muted)}
.hmx-piano{position:relative;height:240px;display:flex;overflow-x:auto;overflow-y:hidden;padding-bottom:8px}.hmx-key{position:relative;border-radius:0 0 9px 9px;border:1px solid #bfc3cf;flex:0 0 64px;background:#fff;color:#555;display:flex;align-items:flex-end;justify-content:center;padding-bottom:12px;z-index:1}.hmx-key.black{background:#1b1d24;color:#ddd;flex-basis:42px;height:145px;margin-left:-21px;margin-right:-21px;z-index:3;border-color:#111}.hmx-key.white{height:225px}.hmx-key.is-active{background:linear-gradient(180deg,var(--accent-2),var(--accent));color:#fff;border-color:var(--accent)}.hmx-key span{font-size:12px;font-weight:900}.hmx-key:active{filter:brightness(.9)}
.hmx-fret-wrap{overflow:auto;padding-bottom:5px}.hmx-fretboard{min-width:980px}.hmx-fret-head,.hmx-string{display:grid;grid-template-columns:48px repeat(13,1fr);align-items:center}.hmx-fret-head span{font-size:11px;color:var(--muted);text-align:center;padding-bottom:6px}.hmx-string{position:relative}.hmx-string:after{content:"";position:absolute;left:48px;right:0;top:50%;height:2px;background:color-mix(in srgb,var(--muted) 45%,transparent);pointer-events:none}.hmx-string>strong{font-size:12px;text-align:center}.hmx-string button{position:relative;z-index:2;height:46px;border:0;border-left:1px solid var(--line);background:transparent;color:var(--muted)}.hmx-string button:last-child{border-right:1px solid var(--line)}.hmx-string button span{display:inline-grid;place-items:center;min-width:30px;height:30px;border-radius:50%;font-size:10px;font-weight:900}.hmx-string button.is-active span{background:var(--accent);color:#fff;box-shadow:0 0 0 4px var(--accent-soft)}
.hmx-footer{margin-top:auto;border-top:1px solid var(--line);background:var(--surface)}.hmx-footer-inner{padding:30px 0;display:flex;gap:18px;align-items:center;justify-content:space-between}.hmx-footer p{margin:0;color:var(--muted);font-size:13px}.hmx-footer-links{display:flex;gap:13px;flex-wrap:wrap;font-size:13px;font-weight:700;color:var(--muted)}.hmx-footer-links a:hover{color:var(--accent)}
.hmx-neutral{min-height:calc(100vh - var(--header));display:grid;place-items:center;padding:50px 20px}.hmx-neutral-card{width:min(760px,100%);text-align:center}.hmx-neutral-logo{width:82px;height:82px;border-radius:25px;display:grid;place-items:center;margin:0 auto 20px;background:linear-gradient(135deg,#181921,#5b46a5);color:#fff;font-size:33px;font-weight:900}.hmx-neutral h1{font-size:clamp(42px,7vw,72px);letter-spacing:-.05em;margin:0}.hmx-neutral p{color:var(--muted);font-size:18px}.hmx-language-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:28px}.hmx-language-grid a{padding:23px;border-radius:18px;border:1px solid var(--line);background:var(--surface);font-weight:900;font-size:18px}.hmx-language-grid a:hover{border-color:var(--accent);box-shadow:var(--shadow)}
.hmx-page-content{width:min(calc(100% - 34px),900px);margin:0 auto;padding:52px 0 75px}.hmx-page-content h1{font-size:44px;letter-spacing:-.04em}.hmx-page-content .entry-content{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:28px}.hmx-page-content a{color:var(--accent);text-decoration:underline}
@media(max-width:1050px){.hmx-nav{position:absolute;top:var(--header);left:0;right:0;background:var(--surface);border-bottom:1px solid var(--line);padding:10px 17px 17px;display:none;flex-wrap:wrap}.hmx-nav.is-open{display:flex}.hmx-menu-toggle{display:block}.hmx-root-grid{grid-template-columns:repeat(6,1fr)}.hmx-type-grid{grid-template-columns:repeat(3,1fr)}.hmx-dashboard{grid-template-columns:repeat(2,1fr)}.hmx-entity-head{grid-template-columns:1fr}.hmx-audio-panel{flex-direction:row;min-width:0;flex-wrap:wrap}.hmx-audio-panel button{flex:1}.hmx-playback-status{flex:1 0 100%;min-width:0}.hmx-related-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:700px){:root{--header:66px}.hmx-shell,.hmx-main{width:min(calc(100% - 24px),var(--max))}.hmx-brand-name{font-size:16px}.hmx-brand-mark{width:37px;height:37px}.hmx-header-inner{gap:8px}.hmx-lang{padding:0 8px}.hmx-hero{padding-top:42px}.hmx-hero h1{font-size:43px}.hmx-search-box{height:58px;padding:0 14px}.hmx-dashboard,.hmx-dashboard-two{grid-template-columns:1fr 1fr;gap:10px}.hmx-feature-card{min-height:140px;padding:17px}.hmx-feature-card strong{font-size:17px}.hmx-root-grid{grid-template-columns:repeat(4,1fr)}.hmx-type-grid{grid-template-columns:1fr 1fr}.hmx-type-card{padding:14px}.hmx-content-grid{grid-template-columns:1fr}.hmx-related-grid{grid-template-columns:1fr 1fr}.hmx-tool-card,.hmx-info-card{padding:18px}.hmx-entity-head h1{font-size:38px}.hmx-audio-panel{flex-direction:column}.hmx-piano{height:205px}.hmx-key{flex-basis:52px}.hmx-key.black{flex-basis:34px;margin-left:-17px;margin-right:-17px;height:125px}.hmx-key.white{height:190px}.hmx-footer-inner{align-items:flex-start;flex-direction:column}.hmx-language-grid{grid-template-columns:1fr}.hmx-neutral h1{font-size:48px}}
@media(max-width:430px){.hmx-dashboard{grid-template-columns:1fr}.hmx-root-grid{grid-template-columns:repeat(3,1fr)}.hmx-type-grid{grid-template-columns:1fr}.hmx-related-grid{grid-template-columns:1fr}.hmx-header-actions .hmx-lang{display:none}}

/* 1.0.3: explicit alignment for library/instrument headers. */
.hmx-page-head{max-width:none!important;width:100%!important;display:flex!important;flex-direction:column!important;align-items:flex-start!important;text-align:left!important}
.hmx-page-head>.hmx-kicker,.hmx-page-head>h1,.hmx-page-head>p:not(.hmx-kicker),.hmx-page-head>.hmx-search{width:min(760px,100%)!important;max-width:760px!important;margin-left:0!important;margin-right:0!important;text-align:left!important}
.hmx-page-head>.hmx-kicker{margin-top:0!important;margin-bottom:10px!important}
.hmx-page-head>p:not(.hmx-kicker){margin-top:20px!important;margin-bottom:0!important}
.hmx-page-head>.hmx-search{margin-top:30px!important}

/* 1.0.4: footer legal links + resilient Complianz Cookie Policy discovery. */

/* 1.0.5: AdSense publisher bootstrap is loaded by functions.php; no ad slots yet. */


/* 1.0.6: three manual responsive AdSense placements on chord/scale entity pages. */
.hmx-ad{width:100%;margin:26px 0;text-align:center;min-height:110px;overflow:hidden}
.hmx-ad-label{display:block;margin-bottom:6px;font-size:10px;line-height:1.2;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.hmx-ad .adsbygoogle{width:100%}
@media(max-width:700px){.hmx-ad{margin:20px 0;min-height:90px}}
