/* ==========================================================================
   Sergey Mikhaylov · Afinador de pianos — Penedès
   Palette: piano black, ivory, brass. Fraunces + Inter.
   ========================================================================== */

:root {
  --ink: #14100d;
  --ink-2: #221b16;
  --ink-3: #33281f;
  --ivory: #f7f2e9;
  --ivory-2: #efe7d9;
  --paper: #fbf8f2;
  --brass: #b3873c;
  --brass-lt: #d9b166;
  --felt: #8e2b2b;
  --muted: #6f6459;
  --muted-lt: #a99c8c;
  --line: rgba(20, 16, 13, .12);
  --line-lt: rgba(247, 242, 233, .16);

  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --shell: 1180px;
  --narrow: 780px;
  --pad: clamp(1.15rem, 4vw, 3rem);
  --radius: 4px;
  --shadow: 0 18px 44px -22px rgba(20, 16, 13, .45);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(1rem, .96rem + .2vw, 1.075rem);
  line-height: 1.68;
  color: var(--ink);
  background: var(--paper);
  font-weight: 380;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block }
a { color: inherit }
button { font: inherit; color: inherit; cursor: pointer }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 420;
  line-height: 1.08;
  letter-spacing: -.015em;
  margin: 0 0 .5em;
  font-variation-settings: "SOFT" 0, "WONK" 0, "opsz" 60;
}

h1 { font-size: clamp(2.5rem, 1.4rem + 5.2vw, 5.1rem) }
h2 { font-size: clamp(1.9rem, 1.35rem + 2.3vw, 3.1rem) }
h3 { font-size: clamp(1.15rem, 1.05rem + .4vw, 1.4rem); font-weight: 500 }

p { margin: 0 0 1.1em }

.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: var(--pad) }
.shell-narrow { max-width: var(--narrow) }

/* Destino de los enlaces «#top». Vacío y sin caja: solo sirve como ancla. */
.top-anchor { display: block; width: 0; height: 0 }

.skip-link {
  position: absolute; left: -999px; top: .5rem; z-index: 200;
  background: var(--ink); color: var(--ivory); padding: .7rem 1.1rem; border-radius: var(--radius);
}
.skip-link:focus { left: .5rem }

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

.eyebrow {
  font-family: var(--sans);
  font-size: .72rem; font-weight: 550;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 1rem;
}
.eyebrow-light { color: var(--brass-lt) }

/* ---------------------------------------------------------------- header */

.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  background: rgba(20, 16, 13, .82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line-lt);
  transition: background .35s var(--ease);
}
.header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 4.4rem }

.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ivory); margin-right: auto }
.brand-mark { color: var(--brass-lt); display: grid; place-items: center }
.brand-text { display: flex; flex-direction: column; line-height: 1.15 }
.brand-text strong { font-family: var(--serif); font-weight: 500; font-size: 1.02rem; letter-spacing: .005em }
.brand-text small { font-size: .66rem; letter-spacing: .17em; text-transform: uppercase; color: var(--muted-lt) }

.site-nav { display: flex; align-items: center; gap: 1.55rem }
.site-nav > a {
  color: var(--ivory); text-decoration: none; font-size: .87rem; font-weight: 450;
  letter-spacing: .01em; padding: .35rem 0; position: relative; opacity: .88;
  transition: opacity .2s var(--ease);
}
.site-nav > a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px;
  background: var(--brass-lt); transition: right .3s var(--ease);
}
.site-nav > a:hover { opacity: 1 }
.site-nav > a:hover::after { right: 0 }

.nav-cta {
  border: 1px solid var(--brass); padding: .5rem 1rem !important; border-radius: var(--radius);
  color: var(--brass-lt) !important; opacity: 1 !important;
}
.nav-cta::after { display: none }
.nav-cta:hover { background: var(--brass); color: var(--ink) !important }

.header-tools { display: flex; align-items: center; gap: .9rem }

.lang-switch { display: flex; align-items: center; gap: .3rem; color: var(--muted-lt); font-size: .78rem }
.lang-switch button {
  background: none; border: 0; padding: .25rem .3rem; color: var(--muted-lt);
  font-size: .76rem; font-weight: 550; letter-spacing: .09em; border-radius: 3px;
  transition: color .2s var(--ease);
}
.lang-switch button:hover { color: var(--ivory) }
.lang-switch button[aria-pressed="true"] { color: var(--brass-lt) }

