/* Estilos de toda la web. Se editan aquí y se publican con: python3 herramientas/construir.py */
@font-face{font-family:'Ibarra Real Nova';font-style:normal;font-weight:400;font-display:swap;src:url(/assets/fonts/ibarra-real-nova-latin-400-normal.woff2) format('woff2')}
@font-face{font-family:'Ibarra Real Nova';font-style:normal;font-weight:500;font-display:swap;src:url(/assets/fonts/ibarra-real-nova-latin-500-normal.woff2) format('woff2')}
@font-face{font-family:'Ibarra Real Nova';font-style:normal;font-weight:600;font-display:swap;src:url(/assets/fonts/ibarra-real-nova-latin-600-normal.woff2) format('woff2')}
@font-face{font-family:'Ibarra Real Nova';font-style:italic;font-weight:400;font-display:swap;src:url(/assets/fonts/ibarra-real-nova-latin-400-italic.woff2) format('woff2')}
@font-face{font-family:'Ibarra Real Nova';font-style:italic;font-weight:500;font-display:swap;src:url(/assets/fonts/ibarra-real-nova-latin-500-italic.woff2) format('woff2')}
@font-face{font-family:'Hanken Grotesk';font-style:normal;font-weight:400;font-display:swap;src:url(/assets/fonts/hanken-grotesk-latin-400-normal.woff2) format('woff2')}
@font-face{font-family:'Hanken Grotesk';font-style:normal;font-weight:500;font-display:swap;src:url(/assets/fonts/hanken-grotesk-latin-500-normal.woff2) format('woff2')}
@font-face{font-family:'Hanken Grotesk';font-style:normal;font-weight:600;font-display:swap;src:url(/assets/fonts/hanken-grotesk-latin-600-normal.woff2) format('woff2')}
  /* ===== Tokens =====
     Cal (muro encalado del Realejo), Palosanto (madera oscura), Ciprés (acento),
     Abeto (tapa), Piedra (líneas) */
  :root {
    --cal: #faf9f6;
    --cal-2: #f2f0ea;
    --ink: #2a1c19;
    --ink-soft: #5e524c;
    --ink-faint: #6b6059;
    --cipres: #1e4034;
    --cipres-hover: #163128;
    --abeto: #d9c39a;
    --abeto-fill: #f3ead7;
    --abeto-grain: #e2d2b2;
    --abeto-brace: #b39466;
    --rule: #e2ded4;
    --photo: #ebe7de;
    --photo-rule: #dcd6ca;
    --dark: #2a1c19;
    --dark-2: #33231f;
    --on-dark: #f1ebe0;
    --on-dark-soft: #c9bba8;
    --on-dark-rule: #4a3833;
    --on-accent: #faf9f6;

    --serif: 'Ibarra Real Nova', 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
    --sans: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

    --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
    --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

    --wrap: 1180px;
    --gutter: clamp(20px, 5vw, 48px);

    color-scheme: light;
    box-sizing: border-box;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  html { scroll-padding-top: env(safe-area-inset-top, 0px); -webkit-text-size-adjust: 100%; }
  *, *::before, *::after { box-sizing: border-box; }
  body {
    margin: 0; background: var(--cal); color: var(--ink);
    font-family: var(--serif); font-size: 1.125rem; line-height: 1.6;
    -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  }
  img, svg { max-width: 100%; display: block; }
  a { color: inherit; }
  :focus-visible { outline: 2px solid var(--cipres); outline-offset: 3px; border-radius: 2px; }
  .on-dark :focus-visible { outline-color: var(--abeto); }

  .skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: var(--cal); padding: 10px 14px; font: 500 0.9rem/1 var(--sans); text-decoration: none; }
  .skip:focus { top: 12px; }

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

  /* ===== Type ===== */
  .display { font-family: var(--serif); font-weight: 500; font-size: clamp(2.75rem, 1.6rem + 4.6vw, 5.25rem); line-height: 1.02; letter-spacing: -0.018em; margin: 0; text-wrap: balance; }
  .h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(2.5rem, 1.7rem + 3.4vw, 4.25rem); line-height: 1.04; letter-spacing: -0.016em; margin: 0; text-wrap: balance; }
  .h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(2rem, 1.5rem + 2vw, 3rem); line-height: 1.08; letter-spacing: -0.012em; margin: 0; text-wrap: balance; }
  .h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.5rem, 1.3rem + 0.8vw, 1.875rem); line-height: 1.15; letter-spacing: -0.006em; margin: 0; }
  .lede { font-size: clamp(1.1875rem, 1.1rem + 0.35vw, 1.375rem); line-height: 1.55; color: var(--ink-soft); max-width: 36em; margin: 1.1em 0 0; text-wrap: pretty; }
  .body { color: var(--ink-soft); max-width: 34em; margin: 1em 0 0; text-wrap: pretty; }
  .body:first-child { margin-top: 0; }
  .small { font: 400 0.9375rem/1.5 var(--sans); color: var(--ink-faint); }
  .on-dark { background: var(--dark); color: var(--on-dark); }
  .on-dark .lede, .on-dark .body { color: var(--on-dark-soft); }
  .on-dark .small { color: var(--on-dark-soft); }

  /* ===== Buttons & links ===== */
  .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 2rem; }
  .btn {
    display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 1.4rem;
    background: var(--cipres); color: var(--on-accent); border: 0; border-radius: 2px; cursor: pointer;
    font: 500 0.9688rem/1 var(--sans); letter-spacing: 0.005em; text-decoration: none;
    transition: background-color 200ms ease, transform 160ms var(--ease-out);
  }
  .btn:active { transform: scale(0.97); }
  .btn-quiet { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink-faint); transition: box-shadow 200ms ease, transform 160ms var(--ease-out); }
  .on-dark .btn { background: var(--abeto); color: var(--dark); }
  .on-dark .btn-quiet { background: transparent; color: var(--on-dark); box-shadow: inset 0 0 0 1px var(--on-dark-soft); }
  .link {
    color: var(--cipres); font: 500 1rem/1.4 var(--sans); text-decoration: underline; text-underline-offset: 5px;
    text-decoration-thickness: 1px; text-decoration-color: color-mix(in srgb, var(--cipres) 40%, transparent);
    transition: text-decoration-color 200ms ease; display: inline-flex; align-items: center; min-height: 44px;
  }
  .on-dark .link { color: var(--abeto); text-decoration-color: color-mix(in srgb, var(--abeto) 45%, transparent); }
  @media (hover: hover) and (pointer: fine) {
    .btn:hover { background: var(--cipres-hover); }
    .on-dark .btn:hover { background: var(--on-dark); }
    .btn-quiet:hover { background: transparent; box-shadow: inset 0 0 0 1px var(--ink); }
    .on-dark .btn-quiet:hover { background: transparent; box-shadow: inset 0 0 0 1px var(--on-dark); }
    .link:hover { text-decoration-color: currentColor; }
  }

  /* ===== Header ===== */
  .site-header { position: relative; z-index: 20; background: var(--cal); border-bottom: 1px solid var(--rule); }
  .bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
  .brand { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-family: var(--serif); font-weight: 500; font-size: 1.3125rem; letter-spacing: -0.005em; line-height: 1.1; white-space: nowrap; }
  .nav { display: flex; align-items: center; gap: 28px; }
  .nav a.nav-link { font: 500 0.9375rem/1 var(--sans); color: var(--ink-soft); text-decoration: none; padding: 14px 0; border-bottom: 1px solid transparent; transition: color 200ms ease, border-color 200ms ease; }
  .nav a.nav-link[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }
  @media (hover: hover) and (pointer: fine) { .nav a.nav-link:hover { color: var(--ink); } }
  .bar-end { display: flex; align-items: center; gap: 10px; }
  /* Cambio de idioma: el código de la otra lengua, discreto, junto al WhatsApp o al botón del menú */
  .lang {
    display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 8px;
    font: 600 0.8125rem/1 var(--sans); letter-spacing: 0.1em; color: var(--ink-soft); text-decoration: none;
    border-radius: 2px; transition: color 200ms ease;
  }
  @media (hover: hover) and (pointer: fine) { .lang:hover { color: var(--ink); } }
  .btn-sm { min-height: 44px; padding: 0 1.05rem; font-size: 0.9375rem; }
  .menu-btn { display: none; min-height: 44px; min-width: 44px; padding: 0 12px; background: transparent; border: 0; box-shadow: inset 0 0 0 1px var(--rule); border-radius: 2px; color: var(--ink); font: 500 0.9375rem/1 var(--sans); cursor: pointer; transition: transform 160ms var(--ease-out); }
  .menu-btn:active { transform: scale(0.97); }

  @media (max-width: 900px) {
    .menu-btn { display: inline-flex; align-items: center; }
    .nav {
      position: absolute; left: 0; right: 0; top: 100%;
      flex-direction: column; align-items: stretch; gap: 0;
      background: var(--cal); border-bottom: 1px solid var(--rule);
      padding: 6px var(--gutter) 18px;
      opacity: 0; transform: translateY(-6px); visibility: hidden; pointer-events: none;
      transition: opacity 150ms ease-out, transform 150ms ease-out, visibility 0s linear 150ms;
    }
    .nav.is-open {
      opacity: 1; transform: translateY(0); visibility: visible; pointer-events: auto;
      transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out), visibility 0s;
    }
    .nav a.nav-link { font-size: 1.0625rem; padding: 14px 0; border-bottom: 1px solid var(--rule); }
    .nav a.nav-link[aria-current="page"] { border-bottom-color: var(--rule); color: var(--cipres); }
  }
  .nav-wa { display: none; }
  @media (max-width: 900px) { .nav a.nav-wa { display: block; color: var(--cipres); border-bottom: 0; } }
  @media (max-width: 560px) { .bar-wa { display: none; } }
  /* Móviles estrechos: menos aire entre piezas para que quepan marca, idioma y menú. Si aun así no cabe
     (p. ej. mientras carga la tipografía), la marca pasa a dos líneas: «Guitarrería / Gil de Avalle». */
  @media (max-width: 380px) {
    .brand { font-size: 1.125rem; white-space: normal; min-width: 0; }
    .bar { gap: 14px; }
    .bar-end { gap: 6px; }
  }
  @media (max-width: 340px) { .brand { font-size: 1rem; } }

  /* Texto solo para lectores de pantalla */
  .vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

  /* ===== Sections ===== */
  .band { padding-block: clamp(72px, 9vw, 128px); }
  .band-tight { padding-block: clamp(56px, 7vw, 96px); }
  .band + .band.ruled { border-top: 1px solid var(--rule); }
  .alt { background: var(--cal-2); }

  /* Hero */
  .hero { padding-block: clamp(48px, 7vw, 96px) clamp(64px, 8vw, 112px); }
  .hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
  .hero-note { margin-top: 2rem; }
  @media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

  /* Blueprint */
  .plan { margin: 0; }
  .plan figcaption { margin-top: 12px; }
  .plan svg { width: 100%; height: auto; overflow: visible; }
  .bp-outline { fill: none; stroke: var(--cipres); stroke-width: 1.6; stroke-linejoin: round; }
  .bp-fill { fill: var(--abeto-fill); }
  .bp-grain { stroke: var(--abeto-grain); stroke-width: 1; }
  .bp-hole { fill: var(--cal); stroke: var(--cipres); stroke-width: 1.3; }
  .bp-ring { fill: none; stroke: var(--cipres); stroke-width: 0.9; }
  .bp-mosaic { fill: none; stroke: var(--cipres); stroke-width: 7; stroke-dasharray: 0.9 2.2; opacity: 0.8; }
  .bp-bar { stroke: var(--abeto-brace); stroke-width: 4; stroke-linecap: round; fill: none; }
  .bp-brace { stroke: var(--abeto-brace); stroke-width: 2.4; stroke-linecap: round; fill: none; }
  .bp-bridge { fill: none; stroke: var(--ink-faint); stroke-width: 1; stroke-dasharray: 4 3; }
  .bp-axis { stroke: var(--ink-faint); stroke-width: 0.8; stroke-dasharray: 10 4 2 4; }
  .bp-leader { stroke: var(--ink-soft); stroke-width: 0.8; fill: none; }
  .bp-dot { fill: var(--ink); }
  .bp-label { fill: var(--ink); font-family: var(--serif); font-style: italic; font-size: 17px; }
  /* En contenedores de menos de 440 px se recortan los rótulos y se ve solo la tapa */
  .plan:has(> [data-plan="labels"]) { container-type: inline-size; }
  @container (max-width: 439.98px) {
    [data-plan="labels"] { overflow: hidden; }
    [data-plan="labels"] svg { width: 150%; max-width: none; }
    [data-plan="labels"] .bp-leader, [data-plan="labels"] .bp-dot, [data-plan="labels"] .bp-label { display: none; }
  }

  .js .bp .draw { stroke-dasharray: 1; stroke-dashoffset: 1; }
  .js .bp .fade { opacity: 0; }
  .js .bp .bp-mosaic.fade { opacity: 0; }
  .js .bp.is-drawn .draw { animation: bp-draw var(--dur, 1100ms) var(--ease-in-out) var(--delay, 0ms) forwards; }
  .js .bp.is-drawn .fade { animation: bp-fade var(--dur, 500ms) var(--ease-out) var(--delay, 0ms) forwards; }
  .js .bp.is-drawn .bp-mosaic.fade { animation-name: bp-fade-mosaic; }
  @keyframes bp-draw { to { stroke-dashoffset: 0; } }
  @keyframes bp-fade { to { opacity: 1; } }
  @keyframes bp-fade-mosaic { to { opacity: 0.8; } }
  @media (prefers-reduced-motion: reduce) {
    .js .bp .draw { stroke-dashoffset: 0; }
    .js .bp.is-drawn .draw { animation: none; }
    .js .bp.is-drawn .fade { animation: bp-fade 200ms ease forwards; animation-delay: 0ms; }
    .js .bp.is-drawn .bp-mosaic.fade { animation-name: bp-fade-mosaic; }
    .nav, .nav.is-open { transform: none; }
  }

  .r-wide { aspect-ratio: 21 / 9; } .r-land { aspect-ratio: 3 / 2; } .r-43 { aspect-ratio: 4 / 3; } .r-port { aspect-ratio: 4 / 5; }
  @media (max-width: 700px) { .r-wide { aspect-ratio: 4 / 3; } }

  /* Grids */
  .two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 5vw, 64px); }
  .three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 48px); }
  .split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
  .split-rev > :first-child { order: 2; }
  .head-row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 40px; margin-bottom: clamp(36px, 5vw, 56px); }
  .head-row .lede { margin-top: 0.6em; }
  @media (max-width: 900px) { .three { grid-template-columns: 1fr; } }
  @media (max-width: 760px) { .two, .split { grid-template-columns: 1fr; } .split-rev > :first-child { order: 0; } }

  .item { display: flex; flex-direction: column; }
  .item .photo { margin-bottom: 22px; }
  .item .body { margin-top: 0.6em; }
  .meta { font: 500 0.9375rem/1.5 var(--sans); color: var(--ink-faint); margin: 0.9em 0 0; }
  .on-dark .meta { color: var(--abeto); }
  .item .link { margin-top: 0.5rem; align-self: flex-start; }

  .service { border-top: 1px solid var(--rule); padding-top: 22px; }
  .service .body { margin-top: 0.6em; font-size: 1.0625rem; }

  /* Facts list */
  .facts { margin: 0; border-bottom: 1px solid var(--rule); }
  .fact { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 16px; padding: 14px 0; border-top: 1px solid var(--rule); align-items: baseline; }
  .fact dt { font: 400 0.9375rem/1.4 var(--sans); color: var(--ink-faint); }
  .fact dd { margin: 0; font-size: 1.1875rem; line-height: 1.4; }
  .on-dark .facts, .on-dark .fact { border-color: var(--on-dark-rule); }
  .on-dark .fact dt { color: var(--on-dark-soft); }
  @media (max-width: 480px) { .fact { grid-template-columns: 1fr; gap: 2px; } }

  /* Guitar label (Quiénes somos) */
  .label-card { max-width: 420px; margin-inline: auto; background: var(--abeto-fill); color: var(--ink); padding: 10px; box-shadow: 0 1px 0 var(--photo-rule); }
  .label-inner { border: 1px solid var(--ink); outline: 3px double var(--ink); outline-offset: -8px; padding: 34px 30px 30px; text-align: center; }
  .label-name { font-size: 1.75rem; font-weight: 500; line-height: 1.1; letter-spacing: -0.01em; }
  .label-trade { font-style: italic; color: var(--ink-soft); margin-top: 4px; }
  .label-rule { width: 56px; height: 1px; background: var(--ink); margin: 20px auto; border: 0; }
  .label-list { list-style: none; margin: 0; padding: 0; font-size: 1.0625rem; line-height: 1.45; }
  .label-list li + li { margin-top: 12px; }
  .label-place { margin-top: 20px; font: 400 0.875rem/1.4 var(--sans); color: var(--ink-soft); }

  /* Jump links */
  .jumps { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 2rem; }

  /* Footer */
  .site-footer { padding-block: 56px 40px; border-top: 1px solid var(--on-dark-rule); }
  .foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
  .foot-title { font: 500 0.875rem/1.4 var(--sans); color: var(--on-dark-soft); margin: 0 0 6px; }
  .foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 24px; margin-top: 40px; padding-top: 12px; border-top: 1px solid var(--on-dark-rule); }
  .foot-legal { display: flex; flex-wrap: wrap; gap: 0 20px; }
  .foot-legal a { font: 400 0.8125rem/1.4 var(--sans); color: var(--on-dark-soft); min-height: 44px; display: inline-flex; align-items: center; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; transition: text-decoration-color 200ms ease; }
  @media (hover: hover) and (pointer: fine) { .foot-legal a:hover { text-decoration-color: currentColor; } }
  .foot-brand { font-size: 1.5rem; font-weight: 500; line-height: 1.15; letter-spacing: -0.008em; }
  .foot-grid p { margin: 0; font: 400 0.9375rem/1.6 var(--sans); color: var(--on-dark-soft); }
  .foot-grid .foot-brand + p { margin-top: 10px; }
  .foot-links { display: flex; flex-direction: column; align-items: flex-start; }
  .foot-links a { font: 400 0.9375rem/1.4 var(--sans); color: var(--on-dark); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; transition: text-decoration-color 200ms ease; }
  @media (hover: hover) and (pointer: fine) { .foot-links a:hover { text-decoration-color: currentColor; } }
  .foot-copy { font: 400 0.8125rem/1.4 var(--sans); color: var(--on-dark-soft); }
  @media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; } }

  /* Real photos */
  .shot { position: relative; margin: 0; overflow: hidden; background: var(--photo); }
  .shot img, .shot video { width: 100%; height: 100%; object-fit: cover; display: block; }
  .on-dark .shot { background: var(--dark-2); }
  .item .shot { margin-bottom: 22px; }

  /* Home trio: three equal frames tied to the text above */
  .trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); margin-top: clamp(44px, 6vw, 72px); }
  .trio figure { margin: 0; }
  .trio .shot { aspect-ratio: 4 / 5; }
  .note { margin: 12px 0 0; font: italic 400 1.0625rem/1.4 var(--serif); color: var(--ink-soft); display: flex; align-items: baseline; gap: 10px; }
  .note::before { content: ""; flex: 0 0 18px; height: 1px; background: currentColor; transform: translateY(-4px); opacity: 0.7; }
  .trio-foot { display: flex; justify-content: flex-end; margin-top: 12px; }
  @media (max-width: 760px) {
    .trio { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
    .trio::-webkit-scrollbar { display: none; }
    .trio:focus-visible { outline-offset: -2px; }
    .trio figure { flex: 0 0 78%; scroll-snap-align: center; }
    .trio-foot { justify-content: flex-start; }
  }

  /* Home: taller feature (construction leads) */
  .feature { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
  .feature-side { display: grid; gap: clamp(28px, 4vw, 44px); }
  .feature .shot { margin-bottom: 20px; }
  .feature-main .body { font-size: 1.125rem; }
  .r-169 { aspect-ratio: 16 / 9; }
  @media (max-width: 760px) { .feature { grid-template-columns: 1fr; } }

  /* Taller: process timeline on a centre line, like the plan's axis */
  .steps-head { margin-top: clamp(64px, 8vw, 104px); }
  .steps { list-style: none; margin: clamp(32px, 5vw, 56px) 0 0; padding: 0; position: relative; }
  .steps::before { content: ""; position: absolute; top: 24px; bottom: 24px; left: 50%; width: 1px; transform: translateX(-0.5px);
    background: repeating-linear-gradient(to bottom, var(--ink-faint) 0 10px, transparent 10px 14px, var(--ink-faint) 14px 16px, transparent 16px 20px); opacity: 0.7; }
  .step { display: grid; grid-template-columns: minmax(0, 1fr) 72px minmax(0, 1fr); align-items: center; column-gap: clamp(16px, 3vw, 40px); padding-block: clamp(20px, 3vw, 36px); }
  .step-media { grid-column: 1; grid-row: 1; }
  .step-rail { grid-column: 2; grid-row: 1; display: flex; justify-content: center; }
  .step-text { grid-column: 3; grid-row: 1; }
  .step:nth-child(even) .step-media { grid-column: 3; }
  .step:nth-child(even) .step-text { grid-column: 1; }
  .step-num { position: relative; z-index: 1; width: 48px; height: 48px; border-radius: 50%; background: var(--cal); box-shadow: inset 0 0 0 1px var(--cipres); color: var(--cipres); font: 500 1.25rem/48px var(--serif); text-align: center; }
  .step-title { font-family: var(--serif); font-weight: 500; font-size: clamp(1.5rem, 1.3rem + 0.8vw, 1.875rem); line-height: 1.15; letter-spacing: -0.006em; margin: 0; }
  .step-text .body { margin-top: 0.6em; }
  .step-plan { max-width: 340px; margin-inline: auto; }
  @media (max-width: 760px) {
    .steps::before { left: 24px; }
    .step { grid-template-columns: 48px minmax(0, 1fr); column-gap: 18px; row-gap: 16px; align-items: start; }
    .step-rail, .step:nth-child(even) .step-rail { grid-column: 1; grid-row: 1 / span 2; }
    .step-media, .step:nth-child(even) .step-media { grid-column: 2; grid-row: 1; }
    .step-text, .step:nth-child(even) .step-text { grid-column: 2; grid-row: 2; }
    .step-plan { margin-inline: 0; max-width: 260px; }
  }

  /* Taller: restoration with details of the restored instrument */
  .resto { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
  .details { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 2rem; }
  .details figure { margin: 0; }
  .details .shot { aspect-ratio: 1 / 1; }
  .details .note { font-size: 0.9688rem; }
  @media (max-width: 760px) { .resto { grid-template-columns: 1fr; } }

  /* Taller: repair list */
  .repairs { list-style: none; margin: 1.8rem 0 0; padding: 0; border-bottom: 1px solid var(--rule); }
  .repairs li { padding: 13px 0; border-top: 1px solid var(--rule); font-size: 1.1875rem; line-height: 1.4; }

  /* Pause / play control on autoplaying videos */
  .vid-toggle { position: absolute; left: 12px; bottom: 12px; z-index: 2; width: 44px; height: 44px; border: 0; border-radius: 50%; padding: 0;
    display: grid; place-items: center; background: rgba(28, 19, 17, 0.62); color: #f1ebe0; cursor: pointer;
    transition: background-color 200ms ease, transform 160ms var(--ease-out); }
  .vid-toggle:active { transform: scale(0.97); }
  .vid-toggle svg { width: 14px; height: 14px; }
  @media (hover: hover) and (pointer: fine) { .vid-toggle:hover { background: rgba(28, 19, 17, 0.82); } }

  /* Floating WhatsApp button, phones only */
  .wa-fab { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 30; display: none;
    align-items: center; min-height: 48px; padding: 0 20px; border-radius: 2px; background: var(--cipres); color: var(--on-accent);
    font: 500 0.9688rem/1 var(--sans); text-decoration: none; box-shadow: 0 6px 18px rgba(28, 19, 17, 0.22);
    opacity: 0; transform: translateY(8px); pointer-events: none;
    transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out); }
  .wa-fab.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .wa-fab:active { transform: scale(0.97); }
  @media (max-width: 760px) { .wa-fab { display: inline-flex; } }
  @media (prefers-reduced-motion: reduce) { .wa-fab, .wa-fab.is-visible { transform: none; } }

  /* Google rating link */
  .rating { color: inherit; text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 4px; display: inline-flex; align-items: center; min-height: 44px; transition: text-decoration-color 200ms ease; }
  @media (hover: hover) and (pointer: fine) { .rating:hover { text-decoration-color: currentColor; } }

  .contact-links { display: flex; flex-direction: column; align-items: flex-start; }

  /* Map */
  .map { aspect-ratio: 16 / 7; margin: 0; }
  .map iframe { width: 100%; height: 100%; border: 0; display: block; filter: saturate(0.85); }
  .map-load { width: 100%; height: 100%; border: 0; margin: 0; padding: 20px; background: var(--cal-2); color: var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; cursor: pointer; }
  .map-load-title { font: 500 1.0625rem/1.3 var(--sans); text-decoration: underline; text-underline-offset: 4px; }
  .map-load-note { font: 400 0.8125rem/1.45 var(--sans); color: var(--ink-soft); max-width: 36ch; }
  .map-load:focus-visible { outline: 2px solid var(--ink); outline-offset: -6px; }
  @media (max-width: 700px) { .map { aspect-ratio: 4 / 3; } }

  /* Legal page */
  .legal { max-width: 44em; }
  .legal h2 { margin-top: 2.4em; }
  .legal h2:first-child { margin-top: 0; }
  .legal .body { max-width: none; }
  .legal ul { margin: 1em 0 0; padding-left: 1.2em; color: var(--ink-soft); }
  .legal li + li { margin-top: 0.4em; }

  /* Quiénes somos: entering through the soundhole */
  .mouth { position: relative; height: 230svh; }
  .mouth-stage { position: sticky; top: 0; height: 100svh; overflow: hidden; background: var(--dark); }
  .mouth-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .js .mouth-portrait { clip-path: circle(var(--r, 0px) at 50% 50%); will-change: clip-path; }
  .mouth-portrait { object-position: 46% 40%; }
  .mouth-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(20, 13, 11, 0.82) 0%, rgba(20, 13, 11, 0.35) 38%, rgba(20, 13, 11, 0) 62%); opacity: var(--t, 1); pointer-events: none; }
  .mouth-text { position: absolute; left: 0; right: 0; bottom: clamp(28px, 7vh, 72px); color: #f1ebe0; opacity: var(--t, 1); }
  .mouth-text .h1 { color: #f1ebe0; }
  .mouth-text .lede { color: #e6dccb; margin-top: 0.6em; }
  .mouth-hint { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); padding: 10px 16px; background: rgba(250, 249, 246, 0.88); color: #2a1c19; font: 500 0.875rem/1 var(--sans); border-radius: 2px; opacity: var(--h, 0); white-space: nowrap; pointer-events: none; }
  @media (prefers-reduced-motion: reduce) {
    .mouth { height: auto; }
    .mouth-stage { position: relative; height: min(86svh, 760px); }
    .js .mouth-portrait { clip-path: none; }
    .mouth-base, .mouth-hint { display: none; }
    .mouth-shade, .mouth-text { opacity: 1; }
  }

  /* Label fields as section headers */
  .field { display: flex; align-items: baseline; gap: 12px 24px; padding: 16px 0 14px; border-top: 3px double var(--ink); border-bottom: 1px solid var(--ink); margin-bottom: clamp(32px, 4vw, 52px); }
  .field-name { font: italic 400 1.0625rem/1.2 var(--serif); color: var(--ink-soft); min-width: 8rem; }
  .field-value { font-family: var(--serif); font-weight: 500; font-size: clamp(1.9rem, 1.4rem + 2vw, 3rem); line-height: 1.08; letter-spacing: -0.012em; margin: 0; }
  .on-dark .field { border-top-color: var(--on-dark-soft); border-bottom-color: var(--on-dark-soft); }
  .on-dark .field-name { color: var(--on-dark-soft); }
  .on-dark .field-value { color: var(--on-dark); }
  @media (max-width: 600px) { .field { flex-direction: column; gap: 4px; } }
  .inset { max-width: 300px; margin: 2rem 0 0; }
  .inset .shot { aspect-ratio: 1 / 1; }

  /* Home: visit section at night */
  .visit-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
  .visit-photo { margin: 0; }
  .visit-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block;
    -webkit-mask-image: linear-gradient(to right, #000 62%, transparent 100%); mask-image: linear-gradient(to right, #000 62%, transparent 100%); }
  .sign { max-width: 440px; margin-top: 1.4rem; padding: 18px 22px 16px; border: 1px solid rgba(217, 195, 154, 0.75); box-shadow: inset 0 0 0 4px var(--dark), inset 0 0 0 5px rgba(217, 195, 154, 0.45); }
  .sign-title { font: italic 400 1.125rem/1.2 var(--serif); color: var(--abeto); margin-bottom: 8px; }
  .sign-row { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-top: 1px solid var(--on-dark-rule); }
  .sign-row dt { font: 400 0.9375rem/1.4 var(--sans); color: var(--on-dark-soft); }
  .sign-row dd { margin: 0; font-size: 1.0625rem; line-height: 1.4; color: var(--on-dark); text-align: right; }
  .nw { white-space: nowrap; }
  @media (max-width: 480px) { .sign-row { flex-direction: column; gap: 2px; } .sign-row dd { text-align: left; } }
  .sign-note { margin: 8px 0 0; font: 400 0.8125rem/1.4 var(--sans); color: var(--on-dark-soft); }
  @media (max-width: 760px) {
    .visit-grid { grid-template-columns: 1fr; }
    .visit-photo img { -webkit-mask-image: linear-gradient(to bottom, #000 65%, transparent 100%); mask-image: linear-gradient(to bottom, #000 65%, transparent 100%); }
  }

  .pull { margin: 2rem 0 0; padding-left: 20px; border-left: 2px solid var(--cipres); font: italic 400 clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem)/1.45 var(--serif); color: var(--ink); max-width: 30em; }
  .pull cite { display: block; margin-top: 10px; font: normal 400 0.875rem/1.4 var(--sans); color: var(--ink-faint); }

  /* Award badge under the label card */
  .award { display: flex; align-items: center; gap: 18px; max-width: 420px; margin: 28px auto 0; }
  .award img { width: 64px; height: auto; flex: 0 0 auto; }
  .award figcaption { margin: 0; }

  /* Gallery */
  .masonry { columns: 3; column-gap: 16px; }
  @media (max-width: 900px) { .masonry { columns: 2; column-gap: 10px; } .masonry .tile { margin-bottom: 10px; } }
  .tile { display: block; width: 100%; margin: 0 0 16px; padding: 0; border: 0; background: var(--photo); cursor: zoom-in; position: relative; break-inside: avoid; border-radius: 0; transition: transform 160ms var(--ease-out); }
  .tile:active { transform: scale(0.985); }
  .tile img { width: 100%; height: auto; display: block; }
  .tile-badge { position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 8px; padding: 7px 11px 7px 9px; background: rgba(28, 19, 17, 0.72); color: #f1ebe0; font: 500 0.8125rem/1 var(--sans); border-radius: 2px; pointer-events: none; }
  .tile-badge svg { width: 10px; height: 12px; }

  /* Lightbox */
  .lb { border: 0; padding: 0; margin: 0; width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; background: transparent; color: #f1ebe0; overflow: hidden; }
  .lb::backdrop { background: rgba(20, 13, 11, 0.97); }
  .lb[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
  .lb-top { display: flex; justify-content: space-between; align-items: center; padding: calc(env(safe-area-inset-top, 0px) + 12px) var(--gutter) 8px; font: 400 0.875rem/1 var(--sans); color: #c9bba8; }
  .lb-stage { display: flex; align-items: center; justify-content: center; min-height: 0; padding: 0 clamp(8px, 7vw, 96px); touch-action: pan-y; }
  .lb-media { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; display: block; transition: opacity 180ms ease; }
  .lb-media.is-swapping { opacity: 0; transition-duration: 0ms; }
  .lb-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px var(--gutter) calc(env(safe-area-inset-bottom, 0px) + 16px); }
  .lb-caption { font: italic 400 1.0625rem/1.4 var(--serif); color: #e6dccb; margin: 0; flex: 1; text-align: center; }
  .lb-btn { min-height: 44px; min-width: 44px; padding: 0 16px; background: transparent; border: 0; box-shadow: inset 0 0 0 1px rgba(241, 235, 224, 0.35); color: #f1ebe0; font: 500 0.9375rem/1 var(--sans); border-radius: 2px; cursor: pointer; transition: box-shadow 200ms ease, transform 160ms var(--ease-out); }
  .lb-btn:active { transform: scale(0.97); }
  @media (hover: hover) and (pointer: fine) { .lb-btn:hover { box-shadow: inset 0 0 0 1px #f1ebe0; } }
  .lb[open] .lb-stage, .lb[open] .lb-top, .lb[open] .lb-bottom { animation: lb-in 240ms var(--ease-out); }
  .lb.is-closing .lb-stage, .lb.is-closing .lb-top, .lb.is-closing .lb-bottom { animation: lb-out 150ms ease-out forwards; }
  @keyframes lb-in { from { opacity: 0; transform: scale(0.97); } }
  @keyframes lb-out { to { opacity: 0; transform: scale(0.98); } }
  @media (max-width: 600px) { .lb-caption { display: none; } }
  @media (prefers-reduced-motion: reduce) {
    .lb[open] .lb-stage, .lb[open] .lb-top, .lb[open] .lb-bottom { animation: lb-fade 200ms ease; }
    .lb.is-closing .lb-stage, .lb.is-closing .lb-top, .lb.is-closing .lb-bottom { animation: lb-fade-out 150ms ease forwards; }
    .tile:active { transform: none; }
  }
  @keyframes lb-fade { from { opacity: 0; } }
  @keyframes lb-fade-out { to { opacity: 0; } }
