/* =====================================================
   INDEX.CSS — solo se carga en index.html
   Requiere main.css cargado antes (variables, .btn,
   .sec-head, keyframes ping / floaty / fadeUp / spin).
   ===================================================== */

/* ================= BARRA ANUNCIO ================= */
.announ {
  position: relative;
  z-index: 1100;
  background: linear-gradient(90deg, rgba(108, 92, 231, .25), rgba(139, 124, 247, .12), rgba(108, 92, 231, .25));
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  text-align: center;
  padding: 9px 44px;
  color: var(--lav)
}

.announ b {
  color: #fff
}

.announ a {
  color: var(--acc);
  font-weight: 600;
  border-bottom: 1px dashed var(--acc)
}

.announ-x {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 0;
  color: var(--mut);
  cursor: pointer;
  font-size: 16px;
  padding: 4px 8px;
  border-radius: 8px
}

.announ-x:hover {
  color: #fff;
  background: var(--panel3)
}

/* ================= RAIL LATERAL ================= */
.rail {
  position: fixed;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 16px
}

.rail button {
  position: relative;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--line2);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: .3s
}

.rail button:hover {
  border-color: var(--acc)
}

.rail button.on {
  background: var(--acc);
  border-color: var(--acc);
  box-shadow: 0 0 12px rgba(139, 124, 247, .8)
}

.rail button i {
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-style: normal;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--sub);
  background: var(--panel2);
  border: 1px solid var(--line);
  padding: 4px 10px;
  border-radius: 7px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: .25s
}

.rail button:hover i {
  opacity: 1;
  right: 18px
}

@media (max-width: 1180px) {
  .rail {
    display: none
  }
}

/* ================= HERO ================= */
.hero {
  position: relative;
  padding: 150px 0 90px;
  overflow: hidden
}

#dots {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  pointer-events: none;
  animation: blobFloat 12s ease-in-out infinite alternate
}

.blob-1 {
  width: 560px;
  height: 560px;
  background: rgba(108, 92, 231, .22);
  top: -220px;
  left: 50%;
  transform: translateX(-50%)
}

.blob-2 {
  width: 420px;
  height: 420px;
  background: rgba(139, 124, 247, .10);
  bottom: -200px;
  right: -120px;
  animation-delay: 2s
}

@keyframes blobFloat {
  to {
    transform: translateX(-46%) translateY(30px)
  }
}

.hero-inner {
  position: relative;
  text-align: center
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border: 1px solid var(--line2);
  background: rgba(139, 124, 247, .08);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--lav)
}

.eyebrow .pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--acc);
  box-shadow: 0 0 0 0 rgba(139, 124, 247, .5);
  animation: ping 1.8s infinite
}

.hero h1 {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: clamp(2.7rem, 5.6vw, 4.4rem);
  line-height: 1.07;
  letter-spacing: -.03em;
  margin: 26px auto 22px;
  max-width: 820px
}

.hero .lead {
  font-size: 18px;
  line-height: 1.75;
  color: var(--sub);
  max-width: 620px;
  margin: 0 auto
}

.hero .lead b {
  color: var(--ink);
  font-weight: 600
}

.hero-ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: 34px;
  flex-wrap: wrap
}

.hero-meta {
  display: flex;
  gap: 22px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 26px;
  font-size: 13.5px;
  color: var(--mut)
}

.hero-meta span {
  display: flex;
  align-items: center;
  gap: 7px
}

.hero-meta i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--acc);
  font-style: normal
}

/* ================= WORKBENCH (consola) ================= */
.wb-wrap {
  position: relative;
  max-width: 1000px;
  margin: 70px auto 0
}

.wb-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--panel2);
  border: 1px solid var(--line2);
  border-radius: 13px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--sub);
  box-shadow: var(--shadow);
  animation: floaty 5.5s ease-in-out infinite;
  z-index: 3
}

.wb-chip b {
  color: var(--acc)
}

.wb-chip .ci {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(139, 124, 247, .15);
  display: grid;
  place-items: center;
  color: var(--acc)
}

.wb-chip-1 {
  top: -24px;
  left: -14px
}

.wb-chip-2 {
  bottom: -18px;
  right: -10px;
  animation-delay: 1.6s
}

.console {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line2);
  border-radius: 20px;
  box-shadow: var(--shadow), 0 0 0 1px rgba(139, 124, 247, .06), 0 0 90px -30px rgba(108, 92, 231, .4);
  overflow: hidden;
  z-index: 2
}

.con-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 18px;
  background: var(--panel2);
  border-bottom: 1px solid var(--line)
}

