/* Custom CSS for Soluciones Digitales */
:root {
  --accent: #011126;
  /* Deep Navy */
  --accent-2: #0468BF;
  /* Bright Blue */
  --accent-3: #0CC8F2;
  /* Cyan */
  --neon-glow: 0 0 10px rgba(4, 104, 191, 0.7);
}

/* General Smoothness */
html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  /* Original linear gradient */
  background: linear-gradient(to bottom right, #011126, #0468BF, #034C8C);
  color: white;
}

#network-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  /* Lighter overlay like original */
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
}

/* Typing Effect Cursor */
.typing::after {
  content: "";
  display: inline-block;
  width: 3px;
  height: 1em;
  background: var(--accent-3);
  margin-left: 6px;
  animation: blink 1s steps(2, start) infinite;
  vertical-align: middle;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* Back to Top Button */
#backToTop {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 60;
  display: none;
  background-color: var(--accent-2);
  color: #000;
  /* Black icon */
  width: 50px;
  height: 50px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  /* Yellow/Gold Glow */
  box-shadow: 0 0 15px #FFD600, 0 0 30px var(--accent-2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: none;
}

#backToTop:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 25px #FFD600, 0 0 50px var(--accent-2);
}

/* Support Icons */
.support-icons {
  z-index: 70;
}

.support-btn {
  transition: transform 0.3s, box-shadow 0.3s;
}

.support-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.support-btn.whatsapp {
  background-color: #25D366;
}

.support-btn.email {
  background-color: #EA4335;
}

/* Animations */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0s !important;
    scroll-behavior: auto !important;
  }
}

.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.delay-100 {
  animation-delay: 0.1s;
}

.delay-200 {
  animation-delay: 0.2s;
}

.delay-300 {
  animation-delay: 0.3s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Gradient Text Animation */
.gradient-animate {
  background: linear-gradient(to right, #60a5fa, #34d399, #60a5fa);
  background-size: 200% auto;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  animation: shine 4s linear infinite;
}

@keyframes shine {
  to {
    background-position: 200% center;
  }
}

/* Glassmorphism Cards */
.glass-card {
  background: rgba(1, 17, 38, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.glass-card:hover {
  border-color: var(--accent-2);
  box-shadow: 0 0 20px rgba(4, 104, 191, 0.3);
}

/* =========================================
   PREMIUM NAVBAR STYLES
   ========================================= */

/* Navbar Glass Effect */
.navbar-glass {
  background: rgba(1, 17, 38, 0.6);
  /* Semi-transparent dark base */
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
}

.navbar-glass.scrolled {
  background: rgba(1, 17, 38, 0.9);
  border-bottom: 1px solid rgba(4, 104, 191, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Nav Links */
.nav-link {
  position: relative;
  font-weight: 500;
  color: #e2e8f0;
  /* Slate-200 */
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--accent-3);
  /* Cyan */
  transition: width 0.3s ease;
  box-shadow: 0 0 8px var(--accent-3);
}

.nav-link:hover {
  color: #fff;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link.active {
  color: var(--accent-3);
}

.nav-link.active::after {
  width: 100%;
}

/* Mobile Menu Animation */
.mobile-menu-wrapper {
  transform-origin: top;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

.mobile-menu-wrapper.hidden {
  display: none;
  /* Fallback */
}

.mobile-menu-wrapper.closed {
  transform: scaleY(0);
  opacity: 0;
  pointer-events: none;
}

.mobile-menu-wrapper.open {
  transform: scaleY(1);
  opacity: 1;
  pointer-events: auto;
}

/* Mobile Link Items */
.mobile-nav-link {
  position: relative;
  overflow: hidden;
}

.mobile-nav-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(4, 104, 191, 0.2), transparent);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}

.mobile-nav-link:hover::before {
  transform: translateX(100%);
}

