/* =========================
   NAVBAR (Emayoli)
   - Overlay con degradado
   - Mobile: solo logo + CTA
   - Sticky al bajar y luego se oculta
   ========================= */

.navbar {
  position: absolute; /* en hero */
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
}

.navbar--overlay {
  /* degradado para no tapar la imagen */
  background: linear-gradient(
    180deg,
    rgba(20, 20, 20, 0.68) 0%,
    rgba(20, 20, 20, 0.40) 45%,
    rgba(20, 20, 20, 0.00) 100%
  );
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;

  /* altura cómoda */
  min-height: 84px;

  /* en mobile no queremos que quede pegado a la orilla */
  padding: 14px 18px;

  transition: transform 260ms ease, opacity 220ms ease, background 220ms ease;
}

/* cuando el usuario ya bajó un poco y la barra se vuelve sticky */
.navbar.is-sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
}

/* modo sticky: fondo suave (no transparente total) */
.navbar.is-sticky.navbar--overlay {
  background: linear-gradient(
    180deg,
    rgba(20, 20, 20, 0.72) 0%,
    rgba(20, 20, 20, 0.58) 70%,
    rgba(20, 20, 20, 0.40) 100%
  );
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Oculta TODO el header (para que no quede el degradado flotando) */
.navbar.is-hidden {
  transform: translateY(-110%);
  opacity: 0;
  pointer-events: none;
  transition: transform 260ms ease, opacity 220ms ease;
}

/* Asegura que el header también transicione cuando NO está hidden */
.navbar {
  transition: transform 260ms ease, opacity 220ms ease;
}

/* BRAND */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-logo {
  display: block;

  /* un poco más pequeño */
  height: 42px;
  width: auto;

  /* evita deformación si el asset es raro */
  object-fit: contain;
}

/* NAV LINKS */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-link {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.2px;
  font-size: 15px;
  opacity: 0.95;
}

.nav-link:hover {
  opacity: 1;
}

/* CTA */
.nav-cta {
  margin-left: 4px;
}

/* ===== Responsive ===== */
@media (max-width: 820px) {
  .navbar-inner {
    min-height: 76px;
  }

  .brand-logo {
    height: 38px;
  }

  .nav-actions {
    gap: 14px;
  }

  .nav-link {
    font-size: 14px;
  }
}

@media (max-width: 560px) {
  /* en mobile solo logo + botón */
  .nav-link {
    display: none;
  }

  .navbar-inner {
    padding: 12px 16px;
    min-height: 70px;
  }

  .brand-logo {
    height: 34px;
  }

  .nav-cta {
    padding-left: 16px;
    padding-right: 16px;
  }
}