/* =========================================================
   Oscar Sala Horn Studio — hoja de estilos
   Sin dependencias externas: tipografías del sistema.
   ========================================================= */

:root {
  /* Colores tomados del logo OSH: azul marino y oro */
  --paper: #f5f1e8;
  --paper-2: #ebe5d8;
  --ink: #0a2340;
  --ink-soft: #3d4c5e;
  --ink-mute: #5e6a7a;
  --brass: #a88a45;
  --brass-deep: #7d6224;
  --night: #0b2038;
  --night-2: #12294a;
  --night-text: #f1ece2;
  --night-soft: #a9b4c2;
  --brass-light: #cdae66;
  --line: rgba(10, 35, 64, 0.14);
  --line-night: rgba(241, 236, 226, 0.14);

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "URW Palladio L", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 4px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--brass-light); color: var(--ink); }

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

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  border-radius: var(--radius);
}
.skip:focus { top: 12px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  min-height: 48px;
  padding: 0 1.5em;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font: 500 .95rem/1 var(--sans);
  letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid:hover { background: var(--brass-deep); border-color: var(--brass-deep); }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.btn-small { min-height: 40px; padding: 0 1.1em; font-size: .875rem; }

/* ---------- Cabecera ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 241, 232, .88);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 72px;
}
.site-nav { margin-left: auto; }

/* Selector de idioma */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font: 600 .8rem/1 var(--sans);
  letter-spacing: .08em;
  color: var(--ink);
  text-decoration: none;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.lang-switch:hover { border-color: var(--brass); color: var(--brass-deep); }
.lang-switch svg {
  width: 17px; height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
}
.legal .lang-switch, .site-header:not(:has(.site-nav)) .lang-switch { margin-left: auto; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-logo { width: auto; height: 46px; }
.brand-text {
  font: 800 .92rem/1.15 var(--sans);
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--ink);
}
.brand-role { font-weight: 300; }

.site-nav ul { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 34px); }
.site-nav a {
  position: relative;
  font-size: .93rem;
  text-decoration: none;
  color: var(--ink-soft);
  padding: 6px 0;
  transition: color .2s var(--ease);
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.site-nav a:hover,
.site-nav a[aria-current] { color: var(--ink); }
.site-nav a:hover::after,
.site-nav a[aria-current]::after { transform: scaleX(1); }

.site-nav .nav-contact {
  padding: 9px 18px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
}
.site-nav .nav-contact::after { display: none; }
.site-nav .nav-contact:hover { background: var(--ink); color: var(--paper); }

.nav-toggle {
  display: none;
  position: relative;
  width: 44px; height: 44px;
  margin-right: -10px;
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--ink);
}
.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  position: absolute;
  left: 11px;
  width: 22px; height: 1.5px;
  background: currentColor;
  transition: transform .3s var(--ease), opacity .2s;
}
.nav-toggle-bar { top: 21px; }
.nav-toggle-bar::before,
.nav-toggle-bar::after { content: ""; left: 0; }
.nav-toggle-bar::before { top: -7px; }
.nav-toggle-bar::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Portada ---------- */
.hero { padding-bottom: clamp(32px, 5vw, 56px); }
.hero-photo {
  position: relative;
  margin: 0;
  height: min(64vh, 50vw);
  min-height: 320px;
  overflow: hidden;
  background: var(--night);
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 78%;
  animation: settle 1.6s var(--ease) both;
}
.hero-photo::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 30%;
  background: linear-gradient(to top, rgba(11, 32, 56, .35), rgba(11, 32, 56, 0));
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: end;
  gap: clamp(24px, 5vw, 72px);
  padding-top: clamp(32px, 5vw, 64px);
}

.eyebrow,
.kicker {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--brass-deep);
}

.hero h1 {
  margin-top: 18px;
  font: 400 clamp(2.4rem, 5.2vw, 4.6rem)/1.02 var(--serif);
  letter-spacing: -.02em;
}
.hero h1 em { font-style: italic; color: var(--brass-deep); }

.lead {
  max-width: 34em;
  font-size: clamp(1.05rem, 1.5vw, 1.15rem);
  color: var(--ink-soft);
}
.hero-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.hero-title > *, .hero-text > * { animation: rise .9s var(--ease) both; }
.hero-title > :nth-child(2) { animation-delay: .08s; }
.hero-text > :nth-child(1) { animation-delay: .16s; }
.hero-text > :nth-child(2) { animation-delay: .24s; }