.con-title {
  font-family: var(--f-mono);
  font-size: 11.5px;
  color: var(--mut);
  margin-left: 10px
}

.con-live {
  margin-left: auto;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .09em;
  color: var(--acc);
  border: 1px solid rgba(139, 124, 247, .4);
  background: rgba(139, 124, 247, .08);
  padding: 4px 11px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 6px
}

.con-live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--acc);
  animation: ping 1.6s infinite
}

.wb-body {
  display: grid;
  grid-template-columns: 236px 1fr;
  min-height: 440px
}

.wb-side {
  border-right: 1px solid var(--line);
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: rgba(14, 12, 28, .4)
}

.wb-side-t {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mut);
  padding: 6px 12px 10px
}

.wb-tab {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  border-radius: 12px;
  cursor: pointer;
  border: 1px solid transparent;
  background: none;
  color: var(--sub);
  text-align: left;
  font-family: var(--f-body);
  transition: .25s;
  overflow: hidden
}

.wb-tab:hover {
  background: var(--panel2);
  color: var(--ink)
}

.wb-tab .ti {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--panel3);
  display: grid;
  place-items: center;
  color: var(--sub);
  transition: .25s;
  flex: none
}

.wb-tab b {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: inherit
}

.wb-tab small {
  display: block;
  font-size: 11px;
  color: var(--mut);
  margin-top: 2px
}

.wb-tab.active {
  background: rgba(139, 124, 247, .1);
  border-color: rgba(139, 124, 247, .3)
}

.wb-tab.active .ti {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 18px -8px rgba(108, 92, 231, .8)
}

.wb-tab.active b {
  color: #fff
}

.wb-prog {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  background: var(--grad);
  transform-origin: left;
  animation: wbProg 6s linear infinite;
  display: none
}

.wb-tab.active .wb-prog {
  display: block
}

.console:hover .wb-prog,
.console.off .wb-prog {
  animation-play-state: paused
}

@keyframes wbProg {
  from {
    transform: scaleX(0)
  }

  to {
    transform: scaleX(1)
  }
}

.wb-stage {
  position: relative;
  overflow: hidden
}

.wb-view {
  display: none
}

.wb-view.active {
  display: block;
  position: absolute;
  inset: 0;
  padding: 20px;
  animation: viewIn .5s cubic-bezier(.2, .8, .3, 1)
}

@keyframes viewIn {
  from {
    opacity: 0;
    transform: translateX(16px)
  }

  to {
    opacity: 1;
    transform: none
  }
}

.vh {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mut);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px
}

.vh::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line)
}

/* --- Vista Constructor --- */
.cv {
  display: grid;
  grid-template-columns: 52px 1fr 168px;
  gap: 14px;
  height: calc(100% - 34px)
}

.cv-tools {
  background: var(--panel2);
  border: 1px solid var(--line);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 0
}

.cv-tools span {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: var(--mut);
  cursor: pointer;
  transition: .25s
}

.cv-tools span:hover,
.cv-tools span.sel {
  background: var(--grad);
  color: #fff
}

.cv-canvas {
  position: relative;
  background: var(--bg2) radial-gradient(rgba(139, 124, 247, .12) 1px, transparent 1px);
  background-size: 16px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden
}

.cv-block {
  border: 1px solid var(--line2);
  background: var(--panel2);
  border-radius: 10px;
  animation: fadeUp .5s both
}

.cv-block.b-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  animation-delay: .05s
}

.cv-nav-logo {
  width: 14px;
  height: 14px;
  border-radius: 5px;
  background: var(--grad)
}

.cv-nav-lk {
  width: 26px;
  height: 4px;
  border-radius: 3px;
  background: var(--line2)
}

.cv-nav-pill {
  margin-left: auto;
  width: 44px;
  height: 13px;
  border-radius: 99px;
  background: var(--grad)
}

.cv-block.b-hero {
  padding: 14px;
  animation-delay: .15s
}

.cv-l {
  height: 8px;
  border-radius: 4px;
  background: var(--panel3)
}

.cv-l.big {
  width: 65%;
  height: 12px;
  background: linear-gradient(90deg, var(--acc), var(--deep))
}

.cv-l.mid {
  width: 85%;
  margin-top: 8px
}

.cv-l.sm {
  width: 45%;
  margin-top: 8px
}

.cv-btn {
  display: inline-block;
  margin-top: 12px;
  background: var(--grad);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 99px;
  animation: btnPulse 2.4s 1s infinite
}

@keyframes btnPulse {
  50% {
    box-shadow: 0 0 0 6px rgba(139, 124, 247, .15)
  }
}

