/* ── HEADER MODULAR CSS ── */
html {
  scroll-padding-top: 100px;
  scroll-behavior: smooth;
}
@media (max-width: 768px) {
  html {
    scroll-padding-top: 72px;
  }
}
header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(11, 14, 26, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px 48px;
    font-family: 'Plus Jakarta Sans', sans-serif;
  }
  @keyframes scrollProgress {
    from { background-position: 0% 0%; }
    to { background-position: 100% 0%; }
  }
  header::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #22c55e 0%, #fbbf24 25%, #3b82f6 50%, #818cf8 75%, #22c55e 100%);
    background-size: 300% 100%;
    background-position: var(--scroll-percent, 0%) 0%;
    transition: background-position 0.25s cubic-bezier(0.1, 0.8, 0.2, 1);
  }
  @supports (animation-timeline: scroll()) {
    header::after {
      animation: scrollProgress linear;
      animation-timeline: scroll();
      transition: none;
    }
  }
  .nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
  }
  .logo-text {
    font-weight: 800;
    color: white;
    font-size: 20px;
    letter-spacing: 0.5px;
  }
  .nav-links {
    display: flex;
    gap: 36px;
    list-style: none;
    align-items: center;
  }
  .nav-links > li {
    position: relative;
  }
  .nav-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    transition: all 0.2s ease;
    border-bottom: 2px solid transparent;
    padding: 6px 0;
    display: inline-flex;
    align-items: center;
  }
  .nav-links a:hover { color: white; }
  .nav-links a.active {
    color: white;
    font-weight: 700;
    border-bottom-color: var(--purple-light, #818cf8);
  }
  
  .btn-nav-cta {
    background: var(--gradient-brand, linear-gradient(135deg, #818cf8, #3b82f6, #06b6d4));
    color: var(--white, #ffffff) !important;
    font-weight: 700 !important;
    padding: 10px 24px !important;
    border-bottom: none !important;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    transition: transform 0.2s, box-shadow 0.2s ease !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
  }
  .btn-nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.45);
  }

  /* ── DROPDOWN SUBMENU ── */
  .dropdown-container {
    position: relative;
  }
  .dropdown-trigger {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
  }
  .dropdown-arrow {
    font-size: 10px;
    transition: transform 0.2s ease;
    display: inline-block;
  }
  .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #12162b;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    min-width: 180px;
    padding: 8px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    display: none;
    list-style: none;
    z-index: 2000;
  }
  /* Pseudoelemento puente para evitar la perdida de hover en el gap */
  .dropdown-menu::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 12px;
    background: transparent;
  }
  .dropdown-menu li {
    width: 100%;
  }
  .dropdown-menu a {
    display: block;
    padding: 10px 16px;
    color: rgba(255, 255, 255, 0.7) !important;
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    border-bottom: none !important;
    transition: all 0.2s ease;
    text-align: left;
  }
  .dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.04);
    color: #fff !important;
  }
  
  /* Show dropdown on hover */
  .dropdown-container:hover .dropdown-menu {
    display: block;
  }
  .dropdown-container:hover .dropdown-arrow {
    transform: rotate(180deg);
  }

  @media (max-width: 768px) {
    header { padding: 12px 16px; }
    .logo img { height: 32px !important; }
    .nav-links { display: none; }
  }