.hero-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: clamp(40px, 6vw, 72px);
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font: italic 400 1.02rem/1.4 var(--serif);
  color: var(--ink-mute);
}
.hero-strip li { display: inline-flex; align-items: center; gap: 18px; }
.hero-strip li::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--brass);
  flex: none;
}

/* ---------- Secciones ---------- */
.section { padding: clamp(72px, 10vw, 136px) 0; }

.section-head {
  display: grid;
  grid-template-columns: minmax(80px, 160px) 1fr;
  gap: clamp(16px, 3vw, 40px);
  align-items: start;
  margin-bottom: clamp(44px, 6vw, 80px);
}
.numeral {
  font: italic 400 clamp(3.4rem, 8vw, 6.5rem)/.85 var(--serif);
  color: var(--brass);
}
.section-head h2,
.contact h2 {
  margin-top: 12px;
  font: 400 clamp(2rem, 4.4vw, 3.4rem)/1.08 var(--serif);
  letter-spacing: -.015em;
  max-width: 18em;
}
.intro {
  max-width: 40em;
  margin-top: 20px;
  font-size: 1.1rem;
  color: var(--ink-soft);
}

/* Áreas de interpretación */
.areas {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: clamp(24px, 5vw, 72px);
}
.area {
  position: relative;
  padding: 28px 0 34px 64px;
  border-top: 1px solid var(--line);
}
.area-num {
  position: absolute;
  left: 0; top: 30px;
  font: italic 400 1.15rem/1 var(--serif);
  color: var(--brass-deep);
}
.area h3 {
  font: 500 1.4rem/1.25 var(--serif);
  letter-spacing: -.005em;
}
.area p { margin-top: 10px; color: var(--ink-soft); }

.area-wide {
  grid-column: 1 / -1;
  margin-top: 24px;
  padding: clamp(28px, 4vw, 48px);
  padding-left: clamp(28px, 4vw, 48px);
  background: var(--paper-2);
  border-top: 0;
  border-radius: var(--radius);
}
.area-wide .area-num { position: static; display: block; margin-bottom: 12px; }
.area-wide.has-photo {
  display: grid;
  grid-template-columns: 1fr minmax(220px, 300px);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}
.area-photo { margin: 0; }
.area-photo img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 20px 40px -26px rgba(10, 35, 64, .5);
}
.area-photo figcaption {
  margin-top: 10px;
  font: italic 400 .95rem/1.4 var(--serif);
  color: var(--ink-mute);
}
.area-wide-head { max-width: 40em; }
.area-wide-head h3 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.kin {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 40px);
  margin-top: 32px;
}
.kin-item { padding-top: 18px; border-top: 1px solid var(--brass); }
.kin-item h4 { font: italic 500 1.2rem/1.3 var(--serif); }
.kin-item p { margin-top: 8px; font-size: .97rem; color: var(--ink-soft); }

/* Separador de pentagrama */
.staff {
  height: 33px;
  max-width: var(--wrap);
  margin: 0 auto;
  background:
    repeating-linear-gradient(to bottom, var(--line) 0 1px, transparent 1px 8px);
  background-size: 100% 33px;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 15%, #000 85%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 15%, #000 85%, transparent);
}

/* Pedagogía (sección oscura) */
.section-dark {
  background: var(--night);
  color: var(--night-text);
  margin-top: clamp(56px, 8vw, 96px);
}
.section-dark .numeral { color: var(--brass-light); }
.section-dark .kicker { color: var(--brass-light); }
.section-dark .intro { color: var(--night-soft); }

.peda {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}
.peda-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line-night);
  border: 1px solid var(--line-night);
}
.peda-item {
  padding: clamp(24px, 3vw, 36px);
  background: var(--night);
  transition: background-color .3s var(--ease);
}
.peda-item:hover { background: var(--night-2); }
.peda-item h3 {
  font: 500 1.3rem/1.25 var(--serif);
  color: #fff8ec;
}
.peda-item h3::before {
  content: "";
  display: block;
  width: 26px; height: 1px;
  margin-bottom: 18px;
  background: var(--brass-light);
}
.peda-item p { margin-top: 10px; color: var(--night-soft); font-size: .98rem; }

