/* Encabezado sticky, drawer móvil y pie de página. */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(246, 242, 234, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(20, 20, 15, 0.04);
  border-bottom: 1px solid var(--line-soft);
}

.site-header__inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(16px, 2.5vw, 40px);
  flex-wrap: nowrap;
}

.site-header__logo {
  display: flex;
  align-items: center;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
}
.site-header__logo img {
  height: 42px;
  width: auto;
  display: block;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.2vw, 30px);
  white-space: nowrap;
  flex-shrink: 0;
}
.nav__link {
  background: none;
  border: 0;
  padding: 4px 0;
  cursor: pointer;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  color: var(--muted-2);
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.nav__link.is-active {
  color: var(--ink);
  border-bottom-color: var(--gold);
}

/* Submenú de Contacto (escritorio): se abre con hover, con foco de teclado o con la flecha */
.nav__item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 14px 0; /* el submenú nace al borde: sin hueco que pierda el hover */
}
.nav__caret {
  position: relative;
  width: 18px;
  height: 18px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav__caret::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 4px;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid var(--muted-2);
  border-bottom: 1.5px solid var(--muted-2);
  transform: rotate(45deg);
  transition: transform 0.2s, top 0.2s, border-color 0.2s;
}
.nav__item:hover .nav__caret::before,
.nav__item:focus-within .nav__caret::before,
.nav__item.is-open .nav__caret::before {
  top: 7px;
  transform: rotate(-135deg);
  border-color: var(--gold);
}
.nav__sub {
  position: absolute;
  top: 100%;
  left: -14px;
  min-width: 230px;
  padding: 8px 0;
  background: var(--white);
  border: 1px solid var(--line-2);
  box-shadow: 0 14px 34px rgba(20, 20, 15, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  z-index: 70;
}
.nav__item:hover .nav__sub,
.nav__item:focus-within .nav__sub,
.nav__item.is-open .nav__sub {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.nav__sublink {
  display: block;
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  color: var(--ink-90);
  transition: color 0.2s, background 0.2s;
}
.nav__sublink:hover,
.nav__sublink:focus-visible,
.nav__sublink.is-active {
  color: var(--gold);
  background: var(--bg);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}

.lang {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.1em;
  white-space: nowrap;
}
.lang__btn {
  background: none;
  border: 0;
  padding: 0;
  text-decoration: none;
  cursor: pointer;
  font-family: var(--font);
  font-size: 12px;
  letter-spacing: 0.1em;
  font-weight: 500;
  color: var(--faint);
}
.lang__btn.is-active {
  font-weight: 700;
  color: var(--ink);
}
.lang__sep {
  color: rgba(20, 20, 15, 0.25);
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  width: 42px;
  height: 42px;
  background: none;
  border: 1px solid rgba(20, 20, 15, 0.2);
  border-radius: 2px;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--ink);
}

.drawer {
  border-top: 1px solid var(--line);
  background: var(--bg);
  padding: 18px 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.drawer__link {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  border-bottom: 1px solid rgba(20, 20, 15, 0.08);
  padding: 16px 0;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}
.drawer__link.is-active {
  color: var(--gold);
}
/* Submenú de Contacto en el menú móvil: siempre visible, sangrado bajo "Contacto" */
.drawer__link:has(+ .drawer__sub) {
  border-bottom-color: transparent;
}
.drawer__sub {
  position: relative;
  padding: 12px 0 16px 28px;
  font-size: 15px;
  font-weight: 500;
  color: var(--muted-2);
}
.drawer__sub::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 50%;
  width: 14px;
  height: 1px;
  background: var(--gold-light);
}
.drawer__lang {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 18px;
}

@media (max-width: 1180px) {
  .nav,
  .header-actions .lang {
    display: none;
  }
  .menu-toggle {
    display: flex;
  }
}
@media (min-width: 1181px) {
  .drawer {
    display: none;
  }
}

/* ---- Footer ---- */
.site-footer {
  background: var(--ink);
  color: rgba(246, 242, 234, 0.62);
}
.site-footer__inner {
  padding-top: 80px;
  padding-bottom: 40px;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 56px;
  padding-bottom: 52px;
  border-bottom: 1px solid rgba(246, 242, 234, 0.14);
}
.site-footer__brand {
  min-width: 0;
}
.site-footer__brand img {
  height: 44px;
  width: auto;
  display: block;
  margin-bottom: 20px;
}
.site-footer__tag {
  font-size: 12px;
  letter-spacing: 0.16em;
  color: rgba(246, 242, 234, 0.45);
  text-transform: uppercase;
}
.site-footer__social {
  display: flex;
  gap: 12px;
  margin-top: 22px;
}
.site-footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(246, 242, 234, 0.2);
  border-radius: 50%;
  color: rgba(246, 242, 234, 0.62);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.site-footer__social a:hover {
  color: var(--gold-light);
  border-color: var(--gold-light);
}
.site-footer__social svg {
  display: block;
}
.site-footer__col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 14px;
  min-width: 0;
}
.site-footer__head {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--gold-light);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.site-footer__link {
  background: none;
  border: 0;
  padding: 0;
  text-align: left;
  font-family: var(--font);
  font-size: 14px;
  color: rgba(246, 242, 234, 0.62);
  cursor: pointer;
}
.site-footer__link:hover {
  color: var(--gold-light);
}
.site-footer__addr {
  color: rgba(246, 242, 234, 0.45);
  line-height: 1.6;
}
.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-top: 26px;
  font-size: 12px;
  color: var(--on-dark-faint);
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .site-footer__inner {
    padding-top: 56px;
    padding-bottom: 32px;
  }
  .site-footer__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
}
