:root {
      --navy-900: #0C1530;
      --navy-800: #152460;
      --navy-700: #1C2E75;
      --purple: #8B3DC8;
      --purple-light: #A855F7;
      --blue: #1A3A8A;
      --cyan: #38BDF8;
      --pink: #C45FA0;
      --white: #F8FAFC;
      --gray-400: #94A3B8;
      --gray-300: #CBD5E1;
      --grad: linear-gradient(135deg, #1A3A8A 0%, #8B3DC8 55%, #C45FA0 100%);
    }

    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    html { scroll-behavior: smooth; }
    body { font-family: 'DM Sans', sans-serif; background: var(--navy-900); color: var(--white); overflow-x: hidden; }
    ::-webkit-scrollbar { width: 5px; }
    ::-webkit-scrollbar-track { background: var(--navy-900); }
    ::-webkit-scrollbar-thumb { background: var(--purple); border-radius: 3px; }
    h1, h2, h3, h4 { font-family: 'Outfit', sans-serif; }
    .container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

    .gradient-text {
      background: var(--grad);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }
    .section-label {
      display: inline-block;
      font-size: 0.72rem;
      font-weight: 600;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      color: var(--cyan);
      margin-bottom: 12px;
    }
    .reveal {
      opacity: 0;
      transform: translateY(28px);
      transition: opacity 0.65s ease, transform 0.65s ease;
    }
    .reveal.visible { opacity: 1; transform: translateY(0); }
    .d1 { transition-delay: 0.1s; }
    .d2 { transition-delay: 0.2s; }
    .d3 { transition-delay: 0.3s; }
    .d4 { transition-delay: 0.4s; }

    /* ── NAV ── */
    nav {
      position: fixed; top: 0; left: 0; right: 0; z-index: 100;
      height: 68px;
      padding: 0 40px;
      display: flex; align-items: center; justify-content: space-between;
      background: rgba(5,9,30,0.82);
      backdrop-filter: blur(16px);
      border-bottom: 1px solid rgba(139,61,200,0.15);
      transition: background 0.3s, box-shadow 0.3s;
    }
    nav.scrolled { background: rgba(5,9,30,0.97); box-shadow: 0 2px 24px rgba(0,0,0,0.4); }
    .nav-logo { display: flex; flex-direction: row; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
    .nav-logo img { height: 92px; width: 92px; object-fit: contain; display: block; }
    .nav-logo-text { font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 1.1rem; background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; white-space: nowrap; }
    .nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
    .nav-links a { color: var(--gray-400); text-decoration: none; font-size: 0.88rem; font-weight: 400; transition: color 0.2s; white-space: nowrap; }
    .nav-links a:hover { color: var(--white); }
    .nav-cta { background: var(--grad); color: white !important; padding: 9px 22px; border-radius: 7px; font-weight: 600 !important; font-size: 0.88rem !important; transition: opacity 0.2s, transform 0.2s !important; }
    .nav-cta:hover { opacity: 0.88; transform: translateY(-1px); color: white !important; }
    .burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
    .burger span { display: block; width: 22px; height: 2px; background: var(--white); border-radius: 2px; transition: 0.3s; }

    /* ── HERO ── */
    #hero {
      position: relative; min-height: 100vh;
      display: flex; align-items: center; justify-content: center; text-align: center;
      overflow: hidden; background: var(--navy-900);
    }
    .hero-bg {
      position: absolute; inset: 0;
      background:
        radial-gradient(ellipse at 20% 50%, rgba(139,61,200,0.28) 0%, transparent 58%),
        radial-gradient(ellipse at 80% 20%, rgba(37,99,235,0.25) 0%, transparent 58%),
        radial-gradient(ellipse at 55% 85%, rgba(56,189,248,0.12) 0%, transparent 48%);
      animation: hshift 9s ease-in-out infinite alternate;
    }
    @keyframes hshift { 0% { opacity:.85; filter:hue-rotate(0deg); } 100% { opacity:1; filter:hue-rotate(18deg); } }
    .hero-grid {
      position: absolute; inset: 0;
      background-image: linear-gradient(rgba(139,61,200,0.055) 1px, transparent 1px), linear-gradient(90deg, rgba(139,61,200,0.055) 1px, transparent 1px);
      background-size: 60px 60px;
    }
    #sc { position: absolute; inset: 0; pointer-events: none; }
    .hero-content { position: relative; z-index: 2; max-width: 820px; padding: 130px 24px 80px; }
    .hero-logo { width: 180px; height: auto; margin: 0 auto 24px; display: block; filter: drop-shadow(0 0 32px rgba(139,61,200,0.55)); }
    .hero-logo {
      display: flex;
      justify-content: center;
      margin: 0 auto 26px;
    }
    .hero-logo img {
      display: block;
      width: min(180px, 42vw);
      height: auto;
      object-fit: contain;
      filter: drop-shadow(0 14px 36px rgba(37,99,235,0.28));
    }
    .hero-badge {
      display: inline-flex; align-items: center; gap: 8px;
      background: rgba(139,61,200,0.12); border: 1px solid rgba(139,61,200,0.38);
      border-radius: 100px; padding: 6px 18px;
      font-size: 0.78rem; color: var(--cyan); letter-spacing: 0.12em; font-weight: 500;
      margin-bottom: 28px;
      animation: badgepulse 3s ease-in-out infinite;
    }
    .hero-badge::before { content:''; width:6px; height:6px; border-radius:50%; background:var(--cyan); box-shadow:0 0 6px var(--cyan); animation:blink 2s ease-in-out infinite; }
    @keyframes blink { 0%,100%{opacity:1;} 50%{opacity:.25;} }
    @keyframes badgepulse { 0%,100%{box-shadow:0 0 0 0 rgba(56,189,248,0);} 50%{box-shadow:0 0 22px rgba(56,189,248,0.13);} }
    .hero-title { font-size: clamp(3.2rem,8.5vw,6.5rem); font-weight: 800; line-height: 1.02; letter-spacing: -0.025em; margin-bottom: 22px; }
    .hero-sub { font-size: clamp(1rem,2.2vw,1.3rem); color: var(--gray-300); font-weight: 300; font-style: italic; line-height: 1.65; max-width: 540px; margin: 0 auto 44px; }
    .hero-sub em { color: var(--cyan); font-style: normal; font-weight: 500; }
    .btn { display: inline-block; padding: 14px 38px; background: var(--grad); color: white; font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 0.92rem; letter-spacing: 0.05em; text-decoration: none; border-radius: 8px; transition: transform .22s, box-shadow .22s; box-shadow: 0 0 28px rgba(139,61,200,0.28); }
    .btn:hover { transform: translateY(-2px); box-shadow: 0 8px 40px rgba(139,61,200,0.48); }
    .scroll-ind { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; animation: sb 2.2s ease-in-out infinite; }
    .scroll-ind-line { width: 1px; height: 42px; background: linear-gradient(to bottom, var(--cyan), transparent); }
    @keyframes sb { 0%,100%{transform:translateX(-50%) translateY(0);} 50%{transform:translateX(-50%) translateY(7px);} }

    /* ── ABOUT ── */
    #about { background: var(--navy-800); padding: 100px 0; }
    .about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
    .about-text h2 { font-size: clamp(2rem,4vw,2.9rem); font-weight: 800; line-height: 1.16; margin-bottom: 22px; }
    .about-text p { color: var(--gray-300); font-size: 1.02rem; line-height: 1.82; margin-bottom: 16px; }
    .about-stats { display: flex; gap: 44px; margin-top: 38px; }
    .stat-num { font-family: 'Outfit', sans-serif; font-size: 2.2rem; font-weight: 800; background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
    .stat-lbl { font-size: 0.76rem; color: var(--gray-400); text-transform: uppercase; letter-spacing: 0.11em; margin-top: 3px; }
    .about-visual { display: flex; justify-content: center; align-items: center; }
    .circuit-svg { width: 100%; max-width: 390px; opacity: .72; }

    /* ── SERVICES ── */
    #services { background: var(--navy-900); padding: 100px 0; }
    .sec-head { text-align: center; margin-bottom: 60px; }
    .sec-head h2 { font-size: clamp(2rem,4vw,2.75rem); font-weight: 800; line-height: 1.2; }
    .sec-head p { color: var(--gray-400); margin-top: 14px; font-size: 1.02rem; max-width: 520px; margin-inline: auto; }
    .svc-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
    .svc-card {
      position: relative; background: rgba(13,27,75,0.55);
      border: 1px solid rgba(139,61,200,0.18); border-radius: 16px;
      padding: 38px 30px; overflow: hidden;
      transition: transform .3s, border-color .3s;
    }
    .svc-card::before {
      content:''; position:absolute; inset:0; border-radius:16px; padding:1px;
      background: var(--grad);
      -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
      -webkit-mask-composite: xor; mask-composite: exclude;
      opacity:0; transition:opacity .3s;
    }
    .svc-card:hover { transform: translateY(-6px); }
    .svc-card:hover::before { opacity: 1; }
    .svc-glow {
      position: absolute; width: 180px; height: 180px; border-radius: 50%;
      background: radial-gradient(circle, rgba(139,61,200,0.13) 0%, transparent 70%);
      top: -40px; right: -40px; pointer-events: none; transition: all .4s;
    }
    .svc-card:hover .svc-glow { background: radial-gradient(circle, rgba(139,61,200,0.28) 0%, transparent 70%); transform: scale(1.3); }
    .svc-icon { width: 50px; height: 50px; background: rgba(139,61,200,0.13); border: 1px solid rgba(139,61,200,0.28); border-radius: 11px; display: flex; align-items: center; justify-content: center; margin-bottom: 22px; }
    .svc-icon svg { width: 24px; height: 24px; }
    .svc-card h3 { font-size: 1.18rem; font-weight: 700; margin-bottom: 12px; line-height: 1.3; }
    .svc-card p { color: var(--gray-400); font-size: 0.93rem; line-height: 1.72; }

    /* ── DIFERENCIAL ── */
    #dif {
      position: relative; padding: 100px 0;
      background: linear-gradient(135deg, #111630 0%, #1E1048 45%, #0E1A48 100%);
      overflow: hidden;
    }
    .dif-orb { position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none; }
    .dif-orb-1 { width: 460px; height: 460px; background: rgba(139,61,200,0.18); top: -80px; left: -80px; }
    .dif-orb-2 { width: 380px; height: 380px; background: rgba(37,99,235,0.13); bottom: -60px; right: -60px; }
    .dif-inner { position: relative; z-index: 1; text-align: center; }
    .dif-inner h2 { font-size: clamp(2rem,4.5vw,3.1rem); font-weight: 800; line-height: 1.15; max-width: 700px; margin: 0 auto 18px; }
    .dif-inner > p { color: var(--gray-300); font-size: 1.05rem; max-width: 580px; margin: 0 auto 56px; line-height: 1.72; }
    .pills { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; margin-bottom: 56px; }
    .pill {
      display: flex; align-items: center; gap: 12px;
      background: rgba(255,255,255,0.055); border: 1px solid rgba(139,61,200,0.4);
      border-radius: 100px; padding: 18px 32px;
      font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 1.05rem;
      letter-spacing: 0.02em;
      transition: all .28s; cursor: default;
      box-shadow: 0 0 18px rgba(139,61,200,0.12);
    }
    .pill:hover { background: rgba(139,61,200,0.18); border-color: var(--purple-light); transform: translateY(-3px); box-shadow: 0 6px 28px rgba(139,61,200,0.28); }
    .dif-quote { display: inline-block; font-size: clamp(1rem,2.2vw,1.3rem); color: var(--cyan); font-weight: 400; font-style: italic; border-top: 1px solid rgba(56,189,248,0.25); padding-top: 24px; max-width: 660px; margin: 0 auto; }

    /* ── TEAM ── */
    #team { background: var(--navy-800); padding: 100px 0; }
    .team-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 26px; }
    .team-card { flex: 0 0 calc(33.333% - 18px); max-width: calc(33.333% - 18px); }
    .team-card {
      background: rgba(5,9,30,0.55); border: 1px solid rgba(139,61,200,0.14);
      border-radius: 20px; padding: 38px 26px; text-align: center;
      position: relative; overflow: hidden;
      transition: transform .3s, border-color .3s, box-shadow .3s;
    }
    .team-card::after { content:''; position:absolute; bottom:0; left:0; right:0; height:3px; background:var(--grad); transform:scaleX(0); transform-origin:left; transition:transform .4s; }
    .team-card:hover { transform: translateY(-8px); border-color: rgba(139,61,200,0.38); box-shadow: 0 20px 56px rgba(5,9,30,0.55); }
    .team-card:hover::after { transform: scaleX(1); }
    .photo-wrap { position: relative; width: 192px; height: 192px; margin: 0 auto 22px; }
    .photo-wrap::before { content:''; position:absolute; inset:-3px; border-radius:50%; background:var(--grad); z-index:0; }
    .photo-wrap img, .photo-init {
      position: relative; z-index: 1; width: 192px; height: 192px; border-radius: 50%;
      border: 3px solid var(--navy-800); display: block; object-fit: cover;
      object-position: center 20%;
      image-rendering: auto;
      -ms-interpolation-mode: bicubic;
      -webkit-backface-visibility: hidden;
      backface-visibility: hidden;
    }
    .photo-init {
      background: var(--navy-700); display: flex; align-items: center; justify-content: center;
      font-family: 'Outfit', sans-serif; font-size: 1.9rem; font-weight: 800;
      background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
      background-color: var(--navy-700);
    }
    .team-name { font-size: 1.08rem; font-weight: 700; margin-bottom: 7px; }
    .team-role { display: inline-block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cyan); background: rgba(56,189,248,0.07); border: 1px solid rgba(56,189,248,0.18); border-radius: 100px; padding: 4px 12px; margin-bottom: 16px; }
    .team-bio { color: var(--gray-400); font-size: 0.88rem; line-height: 1.72; }

    /* ── CONTACT ── */
    #contact { background: var(--navy-900); padding: 100px 0 80px; }
    .contact-head { text-align: center; margin-bottom: 52px; }
    .contact-head h2 { font-size: clamp(2rem,4vw,2.75rem); font-weight: 800; margin-bottom: 10px; }
    .contact-head p { color: var(--gray-400); font-size: 1.02rem; }
    .contact-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; max-width: 780px; margin: 0 auto; }
    .ctile {
      display: flex; flex-direction: column; align-items: center; gap: 13px;
      background: rgba(13,27,75,0.45); border: 1px solid rgba(139,61,200,0.13);
      border-radius: 16px; padding: 36px 36px; width: 160px; text-decoration: none; color: var(--white);
      position: relative; overflow: hidden; transition: all .3s;
    }
    .ctile::before { content:''; position:absolute; inset:0; background:var(--grad); opacity:0; transition:opacity .3s; }
    .ctile:hover { transform: translateY(-4px); border-color: transparent; }
    .ctile:hover::before { opacity: .1; }
    .ctile:hover .cicon { transform: scale(1.12); }
    .cicon { position:relative; z-index:1; width:50px; height:50px; border-radius:12px; display:flex; align-items:center; justify-content:center; transition:transform .3s; }
    .cicon svg { width: 26px; height: 26px; }
    .clabel { position:relative; z-index:1; font-family:'Outfit',sans-serif; font-weight:600; font-size:0.82rem; letter-spacing:0.05em; color:var(--gray-300); }

    /* ── FOOTER ── */
    footer { background: var(--navy-900); border-top: 1px solid rgba(139,61,200,0.13); padding: 28px; text-align: center; }
    footer p { color: var(--gray-400); font-size: 0.83rem; }
    footer span { background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; font-weight: 600; }

    /* ── RESPONSIVE ── */
    @media (max-width: 768px) {
      nav { padding: 14px 20px; }
      .nav-links { display: none; }
      .burger { display: flex; }
      .about-grid { grid-template-columns: 1fr; gap: 40px; }
      .about-visual { display: none; }
      .svc-grid { grid-template-columns: 1fr; }
      .team-grid { flex-direction: column; }
      .team-card { flex: 1 1 auto; max-width: 100%; }
      .contact-grid { gap: 14px; }
    }