.peda-side { position: sticky; top: 110px; }
.quote p {
  font: italic 400 clamp(1.45rem, 2.4vw, 1.9rem)/1.35 var(--serif);
  color: #fff8ec;
}
.quote p::before {
  content: "“";
  display: block;
  height: .55em;
  font-size: 3em;
  line-height: 1;
  color: var(--brass-light);
}
.for-label {
  margin-top: 40px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--night-soft);
}
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tags li {
  padding: 7px 14px;
  border: 1px solid var(--line-night);
  border-radius: 999px;
  font-size: .9rem;
}

/* Enfoque */
.section-tint {
  background: var(--paper-2);
  padding: clamp(56px, 7vw, 88px) 0;
}
.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 4vw, 56px);
}
.principle { padding-left: 20px; border-left: 1px solid var(--brass); }
.principle-title { font: 500 1.3rem/1.3 var(--serif); margin-bottom: 8px; }
.principle p:not(.principle-title) { color: var(--ink-soft); }

/* Trayectoria */
.bio {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.photo { margin: 0; }
.photo.photo-portrait img { aspect-ratio: 2 / 3; }
.photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--paper-2);
}
.photo figcaption {
  margin-top: 12px;
  font: italic 400 .95rem/1.4 var(--serif);
  color: var(--ink-mute);
}
.photo figcaption::before {
  content: "";
  display: inline-block;
  width: 22px; height: 1px;
  margin-right: 10px;
  vertical-align: middle;
  background: var(--brass);
}

.bio-lead {
  font: 400 clamp(1.5rem, 2.6vw, 2rem)/1.3 var(--serif);
  margin-bottom: 24px;
}
.bio-text > p + p { margin-top: 16px; }
.bio-text > p:not(.bio-lead) { color: var(--ink-soft); }
.bio-text strong { font-weight: 600; color: var(--ink); }

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 2vw, 24px);
  margin-top: clamp(48px, 6vw, 80px);
}
.gallery figure { margin: 0; }
.gallery img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--paper-2);
}
.gallery figcaption {
  margin-top: 10px;
  font: italic 400 .95rem/1.4 var(--serif);
  color: var(--ink-mute);
}

.facts { margin-top: clamp(48px, 6vw, 80px); border-top: 1px solid var(--line); }
.facts > div {
  display: grid;
  grid-template-columns: minmax(160px, 260px) 1fr;
  gap: 16px clamp(16px, 4vw, 56px);
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.facts dt {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brass-deep);
  padding-top: 4px;
}
.facts dd { font: 400 1.15rem/1.45 var(--serif); }
.facts-note {
  display: block;
  margin-top: 4px;
  font: 400 .95rem/1.5 var(--sans);
  color: var(--ink-soft);
}
.facts-sub {
  display: block;
  margin-top: 18px;
  font: 600 .7rem/1.6 var(--sans);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.countries { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.countries li {
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font: 400 .9rem/1.4 var(--sans);
  color: var(--ink-soft);
}

.orchestras {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px clamp(16px, 3vw, 40px);
}
.orchestras li { padding-left: 16px; position: relative; }
.orchestras li::before {
  content: "";
  position: absolute;
  left: 0; top: .62em;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--brass);
}
.country {
  display: block;
  font: 600 .7rem/1.6 var(--sans);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* Marcador visible de texto pendiente de completar */
.fill {
  background: rgba(168, 138, 69, .14);
  border-bottom: 1px dashed var(--brass);
  padding: 0 3px;
  color: var(--ink);
}

/* Contacto */
.contact {
  position: relative;
  text-align: center;
  border-top: 1px solid var(--line);
  overflow: hidden;
}
.contact::before {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: min(900px, 140vw);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168, 138, 69, .12), rgba(168, 138, 69, 0) 62%);
  pointer-events: none;
}
.contact-inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.contact .numeral { margin-bottom: 18px; }
.contact h2 { margin-inline: auto; }
.contact-text {
  max-width: 36em;
  margin-top: 20px;
  font-size: 1.1rem;
  color: var(--ink-soft);
}
.mail { margin-top: 36px; min-height: 56px; }
.mail-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 18px;
}
.mail-box[hidden] { display: none; }
.mail-link {
  font: 400 clamp(1.3rem, 3.4vw, 2rem)/1.2 var(--serif);
  color: var(--ink);
  text-decoration-color: var(--brass);
  word-break: break-all;
}
.mail-link:hover { color: var(--brass-deep); }
.mail-status { flex-basis: 100%; min-height: 1.4em; font-size: .9rem; color: var(--brass-deep); }
.mail-fallback { font: italic 1.2rem/1.4 var(--serif); }