.nav-toggle { display: none; background: none; border: 0; width: 2.4rem; height: 2.4rem; padding: .55rem }
.nav-toggle span { display: block; height: 1.5px; background: var(--ivory); margin: 4.5px 0; transition: .3s var(--ease) }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg) }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0 }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg) }

/* ------------------------------------------------------------------ hero */

.hero {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 100svh; max-height: 72rem; isolation: isolate;
  padding-top: 4.4rem; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2 }
.hero-scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, rgba(20, 16, 13, .96) 4%, rgba(20, 16, 13, .72) 38%, rgba(20, 16, 13, .35) 72%, rgba(20, 16, 13, .55) 100%);
}
.hero-inner { color: var(--ivory); padding-block: clamp(2.5rem, 7vh, 4.5rem) clamp(2.2rem, 5vh, 3.4rem); max-width: 60rem }
.hero .eyebrow { color: var(--brass-lt); text-shadow: 0 1px 14px rgba(20, 16, 13, .85) }
.hero h1, .hero-lede { text-shadow: 0 2px 26px rgba(20, 16, 13, .55) }

.h1-line { display: block }
.h1-accent { font-style: italic; color: var(--brass-lt); font-variation-settings: "SOFT" 40, "WONK" 1, "opsz" 120 }

.hero-lede {
  max-width: 34rem; font-size: clamp(1.02rem, .97rem + .35vw, 1.2rem);
  color: rgba(247, 242, 233, .87); margin-top: 1.6rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2.1rem }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .92rem 1.75rem; border-radius: var(--radius); text-decoration: none;
  font-size: .88rem; font-weight: 520; letter-spacing: .04em; text-transform: uppercase;
  border: 1px solid transparent; transition: .28s var(--ease);
}
.btn-primary { background: var(--brass); color: #1a1409 }
.btn-primary:hover { background: var(--brass-lt); transform: translateY(-2px) }
.btn-ghost { border-color: rgba(247, 242, 233, .4); color: var(--ivory) }
.btn-ghost:hover { border-color: var(--ivory); background: rgba(247, 242, 233, .09) }

.hero-facts {
  list-style: none; display: flex; flex-wrap: wrap; gap: clamp(1.6rem, 5vw, 3.6rem);
  margin: clamp(2.4rem, 6vh, 3.6rem) 0 0; padding: 1.6rem 0 0;
  border-top: 1px solid var(--line-lt);
}
.hero-facts li { display: flex; flex-direction: column }
.hero-facts strong { font-family: var(--serif); font-size: clamp(1.6rem, 1.2rem + 1.3vw, 2.3rem); font-weight: 400; color: var(--brass-lt); line-height: 1 }
.hero-facts span { font-size: .74rem; letter-spacing: .13em; text-transform: uppercase; color: var(--muted-lt); margin-top: .45rem }

/* --------------------------------------------------------------- sections */

.section { padding-block: clamp(4rem, 11vh, 7.5rem) }
.section-tight { padding-block: clamp(3rem, 8vh, 5.5rem) }
.section-head { max-width: 44rem; margin-bottom: clamp(2.4rem, 5vw, 3.6rem) }
.section-head-center { margin-inline: auto; text-align: center }
.section-lede { color: var(--muted); font-size: 1.06rem; margin-top: .4rem }

.section-dark { background: var(--ink-2); color: var(--ivory) }
.section-dark .section-lede { color: rgba(247, 242, 233, .75) }

/* ------------------------------------------------------------------ cards */

.cards {
  display: grid; gap: 1px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
  background: var(--line);
  border: 1px solid var(--line);
}
.card {
  background: var(--paper); padding: clamp(1.6rem, 3vw, 2.3rem);
  transition: background .35s var(--ease), transform .35s var(--ease);
}
.card:hover { background: #fff; transform: translateY(-3px) }
.card-icon { color: var(--brass); margin-bottom: 1.15rem }
.card-icon svg { width: 2rem; height: 2rem }
.card h3 { margin-bottom: .5rem }
.card p { margin: 0; color: var(--muted); font-size: .955rem; line-height: 1.62 }

/* ------------------------------------------------------------------ split */

.split {
  display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
  grid-template-columns: minmax(0, 44fr) minmax(0, 56fr);
}
.split-rev { grid-template-columns: minmax(0, 56fr) minmax(0, 44fr) }
.split-rev .plate { order: -1 }
.prose h2 { margin-bottom: .7rem }

.portrait { margin: 0; position: relative }
.portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow) }
.portrait figcaption {
  font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  margin-top: .9rem; padding-top: .9rem; border-top: 1px solid var(--line);
}
.plate { margin: 0 }
.plate img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow) }

