/* Header Styles */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: all 0.3s ease;
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e40af;
  text-decoration: none;
}

.logo i {
  margin-right: 0.5rem;
  font-size: 1.8rem;
  color: #f97316;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  text-decoration: none;
  color: #374151;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link:hover {
  color: #1e40af;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #1e40af, #f97316);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.cta-button {
  background: linear-gradient(135deg, #1e40af, #3b82f6);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(30, 64, 175, 0.3);
}

.cta-button:hover {
  background: linear-gradient(135deg, #f97316, #ea580c);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
  z-index: 1002;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background: #1e40af;
  transition: all 0.3s ease;
  transform-origin: center;
}

/* Agregando animación hamburguesa activa */
.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Corrigiendo estilos del overlay móvil */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
  display: block;
  opacity: 1;
}

/* Corrigiendo estilos del menú móvil con fondo sólido */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background: #ffffff;
  border-left: 1px solid rgba(30, 64, 175, 0.1);
  z-index: 1001;
  transition: right 0.3s ease;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
}

.mobile-nav.active {
  right: 0;
}

.mobile-nav-list {
  list-style: none;
  padding: 80px 0 0 0;
  margin: 0;
}

.mobile-nav-list li {
  border-bottom: 1px solid #f3f4f6;
}

.mobile-nav-link {
  display: block;
  padding: 1rem 2rem;
  text-decoration: none;
  color: #374151;
  font-weight: 500;
  transition: all 0.3s ease;
}

.mobile-nav-link:hover {
  background: #f8fafc;
  color: #1e40af;
  padding-left: 2.5rem;
}

.mobile-cta-button {
  display: block;
  margin: 2rem;
  padding: 1rem;
  background: linear-gradient(135deg, #1e40af, #3b82f6);
  color: white;
  text-align: center;
  text-decoration: none;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.mobile-cta-button:hover {
  background: linear-gradient(135deg, #f97316, #ea580c);
  transform: translateY(-2px);
}

/* Mobile Styles */
@media (max-width: 768px) {
  .nav {
    display: none;
  }

  /* Ocultando botón cotizar en móvil */
  .desktop-only {
    display: none !important;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .mobile-menu-overlay {
    display: block;
  }

  .mobile-nav {
    display: block;
  }

  .logo {
    font-size: 1.3rem;
  }

  .logo i {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .nav-wrapper {
    padding: 0.75rem 0;
  }

  .logo {
    font-size: 1.2rem;
  }

  .mobile-nav {
    width: 100%;
  }
}