.cv-drop {
  flex: 1;
  min-height: 56px;
  border: 1.5px dashed rgba(139, 124, 247, .45);
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--acc);
  animation: dropFlash 4.2s infinite
}

@keyframes dropFlash {

  0%,
  55%,
  100% {
    border-color: rgba(139, 124, 247, .25)
  }

  62%,
  80% {
    border-color: var(--acc);
    background: rgba(139, 124, 247, .07)
  }
}

.cv-ghost {
  position: absolute;
  left: 16px;
  top: 14px;
  width: 74px;
  height: 52px;
  border-radius: 10px;
  background: var(--panel3);
  border: 1px solid var(--acc);
  display: grid;
  place-items: center;
  color: var(--acc);
  box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .6);
  animation: ghostMove 4.2s cubic-bezier(.3, .8, .3, 1) infinite
}

@keyframes ghostMove {
  0% {
    transform: translate(0, 0);
    opacity: 0
  }

  12% {
    opacity: 1
  }

  45% {
    transform: translate(120px, 84px)
  }

  52% {
    transform: translate(120px, 84px) scale(.94)
  }

  72% {
    transform: translate(120px, 84px);
    opacity: 1
  }

  88%,
  100% {
    transform: translate(120px, 84px);
    opacity: 0
  }
}

.cv-layers {
  background: var(--panel2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px
}

.cv-layers-t {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mut)
}

.layer {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--sub);
  padding: 8px 6px;
  border-bottom: 1px solid var(--line)
}

.layer:last-child {
  border: 0
}

.layer .eye {
  margin-left: auto;
  color: var(--mut)
}

.layer.sel {
  color: var(--acc)
}

/* --- Vista Convertidor --- */
.conv {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 14px;
  height: calc(100% - 34px)
}

.conv-drop {
  border: 1.5px dashed rgba(139, 124, 247, .4);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--mut);
  font-size: 12.5px;
  text-align: center;
  padding: 18px
}

.conv-drop .up {
  width: 52px;
  height: 52px;
  border-radius: 15px;
  background: rgba(139, 124, 247, .12);
  border: 1px solid rgba(139, 124, 247, .35);
  display: grid;
  place-items: center;
  color: var(--acc);
  animation: floaty 3s ease-in-out infinite
}

.conv-drop .up svg {
  width: 24px;
  height: 24px
}

.conv-drop b {
  color: var(--sub)
}

.conv-files {
  display: flex;
  flex-direction: column;
  gap: 10px
}

.f-row {
  background: var(--panel2);
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 12px 14px;
  animation: fadeUp .5s both
}

.f-top {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--f-mono);
  font-size: 11.5px;
  color: var(--sub)
}

.f-dot {
  width: 8px;
  height: 8px;
  border-radius: 3px;
  background: var(--grad)
}

.f-fmt {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px
}

.f-fmt s {
  text-decoration: none;
  color: var(--mut)
}

.f-fmt i {
  font-style: normal;
  color: var(--acc);
  font-weight: 700
}

.f-ok {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: rgba(62, 207, 142, .15);
  color: var(--ok);
  display: grid;
  place-items: center;
  font-size: 9px;
  opacity: 0;
  animation: okPop 6s infinite
}

@keyframes okPop {

  0%,
  18% {
    opacity: 0;
    transform: scale(.4)
  }

  24%,
  100% {
    opacity: 1;
    transform: scale(1)
  }
}

.f-bar {
  height: 6px;
  border-radius: 4px;
  background: var(--panel);
  margin-top: 10px;
  overflow: hidden
}

.f-bar i {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: var(--grad);
  box-shadow: 0 0 12px rgba(139, 124, 247, .7);
  animation: convFill 6s infinite
}

@keyframes convFill {
  0% {
    width: 0
  }

  20% {
    width: 100%
  }

  100% {
    width: 100%
  }
}

.f-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--mut);
  margin-top: 7px
}

.f-save {
  color: var(--ok);
  opacity: 0;
  animation: okPop 6s infinite
}

/* --- Vista Visor --- */
.visor {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  height: calc(100% - 34px)
}

.dev {
  width: 330px;
  max-width: 90%;
  flex: 1;
  background: var(--panel2);
  border: 1px solid var(--line2);
  border-radius: 14px;
  overflow: hidden;
  animation: devW 7s ease-in-out infinite;
  display: flex;
  flex-direction: column
}

@keyframes devW {

  0%,
  26% {
    width: 330px
  }

  34%,
  58% {
    width: 246px
  }

  66%,
  92% {
    width: 166px
  }

  100% {
    width: 330px
  }
}

.dev-bar {
  display: flex;
  gap: 5px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line)
}

.dev-bar i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--line2)
}

