:root { --neon: #ff0033; }
  html { scroll-behavior: smooth; }
  body { background: #000; overflow-x: hidden; }

  /* ====== Gradiente blanco → rojo en palabras clave ====== */
  .grad-key {
    background: linear-gradient(105deg, #ffffff 15%, #ff5b74 55%, var(--neon) 90%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }

  /* ====== Cursor caret del typewriter ====== */
  .caret {
    display: inline-block; width: 3px; height: 1em;
    background: var(--neon); margin-left: 4px; vertical-align: -0.12em;
    animation: blink 0.85s steps(1) infinite;
    box-shadow: 0 0 12px var(--neon);
  }
  @keyframes blink { 50% { opacity: 0; } }

  /* ====== Botón principal con pulso ====== */
  .btn-pulse {
    position: relative;
    background: linear-gradient(135deg, #ff0033, #b3001f);
    box-shadow: 0 0 24px rgba(255,0,51,.45), inset 0 1px 0 rgba(255,255,255,.25);
    transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s;
    will-change: transform;
  }
  .btn-pulse::after {
    content: ''; position: absolute; inset: 0; border-radius: inherit;
    box-shadow: 0 0 0 0 rgba(255,0,51,.55);
    animation: pulse 2.2s cubic-bezier(.4,0,.6,1) infinite;
    pointer-events: none;
  }
  @keyframes pulse { 70% { box-shadow: 0 0 0 16px rgba(255,0,51,0); } 100% { box-shadow: 0 0 0 0 rgba(255,0,51,0); } }
  .btn-pulse:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 0 42px rgba(255,0,51,.7), inset 0 1px 0 rgba(255,255,255,.3); }

  /* ====== Botón secundario ====== */
  .btn-ghost {
    border: 1px solid rgba(255,255,255,.55);
    transition: border-color .25s, color .25s, box-shadow .25s, transform .25s;
  }
  .btn-ghost:hover {
    border-color: var(--neon); color: var(--neon);
    box-shadow: 0 0 20px rgba(255,0,51,.35), inset 0 0 14px rgba(255,0,51,.08);
    transform: translateY(-2px);
  }

  /* ====== Tarjetas con borde iluminado (glow hover) ====== */
  .card {
    position: relative;
    background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.012));
    border: 1px solid rgba(255,255,255,.09);
    backdrop-filter: blur(6px);
    transition: transform .3s cubic-bezier(.2,.8,.2,1), border-color .3s, box-shadow .3s;
    will-change: transform;
    overflow: hidden;
  }
  .card::before {
    content: ''; position: absolute; inset: -1px; border-radius: inherit;
    background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), rgba(255,0,51,.28), transparent 65%);
    opacity: 0; transition: opacity .3s; pointer-events: none;
  }
  .card:hover { transform: translateY(-4px); border-color: rgba(255,0,51,.65); box-shadow: 0 0 30px rgba(255,0,51,.18), 0 12px 34px rgba(0,0,0,.6); }
  .card:hover::before { opacity: 1; }

  /* ====== Halo que sigue el mouse ====== */
  #mouseGlow {
    position: fixed; top: 0; left: 0; width: 560px; height: 560px;
    margin: -280px 0 0 -280px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255,0,51,.14) 0%, rgba(255,0,51,.05) 38%, transparent 68%);
    pointer-events: none; z-index: 5;
    will-change: transform; transform: translate3d(-9999px,-9999px,0);
  }

  /* ====== Dyto: flotación + anillo holográfico ====== */
  .dyto-float { animation: floaty 5.5s ease-in-out infinite; will-change: transform; }
  @keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

  .halo-ring {
    position: absolute; border-radius: 50%;
    border: 1px solid rgba(255,0,51,.35);
    animation: ringspin 14s linear infinite;
    will-change: transform;
  }
  .halo-ring.r2 { animation-duration: 22s; animation-direction: reverse; border-style: dashed; border-color: rgba(255,0,51,.22); }
  @keyframes ringspin { to { transform: rotate(360deg); } }

  .pedestal {
    background: radial-gradient(ellipse at center, rgba(255,0,51,.5) 0%, rgba(255,0,51,.12) 45%, transparent 72%);
    filter: blur(2px);
    animation: pedestalGlow 3.4s ease-in-out infinite;
  }
  @keyframes pedestalGlow { 0%,100% { opacity: .75; transform: scaleX(1); } 50% { opacity: 1; transform: scaleX(1.06); } }

  .scanline {
    position: absolute; left: 8%; right: 8%; height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255,0,51,.9), transparent);
    box-shadow: 0 0 16px rgba(255,0,51,.8);
    animation: scan 4.6s ease-in-out infinite; opacity: .8;
    will-change: transform;
  }
  @keyframes scan { 0%,100% { transform: translateY(0); } 50% { transform: translateY(430px); } }

  /* ====== HUD chips ====== */
  .hud {
    border: 1px solid rgba(255,0,51,.4);
    background: rgba(5,5,5,.72);
    backdrop-filter: blur(8px);
    box-shadow: 0 0 18px rgba(255,0,51,.12);
    animation: hudflicker 6s ease-in-out infinite;
  }
  @keyframes hudflicker { 0%,100% { opacity: 1; } 92% { opacity: 1; } 94% { opacity: .55; } 96% { opacity: 1; } }

  /* ====== Reveal on load ====== */
  .reveal { opacity: 0; transform: translateY(22px); animation: rise .8s cubic-bezier(.2,.8,.2,1) forwards; }
  @keyframes rise { to { opacity: 1; transform: translateY(0); } }
  .d1{animation-delay:.1s}.d2{animation-delay:.25s}.d3{animation-delay:.4s}.d4{animation-delay:.55s}.d5{animation-delay:.7s}.d6{animation-delay:.85s}

  /* ====== Badge parpadeante ====== */
  .live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--neon); box-shadow: 0 0 10px var(--neon); animation: blink 1.6s ease-in-out infinite; }

  /* ====== Accesibilidad: reducir movimiento ====== */
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    #mouseGlow { display: none; }
  }

  /* ====== Brazo robótico de fondo — pantalla completa, espejado ====== */
  #bg-arm {
    position: fixed; inset: 0; z-index: 1; pointer-events: none;
    display: flex; align-items: center; justify-content: center;
    opacity: .40;
    transform: translate3d(var(--px, 0), var(--py, 0), 0);
    transition: transform .6s cubic-bezier(.2,.8,.2,1);
  }
  #bg-arm img {
    width: 100vw; height: 100vh; object-fit: cover; object-position: center;
    transform: scaleX(-1);                    /* espejada: apunta al lado contrario */
    filter: drop-shadow(0 0 40px rgba(255,0,51,.22)) brightness(.8);
    animation: armDrift 10s ease-in-out infinite;
  }
  @keyframes armDrift {
    0%, 100% { transform: scaleX(-1) translateY(0) rotate(0deg); }
    50%      { transform: scaleX(-1) translateY(-24px) rotate(1.2deg); }
  }
  @media (max-width: 768px) {
    #bg-arm { opacity: .25; }
  }
  @media (prefers-reduced-motion: reduce) {
    #bg-arm img { animation: none; }
    #bg-arm { transition: none; }
  }

  /* ====== Adaptación móvil ====== */
  @media (max-width: 640px) {
    /* HUD chips: más pequeños y dentro del viewport */
    .hud { font-size: 10px; padding: 6px 10px; }
    /* Scanline y flotación más sutiles (menos trabajo de GPU) */
    .dyto-float { animation-duration: 7s; }
    /* Botones: área táctil mínima de 44px */
    .btn-ghost, .btn-pulse { min-height: 44px; }
    /* El glow que sigue al mouse no existe en táctil */
    #mouseGlow { display: none; }
  }
  /* Evitar zoom automático de iOS al enfocar inputs (<16px lo dispara) */
  @media (max-width: 640px) {
    #nl-email { font-size: 16px; }
  }
