:root { --purple: #7b2cbf; --violet: #8b5cf6; --bg: #07050b; }
    html { scroll-padding-top: 88px; }
    html, body { overflow-x: hidden; }
    @supports (overflow: clip) { html, body { overflow-x: clip; } }
    body { background: var(--bg); }

    /* Fondo espacial */
    #stars { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
    .nebula {
      position: absolute; border-radius: 9999px; filter: blur(90px); pointer-events: none; opacity: .55;
    }

    /* Glassmorphism */
    .glass {
      background: linear-gradient(160deg, rgba(139,92,246,.10), rgba(255,255,255,.02) 60%);
      border: 1px solid rgba(139,92,246,.22);
      backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    }
    @media (max-width: 639px) { .glass { backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); } }
    .glass-hover { transition: border-color .35s ease, box-shadow .35s ease, transform .35s ease; }
    .glass-hover:hover {
      border-color: rgba(167,139,250,.55);
      box-shadow: 0 0 0 1px rgba(139,92,246,.15), 0 18px 50px -20px rgba(123,44,191,.65);
      transform: translateY(-3px);
    }

    /* Botones */
    .btn-primary {
      background: linear-gradient(135deg, #7b2cbf, #6d28d9);
      box-shadow: 0 0 0 1px rgba(167,139,250,.35) inset, 0 8px 24px -8px rgba(123,44,191,.7);
      transition: box-shadow .3s ease, transform .3s ease, filter .3s ease;
    }
    .btn-primary:hover {
      filter: brightness(1.12);
      box-shadow: 0 0 0 1px rgba(196,181,253,.6) inset, 0 0 28px 2px rgba(139,92,246,.65), 0 10px 40px -6px rgba(123,44,191,.9);
      transform: translateY(-1px);
    }
    .btn-ghost { border: 1px solid rgba(203,213,225,.22); transition: border-color .3s, background .3s, box-shadow .3s; }
    .btn-ghost:hover { border-color: rgba(167,139,250,.7); background: rgba(139,92,246,.08); box-shadow: 0 0 22px -6px rgba(139,92,246,.7); }

    /* Hero: sistema orbital alrededor del logo */
    .orbit-wrap { position: relative; aspect-ratio: 1; width: 100%; max-width: 340px; }
    @media (min-width: 1024px) { .orbit-wrap { max-width: 520px; } }
    .orbit {
      position: absolute; inset: 0; margin: auto; border-radius: 50%;
      border: 1px solid rgba(139,92,246,.22);
    }
    .orbit.o1 { width: 62%; height: 62%; animation: spin 38s linear infinite; }
    .orbit.o2 { width: 82%; height: 82%; border-style: dashed; border-color: rgba(139,92,246,.16); animation: spin 64s linear infinite reverse; }
    .orbit.o3 { width: 100%; height: 100%; border-color: rgba(139,92,246,.10); animation: spin 90s linear infinite; }
    .orbit .moon {
      position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%;
      background: #c4b5fd; box-shadow: 0 0 14px 3px rgba(139,92,246,.9);
    }
    .orbit.o2 .moon { top: auto; bottom: -4px; width: 8px; height: 8px; background: #ffb800; box-shadow: 0 0 12px 2px rgba(255,184,0,.7); }
    .core-glow {
      position: absolute; inset: 0; margin: auto; width: 46%; height: 46%; border-radius: 50%;
      background: radial-gradient(circle, rgba(139,92,246,.55), rgba(123,44,191,.15) 55%, transparent 72%);
      filter: blur(20px); animation: breathe 6s ease-in-out infinite;
    }
    .mark { position: absolute; inset: 0; margin: auto; width: 50%; transition: transform .6s cubic-bezier(.2,.7,.2,1); filter: drop-shadow(0 20px 40px rgba(0,0,0,.6)); }
    @keyframes spin { to { transform: rotate(360deg); } }
    @keyframes breathe { 0%,100% { opacity: .75; transform: scale(1); } 50% { opacity: 1; transform: scale(1.08); } }

    /* Entrada del hero (único momento orquestado) */
    .rise { opacity: 0; transform: translateY(18px); animation: rise .9s cubic-bezier(.2,.7,.2,1) forwards; }
    .rise.d1 { animation-delay: .08s } .rise.d2 { animation-delay: .2s } .rise.d3 { animation-delay: .32s } .rise.d4 { animation-delay: .5s }
    @keyframes rise { to { opacity: 1; transform: none; } }

    /* Navbar al hacer scroll */
    #navbar.scrolled { background: rgba(7,5,11,.72); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-color: rgba(139,92,246,.18); }
    .nav-link { position: relative; }
    .nav-link::after {
      content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px;
      background: #8b5cf6; box-shadow: 0 0 10px #8b5cf6; transform: scaleX(0); transition: transform .3s ease;
    }
    .nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
    .nav-link.active { color: #fff; }

    /* Portafolio: arte abstracto de marcador de posición */
    .art { position: relative; overflow: hidden; }
    .art::before, .art::after { content: ""; position: absolute; border-radius: 50%; }
    .art-a { background: radial-gradient(120% 90% at 20% 10%, #6d28d9 0%, #2a0d45 45%, #0a0612 100%); }
    .art-a::before { height: 90%; aspect-ratio: 1; right: -8%; bottom: -30%; background: radial-gradient(circle, rgba(255,184,0,.55), transparent 65%); }
    .art-b { background: linear-gradient(135deg, #1a1029, #3b0f5c 55%, #7b2cbf); }
    .art-b::before { width: 120%; height: 120%; left: -60%; top: 20%; border: 1px solid rgba(196,181,253,.35); }
    .art-b::after { width: 80%; height: 80%; left: -40%; top: 40%; border: 1px solid rgba(196,181,253,.25); }
    .art-c { background: radial-gradient(80% 80% at 70% 30%, #8b5cf6 0%, #3b0f5c 50%, #07050b 100%); }
    .art-c::before { height: 26%; aspect-ratio: 1; left: 20%; top: 25%; background: #ffb800; box-shadow: 0 0 40px 10px rgba(255,184,0,.35); }
    .art-d { background: conic-gradient(from 210deg at 30% 70%, #07050b, #6d28d9, #1a1029, #7b2cbf, #07050b); }
    .art-d::before { width: 70%; height: 70%; right: -20%; top: -20%; background: radial-gradient(circle, rgba(7,5,11,.9), transparent 70%); }
    .art-e { background: linear-gradient(200deg, #0a0612, #2a0d45 40%, #6d28d9); }
    .art-e::before { height: 64%; aspect-ratio: 1; left: 50%; top: 18%; transform: translateX(-50%); background: radial-gradient(circle at 35% 35%, #a78bfa, #3b0f5c 70%); box-shadow: 0 0 60px rgba(139,92,246,.6); }
    .art-f { background: radial-gradient(90% 70% at 50% 110%, #7b2cbf, #1a1029 60%, #07050b); }
    .art-f::before { width: 140%; height: 60%; left: -20%; bottom: -30%; border-top: 1px solid rgba(255,184,0,.5); }
    .card-media { transition: transform .8s cubic-bezier(.2,.7,.2,1); }
    .work:hover .card-media { transform: scale(1.05); }
    .work.hide { display: none; }

    .filter-btn[aria-pressed="true"] { background: #7b2cbf; color: #fff; border-color: #a78bfa; box-shadow: 0 0 20px -4px rgba(139,92,246,.8); }

    /* Formularios */
    .field {
      width: 100%; background: rgba(7,5,11,.55); border: 1px solid rgba(139,92,246,.25); border-radius: 12px;
      padding: .85rem 1rem; color: #fff; transition: border-color .25s, box-shadow .25s;
    }
    .field::placeholder { color: #64748b; }
    .field:focus { outline: none; border-color: #8b5cf6; box-shadow: 0 0 0 3px rgba(139,92,246,.25); }
    select.field option { background: #0a0612; }

    :focus-visible { outline: 2px solid #a78bfa; outline-offset: 3px; border-radius: 6px; }


    .wa-float { border-radius: 9999px; }
    .wa-float::before {
      content: ""; position: absolute; inset: 0; border-radius: 9999px; border: 2px solid rgba(167,139,250,.7);
      animation: ping 2.4s cubic-bezier(0,0,.2,1) infinite;
    }
    @keyframes ping { 0% { transform: scale(1); opacity: .8; } 80%,100% { transform: scale(1.6); opacity: 0; } }

    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after { animation: none !important; transition: none !important; }
      .rise { opacity: 1; transform: none; }
      html { scroll-behavior: auto; }
    }
