/* ================================================
   HEADER Y NAVEGACIÓN
   ================================================ */
.top-header {
  position: sticky; top: 0;
  width: 100%;
  background: linear-gradient(105deg, #2D4A2A 0%, #1e3319 55%, #3a2008 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 20px 0;
  z-index: 1000;
  transition:
    padding    var(--transition-slow),
    background var(--transition-slow),
    box-shadow var(--transition-slow);
  will-change: auto;
}

.top-header::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #C6A46A 40%, #E8D5B0 60%, transparent);
  pointer-events: none;
}
 
.header-container {
  max-width: var(--header-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}
 
.brand-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-bottom: 15px;
}
 
.brand-content {
  display: flex;
  align-items: center;
  gap: 20px;
}
 
.brand-content a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  cursor: pointer;
  pointer-events: auto;
  position: relative;
  z-index: 1001;
}
 
.brand-content a img { pointer-events: auto; cursor: pointer; }
 
.main-logo {
  height: 90px; width: 90px;
  object-fit: contain;
  background: #fff;
  border-radius: 50%;
  padding: 5px;
  border: 1.5px solid rgba(198,164,106,0.6);
  box-shadow: 0 0 0 4px rgba(198,164,106,0.15);
  transition: height var(--transition-base), width var(--transition-base);
}
 
.brand-phrase {
  margin: 0;
  color: rgba(232,213,176,0.85);
  font-family: var(--font-italic);
  font-size: 22px; font-weight: 700; font-style: italic;
  max-width: 450px;
  line-height: 1.1;
}
 
.menu-toggle { display: none; }
 
/* ── Menú ────────────────────────────────────── */
.nav-menu {
  display: flex;
  justify-content: center;
  gap: 40px;
  list-style: none;
  margin: 0; padding: 10px 0;
}
 
.nav-menu a {
  text-decoration: none;
  color: rgba(250, 246, 241, 0.95);
  font-weight: 700; font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  position: relative;
}
 
.nav-menu a::after {
  content: "";
  position: absolute;
  width: 0; height: 2px;
  bottom: -4px; left: 0;
  background-color: var(--clr-gold);
  transition: width var(--transition-base);
}
 
.nav-menu a:hover,
.nav-menu a:focus-visible { color: var(--clr-gold); }
.nav-menu a:hover::after  { width: 100%; }
 
.nav-container {
  max-height: 100px;
  opacity: 1;
  overflow: hidden;
  margin-top: 15px;
  visibility: visible;
  transition:
    max-height  0.25s ease,
    opacity     0.2s ease,
    margin      0.25s ease,
    visibility  0s linear;
}
 
/* ── DESKTOP: scrolled oculta el nav ─────────── */
@media (min-width: 769px) {
  .top-header.scrolled {
    padding: 8px 0;
    background: linear-gradient(105deg, rgba(30,56,48,0.97) 0%, rgba(45,74,42,0.97) 85%, rgba(58,32,8,0.90) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
    will-change: padding, background;
  }
 
  .top-header.scrolled .nav-container {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
    margin-bottom: 0;
    padding: 0;
    visibility: hidden;
    transition:
      max-height  0.25s ease,
      opacity     0.2s ease,
      margin      0.25s ease,
      visibility  0s linear 0.25s;
  }
 
  .top-header.scrolled .main-logo    { height: 90px; }
  .top-header.scrolled .brand-phrase { font-size: 22px; }
}