.dev-bar i:first-child {
  background: var(--acc)
}

.site {
  flex: 1;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px
}

.site-nav .lk {
  width: 20px;
  height: 4px;
  border-radius: 3px;
  background: var(--line2)
}

.site-grid {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 0
}

.site-card {
  background: var(--panel3);
  border: 1px solid var(--line);
  border-radius: 9px;
  min-width: 118px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 9px
}

.site-card .im {
  flex: 1;
  min-height: 26px;
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(139, 124, 247, .5), rgba(86, 70, 200, .5))
}

.site-card .ln {
  height: 5px;
  border-radius: 3px;
  background: var(--line2)
}

.site-card .ln.s {
  width: 60%
}

.dev-labels {
  display: flex;
  gap: 22px;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--mut)
}

.dev-labels span {
  transition: .3s;
  animation: lblA 7s infinite
}

.dev-labels span:nth-child(2) {
  animation-name: lblB
}

.dev-labels span:nth-child(3) {
  animation-name: lblC
}

@keyframes lblA {

  0%,
  26% {
    color: var(--acc)
  }

  34%,
  58% {
    color: var(--mut)
  }

  66%,
  92% {
    color: var(--mut)
  }

  100% {
    color: var(--acc)
  }
}

@keyframes lblB {

  0%,
  26% {
    color: var(--mut)
  }

  34%,
  58% {
    color: var(--acc)
  }

  66%,
  92% {
    color: var(--mut)
  }

  100% {
    color: var(--mut)
  }
}

@keyframes lblC {

  0%,
  26% {
    color: var(--mut)
  }

  34%,
  58% {
    color: var(--mut)
  }

  66%,
  92% {
    color: var(--acc)
  }

  100% {
    color: var(--mut)
  }
}

/* --- Vista IDE --- */
.ide {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 12px;
  height: calc(100% - 34px)
}

.ide-tree {
  background: var(--panel2);
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 12px;
  font-family: var(--f-mono);
  font-size: 11.5px;
  color: var(--mut)
}

.ide-tree div {
  padding: 6px 8px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  gap: 7px
}

.ide-tree .on {
  background: rgba(139, 124, 247, .12);
  color: var(--acc)
}

.ide-main {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0
}

.ide-code {
  flex: 1.3;
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 13px 14px;
  font-family: var(--f-mono);
  font-size: 11.5px;
  line-height: 1.9;
  overflow: hidden
}

.cl {
  display: flex;
  white-space: pre
}

.cl .ln {
  width: 20px;
  color: #3D3A63;
  text-align: right;
  padding-right: 12px;
  flex: none;
  user-select: none
}

.tok-t {
  color: #9F92FF
}

.tok-a {
  color: #B9AFF7
}

.tok-s {
  color: #7FD8C0
}

.tok-x {
  color: #EDEBFB
}

.tok-p {
  color: #63608A
}

.ide-term {
  flex: 1;
  background: #0B0918;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 11px 14px;
  font-family: var(--f-mono);
  font-size: 11px;
  line-height: 1.9;
  overflow: hidden
}

.tl {
  opacity: 0;
  animation: tlCycle 7s infinite
}

@keyframes tlCycle {
  0% {
    opacity: 0
  }

  4%,
  90% {
    opacity: 1
  }

  96%,
  100% {
    opacity: 0
  }
}

.tl.cmd {
  color: var(--lav)
}

.tl.cmd b {
  color: var(--acc)
}

.tl.ok {
  color: var(--ok)
}

.tl.out {
  color: var(--sub)
}

.tcursor {
  display: inline-block;
  width: 7px;
  height: 12px;
  background: var(--acc);
  vertical-align: -2px;
  animation: blink .9s step-end infinite
}

@keyframes blink {
  50% {
    opacity: 0
  }
}

/* --- Vista JSON --- */
.jsonv {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 12px;
  height: calc(100% - 34px);
  position: relative
}

.jt {
  background: var(--panel2);
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 14px;
  font-family: var(--f-mono);
  font-size: 11.5px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden
}

.jt-r {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
  border-radius: 7px;
  color: var(--sub);
  animation: fadeUp .45s both
}

.jt-r .k {
  color: var(--acc)
}

.jt-r .v {
  color: #7FD8C0
}

.jt-r .b {
  color: var(--mut)
}

.jt-r .tw {
  color: var(--mut);
  margin-right: -2px
}

.jt-r.sel {
  background: rgba(139, 124, 247, .12)
}

.jt-badge {
  margin-top: auto;
  align-self: flex-start;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ok);
  background: rgba(62, 207, 142, .1);
  border: 1px solid rgba(62, 207, 142, .35);
  border-radius: 99px;
  padding: 5px 12px;
  animation: fadeUp .5s .8s both
}

