/* =============================================================
   Botia Studio — cabecera y pie
   Markup en partials/header.html y partials/footer.html; se reparte
   con  node tools/build-layout.mjs.

   Estos estilos son propios, no del export original: el header y el
   footer que traía dependían de ~95 reglas atadas a la clase raíz de
   cada página (30 dentro de @media), así que un mismo componente no
   podía verse igual en las cinco. Aquí no hay esa dependencia.
   ============================================================= */

/* ---------- cabecera ---------- */

/* El contenedor raíz que exportó Framer es  display:flex; align-items:center,
   así que sus hijos se encogen al ancho de su contenido en vez de ocupar la
   fila. Por eso cabecera y pie necesitan width:100% + align-self:stretch:
   sin eso el pie salía a 1258px con 74px de aire a cada lado. */

.bs-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  align-self: stretch;
  z-index: 100;
  background: rgba(28, 28, 28, .94);
  border-bottom: 1px solid rgba(222, 220, 211, .28);
}

.bs-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 80px;
  width: 100%;
  padding: 0 48px;
  position: relative;
}

.bs-nav__links {
  display: flex;
  align-items: center;
  gap: 34px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bs-nav__links a,
.bs-nav__cta {
  color: var(--color-bg, #dedcd3);
  font-family: var(--font-sans, 'Instrument Sans', sans-serif);
  font-size: 13px;
  letter-spacing: .14em;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity .2s ease;
}

.bs-nav__links a:hover,
.bs-nav__cta:hover,
.bs-nav__links a:focus-visible,
.bs-nav__cta:focus-visible {
  opacity: .6;
}

/* el logo va centrado respecto a la barra, no al espacio sobrante */
.bs-nav__logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: block;
  width: 193px;
  height: 30px;
}

.bs-nav__logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.bs-nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif, 'Instrument Serif', serif);
  font-size: 16px;
  letter-spacing: .08em;
}

.bs-nav__flecha {
  width: 26px;
  height: 10px;
  flex: none;
}

/* hamburguesa: sólo en móvil */
.bs-nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.bs-nav__burger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--color-bg, #dedcd3);
}

/* enlace de la página en la que estás */
.bs-nav__links a[aria-current="page"],
.bs-menu__nav a[aria-current="page"],
.bs-footer__nav a[aria-current="page"] {
  opacity: .5;
}

/* ---------- panel de menú (móvil) ---------- */

.bs-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 34px;
  background: var(--color-ink, #1c1c1c);
}

.bs-menu.esta-abierto {
  display: flex;
}

.bs-menu__nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 34px;
}

.bs-menu__nav a {
  color: var(--color-bg, #dedcd3);
  font-family: var(--font-sans, 'Instrument Sans', sans-serif);
  font-size: 16px;
  letter-spacing: .14em;
  text-decoration: none;
}

.bs-menu__cta {
  font-family: var(--font-serif, 'Instrument Serif', serif);
  font-size: 24px;
  letter-spacing: .06em;
  margin-top: 12px;
}

.bs-menu__cerrar {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.bs-menu__cerrar::before,
.bs-menu__cerrar::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 6px;
  width: 24px;
  height: 1.5px;
  background: var(--color-bg, #dedcd3);
}

.bs-menu__cerrar::before { transform: rotate(45deg); }
.bs-menu__cerrar::after  { transform: rotate(-45deg); }

/* ---------- pie ---------- */

.bs-footer {
  width: 100%;
  align-self: stretch;
  background: var(--color-bg, #dedcd3);
  color: var(--color-ink, #1c1c1c);
  border-top: 1px solid rgba(28, 28, 28, .14);
  padding: 96px 40px 40px;
}

.bs-footer__grid {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 460px) 1fr;
  align-items: center;
  gap: 48px;
  max-width: 1280px;
  margin: 0 auto;
}

.bs-footer__titulo {
  font-family: var(--font-serif, 'Instrument Serif', serif);
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 400;
  letter-spacing: .02em;
  margin: 0 0 28px;
}

.bs-footer__nav ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
  max-width: 300px;
}

.bs-footer__nav a {
  color: var(--color-accent, #b38452);
  font-family: var(--font-sans, 'Instrument Sans', sans-serif);
  font-size: 13px;
  letter-spacing: .1em;
  text-decoration: none;
  white-space: nowrap;
}

.bs-footer__nav a:hover,
.bs-footer__nav a:focus-visible {
  opacity: .65;
}

/* pila de fotos con la marca encima */
.bs-footer__fotos {
  position: relative;
  aspect-ratio: 4 / 5;
  width: 100%;
}

.bs-footer__foto {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bs-footer__foto--1 { transform: rotate(-2deg); }
.bs-footer__foto--2 { transform: rotate(4deg)  translate(-3%, -2%); }
.bs-footer__foto--3 { transform: rotate(-8deg) translate(-6%, -3%); }

.bs-footer__marca {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 62%;
  height: auto;
  object-fit: contain;
  z-index: 2;
}

.bs-footer__texto {
  font-family: var(--font-serif, 'Instrument Serif', serif);
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.5;
  margin: 0 0 26px;
  max-width: 34ch;
}

.bs-footer__redes {
  display: flex;
  gap: 14px;
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
}

.bs-footer__redes img {
  display: block;
  width: 26px;
  height: 26px;
}

.bs-footer__redes a:hover img,
.bs-footer__redes a:focus-visible img {
  opacity: .65;
}

/* ---------- barra legal, debajo de la rejilla ---------- */

.bs-footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  max-width: 1280px;
  margin: 72px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(28, 28, 28, .18);
}

.bs-footer__legal p {
  font-family: var(--font-sans, 'Instrument Sans', sans-serif);
  font-size: 12px;
  letter-spacing: .06em;
  margin: 0;
}

.bs-footer__legal a {
  color: var(--color-accent, #b38452);
  text-decoration: none;
}

.bs-footer__legal a:hover,
.bs-footer__legal a:focus-visible {
  text-decoration: underline;
}

/* ---------- tablet ---------- */

@media (max-width: 1199.98px) {
  .bs-nav {
    padding: 0 32px;
  }

  .bs-nav__links {
    gap: 22px;
  }

  .bs-nav__links a,
  .bs-nav__cta {
    font-size: 12px;
  }

  .bs-nav__logo {
    width: 160px;
    height: 25px;
  }

  .bs-footer__grid {
    grid-template-columns: 1fr minmax(260px, 380px) 1fr;
    gap: 32px;
  }
}

/* ---------- móvil ---------- */

@media (max-width: 809.98px) {
  .bs-nav {
    height: 64px;
    padding: 0 20px;
    justify-content: space-between;
  }

  /* en móvil sólo quedan logo y hamburguesa */
  .bs-nav__links,
  .bs-nav__cta {
    display: none;
  }

  .bs-nav__burger {
    display: flex;
    margin-left: auto;
  }

  .bs-nav__logo {
    position: static;
    transform: none;
    width: 150px;
    height: 24px;
  }

  .bs-footer {
    padding: 64px 24px 32px;
  }

  .bs-footer__grid {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    text-align: center;
    gap: 44px;
  }

  .bs-footer__nav ul {
    justify-items: center;
    max-width: none;
  }

  .bs-footer__fotos {
    max-width: 300px;
  }

  .bs-footer__texto {
    max-width: none;
  }

  .bs-footer__redes {
    justify-content: center;
  }

  .bs-footer__legal {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    margin-top: 48px;
  }
}
