/* ===== NAVEGACIÓN MINIMALISTA GLOBAL ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 9999;
  padding: 0 24px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Efecto láser que recorre todo el nav */
.nav::after {
  content: "";
  position: absolute;
  bottom: 0px;
  left: 24px;
  right: 24px;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(220,38,38,1), rgba(255,80,80,1), rgba(220,38,38,1));
  border-radius: 3px;
  opacity: 0;
  box-shadow: 0 0 8px 3px rgba(220,38,38,0.6);
  pointer-events: none;
  transform-origin: left center;
}

.nav.laser::after {
  animation: laserSweepFull 1.2s ease-out forwards;
}

@keyframes laserSweepFull {
  0% {
    width: 0;
    opacity: 1;
    box-shadow: 0 0 6px 2px rgba(220,38,38,0.8);
  }
  30% {
    width: 40%;
    opacity: 1;
    box-shadow: 0 0 10px 3px rgba(220,38,38,0.9);
  }
  70% {
    width: calc(100% - 48px);
    box-shadow: 0 0 14px 4px rgba(220,38,38,1);
  }
  90% {
    width: calc(100% - 48px);
    opacity: 1;
    box-shadow: 0 0 18px 5px rgba(220,38,38,1), 0 0 25px 8px rgba(255,50,50,0.8);
  }
  100% {
    width: calc(100% - 48px);
    opacity: 0;
    box-shadow: none;
  }
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  position: relative;
}

.nav-logo img {
  height: 44px;
  width: auto;
}

.brand-text {
  line-height: 1.2;
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 6px;
}

.brand-title {
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.brand-sub {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: -0.01em;
}

.brand-sub .highlight {
  color: var(--color-red-600);
  font-weight: 700;
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: -0.01em;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: #ffffff;
}

.btn-descargar {
  background: var(--color-red-600);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 14px;
}

.btn-descargar:hover {
  background: var(--color-red-800);
}

/* ===== BOTÓN MENÚ MÓVIL ===== */
/* Se fuerza la visibilidad y se mejora la detección de clics táctiles */
.mobile-menu-btn {
  display: none !important;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 10000;
  touch-action: manipulation;
}

/* Evita que el clic en móvil se quede atascado en el ícono SVG */
.mobile-menu-btn svg {
  pointer-events: none;
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block !important;
  }

  .nav-links {
    display: none !important;
    flex-direction: column;
    position: absolute;
    top: 52px;
    left: 0;
    width: 100%;
    height: calc(100vh - 52px); /* Cubrir pantalla completa */
    background: rgba(0, 0, 0, 0.98);
    padding: 30px 24px;
    gap: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    align-items: flex-start;
    overflow-y: auto;
  }

  .nav-links a {
    font-size: 18px;
    width: 100%;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .nav-links .btn-descargar {
    width: 100%;
    text-align: center;
    padding: 14px;
    margin-top: 10px;
  }

  .nav-links.active {
    display: flex !important;
  }
}
