/* ============ NAVBAR ============ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
  height: 88px;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 48px;
  position: relative;
}

/* ===== BRAND - MÁS A LA IZQUIERDA ===== */
.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
  margin-right: auto;
  padding-right: 80px;
}

.brand-mark {
  width: 68px;  /* ✅ MÁS GRANDE */
  height: 68px; /* ✅ MÁS GRANDE */
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-name {
  font-size: 24px;
  font-weight: 700;
  font-family: 'Sora', sans-serif;
}

.brand-name span {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ===== NAV LINKS - CENTRADOS ===== */
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-link {
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 16.5px;
  font-weight: 600;
  color: var(--gray);
  cursor: pointer;
  transition: color .15s ease, background .15s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.05);
}

/* ===== LINK ACTIVO - NARANJA SÓLIDO Y TEXTO BLANCO ===== */
.nav-link.active {
  color: #ffffff !important;
  background: #d16d03 !important;
  border-radius: 10px;
}

.nav-link .fas,
.nav-link .far,
.nav-link .fab {
  font-size: 14px;
}

/* ===== ACCIONES - MÁS A LA DERECHA ===== */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
  margin-left: auto;
  padding-left: 80px;
}

.nav-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Inter', sans-serif;
  white-space: nowrap;
}

.nav-actions .btn i {
  font-size: 14px;
}

.nav-actions .btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--white);
}

.nav-actions .btn-ghost:hover {
  border-color: var(--orange);
  background: rgba(255, 140, 20, 0.08);
  color: var(--orange);
}

.nav-actions .btn-primary {
  background: var(--grad);
  color: #1a0e00;
  box-shadow: 0 4px 15px rgba(255, 140, 20, 0.3);
}

.nav-actions .btn-primary:hover {
  box-shadow: 0 8px 25px rgba(255, 140, 20, 0.5);
  transform: translateY(-2px);
}

.burger {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.burger span,
.burger span::before,
.burger span::after {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--white);
  position: relative;
  transition: all 0.25s ease;
}

.burger span::before {
  position: absolute;
  top: -6px;
}

.burger span::after {
  position: absolute;
  top: 6px;
}

.burger.active span {
  background: transparent;
}

.burger.active span::before {
  transform: rotate(45deg);
  top: 0;
}

.burger.active span::after {
  transform: rotate(-45deg);
  top: 0;
}

.mobile-only {
  display: none !important;
}

.desktop-only {
  display: flex !important;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
  .nav-inner {
    padding: 0 32px;
  }
  
  .brand {
    padding-right: 40px;
  }
  
  .nav-actions {
    padding-left: 40px;
  }
}

@media (max-width: 960px) {
  .nav-links {
    position: fixed;
    top: 88px;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    flex-direction: column;
    align-items: stretch;
    padding: 16px 20px;
    border-bottom: 1px solid var(--line);
    transform: translateY(-150%);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    gap: 4px;
    max-height: calc(100vh - 88px);
    overflow-y: auto;
    position: fixed;
    left: 0;
    transform: translateY(-150%);
    width: 100%;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
  }

  .nav-link {
    padding: 14px 16px;
    font-size: 15px;
    text-align: center;
    justify-content: center;
  }

  .nav-link.active {
    color: #ffffff !important;
    background: #ff8c14 !important;
  }

  .burger {
    display: flex;
  }

  .nav-actions .btn-ghost {
    display: none !important;
  }

  .nav-actions .btn-primary {
    display: none !important;
  }

  .mobile-only {
    display: block !important;
  }

  .desktop-only {
    display: none !important;
  }

  .brand {
    padding-right: 0;
  }

  .nav-actions {
    padding-left: 0;
  }

  .brand-mark {
    width: 48px;
    height: 48px;
  }

  .brand-name {
    font-size: 17px;
  }
}

@media (max-width: 480px) {
  .nav-inner {
    height: 64px;
    padding: 0 16px;
  }

  .nav-links {
    top: 64px;
    padding: 12px 16px;
    max-height: calc(100vh - 64px);
  }

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

  .nav-link.active {
    color: #ffffff !important;
    background: #ff8c14 !important;
  }

  .burger {
    width: 38px;
    height: 38px;
  }

  .burger span,
  .burger span::before,
  .burger span::after {
    width: 17px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .brand-name {
    font-size: 15px;
  }
}

/* ============ MÓVIL - SOLO LOGO SIN TEXTO Y MÁS GRANDE ============ */
@media (max-width: 768px) {
  .brand-name {
    display: none !important;
  }

  .brand-mark {
    width: 60px !important;
    height: 60px !important;
  }

  .brand {
    gap: 0 !important;
    padding-right: 0 !important;
  }

  .navbar {
    height: 72px !important;
  }

  .nav-inner {
    height: 72px !important;
    padding: 0 16px !important;
  }

  .nav-links {
    top: 72px !important;
  }
}

@media (max-width: 480px) {
  .navbar {
    height: 64px !important;
  }

  .nav-inner {
    height: 64px !important;
  }

  .nav-links {
    top: 64px !important;
  }

  .brand-mark {
    width: 52px !important;
    height: 52px !important;
  }
}