/* ================================================
   BienStar2 - Navbar & Footer Styles
   Archivo: css/pages/navbar-footer.css
   ================================================ */

/* ══════════════════════════════════════
   NAVBAR
   ══════════════════════════════════════ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 18px 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#navbar.scrolled {
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 12px 0;
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* ── Logo ── */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo-img {
  width: 80px;
  height: 80px;
  border-radius: 10px;
  object-fit: cover; /* mas opcionesw para object-fit   */
  border: 1px solid rgba(255,255,255,0.0);
  box-shadow: 0 0 16px rgba(79,142,247,0.0);
}

.nav-logo-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 7px;
  background: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 900;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 0 16px rgba(79,142,247,0.0);
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.nav-logo-name {
  font-size: 1.1rem;
  font-weight: 800;
  background: linear-gradient(135deg, #fff, var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-logo-tagline {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.logo-hero {
  size-adjust: 80%;
  padding: 10px 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ── Links ── */
#navLinks {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

#navLinks > li > a,
.nav-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--font-main);
  white-space: nowrap;
}

#navLinks > li > a:hover,
.nav-dropdown-trigger:hover {
  color: var(--text);
  background: rgba(255,255,255,0.06);
}

#navLinks > li > a.active,
#navLinks > li.active > a {
  color: var(--primary);
  background: rgba(79,142,247,0.12);
}
/* ── Dropdown ── */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger svg {
  width: 14px; height: 14px;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.nav-dropdown:hover .nav-dropdown-trigger svg,
.nav-dropdown.active .nav-dropdown-trigger svg {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 200px;
  background: rgba(5, 17, 46, 0.815);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 8px;
  box-shadow: 0 16px 40px rgba(4, 16, 49, 0.5);
  z-index: 100;
  animation: fadeInDown 0.2s ease;
}

.nav-dropdown-menu.open { display: block; }

.nav-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.2s ease;
}

.nav-dropdown-menu a:hover {
  color: var(--text);
  background: rgba(255,255,255,0.06);
}

.nav-dropdown-menu a span.menu-icon {
  width: 28px; height: 28px;
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.nav-dropdown-divider {
  height: 1px;
  background: rgba(255,255,255,0.07);
  margin: 6px 0;
}

/* ── Nav CTA button ── */
.nav-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* ── Scroll progress bar ── */
#scrollProgress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--secondary));
  z-index: 1001;
  transition: width 0.1s linear;
}

/* ── Hamburger menu ── */
#menuBtn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  cursor: pointer;
  padding: 8px;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

#menuBtn span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

#menuBtn.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#menuBtn.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
#menuBtn.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Scroll to top ── */
#scrollTopBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border: none;
  border-radius: 12px;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(79,142,247,0.4);
  z-index: 900;
}

#scrollTopBtn.visible {
  opacity: 1;
  transform: translateY(0);
}

#scrollTopBtn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(79,142,247,0.6);
}

/* ══════════════════════════════════════
   FOOTER
   ══════════════════════════════════════ */
#footer {
  background: rgba(8, 11, 20, 0.9);
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 70px 0 0;
  position: relative;
  z-index: 1;
  margin-top: 80px;
}

#footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), var(--accent), var(--secondary), transparent);
  opacity: 0.5;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 50px;
}

/* ── Footer brand ── */
.footer-brand {}

.footer-logo-img {
  width: 80px;
  height: 80px;
  border-radius: 10px;
  object-fit: cover; /* mas opcionesw para object-fit   */
  border: 1px solid rgba(255,255,255,0.0);
  box-shadow: 0 0 16px rgba(79,142,247,0.0);
}

.footer-logo {
  wideth: 75px;
  height: 75px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  text-decoration: none;
}

.footer-logo-placeholder {
  width: 60px; height: 60px;
  border-radius: 8px;
  background: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  font-weight: 900;
  color: #fff;
  flex-shrink: 0;
}

.footer-logo-name {
  font-size: 1.2rem;
  font-weight: 800;
  background: linear-gradient(135deg, #fff, var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 24px;
  max-width: 300px;
}

/* ── Redes sociales ── */
.footer-socials {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.social-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  transition: all 0.3s ease;
}

.social-btn:hover {
  transform: translateY(-3px);
  color: #fff;
}

.social-btn.discord:hover  { background: rgba(88,101,242,0.2);  border-color: #5865f2; color: #5865f2; box-shadow: 0 4px 20px rgba(88,101,242,0.3); }
.social-btn.tiktok:hover   { background: rgba(255,0,80,0.15);   border-color: #ff0050; color: #ff0050; box-shadow: 0 4px 20px rgba(255,0,80,0.25); }
.social-btn.youtube:hover  { background: rgba(255,0,0,0.15);    border-color: #ff0000; color: #ff0000; box-shadow: 0 4px 20px rgba(255,0,0,0.25); }

.social-btn svg { width: 16px; height: 16px; }

/* ── Footer columns ── */
.footer-col-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col-title::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 28px; height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.87rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-links a::before {
  content: '›';
  color: var(--primary);
  font-size: 1rem;
  opacity: 0;
  transform: translateX(-6px);
  transition: all 0.2s ease;
}

.footer-links a:hover {
  color: var(--primary);
  padding-left: 6px;
}

.footer-links a:hover::before {
  opacity: 1;
  transform: translateX(0);
}

/* ── Footer bottom ── */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom-left {
  font-size: 0.82rem;
  color: rgba(148, 163, 184, 0.5);
}

.footer-bottom-left span {
  color: var(--primary);
  font-weight: 600;
}

.footer-bottom-right {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: rgba(148, 163, 184, 0.4);
}

.footer-server-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--success);
  font-weight: 500;
}

.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--success);
  animation: scalePulse 2s ease-in-out infinite;
  box-shadow: 0 0 8px rgba(16,185,129,0.6);
}

/* ══════════════════════════════════════
   RESPONSIVE NAVBAR & FOOTER
   ══════════════════════════════════════ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  #menuBtn { display: flex; }

  #navLinks {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: rgba(10, 14, 26, 0.97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 16px 20px;
  }

  #navLinks.open { display: flex; }

  #navLinks > li > a,
  .nav-dropdown-trigger {
    padding: 12px 14px;
    border-radius: 8px;
    width: 100%;
    justify-content: space-between;
  }

  .nav-dropdown-menu {
    position: static;
    transform: none;
    box-shadow: none;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    margin: 4px 0 4px 12px;
    border-radius: 10px;
    animation: none;
  }

  .nav-cta .btn { display: none; }

  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-brand { grid-column: 1; }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .footer-socials { flex-direction: column; }
  .social-btn { justify-content: center; }
  #scrollTopBtn { bottom: 16px; right: 16px; }
}

