:root {
  --bg: #05070d;
  --text: #f4f7fb;
  --muted: #a3adbd;
  --line: rgba(255,255,255,.12);
  --blue: #42a5ff;
  --purple: #9b4dff;
  --pink: #d95cff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 40;
  width: 100%;
  height: 82px;
  padding: 0 6vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 7, 13, .72);
  backdrop-filter: blur(18px);
}

.brand {
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 700;
  font-size: 21px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(112, 139, 255, .8);
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #8ca2ff;
  box-shadow: 0 0 25px rgba(117, 87, 255, .25);
}

.main-nav {
  display: flex;
  gap: 42px;
}

.main-nav a,
.nav-cta {
  color: rgba(255,255,255,.82);
  text-decoration: none;
  font-size: 14px;
}

.nav-cta {
  position: relative;
  padding: 14px 26px;
  border: 1px solid rgba(132, 112, 255, .85);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(66,165,255,.12), rgba(155,77,255,.16));
  color: #fff;
  font-weight: 700;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.04) inset,
    0 0 28px rgba(116, 96, 255, .35);
}

.nav-cta::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(66,165,255,.55), rgba(155,77,255,.55));
  opacity: .25;
  filter: blur(12px);
  z-index: -1;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.06) inset,
    0 0 38px rgba(116, 96, 255, .55);
}

.hero {
  position: relative;
  min-height: 100svh;
  padding: 150px 6vw 70px;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: center;
  gap: 40px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 40%, rgba(82, 107, 255, .22), transparent 30%),
    radial-gradient(circle at 78% 55%, rgba(166, 66, 255, .18), transparent 26%),
    radial-gradient(circle at 20% 20%, rgba(66, 165, 255, .12), transparent 28%),
    #05070d;
  z-index: -2;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 60% 40%, black, transparent 75%);
}

.hero-content {
  position: relative;
  z-index: 2;
}

.eyebrow {
  color: rgba(255,255,255,.72);
  font-size: 12px;
  letter-spacing: .28em;
  font-weight: 700;
  margin-bottom: 26px;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(44px, 4vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.065em;
  font-weight: 600;
}

.hero h1 span {
  background: linear-gradient(90deg, var(--blue), var(--purple));
  -webkit-background-clip: text;
  color: transparent;
}

.hero h1 strong {
  font-weight: 500;
  background: linear-gradient(90deg, var(--purple), var(--pink));
  -webkit-background-clip: text;
  color: transparent;
}

.hero-text {
  max-width: 620px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.hero-text span {
  color: #8da7ff;
  font-weight: 600;
}

.hero-experience {
  max-width: 620px;
  margin: 14px 0 0;
  color: rgba(255,255,255,.76);
  font-size: 15px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  gap: 18px;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 54px;
  padding: 0 26px;
  border-radius: 12px;
  text-decoration: none;
  color: white;
  font-size: 15px;
  transition: .25s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #37a8ff, #8b35ff);
  box-shadow: 0 18px 50px rgba(87, 96, 255, .32);
}

.btn-secondary {
  background: rgba(255,255,255,.035);
  border: 1px solid var(--line);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn i {
  font-size: 14px;
  line-height: 1;
  transition: transform .25s ease;
}

.btn:hover i {
  transform: translateX(3px);
}

.btn-secondary i {
  color: #78b7ff;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 620px;
  margin-top: 26px;
}

.hero-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 13px;
  border: 1px solid rgba(141,167,255,.18);
  border-radius: 999px;
  background: rgba(141,167,255,.055);
  color: rgba(210,220,255,.72);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .045em;
  white-space: nowrap;
}

.hero-tags span:hover {
  color: white;
  border-color: rgba(111, 151, 255, .45);
  background: rgba(141,167,255,.1);
  box-shadow: 0 0 18px rgba(91, 123, 255, .16);
}

.hero-visual {
  position: relative;
  height: 640px;
  display: grid;
  place-items: center;
  overflow: visible;
}

.hero-canvas-wrap {
  position: relative;
  width: clamp(500px, 48vw, 700px);
  height: clamp(500px, 48vw, 700px);
  display: grid;
  place-items: center;
  overflow: visible;
}

#hero-three {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 2;
}

.hero-core-glow {
  position: absolute;
  z-index: 5;
  width: 112px;
  height: 112px;
  border-radius: 999px;
  background: #fff;
  box-shadow:
    0 0 35px rgba(255,255,255,.95),
    0 0 80px rgba(197,92,255,.95),
    0 0 150px rgba(66,165,255,.65);
  pointer-events: none;
  animation: corePulse 3s ease-in-out infinite;
}

@keyframes corePulse {
  0%, 100% {
    transform: scale(.9);
    opacity: .92;
  }
  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

/* .orb-platform retirado a pedido — el anillo de base ya no aporta con la
   red de nodos más extendida. Se deja comentado por si se quiere reactivar. */
/*
.orb-platform {
  position: absolute;
  bottom: 68px;
  width: 360px;
  height: 90px;
  border-radius: 50%;
  border: 1px solid rgba(114, 140, 255, .42);
  box-shadow:
    0 0 45px rgba(80, 110, 255, .36),
    inset 0 0 50px rgba(95, 110, 255, .22);
  z-index: 1;
}
*/

.hud {
  position: absolute;
  right: 2%;
  color: rgba(180, 196, 255, .48);
  font-size: 11px;
  line-height: 1.7;
  letter-spacing: .08em;
  z-index: 10;
}

.hud-top {
  top: 110px;
}

.hud-bottom {
  bottom: 170px;
}

.service-orbits {
  position: absolute;
  inset: 0;
  z-index: 20;
  pointer-events: none;
}

.service-orbit-icon {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(7, 11, 22, .86);
  border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(10px);
  color: var(--accent);
  font-size: 17px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.06) inset,
    0 0 30px rgba(120, 120, 255, .22);
  transform: translate(-50%, -50%);
  will-change: transform, opacity;
}

.service-orbit-icon::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: inherit;
  background: var(--accent);
  opacity: .24;
  filter: blur(14px);
  z-index: -1;
}

.service-orbit-icon i,
.service-orbit-icon .label-ia {
  position: relative;
  z-index: 2;
}

.label-ia {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  color: #fff;
}

.icon-ads {
  --accent: #42a5ff;
}

.icon-ia {
  --accent: #b85cff;
}

.icon-web {
  --accent: #4fffc1;
}

.icon-whatsapp {
  --accent: #39d98a;
}

.icon-phone {
  --accent: #77b7ff;
}

.icon-image {
  --accent: #ff8fb7;
}

.icon-video {
  --accent: #ffd166;
}

@media (max-width: 980px) {
  .main-nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 130px;
  }

  .hero-visual {
    height: 420px;
    order: 1; /* esfera debajo del texto en mobile */
  }

  .hero-canvas-wrap {
    width: 360px;
    height: 360px;
  }

  .hud {
    display: none;
  }
}

@media (max-width: 767px) {
  .hero-visual {
    display: none;
  }
}

@media (max-width: 620px) {
  .site-header {
    padding: 0 22px;
  }

  .nav-cta {
    display: none;
  }

  .hero {
    padding: 110px 24px 60px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    justify-content: center;
  }

  .hero-canvas-wrap {
    width: 300px;
    height: 300px;
  }

  .hero-tags {
    gap: 8px;
    margin-top: 24px;
  }

  .hero-tags span {
    min-height: 28px;
    padding: 0 11px;
    font-size: 10px;
  }

  .service-orbit-icon {
    width: 40px;
    height: 40px;
    font-size: 15px;
  }

  .label-ia {
    font-size: 12px;
  }
}