.bio p { color: var(--ink-3) }
.placeholder-note {
  border-left: 2px solid var(--brass); padding: .85rem 1.1rem; background: var(--ivory);
  font-size: .93rem; color: var(--muted); font-style: italic;
}

.ticks { list-style: none; padding: 0; margin: 1.8rem 0 0; display: grid; gap: .7rem }
.ticks li { position: relative; padding-left: 1.9rem; font-size: .96rem; color: var(--ink-3) }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .62em; width: .85rem; height: .85rem;
  border: 1px solid var(--brass); transform: rotate(45deg);
}

/* ------------------------------------------------------------------ steps */

.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: clamp(1.8rem, 4vw, 3rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)) }
.steps li { position: relative; padding-top: 1.4rem; border-top: 1px solid var(--line-lt) }
.step-n {
  font-family: var(--serif); font-size: 2.6rem; font-weight: 300; color: var(--brass);
  display: block; line-height: 1; margin-bottom: .8rem; font-style: italic;
}
.steps h3 { color: var(--ivory) }
.steps p { color: rgba(247, 242, 233, .72); font-size: .95rem; margin: 0 }

/* ------------------------------------------------------------------ towns */

.towns {
  list-style: none; padding: 0; margin: 1.8rem 0 0;
  display: flex; flex-wrap: wrap; gap: .5rem;
}
.towns li {
  font-size: .84rem; padding: .42rem .85rem; background: var(--ivory);
  border: 1px solid var(--line); border-radius: 999px; color: var(--ink-3);
}

/* ---------------------------------------------------------------- gallery */

.gallery { display: grid; gap: .7rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)) }
.shot {
  position: relative; padding: 0; border: 0; background: none; overflow: hidden;
  border-radius: var(--radius); aspect-ratio: 4 / 3;
}
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease), filter .5s var(--ease) }
.shot:hover img { transform: scale(1.055); filter: saturate(1.08) }
.shot-zoom {
  position: absolute; right: .7rem; bottom: .7rem; width: 2rem; height: 2rem;
  display: grid; place-items: center; background: rgba(20, 16, 13, .72); color: var(--ivory);
  border-radius: 50%; font-size: 1.1rem; opacity: 0; transform: translateY(.4rem);
  transition: .35s var(--ease);
}
.shot:hover .shot-zoom, .shot:focus-visible .shot-zoom { opacity: 1; transform: none }

/* -------------------------------------------------------------------- faq */

.faq { border-top: 1px solid var(--line) }
.faq details { border-bottom: 1px solid var(--line) }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.25rem 2.2rem 1.25rem 0; position: relative;
  font-family: var(--serif); font-size: 1.1rem; font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none }
.faq summary::after {
  content: "+"; position: absolute; right: .2rem; top: 50%; transform: translateY(-50%);
  color: var(--brass); font-size: 1.35rem; font-weight: 300; transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg) }
.faq details p { color: var(--muted); padding-bottom: 1.3rem; max-width: 46rem; margin: 0 }

/* ---------------------------------------------------------------- contact */

.section-contact { background: var(--ink); color: var(--ivory) }
.section-contact .section-lede { color: rgba(247, 242, 233, .76) }

.contact-grid {
  display: grid; gap: 1px; margin-top: clamp(2rem, 5vw, 3rem);
  grid-template-columns: 1fr;
  background: var(--line-lt); border: 1px solid var(--line-lt);
}
@media (min-width: 620px) { .contact-grid { grid-template-columns: repeat(2, 1fr) } }
@media (min-width: 1000px) { .contact-grid { grid-template-columns: repeat(4, 1fr) } }
.contact-card {
  display: flex; align-items: center; gap: 1rem; padding: clamp(1.3rem, 3vw, 1.9rem);
  background: var(--ink); text-decoration: none; color: var(--ivory);
  transition: background .3s var(--ease);
}
a.contact-card:hover { background: var(--ink-3) }
.contact-icon { color: var(--brass-lt); flex: none }
.contact-icon svg { width: 1.6rem; height: 1.6rem }
.contact-meta { display: flex; flex-direction: column; min-width: 0 }
.contact-meta small {
  font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-lt); margin-bottom: .3rem;
}
.contact-meta strong { font-family: var(--serif); font-weight: 400; font-size: 1.12rem; overflow-wrap: anywhere }