.jt-badge i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok);
  animation: ping 1.6s infinite
}

.jp {
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 14px;
  font-family: var(--f-mono);
  font-size: 11.5px;
  line-height: 2;
  overflow: hidden;
  animation: fadeUp .5s .2s both
}

.j-add {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 40px;
  height: 40px;
  border-radius: 13px;
  border: 0;
  background: var(--grad);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 12px 26px -8px rgba(108, 92, 231, .8);
  animation: btnPulse 2.2s infinite
}

/* ================= MARQUEE ================= */
.marquee {
  border-block: 1px solid var(--line);
  padding: 18px 0;
  overflow: hidden;
  background: var(--bg2)
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: scrollX 32s linear infinite
}

.marquee:hover .marquee-track {
  animation-play-state: paused
}

.mq-group {
  display: flex;
  gap: 14px;
  padding-right: 14px
}

.mq-item {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--f-head);
  font-weight: 600;
  font-size: 14.5px;
  color: var(--sub);
  border: 1px solid var(--line2);
  border-radius: 999px;
  padding: 9px 20px;
  white-space: nowrap;
  background: var(--panel)
}

.mq-item i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--grad)
}

@keyframes scrollX {
  to {
    transform: translateX(-50%)
  }
}

/* ================= LISTA DE HERRAMIENTAS ================= */
.tools-list {
  border-top: 1px solid var(--line)
}

.tool-row {
  position: relative;
  display: grid;
  grid-template-columns: 70px 58px 1fr auto 44px;
  align-items: center;
  gap: 24px;
  padding: 26px 18px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: .3s;
  border-radius: 0
}

.tool-row::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--grad);
  transform: scaleY(0);
  transition: transform .35s;
  transform-origin: center
}

.tool-row:hover {
  background: linear-gradient(90deg, rgba(139, 124, 247, .07), transparent 65%)
}

.tool-row:hover::before {
  transform: scaleY(1)
}

.tr-num {
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--mut);
  transition: .3s
}

.tool-row:hover .tr-num {
  color: var(--acc)
}

.tr-ic {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--panel2);
  border: 1px solid var(--line2);
  display: grid;
  place-items: center;
  color: var(--sub);
  transition: .35s
}

.tr-ic svg {
  width: 24px;
  height: 24px
}

.tool-row:hover .tr-ic {
  background: var(--grad);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 12px 26px -10px rgba(108, 92, 231, .7);
  transform: rotate(-6deg) scale(1.05)
}

.tr-name {
  font-family: var(--f-head);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -.01em;
  display: flex;
  align-items: center;
  gap: 11px
}

.tr-badge {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 99px
}

.tr-badge.new {
  background: var(--grad);
  color: #fff
}

.tr-badge.star {
  background: rgba(139, 124, 247, .15);
  color: var(--acc);
  border: 1px solid rgba(139, 124, 247, .35)
}

.tr-desc {
  font-size: 14.5px;
  color: var(--sub);
  line-height: 1.65;
  margin-top: 6px;
  max-width: 560px
}

.tr-more {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height .4s, opacity .4s, margin .4s;
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--acc)
}

.tool-row:hover .tr-more {
  max-height: 40px;
  opacity: 1;
  margin-top: 10px
}

.tr-tags {
  display: flex;
  flex-direction: column;
  gap: 7px;
  align-items: flex-end
}

.tr-tags span {
  font-size: 11px;
  font-weight: 600;
  color: var(--mut);
  border: 1px solid var(--line2);
  padding: 4px 11px;
  border-radius: 99px;
  transition: .3s
}

.tool-row:hover .tr-tags span {
  color: var(--acc);
  border-color: rgba(139, 124, 247, .4)
}

.tr-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line2);
  display: grid;
  place-items: center;
  color: var(--mut);
  transition: .35s
}

.tr-arrow svg {
  width: 17px;
  height: 17px;
  transition: transform .35s
}

.tool-row:hover .tr-arrow {
  background: var(--grad);
  border-color: transparent;
  color: #fff
}

.tool-row:hover .tr-arrow svg {
  transform: translateX(3px)
}

/* ================= ECOSISTEMA (grafo) ================= */
.graph {
  position: relative;
  height: 440px;
  max-width: 960px;
  margin: 0 auto
}

.g-node {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 2
}

.g-node-in {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: .3s;
  cursor: default
}

.g-node:hover .g-node-in {
  transform: translateY(-4px)
}

