/* ==========================================================================
   SAPIENSIA CLAN — MÓDULO 4: NAVEGACIÓN GLASS & SECCIÓN HERO
   Archivo: css/navbar_hero.css
   Descripción: Barra superior flotante, control de audio y portada principal.
   ========================================================================== */

/* --- BARRA DE NAVEGACIÓN SUPERIOR --- */
.navbar-glass {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 16px 24px;
  background: rgba(8, 8, 10, 0.75);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-glass);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo {
  width: 38px;
  height: 38px;
  image-rendering: pixelated;
  filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.4));
}

.brand-name {
  font-family: var(--font-serif-title);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #fff;
  display: block;
}

.brand-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--amber-primary);
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-item {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-item:hover {
  color: #fff;
}

.nav-btn-apoyo {
  background: var(--amber-subtle);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: var(--amber-glow);
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.nav-btn-apoyo:hover {
  background: rgba(245, 158, 11, 0.25);
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.4);
  color: #fff;
}

/* --- BOTÓN DE CONTROL DE AUDIO HERTZ --- */
.btn-sound-glass {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  padding: 5px 12px;
  border-radius: 20px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-sound-glass:hover {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.4);
  color: #fff;
}

.btn-sound-glass.is-muted {
  opacity: 0.55;
  border-color: rgba(255, 255, 255, 0.08);
}

/* --- CONMUTADOR DESLIZABLE ARCADE ON / OFF --- */
.arcade-switch-wrapper {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  user-select: none;
}

.arcade-switch-title {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  text-transform: uppercase;
  line-height: 1;
  transition: color 0.2s ease;
}

.arcade-switch-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 2px 4px;
  outline: none;
}

.switch-state-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #52525b;
  transition: all 0.2s ease;
}

.arcade-switch-btn:not(.is-active-on) .label-off {
  color: #fbbf24;
  text-shadow: 0 0 8px rgba(245, 158, 11, 0.4);
}

.arcade-switch-btn.is-active-on .label-off {
  color: #52525b;
  opacity: 0.5;
}

.arcade-switch-btn.is-active-on .label-on {
  color: #38bdf8;
  text-shadow: 0 0 10px rgba(56, 189, 248, 0.7);
}

.arcade-switch-btn:not(.is-active-on) .label-on {
  color: #52525b;
  opacity: 0.5;
}

.switch-track {
  width: 44px;
  height: 22px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  position: relative;
  display: flex;
  align-items: center;
  padding: 2px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.arcade-switch-btn:hover .switch-track {
  border-color: rgba(245, 158, 11, 0.5);
}

.arcade-switch-btn.is-active-on .switch-track {
  background: rgba(3, 105, 161, 0.4);
  border-color: #38bdf8;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.35);
}

.switch-thumb {
  width: 16px;
  height: 16px;
  background: #f59e0b;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateX(0);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.arcade-switch-btn.is-active-on .switch-thumb {
  transform: translateX(22px);
  background: #38bdf8;
  box-shadow: 0 0 10px #38bdf8;
}

.thumb-icon {
  font-size: 0.55rem;
  line-height: 1;
}

/* --- BOTÓN HAMBURGUESA MÓVIL --- */
.btn-mobile-menu {
  display: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  width: 42px;
  height: 42px;
  padding: 9px 8px;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  transition: all 0.25s ease;
  z-index: 1001;
}

.btn-mobile-menu:hover {
  background: rgba(245, 158, 11, 0.15);
  border-color: var(--amber-primary);
}

.hamburger-line {
  width: 22px;
  height: 2px;
  background-color: #fff;
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
}

.btn-mobile-menu.is-active .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
  background-color: var(--amber-glow);
}

.btn-mobile-menu.is-active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.btn-mobile-menu.is-active .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
  background-color: var(--amber-glow);
}

/* --- RESPONSIVE MÓVIL PARA NAVEGACIÓN (< 860px) --- */
@media (max-width: 860px) {
  .btn-mobile-menu {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(8, 8, 10, 0.98);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border-bottom: 1px solid rgba(245, 158, 11, 0.25);
    flex-direction: column;
    align-items: stretch;
    padding: 24px 20px;
    gap: 12px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.95);
    z-index: 999;
  }

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

  .nav-item {
    font-size: 1.05rem;
    font-weight: 600;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .nav-item:hover, .nav-item:active {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.4);
    color: var(--amber-glow);
  }

  .nav-btn-apoyo {
    justify-content: center;
    padding: 12px 18px;
    font-size: 1rem;
    margin-top: 6px;
    border-color: var(--amber-primary);
  }

  .btn-sound-glass {
    justify-content: center;
    padding: 10px 18px;
    font-size: 0.85rem;
    margin-top: 4px;
    width: 100%;
  }

  .arcade-switch-wrapper {
    flex-direction: row;
    justify-content: space-between;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.02);
    margin-top: 4px;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .navbar-glass {
    padding: 12px 16px;
  }

  .brand-logo {
    width: 32px;
    height: 32px;
  }

  .brand-name {
    font-size: 0.98rem;
    letter-spacing: 0.12em;
  }

  .brand-tag {
    font-size: 0.6rem;
  }
}

/* --- SECCIÓN HERO --- */
.hero-section {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 60px;
  text-align: center;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
}

.tech-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--amber-primary);
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 6px 14px;
  border-radius: 9999px;
  margin-bottom: 24px;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--amber-primary);
  box-shadow: 0 0 8px var(--amber-primary);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.hero-title {
  font-family: var(--font-serif-title);
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.02em;
  color: #fff;
  margin-bottom: 24px;
}

.highlight-serif {
  font-family: var(--font-serif-body);
  font-style: italic;
  font-size: 1.08em;
  background: linear-gradient(180deg, #fbbf24 20%, #d97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--amber-deep), #b45309);
  border: 1px solid var(--amber-primary);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 24px rgba(217, 119, 6, 0.35);
  transition: all 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(245, 158, 11, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}