.contact-note {
  text-align: center; font-size: .85rem; color: var(--muted-lt);
  margin: 2rem 0 0; padding-top: 1.6rem; border-top: 1px solid var(--line-lt);
}

/* Datos de contacto aún pendientes de definir */
.contact-meta strong.is-pending {
  font-family: var(--sans); font-size: .8rem; font-weight: 450;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted-lt);
  font-style: italic;
}
a.contact-card:has(.is-pending) { cursor: default; pointer-events: none }
a.contact-card:has(.is-pending) .contact-icon { color: var(--muted-lt) }

code {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: .85em; background: rgba(179, 135, 60, .14);
  padding: .1em .35em; border-radius: 3px; color: var(--ink-3);
}

/* ----------------------------------------------------------------- footer */

.site-footer { background: #0e0b09; color: var(--muted-lt); padding-block: 2.6rem; border-top: 1px solid var(--line-lt) }
.footer-inner { display: flex; flex-wrap: wrap; gap: .5rem 2rem; align-items: baseline; font-size: .85rem }
.foot-brand { font-family: var(--serif); color: var(--ivory); font-size: 1rem; margin: 0 }
.site-footer p { margin: 0 }
.foot-legal { margin-left: auto }
.site-footer a { color: var(--brass-lt); text-decoration: none }
.site-footer a:hover { text-decoration: underline }

/* --------------------------------------------------------------- lightbox */

.lightbox {
  position: fixed; inset: 0; z-index: 300; display: grid; place-items: center;
  background: rgba(10, 8, 6, .985); padding: 2rem;
  opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s;
}
.lightbox.is-open { opacity: 1; visibility: visible }
.lightbox figure { margin: 0; max-width: min(92vw, 74rem); text-align: center }
.lightbox img { max-height: 78vh; width: auto; margin-inline: auto; border-radius: var(--radius) }
.lightbox figcaption { color: var(--muted-lt); font-size: .86rem; margin-top: 1rem; letter-spacing: .04em }
.lb-close, .lb-prev, .lb-next {
  position: absolute; background: none; border: 0; color: var(--ivory);
  font-size: 2rem; line-height: 1; padding: .5rem .8rem; opacity: .7; transition: opacity .2s var(--ease)
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { opacity: 1 }
.lb-close { top: 1rem; right: 1.2rem; font-size: 1.8rem }
.lb-prev { left: .6rem; top: 50%; transform: translateY(-50%) }
.lb-next { right: .6rem; top: 50%; transform: translateY(-50%) }

/* ------------------------------------------------------------- responsive */

@media (max-width: 900px) {
  .nav-toggle { display: block }
  .site-nav {
    position: fixed; inset: 4.4rem 0 auto; flex-direction: column; align-items: flex-start;
    gap: 0; background: var(--ink); padding: .6rem var(--pad) 1.6rem;
    border-bottom: 1px solid var(--line-lt);
    clip-path: inset(0 0 100% 0); transition: clip-path .4s var(--ease);
  }
  .site-nav.is-open { clip-path: inset(0 0 0 0) }
  .site-nav > a { width: 100%; padding: .9rem 0; border-bottom: 1px solid var(--line-lt); font-size: .95rem }
  .nav-cta { margin-top: 1rem; text-align: center; border-bottom: 1px solid var(--brass) !important }
  .split { grid-template-columns: 1fr }
  .split-rev .plate { order: 0 }
  .portrait img { aspect-ratio: 3 / 2 }
}

@media (max-width: 560px) {
  .hero-facts { gap: 1.4rem }
  .hero-facts li { flex: 1 1 40% }
  .brand-text small { display: none }
  .foot-legal { margin-left: 0 }
  .lb-prev, .lb-next { font-size: 1.6rem }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important }
}

@media print {
  .site-header, .lightbox, .gallery, .hero-bg, .hero-scrim { display: none !important }
  body { background: #fff }
}
