/* Hero técnico: utiliza exclusivamente la paleta visual del sitio. */
#home.hero-code {
  min-height: 0;
  height: auto;
  padding: 30px;
  background: #2c2d40;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-family: "Poppins", sans-serif;
}

#home .hero-code__topbar {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

#home .hero-code__terminal,
#home .hero-profile__status {
  min-height: 50px;
  background: #2c283a;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 11px;
}

#home .hero-code__terminal {
  align-items: center;
  display: inline-flex;
  gap: 12px;
  padding: 10px 16px;
  color: #fff;
  font-family: monospace;
  font-size: 13px;
}

#home .hero-code__terminal > i {
  color: #fff;
  font-size: 16px;
}

#home .hero-code__terminal strong {
  color: #0d86ff;
  font-weight: 500;
}

#home .hero-profile__status {
  padding: 9px 14px;
}

#home .hero-profile__status > span:last-child {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

#home .hero-profile__status strong {
  color: #fff;
  font-size: 12px;
  font-weight: 500;
}

#home .hero-profile__status small {
  color: rgba(255, 255, 255, 0.7);
  font-family: monospace;
  font-size: 10px;
}

#home .hero-code__layout {
  align-items: stretch;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 28px;
  margin-top: 24px;
}

#home .hero-code__intro {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 8px 0 0;
}

#home .hero-code__intro h1 {
  color: #fff;
  font-size: clamp(46px, 5vw, 64px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

#home .hero-code__intro h1 .dot::after {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-left: 7px;
  background: #0d86ff;
  border-radius: 50%;
}

#home .hero-code__eyebrow {
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.58);
  font-family: monospace;
  font-size: 12px;
  line-height: 1.5;
  text-align: left;
}

#home .hero-profile__lead {
  margin: 22px 0 18px;
  color: rgba(255, 255, 255, 0.86);
  font-family: monospace;
  font-size: 13px;
  line-height: 1.65;
  text-align: left;
}

#home .hero-profile__lead > span {
  color: #0d86ff;
  font-weight: 700;
}

#home .hero-profile__tags {
  gap: 8px;
}

#home .hero-profile__tags span {
  min-height: 34px;
  padding: 6px 10px;
  background: #2c283a;
  border-color: rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  font-size: 10px;
}

#home .hero-profile__tags i {
  color: #fff;
  margin-right: 7px;
}

#home .hero-profile__actions {
  gap: 12px;
  margin-top: 22px;
}

#home .hero-profile__actions .btn {
  min-height: 46px;
  padding: 9px 18px;
  font-size: 12px;
}

#home .hero-code__window {
  min-width: 0;
  padding: 0 14px 14px;
  background: #232433;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  box-shadow: 0 14px 35px rgba(32, 29, 42, 0.35);
}

#home .hero-code__window-header {
  align-items: center;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  min-height: 52px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

#home .hero-code__window-header > strong {
  color: #fff;
  font-family: monospace;
  font-size: 11px;
  font-weight: 500;
}

#home .hero-code__window-header > small {
  justify-self: end;
  color: rgba(255, 255, 255, 0.58);
  font-family: monospace;
  font-size: 9px;
}

#home .hero-code__dots {
  display: flex;
  gap: 6px;
}

#home .hero-code__dots i {
  width: 9px;
  height: 9px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
}

#home .hero-code__dots i:last-child {
  background: #0d86ff;
}

#home .hero-code__lines {
  margin: 14px 0 0;
  padding-left: 34px;
  color: rgba(255, 255, 255, 0.5);
  font-family: monospace;
  font-size: 10px;
  line-height: 1.62;
}

#home .hero-code__lines li {
  padding-left: 7px;
}

#home .hero-code__lines code {
  color: rgba(255, 255, 255, 0.9);
  font-family: inherit;
  white-space: pre-wrap;
}

#home .hero-code__lines li.is-typing-line code::after {
  content: "";
  display: inline-block;
  width: 1px;
  height: 1.15em;
  margin-left: 2px;
  vertical-align: -0.16em;
  background: #0d86ff;
  animation: hero-code-cursor 0.7s step-end infinite;
}

@keyframes hero-code-cursor {
  0%, 45% { opacity: 1; }
  46%, 100% { opacity: 0; }
}

#home .hero-code__lines li:nth-child(3n + 2) code,
#home .hero-code__lines li:nth-child(3n + 3) code {
  color: #73b8ff;
}

#home .hero-code__lines .is-empty {
  min-height: 1.62em;
}

#home .hero-code__footer {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.55);
  font-family: monospace;
  font-size: 10px;
  text-align: left;
}

@media (max-width: 1200px) {
  #home .hero-code__layout {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 767px) {
  #home.hero-code {
    padding: 28px 24px;
  }

  #home .hero-code__topbar {
    align-items: stretch;
    flex-direction: column;
  }

  #home .hero-code__terminal,
  #home .hero-profile__status {
    width: 100%;
  }

  #home .hero-code__intro h1 {
    font-size: 44px;
  }

  #home .hero-code__layout {
    gap: 24px;
  }
}

@media (max-width: 515px) {
  #home.hero-code {
    padding: 24px 18px;
  }

  #home .hero-code__intro h1 {
    font-size: 38px;
  }

  #home .hero-code__window {
    padding-right: 10px;
    padding-left: 10px;
  }

  #home .hero-code__window-header {
    grid-template-columns: auto 1fr auto;
    gap: 10px;
  }

  #home .hero-code__lines {
    padding-left: 30px;
    font-size: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #home .hero-code__dots i {
    animation: none;
  }

  #home .hero-code__lines li.is-typing-line code::after {
    animation: none;
    display: none;
  }
}