.g-chip {
  width: 56px;
  height: 56px;
  border-radius: 17px;
  background: var(--panel2);
  border: 1px solid var(--line2);
  display: grid;
  place-items: center;
  color: var(--sub);
  box-shadow: var(--shadow);
  transition: .3s;
  animation: floaty 5s ease-in-out infinite
}

.g-node:hover .g-chip {
  background: var(--grad);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 16px 34px -12px rgba(108, 92, 231, .8)
}

.g-chip svg {
  width: 24px;
  height: 24px
}

.g-lbl {
  font-family: var(--f-head);
  font-size: 13px;
  font-weight: 600;
  color: var(--sub);
  display: flex;
  align-items: center;
  gap: 6px
}

.g-lbl i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ok);
  font-style: normal;
  box-shadow: 0 0 8px var(--ok)
}

.g-core {
  transform: translate(-50%, -50%);
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  text-align: center
}

.g-core-chip {
  position: relative;
  width: 88px;
  height: 88px;
  border-radius: 26px;
  background: var(--grad);
  display: grid;
  place-items: center;
  margin: 0 auto;
  box-shadow: 0 20px 50px -14px rgba(108, 92, 231, .9)
}

.g-core-chip svg {
  width: 44px;
  height: 44px
}

.g-core-chip::before,
.g-core-chip::after {
  content: '';
  position: absolute;
  inset: -14px;
  border-radius: 34px;
  border: 1.5px dashed rgba(139, 124, 247, .4);
  animation: spin 14s linear infinite
}

.g-core-chip::after {
  inset: -28px;
  border-radius: 44px;
  border-color: rgba(139, 124, 247, .18);
  animation-duration: 26s;
  animation-direction: reverse
}

.g-core-lbl {
  margin-top: 16px;
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 16px
}

.g-core-sub {
  font-family: var(--f-mono);
  font-size: 10.5px;
  color: var(--mut);
  margin-top: 4px;
  letter-spacing: .08em
}

.g-link {
  position: absolute;
  height: 2px;
  transform-origin: 0 50%;
  background: repeating-linear-gradient(90deg, var(--line2) 0 7px, transparent 7px 14px);
  animation: gFlow 1.1s linear infinite;
  z-index: 1
}

@keyframes gFlow {
  to {
    background-position-x: -14px
  }
}

.g-link span {
  position: absolute;
  top: -2px;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #A99DFF;
  box-shadow: 0 0 12px var(--acc);
  animation: gPulse 2.8s linear infinite
}

@keyframes gPulse {
  to {
    left: calc(100% - 6px)
  }
}

.g-note {
  display: flex;
  justify-content: center;
  gap: 9px;
  align-items: center;
  margin-top: 10px;
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--mut)
}

.g-note i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 10px var(--ok);
  font-style: normal
}

.graph.is-mobile {
  height: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 16px
}

.graph.is-mobile .g-node {
  position: static;
  transform: none
}

.graph.is-mobile .g-link,
.graph.is-mobile .g-core-chip::before,
.graph.is-mobile .g-core-chip::after {
  display: none
}

.graph.is-mobile .g-core {
  position: static;
  transform: none;
  grid-column: 1/-1
}

/* ================= LIBRERÍA: CARRUSEL ================= */
.lib-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 40px
}

.lib-nav {
  display: flex;
  align-items: center;
  gap: 14px
}

.lib-count {
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--mut)
}

.lib-count b {
  color: var(--ink)
}

.lib-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line2);
  background: var(--panel);
  color: var(--sub);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: .3s
}

.lib-btn:hover {
  border-color: var(--acc);
  color: #fff;
  transform: translateY(-2px)
}

.lib-btn svg {
  width: 18px;
  height: 18px
}

.car-track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 6px 2px 18px;
  cursor: grab;
  user-select: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 36px, #000 calc(100% - 36px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 36px, #000 calc(100% - 36px), transparent)
}

.car-track::-webkit-scrollbar {
  display: none
}

.car-track.dragging {
  cursor: grabbing;
  scroll-behavior: auto
}

.demo-card {
  flex: 0 0 305px;
  background: var(--panel);
  border: 1px solid var(--line2);
  border-radius: 18px;
  overflow: hidden;
  transition: .3s;
  scroll-snap-align: start
}

.demo-card:hover {
  border-color: rgba(139, 124, 247, .5);
  transform: translateY(-5px);
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .7), 0 0 40px -20px rgba(108, 92, 231, .5)
}

.demo-stage {
  height: 178px;
  position: relative;
  display: grid;
  place-items: center;
  background: var(--bg2) radial-gradient(rgba(139, 124, 247, .12) 1px, transparent 1px);
  background-size: 15px 15px;
  overflow: hidden
}

