/* ════════════════════════════════════════════════
   CEREBRO + 6 NODOS — scopeado a .ia-graphic
   Portado de style3.css: mismas posiciones y sombras "clay",
   sin resets globales y con la paleta MGZ.
   ════════════════════════════════════════════════ */
.ia-graphic {
  --node-bg: var(--vino-tinta);
  --node-shadow-out: 10px 15px 25px rgba(43, 26, 32, 0.15),
    -5px -5px 15px rgba(255, 255, 255, 0.8);
  --node-shadow-in: inset 2px 2px 5px rgba(255, 255, 255, 0.12),
    inset -2px -2px 5px rgba(0, 0, 0, 0.45);

  position: relative;
  width: 100%;
  max-width: 720px;
  aspect-ratio: 800 / 450;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Círculos concéntricos */
.ia-graphic .circles {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(43, 26, 32, 0.025);
  box-shadow: inset 0 0 20px rgba(43, 26, 32, 0.05);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
}

.ia-graphic .circles::before,
.ia-graphic .circles::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.ia-graphic .circles::before {
  width: 200px;
  height: 200px;
  background: rgba(43, 26, 32, 0.03);
  box-shadow: inset 0 0 15px rgba(43, 26, 32, 0.05);
}

.ia-graphic .circles::after {
  width: 100px;
  height: 100px;
  background: rgba(43, 26, 32, 0.04);
  box-shadow: inset 0 0 10px rgba(43, 26, 32, 0.05);
}

/* Cerebro central: el asistente (emoji, como el original) */
.ia-graphic .brain {
  position: relative;
  z-index: 10;
  font-size: 64px;
  line-height: 1;
  filter: drop-shadow(0 10px 15px rgba(182, 23, 66, 0.25));
  user-select: none;
}

/* Cables */
.ia-graphic .lines-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.ia-graphic .line-path {
  fill: none;
  stroke: var(--vino-tinta);
  stroke-width: 1.5;
  stroke-linecap: round;
  opacity: 0.5;
}

/* Nodos */
.ia-graphic .icon-node {
  position: absolute;
  width: 64px;
  height: 64px;
  background: var(--node-bg);
  border-radius: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--piedra-clara);
  box-shadow: var(--node-shadow-out), var(--node-shadow-in);
  z-index: 5;
  cursor: default;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: border-color 0.3s ease;
}

.ia-graphic .icon-node:hover {
  border-color: rgba(255, 255, 255, 0.3);
}

.ia-graphic .icon-node svg {
  width: 30px;
  height: 30px;
}

/* Etiqueta bajo cada nodo */
.ia-graphic .node-label {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gris-texto);
  white-space: nowrap;
}

/* Posiciones (mismas que el original) */
.ia-graphic .n-l1 { top: 20%; left: 15%; }
.ia-graphic .n-l2 { top: 50%; left: 10%; transform: translateY(-50%); }
.ia-graphic .n-l3 { bottom: 20%; left: 15%; }
.ia-graphic .n-r1 { top: 20%; right: 15%; }
.ia-graphic .n-r2 { top: 50%; right: 10%; transform: translateY(-50%); }
.ia-graphic .n-r3 { bottom: 20%; right: 15%; }

@media (max-width: 540px) {
  .ia-graphic .icon-node {
    width: 52px;
    height: 52px;
    border-radius: 13px;
  }

  .ia-graphic .icon-node svg {
    width: 24px;
    height: 24px;
  }

  .ia-graphic .brain {
    font-size: 52px;
  }

  .ia-graphic .circles {
    width: 220px;
    height: 220px;
  }

  .ia-graphic .circles::before {
    width: 150px;
    height: 150px;
  }

  .ia-graphic .circles::after {
    width: 76px;
    height: 76px;
  }

  .ia-graphic .n-l1,
  .ia-graphic .n-l3 { left: 6%; }
  .ia-graphic .n-l2 { left: 2%; }
  .ia-graphic .n-r1,
  .ia-graphic .n-r3 { right: 6%; }
  .ia-graphic .n-r2 { right: 2%; }
}