/* Pie */
.site-footer {
  background: var(--paper-2);
  color: var(--ink-soft);
  font-size: .9rem;
  border-top: 1px solid var(--line);
}
.footer-logo { width: 220px; height: auto; }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 32px;
  padding-block: 32px;
}
.footer-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; }
.footer-meta a { color: var(--ink); }
.footer-meta a:hover { color: var(--brass-deep); }

/* ---------- Trivial ---------- */
/* Recursos */
.res-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 32px);
  align-items: stretch;
}
.res-card {
  padding: clamp(24px, 3.5vw, 40px);
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.res-book {
  display: grid;
  grid-template-columns: minmax(150px, 220px) 1fr;
  gap: clamp(20px, 3vw, 36px);
  align-items: start;
  grid-column: 1 / -1;
  border-color: var(--brass);
}
.res-cover {
  display: block;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 20px 40px -22px rgba(10, 35, 64, .55);
  transition: transform .35s var(--ease);
}
.res-cover:hover { transform: translateY(-4px) rotate(-.6deg); }
.res-cover img { width: 100%; height: auto; }
.res-body h3 { margin-top: 8px; font: 400 clamp(1.5rem, 2.6vw, 1.9rem)/1.15 var(--serif); }
.res-body p:not(.kicker) { margin-top: 10px; color: var(--ink-soft); }
.res-body .btn { margin-top: 22px; }
.res-sub { font: italic 400 1.05rem/1.4 var(--serif); color: var(--ink) !important; }
.res-meta { font-size: .85rem; color: var(--ink-mute) !important; }
.res-app { display: flex; flex-direction: column; }
.res-app .res-body { display: flex; flex-direction: column; flex: 1; }
.res-app .res-body .btn { margin-top: auto; align-self: flex-start; }
.res-app .res-body p:last-of-type { margin-bottom: 22px; }
.res-icon svg {
  width: 46px; height: 46px;
  fill: none;
  stroke: var(--brass);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.res-mark {
  font: italic 400 3rem/1 var(--serif);
  color: var(--brass);
}

.quiz-page { padding-top: clamp(48px, 7vw, 96px); }
.quiz-title {
  margin-top: 12px;
  font: 400 clamp(2rem, 4.4vw, 3.4rem)/1.08 var(--serif);
  letter-spacing: -.015em;
}
.quiz { max-width: 780px; margin-inline: auto; }
.quiz-card {
  padding: clamp(24px, 4vw, 44px);
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 50px -30px rgba(10, 35, 64, .35);
}
.quiz-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: .85rem;
  color: var(--ink-mute);
}
.quiz-score { color: var(--brass-deep); font-weight: 600; }
.quiz-track {
  height: 4px;
  margin: 12px 0 30px;
  background: var(--paper-2);
  border-radius: 999px;
  overflow: hidden;
}
.quiz-fill {
  width: 0;
  height: 100%;
  background: var(--brass);
  transition: width .4s var(--ease);
}
.quiz-category {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brass-deep);
}
.quiz-question {
  margin-top: 10px;
  font: 400 clamp(1.3rem, 2.4vw, 1.65rem)/1.35 var(--serif);
  outline: none;
}
.quiz-options { display: grid; gap: 10px; margin-top: 26px; }
.quiz-option {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 54px;
  padding: 12px 16px;
  text-align: left;
  font: 400 1rem/1.4 var(--sans);
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
  transition: border-color .2s var(--ease), background-color .2s var(--ease), opacity .2s;
}
.quiz-option:hover:not(:disabled) { border-color: var(--brass); background: #fff; }
.quiz-option:disabled { cursor: default; }
.quiz-letter {
  flex: none;
  display: grid;
  place-items: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--line);
  font: 600 .8rem/1 var(--sans);
  color: var(--ink-mute);
}
.quiz-option.is-correct { border-color: #2f7d4f; background: #edf6f0; }
.quiz-option.is-correct .quiz-letter { background: #2f7d4f; border-color: #2f7d4f; color: #fff; }
.quiz-option.is-wrong { border-color: #b3261e; background: #fbeceb; }
.quiz-option.is-wrong .quiz-letter { background: #b3261e; border-color: #b3261e; color: #fff; }
.quiz-option.is-dim { opacity: .5; }

.quiz-feedback {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 6px;
  font-size: .95rem;
  line-height: 1.55;
}
.quiz-feedback.is-ok { background: #edf6f0; color: #1f5636; border-left: 3px solid #2f7d4f; }
.quiz-feedback.is-bad { background: #fbeceb; color: #8a1d17; border-left: 3px solid #b3261e; }
.quiz-actions { display: flex; justify-content: flex-end; margin-top: 22px; min-height: 48px; }

.quiz-results { text-align: center; }
.quiz-result-score {
  margin-top: 10px;
  font: 400 clamp(3.4rem, 9vw, 5rem)/1 var(--serif);
  color: var(--ink);
}
.quiz-result-pct { margin-top: 6px; color: var(--brass-deep); font-weight: 600; }
.quiz-result-title { margin-top: 22px; font: 500 1.6rem/1.3 var(--serif); outline: none; }
.quiz-result-msg { max-width: 34em; margin: 8px auto 0; color: var(--ink-soft); }
.quiz-review {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  text-align: left;
}
.quiz-review-list {
  list-style: decimal;
  padding-left: 1.3em;
  margin-top: 12px;
  display: grid;
  gap: 10px;
  color: var(--ink-soft);
  font-size: .95rem;
}
.quiz-result-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

/* ---------- Instalar como app ---------- */
.install {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
  margin-top: clamp(24px, 3vw, 36px);
  padding: 20px 24px;
  border: 1px dashed var(--brass);
  border-radius: 8px;
  background: rgba(168, 138, 69, .06);
}
.install[hidden] { display: none; }
.install-title { font: 500 1.15rem/1.3 var(--serif); }
.install-text { margin-top: 4px; font-size: .95rem; color: var(--ink-soft); }
.install .btn { flex: none; }

/* ---------- Herramientas: afinador y metrónomo ---------- */
.tool-page { padding-top: clamp(48px, 7vw, 96px); }
.tool { max-width: 680px; margin-inline: auto; }
.tool-card {
  padding: clamp(24px, 4vw, 44px);
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 50px -30px rgba(10, 35, 64, .35);
  text-align: center;
}
.tool-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 18px;
  margin-top: 30px;
  text-align: left;
}
.field { display: grid; gap: 6px; }
.field-wide { grid-column: 1 / -1; }
.field > span {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.field select {
  min-height: 46px;
  padding: 0 12px;
  font: 400 1rem/1.2 var(--sans);
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
}
.field input[type="range"], .metro-slider { width: 100%; accent-color: var(--ink); min-height: 32px; }
.tool-main { min-width: 220px; margin-top: 28px; }
.tool-status, .tool-hint { margin-top: 14px; font-size: .9rem; color: var(--ink-mute); }
.tool-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.tool-actions .tool-main { margin-top: 0; }

/* Afinador */
.tuner-gauge {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  aspect-ratio: 200 / 110;
}
.tuner-gauge svg { width: 100%; height: 100%; overflow: visible; }
.tuner-arc { fill: none; stroke: var(--paper-2); stroke-width: 10; stroke-linecap: round; }
.tuner-zone { fill: none; stroke: #2f7d4f; stroke-width: 10; stroke-linecap: round; opacity: .35; transition: opacity .2s; }
.tuner-ticks path { stroke: var(--ink-mute); stroke-width: 1.2; }
.tuner-gauge text { font: 600 8px/1 var(--sans); fill: var(--ink-mute); text-anchor: middle; }
.tuner-needle {
  position: absolute;
  left: 50%;
  bottom: 4.5%;
  width: 3px;
  height: 80%;
  border-radius: 3px;
  background: var(--ink);
  transform-origin: 50% 100%;
  transform: translateX(-50%) rotate(0deg);
  transition: transform .12s linear, background-color .2s;
}
.tuner-pivot {
  position: absolute;
  left: 50%;
  bottom: 4.5%;
  width: 14px; height: 14px;
  margin: 0 0 -7px -7px;
  border-radius: 50%;
  background: var(--brass);
}
.tuner-note {
  margin-top: 18px;
  font: 400 clamp(3.6rem, 12vw, 5.2rem)/1 var(--serif);
  color: var(--ink);
}
.tuner-note sub { font-size: .35em; vertical-align: baseline; margin-left: .1em; color: var(--ink-mute); }
.tuner-state { min-height: 1.5em; margin-top: 6px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: .8rem; color: var(--ink-mute); }
.tuner-readout { margin-top: 4px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.tuner.is-in-tune .tuner-needle { background: #2f7d4f; }
.tuner.is-in-tune .tuner-zone { opacity: 1; }
.tuner.is-in-tune .tuner-state { color: #2f7d4f; }
.tuner.is-flat .tuner-state, .tuner.is-sharp .tuner-state { color: var(--brass-deep); }

/* Metrónomo */
.metro-bpm {
  font: 400 clamp(4.2rem, 14vw, 6.4rem)/1 var(--serif);
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.metro-bpm small { margin-left: .2em; font: 600 .9rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mute); }
.metro-marking { margin-top: 6px; font: italic 400 1.3rem/1.3 var(--serif); color: var(--brass-deep); }
.metro-dots { display: flex; justify-content: center; gap: 12px; margin-top: 22px; min-height: 18px; }
.metro-dot {
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 2px solid var(--line);
  transition: background-color .08s, border-color .08s, transform .08s;
}
.metro-dot.is-accent { border-color: var(--brass); }
.metro-dot.is-on { background: var(--ink); border-color: var(--ink); transform: scale(1.15); }
.metro-dot.is-accent.is-on { background: var(--brass); border-color: var(--brass); }
.metro-tempo { display: flex; align-items: center; gap: 14px; margin-top: 26px; }
.metro-step {
  flex: none;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid var(--ink);
  background: transparent;
  font: 400 1.5rem/1 var(--sans);
  color: var(--ink);
  cursor: pointer;
}
.metro-step:hover { background: var(--ink); color: var(--paper); }

/* ---------- Página legal ---------- */
.legal { padding: clamp(48px, 8vw, 96px) 0; }
.legal .wrap { max-width: 760px; }
.legal h1 { font: 400 clamp(2rem, 5vw, 3rem)/1.1 var(--serif); margin: 14px 0 32px; }
.legal h2 { font: 500 1.35rem/1.3 var(--serif); margin: 40px 0 10px; }
.legal p, .legal li { color: var(--ink-soft); }
.legal p + p { margin-top: 12px; }
.legal ul { list-style: disc; padding-left: 1.2em; margin-top: 8px; }
.legal .back { display: inline-block; margin-top: 48px; }

/* ---------- Animaciones ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes settle { from { transform: scale(1.04); } to { transform: none; } }

/* Solo se ocultan si JS está activo: sin JS todo se ve */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; align-items: start; gap: 20px; }
  .area-wide.has-photo { grid-template-columns: 1fr; }
  .area-photo { max-width: 360px; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .res-grid { grid-template-columns: 1fr 1fr; }
  .peda { grid-template-columns: 1fr; }
  .peda-side { position: static; }
  .principles { grid-template-columns: 1fr; }
  .bio { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .lang-switch { margin-left: auto; }
  .site-nav {
    position: fixed;
    inset: 72px 0 auto 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 24px;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s .25s;
  }
  .site-nav.is-open {
    transform: none;
    opacity: 1;
    visibility: visible;
    transition: opacity .25s var(--ease), transform .25s var(--ease);
  }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav li a {
    display: block;
    padding: 14px 0;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--line);
  }
  .site-nav a::after { display: none; }
  .site-nav .nav-contact {
    margin-top: 16px;
    text-align: center;
    border: 1px solid var(--ink);
  }
}

@media (max-width: 720px) {
  .res-grid { grid-template-columns: 1fr; }
  .install { flex-direction: column; align-items: flex-start; }
  .tool-controls { grid-template-columns: 1fr; }
  .hero-photo { height: auto; aspect-ratio: 4 / 5; min-height: 0; }
  .hero-photo img { object-position: 50% 60%; }
  .gallery { grid-template-columns: 1fr; }
  .res-book { grid-template-columns: 1fr; }
  .res-cover { max-width: 220px; }
  .quiz-option { font-size: .95rem; }
  .brand { gap: 10px; }
  .brand-logo { height: 38px; }
  .brand-text { font-size: .74rem; max-width: 9.5em; }
  .section-head { grid-template-columns: 1fr; gap: 6px; }
  .areas { grid-template-columns: 1fr; }
  .area { padding-left: 48px; }
  .kin { grid-template-columns: 1fr; }
  .peda-grid { grid-template-columns: 1fr; }
  .facts > div { grid-template-columns: 1fr; gap: 8px; }
  .orchestras { grid-template-columns: 1fr; }
  .hero-strip { font-size: .95rem; gap: 6px 14px; }
  .hero-strip li { gap: 14px; }
}
