/* inicio: estilos separados de la versión aprobada. */
.hero {
  min-height: 550px;
  display: grid;
  align-items: center;
  position: relative;
  padding: 80px 0 48px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  width: 620px;
  height: 330px;
  right: -90px;
  top: 50px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(96, 42, 255, .34), transparent 68%);
  filter: blur(18px);
}

.hero::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 90px;
  bottom: -34px;
  left: 0;
  border-radius: 50%;
  border-top: 2px solid #9c28ff;
  box-shadow: 0 -12px 38px #5b21ff, inset 0 20px 30px rgba(57, 38, 204, .3);
  transform: rotate(-3deg) scale(1.1);
  opacity: .9;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 650px;
}

.eyebrow {
  color: #be73ff;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 800;
  margin: 0 0 18px;
}

h1 {
  font-size: clamp(42px, 6vw, 76px);
  line-height: .98;
  letter-spacing: -3px;
  margin: 0 0 24px;
  max-width: 650px;
}

h1 .accent {
  color: #b161ff;
  text-shadow: 0 0 32px rgba(170, 67, 255, .32);
}

.hero p {
  max-width: 560px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
  margin: 0 0 30px;
}

.actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 720px) {
  .hero {
    min-height: 620px;
    padding-top: 52px;
  }

  h1 {
    font-size: 46px;
    letter-spacing: -2px;
  }

  .hero p {
    font-size: 16px;
  }
}

@media (max-width: 430px) {
  .actions .btn {
    width: 100%;
  }
}

.hero-content {
  animation: appear .9s ease both;
}

.hero {
  min-height: 650px;
  padding: 58px 0 72px;
}

.hero::before {
  right: 6%;
  top: 80px;
  width: 560px;
  height: 460px;
  opacity: .6;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  gap: 28px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  width: 100%;
  max-width: none;
  min-width: 0;
  margin: 0;
  text-align: left;
}

.hero h1 {
  font-size: clamp(46px, 4.8vw, 68px);
  line-height: 1.04;
  letter-spacing: -2.6px;
  margin: 0 0 24px;
  max-width: none;
}

.hero-line {
  display: block;
}

.hero .eyebrow {
  max-width: none;
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 1.8px;
  margin: 0 0 22px;
  color: #c396ee;
}

.hero-content>p:not(.eyebrow) {
  max-width: 535px;
  font-size: 17px;
  line-height: 1.65;
  margin: 0 0 28px;
}

.hero .actions {
  gap: 13px;
}

.hero .actions .btn {
  padding: 14px 20px;
  font-size: 14px;
}

.hero-world {
  position: relative;
  z-index: 0;
  inset: auto;
  width: 100%;
  height: auto;
  aspect-ratio: 1.08;
  min-width: 0;
  opacity: 1;
  pointer-events: none;
  isolation: isolate;
}

.hero-world::before {
  content: "";
  position: absolute;
  inset: 4%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(171, 39, 255, .3) 0%, rgba(131, 28, 249, .18) 37%, rgba(100, 18, 196, .09) 55%, transparent 70%);
  filter: blur(9px);
}

#heroWebgl,
#heroWebgl canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.world-labels {
  position: absolute;
  inset: 0;
  z-index: 3;
}

.world-label {
  position: absolute;
  padding: 7px 11px;
  border: 1px solid rgba(170, 100, 255, .44);
  border-radius: 7px;
  color: #e9d6ff;
  background: rgba(14, 8, 48, .76);
  box-shadow: 0 0 18px rgba(132, 38, 223, .15);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .4px;
  animation: worldFloat 5s ease-in-out infinite;
}

.world-label small {
  display: none;
}

.world-ai {
  left: 6%;
  top: 12%;
}

.world-api {
  right: 5%;
  top: 17%;
  animation-delay: 1s;
}

.world-cloud {
  right: 2%;
  bottom: 18%;
  animation-delay: 1.7s;
}

.world-data {
  left: 7%;
  bottom: 14%;
  animation-delay: 2.3s;
}

.world-spark {
  position: absolute;
  z-index: 3;
  color: #be7cf7;
  font-style: normal;
  font-size: 15px;
  text-shadow: 0 0 14px #a945ff;
  animation: worldSpark 3.5s ease-in-out infinite;
}

.ws1 {
  left: 44%;
  top: 7%;
}

.ws2 {
  right: 8%;
  top: 51%;
  animation-delay: .7s;
}

.ws3 {
  left: 38%;
  bottom: 7%;
  animation-delay: 1.4s;
  color: #68e9ff;
}

@keyframes worldFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

@keyframes worldSpark {

  0%,
  100% {
    opacity: .3;
    transform: scale(.8);
  }

  50% {
    opacity: .9;
    transform: scale(1.15);
  }
}

.world-fallback {
  display: none;
  position: absolute;
  width: 60%;
  aspect-ratio: 1;
  left: 20%;
  top: 19%;
  border: 2px solid #b276ff;
  border-radius: 50%;
  background: repeating-linear-gradient(0deg, transparent 0 22px, #9861ed40 23px 24px), repeating-linear-gradient(90deg, transparent 0 22px, #9861ed40 23px 24px), radial-gradient(circle at 35% 32%, #7333b1, #251258 60%, #110a3c);
  box-shadow: 0 0 35px #912fee, inset 0 0 32px #813cba;
}

.hero-world[data-world-state="fallback"] .world-fallback {
  display: block;
}

@media (max-width: 1100px) and (min-width: 781px) {
  .hero h1 {
    font-size: clamp(44px, 5.7vw, 60px);
  }

  .hero-layout {
    gap: 16px;
  }

  .hero .actions {
    gap: 10px;
  }

  .hero .actions .btn {
    padding: 13px 16px;
    font-size: 13px;
  }
}

@media (max-width: 780px) {
  .hero {
    min-height: 0;
    padding: 44px 0 42px;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .hero-content {
    max-width: 580px;
    margin: 0;
  }

  .hero h1 {
    font-size: clamp(40px, 8vw, 58px);
    letter-spacing: -1.8px;
  }

  .hero .eyebrow {
    font-size: 10px;
    margin-bottom: 18px;
    letter-spacing: 1.2px;
  }

  .hero-content>p:not(.eyebrow) {
    font-size: 16px;
    margin-bottom: 24px;
  }

  .hero-world {
    max-width: 500px;
    justify-self: center;
    margin-top: 4px;
  }

  .world-label {
    font-size: 10px;
    padding: 5px 8px;
  }
}

@media (prefers-reduced-motion: reduce) {

  .hero-content,
  .world-label,
  .world-spark {
    animation: none;
  }
}