.demo-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  border-top: 1px solid var(--line)
}

.demo-name {
  font-family: var(--f-head);
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 9px
}

.demo-name i {
  width: 7px;
  height: 7px;
  border-radius: 2.5px;
  background: var(--grad)
}

.demo-tag {
  font-family: var(--f-mono);
  font-size: 9.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--mut);
  border: 1px solid var(--line2);
  border-radius: 6px;
  padding: 3px 8px
}

.copy-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--sub);
  background: none;
  border: 1px solid var(--line2);
  border-radius: 8px;
  padding: 6px 11px;
  cursor: pointer;
  transition: .25s
}

.copy-btn:hover {
  color: #fff;
  background: var(--acc2);
  border-color: var(--acc2)
}

.copy-btn svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round
}

.lib-bar {
  height: 3px;
  border-radius: 3px;
  background: var(--panel3);
  overflow: hidden;
  max-width: 200px
}

.lib-bar i {
  display: block;
  height: 100%;
  width: 12%;
  background: var(--grad);
  border-radius: 3px;
  transition: width .15s
}

/* demos 1-8 */
.scr {
  font-family: var(--f-mono);
  font-size: 24px;
  font-weight: 700;
  color: var(--ink)
}

.scr .scr-c {
  color: var(--acc)
}

.mag {
  border: 0;
  cursor: pointer;
  background: var(--grad);
  color: #fff;
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 14px;
  padding: 14px 30px;
  border-radius: 14px;
  box-shadow: 0 16px 34px -12px rgba(108, 92, 231, .8);
  will-change: transform
}

.mag span {
  display: inline-block
}

.rip {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--panel3);
  color: var(--ink);
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 14px;
  padding: 14px 30px;
  border-radius: 14px;
  border: 1px solid var(--line2)
}

.rip-ripple {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 124, 247, .7), rgba(139, 124, 247, .15) 70%);
  transform: scale(0);
  animation: ripGo .65s ease-out forwards;
  pointer-events: none
}

@keyframes ripGo {
  to {
    transform: scale(3);
    opacity: 0
  }
}

.ring-wrap {
  position: relative;
  width: 96px;
  height: 96px
}

.ring-wrap svg {
  width: 96px;
  height: 96px;
  transform: rotate(-90deg)
}

.ring-bg {
  fill: none;
  stroke: var(--panel3);
  stroke-width: 8
}

.ring-arc {
  fill: none;
  stroke: url(#ringGrad);
  stroke-width: 8;
  stroke-linecap: round
}

.ring-txt {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: 17px
}

.cfp {
  position: absolute;
  border-radius: 2px;
  pointer-events: none;
  z-index: 5
}

.conf-btn {
  cursor: pointer;
  background: var(--panel3);
  border: 1px solid var(--line2);
  color: var(--ink);
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 13.5px;
  padding: 12px 24px;
  border-radius: 12px;
  transition: .25s
}

.conf-btn:hover {
  border-color: var(--acc)
}

.tipwrap {
  position: relative
}

.tip-btn {
  cursor: pointer;
  background: var(--panel3);
  border: 1px solid var(--line2);
  color: var(--sub);
  font-weight: 600;
  font-size: 13px;
  padding: 11px 20px;
  border-radius: 11px;
  transition: .25s
}

.tip-btn:hover {
  color: #fff;
  border-color: var(--acc)
}

.tip {
  position: absolute;
  left: 50%;
  background: var(--acc2);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 9px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .25s;
  transform: translate(-50%, 6px);
  z-index: 6
}

.tip::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 9px;
  height: 9px;
  background: var(--acc2);
  transform: translateX(-50%) rotate(45deg)
}

.tip.below::after {
  bottom: auto;
  top: -4px
}

.tipwrap:hover .tip,
.tipwrap:focus-within .tip {
  opacity: 1
}

.tip.above {
  bottom: calc(100% + 12px);
  transform: translate(-50%, 0)
}

.tip.below {
  top: calc(100% + 12px);
  transform: translate(-50%, 0)
}

.tw {
  font-family: var(--f-mono);
  font-size: 14.5px;
  color: var(--sub)
}

.tw-line {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  vertical-align: bottom;
  border-right: 2px solid var(--acc);
  width: 0;
  animation: tw 6.5s infinite, twCaret 1s step-end infinite
}

@keyframes tw {
  0% {
    width: 0;
    animation-timing-function: steps(27, end)
  }

  44% {
    width: 27ch
  }

  54% {
    width: 27ch;
    animation-timing-function: steps(27, end)
  }

  92% {
    width: 0
  }

  100% {
    width: 0
  }
}

@keyframes twCaret {
  50% {
    border-color: transparent
  }
}

.gtext {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 42px;
  letter-spacing: -.02em;
  background: linear-gradient(90deg, #E9E6FC, #8B7CF7, #5646C8, #8B7CF7, #E9E6FC);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gFlow2 4s linear infinite
}

@keyframes gFlow2 {
  to {
    background-position-x: -300%
  }
}

/* ================= TESTIMONIOS ================= */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px
}

.t-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line2);
  border-radius: 20px;
  padding: 30px 28px;
  transition: .35s;
  display: flex;
  flex-direction: column
}

.t-card:hover {
  transform: translateY(-6px);
  border-color: rgba(139, 124, 247, .5);
  box-shadow: var(--shadow)
}

.t-quote {
  position: absolute;
  top: 22px;
  right: 26px;
  font-family: var(--f-head);
  font-size: 60px;
  line-height: 1;
  color: rgba(139, 124, 247, .18)
}

.stars {
  display: flex;
  gap: 3px;
  margin-bottom: 16px;
  color: var(--acc)
}

.stars svg {
  width: 15px;
  height: 15px;
  fill: currentColor
}

.t-card p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--sub);
  flex: 1
}

.t-foot {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 24px
}

.t-av {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--grad);
  display: grid;
  place-items: center;
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 14px;
  color: #fff
}

.t-who b {
  display: block;
  font-size: 14.5px
}

.t-who span {
  font-size: 12.5px;
  color: var(--mut)
}

/* ================= CTA ================= */
.cta-panel {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line2);
  border-radius: 28px;
  padding: 64px 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  overflow: hidden
}

.cta-panel::before {
  content: '';
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(108, 92, 231, .25), transparent 65%);
  top: -260px;
  left: -140px;
  pointer-events: none
}

.cta-kicker {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--acc);
  margin-bottom: 16px
}

.cta-panel h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem)
}

.cta-panel .cta-p {
  color: var(--sub);
  line-height: 1.75;
  font-size: 16px;
  margin-top: 16px;
  max-width: 420px
}

.cta-actions {
  display: flex;
  gap: 14px;
  margin-top: 30px;
  flex-wrap: wrap
}

.term {
  position: relative;
  background: #0B0918;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
  z-index: 1
}

.term-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--panel2)
}

.term-bar .wdot {
  width: 10px;
  height: 10px
}

.term-copy {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1px solid var(--line2);
  color: var(--mut);
  font-family: var(--f-mono);
  font-size: 10.5px;
  border-radius: 7px;
  padding: 5px 10px;
  cursor: pointer;
  transition: .25s
}

.term-copy:hover {
  color: #fff;
  border-color: var(--acc)
}

.term-body {
  padding: 18px 18px 22px;
  font-family: var(--f-mono);
  font-size: 12.5px;
  line-height: 2.1;
  min-height: 172px
}

.tl-c.cmd {
  color: var(--lav)
}

.tl-c.cmd b {
  color: var(--acc)
}

.tl-c.ok {
  color: var(--ok)
}

.tl-c.out {
  color: var(--sub)
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1024px) {
  .tool-row {
    grid-template-columns: 44px 52px 1fr 44px
  }

  .tr-tags {
    display: none
  }

  .testi-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 20px;
  }

  .cta-panel {
    grid-template-columns: 1fr;
    padding: 48px 34px
  }
  .t-card{
    width: clamp(300px, 35vw, 350px);
    min-width: clamp(300px, 35vw, 350px);
  }
}

@media (max-width: 860px) {
  .wb-body {
    grid-template-columns: 1fr
  }

  .wb-side {
    flex-direction: row;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line)
  }

  .wb-side-t {
    display: none
  }

  .wb-tab {
    flex: none
  }

  .wb-tab small {
    display: none
  }

  .wb-prog {
    top: auto;
    height: 2px
  }

  .wb-stage {
    min-height: 430px
  }

  .wb-view.active {
    position: absolute
  }

  .cv {
    grid-template-columns: 44px 1fr
  }

  .cv-layers {
    display: none
  }

  .conv {
    grid-template-columns: 1fr
  }

  .conv-drop {
    min-height: 120px
  }

  .ide {
    grid-template-columns: 1fr
  }

  .ide-tree {
    display: none
  }

  .jsonv {
    grid-template-columns: 1fr
  }

  .jp {
    display: none
  }

  .tool-row {
    grid-template-columns: 52px 1fr 44px;
    gap: 16px
  }

  .tr-num {
    display: none
  }

  .wb-chip {
    display: none
  }

  .hero {
    padding: 130px 0 70px
  }
}